@agi-cli/web-ui 0.1.137 → 0.1.138

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.
@@ -6,7 +6,7 @@
6
6
  `+X[g].replace(" at new "," at ");return r.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",r.displayName)),he}while(1<=g&&0<=k);break}}}finally{je=!1,Error.prepareStackTrace=h}return(h=r?r.displayName||r.name:"")?ze(h):""}function xe(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 qe(r.type,!1);case 11:return qe(r.type.render,!1);case 1:return qe(r.type,!0);case 31:return ze("Activity");default:return""}}function _e(r){try{var a="",h=null;do a+=xe(r,h),h=r,r=r.return;while(r);return a}catch(g){return`
7
7
  Error generating stack: `+g.message+`
8
8
  `+g.stack}}var Le=Object.prototype.hasOwnProperty,et=e.unstable_scheduleCallback,At=e.unstable_cancelCallback,mt=e.unstable_shouldYield,nt=e.unstable_requestPaint,Ie=e.unstable_now,tt=e.unstable_getCurrentPriorityLevel,re=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,ye=e.unstable_NormalPriority,ke=e.unstable_LowPriority,Ne=e.unstable_IdlePriority,_t=e.log,Fe=e.unstable_setDisableYieldValue,St=null,lt=null;function yt(r){if(typeof _t=="function"&&Fe(r),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(St,r)}catch{}}var Qe=Math.clz32?Math.clz32:Un,Me=Math.log,Nt=Math.LN2;function Un(r){return r>>>=0,r===0?32:31-(Me(r)/Nt|0)|0}var Tt=256,fr=262144,Ca=4194304;function mr(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 ji(r,a,h){var g=r.pendingLanes;if(g===0)return 0;var k=0,R=r.suspendedLanes,F=r.pingedLanes;r=r.warmLanes;var G=g&134217727;return G!==0?(g=G&~R,g!==0?k=mr(g):(F&=G,F!==0?k=mr(F):h||(h=G&~r,h!==0&&(k=mr(h))))):(G=g&~R,G!==0?k=mr(G):F!==0?k=mr(F):h||(h=g&~r,h!==0&&(k=mr(h)))),k===0?0:a!==0&&a!==k&&(a&R)===0&&(R=k&-k,h=a&-a,R>=h||R===32&&(h&4194048)!==0)?a:k}function Qr(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function As(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 R1(){var r=Ca;return Ca<<=1,(Ca&62914560)===0&&(Ca=4194304),r}function Wc(r){for(var a=[],h=0;31>h;h++)a.push(r);return a}function Ns(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function AL(r,a,h,g,k,R){var F=r.pendingLanes;r.pendingLanes=h,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=h,r.entangledLanes&=h,r.errorRecoveryDisabledLanes&=h,r.shellSuspendCounter=0;var G=r.entanglements,X=r.expirationTimes,ae=r.hiddenUpdates;for(h=F&~h;0<h;){var he=31-Qe(h),me=1<<he;G[he]=0,X[he]=-1;var se=ae[he];if(se!==null)for(ae[he]=null,he=0;he<se.length;he++){var le=se[he];le!==null&&(le.lane&=-536870913)}h&=~me}g!==0&&A1(r,g,0),R!==0&&k===0&&r.tag!==0&&(r.suspendedLanes|=R&~(F&~a))}function A1(r,a,h){r.pendingLanes|=a,r.suspendedLanes&=~a;var g=31-Qe(a);r.entangledLanes|=a,r.entanglements[g]=r.entanglements[g]|1073741824|h&261930}function N1(r,a){var h=r.entangledLanes|=a;for(r=r.entanglements;h;){var g=31-Qe(h),k=1<<g;k&a|r[g]&a&&(r[g]|=a),h&=~k}}function O1(r,a){var h=a&-a;return h=(h&42)!==0?1:Vc(h),(h&(r.suspendedLanes|a))!==0?0:h}function Vc(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 Kc(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function D1(){var r=Z.p;return r!==0?r:(r=window.event,r===void 0?32:bE(r.type))}function I1(r,a){var h=Z.p;try{return Z.p=r,a()}finally{Z.p=h}}var Jr=Math.random().toString(36).slice(2),Yt="__reactFiber$"+Jr,pn="__reactProps$"+Jr,ka="__reactContainer$"+Jr,Yc="__reactEvents$"+Jr,NL="__reactListeners$"+Jr,OL="__reactHandles$"+Jr,L1="__reactResources$"+Jr,Os="__reactMarker$"+Jr;function Xc(r){delete r[Yt],delete r[pn],delete r[Yc],delete r[NL],delete r[OL]}function Ta(r){var a=r[Yt];if(a)return a;for(var h=r.parentNode;h;){if(a=h[ka]||h[Yt]){if(h=a.alternate,a.child!==null||h!==null&&h.child!==null)for(r=tE(r);r!==null;){if(h=r[Yt])return h;r=tE(r)}return a}r=h,h=r.parentNode}return null}function Ra(r){if(r=r[Yt]||r[ka]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function Ds(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Aa(r){var a=r[L1];return a||(a=r[L1]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Wt(r){r[Os]=!0}var M1=new Set,B1={};function Pi(r,a){Na(r,a),Na(r+"Capture",a)}function Na(r,a){for(B1[r]=a,r=0;r<a.length;r++)M1.add(a[r])}var DL=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]*$"),F1={},j1={};function IL(r){return Le.call(j1,r)?!0:Le.call(F1,r)?!1:DL.test(r)?j1[r]=!0:(F1[r]=!0,!1)}function cl(r,a,h){if(IL(a))if(h===null)r.removeAttribute(a);else{switch(typeof h){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var g=a.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+h)}}function dl(r,a,h){if(h===null)r.removeAttribute(a);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+h)}}function kr(r,a,h,g){if(g===null)r.removeAttribute(h);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(h);return}r.setAttributeNS(a,h,""+g)}}function Hn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function P1(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function LL(r,a,h){var g=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var k=g.get,R=g.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return k.call(this)},set:function(F){h=""+F,R.call(this,F)}}),Object.defineProperty(r,a,{enumerable:g.enumerable}),{getValue:function(){return h},setValue:function(F){h=""+F},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Zc(r){if(!r._valueTracker){var a=P1(r)?"checked":"value";r._valueTracker=LL(r,a,""+r[a])}}function U1(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var h=a.getValue(),g="";return r&&(g=P1(r)?r.checked?"true":"false":r.value),r=g,r!==h?(a.setValue(r),!0):!1}function hl(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 ML=/[\n"\\]/g;function zn(r){return r.replace(ML,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Qc(r,a,h,g,k,R,F,G){r.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?r.type=F:r.removeAttribute("type"),a!=null?F==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Hn(a)):r.value!==""+Hn(a)&&(r.value=""+Hn(a)):F!=="submit"&&F!=="reset"||r.removeAttribute("value"),a!=null?Jc(r,F,Hn(a)):h!=null?Jc(r,F,Hn(h)):g!=null&&r.removeAttribute("value"),k==null&&R!=null&&(r.defaultChecked=!!R),k!=null&&(r.checked=k&&typeof k!="function"&&typeof k!="symbol"),G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?r.name=""+Hn(G):r.removeAttribute("name")}function H1(r,a,h,g,k,R,F,G){if(R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(r.type=R),a!=null||h!=null){if(!(R!=="submit"&&R!=="reset"||a!=null)){Zc(r);return}h=h!=null?""+Hn(h):"",a=a!=null?""+Hn(a):h,G||a===r.value||(r.value=a),r.defaultValue=a}g=g??k,g=typeof g!="function"&&typeof g!="symbol"&&!!g,r.checked=G?r.checked:!!g,r.defaultChecked=!!g,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(r.name=F),Zc(r)}function Jc(r,a,h){a==="number"&&hl(r.ownerDocument)===r||r.defaultValue===""+h||(r.defaultValue=""+h)}function Oa(r,a,h,g){if(r=r.options,a){a={};for(var k=0;k<h.length;k++)a["$"+h[k]]=!0;for(h=0;h<r.length;h++)k=a.hasOwnProperty("$"+r[h].value),r[h].selected!==k&&(r[h].selected=k),k&&g&&(r[h].defaultSelected=!0)}else{for(h=""+Hn(h),a=null,k=0;k<r.length;k++){if(r[k].value===h){r[k].selected=!0,g&&(r[k].defaultSelected=!0);return}a!==null||r[k].disabled||(a=r[k])}a!==null&&(a.selected=!0)}}function z1(r,a,h){if(a!=null&&(a=""+Hn(a),a!==r.value&&(r.value=a),h==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=h!=null?""+Hn(h):""}function q1(r,a,h,g){if(a==null){if(g!=null){if(h!=null)throw Error(i(92));if(K(g)){if(1<g.length)throw Error(i(93));g=g[0]}h=g}h==null&&(h=""),a=h}h=Hn(a),r.defaultValue=h,g=r.textContent,g===h&&g!==""&&g!==null&&(r.value=g),Zc(r)}function Da(r,a){if(a){var h=r.firstChild;if(h&&h===r.lastChild&&h.nodeType===3){h.nodeValue=a;return}}r.textContent=a}var BL=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 $1(r,a,h){var g=a.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?g?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":g?r.setProperty(a,h):typeof h!="number"||h===0||BL.has(a)?a==="float"?r.cssFloat=h:r[a]=(""+h).trim():r[a]=h+"px"}function G1(r,a,h){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,h!=null){for(var g in h)!h.hasOwnProperty(g)||a!=null&&a.hasOwnProperty(g)||(g.indexOf("--")===0?r.setProperty(g,""):g==="float"?r.cssFloat="":r[g]="");for(var k in a)g=a[k],a.hasOwnProperty(k)&&h[k]!==g&&$1(r,k,g)}else for(var R in a)a.hasOwnProperty(R)&&$1(r,R,a[R])}function ed(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 FL=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"]]),jL=/^[\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 pl(r){return jL.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Tr(){}var td=null;function nd(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ia=null,La=null;function W1(r){var a=Ra(r);if(a&&(r=a.stateNode)){var h=r[pn]||null;e:switch(r=a.stateNode,a.type){case"input":if(Qc(r,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),a=h.name,h.type==="radio"&&a!=null){for(h=r;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+zn(""+a)+'"][type="radio"]'),a=0;a<h.length;a++){var g=h[a];if(g!==r&&g.form===r.form){var k=g[pn]||null;if(!k)throw Error(i(90));Qc(g,k.value,k.defaultValue,k.defaultValue,k.checked,k.defaultChecked,k.type,k.name)}}for(a=0;a<h.length;a++)g=h[a],g.form===r.form&&U1(g)}break e;case"textarea":z1(r,h.value,h.defaultValue);break e;case"select":a=h.value,a!=null&&Oa(r,!!h.multiple,a,!1)}}}var rd=!1;function V1(r,a,h){if(rd)return r(a,h);rd=!0;try{var g=r(a);return g}finally{if(rd=!1,(Ia!==null||La!==null)&&(eu(),Ia&&(a=Ia,r=La,La=Ia=null,W1(a),r)))for(a=0;a<r.length;a++)W1(r[a])}}function Is(r,a){var h=r.stateNode;if(h===null)return null;var g=h[pn]||null;if(g===null)return null;h=g[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":(g=!g.disabled)||(r=r.type,g=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!g;break e;default:r=!1}if(r)return null;if(h&&typeof h!="function")throw Error(i(231,a,typeof h));return h}var Rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),id=!1;if(Rr)try{var Ls={};Object.defineProperty(Ls,"passive",{get:function(){id=!0}}),window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch{id=!1}var ei=null,ad=null,fl=null;function K1(){if(fl)return fl;var r,a=ad,h=a.length,g,k="value"in ei?ei.value:ei.textContent,R=k.length;for(r=0;r<h&&a[r]===k[r];r++);var F=h-r;for(g=1;g<=F&&a[h-g]===k[R-g];g++);return fl=k.slice(r,1<g?1-g:void 0)}function ml(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 gl(){return!0}function Y1(){return!1}function fn(r){function a(h,g,k,R,F){this._reactName=h,this._targetInst=k,this.type=g,this.nativeEvent=R,this.target=F,this.currentTarget=null;for(var G in r)r.hasOwnProperty(G)&&(h=r[G],this[G]=h?h(R):R[G]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?gl:Y1,this.isPropagationStopped=Y1,this}return f(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=gl)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=gl)},persist:function(){},isPersistent:gl}),a}var Ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bl=fn(Ui),Ms=f({},Ui,{view:0,detail:0}),PL=fn(Ms),sd,od,Bs,yl=f({},Ms,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ud,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!==Bs&&(Bs&&r.type==="mousemove"?(sd=r.screenX-Bs.screenX,od=r.screenY-Bs.screenY):od=sd=0,Bs=r),sd)},movementY:function(r){return"movementY"in r?r.movementY:od}}),X1=fn(yl),UL=f({},yl,{dataTransfer:0}),HL=fn(UL),zL=f({},Ms,{relatedTarget:0}),ld=fn(zL),qL=f({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),$L=fn(qL),GL=f({},Ui,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),WL=fn(GL),VL=f({},Ui,{data:0}),Z1=fn(VL),KL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YL={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"},XL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZL(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=XL[r])?!!a[r]:!1}function ud(){return ZL}var QL=f({},Ms,{key:function(r){if(r.key){var a=KL[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=ml(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?YL[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ud,charCode:function(r){return r.type==="keypress"?ml(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ml(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),JL=fn(QL),e3=f({},yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Q1=fn(e3),t3=f({},Ms,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ud}),n3=fn(t3),r3=f({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),i3=fn(r3),a3=f({},yl,{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}),s3=fn(a3),o3=f({},Ui,{newState:0,oldState:0}),l3=fn(o3),u3=[9,13,27,32],cd=Rr&&"CompositionEvent"in window,Fs=null;Rr&&"documentMode"in document&&(Fs=document.documentMode);var c3=Rr&&"TextEvent"in window&&!Fs,J1=Rr&&(!cd||Fs&&8<Fs&&11>=Fs),e_=" ",t_=!1;function n_(r,a){switch(r){case"keyup":return u3.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function r_(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ma=!1;function d3(r,a){switch(r){case"compositionend":return r_(a);case"keypress":return a.which!==32?null:(t_=!0,e_);case"textInput":return r=a.data,r===e_&&t_?null:r;default:return null}}function h3(r,a){if(Ma)return r==="compositionend"||!cd&&n_(r,a)?(r=K1(),fl=ad=ei=null,Ma=!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 J1&&a.locale!=="ko"?null:a.data;default:return null}}var p3={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 i_(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!p3[r.type]:a==="textarea"}function a_(r,a,h,g){Ia?La?La.push(g):La=[g]:Ia=g,a=ou(a,"onChange"),0<a.length&&(h=new bl("onChange","change",null,h,g),r.push({event:h,listeners:a}))}var js=null,Ps=null;function f3(r){Hx(r,0)}function vl(r){var a=Ds(r);if(U1(a))return r}function s_(r,a){if(r==="change")return a}var o_=!1;if(Rr){var dd;if(Rr){var hd="oninput"in document;if(!hd){var l_=document.createElement("div");l_.setAttribute("oninput","return;"),hd=typeof l_.oninput=="function"}dd=hd}else dd=!1;o_=dd&&(!document.documentMode||9<document.documentMode)}function u_(){js&&(js.detachEvent("onpropertychange",c_),Ps=js=null)}function c_(r){if(r.propertyName==="value"&&vl(Ps)){var a=[];a_(a,Ps,r,nd(r)),V1(f3,a)}}function m3(r,a,h){r==="focusin"?(u_(),js=a,Ps=h,js.attachEvent("onpropertychange",c_)):r==="focusout"&&u_()}function g3(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return vl(Ps)}function b3(r,a){if(r==="click")return vl(a)}function y3(r,a){if(r==="input"||r==="change")return vl(a)}function v3(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Tn=typeof Object.is=="function"?Object.is:v3;function Us(r,a){if(Tn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var h=Object.keys(r),g=Object.keys(a);if(h.length!==g.length)return!1;for(g=0;g<h.length;g++){var k=h[g];if(!Le.call(a,k)||!Tn(r[k],a[k]))return!1}return!0}function d_(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function h_(r,a){var h=d_(r);r=0;for(var g;h;){if(h.nodeType===3){if(g=r+h.textContent.length,r<=a&&g>=a)return{node:h,offset:a-r};r=g}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=d_(h)}}function p_(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?p_(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function f_(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=hl(r.document);a instanceof r.HTMLIFrameElement;){try{var h=typeof a.contentWindow.location.href=="string"}catch{h=!1}if(h)r=a.contentWindow;else break;a=hl(r.document)}return a}function pd(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 _3=Rr&&"documentMode"in document&&11>=document.documentMode,Ba=null,fd=null,Hs=null,md=!1;function m_(r,a,h){var g=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;md||Ba==null||Ba!==hl(g)||(g=Ba,"selectionStart"in g&&pd(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Hs&&Us(Hs,g)||(Hs=g,g=ou(fd,"onSelect"),0<g.length&&(a=new bl("onSelect","select",null,a,h),r.push({event:a,listeners:g}),a.target=Ba)))}function Hi(r,a){var h={};return h[r.toLowerCase()]=a.toLowerCase(),h["Webkit"+r]="webkit"+a,h["Moz"+r]="moz"+a,h}var Fa={animationend:Hi("Animation","AnimationEnd"),animationiteration:Hi("Animation","AnimationIteration"),animationstart:Hi("Animation","AnimationStart"),transitionrun:Hi("Transition","TransitionRun"),transitionstart:Hi("Transition","TransitionStart"),transitioncancel:Hi("Transition","TransitionCancel"),transitionend:Hi("Transition","TransitionEnd")},gd={},g_={};Rr&&(g_=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function zi(r){if(gd[r])return gd[r];if(!Fa[r])return r;var a=Fa[r],h;for(h in a)if(a.hasOwnProperty(h)&&h in g_)return gd[r]=a[h];return r}var b_=zi("animationend"),y_=zi("animationiteration"),v_=zi("animationstart"),S3=zi("transitionrun"),x3=zi("transitionstart"),E3=zi("transitioncancel"),__=zi("transitionend"),S_=new Map,bd="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(" ");bd.push("scrollEnd");function lr(r,a){S_.set(r,a),Pi(a,[r])}var _l=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)},qn=[],ja=0,yd=0;function Sl(){for(var r=ja,a=yd=ja=0;a<r;){var h=qn[a];qn[a++]=null;var g=qn[a];qn[a++]=null;var k=qn[a];qn[a++]=null;var R=qn[a];if(qn[a++]=null,g!==null&&k!==null){var F=g.pending;F===null?k.next=k:(k.next=F.next,F.next=k),g.pending=k}R!==0&&x_(h,k,R)}}function xl(r,a,h,g){qn[ja++]=r,qn[ja++]=a,qn[ja++]=h,qn[ja++]=g,yd|=g,r.lanes|=g,r=r.alternate,r!==null&&(r.lanes|=g)}function vd(r,a,h,g){return xl(r,a,h,g),El(r)}function qi(r,a){return xl(r,null,null,a),El(r)}function x_(r,a,h){r.lanes|=h;var g=r.alternate;g!==null&&(g.lanes|=h);for(var k=!1,R=r.return;R!==null;)R.childLanes|=h,g=R.alternate,g!==null&&(g.childLanes|=h),R.tag===22&&(r=R.stateNode,r===null||r._visibility&1||(k=!0)),r=R,R=R.return;return r.tag===3?(R=r.stateNode,k&&a!==null&&(k=31-Qe(h),r=R.hiddenUpdates,g=r[k],g===null?r[k]=[a]:g.push(a),a.lane=h|536870912),R):null}function El(r){if(50<uo)throw uo=0,Rh=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Pa={};function w3(r,a,h,g){this.tag=r,this.key=h,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=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(r,a,h,g){return new w3(r,a,h,g)}function _d(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ar(r,a){var h=r.alternate;return h===null?(h=Rn(r.tag,a,r.key,r.mode),h.elementType=r.elementType,h.type=r.type,h.stateNode=r.stateNode,h.alternate=r,r.alternate=h):(h.pendingProps=a,h.type=r.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=r.flags&65011712,h.childLanes=r.childLanes,h.lanes=r.lanes,h.child=r.child,h.memoizedProps=r.memoizedProps,h.memoizedState=r.memoizedState,h.updateQueue=r.updateQueue,a=r.dependencies,h.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},h.sibling=r.sibling,h.index=r.index,h.ref=r.ref,h.refCleanup=r.refCleanup,h}function E_(r,a){r.flags&=65011714;var h=r.alternate;return h===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=h.childLanes,r.lanes=h.lanes,r.child=h.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=h.memoizedProps,r.memoizedState=h.memoizedState,r.updateQueue=h.updateQueue,r.type=h.type,a=h.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function wl(r,a,h,g,k,R){var F=0;if(g=r,typeof r=="function")_d(r)&&(F=1);else if(typeof r=="string")F=A5(r,h,J.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case D:return r=Rn(31,h,a,k),r.elementType=D,r.lanes=R,r;case E:return $i(h.children,k,R,a);case v:F=8,k|=24;break;case x:return r=Rn(12,h,a,k|2),r.elementType=x,r.lanes=R,r;case N:return r=Rn(13,h,a,k),r.elementType=N,r.lanes=R,r;case T:return r=Rn(19,h,a,k),r.elementType=T,r.lanes=R,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case _:F=10;break e;case S:F=9;break e;case C:F=11;break e;case O:F=14;break e;case A:F=16,g=null;break e}F=29,h=Error(i(130,r===null?"null":typeof r,"")),g=null}return a=Rn(F,h,a,k),a.elementType=r,a.type=g,a.lanes=R,a}function $i(r,a,h,g){return r=Rn(7,r,g,a),r.lanes=h,r}function Sd(r,a,h){return r=Rn(6,r,null,a),r.lanes=h,r}function w_(r){var a=Rn(18,null,null,0);return a.stateNode=r,a}function xd(r,a,h){return a=Rn(4,r.children!==null?r.children:[],r.key,a),a.lanes=h,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var C_=new WeakMap;function $n(r,a){if(typeof r=="object"&&r!==null){var h=C_.get(r);return h!==void 0?h:(a={value:r,source:a,stack:_e(a)},C_.set(r,a),a)}return{value:r,source:a,stack:_e(a)}}var Ua=[],Ha=0,Cl=null,zs=0,Gn=[],Wn=0,ti=null,gr=1,br="";function Nr(r,a){Ua[Ha++]=zs,Ua[Ha++]=Cl,Cl=r,zs=a}function k_(r,a,h){Gn[Wn++]=gr,Gn[Wn++]=br,Gn[Wn++]=ti,ti=r;var g=gr;r=br;var k=32-Qe(g)-1;g&=~(1<<k),h+=1;var R=32-Qe(a)+k;if(30<R){var F=k-k%5;R=(g&(1<<F)-1).toString(32),g>>=F,k-=F,gr=1<<32-Qe(a)+k|h<<k|g,br=R+r}else gr=1<<R|h<<k|g,br=r}function Ed(r){r.return!==null&&(Nr(r,1),k_(r,1,0))}function wd(r){for(;r===Cl;)Cl=Ua[--Ha],Ua[Ha]=null,zs=Ua[--Ha],Ua[Ha]=null;for(;r===ti;)ti=Gn[--Wn],Gn[Wn]=null,br=Gn[--Wn],Gn[Wn]=null,gr=Gn[--Wn],Gn[Wn]=null}function T_(r,a){Gn[Wn++]=gr,Gn[Wn++]=br,Gn[Wn++]=ti,gr=a.id,br=a.overflow,ti=r}var Xt=null,xt=null,Ze=!1,ni=null,Vn=!1,Cd=Error(i(519));function ri(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qs($n(a,r)),Cd}function R_(r){var a=r.stateNode,h=r.type,g=r.memoizedProps;switch(a[Yt]=r,a[pn]=g,h){case"dialog":Ge("cancel",a),Ge("close",a);break;case"iframe":case"object":case"embed":Ge("load",a);break;case"video":case"audio":for(h=0;h<ho.length;h++)Ge(ho[h],a);break;case"source":Ge("error",a);break;case"img":case"image":case"link":Ge("error",a),Ge("load",a);break;case"details":Ge("toggle",a);break;case"input":Ge("invalid",a),H1(a,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"select":Ge("invalid",a);break;case"textarea":Ge("invalid",a),q1(a,g.value,g.defaultValue,g.children)}h=g.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||a.textContent===""+h||g.suppressHydrationWarning===!0||Gx(a.textContent,h)?(g.popover!=null&&(Ge("beforetoggle",a),Ge("toggle",a)),g.onScroll!=null&&Ge("scroll",a),g.onScrollEnd!=null&&Ge("scrollend",a),g.onClick!=null&&(a.onclick=Tr),a=!0):a=!1,a||ri(r,!0)}function A_(r){for(Xt=r.return;Xt;)switch(Xt.tag){case 5:case 31:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:Xt=Xt.return}}function za(r){if(r!==Xt)return!1;if(!Ze)return A_(r),Ze=!0,!1;var a=r.tag,h;if((h=a!==3&&a!==27)&&((h=a===5)&&(h=r.type,h=!(h!=="form"&&h!=="button")||qh(r.type,r.memoizedProps)),h=!h),h&&xt&&ri(r),A_(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));xt=eE(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));xt=eE(r)}else a===27?(a=xt,bi(r.type)?(r=Kh,Kh=null,xt=r):xt=a):xt=Xt?Yn(r.stateNode.nextSibling):null;return!0}function Gi(){xt=Xt=null,Ze=!1}function kd(){var r=ni;return r!==null&&(yn===null?yn=r:yn.push.apply(yn,r),ni=null),r}function qs(r){ni===null?ni=[r]:ni.push(r)}var Td=j(null),Wi=null,Or=null;function ii(r,a,h){U(Td,a._currentValue),a._currentValue=h}function Dr(r){r._currentValue=Td.current,$(Td)}function Rd(r,a,h){for(;r!==null;){var g=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,g!==null&&(g.childLanes|=a)):g!==null&&(g.childLanes&a)!==a&&(g.childLanes|=a),r===h)break;r=r.return}}function Ad(r,a,h,g){var k=r.child;for(k!==null&&(k.return=r);k!==null;){var R=k.dependencies;if(R!==null){var F=k.child;R=R.firstContext;e:for(;R!==null;){var G=R;R=k;for(var X=0;X<a.length;X++)if(G.context===a[X]){R.lanes|=h,G=R.alternate,G!==null&&(G.lanes|=h),Rd(R.return,h,r),g||(F=null);break e}R=G.next}}else if(k.tag===18){if(F=k.return,F===null)throw Error(i(341));F.lanes|=h,R=F.alternate,R!==null&&(R.lanes|=h),Rd(F,h,r),F=null}else F=k.child;if(F!==null)F.return=k;else for(F=k;F!==null;){if(F===r){F=null;break}if(k=F.sibling,k!==null){k.return=F.return,F=k;break}F=F.return}k=F}}function qa(r,a,h,g){r=null;for(var k=a,R=!1;k!==null;){if(!R){if((k.flags&524288)!==0)R=!0;else if((k.flags&262144)!==0)break}if(k.tag===10){var F=k.alternate;if(F===null)throw Error(i(387));if(F=F.memoizedProps,F!==null){var G=k.type;Tn(k.pendingProps.value,F.value)||(r!==null?r.push(G):r=[G])}}else if(k===Y.current){if(F=k.alternate,F===null)throw Error(i(387));F.memoizedState.memoizedState!==k.memoizedState.memoizedState&&(r!==null?r.push(bo):r=[bo])}k=k.return}r!==null&&Ad(a,r,h,g),a.flags|=262144}function kl(r){for(r=r.firstContext;r!==null;){if(!Tn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Vi(r){Wi=r,Or=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Zt(r){return N_(Wi,r)}function Tl(r,a){return Wi===null&&Vi(r),N_(r,a)}function N_(r,a){var h=a._currentValue;if(a={context:a,memoizedValue:h,next:null},Or===null){if(r===null)throw Error(i(308));Or=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Or=Or.next=a;return h}var C3=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(h,g){r.push(g)}};this.abort=function(){a.aborted=!0,r.forEach(function(h){return h()})}},k3=e.unstable_scheduleCallback,T3=e.unstable_NormalPriority,jt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nd(){return{controller:new C3,data:new Map,refCount:0}}function $s(r){r.refCount--,r.refCount===0&&k3(T3,function(){r.controller.abort()})}var Gs=null,Od=0,$a=0,Ga=null;function R3(r,a){if(Gs===null){var h=Gs=[];Od=0,$a=Lh(),Ga={status:"pending",value:void 0,then:function(g){h.push(g)}}}return Od++,a.then(O_,O_),a}function O_(){if(--Od===0&&Gs!==null){Ga!==null&&(Ga.status="fulfilled");var r=Gs;Gs=null,$a=0,Ga=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function A3(r,a){var h=[],g={status:"pending",value:null,reason:null,then:function(k){h.push(k)}};return r.then(function(){g.status="fulfilled",g.value=a;for(var k=0;k<h.length;k++)(0,h[k])(a)},function(k){for(g.status="rejected",g.reason=k,k=0;k<h.length;k++)(0,h[k])(void 0)}),g}var D_=W.S;W.S=function(r,a){mx=Ie(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&R3(r,a),D_!==null&&D_(r,a)};var Ki=j(null);function Dd(){var r=Ki.current;return r!==null?r:gt.pooledCache}function Rl(r,a){a===null?U(Ki,Ki.current):U(Ki,a.pool)}function I_(){var r=Dd();return r===null?null:{parent:jt._currentValue,pool:r}}var Wa=Error(i(460)),Id=Error(i(474)),Al=Error(i(542)),Nl={then:function(){}};function L_(r){return r=r.status,r==="fulfilled"||r==="rejected"}function M_(r,a,h){switch(h=r[h],h===void 0?r.push(a):h!==a&&(a.then(Tr,Tr),a=h),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,F_(r),r;default:if(typeof a.status=="string")a.then(Tr,Tr);else{if(r=gt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(g){if(a.status==="pending"){var k=a;k.status="fulfilled",k.value=g}},function(g){if(a.status==="pending"){var k=a;k.status="rejected",k.reason=g}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,F_(r),r}throw Xi=a,Wa}}function Yi(r){try{var a=r._init;return a(r._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(Xi=h,Wa):h}}var Xi=null;function B_(){if(Xi===null)throw Error(i(459));var r=Xi;return Xi=null,r}function F_(r){if(r===Wa||r===Al)throw Error(i(483))}var Va=null,Ws=0;function Ol(r){var a=Ws;return Ws+=1,Va===null&&(Va=[]),M_(Va,r,a)}function Vs(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Dl(r,a){throw a.$$typeof===m?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function j_(r){function a(ne,ee){if(r){var ie=ne.deletions;ie===null?(ne.deletions=[ee],ne.flags|=16):ie.push(ee)}}function h(ne,ee){if(!r)return null;for(;ee!==null;)a(ne,ee),ee=ee.sibling;return null}function g(ne){for(var ee=new Map;ne!==null;)ne.key!==null?ee.set(ne.key,ne):ee.set(ne.index,ne),ne=ne.sibling;return ee}function k(ne,ee){return ne=Ar(ne,ee),ne.index=0,ne.sibling=null,ne}function R(ne,ee,ie){return ne.index=ie,r?(ie=ne.alternate,ie!==null?(ie=ie.index,ie<ee?(ne.flags|=67108866,ee):ie):(ne.flags|=67108866,ee)):(ne.flags|=1048576,ee)}function F(ne){return r&&ne.alternate===null&&(ne.flags|=67108866),ne}function G(ne,ee,ie,fe){return ee===null||ee.tag!==6?(ee=Sd(ie,ne.mode,fe),ee.return=ne,ee):(ee=k(ee,ie),ee.return=ne,ee)}function X(ne,ee,ie,fe){var Te=ie.type;return Te===E?he(ne,ee,ie.props.children,fe,ie.key):ee!==null&&(ee.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===A&&Yi(Te)===ee.type)?(ee=k(ee,ie.props),Vs(ee,ie),ee.return=ne,ee):(ee=wl(ie.type,ie.key,ie.props,null,ne.mode,fe),Vs(ee,ie),ee.return=ne,ee)}function ae(ne,ee,ie,fe){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ie.containerInfo||ee.stateNode.implementation!==ie.implementation?(ee=xd(ie,ne.mode,fe),ee.return=ne,ee):(ee=k(ee,ie.children||[]),ee.return=ne,ee)}function he(ne,ee,ie,fe,Te){return ee===null||ee.tag!==7?(ee=$i(ie,ne.mode,fe,Te),ee.return=ne,ee):(ee=k(ee,ie),ee.return=ne,ee)}function me(ne,ee,ie){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=Sd(""+ee,ne.mode,ie),ee.return=ne,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:return ie=wl(ee.type,ee.key,ee.props,null,ne.mode,ie),Vs(ie,ee),ie.return=ne,ie;case w:return ee=xd(ee,ne.mode,ie),ee.return=ne,ee;case A:return ee=Yi(ee),me(ne,ee,ie)}if(K(ee)||H(ee))return ee=$i(ee,ne.mode,ie,null),ee.return=ne,ee;if(typeof ee.then=="function")return me(ne,Ol(ee),ie);if(ee.$$typeof===_)return me(ne,Tl(ne,ee),ie);Dl(ne,ee)}return null}function se(ne,ee,ie,fe){var Te=ee!==null?ee.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return Te!==null?null:G(ne,ee,""+ie,fe);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case b:return ie.key===Te?X(ne,ee,ie,fe):null;case w:return ie.key===Te?ae(ne,ee,ie,fe):null;case A:return ie=Yi(ie),se(ne,ee,ie,fe)}if(K(ie)||H(ie))return Te!==null?null:he(ne,ee,ie,fe,null);if(typeof ie.then=="function")return se(ne,ee,Ol(ie),fe);if(ie.$$typeof===_)return se(ne,ee,Tl(ne,ie),fe);Dl(ne,ie)}return null}function le(ne,ee,ie,fe,Te){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return ne=ne.get(ie)||null,G(ee,ne,""+fe,Te);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case b:return ne=ne.get(fe.key===null?ie:fe.key)||null,X(ee,ne,fe,Te);case w:return ne=ne.get(fe.key===null?ie:fe.key)||null,ae(ee,ne,fe,Te);case A:return fe=Yi(fe),le(ne,ee,ie,fe,Te)}if(K(fe)||H(fe))return ne=ne.get(ie)||null,he(ee,ne,fe,Te,null);if(typeof fe.then=="function")return le(ne,ee,ie,Ol(fe),Te);if(fe.$$typeof===_)return le(ne,ee,ie,Tl(ee,fe),Te);Dl(ee,fe)}return null}function Ee(ne,ee,ie,fe){for(var Te=null,rt=null,Ce=ee,Ue=ee=0,Ye=null;Ce!==null&&Ue<ie.length;Ue++){Ce.index>Ue?(Ye=Ce,Ce=null):Ye=Ce.sibling;var it=se(ne,Ce,ie[Ue],fe);if(it===null){Ce===null&&(Ce=Ye);break}r&&Ce&&it.alternate===null&&a(ne,Ce),ee=R(it,ee,Ue),rt===null?Te=it:rt.sibling=it,rt=it,Ce=Ye}if(Ue===ie.length)return h(ne,Ce),Ze&&Nr(ne,Ue),Te;if(Ce===null){for(;Ue<ie.length;Ue++)Ce=me(ne,ie[Ue],fe),Ce!==null&&(ee=R(Ce,ee,Ue),rt===null?Te=Ce:rt.sibling=Ce,rt=Ce);return Ze&&Nr(ne,Ue),Te}for(Ce=g(Ce);Ue<ie.length;Ue++)Ye=le(Ce,ne,Ue,ie[Ue],fe),Ye!==null&&(r&&Ye.alternate!==null&&Ce.delete(Ye.key===null?Ue:Ye.key),ee=R(Ye,ee,Ue),rt===null?Te=Ye:rt.sibling=Ye,rt=Ye);return r&&Ce.forEach(function(xi){return a(ne,xi)}),Ze&&Nr(ne,Ue),Te}function Ae(ne,ee,ie,fe){if(ie==null)throw Error(i(151));for(var Te=null,rt=null,Ce=ee,Ue=ee=0,Ye=null,it=ie.next();Ce!==null&&!it.done;Ue++,it=ie.next()){Ce.index>Ue?(Ye=Ce,Ce=null):Ye=Ce.sibling;var xi=se(ne,Ce,it.value,fe);if(xi===null){Ce===null&&(Ce=Ye);break}r&&Ce&&xi.alternate===null&&a(ne,Ce),ee=R(xi,ee,Ue),rt===null?Te=xi:rt.sibling=xi,rt=xi,Ce=Ye}if(it.done)return h(ne,Ce),Ze&&Nr(ne,Ue),Te;if(Ce===null){for(;!it.done;Ue++,it=ie.next())it=me(ne,it.value,fe),it!==null&&(ee=R(it,ee,Ue),rt===null?Te=it:rt.sibling=it,rt=it);return Ze&&Nr(ne,Ue),Te}for(Ce=g(Ce);!it.done;Ue++,it=ie.next())it=le(Ce,ne,Ue,it.value,fe),it!==null&&(r&&it.alternate!==null&&Ce.delete(it.key===null?Ue:it.key),ee=R(it,ee,Ue),rt===null?Te=it:rt.sibling=it,rt=it);return r&&Ce.forEach(function(U5){return a(ne,U5)}),Ze&&Nr(ne,Ue),Te}function pt(ne,ee,ie,fe){if(typeof ie=="object"&&ie!==null&&ie.type===E&&ie.key===null&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case b:e:{for(var Te=ie.key;ee!==null;){if(ee.key===Te){if(Te=ie.type,Te===E){if(ee.tag===7){h(ne,ee.sibling),fe=k(ee,ie.props.children),fe.return=ne,ne=fe;break e}}else if(ee.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===A&&Yi(Te)===ee.type){h(ne,ee.sibling),fe=k(ee,ie.props),Vs(fe,ie),fe.return=ne,ne=fe;break e}h(ne,ee);break}else a(ne,ee);ee=ee.sibling}ie.type===E?(fe=$i(ie.props.children,ne.mode,fe,ie.key),fe.return=ne,ne=fe):(fe=wl(ie.type,ie.key,ie.props,null,ne.mode,fe),Vs(fe,ie),fe.return=ne,ne=fe)}return F(ne);case w:e:{for(Te=ie.key;ee!==null;){if(ee.key===Te)if(ee.tag===4&&ee.stateNode.containerInfo===ie.containerInfo&&ee.stateNode.implementation===ie.implementation){h(ne,ee.sibling),fe=k(ee,ie.children||[]),fe.return=ne,ne=fe;break e}else{h(ne,ee);break}else a(ne,ee);ee=ee.sibling}fe=xd(ie,ne.mode,fe),fe.return=ne,ne=fe}return F(ne);case A:return ie=Yi(ie),pt(ne,ee,ie,fe)}if(K(ie))return Ee(ne,ee,ie,fe);if(H(ie)){if(Te=H(ie),typeof Te!="function")throw Error(i(150));return ie=Te.call(ie),Ae(ne,ee,ie,fe)}if(typeof ie.then=="function")return pt(ne,ee,Ol(ie),fe);if(ie.$$typeof===_)return pt(ne,ee,Tl(ne,ie),fe);Dl(ne,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint"?(ie=""+ie,ee!==null&&ee.tag===6?(h(ne,ee.sibling),fe=k(ee,ie),fe.return=ne,ne=fe):(h(ne,ee),fe=Sd(ie,ne.mode,fe),fe.return=ne,ne=fe),F(ne)):h(ne,ee)}return function(ne,ee,ie,fe){try{Ws=0;var Te=pt(ne,ee,ie,fe);return Va=null,Te}catch(Ce){if(Ce===Wa||Ce===Al)throw Ce;var rt=Rn(29,Ce,null,ne.mode);return rt.lanes=fe,rt.return=ne,rt}}}var Zi=j_(!0),P_=j_(!1),ai=!1;function Ld(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Md(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 si(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function oi(r,a,h){var g=r.updateQueue;if(g===null)return null;if(g=g.shared,(at&2)!==0){var k=g.pending;return k===null?a.next=a:(a.next=k.next,k.next=a),g.pending=a,a=El(r),x_(r,null,h),a}return xl(r,g,a,h),El(r)}function Ks(r,a,h){if(a=a.updateQueue,a!==null&&(a=a.shared,(h&4194048)!==0)){var g=a.lanes;g&=r.pendingLanes,h|=g,a.lanes=h,N1(r,h)}}function Bd(r,a){var h=r.updateQueue,g=r.alternate;if(g!==null&&(g=g.updateQueue,h===g)){var k=null,R=null;if(h=h.firstBaseUpdate,h!==null){do{var F={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};R===null?k=R=F:R=R.next=F,h=h.next}while(h!==null);R===null?k=R=a:R=R.next=a}else k=R=a;h={baseState:g.baseState,firstBaseUpdate:k,lastBaseUpdate:R,shared:g.shared,callbacks:g.callbacks},r.updateQueue=h;return}r=h.lastBaseUpdate,r===null?h.firstBaseUpdate=a:r.next=a,h.lastBaseUpdate=a}var Fd=!1;function Ys(){if(Fd){var r=Ga;if(r!==null)throw r}}function Xs(r,a,h,g){Fd=!1;var k=r.updateQueue;ai=!1;var R=k.firstBaseUpdate,F=k.lastBaseUpdate,G=k.shared.pending;if(G!==null){k.shared.pending=null;var X=G,ae=X.next;X.next=null,F===null?R=ae:F.next=ae,F=X;var he=r.alternate;he!==null&&(he=he.updateQueue,G=he.lastBaseUpdate,G!==F&&(G===null?he.firstBaseUpdate=ae:G.next=ae,he.lastBaseUpdate=X))}if(R!==null){var me=k.baseState;F=0,he=ae=X=null,G=R;do{var se=G.lane&-536870913,le=se!==G.lane;if(le?(Ke&se)===se:(g&se)===se){se!==0&&se===$a&&(Fd=!0),he!==null&&(he=he.next={lane:0,tag:G.tag,payload:G.payload,callback:null,next:null});e:{var Ee=r,Ae=G;se=a;var pt=h;switch(Ae.tag){case 1:if(Ee=Ae.payload,typeof Ee=="function"){me=Ee.call(pt,me,se);break e}me=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=Ae.payload,se=typeof Ee=="function"?Ee.call(pt,me,se):Ee,se==null)break e;me=f({},me,se);break e;case 2:ai=!0}}se=G.callback,se!==null&&(r.flags|=64,le&&(r.flags|=8192),le=k.callbacks,le===null?k.callbacks=[se]:le.push(se))}else le={lane:se,tag:G.tag,payload:G.payload,callback:G.callback,next:null},he===null?(ae=he=le,X=me):he=he.next=le,F|=se;if(G=G.next,G===null){if(G=k.shared.pending,G===null)break;le=G,G=le.next,le.next=null,k.lastBaseUpdate=le,k.shared.pending=null}}while(!0);he===null&&(X=me),k.baseState=X,k.firstBaseUpdate=ae,k.lastBaseUpdate=he,R===null&&(k.shared.lanes=0),hi|=F,r.lanes=F,r.memoizedState=me}}function U_(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function H_(r,a){var h=r.callbacks;if(h!==null)for(r.callbacks=null,r=0;r<h.length;r++)U_(h[r],a)}var Ka=j(null),Il=j(0);function z_(r,a){r=Hr,U(Il,r),U(Ka,a),Hr=r|a.baseLanes}function jd(){U(Il,Hr),U(Ka,Ka.current)}function Pd(){Hr=Il.current,$(Ka),$(Il)}var An=j(null),Kn=null;function li(r){var a=r.alternate;U(Mt,Mt.current&1),U(An,r),Kn===null&&(a===null||Ka.current!==null||a.memoizedState!==null)&&(Kn=r)}function Ud(r){U(Mt,Mt.current),U(An,r),Kn===null&&(Kn=r)}function q_(r){r.tag===22?(U(Mt,Mt.current),U(An,r),Kn===null&&(Kn=r)):ui()}function ui(){U(Mt,Mt.current),U(An,An.current)}function Nn(r){$(An),Kn===r&&(Kn=null),$(Mt)}var Mt=j(0);function Ll(r){for(var a=r;a!==null;){if(a.tag===13){var h=a.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||Wh(h)||Vh(h)))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 Ir=0,Pe=null,dt=null,Pt=null,Ml=!1,Ya=!1,Qi=!1,Bl=0,Zs=0,Xa=null,N3=0;function Ot(){throw Error(i(321))}function Hd(r,a){if(a===null)return!1;for(var h=0;h<a.length&&h<r.length;h++)if(!Tn(r[h],a[h]))return!1;return!0}function zd(r,a,h,g,k,R){return Ir=R,Pe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,W.H=r===null||r.memoizedState===null?kS:rh,Qi=!1,R=h(g,k),Qi=!1,Ya&&(R=G_(a,h,g,k)),$_(r),R}function $_(r){W.H=eo;var a=dt!==null&&dt.next!==null;if(Ir=0,Pt=dt=Pe=null,Ml=!1,Zs=0,Xa=null,a)throw Error(i(300));r===null||Ut||(r=r.dependencies,r!==null&&kl(r)&&(Ut=!0))}function G_(r,a,h,g){Pe=r;var k=0;do{if(Ya&&(Xa=null),Zs=0,Ya=!1,25<=k)throw Error(i(301));if(k+=1,Pt=dt=null,r.updateQueue!=null){var R=r.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0)}W.H=TS,R=a(h,g)}while(Ya);return R}function O3(){var r=W.H,a=r.useState()[0];return a=typeof a.then=="function"?Qs(a):a,r=r.useState()[0],(dt!==null?dt.memoizedState:null)!==r&&(Pe.flags|=1024),a}function qd(){var r=Bl!==0;return Bl=0,r}function $d(r,a,h){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~h}function Gd(r){if(Ml){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Ml=!1}Ir=0,Pt=dt=Pe=null,Ya=!1,Zs=Bl=0,Xa=null}function on(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Pe.memoizedState=Pt=r:Pt=Pt.next=r,Pt}function Bt(){if(dt===null){var r=Pe.alternate;r=r!==null?r.memoizedState:null}else r=dt.next;var a=Pt===null?Pe.memoizedState:Pt.next;if(a!==null)Pt=a,dt=r;else{if(r===null)throw Pe.alternate===null?Error(i(467)):Error(i(310));dt=r,r={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},Pt===null?Pe.memoizedState=Pt=r:Pt=Pt.next=r}return Pt}function Fl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qs(r){var a=Zs;return Zs+=1,Xa===null&&(Xa=[]),r=M_(Xa,r,a),a=Pe,(Pt===null?a.memoizedState:Pt.next)===null&&(a=a.alternate,W.H=a===null||a.memoizedState===null?kS:rh),r}function jl(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Qs(r);if(r.$$typeof===_)return Zt(r)}throw Error(i(438,String(r)))}function Wd(r){var a=null,h=Pe.updateQueue;if(h!==null&&(a=h.memoCache),a==null){var g=Pe.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(a={data:g.data.map(function(k){return k.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),h===null&&(h=Fl(),Pe.updateQueue=h),h.memoCache=a,h=a.data[a.index],h===void 0)for(h=a.data[a.index]=Array(r),g=0;g<r;g++)h[g]=L;return a.index++,h}function Lr(r,a){return typeof a=="function"?a(r):a}function Pl(r){var a=Bt();return Vd(a,dt,r)}function Vd(r,a,h){var g=r.queue;if(g===null)throw Error(i(311));g.lastRenderedReducer=h;var k=r.baseQueue,R=g.pending;if(R!==null){if(k!==null){var F=k.next;k.next=R.next,R.next=F}a.baseQueue=k=R,g.pending=null}if(R=r.baseState,k===null)r.memoizedState=R;else{a=k.next;var G=F=null,X=null,ae=a,he=!1;do{var me=ae.lane&-536870913;if(me!==ae.lane?(Ke&me)===me:(Ir&me)===me){var se=ae.revertLane;if(se===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),me===$a&&(he=!0);else if((Ir&se)===se){ae=ae.next,se===$a&&(he=!0);continue}else me={lane:0,revertLane:ae.revertLane,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},X===null?(G=X=me,F=R):X=X.next=me,Pe.lanes|=se,hi|=se;me=ae.action,Qi&&h(R,me),R=ae.hasEagerState?ae.eagerState:h(R,me)}else se={lane:me,revertLane:ae.revertLane,gesture:ae.gesture,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},X===null?(G=X=se,F=R):X=X.next=se,Pe.lanes|=me,hi|=me;ae=ae.next}while(ae!==null&&ae!==a);if(X===null?F=R:X.next=G,!Tn(R,r.memoizedState)&&(Ut=!0,he&&(h=Ga,h!==null)))throw h;r.memoizedState=R,r.baseState=F,r.baseQueue=X,g.lastRenderedState=R}return k===null&&(g.lanes=0),[r.memoizedState,g.dispatch]}function Kd(r){var a=Bt(),h=a.queue;if(h===null)throw Error(i(311));h.lastRenderedReducer=r;var g=h.dispatch,k=h.pending,R=a.memoizedState;if(k!==null){h.pending=null;var F=k=k.next;do R=r(R,F.action),F=F.next;while(F!==k);Tn(R,a.memoizedState)||(Ut=!0),a.memoizedState=R,a.baseQueue===null&&(a.baseState=R),h.lastRenderedState=R}return[R,g]}function W_(r,a,h){var g=Pe,k=Bt(),R=Ze;if(R){if(h===void 0)throw Error(i(407));h=h()}else h=a();var F=!Tn((dt||k).memoizedState,h);if(F&&(k.memoizedState=h,Ut=!0),k=k.queue,Zd(Y_.bind(null,g,k,r),[r]),k.getSnapshot!==a||F||Pt!==null&&Pt.memoizedState.tag&1){if(g.flags|=2048,Za(9,{destroy:void 0},K_.bind(null,g,k,h,a),null),gt===null)throw Error(i(349));R||(Ir&127)!==0||V_(g,a,h)}return h}function V_(r,a,h){r.flags|=16384,r={getSnapshot:a,value:h},a=Pe.updateQueue,a===null?(a=Fl(),Pe.updateQueue=a,a.stores=[r]):(h=a.stores,h===null?a.stores=[r]:h.push(r))}function K_(r,a,h,g){a.value=h,a.getSnapshot=g,X_(a)&&Z_(r)}function Y_(r,a,h){return h(function(){X_(a)&&Z_(r)})}function X_(r){var a=r.getSnapshot;r=r.value;try{var h=a();return!Tn(r,h)}catch{return!0}}function Z_(r){var a=qi(r,2);a!==null&&vn(a,r,2)}function Yd(r){var a=on();if(typeof r=="function"){var h=r;if(r=h(),Qi){yt(!0);try{h()}finally{yt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lr,lastRenderedState:r},a}function Q_(r,a,h,g){return r.baseState=h,Vd(r,dt,typeof g=="function"?g:Lr)}function D3(r,a,h,g,k){if(zl(r))throw Error(i(485));if(r=a.action,r!==null){var R={payload:k,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){R.listeners.push(F)}};W.T!==null?h(!0):R.isTransition=!1,g(R),h=a.pending,h===null?(R.next=a.pending=R,J_(a,R)):(R.next=h.next,a.pending=h.next=R)}}function J_(r,a){var h=a.action,g=a.payload,k=r.state;if(a.isTransition){var R=W.T,F={};W.T=F;try{var G=h(k,g),X=W.S;X!==null&&X(F,G),eS(r,a,G)}catch(ae){Xd(r,a,ae)}finally{R!==null&&F.types!==null&&(R.types=F.types),W.T=R}}else try{R=h(k,g),eS(r,a,R)}catch(ae){Xd(r,a,ae)}}function eS(r,a,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(g){tS(r,a,g)},function(g){return Xd(r,a,g)}):tS(r,a,h)}function tS(r,a,h){a.status="fulfilled",a.value=h,nS(a),r.state=h,a=r.pending,a!==null&&(h=a.next,h===a?r.pending=null:(h=h.next,a.next=h,J_(r,h)))}function Xd(r,a,h){var g=r.pending;if(r.pending=null,g!==null){g=g.next;do a.status="rejected",a.reason=h,nS(a),a=a.next;while(a!==g)}r.action=null}function nS(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function rS(r,a){return a}function iS(r,a){if(Ze){var h=gt.formState;if(h!==null){e:{var g=Pe;if(Ze){if(xt){t:{for(var k=xt,R=Vn;k.nodeType!==8;){if(!R){k=null;break t}if(k=Yn(k.nextSibling),k===null){k=null;break t}}R=k.data,k=R==="F!"||R==="F"?k:null}if(k){xt=Yn(k.nextSibling),g=k.data==="F!";break e}}ri(g)}g=!1}g&&(a=h[0])}}return h=on(),h.memoizedState=h.baseState=a,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rS,lastRenderedState:a},h.queue=g,h=ES.bind(null,Pe,g),g.dispatch=h,g=Yd(!1),R=nh.bind(null,Pe,!1,g.queue),g=on(),k={state:a,dispatch:null,action:r,pending:null},g.queue=k,h=D3.bind(null,Pe,k,R,h),k.dispatch=h,g.memoizedState=r,[a,h,!1]}function aS(r){var a=Bt();return sS(a,dt,r)}function sS(r,a,h){if(a=Vd(r,a,rS)[0],r=Pl(Lr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var g=Qs(a)}catch(F){throw F===Wa?Al:F}else g=a;a=Bt();var k=a.queue,R=k.dispatch;return h!==a.memoizedState&&(Pe.flags|=2048,Za(9,{destroy:void 0},I3.bind(null,k,h),null)),[g,R,r]}function I3(r,a){r.action=a}function oS(r){var a=Bt(),h=dt;if(h!==null)return sS(a,h,r);Bt(),a=a.memoizedState,h=Bt();var g=h.queue.dispatch;return h.memoizedState=r,[a,g,!1]}function Za(r,a,h,g){return r={tag:r,create:h,deps:g,inst:a,next:null},a=Pe.updateQueue,a===null&&(a=Fl(),Pe.updateQueue=a),h=a.lastEffect,h===null?a.lastEffect=r.next=r:(g=h.next,h.next=r,r.next=g,a.lastEffect=r),r}function lS(){return Bt().memoizedState}function Ul(r,a,h,g){var k=on();Pe.flags|=r,k.memoizedState=Za(1|a,{destroy:void 0},h,g===void 0?null:g)}function Hl(r,a,h,g){var k=Bt();g=g===void 0?null:g;var R=k.memoizedState.inst;dt!==null&&g!==null&&Hd(g,dt.memoizedState.deps)?k.memoizedState=Za(a,R,h,g):(Pe.flags|=r,k.memoizedState=Za(1|a,R,h,g))}function uS(r,a){Ul(8390656,8,r,a)}function Zd(r,a){Hl(2048,8,r,a)}function L3(r){Pe.flags|=4;var a=Pe.updateQueue;if(a===null)a=Fl(),Pe.updateQueue=a,a.events=[r];else{var h=a.events;h===null?a.events=[r]:h.push(r)}}function cS(r){var a=Bt().memoizedState;return L3({ref:a,nextImpl:r}),function(){if((at&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function dS(r,a){return Hl(4,2,r,a)}function hS(r,a){return Hl(4,4,r,a)}function pS(r,a){if(typeof a=="function"){r=r();var h=a(r);return function(){typeof h=="function"?h():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function fS(r,a,h){h=h!=null?h.concat([r]):null,Hl(4,4,pS.bind(null,a,r),h)}function Qd(){}function mS(r,a){var h=Bt();a=a===void 0?null:a;var g=h.memoizedState;return a!==null&&Hd(a,g[1])?g[0]:(h.memoizedState=[r,a],r)}function gS(r,a){var h=Bt();a=a===void 0?null:a;var g=h.memoizedState;if(a!==null&&Hd(a,g[1]))return g[0];if(g=r(),Qi){yt(!0);try{r()}finally{yt(!1)}}return h.memoizedState=[g,a],g}function Jd(r,a,h){return h===void 0||(Ir&1073741824)!==0&&(Ke&261930)===0?r.memoizedState=a:(r.memoizedState=h,r=bx(),Pe.lanes|=r,hi|=r,h)}function bS(r,a,h,g){return Tn(h,a)?h:Ka.current!==null?(r=Jd(r,h,g),Tn(r,a)||(Ut=!0),r):(Ir&42)===0||(Ir&1073741824)!==0&&(Ke&261930)===0?(Ut=!0,r.memoizedState=h):(r=bx(),Pe.lanes|=r,hi|=r,a)}function yS(r,a,h,g,k){var R=Z.p;Z.p=R!==0&&8>R?R:8;var F=W.T,G={};W.T=G,nh(r,!1,a,h);try{var X=k(),ae=W.S;if(ae!==null&&ae(G,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var he=A3(X,g);Js(r,a,he,In(r))}else Js(r,a,g,In(r))}catch(me){Js(r,a,{then:function(){},status:"rejected",reason:me},In())}finally{Z.p=R,F!==null&&G.types!==null&&(F.types=G.types),W.T=F}}function M3(){}function eh(r,a,h,g){if(r.tag!==5)throw Error(i(476));var k=vS(r).queue;yS(r,k,a,Q,h===null?M3:function(){return _S(r),h(g)})}function vS(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:Lr,lastRenderedState:Q},next:null};var h={};return a.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lr,lastRenderedState:h},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function _S(r){var a=vS(r);a.next===null&&(a=r.alternate.memoizedState),Js(r,a.next.queue,{},In())}function th(){return Zt(bo)}function SS(){return Bt().memoizedState}function xS(){return Bt().memoizedState}function B3(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var h=In();r=si(h);var g=oi(a,r,h);g!==null&&(vn(g,a,h),Ks(g,a,h)),a={cache:Nd()},r.payload=a;return}a=a.return}}function F3(r,a,h){var g=In();h={lane:g,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},zl(r)?wS(a,h):(h=vd(r,a,h,g),h!==null&&(vn(h,r,g),CS(h,a,g)))}function ES(r,a,h){var g=In();Js(r,a,h,g)}function Js(r,a,h,g){var k={lane:g,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(zl(r))wS(a,k);else{var R=r.alternate;if(r.lanes===0&&(R===null||R.lanes===0)&&(R=a.lastRenderedReducer,R!==null))try{var F=a.lastRenderedState,G=R(F,h);if(k.hasEagerState=!0,k.eagerState=G,Tn(G,F))return xl(r,a,k,0),gt===null&&Sl(),!1}catch{}if(h=vd(r,a,k,g),h!==null)return vn(h,r,g),CS(h,a,g),!0}return!1}function nh(r,a,h,g){if(g={lane:2,revertLane:Lh(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},zl(r)){if(a)throw Error(i(479))}else a=vd(r,h,g,2),a!==null&&vn(a,r,2)}function zl(r){var a=r.alternate;return r===Pe||a!==null&&a===Pe}function wS(r,a){Ya=Ml=!0;var h=r.pending;h===null?a.next=a:(a.next=h.next,h.next=a),r.pending=a}function CS(r,a,h){if((h&4194048)!==0){var g=a.lanes;g&=r.pendingLanes,h|=g,a.lanes=h,N1(r,h)}}var eo={readContext:Zt,use:jl,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot};eo.useEffectEvent=Ot;var kS={readContext:Zt,use:jl,useCallback:function(r,a){return on().memoizedState=[r,a===void 0?null:a],r},useContext:Zt,useEffect:uS,useImperativeHandle:function(r,a,h){h=h!=null?h.concat([r]):null,Ul(4194308,4,pS.bind(null,a,r),h)},useLayoutEffect:function(r,a){return Ul(4194308,4,r,a)},useInsertionEffect:function(r,a){Ul(4,2,r,a)},useMemo:function(r,a){var h=on();a=a===void 0?null:a;var g=r();if(Qi){yt(!0);try{r()}finally{yt(!1)}}return h.memoizedState=[g,a],g},useReducer:function(r,a,h){var g=on();if(h!==void 0){var k=h(a);if(Qi){yt(!0);try{h(a)}finally{yt(!1)}}}else k=a;return g.memoizedState=g.baseState=k,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:k},g.queue=r,r=r.dispatch=F3.bind(null,Pe,r),[g.memoizedState,r]},useRef:function(r){var a=on();return r={current:r},a.memoizedState=r},useState:function(r){r=Yd(r);var a=r.queue,h=ES.bind(null,Pe,a);return a.dispatch=h,[r.memoizedState,h]},useDebugValue:Qd,useDeferredValue:function(r,a){var h=on();return Jd(h,r,a)},useTransition:function(){var r=Yd(!1);return r=yS.bind(null,Pe,r.queue,!0,!1),on().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,h){var g=Pe,k=on();if(Ze){if(h===void 0)throw Error(i(407));h=h()}else{if(h=a(),gt===null)throw Error(i(349));(Ke&127)!==0||V_(g,a,h)}k.memoizedState=h;var R={value:h,getSnapshot:a};return k.queue=R,uS(Y_.bind(null,g,R,r),[r]),g.flags|=2048,Za(9,{destroy:void 0},K_.bind(null,g,R,h,a),null),h},useId:function(){var r=on(),a=gt.identifierPrefix;if(Ze){var h=br,g=gr;h=(g&~(1<<32-Qe(g)-1)).toString(32)+h,a="_"+a+"R_"+h,h=Bl++,0<h&&(a+="H"+h.toString(32)),a+="_"}else h=N3++,a="_"+a+"r_"+h.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:th,useFormState:iS,useActionState:iS,useOptimistic:function(r){var a=on();a.memoizedState=a.baseState=r;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=h,a=nh.bind(null,Pe,!0,h),h.dispatch=a,[r,a]},useMemoCache:Wd,useCacheRefresh:function(){return on().memoizedState=B3.bind(null,Pe)},useEffectEvent:function(r){var a=on(),h={impl:r};return a.memoizedState=h,function(){if((at&2)!==0)throw Error(i(440));return h.impl.apply(void 0,arguments)}}},rh={readContext:Zt,use:jl,useCallback:mS,useContext:Zt,useEffect:Zd,useImperativeHandle:fS,useInsertionEffect:dS,useLayoutEffect:hS,useMemo:gS,useReducer:Pl,useRef:lS,useState:function(){return Pl(Lr)},useDebugValue:Qd,useDeferredValue:function(r,a){var h=Bt();return bS(h,dt.memoizedState,r,a)},useTransition:function(){var r=Pl(Lr)[0],a=Bt().memoizedState;return[typeof r=="boolean"?r:Qs(r),a]},useSyncExternalStore:W_,useId:SS,useHostTransitionStatus:th,useFormState:aS,useActionState:aS,useOptimistic:function(r,a){var h=Bt();return Q_(h,dt,r,a)},useMemoCache:Wd,useCacheRefresh:xS};rh.useEffectEvent=cS;var TS={readContext:Zt,use:jl,useCallback:mS,useContext:Zt,useEffect:Zd,useImperativeHandle:fS,useInsertionEffect:dS,useLayoutEffect:hS,useMemo:gS,useReducer:Kd,useRef:lS,useState:function(){return Kd(Lr)},useDebugValue:Qd,useDeferredValue:function(r,a){var h=Bt();return dt===null?Jd(h,r,a):bS(h,dt.memoizedState,r,a)},useTransition:function(){var r=Kd(Lr)[0],a=Bt().memoizedState;return[typeof r=="boolean"?r:Qs(r),a]},useSyncExternalStore:W_,useId:SS,useHostTransitionStatus:th,useFormState:oS,useActionState:oS,useOptimistic:function(r,a){var h=Bt();return dt!==null?Q_(h,dt,r,a):(h.baseState=r,[r,h.queue.dispatch])},useMemoCache:Wd,useCacheRefresh:xS};TS.useEffectEvent=cS;function ih(r,a,h,g){a=r.memoizedState,h=h(g,a),h=h==null?a:f({},a,h),r.memoizedState=h,r.lanes===0&&(r.updateQueue.baseState=h)}var ah={enqueueSetState:function(r,a,h){r=r._reactInternals;var g=In(),k=si(g);k.payload=a,h!=null&&(k.callback=h),a=oi(r,k,g),a!==null&&(vn(a,r,g),Ks(a,r,g))},enqueueReplaceState:function(r,a,h){r=r._reactInternals;var g=In(),k=si(g);k.tag=1,k.payload=a,h!=null&&(k.callback=h),a=oi(r,k,g),a!==null&&(vn(a,r,g),Ks(a,r,g))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var h=In(),g=si(h);g.tag=2,a!=null&&(g.callback=a),a=oi(r,g,h),a!==null&&(vn(a,r,h),Ks(a,r,h))}};function RS(r,a,h,g,k,R,F){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(g,R,F):a.prototype&&a.prototype.isPureReactComponent?!Us(h,g)||!Us(k,R):!0}function AS(r,a,h,g){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(h,g),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(h,g),a.state!==r&&ah.enqueueReplaceState(a,a.state,null)}function Ji(r,a){var h=a;if("ref"in a){h={};for(var g in a)g!=="ref"&&(h[g]=a[g])}if(r=r.defaultProps){h===a&&(h=f({},h));for(var k in r)h[k]===void 0&&(h[k]=r[k])}return h}function NS(r){_l(r)}function OS(r){console.error(r)}function DS(r){_l(r)}function ql(r,a){try{var h=r.onUncaughtError;h(a.value,{componentStack:a.stack})}catch(g){setTimeout(function(){throw g})}}function IS(r,a,h){try{var g=r.onCaughtError;g(h.value,{componentStack:h.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(k){setTimeout(function(){throw k})}}function sh(r,a,h){return h=si(h),h.tag=3,h.payload={element:null},h.callback=function(){ql(r,a)},h}function LS(r){return r=si(r),r.tag=3,r}function MS(r,a,h,g){var k=h.type.getDerivedStateFromError;if(typeof k=="function"){var R=g.value;r.payload=function(){return k(R)},r.callback=function(){IS(a,h,g)}}var F=h.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(r.callback=function(){IS(a,h,g),typeof k!="function"&&(pi===null?pi=new Set([this]):pi.add(this));var G=g.stack;this.componentDidCatch(g.value,{componentStack:G!==null?G:""})})}function j3(r,a,h,g,k){if(h.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(a=h.alternate,a!==null&&qa(a,h,k,!0),h=An.current,h!==null){switch(h.tag){case 31:case 13:return Kn===null?tu():h.alternate===null&&Dt===0&&(Dt=3),h.flags&=-257,h.flags|=65536,h.lanes=k,g===Nl?h.flags|=16384:(a=h.updateQueue,a===null?h.updateQueue=new Set([g]):a.add(g),Oh(r,g,k)),!1;case 22:return h.flags|=65536,g===Nl?h.flags|=16384:(a=h.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([g])},h.updateQueue=a):(h=a.retryQueue,h===null?a.retryQueue=new Set([g]):h.add(g)),Oh(r,g,k)),!1}throw Error(i(435,h.tag))}return Oh(r,g,k),tu(),!1}if(Ze)return a=An.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=k,g!==Cd&&(r=Error(i(422),{cause:g}),qs($n(r,h)))):(g!==Cd&&(a=Error(i(423),{cause:g}),qs($n(a,h))),r=r.current.alternate,r.flags|=65536,k&=-k,r.lanes|=k,g=$n(g,h),k=sh(r.stateNode,g,k),Bd(r,k),Dt!==4&&(Dt=2)),!1;var R=Error(i(520),{cause:g});if(R=$n(R,h),lo===null?lo=[R]:lo.push(R),Dt!==4&&(Dt=2),a===null)return!0;g=$n(g,h),h=a;do{switch(h.tag){case 3:return h.flags|=65536,r=k&-k,h.lanes|=r,r=sh(h.stateNode,g,r),Bd(h,r),!1;case 1:if(a=h.type,R=h.stateNode,(h.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(pi===null||!pi.has(R))))return h.flags|=65536,k&=-k,h.lanes|=k,k=LS(k),MS(k,r,h,g),Bd(h,k),!1}h=h.return}while(h!==null);return!1}var oh=Error(i(461)),Ut=!1;function Qt(r,a,h,g){a.child=r===null?P_(a,null,h,g):Zi(a,r.child,h,g)}function BS(r,a,h,g,k){h=h.render;var R=a.ref;if("ref"in g){var F={};for(var G in g)G!=="ref"&&(F[G]=g[G])}else F=g;return Vi(a),g=zd(r,a,h,F,R,k),G=qd(),r!==null&&!Ut?($d(r,a,k),Mr(r,a,k)):(Ze&&G&&Ed(a),a.flags|=1,Qt(r,a,g,k),a.child)}function FS(r,a,h,g,k){if(r===null){var R=h.type;return typeof R=="function"&&!_d(R)&&R.defaultProps===void 0&&h.compare===null?(a.tag=15,a.type=R,jS(r,a,R,g,k)):(r=wl(h.type,null,g,a,a.mode,k),r.ref=a.ref,r.return=a,a.child=r)}if(R=r.child,!mh(r,k)){var F=R.memoizedProps;if(h=h.compare,h=h!==null?h:Us,h(F,g)&&r.ref===a.ref)return Mr(r,a,k)}return a.flags|=1,r=Ar(R,g),r.ref=a.ref,r.return=a,a.child=r}function jS(r,a,h,g,k){if(r!==null){var R=r.memoizedProps;if(Us(R,g)&&r.ref===a.ref)if(Ut=!1,a.pendingProps=g=R,mh(r,k))(r.flags&131072)!==0&&(Ut=!0);else return a.lanes=r.lanes,Mr(r,a,k)}return lh(r,a,h,g,k)}function PS(r,a,h,g){var k=g.children,R=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((a.flags&128)!==0){if(R=R!==null?R.baseLanes|h:h,r!==null){for(g=a.child=r.child,k=0;g!==null;)k=k|g.lanes|g.childLanes,g=g.sibling;g=k&~R}else g=0,a.child=null;return US(r,a,R,h,g)}if((h&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Rl(a,R!==null?R.cachePool:null),R!==null?z_(a,R):jd(),q_(a);else return g=a.lanes=536870912,US(r,a,R!==null?R.baseLanes|h:h,h,g)}else R!==null?(Rl(a,R.cachePool),z_(a,R),ui(),a.memoizedState=null):(r!==null&&Rl(a,null),jd(),ui());return Qt(r,a,k,h),a.child}function to(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function US(r,a,h,g,k){var R=Dd();return R=R===null?null:{parent:jt._currentValue,pool:R},a.memoizedState={baseLanes:h,cachePool:R},r!==null&&Rl(a,null),jd(),q_(a),r!==null&&qa(r,a,g,!0),a.childLanes=k,null}function $l(r,a){return a=Wl({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function HS(r,a,h){return Zi(a,r.child,null,h),r=$l(a,a.pendingProps),r.flags|=2,Nn(a),a.memoizedState=null,r}function P3(r,a,h){var g=a.pendingProps,k=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Ze){if(g.mode==="hidden")return r=$l(a,g),a.lanes=536870912,to(null,r);if(Ud(a),(r=xt)?(r=Jx(r,Vn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ti!==null?{id:gr,overflow:br}:null,retryLane:536870912,hydrationErrors:null},h=w_(r),h.return=a,a.child=h,Xt=a,xt=null)):r=null,r===null)throw ri(a);return a.lanes=536870912,null}return $l(a,g)}var R=r.memoizedState;if(R!==null){var F=R.dehydrated;if(Ud(a),k)if(a.flags&256)a.flags&=-257,a=HS(r,a,h);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(Ut||qa(r,a,h,!1),k=(h&r.childLanes)!==0,Ut||k){if(g=gt,g!==null&&(F=O1(g,h),F!==0&&F!==R.retryLane))throw R.retryLane=F,qi(r,F),vn(g,r,F),oh;tu(),a=HS(r,a,h)}else r=R.treeContext,xt=Yn(F.nextSibling),Xt=a,Ze=!0,ni=null,Vn=!1,r!==null&&T_(a,r),a=$l(a,g),a.flags|=4096;return a}return r=Ar(r.child,{mode:g.mode,children:g.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Gl(r,a){var h=a.ref;if(h===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(i(284));(r===null||r.ref!==h)&&(a.flags|=4194816)}}function lh(r,a,h,g,k){return Vi(a),h=zd(r,a,h,g,void 0,k),g=qd(),r!==null&&!Ut?($d(r,a,k),Mr(r,a,k)):(Ze&&g&&Ed(a),a.flags|=1,Qt(r,a,h,k),a.child)}function zS(r,a,h,g,k,R){return Vi(a),a.updateQueue=null,h=G_(a,g,h,k),$_(r),g=qd(),r!==null&&!Ut?($d(r,a,R),Mr(r,a,R)):(Ze&&g&&Ed(a),a.flags|=1,Qt(r,a,h,R),a.child)}function qS(r,a,h,g,k){if(Vi(a),a.stateNode===null){var R=Pa,F=h.contextType;typeof F=="object"&&F!==null&&(R=Zt(F)),R=new h(g,R),a.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=ah,a.stateNode=R,R._reactInternals=a,R=a.stateNode,R.props=g,R.state=a.memoizedState,R.refs={},Ld(a),F=h.contextType,R.context=typeof F=="object"&&F!==null?Zt(F):Pa,R.state=a.memoizedState,F=h.getDerivedStateFromProps,typeof F=="function"&&(ih(a,h,F,g),R.state=a.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(F=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),F!==R.state&&ah.enqueueReplaceState(R,R.state,null),Xs(a,g,R,k),Ys(),R.state=a.memoizedState),typeof R.componentDidMount=="function"&&(a.flags|=4194308),g=!0}else if(r===null){R=a.stateNode;var G=a.memoizedProps,X=Ji(h,G);R.props=X;var ae=R.context,he=h.contextType;F=Pa,typeof he=="object"&&he!==null&&(F=Zt(he));var me=h.getDerivedStateFromProps;he=typeof me=="function"||typeof R.getSnapshotBeforeUpdate=="function",G=a.pendingProps!==G,he||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(G||ae!==F)&&AS(a,R,g,F),ai=!1;var se=a.memoizedState;R.state=se,Xs(a,g,R,k),Ys(),ae=a.memoizedState,G||se!==ae||ai?(typeof me=="function"&&(ih(a,h,me,g),ae=a.memoizedState),(X=ai||RS(a,h,X,g,se,ae,F))?(he||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(a.flags|=4194308)):(typeof R.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=g,a.memoizedState=ae),R.props=g,R.state=ae,R.context=F,g=X):(typeof R.componentDidMount=="function"&&(a.flags|=4194308),g=!1)}else{R=a.stateNode,Md(r,a),F=a.memoizedProps,he=Ji(h,F),R.props=he,me=a.pendingProps,se=R.context,ae=h.contextType,X=Pa,typeof ae=="object"&&ae!==null&&(X=Zt(ae)),G=h.getDerivedStateFromProps,(ae=typeof G=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(F!==me||se!==X)&&AS(a,R,g,X),ai=!1,se=a.memoizedState,R.state=se,Xs(a,g,R,k),Ys();var le=a.memoizedState;F!==me||se!==le||ai||r!==null&&r.dependencies!==null&&kl(r.dependencies)?(typeof G=="function"&&(ih(a,h,G,g),le=a.memoizedState),(he=ai||RS(a,h,he,g,se,le,X)||r!==null&&r.dependencies!==null&&kl(r.dependencies))?(ae||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(g,le,X),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(g,le,X)),typeof R.componentDidUpdate=="function"&&(a.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof R.componentDidUpdate!="function"||F===r.memoizedProps&&se===r.memoizedState||(a.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||F===r.memoizedProps&&se===r.memoizedState||(a.flags|=1024),a.memoizedProps=g,a.memoizedState=le),R.props=g,R.state=le,R.context=X,g=he):(typeof R.componentDidUpdate!="function"||F===r.memoizedProps&&se===r.memoizedState||(a.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||F===r.memoizedProps&&se===r.memoizedState||(a.flags|=1024),g=!1)}return R=g,Gl(r,a),g=(a.flags&128)!==0,R||g?(R=a.stateNode,h=g&&typeof h.getDerivedStateFromError!="function"?null:R.render(),a.flags|=1,r!==null&&g?(a.child=Zi(a,r.child,null,k),a.child=Zi(a,null,h,k)):Qt(r,a,h,k),a.memoizedState=R.state,r=a.child):r=Mr(r,a,k),r}function $S(r,a,h,g){return Gi(),a.flags|=256,Qt(r,a,h,g),a.child}var uh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ch(r){return{baseLanes:r,cachePool:I_()}}function dh(r,a,h){return r=r!==null?r.childLanes&~h:0,a&&(r|=Dn),r}function GS(r,a,h){var g=a.pendingProps,k=!1,R=(a.flags&128)!==0,F;if((F=R)||(F=r!==null&&r.memoizedState===null?!1:(Mt.current&2)!==0),F&&(k=!0,a.flags&=-129),F=(a.flags&32)!==0,a.flags&=-33,r===null){if(Ze){if(k?li(a):ui(),(r=xt)?(r=Jx(r,Vn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ti!==null?{id:gr,overflow:br}:null,retryLane:536870912,hydrationErrors:null},h=w_(r),h.return=a,a.child=h,Xt=a,xt=null)):r=null,r===null)throw ri(a);return Vh(r)?a.lanes=32:a.lanes=536870912,null}var G=g.children;return g=g.fallback,k?(ui(),k=a.mode,G=Wl({mode:"hidden",children:G},k),g=$i(g,k,h,null),G.return=a,g.return=a,G.sibling=g,a.child=G,g=a.child,g.memoizedState=ch(h),g.childLanes=dh(r,F,h),a.memoizedState=uh,to(null,g)):(li(a),hh(a,G))}var X=r.memoizedState;if(X!==null&&(G=X.dehydrated,G!==null)){if(R)a.flags&256?(li(a),a.flags&=-257,a=ph(r,a,h)):a.memoizedState!==null?(ui(),a.child=r.child,a.flags|=128,a=null):(ui(),G=g.fallback,k=a.mode,g=Wl({mode:"visible",children:g.children},k),G=$i(G,k,h,null),G.flags|=2,g.return=a,G.return=a,g.sibling=G,a.child=g,Zi(a,r.child,null,h),g=a.child,g.memoizedState=ch(h),g.childLanes=dh(r,F,h),a.memoizedState=uh,a=to(null,g));else if(li(a),Vh(G)){if(F=G.nextSibling&&G.nextSibling.dataset,F)var ae=F.dgst;F=ae,g=Error(i(419)),g.stack="",g.digest=F,qs({value:g,source:null,stack:null}),a=ph(r,a,h)}else if(Ut||qa(r,a,h,!1),F=(h&r.childLanes)!==0,Ut||F){if(F=gt,F!==null&&(g=O1(F,h),g!==0&&g!==X.retryLane))throw X.retryLane=g,qi(r,g),vn(F,r,g),oh;Wh(G)||tu(),a=ph(r,a,h)}else Wh(G)?(a.flags|=192,a.child=r.child,a=null):(r=X.treeContext,xt=Yn(G.nextSibling),Xt=a,Ze=!0,ni=null,Vn=!1,r!==null&&T_(a,r),a=hh(a,g.children),a.flags|=4096);return a}return k?(ui(),G=g.fallback,k=a.mode,X=r.child,ae=X.sibling,g=Ar(X,{mode:"hidden",children:g.children}),g.subtreeFlags=X.subtreeFlags&65011712,ae!==null?G=Ar(ae,G):(G=$i(G,k,h,null),G.flags|=2),G.return=a,g.return=a,g.sibling=G,a.child=g,to(null,g),g=a.child,G=r.child.memoizedState,G===null?G=ch(h):(k=G.cachePool,k!==null?(X=jt._currentValue,k=k.parent!==X?{parent:X,pool:X}:k):k=I_(),G={baseLanes:G.baseLanes|h,cachePool:k}),g.memoizedState=G,g.childLanes=dh(r,F,h),a.memoizedState=uh,to(r.child,g)):(li(a),h=r.child,r=h.sibling,h=Ar(h,{mode:"visible",children:g.children}),h.return=a,h.sibling=null,r!==null&&(F=a.deletions,F===null?(a.deletions=[r],a.flags|=16):F.push(r)),a.child=h,a.memoizedState=null,h)}function hh(r,a){return a=Wl({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Wl(r,a){return r=Rn(22,r,null,a),r.lanes=0,r}function ph(r,a,h){return Zi(a,r.child,null,h),r=hh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function WS(r,a,h){r.lanes|=a;var g=r.alternate;g!==null&&(g.lanes|=a),Rd(r.return,a,h)}function fh(r,a,h,g,k,R){var F=r.memoizedState;F===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:g,tail:h,tailMode:k,treeForkCount:R}:(F.isBackwards=a,F.rendering=null,F.renderingStartTime=0,F.last=g,F.tail=h,F.tailMode=k,F.treeForkCount=R)}function VS(r,a,h){var g=a.pendingProps,k=g.revealOrder,R=g.tail;g=g.children;var F=Mt.current,G=(F&2)!==0;if(G?(F=F&1|2,a.flags|=128):F&=1,U(Mt,F),Qt(r,a,g,h),g=Ze?zs:0,!G&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&WS(r,h,a);else if(r.tag===19)WS(r,h,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(k){case"forwards":for(h=a.child,k=null;h!==null;)r=h.alternate,r!==null&&Ll(r)===null&&(k=h),h=h.sibling;h=k,h===null?(k=a.child,a.child=null):(k=h.sibling,h.sibling=null),fh(a,!1,k,h,R,g);break;case"backwards":case"unstable_legacy-backwards":for(h=null,k=a.child,a.child=null;k!==null;){if(r=k.alternate,r!==null&&Ll(r)===null){a.child=k;break}r=k.sibling,k.sibling=h,h=k,k=r}fh(a,!0,h,null,R,g);break;case"together":fh(a,!1,null,null,void 0,g);break;default:a.memoizedState=null}return a.child}function Mr(r,a,h){if(r!==null&&(a.dependencies=r.dependencies),hi|=a.lanes,(h&a.childLanes)===0)if(r!==null){if(qa(r,a,h,!1),(h&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,h=Ar(r,r.pendingProps),a.child=h,h.return=a;r.sibling!==null;)r=r.sibling,h=h.sibling=Ar(r,r.pendingProps),h.return=a;h.sibling=null}return a.child}function mh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&kl(r)))}function U3(r,a,h){switch(a.tag){case 3:z(a,a.stateNode.containerInfo),ii(a,jt,r.memoizedState.cache),Gi();break;case 27:case 5:ce(a);break;case 4:z(a,a.stateNode.containerInfo);break;case 10:ii(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Ud(a),null;break;case 13:var g=a.memoizedState;if(g!==null)return g.dehydrated!==null?(li(a),a.flags|=128,null):(h&a.child.childLanes)!==0?GS(r,a,h):(li(a),r=Mr(r,a,h),r!==null?r.sibling:null);li(a);break;case 19:var k=(r.flags&128)!==0;if(g=(h&a.childLanes)!==0,g||(qa(r,a,h,!1),g=(h&a.childLanes)!==0),k){if(g)return VS(r,a,h);a.flags|=128}if(k=a.memoizedState,k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),U(Mt,Mt.current),g)break;return null;case 22:return a.lanes=0,PS(r,a,h,a.pendingProps);case 24:ii(a,jt,r.memoizedState.cache)}return Mr(r,a,h)}function KS(r,a,h){if(r!==null)if(r.memoizedProps!==a.pendingProps)Ut=!0;else{if(!mh(r,h)&&(a.flags&128)===0)return Ut=!1,U3(r,a,h);Ut=(r.flags&131072)!==0}else Ut=!1,Ze&&(a.flags&1048576)!==0&&k_(a,zs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var g=a.pendingProps;if(r=Yi(a.elementType),a.type=r,typeof r=="function")_d(r)?(g=Ji(r,g),a.tag=1,a=qS(null,a,r,g,h)):(a.tag=0,a=lh(null,a,r,g,h));else{if(r!=null){var k=r.$$typeof;if(k===C){a.tag=11,a=BS(null,a,r,g,h);break e}else if(k===O){a.tag=14,a=FS(null,a,r,g,h);break e}}throw a=V(r)||r,Error(i(306,a,""))}}return a;case 0:return lh(r,a,a.type,a.pendingProps,h);case 1:return g=a.type,k=Ji(g,a.pendingProps),qS(r,a,g,k,h);case 3:e:{if(z(a,a.stateNode.containerInfo),r===null)throw Error(i(387));g=a.pendingProps;var R=a.memoizedState;k=R.element,Md(r,a),Xs(a,g,null,h);var F=a.memoizedState;if(g=F.cache,ii(a,jt,g),g!==R.cache&&Ad(a,[jt],h,!0),Ys(),g=F.element,R.isDehydrated)if(R={element:g,isDehydrated:!1,cache:F.cache},a.updateQueue.baseState=R,a.memoizedState=R,a.flags&256){a=$S(r,a,g,h);break e}else if(g!==k){k=$n(Error(i(424)),a),qs(k),a=$S(r,a,g,h);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,xt=Yn(r.firstChild),Xt=a,Ze=!0,ni=null,Vn=!0,h=P_(a,null,g,h),a.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(Gi(),g===k){a=Mr(r,a,h);break e}Qt(r,a,g,h)}a=a.child}return a;case 26:return Gl(r,a),r===null?(h=aE(a.type,null,a.pendingProps,null))?a.memoizedState=h:Ze||(h=a.type,r=a.pendingProps,g=lu(de.current).createElement(h),g[Yt]=a,g[pn]=r,Jt(g,h,r),Wt(g),a.stateNode=g):a.memoizedState=aE(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return ce(a),r===null&&Ze&&(g=a.stateNode=nE(a.type,a.pendingProps,de.current),Xt=a,Vn=!0,k=xt,bi(a.type)?(Kh=k,xt=Yn(g.firstChild)):xt=k),Qt(r,a,a.pendingProps.children,h),Gl(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Ze&&((k=g=xt)&&(g=g5(g,a.type,a.pendingProps,Vn),g!==null?(a.stateNode=g,Xt=a,xt=Yn(g.firstChild),Vn=!1,k=!0):k=!1),k||ri(a)),ce(a),k=a.type,R=a.pendingProps,F=r!==null?r.memoizedProps:null,g=R.children,qh(k,R)?g=null:F!==null&&qh(k,F)&&(a.flags|=32),a.memoizedState!==null&&(k=zd(r,a,O3,null,null,h),bo._currentValue=k),Gl(r,a),Qt(r,a,g,h),a.child;case 6:return r===null&&Ze&&((r=h=xt)&&(h=b5(h,a.pendingProps,Vn),h!==null?(a.stateNode=h,Xt=a,xt=null,r=!0):r=!1),r||ri(a)),null;case 13:return GS(r,a,h);case 4:return z(a,a.stateNode.containerInfo),g=a.pendingProps,r===null?a.child=Zi(a,null,g,h):Qt(r,a,g,h),a.child;case 11:return BS(r,a,a.type,a.pendingProps,h);case 7:return Qt(r,a,a.pendingProps,h),a.child;case 8:return Qt(r,a,a.pendingProps.children,h),a.child;case 12:return Qt(r,a,a.pendingProps.children,h),a.child;case 10:return g=a.pendingProps,ii(a,a.type,g.value),Qt(r,a,g.children,h),a.child;case 9:return k=a.type._context,g=a.pendingProps.children,Vi(a),k=Zt(k),g=g(k),a.flags|=1,Qt(r,a,g,h),a.child;case 14:return FS(r,a,a.type,a.pendingProps,h);case 15:return jS(r,a,a.type,a.pendingProps,h);case 19:return VS(r,a,h);case 31:return P3(r,a,h);case 22:return PS(r,a,h,a.pendingProps);case 24:return Vi(a),g=Zt(jt),r===null?(k=Dd(),k===null&&(k=gt,R=Nd(),k.pooledCache=R,R.refCount++,R!==null&&(k.pooledCacheLanes|=h),k=R),a.memoizedState={parent:g,cache:k},Ld(a),ii(a,jt,k)):((r.lanes&h)!==0&&(Md(r,a),Xs(a,null,null,h),Ys()),k=r.memoizedState,R=a.memoizedState,k.parent!==g?(k={parent:g,cache:g},a.memoizedState=k,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=k),ii(a,jt,g)):(g=R.cache,ii(a,jt,g),g!==k.cache&&Ad(a,[jt],h,!0))),Qt(r,a,a.pendingProps.children,h),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Br(r){r.flags|=4}function gh(r,a,h,g,k){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(k&335544128)===k)if(r.stateNode.complete)r.flags|=8192;else if(Sx())r.flags|=8192;else throw Xi=Nl,Id}else r.flags&=-16777217}function YS(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!cE(a))if(Sx())r.flags|=8192;else throw Xi=Nl,Id}function Vl(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?R1():536870912,r.lanes|=a,ts|=a)}function no(r,a){if(!Ze)switch(r.tailMode){case"hidden":a=r.tail;for(var h=null;a!==null;)a.alternate!==null&&(h=a),a=a.sibling;h===null?r.tail=null:h.sibling=null;break;case"collapsed":h=r.tail;for(var g=null;h!==null;)h.alternate!==null&&(g=h),h=h.sibling;g===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:g.sibling=null}}function Et(r){var a=r.alternate!==null&&r.alternate.child===r.child,h=0,g=0;if(a)for(var k=r.child;k!==null;)h|=k.lanes|k.childLanes,g|=k.subtreeFlags&65011712,g|=k.flags&65011712,k.return=r,k=k.sibling;else for(k=r.child;k!==null;)h|=k.lanes|k.childLanes,g|=k.subtreeFlags,g|=k.flags,k.return=r,k=k.sibling;return r.subtreeFlags|=g,r.childLanes=h,a}function H3(r,a,h){var g=a.pendingProps;switch(wd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(a),null;case 1:return Et(a),null;case 3:return h=a.stateNode,g=null,r!==null&&(g=r.memoizedState.cache),a.memoizedState.cache!==g&&(a.flags|=2048),Dr(jt),te(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(r===null||r.child===null)&&(za(a)?Br(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,kd())),Et(a),null;case 26:var k=a.type,R=a.memoizedState;return r===null?(Br(a),R!==null?(Et(a),YS(a,R)):(Et(a),gh(a,k,null,g,h))):R?R!==r.memoizedState?(Br(a),Et(a),YS(a,R)):(Et(a),a.flags&=-16777217):(r=r.memoizedProps,r!==g&&Br(a),Et(a),gh(a,k,r,g,h)),null;case 27:if(ge(a),h=de.current,k=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Br(a);else{if(!g){if(a.stateNode===null)throw Error(i(166));return Et(a),null}r=J.current,za(a)?R_(a):(r=nE(k,g,h),a.stateNode=r,Br(a))}return Et(a),null;case 5:if(ge(a),k=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Br(a);else{if(!g){if(a.stateNode===null)throw Error(i(166));return Et(a),null}if(R=J.current,za(a))R_(a);else{var F=lu(de.current);switch(R){case 1:R=F.createElementNS("http://www.w3.org/2000/svg",k);break;case 2:R=F.createElementNS("http://www.w3.org/1998/Math/MathML",k);break;default:switch(k){case"svg":R=F.createElementNS("http://www.w3.org/2000/svg",k);break;case"math":R=F.createElementNS("http://www.w3.org/1998/Math/MathML",k);break;case"script":R=F.createElement("div"),R.innerHTML="<script><\/script>",R=R.removeChild(R.firstChild);break;case"select":R=typeof g.is=="string"?F.createElement("select",{is:g.is}):F.createElement("select"),g.multiple?R.multiple=!0:g.size&&(R.size=g.size);break;default:R=typeof g.is=="string"?F.createElement(k,{is:g.is}):F.createElement(k)}}R[Yt]=a,R[pn]=g;e:for(F=a.child;F!==null;){if(F.tag===5||F.tag===6)R.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===a)break e;for(;F.sibling===null;){if(F.return===null||F.return===a)break e;F=F.return}F.sibling.return=F.return,F=F.sibling}a.stateNode=R;e:switch(Jt(R,k,g),k){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&Br(a)}}return Et(a),gh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,h),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==g&&Br(a);else{if(typeof g!="string"&&a.stateNode===null)throw Error(i(166));if(r=de.current,za(a)){if(r=a.stateNode,h=a.memoizedProps,g=null,k=Xt,k!==null)switch(k.tag){case 27:case 5:g=k.memoizedProps}r[Yt]=a,r=!!(r.nodeValue===h||g!==null&&g.suppressHydrationWarning===!0||Gx(r.nodeValue,h)),r||ri(a,!0)}else r=lu(r).createTextNode(g),r[Yt]=a,a.stateNode=r}return Et(a),null;case 31:if(h=a.memoizedState,r===null||r.memoizedState!==null){if(g=za(a),h!==null){if(r===null){if(!g)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Yt]=a}else Gi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Et(a),r=!1}else h=kd(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=h),r=!0;if(!r)return a.flags&256?(Nn(a),a):(Nn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Et(a),null;case 13:if(g=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(k=za(a),g!==null&&g.dehydrated!==null){if(r===null){if(!k)throw Error(i(318));if(k=a.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(i(317));k[Yt]=a}else Gi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Et(a),k=!1}else k=kd(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=k),k=!0;if(!k)return a.flags&256?(Nn(a),a):(Nn(a),null)}return Nn(a),(a.flags&128)!==0?(a.lanes=h,a):(h=g!==null,r=r!==null&&r.memoizedState!==null,h&&(g=a.child,k=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(k=g.alternate.memoizedState.cachePool.pool),R=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(R=g.memoizedState.cachePool.pool),R!==k&&(g.flags|=2048)),h!==r&&h&&(a.child.flags|=8192),Vl(a,a.updateQueue),Et(a),null);case 4:return te(),r===null&&jh(a.stateNode.containerInfo),Et(a),null;case 10:return Dr(a.type),Et(a),null;case 19:if($(Mt),g=a.memoizedState,g===null)return Et(a),null;if(k=(a.flags&128)!==0,R=g.rendering,R===null)if(k)no(g,!1);else{if(Dt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(R=Ll(r),R!==null){for(a.flags|=128,no(g,!1),r=R.updateQueue,a.updateQueue=r,Vl(a,r),a.subtreeFlags=0,r=h,h=a.child;h!==null;)E_(h,r),h=h.sibling;return U(Mt,Mt.current&1|2),Ze&&Nr(a,g.treeForkCount),a.child}r=r.sibling}g.tail!==null&&Ie()>Ql&&(a.flags|=128,k=!0,no(g,!1),a.lanes=4194304)}else{if(!k)if(r=Ll(R),r!==null){if(a.flags|=128,k=!0,r=r.updateQueue,a.updateQueue=r,Vl(a,r),no(g,!0),g.tail===null&&g.tailMode==="hidden"&&!R.alternate&&!Ze)return Et(a),null}else 2*Ie()-g.renderingStartTime>Ql&&h!==536870912&&(a.flags|=128,k=!0,no(g,!1),a.lanes=4194304);g.isBackwards?(R.sibling=a.child,a.child=R):(r=g.last,r!==null?r.sibling=R:a.child=R,g.last=R)}return g.tail!==null?(r=g.tail,g.rendering=r,g.tail=r.sibling,g.renderingStartTime=Ie(),r.sibling=null,h=Mt.current,U(Mt,k?h&1|2:h&1),Ze&&Nr(a,g.treeForkCount),r):(Et(a),null);case 22:case 23:return Nn(a),Pd(),g=a.memoizedState!==null,r!==null?r.memoizedState!==null!==g&&(a.flags|=8192):g&&(a.flags|=8192),g?(h&536870912)!==0&&(a.flags&128)===0&&(Et(a),a.subtreeFlags&6&&(a.flags|=8192)):Et(a),h=a.updateQueue,h!==null&&Vl(a,h.retryQueue),h=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(h=r.memoizedState.cachePool.pool),g=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(g=a.memoizedState.cachePool.pool),g!==h&&(a.flags|=2048),r!==null&&$(Ki),null;case 24:return h=null,r!==null&&(h=r.memoizedState.cache),a.memoizedState.cache!==h&&(a.flags|=2048),Dr(jt),Et(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function z3(r,a){switch(wd(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Dr(jt),te(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return ge(a),null;case 31:if(a.memoizedState!==null){if(Nn(a),a.alternate===null)throw Error(i(340));Gi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Nn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Gi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return $(Mt),null;case 4:return te(),null;case 10:return Dr(a.type),null;case 22:case 23:return Nn(a),Pd(),r!==null&&$(Ki),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Dr(jt),null;case 25:return null;default:return null}}function XS(r,a){switch(wd(a),a.tag){case 3:Dr(jt),te();break;case 26:case 27:case 5:ge(a);break;case 4:te();break;case 31:a.memoizedState!==null&&Nn(a);break;case 13:Nn(a);break;case 19:$(Mt);break;case 10:Dr(a.type);break;case 22:case 23:Nn(a),Pd(),r!==null&&$(Ki);break;case 24:Dr(jt)}}function ro(r,a){try{var h=a.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var k=g.next;h=k;do{if((h.tag&r)===r){g=void 0;var R=h.create,F=h.inst;g=R(),F.destroy=g}h=h.next}while(h!==k)}}catch(G){ct(a,a.return,G)}}function ci(r,a,h){try{var g=a.updateQueue,k=g!==null?g.lastEffect:null;if(k!==null){var R=k.next;g=R;do{if((g.tag&r)===r){var F=g.inst,G=F.destroy;if(G!==void 0){F.destroy=void 0,k=a;var X=h,ae=G;try{ae()}catch(he){ct(k,X,he)}}}g=g.next}while(g!==R)}}catch(he){ct(a,a.return,he)}}function ZS(r){var a=r.updateQueue;if(a!==null){var h=r.stateNode;try{H_(a,h)}catch(g){ct(r,r.return,g)}}}function QS(r,a,h){h.props=Ji(r.type,r.memoizedProps),h.state=r.memoizedState;try{h.componentWillUnmount()}catch(g){ct(r,a,g)}}function io(r,a){try{var h=r.ref;if(h!==null){switch(r.tag){case 26:case 27:case 5:var g=r.stateNode;break;case 30:g=r.stateNode;break;default:g=r.stateNode}typeof h=="function"?r.refCleanup=h(g):h.current=g}}catch(k){ct(r,a,k)}}function yr(r,a){var h=r.ref,g=r.refCleanup;if(h!==null)if(typeof g=="function")try{g()}catch(k){ct(r,a,k)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(k){ct(r,a,k)}else h.current=null}function JS(r){var a=r.type,h=r.memoizedProps,g=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":h.autoFocus&&g.focus();break e;case"img":h.src?g.src=h.src:h.srcSet&&(g.srcset=h.srcSet)}}catch(k){ct(r,r.return,k)}}function bh(r,a,h){try{var g=r.stateNode;c5(g,r.type,h,a),g[pn]=a}catch(k){ct(r,r.return,k)}}function ex(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&bi(r.type)||r.tag===4}function yh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||ex(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&&bi(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 vh(r,a,h){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(r,a):(a=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,a.appendChild(r),h=h._reactRootContainer,h!=null||a.onclick!==null||(a.onclick=Tr));else if(g!==4&&(g===27&&bi(r.type)&&(h=r.stateNode,a=null),r=r.child,r!==null))for(vh(r,a,h),r=r.sibling;r!==null;)vh(r,a,h),r=r.sibling}function Kl(r,a,h){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?h.insertBefore(r,a):h.appendChild(r);else if(g!==4&&(g===27&&bi(r.type)&&(h=r.stateNode),r=r.child,r!==null))for(Kl(r,a,h),r=r.sibling;r!==null;)Kl(r,a,h),r=r.sibling}function tx(r){var a=r.stateNode,h=r.memoizedProps;try{for(var g=r.type,k=a.attributes;k.length;)a.removeAttributeNode(k[0]);Jt(a,g,h),a[Yt]=r,a[pn]=h}catch(R){ct(r,r.return,R)}}var Fr=!1,Ht=!1,_h=!1,nx=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function q3(r,a){if(r=r.containerInfo,Hh=mu,r=f_(r),pd(r)){if("selectionStart"in r)var h={start:r.selectionStart,end:r.selectionEnd};else e:{h=(h=r.ownerDocument)&&h.defaultView||window;var g=h.getSelection&&h.getSelection();if(g&&g.rangeCount!==0){h=g.anchorNode;var k=g.anchorOffset,R=g.focusNode;g=g.focusOffset;try{h.nodeType,R.nodeType}catch{h=null;break e}var F=0,G=-1,X=-1,ae=0,he=0,me=r,se=null;t:for(;;){for(var le;me!==h||k!==0&&me.nodeType!==3||(G=F+k),me!==R||g!==0&&me.nodeType!==3||(X=F+g),me.nodeType===3&&(F+=me.nodeValue.length),(le=me.firstChild)!==null;)se=me,me=le;for(;;){if(me===r)break t;if(se===h&&++ae===k&&(G=F),se===R&&++he===g&&(X=F),(le=me.nextSibling)!==null)break;me=se,se=me.parentNode}me=le}h=G===-1||X===-1?null:{start:G,end:X}}else h=null}h=h||{start:0,end:0}}else h=null;for(zh={focusedElem:r,selectionRange:h},mu=!1,Vt=a;Vt!==null;)if(a=Vt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Vt=r;else for(;Vt!==null;){switch(a=Vt,R=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(h=0;h<r.length;h++)k=r[h],k.ref.impl=k.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&R!==null){r=void 0,h=a,k=R.memoizedProps,R=R.memoizedState,g=h.stateNode;try{var Ee=Ji(h.type,k);r=g.getSnapshotBeforeUpdate(Ee,R),g.__reactInternalSnapshotBeforeUpdate=r}catch(Ae){ct(h,h.return,Ae)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,h=r.nodeType,h===9)Gh(r);else if(h===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Gh(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,Vt=r;break}Vt=a.return}}function rx(r,a,h){var g=h.flags;switch(h.tag){case 0:case 11:case 15:Pr(r,h),g&4&&ro(5,h);break;case 1:if(Pr(r,h),g&4)if(r=h.stateNode,a===null)try{r.componentDidMount()}catch(F){ct(h,h.return,F)}else{var k=Ji(h.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(k,a,r.__reactInternalSnapshotBeforeUpdate)}catch(F){ct(h,h.return,F)}}g&64&&ZS(h),g&512&&io(h,h.return);break;case 3:if(Pr(r,h),g&64&&(r=h.updateQueue,r!==null)){if(a=null,h.child!==null)switch(h.child.tag){case 27:case 5:a=h.child.stateNode;break;case 1:a=h.child.stateNode}try{H_(r,a)}catch(F){ct(h,h.return,F)}}break;case 27:a===null&&g&4&&tx(h);case 26:case 5:Pr(r,h),a===null&&g&4&&JS(h),g&512&&io(h,h.return);break;case 12:Pr(r,h);break;case 31:Pr(r,h),g&4&&sx(r,h);break;case 13:Pr(r,h),g&4&&ox(r,h),g&64&&(r=h.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(h=Q3.bind(null,h),y5(r,h))));break;case 22:if(g=h.memoizedState!==null||Fr,!g){a=a!==null&&a.memoizedState!==null||Ht,k=Fr;var R=Ht;Fr=g,(Ht=a)&&!R?Ur(r,h,(h.subtreeFlags&8772)!==0):Pr(r,h),Fr=k,Ht=R}break;case 30:break;default:Pr(r,h)}}function ix(r){var a=r.alternate;a!==null&&(r.alternate=null,ix(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Xc(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 Ct=null,mn=!1;function jr(r,a,h){for(h=h.child;h!==null;)ax(r,a,h),h=h.sibling}function ax(r,a,h){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(St,h)}catch{}switch(h.tag){case 26:Ht||yr(h,a),jr(r,a,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Ht||yr(h,a);var g=Ct,k=mn;bi(h.type)&&(Ct=h.stateNode,mn=!1),jr(r,a,h),fo(h.stateNode),Ct=g,mn=k;break;case 5:Ht||yr(h,a);case 6:if(g=Ct,k=mn,Ct=null,jr(r,a,h),Ct=g,mn=k,Ct!==null)if(mn)try{(Ct.nodeType===9?Ct.body:Ct.nodeName==="HTML"?Ct.ownerDocument.body:Ct).removeChild(h.stateNode)}catch(R){ct(h,a,R)}else try{Ct.removeChild(h.stateNode)}catch(R){ct(h,a,R)}break;case 18:Ct!==null&&(mn?(r=Ct,Zx(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,h.stateNode),us(r)):Zx(Ct,h.stateNode));break;case 4:g=Ct,k=mn,Ct=h.stateNode.containerInfo,mn=!0,jr(r,a,h),Ct=g,mn=k;break;case 0:case 11:case 14:case 15:ci(2,h,a),Ht||ci(4,h,a),jr(r,a,h);break;case 1:Ht||(yr(h,a),g=h.stateNode,typeof g.componentWillUnmount=="function"&&QS(h,a,g)),jr(r,a,h);break;case 21:jr(r,a,h);break;case 22:Ht=(g=Ht)||h.memoizedState!==null,jr(r,a,h),Ht=g;break;default:jr(r,a,h)}}function sx(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{us(r)}catch(h){ct(a,a.return,h)}}}function ox(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{us(r)}catch(h){ct(a,a.return,h)}}function $3(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new nx),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new nx),a;default:throw Error(i(435,r.tag))}}function Yl(r,a){var h=$3(r);a.forEach(function(g){if(!h.has(g)){h.add(g);var k=J3.bind(null,r,g);g.then(k,k)}})}function gn(r,a){var h=a.deletions;if(h!==null)for(var g=0;g<h.length;g++){var k=h[g],R=r,F=a,G=F;e:for(;G!==null;){switch(G.tag){case 27:if(bi(G.type)){Ct=G.stateNode,mn=!1;break e}break;case 5:Ct=G.stateNode,mn=!1;break e;case 3:case 4:Ct=G.stateNode.containerInfo,mn=!0;break e}G=G.return}if(Ct===null)throw Error(i(160));ax(R,F,k),Ct=null,mn=!1,R=k.alternate,R!==null&&(R.return=null),k.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)lx(a,r),a=a.sibling}var ur=null;function lx(r,a){var h=r.alternate,g=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:gn(a,r),bn(r),g&4&&(ci(3,r,r.return),ro(3,r),ci(5,r,r.return));break;case 1:gn(a,r),bn(r),g&512&&(Ht||h===null||yr(h,h.return)),g&64&&Fr&&(r=r.updateQueue,r!==null&&(g=r.callbacks,g!==null&&(h=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=h===null?g:h.concat(g))));break;case 26:var k=ur;if(gn(a,r),bn(r),g&512&&(Ht||h===null||yr(h,h.return)),g&4){var R=h!==null?h.memoizedState:null;if(g=r.memoizedState,h===null)if(g===null)if(r.stateNode===null){e:{g=r.type,h=r.memoizedProps,k=k.ownerDocument||k;t:switch(g){case"title":R=k.getElementsByTagName("title")[0],(!R||R[Os]||R[Yt]||R.namespaceURI==="http://www.w3.org/2000/svg"||R.hasAttribute("itemprop"))&&(R=k.createElement(g),k.head.insertBefore(R,k.querySelector("head > title"))),Jt(R,g,h),R[Yt]=r,Wt(R),g=R;break e;case"link":var F=lE("link","href",k).get(g+(h.href||""));if(F){for(var G=0;G<F.length;G++)if(R=F[G],R.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&R.getAttribute("rel")===(h.rel==null?null:h.rel)&&R.getAttribute("title")===(h.title==null?null:h.title)&&R.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){F.splice(G,1);break t}}R=k.createElement(g),Jt(R,g,h),k.head.appendChild(R);break;case"meta":if(F=lE("meta","content",k).get(g+(h.content||""))){for(G=0;G<F.length;G++)if(R=F[G],R.getAttribute("content")===(h.content==null?null:""+h.content)&&R.getAttribute("name")===(h.name==null?null:h.name)&&R.getAttribute("property")===(h.property==null?null:h.property)&&R.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&R.getAttribute("charset")===(h.charSet==null?null:h.charSet)){F.splice(G,1);break t}}R=k.createElement(g),Jt(R,g,h),k.head.appendChild(R);break;default:throw Error(i(468,g))}R[Yt]=r,Wt(R),g=R}r.stateNode=g}else uE(k,r.type,r.stateNode);else r.stateNode=oE(k,g,r.memoizedProps);else R!==g?(R===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):R.count--,g===null?uE(k,r.type,r.stateNode):oE(k,g,r.memoizedProps)):g===null&&r.stateNode!==null&&bh(r,r.memoizedProps,h.memoizedProps)}break;case 27:gn(a,r),bn(r),g&512&&(Ht||h===null||yr(h,h.return)),h!==null&&g&4&&bh(r,r.memoizedProps,h.memoizedProps);break;case 5:if(gn(a,r),bn(r),g&512&&(Ht||h===null||yr(h,h.return)),r.flags&32){k=r.stateNode;try{Da(k,"")}catch(Ee){ct(r,r.return,Ee)}}g&4&&r.stateNode!=null&&(k=r.memoizedProps,bh(r,k,h!==null?h.memoizedProps:k)),g&1024&&(_h=!0);break;case 6:if(gn(a,r),bn(r),g&4){if(r.stateNode===null)throw Error(i(162));g=r.memoizedProps,h=r.stateNode;try{h.nodeValue=g}catch(Ee){ct(r,r.return,Ee)}}break;case 3:if(du=null,k=ur,ur=uu(a.containerInfo),gn(a,r),ur=k,bn(r),g&4&&h!==null&&h.memoizedState.isDehydrated)try{us(a.containerInfo)}catch(Ee){ct(r,r.return,Ee)}_h&&(_h=!1,ux(r));break;case 4:g=ur,ur=uu(r.stateNode.containerInfo),gn(a,r),bn(r),ur=g;break;case 12:gn(a,r),bn(r);break;case 31:gn(a,r),bn(r),g&4&&(g=r.updateQueue,g!==null&&(r.updateQueue=null,Yl(r,g)));break;case 13:gn(a,r),bn(r),r.child.flags&8192&&r.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Zl=Ie()),g&4&&(g=r.updateQueue,g!==null&&(r.updateQueue=null,Yl(r,g)));break;case 22:k=r.memoizedState!==null;var X=h!==null&&h.memoizedState!==null,ae=Fr,he=Ht;if(Fr=ae||k,Ht=he||X,gn(a,r),Ht=he,Fr=ae,bn(r),g&8192)e:for(a=r.stateNode,a._visibility=k?a._visibility&-2:a._visibility|1,k&&(h===null||X||Fr||Ht||ea(r)),h=null,a=r;;){if(a.tag===5||a.tag===26){if(h===null){X=h=a;try{if(R=X.stateNode,k)F=R.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none";else{G=X.stateNode;var me=X.memoizedProps.style,se=me!=null&&me.hasOwnProperty("display")?me.display:null;G.style.display=se==null||typeof se=="boolean"?"":(""+se).trim()}}catch(Ee){ct(X,X.return,Ee)}}}else if(a.tag===6){if(h===null){X=a;try{X.stateNode.nodeValue=k?"":X.memoizedProps}catch(Ee){ct(X,X.return,Ee)}}}else if(a.tag===18){if(h===null){X=a;try{var le=X.stateNode;k?Qx(le,!0):Qx(X.stateNode,!1)}catch(Ee){ct(X,X.return,Ee)}}}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;h===a&&(h=null),a=a.return}h===a&&(h=null),a.sibling.return=a.return,a=a.sibling}g&4&&(g=r.updateQueue,g!==null&&(h=g.retryQueue,h!==null&&(g.retryQueue=null,Yl(r,h))));break;case 19:gn(a,r),bn(r),g&4&&(g=r.updateQueue,g!==null&&(r.updateQueue=null,Yl(r,g)));break;case 30:break;case 21:break;default:gn(a,r),bn(r)}}function bn(r){var a=r.flags;if(a&2){try{for(var h,g=r.return;g!==null;){if(ex(g)){h=g;break}g=g.return}if(h==null)throw Error(i(160));switch(h.tag){case 27:var k=h.stateNode,R=yh(r);Kl(r,R,k);break;case 5:var F=h.stateNode;h.flags&32&&(Da(F,""),h.flags&=-33);var G=yh(r);Kl(r,G,F);break;case 3:case 4:var X=h.stateNode.containerInfo,ae=yh(r);vh(r,ae,X);break;default:throw Error(i(161))}}catch(he){ct(r,r.return,he)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function ux(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;ux(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Pr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)rx(r,a.alternate,a),a=a.sibling}function ea(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:ci(4,a,a.return),ea(a);break;case 1:yr(a,a.return);var h=a.stateNode;typeof h.componentWillUnmount=="function"&&QS(a,a.return,h),ea(a);break;case 27:fo(a.stateNode);case 26:case 5:yr(a,a.return),ea(a);break;case 22:a.memoizedState===null&&ea(a);break;case 30:ea(a);break;default:ea(a)}r=r.sibling}}function Ur(r,a,h){for(h=h&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var g=a.alternate,k=r,R=a,F=R.flags;switch(R.tag){case 0:case 11:case 15:Ur(k,R,h),ro(4,R);break;case 1:if(Ur(k,R,h),g=R,k=g.stateNode,typeof k.componentDidMount=="function")try{k.componentDidMount()}catch(ae){ct(g,g.return,ae)}if(g=R,k=g.updateQueue,k!==null){var G=g.stateNode;try{var X=k.shared.hiddenCallbacks;if(X!==null)for(k.shared.hiddenCallbacks=null,k=0;k<X.length;k++)U_(X[k],G)}catch(ae){ct(g,g.return,ae)}}h&&F&64&&ZS(R),io(R,R.return);break;case 27:tx(R);case 26:case 5:Ur(k,R,h),h&&g===null&&F&4&&JS(R),io(R,R.return);break;case 12:Ur(k,R,h);break;case 31:Ur(k,R,h),h&&F&4&&sx(k,R);break;case 13:Ur(k,R,h),h&&F&4&&ox(k,R);break;case 22:R.memoizedState===null&&Ur(k,R,h),io(R,R.return);break;case 30:break;default:Ur(k,R,h)}a=a.sibling}}function Sh(r,a){var h=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(h=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==h&&(r!=null&&r.refCount++,h!=null&&$s(h))}function xh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&$s(r))}function cr(r,a,h,g){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)cx(r,a,h,g),a=a.sibling}function cx(r,a,h,g){var k=a.flags;switch(a.tag){case 0:case 11:case 15:cr(r,a,h,g),k&2048&&ro(9,a);break;case 1:cr(r,a,h,g);break;case 3:cr(r,a,h,g),k&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&$s(r)));break;case 12:if(k&2048){cr(r,a,h,g),r=a.stateNode;try{var R=a.memoizedProps,F=R.id,G=R.onPostCommit;typeof G=="function"&&G(F,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(X){ct(a,a.return,X)}}else cr(r,a,h,g);break;case 31:cr(r,a,h,g);break;case 13:cr(r,a,h,g);break;case 23:break;case 22:R=a.stateNode,F=a.alternate,a.memoizedState!==null?R._visibility&2?cr(r,a,h,g):ao(r,a):R._visibility&2?cr(r,a,h,g):(R._visibility|=2,Qa(r,a,h,g,(a.subtreeFlags&10256)!==0||!1)),k&2048&&Sh(F,a);break;case 24:cr(r,a,h,g),k&2048&&xh(a.alternate,a);break;default:cr(r,a,h,g)}}function Qa(r,a,h,g,k){for(k=k&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var R=r,F=a,G=h,X=g,ae=F.flags;switch(F.tag){case 0:case 11:case 15:Qa(R,F,G,X,k),ro(8,F);break;case 23:break;case 22:var he=F.stateNode;F.memoizedState!==null?he._visibility&2?Qa(R,F,G,X,k):ao(R,F):(he._visibility|=2,Qa(R,F,G,X,k)),k&&ae&2048&&Sh(F.alternate,F);break;case 24:Qa(R,F,G,X,k),k&&ae&2048&&xh(F.alternate,F);break;default:Qa(R,F,G,X,k)}a=a.sibling}}function ao(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var h=r,g=a,k=g.flags;switch(g.tag){case 22:ao(h,g),k&2048&&Sh(g.alternate,g);break;case 24:ao(h,g),k&2048&&xh(g.alternate,g);break;default:ao(h,g)}a=a.sibling}}var so=8192;function Ja(r,a,h){if(r.subtreeFlags&so)for(r=r.child;r!==null;)dx(r,a,h),r=r.sibling}function dx(r,a,h){switch(r.tag){case 26:Ja(r,a,h),r.flags&so&&r.memoizedState!==null&&N5(h,ur,r.memoizedState,r.memoizedProps);break;case 5:Ja(r,a,h);break;case 3:case 4:var g=ur;ur=uu(r.stateNode.containerInfo),Ja(r,a,h),ur=g;break;case 22:r.memoizedState===null&&(g=r.alternate,g!==null&&g.memoizedState!==null?(g=so,so=16777216,Ja(r,a,h),so=g):Ja(r,a,h));break;default:Ja(r,a,h)}}function hx(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 oo(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var h=0;h<a.length;h++){var g=a[h];Vt=g,fx(g,r)}hx(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)px(r),r=r.sibling}function px(r){switch(r.tag){case 0:case 11:case 15:oo(r),r.flags&2048&&ci(9,r,r.return);break;case 3:oo(r);break;case 12:oo(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Xl(r)):oo(r);break;default:oo(r)}}function Xl(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var h=0;h<a.length;h++){var g=a[h];Vt=g,fx(g,r)}hx(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:ci(8,a,a.return),Xl(a);break;case 22:h=a.stateNode,h._visibility&2&&(h._visibility&=-3,Xl(a));break;default:Xl(a)}r=r.sibling}}function fx(r,a){for(;Vt!==null;){var h=Vt;switch(h.tag){case 0:case 11:case 15:ci(8,h,a);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var g=h.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:$s(h.memoizedState.cache)}if(g=h.child,g!==null)g.return=h,Vt=g;else e:for(h=r;Vt!==null;){g=Vt;var k=g.sibling,R=g.return;if(ix(g),g===h){Vt=null;break e}if(k!==null){k.return=R,Vt=k;break e}Vt=R}}}var G3={getCacheForType:function(r){var a=Zt(jt),h=a.data.get(r);return h===void 0&&(h=r(),a.data.set(r,h)),h},cacheSignal:function(){return Zt(jt).controller.signal}},W3=typeof WeakMap=="function"?WeakMap:Map,at=0,gt=null,$e=null,Ke=0,ut=0,On=null,di=!1,es=!1,Eh=!1,Hr=0,Dt=0,hi=0,ta=0,wh=0,Dn=0,ts=0,lo=null,yn=null,Ch=!1,Zl=0,mx=0,Ql=1/0,Jl=null,pi=null,$t=0,fi=null,ns=null,zr=0,kh=0,Th=null,gx=null,uo=0,Rh=null;function In(){return(at&2)!==0&&Ke!==0?Ke&-Ke:W.T!==null?Lh():D1()}function bx(){if(Dn===0)if((Ke&536870912)===0||Ze){var r=fr;fr<<=1,(fr&3932160)===0&&(fr=262144),Dn=r}else Dn=536870912;return r=An.current,r!==null&&(r.flags|=32),Dn}function vn(r,a,h){(r===gt&&(ut===2||ut===9)||r.cancelPendingCommit!==null)&&(rs(r,0),mi(r,Ke,Dn,!1)),Ns(r,h),((at&2)===0||r!==gt)&&(r===gt&&((at&2)===0&&(ta|=h),Dt===4&&mi(r,Ke,Dn,!1)),vr(r))}function yx(r,a,h){if((at&6)!==0)throw Error(i(327));var g=!h&&(a&127)===0&&(a&r.expiredLanes)===0||Qr(r,a),k=g?Y3(r,a):Nh(r,a,!0),R=g;do{if(k===0){es&&!g&&mi(r,a,0,!1);break}else{if(h=r.current.alternate,R&&!V3(h)){k=Nh(r,a,!1),R=!1;continue}if(k===2){if(R=a,r.errorRecoveryDisabledLanes&R)var F=0;else F=r.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){a=F;e:{var G=r;k=lo;var X=G.current.memoizedState.isDehydrated;if(X&&(rs(G,F).flags|=256),F=Nh(G,F,!1),F!==2){if(Eh&&!X){G.errorRecoveryDisabledLanes|=R,ta|=R,k=4;break e}R=yn,yn=k,R!==null&&(yn===null?yn=R:yn.push.apply(yn,R))}k=F}if(R=!1,k!==2)continue}}if(k===1){rs(r,0),mi(r,a,0,!0);break}e:{switch(g=r,R=k,R){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:mi(g,a,Dn,!di);break e;case 2:yn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(k=Zl+300-Ie(),10<k)){if(mi(g,a,Dn,!di),ji(g,0,!0)!==0)break e;zr=a,g.timeoutHandle=Yx(vx.bind(null,g,h,yn,Jl,Ch,a,Dn,ta,ts,di,R,"Throttled",-0,0),k);break e}vx(g,h,yn,Jl,Ch,a,Dn,ta,ts,di,R,null,-0,0)}}break}while(!0);vr(r)}function vx(r,a,h,g,k,R,F,G,X,ae,he,me,se,le){if(r.timeoutHandle=-1,me=a.subtreeFlags,me&8192||(me&16785408)===16785408){me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tr},dx(a,R,me);var Ee=(R&62914560)===R?Zl-Ie():(R&4194048)===R?mx-Ie():0;if(Ee=O5(me,Ee),Ee!==null){zr=R,r.cancelPendingCommit=Ee(Tx.bind(null,r,a,R,h,g,k,F,G,X,he,me,null,se,le)),mi(r,R,F,!ae);return}}Tx(r,a,R,h,g,k,F,G,X)}function V3(r){for(var a=r;;){var h=a.tag;if((h===0||h===11||h===15)&&a.flags&16384&&(h=a.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var g=0;g<h.length;g++){var k=h[g],R=k.getSnapshot;k=k.value;try{if(!Tn(R(),k))return!1}catch{return!1}}if(h=a.child,a.subtreeFlags&16384&&h!==null)h.return=a,a=h;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 mi(r,a,h,g){a&=~wh,a&=~ta,r.suspendedLanes|=a,r.pingedLanes&=~a,g&&(r.warmLanes|=a),g=r.expirationTimes;for(var k=a;0<k;){var R=31-Qe(k),F=1<<R;g[R]=-1,k&=~F}h!==0&&A1(r,h,a)}function eu(){return(at&6)===0?(co(0),!1):!0}function Ah(){if($e!==null){if(ut===0)var r=$e.return;else r=$e,Or=Wi=null,Gd(r),Va=null,Ws=0,r=$e;for(;r!==null;)XS(r.alternate,r),r=r.return;$e=null}}function rs(r,a){var h=r.timeoutHandle;h!==-1&&(r.timeoutHandle=-1,p5(h)),h=r.cancelPendingCommit,h!==null&&(r.cancelPendingCommit=null,h()),zr=0,Ah(),gt=r,$e=h=Ar(r.current,null),Ke=a,ut=0,On=null,di=!1,es=Qr(r,a),Eh=!1,ts=Dn=wh=ta=hi=Dt=0,yn=lo=null,Ch=!1,(a&8)!==0&&(a|=a&32);var g=r.entangledLanes;if(g!==0)for(r=r.entanglements,g&=a;0<g;){var k=31-Qe(g),R=1<<k;a|=r[k],g&=~R}return Hr=a,Sl(),h}function _x(r,a){Pe=null,W.H=eo,a===Wa||a===Al?(a=B_(),ut=3):a===Id?(a=B_(),ut=4):ut=a===oh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,On=a,$e===null&&(Dt=1,ql(r,$n(a,r.current)))}function Sx(){var r=An.current;return r===null?!0:(Ke&4194048)===Ke?Kn===null:(Ke&62914560)===Ke||(Ke&536870912)!==0?r===Kn:!1}function xx(){var r=W.H;return W.H=eo,r===null?eo:r}function Ex(){var r=W.A;return W.A=G3,r}function tu(){Dt=4,di||(Ke&4194048)!==Ke&&An.current!==null||(es=!0),(hi&134217727)===0&&(ta&134217727)===0||gt===null||mi(gt,Ke,Dn,!1)}function Nh(r,a,h){var g=at;at|=2;var k=xx(),R=Ex();(gt!==r||Ke!==a)&&(Jl=null,rs(r,a)),a=!1;var F=Dt;e:do try{if(ut!==0&&$e!==null){var G=$e,X=On;switch(ut){case 8:Ah(),F=6;break e;case 3:case 2:case 9:case 6:An.current===null&&(a=!0);var ae=ut;if(ut=0,On=null,is(r,G,X,ae),h&&es){F=0;break e}break;default:ae=ut,ut=0,On=null,is(r,G,X,ae)}}K3(),F=Dt;break}catch(he){_x(r,he)}while(!0);return a&&r.shellSuspendCounter++,Or=Wi=null,at=g,W.H=k,W.A=R,$e===null&&(gt=null,Ke=0,Sl()),F}function K3(){for(;$e!==null;)wx($e)}function Y3(r,a){var h=at;at|=2;var g=xx(),k=Ex();gt!==r||Ke!==a?(Jl=null,Ql=Ie()+500,rs(r,a)):es=Qr(r,a);e:do try{if(ut!==0&&$e!==null){a=$e;var R=On;t:switch(ut){case 1:ut=0,On=null,is(r,a,R,1);break;case 2:case 9:if(L_(R)){ut=0,On=null,Cx(a);break}a=function(){ut!==2&&ut!==9||gt!==r||(ut=7),vr(r)},R.then(a,a);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:L_(R)?(ut=0,On=null,Cx(a)):(ut=0,On=null,is(r,a,R,7));break;case 5:var F=null;switch($e.tag){case 26:F=$e.memoizedState;case 5:case 27:var G=$e;if(F?cE(F):G.stateNode.complete){ut=0,On=null;var X=G.sibling;if(X!==null)$e=X;else{var ae=G.return;ae!==null?($e=ae,nu(ae)):$e=null}break t}}ut=0,On=null,is(r,a,R,5);break;case 6:ut=0,On=null,is(r,a,R,6);break;case 8:Ah(),Dt=6;break e;default:throw Error(i(462))}}X3();break}catch(he){_x(r,he)}while(!0);return Or=Wi=null,W.H=g,W.A=k,at=h,$e!==null?0:(gt=null,Ke=0,Sl(),Dt)}function X3(){for(;$e!==null&&!mt();)wx($e)}function wx(r){var a=KS(r.alternate,r,Hr);r.memoizedProps=r.pendingProps,a===null?nu(r):$e=a}function Cx(r){var a=r,h=a.alternate;switch(a.tag){case 15:case 0:a=zS(h,a,a.pendingProps,a.type,void 0,Ke);break;case 11:a=zS(h,a,a.pendingProps,a.type.render,a.ref,Ke);break;case 5:Gd(a);default:XS(h,a),a=$e=E_(a,Hr),a=KS(h,a,Hr)}r.memoizedProps=r.pendingProps,a===null?nu(r):$e=a}function is(r,a,h,g){Or=Wi=null,Gd(a),Va=null,Ws=0;var k=a.return;try{if(j3(r,k,a,h,Ke)){Dt=1,ql(r,$n(h,r.current)),$e=null;return}}catch(R){if(k!==null)throw $e=k,R;Dt=1,ql(r,$n(h,r.current)),$e=null;return}a.flags&32768?(Ze||g===1?r=!0:es||(Ke&536870912)!==0?r=!1:(di=r=!0,(g===2||g===9||g===3||g===6)&&(g=An.current,g!==null&&g.tag===13&&(g.flags|=16384))),kx(a,r)):nu(a)}function nu(r){var a=r;do{if((a.flags&32768)!==0){kx(a,di);return}r=a.return;var h=H3(a.alternate,a,Hr);if(h!==null){$e=h;return}if(a=a.sibling,a!==null){$e=a;return}$e=a=r}while(a!==null);Dt===0&&(Dt=5)}function kx(r,a){do{var h=z3(r.alternate,r);if(h!==null){h.flags&=32767,$e=h;return}if(h=r.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!a&&(r=r.sibling,r!==null)){$e=r;return}$e=r=h}while(r!==null);Dt=6,$e=null}function Tx(r,a,h,g,k,R,F,G,X){r.cancelPendingCommit=null;do ru();while($t!==0);if((at&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(R=a.lanes|a.childLanes,R|=yd,AL(r,h,R,F,G,X),r===gt&&($e=gt=null,Ke=0),ns=a,fi=r,zr=h,kh=R,Th=k,gx=g,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,e5(ye,function(){return Dx(),null})):(r.callbackNode=null,r.callbackPriority=0),g=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||g){g=W.T,W.T=null,k=Z.p,Z.p=2,F=at,at|=4;try{q3(r,a,h)}finally{at=F,Z.p=k,W.T=g}}$t=1,Rx(),Ax(),Nx()}}function Rx(){if($t===1){$t=0;var r=fi,a=ns,h=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||h){h=W.T,W.T=null;var g=Z.p;Z.p=2;var k=at;at|=4;try{lx(a,r);var R=zh,F=f_(r.containerInfo),G=R.focusedElem,X=R.selectionRange;if(F!==G&&G&&G.ownerDocument&&p_(G.ownerDocument.documentElement,G)){if(X!==null&&pd(G)){var ae=X.start,he=X.end;if(he===void 0&&(he=ae),"selectionStart"in G)G.selectionStart=ae,G.selectionEnd=Math.min(he,G.value.length);else{var me=G.ownerDocument||document,se=me&&me.defaultView||window;if(se.getSelection){var le=se.getSelection(),Ee=G.textContent.length,Ae=Math.min(X.start,Ee),pt=X.end===void 0?Ae:Math.min(X.end,Ee);!le.extend&&Ae>pt&&(F=pt,pt=Ae,Ae=F);var ne=h_(G,Ae),ee=h_(G,pt);if(ne&&ee&&(le.rangeCount!==1||le.anchorNode!==ne.node||le.anchorOffset!==ne.offset||le.focusNode!==ee.node||le.focusOffset!==ee.offset)){var ie=me.createRange();ie.setStart(ne.node,ne.offset),le.removeAllRanges(),Ae>pt?(le.addRange(ie),le.extend(ee.node,ee.offset)):(ie.setEnd(ee.node,ee.offset),le.addRange(ie))}}}}for(me=[],le=G;le=le.parentNode;)le.nodeType===1&&me.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<me.length;G++){var fe=me[G];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}mu=!!Hh,zh=Hh=null}finally{at=k,Z.p=g,W.T=h}}r.current=a,$t=2}}function Ax(){if($t===2){$t=0;var r=fi,a=ns,h=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||h){h=W.T,W.T=null;var g=Z.p;Z.p=2;var k=at;at|=4;try{rx(r,a.alternate,a)}finally{at=k,Z.p=g,W.T=h}}$t=3}}function Nx(){if($t===4||$t===3){$t=0,nt();var r=fi,a=ns,h=zr,g=gx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?$t=5:($t=0,ns=fi=null,Ox(r,r.pendingLanes));var k=r.pendingLanes;if(k===0&&(pi=null),Kc(h),a=a.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(St,a,void 0,(a.current.flags&128)===128)}catch{}if(g!==null){a=W.T,k=Z.p,Z.p=2,W.T=null;try{for(var R=r.onRecoverableError,F=0;F<g.length;F++){var G=g[F];R(G.value,{componentStack:G.stack})}}finally{W.T=a,Z.p=k}}(zr&3)!==0&&ru(),vr(r),k=r.pendingLanes,(h&261930)!==0&&(k&42)!==0?r===Rh?uo++:(uo=0,Rh=r):uo=0,co(0)}}function Ox(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,$s(a)))}function ru(){return Rx(),Ax(),Nx(),Dx()}function Dx(){if($t!==5)return!1;var r=fi,a=kh;kh=0;var h=Kc(zr),g=W.T,k=Z.p;try{Z.p=32>h?32:h,W.T=null,h=Th,Th=null;var R=fi,F=zr;if($t=0,ns=fi=null,zr=0,(at&6)!==0)throw Error(i(331));var G=at;if(at|=4,px(R.current),cx(R,R.current,F,h),at=G,co(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(St,R)}catch{}return!0}finally{Z.p=k,W.T=g,Ox(r,a)}}function Ix(r,a,h){a=$n(h,a),a=sh(r.stateNode,a,2),r=oi(r,a,2),r!==null&&(Ns(r,2),vr(r))}function ct(r,a,h){if(r.tag===3)Ix(r,r,h);else for(;a!==null;){if(a.tag===3){Ix(a,r,h);break}else if(a.tag===1){var g=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(pi===null||!pi.has(g))){r=$n(h,r),h=LS(2),g=oi(a,h,2),g!==null&&(MS(h,g,a,r),Ns(g,2),vr(g));break}}a=a.return}}function Oh(r,a,h){var g=r.pingCache;if(g===null){g=r.pingCache=new W3;var k=new Set;g.set(a,k)}else k=g.get(a),k===void 0&&(k=new Set,g.set(a,k));k.has(h)||(Eh=!0,k.add(h),r=Z3.bind(null,r,a,h),a.then(r,r))}function Z3(r,a,h){var g=r.pingCache;g!==null&&g.delete(a),r.pingedLanes|=r.suspendedLanes&h,r.warmLanes&=~h,gt===r&&(Ke&h)===h&&(Dt===4||Dt===3&&(Ke&62914560)===Ke&&300>Ie()-Zl?(at&2)===0&&rs(r,0):wh|=h,ts===Ke&&(ts=0)),vr(r)}function Lx(r,a){a===0&&(a=R1()),r=qi(r,a),r!==null&&(Ns(r,a),vr(r))}function Q3(r){var a=r.memoizedState,h=0;a!==null&&(h=a.retryLane),Lx(r,h)}function J3(r,a){var h=0;switch(r.tag){case 31:case 13:var g=r.stateNode,k=r.memoizedState;k!==null&&(h=k.retryLane);break;case 19:g=r.stateNode;break;case 22:g=r.stateNode._retryCache;break;default:throw Error(i(314))}g!==null&&g.delete(a),Lx(r,h)}function e5(r,a){return et(r,a)}var iu=null,as=null,Dh=!1,au=!1,Ih=!1,gi=0;function vr(r){r!==as&&r.next===null&&(as===null?iu=as=r:as=as.next=r),au=!0,Dh||(Dh=!0,n5())}function co(r,a){if(!Ih&&au){Ih=!0;do for(var h=!1,g=iu;g!==null;){if(r!==0){var k=g.pendingLanes;if(k===0)var R=0;else{var F=g.suspendedLanes,G=g.pingedLanes;R=(1<<31-Qe(42|r)+1)-1,R&=k&~(F&~G),R=R&201326741?R&201326741|1:R?R|2:0}R!==0&&(h=!0,jx(g,R))}else R=Ke,R=ji(g,g===gt?R:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(R&3)===0||Qr(g,R)||(h=!0,jx(g,R));g=g.next}while(h);Ih=!1}}function t5(){Mx()}function Mx(){au=Dh=!1;var r=0;gi!==0&&h5()&&(r=gi);for(var a=Ie(),h=null,g=iu;g!==null;){var k=g.next,R=Bx(g,a);R===0?(g.next=null,h===null?iu=k:h.next=k,k===null&&(as=h)):(h=g,(r!==0||(R&3)!==0)&&(au=!0)),g=k}$t!==0&&$t!==5||co(r),gi!==0&&(gi=0)}function Bx(r,a){for(var h=r.suspendedLanes,g=r.pingedLanes,k=r.expirationTimes,R=r.pendingLanes&-62914561;0<R;){var F=31-Qe(R),G=1<<F,X=k[F];X===-1?((G&h)===0||(G&g)!==0)&&(k[F]=As(G,a)):X<=a&&(r.expiredLanes|=G),R&=~G}if(a=gt,h=Ke,h=ji(r,r===a?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),g=r.callbackNode,h===0||r===a&&(ut===2||ut===9)||r.cancelPendingCommit!==null)return g!==null&&g!==null&&At(g),r.callbackNode=null,r.callbackPriority=0;if((h&3)===0||Qr(r,h)){if(a=h&-h,a===r.callbackPriority)return a;switch(g!==null&&At(g),Kc(h)){case 2:case 8:h=pe;break;case 32:h=ye;break;case 268435456:h=Ne;break;default:h=ye}return g=Fx.bind(null,r),h=et(h,g),r.callbackPriority=a,r.callbackNode=h,a}return g!==null&&g!==null&&At(g),r.callbackPriority=2,r.callbackNode=null,2}function Fx(r,a){if($t!==0&&$t!==5)return r.callbackNode=null,r.callbackPriority=0,null;var h=r.callbackNode;if(ru()&&r.callbackNode!==h)return null;var g=Ke;return g=ji(r,r===gt?g:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),g===0?null:(yx(r,g,a),Bx(r,Ie()),r.callbackNode!=null&&r.callbackNode===h?Fx.bind(null,r):null)}function jx(r,a){if(ru())return null;yx(r,a,!0)}function n5(){f5(function(){(at&6)!==0?et(re,t5):Mx()})}function Lh(){if(gi===0){var r=$a;r===0&&(r=Tt,Tt<<=1,(Tt&261888)===0&&(Tt=256)),gi=r}return gi}function Px(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:pl(""+r)}function Ux(r,a){var h=a.ownerDocument.createElement("input");return h.name=a.name,h.value=a.value,r.id&&h.setAttribute("form",r.id),a.parentNode.insertBefore(h,a),r=new FormData(r),h.parentNode.removeChild(h),r}function r5(r,a,h,g,k){if(a==="submit"&&h&&h.stateNode===k){var R=Px((k[pn]||null).action),F=g.submitter;F&&(a=(a=F[pn]||null)?Px(a.formAction):F.getAttribute("formAction"),a!==null&&(R=a,F=null));var G=new bl("action","action",null,g,k);r.push({event:G,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(gi!==0){var X=F?Ux(k,F):new FormData(k);eh(h,{pending:!0,data:X,method:k.method,action:R},null,X)}}else typeof R=="function"&&(G.preventDefault(),X=F?Ux(k,F):new FormData(k),eh(h,{pending:!0,data:X,method:k.method,action:R},R,X))},currentTarget:k}]})}}for(var Mh=0;Mh<bd.length;Mh++){var Bh=bd[Mh],i5=Bh.toLowerCase(),a5=Bh[0].toUpperCase()+Bh.slice(1);lr(i5,"on"+a5)}lr(b_,"onAnimationEnd"),lr(y_,"onAnimationIteration"),lr(v_,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(S3,"onTransitionRun"),lr(x3,"onTransitionStart"),lr(E3,"onTransitionCancel"),lr(__,"onTransitionEnd"),Na("onMouseEnter",["mouseout","mouseover"]),Na("onMouseLeave",["mouseout","mouseover"]),Na("onPointerEnter",["pointerout","pointerover"]),Na("onPointerLeave",["pointerout","pointerover"]),Pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ho="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(" "),s5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ho));function Hx(r,a){a=(a&4)!==0;for(var h=0;h<r.length;h++){var g=r[h],k=g.event;g=g.listeners;e:{var R=void 0;if(a)for(var F=g.length-1;0<=F;F--){var G=g[F],X=G.instance,ae=G.currentTarget;if(G=G.listener,X!==R&&k.isPropagationStopped())break e;R=G,k.currentTarget=ae;try{R(k)}catch(he){_l(he)}k.currentTarget=null,R=X}else for(F=0;F<g.length;F++){if(G=g[F],X=G.instance,ae=G.currentTarget,G=G.listener,X!==R&&k.isPropagationStopped())break e;R=G,k.currentTarget=ae;try{R(k)}catch(he){_l(he)}k.currentTarget=null,R=X}}}}function Ge(r,a){var h=a[Yc];h===void 0&&(h=a[Yc]=new Set);var g=r+"__bubble";h.has(g)||(zx(a,r,2,!1),h.add(g))}function Fh(r,a,h){var g=0;a&&(g|=4),zx(h,r,g,a)}var su="_reactListening"+Math.random().toString(36).slice(2);function jh(r){if(!r[su]){r[su]=!0,M1.forEach(function(h){h!=="selectionchange"&&(s5.has(h)||Fh(h,!1,r),Fh(h,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[su]||(a[su]=!0,Fh("selectionchange",!1,a))}}function zx(r,a,h,g){switch(bE(a)){case 2:var k=L5;break;case 8:k=M5;break;default:k=Jh}h=k.bind(null,a,h,r),k=void 0,!id||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(k=!0),g?k!==void 0?r.addEventListener(a,h,{capture:!0,passive:k}):r.addEventListener(a,h,!0):k!==void 0?r.addEventListener(a,h,{passive:k}):r.addEventListener(a,h,!1)}function Ph(r,a,h,g,k){var R=g;if((a&1)===0&&(a&2)===0&&g!==null)e:for(;;){if(g===null)return;var F=g.tag;if(F===3||F===4){var G=g.stateNode.containerInfo;if(G===k)break;if(F===4)for(F=g.return;F!==null;){var X=F.tag;if((X===3||X===4)&&F.stateNode.containerInfo===k)return;F=F.return}for(;G!==null;){if(F=Ta(G),F===null)return;if(X=F.tag,X===5||X===6||X===26||X===27){g=R=F;continue e}G=G.parentNode}}g=g.return}V1(function(){var ae=R,he=nd(h),me=[];e:{var se=S_.get(r);if(se!==void 0){var le=bl,Ee=r;switch(r){case"keypress":if(ml(h)===0)break e;case"keydown":case"keyup":le=JL;break;case"focusin":Ee="focus",le=ld;break;case"focusout":Ee="blur",le=ld;break;case"beforeblur":case"afterblur":le=ld;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=X1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=HL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=n3;break;case b_:case y_:case v_:le=$L;break;case __:le=i3;break;case"scroll":case"scrollend":le=PL;break;case"wheel":le=s3;break;case"copy":case"cut":case"paste":le=WL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Q1;break;case"toggle":case"beforetoggle":le=l3}var Ae=(a&4)!==0,pt=!Ae&&(r==="scroll"||r==="scrollend"),ne=Ae?se!==null?se+"Capture":null:se;Ae=[];for(var ee=ae,ie;ee!==null;){var fe=ee;if(ie=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||ie===null||ne===null||(fe=Is(ee,ne),fe!=null&&Ae.push(po(ee,fe,ie))),pt)break;ee=ee.return}0<Ae.length&&(se=new le(se,Ee,null,h,he),me.push({event:se,listeners:Ae}))}}if((a&7)===0){e:{if(se=r==="mouseover"||r==="pointerover",le=r==="mouseout"||r==="pointerout",se&&h!==td&&(Ee=h.relatedTarget||h.fromElement)&&(Ta(Ee)||Ee[ka]))break e;if((le||se)&&(se=he.window===he?he:(se=he.ownerDocument)?se.defaultView||se.parentWindow:window,le?(Ee=h.relatedTarget||h.toElement,le=ae,Ee=Ee?Ta(Ee):null,Ee!==null&&(pt=l(Ee),Ae=Ee.tag,Ee!==pt||Ae!==5&&Ae!==27&&Ae!==6)&&(Ee=null)):(le=null,Ee=ae),le!==Ee)){if(Ae=X1,fe="onMouseLeave",ne="onMouseEnter",ee="mouse",(r==="pointerout"||r==="pointerover")&&(Ae=Q1,fe="onPointerLeave",ne="onPointerEnter",ee="pointer"),pt=le==null?se:Ds(le),ie=Ee==null?se:Ds(Ee),se=new Ae(fe,ee+"leave",le,h,he),se.target=pt,se.relatedTarget=ie,fe=null,Ta(he)===ae&&(Ae=new Ae(ne,ee+"enter",Ee,h,he),Ae.target=ie,Ae.relatedTarget=pt,fe=Ae),pt=fe,le&&Ee)t:{for(Ae=o5,ne=le,ee=Ee,ie=0,fe=ne;fe;fe=Ae(fe))ie++;fe=0;for(var Te=ee;Te;Te=Ae(Te))fe++;for(;0<ie-fe;)ne=Ae(ne),ie--;for(;0<fe-ie;)ee=Ae(ee),fe--;for(;ie--;){if(ne===ee||ee!==null&&ne===ee.alternate){Ae=ne;break t}ne=Ae(ne),ee=Ae(ee)}Ae=null}else Ae=null;le!==null&&qx(me,se,le,Ae,!1),Ee!==null&&pt!==null&&qx(me,pt,Ee,Ae,!0)}}e:{if(se=ae?Ds(ae):window,le=se.nodeName&&se.nodeName.toLowerCase(),le==="select"||le==="input"&&se.type==="file")var rt=s_;else if(i_(se))if(o_)rt=y3;else{rt=g3;var Ce=m3}else le=se.nodeName,!le||le.toLowerCase()!=="input"||se.type!=="checkbox"&&se.type!=="radio"?ae&&ed(ae.elementType)&&(rt=s_):rt=b3;if(rt&&(rt=rt(r,ae))){a_(me,rt,h,he);break e}Ce&&Ce(r,se,ae),r==="focusout"&&ae&&se.type==="number"&&ae.memoizedProps.value!=null&&Jc(se,"number",se.value)}switch(Ce=ae?Ds(ae):window,r){case"focusin":(i_(Ce)||Ce.contentEditable==="true")&&(Ba=Ce,fd=ae,Hs=null);break;case"focusout":Hs=fd=Ba=null;break;case"mousedown":md=!0;break;case"contextmenu":case"mouseup":case"dragend":md=!1,m_(me,h,he);break;case"selectionchange":if(_3)break;case"keydown":case"keyup":m_(me,h,he)}var Ue;if(cd)e:{switch(r){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else Ma?n_(r,h)&&(Ye="onCompositionEnd"):r==="keydown"&&h.keyCode===229&&(Ye="onCompositionStart");Ye&&(J1&&h.locale!=="ko"&&(Ma||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&Ma&&(Ue=K1()):(ei=he,ad="value"in ei?ei.value:ei.textContent,Ma=!0)),Ce=ou(ae,Ye),0<Ce.length&&(Ye=new Z1(Ye,r,null,h,he),me.push({event:Ye,listeners:Ce}),Ue?Ye.data=Ue:(Ue=r_(h),Ue!==null&&(Ye.data=Ue)))),(Ue=c3?d3(r,h):h3(r,h))&&(Ye=ou(ae,"onBeforeInput"),0<Ye.length&&(Ce=new Z1("onBeforeInput","beforeinput",null,h,he),me.push({event:Ce,listeners:Ye}),Ce.data=Ue)),r5(me,r,ae,h,he)}Hx(me,a)})}function po(r,a,h){return{instance:r,listener:a,currentTarget:h}}function ou(r,a){for(var h=a+"Capture",g=[];r!==null;){var k=r,R=k.stateNode;if(k=k.tag,k!==5&&k!==26&&k!==27||R===null||(k=Is(r,h),k!=null&&g.unshift(po(r,k,R)),k=Is(r,a),k!=null&&g.push(po(r,k,R))),r.tag===3)return g;r=r.return}return[]}function o5(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function qx(r,a,h,g,k){for(var R=a._reactName,F=[];h!==null&&h!==g;){var G=h,X=G.alternate,ae=G.stateNode;if(G=G.tag,X!==null&&X===g)break;G!==5&&G!==26&&G!==27||ae===null||(X=ae,k?(ae=Is(h,R),ae!=null&&F.unshift(po(h,ae,X))):k||(ae=Is(h,R),ae!=null&&F.push(po(h,ae,X)))),h=h.return}F.length!==0&&r.push({event:a,listeners:F})}var l5=/\r\n?/g,u5=/\u0000|\uFFFD/g;function $x(r){return(typeof r=="string"?r:""+r).replace(l5,`
9
- `).replace(u5,"")}function Gx(r,a){return a=$x(a),$x(r)===a}function ht(r,a,h,g,k,R){switch(h){case"children":typeof g=="string"?a==="body"||a==="textarea"&&g===""||Da(r,g):(typeof g=="number"||typeof g=="bigint")&&a!=="body"&&Da(r,""+g);break;case"className":dl(r,"class",g);break;case"tabIndex":dl(r,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":dl(r,h,g);break;case"style":G1(r,g,R);break;case"data":if(a!=="object"){dl(r,"data",g);break}case"src":case"href":if(g===""&&(a!=="a"||h!=="href")){r.removeAttribute(h);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(h);break}g=pl(""+g),r.setAttribute(h,g);break;case"action":case"formAction":if(typeof g=="function"){r.setAttribute(h,"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 R=="function"&&(h==="formAction"?(a!=="input"&&ht(r,a,"name",k.name,k,null),ht(r,a,"formEncType",k.formEncType,k,null),ht(r,a,"formMethod",k.formMethod,k,null),ht(r,a,"formTarget",k.formTarget,k,null)):(ht(r,a,"encType",k.encType,k,null),ht(r,a,"method",k.method,k,null),ht(r,a,"target",k.target,k,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(h);break}g=pl(""+g),r.setAttribute(h,g);break;case"onClick":g!=null&&(r.onclick=Tr);break;case"onScroll":g!=null&&Ge("scroll",r);break;case"onScrollEnd":g!=null&&Ge("scrollend",r);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(i(61));if(h=g.__html,h!=null){if(k.children!=null)throw Error(i(60));r.innerHTML=h}}break;case"multiple":r.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":r.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){r.removeAttribute("xlink:href");break}h=pl(""+g),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?r.setAttribute(h,""+g):r.removeAttribute(h);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":g&&typeof g!="function"&&typeof g!="symbol"?r.setAttribute(h,""):r.removeAttribute(h);break;case"capture":case"download":g===!0?r.setAttribute(h,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?r.setAttribute(h,g):r.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?r.setAttribute(h,g):r.removeAttribute(h);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?r.removeAttribute(h):r.setAttribute(h,g);break;case"popover":Ge("beforetoggle",r),Ge("toggle",r),cl(r,"popover",g);break;case"xlinkActuate":kr(r,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":kr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":kr(r,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":kr(r,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":kr(r,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":kr(r,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":kr(r,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":kr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":kr(r,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":cl(r,"is",g);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=FL.get(h)||h,cl(r,h,g))}}function Uh(r,a,h,g,k,R){switch(h){case"style":G1(r,g,R);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(i(61));if(h=g.__html,h!=null){if(k.children!=null)throw Error(i(60));r.innerHTML=h}}break;case"children":typeof g=="string"?Da(r,g):(typeof g=="number"||typeof g=="bigint")&&Da(r,""+g);break;case"onScroll":g!=null&&Ge("scroll",r);break;case"onScrollEnd":g!=null&&Ge("scrollend",r);break;case"onClick":g!=null&&(r.onclick=Tr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!B1.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(k=h.endsWith("Capture"),a=h.slice(2,k?h.length-7:void 0),R=r[pn]||null,R=R!=null?R[h]:null,typeof R=="function"&&r.removeEventListener(a,R,k),typeof g=="function")){typeof R!="function"&&R!==null&&(h in r?r[h]=null:r.hasAttribute(h)&&r.removeAttribute(h)),r.addEventListener(a,g,k);break e}h in r?r[h]=g:g===!0?r.setAttribute(h,""):cl(r,h,g)}}}function Jt(r,a,h){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",r),Ge("load",r);var g=!1,k=!1,R;for(R in h)if(h.hasOwnProperty(R)){var F=h[R];if(F!=null)switch(R){case"src":g=!0;break;case"srcSet":k=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:ht(r,a,R,F,h,null)}}k&&ht(r,a,"srcSet",h.srcSet,h,null),g&&ht(r,a,"src",h.src,h,null);return;case"input":Ge("invalid",r);var G=R=F=k=null,X=null,ae=null;for(g in h)if(h.hasOwnProperty(g)){var he=h[g];if(he!=null)switch(g){case"name":k=he;break;case"type":F=he;break;case"checked":X=he;break;case"defaultChecked":ae=he;break;case"value":R=he;break;case"defaultValue":G=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(i(137,a));break;default:ht(r,a,g,he,h,null)}}H1(r,R,G,X,ae,F,k,!1);return;case"select":Ge("invalid",r),g=F=R=null;for(k in h)if(h.hasOwnProperty(k)&&(G=h[k],G!=null))switch(k){case"value":R=G;break;case"defaultValue":F=G;break;case"multiple":g=G;default:ht(r,a,k,G,h,null)}a=R,h=F,r.multiple=!!g,a!=null?Oa(r,!!g,a,!1):h!=null&&Oa(r,!!g,h,!0);return;case"textarea":Ge("invalid",r),R=k=g=null;for(F in h)if(h.hasOwnProperty(F)&&(G=h[F],G!=null))switch(F){case"value":g=G;break;case"defaultValue":k=G;break;case"children":R=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(91));break;default:ht(r,a,F,G,h,null)}q1(r,g,k,R);return;case"option":for(X in h)h.hasOwnProperty(X)&&(g=h[X],g!=null)&&(X==="selected"?r.selected=g&&typeof g!="function"&&typeof g!="symbol":ht(r,a,X,g,h,null));return;case"dialog":Ge("beforetoggle",r),Ge("toggle",r),Ge("cancel",r),Ge("close",r);break;case"iframe":case"object":Ge("load",r);break;case"video":case"audio":for(g=0;g<ho.length;g++)Ge(ho[g],r);break;case"image":Ge("error",r),Ge("load",r);break;case"details":Ge("toggle",r);break;case"embed":case"source":case"link":Ge("error",r),Ge("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(ae in h)if(h.hasOwnProperty(ae)&&(g=h[ae],g!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:ht(r,a,ae,g,h,null)}return;default:if(ed(a)){for(he in h)h.hasOwnProperty(he)&&(g=h[he],g!==void 0&&Uh(r,a,he,g,h,void 0));return}}for(G in h)h.hasOwnProperty(G)&&(g=h[G],g!=null&&ht(r,a,G,g,h,null))}function c5(r,a,h,g){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var k=null,R=null,F=null,G=null,X=null,ae=null,he=null;for(le in h){var me=h[le];if(h.hasOwnProperty(le)&&me!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":X=me;default:g.hasOwnProperty(le)||ht(r,a,le,null,g,me)}}for(var se in g){var le=g[se];if(me=h[se],g.hasOwnProperty(se)&&(le!=null||me!=null))switch(se){case"type":R=le;break;case"name":k=le;break;case"checked":ae=le;break;case"defaultChecked":he=le;break;case"value":F=le;break;case"defaultValue":G=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:le!==me&&ht(r,a,se,le,g,me)}}Qc(r,F,G,X,ae,he,R,k);return;case"select":le=F=G=se=null;for(R in h)if(X=h[R],h.hasOwnProperty(R)&&X!=null)switch(R){case"value":break;case"multiple":le=X;default:g.hasOwnProperty(R)||ht(r,a,R,null,g,X)}for(k in g)if(R=g[k],X=h[k],g.hasOwnProperty(k)&&(R!=null||X!=null))switch(k){case"value":se=R;break;case"defaultValue":G=R;break;case"multiple":F=R;default:R!==X&&ht(r,a,k,R,g,X)}a=G,h=F,g=le,se!=null?Oa(r,!!h,se,!1):!!g!=!!h&&(a!=null?Oa(r,!!h,a,!0):Oa(r,!!h,h?[]:"",!1));return;case"textarea":le=se=null;for(G in h)if(k=h[G],h.hasOwnProperty(G)&&k!=null&&!g.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:ht(r,a,G,null,g,k)}for(F in g)if(k=g[F],R=h[F],g.hasOwnProperty(F)&&(k!=null||R!=null))switch(F){case"value":se=k;break;case"defaultValue":le=k;break;case"children":break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(i(91));break;default:k!==R&&ht(r,a,F,k,g,R)}z1(r,se,le);return;case"option":for(var Ee in h)se=h[Ee],h.hasOwnProperty(Ee)&&se!=null&&!g.hasOwnProperty(Ee)&&(Ee==="selected"?r.selected=!1:ht(r,a,Ee,null,g,se));for(X in g)se=g[X],le=h[X],g.hasOwnProperty(X)&&se!==le&&(se!=null||le!=null)&&(X==="selected"?r.selected=se&&typeof se!="function"&&typeof se!="symbol":ht(r,a,X,se,g,le));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 Ae in h)se=h[Ae],h.hasOwnProperty(Ae)&&se!=null&&!g.hasOwnProperty(Ae)&&ht(r,a,Ae,null,g,se);for(ae in g)if(se=g[ae],le=h[ae],g.hasOwnProperty(ae)&&se!==le&&(se!=null||le!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,a));break;default:ht(r,a,ae,se,g,le)}return;default:if(ed(a)){for(var pt in h)se=h[pt],h.hasOwnProperty(pt)&&se!==void 0&&!g.hasOwnProperty(pt)&&Uh(r,a,pt,void 0,g,se);for(he in g)se=g[he],le=h[he],!g.hasOwnProperty(he)||se===le||se===void 0&&le===void 0||Uh(r,a,he,se,g,le);return}}for(var ne in h)se=h[ne],h.hasOwnProperty(ne)&&se!=null&&!g.hasOwnProperty(ne)&&ht(r,a,ne,null,g,se);for(me in g)se=g[me],le=h[me],!g.hasOwnProperty(me)||se===le||se==null&&le==null||ht(r,a,me,se,g,le)}function Wx(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d5(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,h=performance.getEntriesByType("resource"),g=0;g<h.length;g++){var k=h[g],R=k.transferSize,F=k.initiatorType,G=k.duration;if(R&&G&&Wx(F)){for(F=0,G=k.responseEnd,g+=1;g<h.length;g++){var X=h[g],ae=X.startTime;if(ae>G)break;var he=X.transferSize,me=X.initiatorType;he&&Wx(me)&&(X=X.responseEnd,F+=he*(X<G?1:(G-ae)/(X-ae)))}if(--g,a+=8*(R+F)/(k.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 Hh=null,zh=null;function lu(r){return r.nodeType===9?r:r.ownerDocument}function Vx(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 Kx(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 qh(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 $h=null;function h5(){var r=window.event;return r&&r.type==="popstate"?r===$h?!1:($h=r,!0):($h=null,!1)}var Yx=typeof setTimeout=="function"?setTimeout:void 0,p5=typeof clearTimeout=="function"?clearTimeout:void 0,Xx=typeof Promise=="function"?Promise:void 0,f5=typeof queueMicrotask=="function"?queueMicrotask:typeof Xx<"u"?function(r){return Xx.resolve(null).then(r).catch(m5)}:Yx;function m5(r){setTimeout(function(){throw r})}function bi(r){return r==="head"}function Zx(r,a){var h=a,g=0;do{var k=h.nextSibling;if(r.removeChild(h),k&&k.nodeType===8)if(h=k.data,h==="/$"||h==="/&"){if(g===0){r.removeChild(k),us(a);return}g--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")g++;else if(h==="html")fo(r.ownerDocument.documentElement);else if(h==="head"){h=r.ownerDocument.head,fo(h);for(var R=h.firstChild;R;){var F=R.nextSibling,G=R.nodeName;R[Os]||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&R.rel.toLowerCase()==="stylesheet"||h.removeChild(R),R=F}}else h==="body"&&fo(r.ownerDocument.body);h=k}while(h);us(a)}function Qx(r,a){var h=r;r=0;do{var g=h.nextSibling;if(h.nodeType===1?a?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(a?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),g&&g.nodeType===8)if(h=g.data,h==="/$"){if(r===0)break;r--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||r++;h=g}while(h)}function Gh(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var h=a;switch(a=a.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Gh(h),Xc(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}r.removeChild(h)}}function g5(r,a,h,g){for(;r.nodeType===1;){var k=h;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!g&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(g){if(!r[Os])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(R=r.getAttribute("rel"),R==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(R!==k.rel||r.getAttribute("href")!==(k.href==null||k.href===""?null:k.href)||r.getAttribute("crossorigin")!==(k.crossOrigin==null?null:k.crossOrigin)||r.getAttribute("title")!==(k.title==null?null:k.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(R=r.getAttribute("src"),(R!==(k.src==null?null:k.src)||r.getAttribute("type")!==(k.type==null?null:k.type)||r.getAttribute("crossorigin")!==(k.crossOrigin==null?null:k.crossOrigin))&&R&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var R=k.name==null?null:""+k.name;if(k.type==="hidden"&&r.getAttribute("name")===R)return r}else return r;if(r=Yn(r.nextSibling),r===null)break}return null}function b5(r,a,h){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!h||(r=Yn(r.nextSibling),r===null))return null;return r}function Jx(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Yn(r.nextSibling),r===null))return null;return r}function Wh(r){return r.data==="$?"||r.data==="$~"}function Vh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function y5(r,a){var h=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||h.readyState!=="loading")a();else{var g=function(){a(),h.removeEventListener("DOMContentLoaded",g)};h.addEventListener("DOMContentLoaded",g),r._reactRetry=g}}function Yn(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 Kh=null;function eE(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var h=r.data;if(h==="/$"||h==="/&"){if(a===0)return Yn(r.nextSibling);a--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||a++}r=r.nextSibling}return null}function tE(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var h=r.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(a===0)return r;a--}else h!=="/$"&&h!=="/&"||a++}r=r.previousSibling}return null}function nE(r,a,h){switch(a=lu(h),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 fo(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Xc(r)}var Xn=new Map,rE=new Set;function uu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var qr=Z.d;Z.d={f:v5,r:_5,D:S5,C:x5,L:E5,m:w5,X:k5,S:C5,M:T5};function v5(){var r=qr.f(),a=eu();return r||a}function _5(r){var a=Ra(r);a!==null&&a.tag===5&&a.type==="form"?_S(a):qr.r(r)}var ss=typeof document>"u"?null:document;function iE(r,a,h){var g=ss;if(g&&typeof a=="string"&&a){var k=zn(a);k='link[rel="'+r+'"][href="'+k+'"]',typeof h=="string"&&(k+='[crossorigin="'+h+'"]'),rE.has(k)||(rE.add(k),r={rel:r,crossOrigin:h,href:a},g.querySelector(k)===null&&(a=g.createElement("link"),Jt(a,"link",r),Wt(a),g.head.appendChild(a)))}}function S5(r){qr.D(r),iE("dns-prefetch",r,null)}function x5(r,a){qr.C(r,a),iE("preconnect",r,a)}function E5(r,a,h){qr.L(r,a,h);var g=ss;if(g&&r&&a){var k='link[rel="preload"][as="'+zn(a)+'"]';a==="image"&&h&&h.imageSrcSet?(k+='[imagesrcset="'+zn(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(k+='[imagesizes="'+zn(h.imageSizes)+'"]')):k+='[href="'+zn(r)+'"]';var R=k;switch(a){case"style":R=os(r);break;case"script":R=ls(r)}Xn.has(R)||(r=f({rel:"preload",href:a==="image"&&h&&h.imageSrcSet?void 0:r,as:a},h),Xn.set(R,r),g.querySelector(k)!==null||a==="style"&&g.querySelector(mo(R))||a==="script"&&g.querySelector(go(R))||(a=g.createElement("link"),Jt(a,"link",r),Wt(a),g.head.appendChild(a)))}}function w5(r,a){qr.m(r,a);var h=ss;if(h&&r){var g=a&&typeof a.as=="string"?a.as:"script",k='link[rel="modulepreload"][as="'+zn(g)+'"][href="'+zn(r)+'"]',R=k;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":R=ls(r)}if(!Xn.has(R)&&(r=f({rel:"modulepreload",href:r},a),Xn.set(R,r),h.querySelector(k)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(go(R)))return}g=h.createElement("link"),Jt(g,"link",r),Wt(g),h.head.appendChild(g)}}}function C5(r,a,h){qr.S(r,a,h);var g=ss;if(g&&r){var k=Aa(g).hoistableStyles,R=os(r);a=a||"default";var F=k.get(R);if(!F){var G={loading:0,preload:null};if(F=g.querySelector(mo(R)))G.loading=5;else{r=f({rel:"stylesheet",href:r,"data-precedence":a},h),(h=Xn.get(R))&&Yh(r,h);var X=F=g.createElement("link");Wt(X),Jt(X,"link",r),X._p=new Promise(function(ae,he){X.onload=ae,X.onerror=he}),X.addEventListener("load",function(){G.loading|=1}),X.addEventListener("error",function(){G.loading|=2}),G.loading|=4,cu(F,a,g)}F={type:"stylesheet",instance:F,count:1,state:G},k.set(R,F)}}}function k5(r,a){qr.X(r,a);var h=ss;if(h&&r){var g=Aa(h).hoistableScripts,k=ls(r),R=g.get(k);R||(R=h.querySelector(go(k)),R||(r=f({src:r,async:!0},a),(a=Xn.get(k))&&Xh(r,a),R=h.createElement("script"),Wt(R),Jt(R,"link",r),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},g.set(k,R))}}function T5(r,a){qr.M(r,a);var h=ss;if(h&&r){var g=Aa(h).hoistableScripts,k=ls(r),R=g.get(k);R||(R=h.querySelector(go(k)),R||(r=f({src:r,async:!0,type:"module"},a),(a=Xn.get(k))&&Xh(r,a),R=h.createElement("script"),Wt(R),Jt(R,"link",r),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},g.set(k,R))}}function aE(r,a,h,g){var k=(k=de.current)?uu(k):null;if(!k)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(a=os(h.href),h=Aa(k).hoistableStyles,g=h.get(a),g||(g={type:"style",instance:null,count:0,state:null},h.set(a,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){r=os(h.href);var R=Aa(k).hoistableStyles,F=R.get(r);if(F||(k=k.ownerDocument||k,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(r,F),(R=k.querySelector(mo(r)))&&!R._p&&(F.instance=R,F.state.loading=5),Xn.has(r)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Xn.set(r,h),R||R5(k,r,h,F.state))),a&&g===null)throw Error(i(528,""));return F}if(a&&g!==null)throw Error(i(529,""));return null;case"script":return a=h.async,h=h.src,typeof h=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ls(h),h=Aa(k).hoistableScripts,g=h.get(a),g||(g={type:"script",instance:null,count:0,state:null},h.set(a,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function os(r){return'href="'+zn(r)+'"'}function mo(r){return'link[rel="stylesheet"]['+r+"]"}function sE(r){return f({},r,{"data-precedence":r.precedence,precedence:null})}function R5(r,a,h,g){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?g.loading=1:(a=r.createElement("link"),g.preload=a,a.addEventListener("load",function(){return g.loading|=1}),a.addEventListener("error",function(){return g.loading|=2}),Jt(a,"link",h),Wt(a),r.head.appendChild(a))}function ls(r){return'[src="'+zn(r)+'"]'}function go(r){return"script[async]"+r}function oE(r,a,h){if(a.count++,a.instance===null)switch(a.type){case"style":var g=r.querySelector('style[data-href~="'+zn(h.href)+'"]');if(g)return a.instance=g,Wt(g),g;var k=f({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return g=(r.ownerDocument||r).createElement("style"),Wt(g),Jt(g,"style",k),cu(g,h.precedence,r),a.instance=g;case"stylesheet":k=os(h.href);var R=r.querySelector(mo(k));if(R)return a.state.loading|=4,a.instance=R,Wt(R),R;g=sE(h),(k=Xn.get(k))&&Yh(g,k),R=(r.ownerDocument||r).createElement("link"),Wt(R);var F=R;return F._p=new Promise(function(G,X){F.onload=G,F.onerror=X}),Jt(R,"link",g),a.state.loading|=4,cu(R,h.precedence,r),a.instance=R;case"script":return R=ls(h.src),(k=r.querySelector(go(R)))?(a.instance=k,Wt(k),k):(g=h,(k=Xn.get(R))&&(g=f({},h),Xh(g,k)),r=r.ownerDocument||r,k=r.createElement("script"),Wt(k),Jt(k,"link",g),r.head.appendChild(k),a.instance=k);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(g=a.instance,a.state.loading|=4,cu(g,h.precedence,r));return a.instance}function cu(r,a,h){for(var g=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),k=g.length?g[g.length-1]:null,R=k,F=0;F<g.length;F++){var G=g[F];if(G.dataset.precedence===a)R=G;else if(R!==k)break}R?R.parentNode.insertBefore(r,R.nextSibling):(a=h.nodeType===9?h.head:h,a.insertBefore(r,a.firstChild))}function Yh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Xh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var du=null;function lE(r,a,h){if(du===null){var g=new Map,k=du=new Map;k.set(h,g)}else k=du,g=k.get(h),g||(g=new Map,k.set(h,g));if(g.has(r))return g;for(g.set(r,null),h=h.getElementsByTagName(r),k=0;k<h.length;k++){var R=h[k];if(!(R[Os]||R[Yt]||r==="link"&&R.getAttribute("rel")==="stylesheet")&&R.namespaceURI!=="http://www.w3.org/2000/svg"){var F=R.getAttribute(a)||"";F=r+F;var G=g.get(F);G?G.push(R):g.set(F,[R])}}return g}function uE(r,a,h){r=r.ownerDocument||r,r.head.insertBefore(h,a==="title"?r.querySelector("head > title"):null)}function A5(r,a,h){if(h===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;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!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 cE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function N5(r,a,h,g){if(h.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var k=os(g.href),R=a.querySelector(mo(k));if(R){a=R._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=hu.bind(r),a.then(r,r)),h.state.loading|=4,h.instance=R,Wt(R);return}R=a.ownerDocument||a,g=sE(g),(k=Xn.get(k))&&Yh(g,k),R=R.createElement("link"),Wt(R);var F=R;F._p=new Promise(function(G,X){F.onload=G,F.onerror=X}),Jt(R,"link",g),h.instance=R}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(h,a),(a=h.state.preload)&&(h.state.loading&3)===0&&(r.count++,h=hu.bind(r),a.addEventListener("load",h),a.addEventListener("error",h))}}var Zh=0;function O5(r,a){return r.stylesheets&&r.count===0&&fu(r,r.stylesheets),0<r.count||0<r.imgCount?function(h){var g=setTimeout(function(){if(r.stylesheets&&fu(r,r.stylesheets),r.unsuspend){var R=r.unsuspend;r.unsuspend=null,R()}},6e4+a);0<r.imgBytes&&Zh===0&&(Zh=62500*d5());var k=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&fu(r,r.stylesheets),r.unsuspend)){var R=r.unsuspend;r.unsuspend=null,R()}},(r.imgBytes>Zh?50:800)+a);return r.unsuspend=h,function(){r.unsuspend=null,clearTimeout(g),clearTimeout(k)}}:null}function hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fu(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var pu=null;function fu(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,pu=new Map,a.forEach(D5,r),pu=null,hu.call(r))}function D5(r,a){if(!(a.state.loading&4)){var h=pu.get(r);if(h)var g=h.get(null);else{h=new Map,pu.set(r,h);for(var k=r.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<k.length;R++){var F=k[R];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(h.set(F.dataset.precedence,F),g=F)}g&&h.set(null,g)}k=a.instance,F=k.getAttribute("data-precedence"),R=h.get(F)||g,R===g&&h.set(null,k),h.set(F,k),this.count++,g=hu.bind(this),k.addEventListener("load",g),k.addEventListener("error",g),R?R.parentNode.insertBefore(k,R.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(k,r.firstChild)),a.state.loading|=4}}var bo={$$typeof:_,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function I5(r,a,h,g,k,R,F,G,X){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=Wc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wc(0),this.hiddenUpdates=Wc(null),this.identifierPrefix=g,this.onUncaughtError=k,this.onCaughtError=R,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function dE(r,a,h,g,k,R,F,G,X,ae,he,me){return r=new I5(r,a,h,F,X,ae,he,me,G),a=1,R===!0&&(a|=24),R=Rn(3,null,null,a),r.current=R,R.stateNode=r,a=Nd(),a.refCount++,r.pooledCache=a,a.refCount++,R.memoizedState={element:g,isDehydrated:h,cache:a},Ld(R),r}function hE(r){return r?(r=Pa,r):Pa}function pE(r,a,h,g,k,R){k=hE(k),g.context===null?g.context=k:g.pendingContext=k,g=si(a),g.payload={element:h},R=R===void 0?null:R,R!==null&&(g.callback=R),h=oi(r,g,a),h!==null&&(vn(h,r,a),Ks(h,r,a))}function fE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var h=r.retryLane;r.retryLane=h!==0&&h<a?h:a}}function Qh(r,a){fE(r,a),(r=r.alternate)&&fE(r,a)}function mE(r){if(r.tag===13||r.tag===31){var a=qi(r,67108864);a!==null&&vn(a,r,67108864),Qh(r,67108864)}}function gE(r){if(r.tag===13||r.tag===31){var a=In();a=Vc(a);var h=qi(r,a);h!==null&&vn(h,r,a),Qh(r,a)}}var mu=!0;function L5(r,a,h,g){var k=W.T;W.T=null;var R=Z.p;try{Z.p=2,Jh(r,a,h,g)}finally{Z.p=R,W.T=k}}function M5(r,a,h,g){var k=W.T;W.T=null;var R=Z.p;try{Z.p=8,Jh(r,a,h,g)}finally{Z.p=R,W.T=k}}function Jh(r,a,h,g){if(mu){var k=ep(g);if(k===null)Ph(r,a,g,gu,h),yE(r,g);else if(F5(k,r,a,h,g))g.stopPropagation();else if(yE(r,g),a&4&&-1<B5.indexOf(r)){for(;k!==null;){var R=Ra(k);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var F=mr(R.pendingLanes);if(F!==0){var G=R;for(G.pendingLanes|=2,G.entangledLanes|=2;F;){var X=1<<31-Qe(F);G.entanglements[1]|=X,F&=~X}vr(R),(at&6)===0&&(Ql=Ie()+500,co(0))}}break;case 31:case 13:G=qi(R,2),G!==null&&vn(G,R,2),eu(),Qh(R,2)}if(R=ep(g),R===null&&Ph(r,a,g,gu,h),R===k)break;k=R}k!==null&&g.stopPropagation()}else Ph(r,a,g,null,h)}}function ep(r){return r=nd(r),tp(r)}var gu=null;function tp(r){if(gu=null,r=Ta(r),r!==null){var a=l(r);if(a===null)r=null;else{var h=a.tag;if(h===13){if(r=c(a),r!==null)return r;r=null}else if(h===31){if(r=o(a),r!==null)return r;r=null}else if(h===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return gu=r,null}function bE(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(tt()){case re:return 2;case pe:return 8;case ye:case ke:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var np=!1,yi=null,vi=null,_i=null,yo=new Map,vo=new Map,Si=[],B5="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 yE(r,a){switch(r){case"focusin":case"focusout":yi=null;break;case"dragenter":case"dragleave":vi=null;break;case"mouseover":case"mouseout":_i=null;break;case"pointerover":case"pointerout":yo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":vo.delete(a.pointerId)}}function _o(r,a,h,g,k,R){return r===null||r.nativeEvent!==R?(r={blockedOn:a,domEventName:h,eventSystemFlags:g,nativeEvent:R,targetContainers:[k]},a!==null&&(a=Ra(a),a!==null&&mE(a)),r):(r.eventSystemFlags|=g,a=r.targetContainers,k!==null&&a.indexOf(k)===-1&&a.push(k),r)}function F5(r,a,h,g,k){switch(a){case"focusin":return yi=_o(yi,r,a,h,g,k),!0;case"dragenter":return vi=_o(vi,r,a,h,g,k),!0;case"mouseover":return _i=_o(_i,r,a,h,g,k),!0;case"pointerover":var R=k.pointerId;return yo.set(R,_o(yo.get(R)||null,r,a,h,g,k)),!0;case"gotpointercapture":return R=k.pointerId,vo.set(R,_o(vo.get(R)||null,r,a,h,g,k)),!0}return!1}function vE(r){var a=Ta(r.target);if(a!==null){var h=l(a);if(h!==null){if(a=h.tag,a===13){if(a=c(h),a!==null){r.blockedOn=a,I1(r.priority,function(){gE(h)});return}}else if(a===31){if(a=o(h),a!==null){r.blockedOn=a,I1(r.priority,function(){gE(h)});return}}else if(a===3&&h.stateNode.current.memoizedState.isDehydrated){r.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}r.blockedOn=null}function bu(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var h=ep(r.nativeEvent);if(h===null){h=r.nativeEvent;var g=new h.constructor(h.type,h);td=g,h.target.dispatchEvent(g),td=null}else return a=Ra(h),a!==null&&mE(a),r.blockedOn=h,!1;a.shift()}return!0}function _E(r,a,h){bu(r)&&h.delete(a)}function j5(){np=!1,yi!==null&&bu(yi)&&(yi=null),vi!==null&&bu(vi)&&(vi=null),_i!==null&&bu(_i)&&(_i=null),yo.forEach(_E),vo.forEach(_E)}function yu(r,a){r.blockedOn===a&&(r.blockedOn=null,np||(np=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,j5)))}var vu=null;function SE(r){vu!==r&&(vu=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){vu===r&&(vu=null);for(var a=0;a<r.length;a+=3){var h=r[a],g=r[a+1],k=r[a+2];if(typeof g!="function"){if(tp(g||h)===null)continue;break}var R=Ra(h);R!==null&&(r.splice(a,3),a-=3,eh(R,{pending:!0,data:k,method:h.method,action:g},g,k))}}))}function us(r){function a(X){return yu(X,r)}yi!==null&&yu(yi,r),vi!==null&&yu(vi,r),_i!==null&&yu(_i,r),yo.forEach(a),vo.forEach(a);for(var h=0;h<Si.length;h++){var g=Si[h];g.blockedOn===r&&(g.blockedOn=null)}for(;0<Si.length&&(h=Si[0],h.blockedOn===null);)vE(h),h.blockedOn===null&&Si.shift();if(h=(r.ownerDocument||r).$$reactFormReplay,h!=null)for(g=0;g<h.length;g+=3){var k=h[g],R=h[g+1],F=k[pn]||null;if(typeof R=="function")F||SE(h);else if(F){var G=null;if(R&&R.hasAttribute("formAction")){if(k=R,F=R[pn]||null)G=F.formAction;else if(tp(k)!==null)continue}else G=F.action;typeof G=="function"?h[g+1]=G:(h.splice(g,3),g-=3),SE(h)}}}function xE(){function r(R){R.canIntercept&&R.info==="react-transition"&&R.intercept({handler:function(){return new Promise(function(F){return k=F})},focusReset:"manual",scroll:"manual"})}function a(){k!==null&&(k(),k=null),g||setTimeout(h,20)}function h(){if(!g&&!navigation.transition){var R=navigation.currentEntry;R&&R.url!=null&&navigation.navigate(R.url,{state:R.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,k=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(h,100),function(){g=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),k!==null&&(k(),k=null)}}}function rp(r){this._internalRoot=r}_u.prototype.render=rp.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var h=a.current,g=In();pE(h,g,r,a,null,null)},_u.prototype.unmount=rp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;pE(r.current,2,null,r,null,null),eu(),a[ka]=null}};function _u(r){this._internalRoot=r}_u.prototype.unstable_scheduleHydration=function(r){if(r){var a=D1();r={blockedOn:null,target:r,priority:a};for(var h=0;h<Si.length&&a!==0&&a<Si[h].priority;h++);Si.splice(h,0,r),h===0&&vE(r)}};var EE=t.version;if(EE!=="19.2.3")throw Error(i(527,EE,"19.2.3"));Z.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=d(a),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var P5={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{St=Su.inject(P5),lt=Su}catch{}}return xo.createRoot=function(r,a){if(!s(r))throw Error(i(299));var h=!1,g="",k=NS,R=OS,F=DS;return a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onUncaughtError!==void 0&&(k=a.onUncaughtError),a.onCaughtError!==void 0&&(R=a.onCaughtError),a.onRecoverableError!==void 0&&(F=a.onRecoverableError)),a=dE(r,1,!1,null,null,h,g,null,k,R,F,xE),r[ka]=a.current,jh(r),new rp(a)},xo.hydrateRoot=function(r,a,h){if(!s(r))throw Error(i(299));var g=!1,k="",R=NS,F=OS,G=DS,X=null;return h!=null&&(h.unstable_strictMode===!0&&(g=!0),h.identifierPrefix!==void 0&&(k=h.identifierPrefix),h.onUncaughtError!==void 0&&(R=h.onUncaughtError),h.onCaughtError!==void 0&&(F=h.onCaughtError),h.onRecoverableError!==void 0&&(G=h.onRecoverableError),h.formState!==void 0&&(X=h.formState)),a=dE(r,1,!0,a,h??null,g,k,X,R,F,G,xE),a.context=hE(null),h=a.current,g=In(),g=Vc(g),k=si(g),k.callback=null,oi(h,k,g),h=g,a.current.lanes=h,Ns(a,h),vr(a),r[ka]=a.current,jh(r),new _u(a)},xo.version="19.2.3",xo}var IE;function K5(){if(IE)return sp.exports;IE=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(),sp.exports=V5(),sp.exports}var Y5=K5(),Es=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(){}},X5={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Z5=class{#e=X5;#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)}},ia=new Z5;function Q5(e){setTimeout(e,0)}var da=typeof window>"u"||"Deno"in globalThis;function ln(){}function J5(e,t){return typeof e=="function"?e(t):e}function Fy(e){return typeof e=="number"&&e>=0&&e!==1/0}function PN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ai(e,t){return typeof e=="function"?e(t):e}function Qn(e,t){return typeof e=="function"?e(t):e}function LE(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:l,queryKey:c,stale:o}=e;if(c){if(i){if(t.queryHash!==wv(c,t.options))return!1}else if(!jo(t.queryKey,c))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||l&&!l(t))}function ME(e,t){const{exact:n,status:i,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(ha(t.options.mutationKey)!==ha(l))return!1}else if(!jo(t.options.mutationKey,l))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function wv(e,t){return(t?.queryKeyHashFn||ha)(e)}function ha(e){return JSON.stringify(e,(t,n)=>jy(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function jo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>jo(e[n],t[n])):!1}var e4=Object.prototype.hasOwnProperty;function UN(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=BE(e)&&BE(t);if(!i&&!(jy(e)&&jy(t)))return t;const l=(i?e:Object.keys(e)).length,c=i?t:Object.keys(t),o=c.length,u=i?new Array(o):{};let d=0;for(let p=0;p<o;p++){const f=i?p:c[p],m=e[f],b=t[f];if(m===b){u[f]=m,(i?p<l:e4.call(e,f))&&d++;continue}if(m===null||b===null||typeof m!="object"||typeof b!="object"){u[f]=b;continue}const w=UN(m,b,n+1);u[f]=w,w===m&&d++}return l===o&&d===l?e:u}function Xu(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 BE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jy(e){if(!FE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!FE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function FE(e){return Object.prototype.toString.call(e)==="[object Object]"}function t4(e){return new Promise(t=>{ia.setTimeout(t,e)})}function Py(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?UN(e,t):t}function n4(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function r4(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Cv=Symbol();function HN(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Cv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function kv(e,t){return typeof e=="function"?e(...t):!!e}function i4(e,t,n){let i=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),i||(i=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var a4=class extends Es{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!da&&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"}},Tv=new a4;function Uy(){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 s4=Q5;function o4(){let e=[],t=0,n=o=>{o()},i=o=>{o()},s=s4;const l=o=>{t?e.push(o):s(()=>{n(o)})},c=()=>{const o=e;e=[],o.length&&s(()=>{i(()=>{o.forEach(u=>{n(u)})})})};return{batch:o=>{let u;t++;try{u=o()}finally{t--,t||c()}return u},batchCalls:o=>(...u)=>{l(()=>{o(...u)})},schedule:l,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{i=o},setScheduler:o=>{s=o}}}var Gt=o4(),l4=class extends Es{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!da&&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}},Zu=new l4;function u4(e){return Math.min(1e3*2**e,3e4)}function zN(e){return(e??"online")==="online"?Zu.isOnline():!0}var Hy=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function qN(e){let t=!1,n=0,i;const s=Uy(),l=()=>s.status!=="pending",c=E=>{if(!l()){const v=new Hy(E);m(v),e.onCancel?.(v)}},o=()=>{t=!0},u=()=>{t=!1},d=()=>Tv.isFocused()&&(e.networkMode==="always"||Zu.isOnline())&&e.canRun(),p=()=>zN(e.networkMode)&&e.canRun(),f=E=>{l()||(i?.(),s.resolve(E))},m=E=>{l()||(i?.(),s.reject(E))},b=()=>new Promise(E=>{i=v=>{(l()||d())&&E(v)},e.onPause?.()}).then(()=>{i=void 0,l()||e.onContinue?.()}),w=()=>{if(l())return;let E;const v=n===0?e.initialPromise:void 0;try{E=v??e.fn()}catch(x){E=Promise.reject(x)}Promise.resolve(E).then(f).catch(x=>{if(l())return;const S=e.retry??(da?0:3),_=e.retryDelay??u4,C=typeof _=="function"?_(n,x):_,N=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,x);if(t||!N){m(x);return}n++,e.onFail?.(n,x),t4(C).then(()=>d()?void 0:b()).then(()=>{t?m(x):w()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(i?.(),s),cancelRetry:o,continueRetry:u,canStart:p,start:()=>(p()?w():b().then(w),s)}}var $N=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fy(this.gcTime)&&(this.#e=ia.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(da?1/0:300*1e3))}clearGcTimeout(){this.#e&&(ia.clearTimeout(this.#e),this.#e=void 0)}},c4=class extends $N{#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=PE(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=PE(this.options);t.data!==void 0&&(this.setState(jE(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Py(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(ln).catch(ln):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Qn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Cv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ai(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:!PN(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(u=>u.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=HN(this.options,t),d=(()=>{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,d,this):o(d)},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=qN({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:o=>{o instanceof Hy&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(o,u)=>{this.#a({type:"failed",failureCount:o,error:u})},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 Hy){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,...GN(n.data,this.options),fetchMeta:e.meta??null};case"success":const i={...n,...jE(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!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",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Gt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function GN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jE(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function PE(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 d4=class extends Es{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#o=Uy(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#s;#o;#a;#m;#h;#p;#u;#c;#l;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),UE(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zy(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zy(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 Qn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#t.setOptions(this.options),t._defaulted&&!Xu(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&HE(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),i&&(this.#t!==n||Qn(this.options.enabled,this.#t)!==Qn(t.enabled,this.#t)||Ai(this.options.staleTime,this.#t)!==Ai(t.staleTime,this.#t))&&this.#g();const s=this.#b();i&&(this.#t!==n||Qn(this.options.enabled,this.#t)!==Qn(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 p4(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.#f.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.#x();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ln)),t}#g(){this.#_();const e=Ai(this.options.staleTime,this.#t);if(da||this.#i.isStale||!Fy(e))return;const n=PN(this.#i.dataUpdatedAt,e)+1;this.#u=ia.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,!(da||Qn(this.options.enabled,this.#t)===!1||!Fy(this.#l)||this.#l===0)&&(this.#c=ia.setInterval(()=>{(this.options.refetchIntervalInBackground||Tv.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#y(this.#b())}#_(){this.#u&&(ia.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(ia.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,u=e!==n?e.state:this.#n,{state:d}=e;let p={...d},f=!1,m;if(t._optimisticResults){const A=this.hasListeners(),D=!A&&UE(e,t),L=A&&HE(e,n,t,i);(D||L)&&(p={...p,...GN(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:w,status:E}=p;m=p.data;let v=!1;if(t.placeholderData!==void 0&&m===void 0&&E==="pending"){let A;s?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(A=s.data,v=!0):A=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,A!==void 0&&(E="success",m=Py(s?.data,A,t),f=!0)}if(t.select&&m!==void 0&&!v)if(s&&m===l?.data&&t.select===this.#m)m=this.#h;else try{this.#m=t.select,m=t.select(m),m=Py(s?.data,m,t),this.#h=m,this.#a=null}catch(A){this.#a=A}this.#a&&(b=this.#a,m=this.#h,w=Date.now(),E="error");const x=p.fetchStatus==="fetching",S=E==="pending",_=E==="error",C=S&&x,N=m!==void 0,O={status:E,fetchStatus:p.fetchStatus,isPending:S,isSuccess:E==="success",isError:_,isInitialLoading:C,isLoading:C,data:m,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:w,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:_&&!N,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:_&&N,isStale:Rv(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Qn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const A=O.data!==void 0,D=O.status==="error"&&!A,L=B=>{D?B.reject(O.error):A&&B.resolve(O.data)},I=()=>{const B=this.#o=O.promise=Uy();L(B)},H=this.#o;switch(H.status){case"pending":e.queryHash===n.queryHash&&L(H);break;case"fulfilled":(D||O.data!==H.value)&&I();break;case"rejected":(!D||O.error!==H.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.#p=this.#t),Xu(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.#f.size)return!0;const l=new Set(s??this.#f);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.#E({listeners:n()})}#x(){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()}#E(e){Gt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function h4(e,t){return Qn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function UE(e,t){return h4(e,t)||e.state.data!==void 0&&zy(e,t,t.refetchOnMount)}function zy(e,t,n){if(Qn(t.enabled,e)!==!1&&Ai(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Rv(e,t)}return!1}function HE(e,t,n,i){return(e!==t||Qn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Rv(e,n)}function Rv(e,t){return Qn(t.enabled,e)!==!1&&e.isStaleByTime(Ai(t.staleTime,e))}function p4(e,t){return!Xu(e.getCurrentResult(),t)}function zE(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:[]},u=0;const d=async()=>{let p=!1;const f=w=>{i4(w,()=>t.signal,()=>p=!0)},m=HN(t.options,t.fetchOptions),b=async(w,E,v)=>{if(p)return Promise.reject();if(E==null&&w.pages.length)return Promise.resolve(w);const S=(()=>{const T={client:t.client,queryKey:t.queryKey,pageParam:E,direction:v?"backward":"forward",meta:t.options.meta};return f(T),T})(),_=await m(S),{maxPages:C}=t.options,N=v?r4:n4;return{pages:N(w.pages,_,C),pageParams:N(w.pageParams,E,C)}};if(s&&l.length){const w=s==="backward",E=w?f4:qE,v={pages:l,pageParams:c},x=E(i,v);o=await b(v,x,w)}else{const w=e??l.length;do{const E=u===0?c[0]??i.initialPageParam:qE(i,o);if(u>0&&E==null)break;o=await b(o,E),u++}while(u<w)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function qE(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 f4(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var m4=class extends $N{#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||WN(),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=qN({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}),this.#n.config.onMutate&&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{await this.#n.config.onError?.(l,e,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onError?.(l,e,this.state.context,n)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,l,e,this.state.context,n)}catch(c){Promise.reject(c)}throw this.#r({type:"error",error:l}),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),Gt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function WN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var g4=class extends Es{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 m4({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=xu(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=xu(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=xu(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=xu(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Gt.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=>ME(t,n))}findAll(e={}){return this.getAll().filter(t=>ME(e,t))}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Gt.batch(()=>Promise.all(e.map(t=>t.continue().catch(ln))))}};function xu(e){return e.options.scope?.id}var b4=class extends Es{#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),Xu(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ha(n.mutationKey)!==ha(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??WN();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){Gt.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};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,n,i,s)}catch(l){Promise.reject(l)}try{this.#i.onSettled?.(t.data,null,n,i,s)}catch(l){Promise.reject(l)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,n,i,s)}catch(l){Promise.reject(l)}try{this.#i.onSettled?.(void 0,t.error,n,i,s)}catch(l){Promise.reject(l)}}}this.listeners.forEach(n=>{n(this.#t)})})}},y4=class extends Es{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const i=t.queryKey,s=t.queryHash??wv(i,t);let l=this.get(s);return l||(l=new c4({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(){Gt.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=>LE(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>LE(e,n)):t}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},v4=class{#e;#t;#n;#i;#r;#s;#o;#a;constructor(e={}){this.#e=e.queryCache||new y4,this.#t=e.mutationCache||new g4,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=Tv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Zu.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(Ai(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=J5(t,l);if(c!==void 0)return this.#e.build(this,i).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Gt.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;Gt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Gt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Gt.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(ln).catch(ln)}invalidateQueries(e,t={}){return Gt.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=Gt.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(ln)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(ln)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Ai(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ln).catch(ln)}fetchInfiniteQuery(e){return e.behavior=zE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ln).catch(ln)}ensureInfiniteQueryData(e){return e.behavior=zE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Zu.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(ha(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(i=>{jo(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(ha(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(i=>{jo(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=wv(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===Cv&&(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()}},VN=q.createContext(void 0),qt=e=>{const t=q.useContext(VN);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_4=({client:e,children:t})=>(q.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(VN.Provider,{value:e,children:t})),KN=q.createContext(!1),S4=()=>q.useContext(KN);KN.Provider;function x4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var E4=q.createContext(x4()),w4=()=>q.useContext(E4),C4=(e,t,n)=>{const i=n?.state.error&&typeof e.throwOnError=="function"?kv(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},k4=e=>{q.useEffect(()=>{e.clearReset()},[e])},T4=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||kv(n,[e.error,i])),R4=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))}},A4=(e,t)=>e.isLoading&&e.isFetching&&!t,N4=(e,t)=>e?.suspense&&t.isPending,$E=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function O4(e,t,n){const i=S4(),s=w4(),l=qt(),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const o=l.getQueryCache().get(c.queryHash);c._optimisticResults=i?"isRestoring":"optimistic",R4(c),C4(c,s,o),k4(s);const u=!l.getQueryCache().get(c.queryHash),[d]=q.useState(()=>new t(l,c)),p=d.getOptimisticResult(c),f=!i&&e.subscribed!==!1;if(q.useSyncExternalStore(q.useCallback(m=>{const b=f?d.subscribe(Gt.batchCalls(m)):ln;return d.updateResult(),b},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),q.useEffect(()=>{d.setOptions(c)},[c,d]),N4(c,p))throw $E(c,d,s);if(T4({result:p,errorResetBoundary:s,throwOnError:c.throwOnError,query:o,suspense:c.suspense}))throw p.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(c,p),c.experimental_prefetchInRender&&!da&&A4(p,i)&&(u?$E(c,d,s):o?.promise)?.catch(ln).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?p:d.trackResult(p)}function ar(e,t){return O4(e,d4)}function tn(e,t){const n=qt(),[i]=q.useState(()=>new b4(n,e));q.useEffect(()=>{i.setOptions(e)},[i,e]);const s=q.useSyncExternalStore(q.useCallback(c=>i.subscribe(Gt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=q.useCallback((c,o)=>{i.mutate(c,o).catch(ln)},[i]);if(s.error&&kv(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}const qy=new WeakMap,D4=new WeakMap,Qu={current:[]};let cp=!1,Io=0;const Do=new Set,Eu=new Map;function YN(e){for(const t of e){if(Qu.current.includes(t))continue;Qu.current.push(t),t.recompute();const n=D4.get(t);if(n)for(const i of n){const s=qy.get(i);s?.length&&YN(s)}}}function I4(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function L4(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function XN(e){if(Io>0&&!Eu.has(e)&&Eu.set(e,e.prevState),Do.add(e),!(Io>0)&&!cp)try{for(cp=!0;Do.size>0;){const t=Array.from(Do);Do.clear();for(const n of t){const i=Eu.get(n)??n.prevState;n.prevState=i,I4(n)}for(const n of t){const i=qy.get(n);i&&(Qu.current.push(n),YN(i))}for(const n of t){const i=qy.get(n);if(i)for(const s of i)L4(s)}}}finally{cp=!1,Qu.current=[],Eu.clear()}}function M4(e){Io++;try{e()}finally{if(Io--,Io===0){const t=Do.values().next().value;t&&XN(t)}}}function B4(e){return typeof e=="function"}class F4{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):B4(t)?this.state=t(this.prevState):this.state=t,(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),XN(this)}}const Ni="__TSR_index",GE="popstate",WE="beforeunload";function j4(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,...u})=>{if(o?.ignoreBlocker??!1){c();return}const p=e.getBlockers?.()??[],f=u.type==="PUSH"||u.type==="REPLACE";if(typeof document<"u"&&p.length&&f)for(const m of p){const b=Ju(u.path,u.state);if(await m.blockerFn({currentLocation:t,nextLocation:b,action:u.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,u)=>{const d=t.state[Ni];o=VE(d+1,o),l({task:()=>{e.pushState(c,o),i({type:"PUSH"})},navigateOpts:u,type:"PUSH",path:c,state:o})},replace:(c,o,u)=>{const d=t.state[Ni];o=VE(d,o),l({task:()=>{e.replaceState(c,o),i({type:"REPLACE"})},navigateOpts:u,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[Ni]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const o=e.getBlockers?.()??[];return e.setBlockers([...o,c]),()=>{const u=e.getBlockers?.()??[];e.setBlockers?.(u.filter(d=>d!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function VE(e,t){t||(t={});const n=Av();return{...t,key:n,__TSR_key:n,[Ni]:e}}function P4(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const l=()=>s,c=A=>s=A,o=(A=>A),u=(()=>Ju(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const A=Av();t.history.replaceState({[Ni]:0,key:A,__TSR_key:A},"")}let d=u(),p,f=!1,m=!1,b=!1,w=!1;const E=()=>d;let v,x;const S=()=>{v&&(O._ignoreSubscribers=!0,(v.isPush?t.history.pushState:t.history.replaceState)(v.state,"",v.href),O._ignoreSubscribers=!1,v=void 0,x=void 0,p=void 0)},_=(A,D,L)=>{const I=o(D);x||(p=d),d=Ju(D,L),v={href:I,state:L,isPush:v?.isPush||A==="push"},x||(x=Promise.resolve().then(()=>S()))},C=A=>{d=u(),O.notify({type:A})},N=async()=>{if(m){m=!1;return}const A=u(),D=A.state[Ni]-d.state[Ni],L=D===1,I=D===-1,H=!L&&!I||f;f=!1;const B=H?"GO":I?"BACK":"FORWARD",V=H?{type:"GO",index:D}:{type:I?"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:d,nextLocation:A,action:B})){m=!0,t.history.go(1),O.notify(V);return}}}d=u(),O.notify(V)},T=A=>{if(w){w=!1;return}let D=!1;const L=l();if(typeof document<"u"&&L.length)for(const I of L){const H=I.enableBeforeUnload??!0;if(H===!0){D=!0;break}if(typeof H=="function"&&H()===!0){D=!0;break}}if(D)return A.preventDefault(),A.returnValue=""},O=j4({getLocation:E,getLength:()=>t.history.length,pushState:(A,D)=>_("push",A,D),replaceState:(A,D)=>_("replace",A,D),back:A=>(A&&(b=!0),w=!0,t.history.back()),forward:A=>{A&&(b=!0),w=!0,t.history.forward()},go:A=>{f=!0,t.history.go(A)},createHref:A=>o(A),flush:S,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(WE,T,{capture:!0}),t.removeEventListener(GE,N)},onBlocked:()=>{p&&d!==p&&(d=p)},getBlockers:l,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(WE,T,{capture:!0}),t.addEventListener(GE,N),t.history.pushState=function(...A){const D=n.apply(t.history,A);return O._ignoreSubscribers||C("PUSH"),D},t.history.replaceState=function(...A){const D=i.apply(t.history,A);return O._ignoreSubscribers||C("REPLACE"),D},O}function U4(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Ju(e,t){const n=U4(e),i=n.indexOf("#"),s=n.indexOf("?"),l=Av();return{href:n,pathname:n.substring(0,i>0?s>0?Math.min(i,s):i:s>0?s:n.length),hash:i>-1?n.substring(i):"",search:s>-1?n.slice(s,i===-1?void 0:i):"",state:t||{[Ni]:0,key:l,__TSR_key:l}}}function Av(){return(Math.random()+1).toString(36).substring(7)}const H4=!1;function Lo(e){let t;return M4(()=>{t=e()}),t}function Po(e){return e[e.length-1]}function z4(e){return typeof e=="function"}function Ci(e,t){return z4(e)?e(t):e}const q4=Object.prototype.hasOwnProperty,KE=Object.prototype.propertyIsEnumerable;function Zn(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=t,s=ZE(e)&&ZE(i);if(!s&&!(ec(e)&&ec(i)))return i;const l=s?e:YE(e);if(!l)return i;const c=s?i:YE(i);if(!c)return i;const o=l.length,u=c.length,d=s?new Array(u):{};let p=0;for(let f=0;f<u;f++){const m=s?f:c[f],b=e[m],w=i[m];if(b===w){d[m]=b,(s?f<o:q4.call(e,m))&&p++;continue}if(b===null||w===null||typeof b!="object"||typeof w!="object"){d[m]=w;continue}const E=Zn(b,w,n+1);d[m]=E,E===b&&p++}return o===u&&p===o?e:d}function YE(e){const t=Object.getOwnPropertyNames(e);for(const s of t)if(!KE.call(e,s))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const i=t;for(const s of n){if(!KE.call(e,s))return!1;i.push(s)}return i}function ec(e){if(!XE(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!XE(n)||!n.hasOwnProperty("isPrototypeOf"))}function XE(e){return Object.prototype.toString.call(e)==="[object Object]"}function ZE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function la(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(!la(e[i],t[i],n))return!1;return!0}if(ec(e)&&ec(t)){const i=n?.ignoreUndefined??!0;if(n?.partial){for(const c in t)if((!i||t[c]!==void 0)&&!la(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||!la(e[c],t[c],n)))return!1;return s===l}return!1}function vs(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 gs(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function $4(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function QE(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return $4(t)}const ZN=["http:","https:","mailto:","tel:"];function tc(e){if(!e)return!1;try{const t=new URL(e);return!ZN.includes(t.protocol)}catch{return!1}}function dp(e,t){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return e;const n=/%25|%5C/gi;let i=0,s="",l;for(;(l=n.exec(e))!==null;)s+=QE(e.slice(i,l.index))+l[0],i=n.lastIndex;return s=s+QE(i?e.slice(i):e),s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function G4(e){return/[^\u0000-\u007F]/.test(e)?e.replace(/[^\u0000-\u007F]/gu,encodeURIComponent):e}var W4="Invariant failed";function Wr(e,t){if(!e)throw new Error(W4)}function nc(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 u=n;t.delete(u.key),u.next&&(n=u.next,u.next.prev=void 0),u===i&&(i=void 0)}const o=t.get(l);if(o)o.value=c,s(o);else{const u={key:l,value:c,prev:i};i&&(i.next=u),i=u,n||(n=u),t.set(l,u)}},clear(){t.clear(),n=void 0,i=void 0}}}const _s=0,pa=1,fa=2,Uo=3,aa=4,QN=5;function V4(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function Nv(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,l=e.substring(t,s);if(!l||!l.includes("$"))return n[0]=_s,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(l==="$"){const o=e.length;return n[0]=fa,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}if(l.charCodeAt(0)===36)return n[0]=pa,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const c=V4(l);if(c){const[o,u]=c,d=l.charCodeAt(o+1);if(d===45){if(o+2<l.length&&l.charCodeAt(o+2)===36){const p=o+3,f=u;if(p<f)return n[0]=Uo,n[1]=t+o,n[2]=t+p,n[3]=t+f,n[4]=t+u+1,n[5]=s,n}}else if(d===36){const p=o+1,f=o+2;return f===u?(n[0]=fa,n[1]=t+o,n[2]=t+p,n[3]=t+f,n[4]=t+u+1,n[5]=e.length,n):(n[0]=pa,n[1]=t+o,n[2]=t+f,n[3]=t+u,n[4]=t+u+1,n[5]=s,n)}}return n[0]=_s,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function bc(e,t,n,i,s,l,c){c?.(n);let o=i;{const u=n.fullPath??n.from,d=u.length,p=n.options?.caseSensitive??e,f=!!(n.options?.params?.parse&&n.options?.skipRouteOnParseError?.params);for(;o<d;){const b=Nv(u,o,t);let w;const E=o,v=b[5];switch(o=v+1,l++,b[0]){case _s:{const S=u.substring(b[2],b[3]);if(p){const _=s.static?.get(S);if(_)w=_;else{s.static??=new Map;const C=sa(n.fullPath??n.from);C.parent=s,C.depth=l,w=C,s.static.set(S,C)}}else{const _=S.toLowerCase(),C=s.staticInsensitive?.get(_);if(C)w=C;else{s.staticInsensitive??=new Map;const N=sa(n.fullPath??n.from);N.parent=s,N.depth=l,w=N,s.staticInsensitive.set(_,N)}}break}case pa:{const S=u.substring(E,b[1]),_=u.substring(b[4],v),C=p&&!!(S||_),N=S?C?S:S.toLowerCase():void 0,T=_?C?_:_.toLowerCase():void 0,O=!f&&s.dynamic?.find(A=>!A.skipOnParamError&&A.caseSensitive===C&&A.prefix===N&&A.suffix===T);if(O)w=O;else{const A=pp(pa,n.fullPath??n.from,C,N,T);w=A,A.depth=l,A.parent=s,s.dynamic??=[],s.dynamic.push(A)}break}case Uo:{const S=u.substring(E,b[1]),_=u.substring(b[4],v),C=p&&!!(S||_),N=S?C?S:S.toLowerCase():void 0,T=_?C?_:_.toLowerCase():void 0,O=!f&&s.optional?.find(A=>!A.skipOnParamError&&A.caseSensitive===C&&A.prefix===N&&A.suffix===T);if(O)w=O;else{const A=pp(Uo,n.fullPath??n.from,C,N,T);w=A,A.parent=s,A.depth=l,s.optional??=[],s.optional.push(A)}break}case fa:{const S=u.substring(E,b[1]),_=u.substring(b[4],v),C=p&&!!(S||_),N=S?C?S:S.toLowerCase():void 0,T=_?C?_:_.toLowerCase():void 0,O=pp(fa,n.fullPath??n.from,C,N,T);w=O,O.parent=s,O.depth=l,s.wildcard??=[],s.wildcard.push(O)}}s=w}if(f&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const b=sa(n.fullPath??n.from);b.kind=QN,b.parent=s,l++,b.depth=l,s.pathless??=[],s.pathless.push(b),s=b}const m=(n.path||!n.children)&&!n.isRoot;if(m&&u.endsWith("/")){const b=sa(n.fullPath??n.from);b.kind=aa,b.parent=s,l++,b.depth=l,s.index=b,s=b}s.parse=n.options?.params?.parse??null,s.skipOnParamError=f,s.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,m&&!s.route&&(s.route=n,s.fullPath=n.fullPath??n.from)}if(n.children)for(const u of n.children)bc(e,t,u,o,s,l,c)}function hp(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function wi(e){if(e.pathless)for(const t of e.pathless)wi(t);if(e.static)for(const t of e.static.values())wi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())wi(t);if(e.dynamic?.length){e.dynamic.sort(hp);for(const t of e.dynamic)wi(t)}if(e.optional?.length){e.optional.sort(hp);for(const t of e.optional)wi(t)}if(e.wildcard?.length){e.wildcard.sort(hp);for(const t of e.wildcard)wi(t)}}function sa(e){return{kind:_s,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function pp(e,t,n,i,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:i,suffix:s}}function K4(e,t){const n=sa("/"),i=new Uint16Array(6);for(const s of e)bc(!1,i,s,1,n,0);wi(n),t.masksTree=n,t.flatCache=nc(1e3)}function Y4(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const i=Ov(e,t.masksTree);return t.flatCache.set(e,i),i}function X4(e,t,n,i,s){e||="/",i||="/";const l=t?`case\0${e}`:e;let c=s.singleCache.get(l);if(!c){c=sa("/");const o=new Uint16Array(6);bc(t,o,{from:e},1,c,0),s.singleCache.set(l,c)}return Ov(i,c,n)}function Z4(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||="/";let l;try{l=Ov(e,t.segmentTree,n)}catch(c){if(c instanceof URIError)l=null;else throw c}return l&&(l.branch=eM(l.route)),t.matchCache.set(i,l),l}function Q4(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function J4(e,t=!1,n){const i=sa(e.fullPath),s=new Uint16Array(6),l={},c={};let o=0;return bc(t,s,e,1,i,0,d=>{if(n?.(d,o),Wr(!(d.id in l),`Duplicate routes found with id: ${String(d.id)}`),l[d.id]=d,o!==0&&d.path){const p=Q4(d.fullPath);(!c[p]||d.fullPath.endsWith("/"))&&(c[p]=d)}o++}),wi(i),{processedTree:{segmentTree:i,singleCache:nc(1e3),matchCache:nc(1e3),flatCache:null,masksTree:null},routesById:l,routesByPath:c}}function Ov(e,t,n=!1){const i=e.split("/"),s=nM(e,i,t,n);if(!s)return null;const[l]=JN(e,i,s);return{route:s.node.route,rawParams:l,parsedParams:s.parsedParams}}function JN(e,t,n){const i=tM(n.node);let s=null;const l={};let c=n.extract?.part??0,o=n.extract?.node??0,u=n.extract?.path??0,d=n.extract?.segment??0;for(;o<i.length;c++,o++,u++,d++){const p=i[o];if(p.kind===aa)break;if(p.kind===QN){d--,c--,u--;continue}const f=t[c],m=u;if(f&&(u+=f.length),p.kind===pa){s??=n.node.fullPath.split("/");const b=s[d],w=p.prefix?.length??0;if(b.charCodeAt(w)===123){const v=p.suffix?.length??0,x=b.substring(w+2,b.length-v-1),S=f.substring(w,f.length-v);l[x]=decodeURIComponent(S)}else{const v=b.substring(1);l[v]=decodeURIComponent(f)}}else if(p.kind===Uo){if(n.skipped&1<<o){c--,u=m-1;continue}s??=n.node.fullPath.split("/");const b=s[d],w=p.prefix?.length??0,E=p.suffix?.length??0,v=b.substring(w+3,b.length-E-1),x=p.suffix||p.prefix?f.substring(w,f.length-E):f;x&&(l[v]=decodeURIComponent(x))}else if(p.kind===fa){const b=p,w=e.substring(m+(b.prefix?.length??0),e.length-(b.suffix?.length??0)),E=decodeURIComponent(w);l["*"]=E,l._splat=E;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:c,node:o,path:u,segment:d}]}function eM(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function tM(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function nM(e,t,n,i){if(e==="/"&&n.index)return{node:n.index,skipped:0};const s=!Po(t),l=s&&e!=="/",c=t.length-(s?1:0),o=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let u=null,d=null,p=null;for(;o.length;){const f=o.pop(),{node:m,index:b,skipped:w,depth:E,statics:v,dynamics:x,optionals:S}=f;let{extract:_,rawParams:C,parsedParams:N}=f;if(m.skipOnParamError){if(!fp(e,t,f))continue;C=f.rawParams,_=f.extract,N=f.parsedParams}i&&m.route&&m.kind!==aa&&Eo(d,f)&&(d=f);const T=b===c;if(T&&(m.route&&!l&&Eo(p,f)&&(p=f),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const O=T?void 0:t[b];let A;if(T&&m.index){const D={node:m.index,index:b,skipped:w,depth:E+1,statics:v,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N};let L=!0;if(m.index.skipOnParamError&&(fp(e,t,D)||(L=!1)),L){if(v===c&&!x&&!S&&!w)return D;Eo(p,D)&&(p=D)}}if(m.wildcard&&Eo(u,f))for(const D of m.wildcard){const{prefix:L,suffix:I}=D;if(L&&(T||!(D.caseSensitive?O:A??=O.toLowerCase()).startsWith(L)))continue;if(I){if(T)continue;const B=t.slice(b).join("/").slice(-I.length);if((D.caseSensitive?B:B.toLowerCase())!==I)continue}const H={node:D,index:c,skipped:w,depth:E,statics:v,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N};if(!(D.skipOnParamError&&!fp(e,t,H))){u=H;break}}if(m.optional){const D=w|1<<E,L=E+1;for(let I=m.optional.length-1;I>=0;I--){const H=m.optional[I];o.push({node:H,index:b,skipped:D,depth:L,statics:v,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N})}if(!T)for(let I=m.optional.length-1;I>=0;I--){const H=m.optional[I],{prefix:B,suffix:V}=H;if(B||V){const K=H.caseSensitive?O:A??=O.toLowerCase();if(B&&!K.startsWith(B)||V&&!K.endsWith(V))continue}o.push({node:H,index:b+1,skipped:w,depth:L,statics:v,dynamics:x,optionals:S+1,extract:_,rawParams:C,parsedParams:N})}}if(!T&&m.dynamic&&O)for(let D=m.dynamic.length-1;D>=0;D--){const L=m.dynamic[D],{prefix:I,suffix:H}=L;if(I||H){const B=L.caseSensitive?O:A??=O.toLowerCase();if(I&&!B.startsWith(I)||H&&!B.endsWith(H))continue}o.push({node:L,index:b+1,skipped:w,depth:E+1,statics:v,dynamics:x+1,optionals:S,extract:_,rawParams:C,parsedParams:N})}if(!T&&m.staticInsensitive){const D=m.staticInsensitive.get(A??=O.toLowerCase());D&&o.push({node:D,index:b+1,skipped:w,depth:E+1,statics:v+1,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N})}if(!T&&m.static){const D=m.static.get(O);D&&o.push({node:D,index:b+1,skipped:w,depth:E+1,statics:v+1,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N})}if(m.pathless){const D=E+1;for(let L=m.pathless.length-1;L>=0;L--){const I=m.pathless[L];o.push({node:I,index:b,skipped:w,depth:D,statics:v,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N})}}}if(p&&u)return Eo(u,p)?p:u;if(p)return p;if(u)return u;if(i&&d){let f=d.index;for(let b=0;b<d.index;b++)f+=t[b].length;const m=f===e.length?"/":e.slice(f);return d.rawParams??={},d.rawParams["**"]=decodeURIComponent(m),d}return null}function fp(e,t,n){try{const[i,s]=JN(e,t,n);n.rawParams=i,n.extract=s;const l=n.node.parse(i);return n.parsedParams=Object.assign({},n.parsedParams,l),!0}catch{return null}}function Eo(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===aa)>(e.node.kind===aa)||t.node.kind===aa==(e.node.kind===aa)&&t.depth>e.depth))):!0}function Bu(e){return Dv(e.filter(t=>t!==void 0).join("/"))}function Dv(e){return e.replace(/\/{2,}/g,"/")}function eO(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Gr(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function tO(e){return Gr(eO(e))}function rc(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function rM(e,t,n){return rc(e,n)===rc(t,n)}function iM({base:e,to:t,trailingSlash:n="never",cache:i}){const s=t.startsWith("/"),l=!s&&t===".";let c;if(i){c=s?t:l?e:e+"\0"+t;const f=i.get(c);if(f)return f}let o;if(l)o=e.split("/");else if(s)o=t.split("/");else{for(o=e.split("/");o.length>1&&Po(o)==="";)o.pop();const f=t.split("/");for(let m=0,b=f.length;m<b;m++){const w=f[m];w===""?m?m===b-1&&o.push(w):o=[w]:w===".."?o.pop():w==="."||o.push(w)}}o.length>1&&(Po(o)===""?n==="never"&&o.pop():n==="always"&&o.push(""));let u,d="";for(let f=0;f<o.length;f++){f>0&&(d+="/");const m=o[f];if(!m)continue;u=Nv(m,0,u);const b=u[0];if(b===_s){d+=m;continue}const w=u[5],E=m.substring(0,u[1]),v=m.substring(u[4],w),x=m.substring(u[2],u[3]);b===pa?d+=E||v?`${E}{$${x}}${v}`:`$${x}`:b===fa?d+=E||v?`${E}{$}${v}`:"$":d+=`${E}{-$${x}}${v}`}d=Dv(d);const p=d||"/";return c&&i&&i.set(c,p),p}function aM(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),n=Array.from(t.keys()).map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(n,"g");return s=>s.replace(i,l=>t.get(l)??l)}function mp(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?encodeURI(i):sM(i,n)}function gp({path:e,params:t,decoder:n,server:i}){let s=!1;const l={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:s};const c=e.length;let o=0,u,d="";for(;o<c;){const f=o;u=Nv(e,f,u);const m=u[5];if(o=m+1,f===m)continue;const b=u[0];if(b===_s){d+="/"+e.substring(f,m);continue}if(b===fa){const w=t._splat;l._splat=w,l["*"]=w;const E=e.substring(f,u[1]),v=e.substring(u[4],m);if(!w){s=!0,(E||v)&&(d+="/"+E+v);continue}const x=mp("_splat",t,n);d+="/"+E+x+v;continue}if(b===pa){const w=e.substring(u[2],u[3]);!s&&!(w in t)&&(s=!0),l[w]=t[w];const E=e.substring(f,u[1]),v=e.substring(u[4],m),x=mp(w,t,n)??"undefined";d+="/"+E+x+v;continue}if(b===Uo){const w=e.substring(u[2],u[3]),E=t[w];if(E==null)continue;l[w]=E;const v=e.substring(f,u[1]),x=e.substring(u[4],m),S=mp(w,t,n)??"";d+="/"+v+S+x;continue}}return e.endsWith("/")&&(d+="/"),{usedParams:l,interpolatedPath:d||"/",isMissingParams:s}}function sM(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Fn(e){return!!e?.isNotFound}function oM(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const $y="tsr-scroll-restoration-v1_3",lM=(e,t)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function uM(){const e=oM();if(!e)return null;const t=e.getItem($y);let n=t?JSON.parse(t):{};return{state:n,set:i=>{n=Ci(i,n)||n;try{e.setItem($y,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const wu=uM(),cM=e=>e.state.__TSR_key||e.href;function dM(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 ic=!1;function hM({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:s,location:l}){let c;try{c=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(d){console.error(d);return}const o=t||window.history.state?.__TSR_key,u=c[o];ic=!0;e:{if(i&&u&&Object.keys(u).length>0){for(const f in u){const m=u[f];if(f==="window")window.scrollTo({top:m.scrollY,left:m.scrollX,behavior:n});else if(f){const b=document.querySelector(f);b&&(b.scrollLeft=m.scrollX,b.scrollTop=m.scrollY)}}break e}const d=(l??window.location).hash.split("#",2)[1];if(d){const f=window.history.state?.__hashScrollIntoViewOptions??!0;if(f){const m=document.getElementById(d);m&&m.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 m=typeof f=="function"?f():document.querySelector(f);m&&m.scrollTo(p)}}ic=!1}function pM(e,t){if(!wu||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!wu))return;e.isScrollRestorationSetup=!0,ic=!1;const i=e.options.getScrollRestorationKey||cM;window.history.scrollRestoration="manual";const s=l=>{if(ic||!e.isScrollRestoring)return;let c="";if(l.target===document||l.target===window)c="window";else{const u=l.target.getAttribute("data-scroll-restoration-id");u?c=`[data-scroll-restoration-id="${u}"]`:c=dM(l.target)}const o=i(e.state.location);wu.set(u=>{const d=u[o]||={},p=d[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 u})};typeof document<"u"&&document.addEventListener("scroll",lM(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})||(hM({storageKey:$y,key:c,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&wu.set(o=>(o[c]||={},o)))})}function fM(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 mM(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 bp(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function gM(e){const t=new URLSearchParams(e),n={};for(const[i,s]of t.entries()){const l=n[i];l==null?n[i]=bp(s):Array.isArray(l)?l.push(bp(s)):n[i]=[l,bp(s)]}return n}const bM=vM(JSON.parse),yM=_M(JSON.stringify,JSON.parse);function vM(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=gM(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function _M(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=mM(s,i);return l?`?${l}`:""}}const Jn="__root__";function nO(e){if(e.statusCode=e.statusCode||e.code||307,typeof e.href=="string"&&tc(e.href))throw new Error(`Redirect blocked: unsafe protocol in href "${e.href}". Only ${ZN.join(", ")} protocols are allowed.`);if(!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 nr(e){return e instanceof Response&&!!e.options}const Fu=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},yc=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),bs=(e,t,n=!0)=>{const i={...e.router.options.context??{}},s=n?t:t-1;for(let l=0;l<=s;l++){const c=e.matches[l];if(!c)continue;const o=e.router.getMatch(c.id);o&&Object.assign(i,o.__routeContext,o.__beforeLoadContext)}return i},rO=(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),Wr(n.options.notFoundComponent);const i=e.matches.find(s=>s.routeId===n.id);Wr(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,rO(e,t))},ki=(e,t,n)=>{if(!(!nr(n)&&!Fn(n))){if(nr(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=nr(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,s=>({...s,status:i,context:bs(e,t.index),isFetching:!1,error:n})),Fn(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw nr(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(rO(e,n),n)}},iO=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,wo=(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,ki(e,e.router.getMatch(s),n);try{c.options.onError?.(n)}catch(o){n=o,ki(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}))},aO=(e,t,n,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!yc(e,t)&&(n.options.loader||n.options.beforeLoad||lO(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const c=setTimeout(()=>{Fu(e)},s);i._nonReactive.pendingTimeout=c}},SM=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;aO(e,t,n,i);const s=()=>{const l=e.router.getMatch(t);l.preload&&(l.status==="redirected"||l.status==="notFound")&&ki(e,l,l.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},xM=(e,t,n,i)=>{const s=e.router.getMatch(t),l=s._nonReactive.loadPromise;s._nonReactive.loadPromise=vs(()=>{l?.resolve()});const{paramsError:c,searchError:o}=s;c&&wo(e,n,c,"PARSE_PARAMS"),o&&wo(e,n,o,"VALIDATE_SEARCH"),aO(e,t,i,s);const u=new AbortController,d=e.matches[n-1]?.id;(d?e.router.getMatch(d):void 0)?.context??e.router.options.context;let f=!1;const m=()=>{f||(f=!0,e.updateMatch(t,T=>({...T,isFetching:"beforeLoad",fetchCount:T.fetchCount+1,abortController:u})))},b=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,T=>({...T,isFetching:!1}))};if(!i.options.beforeLoad){Lo(()=>{m(),b()});return}s._nonReactive.beforeLoadPromise=vs();const w={...bs(e,n,!1),...s.__routeContext},{search:E,params:v,cause:x}=s,S=yc(e,t),_={search:E,abortController:u,params:v,preload:S,context:w,location:e.location,navigate:T=>e.router.navigate({...T,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:S?"preload":x,matches:e.matches,...e.router.options.additionalContext},C=T=>{if(T===void 0){Lo(()=>{m(),b()});return}(nr(T)||Fn(T))&&(m(),wo(e,n,T,"BEFORE_LOAD")),Lo(()=>{m(),e.updateMatch(t,O=>({...O,__beforeLoadContext:T})),b()})};let N;try{if(N=i.options.beforeLoad(_),gs(N))return m(),N.catch(T=>{wo(e,n,T,"BEFORE_LOAD")}).then(C)}catch(T){m(),wo(e,n,T,"BEFORE_LOAD")}C(N)},EM=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],l=()=>o(),c=()=>xM(e,n,t,s),o=()=>{if(iO(e,n))return;const u=SM(e,n,s);return gs(u)?u.then(c):c()};return l()},wM=(e,t,n)=>{const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={ssr:e.router.options.ssr,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 u=l?.meta,d=l?.links,p=l?.scripts,f=l?.styles;return{meta:u,links:d,headScripts:p,headers:o,scripts:c,styles:f}})},sO=(e,t,n,i)=>{const s=e.matchPromises[n-1],{params:l,loaderDeps:c,abortController:o,cause:u}=e.router.getMatch(t),d=bs(e,n),p=yc(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":u,route:i,...e.router.options.additionalContext}},JE=async(e,t,n,i)=>{try{const s=e.router.getMatch(t);try{(!(H4??e.router.isServer)||s.ssr===!0)&&oO(i);const l=i.options.loader?.(sO(e,t,n,i)),c=i.options.loader&&gs(l);if((c||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(t,d=>({...d,isFetching:"loader"})),i.options.loader){const d=c?await l:l;ki(e,e.router.getMatch(t),d),d!==void 0&&e.updateMatch(t,p=>({...p,loaderData:d}))}i._lazyPromise&&await i._lazyPromise;const u=s._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,d=>({...d,error:void 0,context:bs(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let c=l;if(c?.name==="AbortError"){e.updateMatch(t,u=>({...u,status:u.status==="pending"?"success":u.status,isFetching:!1,context:bs(e,n)}));return}const o=s._nonReactive.minPendingPromise;o&&await o,Fn(l)&&await i.options.notFoundComponent?.preload?.(),ki(e,e.router.getMatch(t),l);try{i.options.onError?.(l)}catch(u){c=u,ki(e,e.router.getMatch(t),u)}e.updateMatch(t,u=>({...u,error:c,context:bs(e,n),status:"error",isFetching:!1}))}}catch(s){const l=e.router.getMatch(t);l&&(l._nonReactive.loaderPromise=void 0),ki(e,l,s)}},CM=async(e,t)=>{const{id:n,routeId:i}=e.matches[t];let s=!1,l=!1;const c=e.router.looseRoutesById[i];if(!iO(e,n)){const d=e.router.getMatch(n);if(d._nonReactive.loaderPromise){if(d.status==="success"&&!e.sync&&!d.preload)return d;await d._nonReactive.loaderPromise;const p=e.router.getMatch(n),f=p._nonReactive.error||p.error;f&&ki(e,p,f)}else{const p=Date.now()-d.updatedAt,f=yc(e,n),m=f?c.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.router.options.defaultStaleTime??0,b=c.options.shouldReload,w=typeof b=="function"?b(sO(e,n,t,c)):b,E=!!f&&!e.router.state.matches.some(_=>_.id===n),v=e.router.getMatch(n);v._nonReactive.loaderPromise=vs(),E!==v.preload&&e.updateMatch(n,_=>({..._,preload:E}));const{status:x,invalid:S}=v;s=x==="success"&&(S||(w??p>m)),f&&c.options.preload===!1||(s&&!e.sync?(l=!0,(async()=>{try{await JE(e,n,t,c);const _=e.router.getMatch(n);_._nonReactive.loaderPromise?.resolve(),_._nonReactive.loadPromise?.resolve(),_._nonReactive.loaderPromise=void 0}catch(_){nr(_)&&await e.router.navigate(_.options)}})()):(x!=="success"||s&&e.sync)&&await JE(e,n,t,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 u=l?o.isFetching:!1;return u!==o.isFetching||o.invalid!==!1?(e.updateMatch(n,d=>({...d,isFetching:u,invalid:!1})),e.router.getMatch(n)):o};async function e2(e){const t=Object.assign(e,{matchPromises:[]});t.router.state.matches.some(n=>n._forcePending)&&Fu(t);try{for(let o=0;o<t.matches.length;o++){const u=EM(t,o);gs(u)&&await u}const n=t.firstBadMatchIndex??t.matches.length;for(let o=0;o<n;o++)t.matchPromises.push(CM(t,o));const s=(await Promise.allSettled(t.matchPromises)).filter(o=>o.status==="rejected").map(o=>o.reason);let l;for(const o of s){if(nr(o))throw o;!l&&Fn(o)&&(l=o)}for(const o of t.matches){const{id:u,routeId:d}=o,p=t.router.looseRoutesById[d];try{const f=wM(t,u,p);if(f){const m=await f;t.updateMatch(u,b=>({...b,...m}))}}catch(f){console.error(`Error executing head for route ${d}:`,f)}}if(l)throw l;const c=Fu(t);gs(c)&&await c}catch(n){if(Fn(n)&&!t.preload){const i=Fu(t);throw gs(i)&&await i,n}if(nr(n))throw n}return t.matches}async function oO(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 uO){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 lO(e){for(const t of uO)if(e.options[t]?.preload)return!0;return!1}const uO=["component","errorComponent","pendingComponent","notFoundComponent"];function kM(e){return{input:({url:t})=>{for(const n of e)t=Gy(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=cO(e[n],t);return t}}}function TM(e){const t=tO(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=Bu(["/",t,c.pathname]),c)}}function Gy(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 cO(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 ua(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 RM{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;if(this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=aM(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=P4()),this.origin=this.options.origin,this.origin||(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;let m;this.resolvePathCache=nc(1e3),m=this.buildRouteTree(),this.setRoutes(m)}!this.__store&&this.latestLocation&&(this.__store=new F4(NM(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(m=>!["redirected"].includes(m.status))}}}),pM(this));let o=!1;const u=this.options.basepath??"/",d=this.options.rewrite;if(l||s!==u||c!==d){this.basepath=u;const m=[],b=tO(u);b&&b!=="/"&&m.push(TM({basepath:u})),d&&m.push(d),this.rewrite=m.length===0?void 0:m.length===1?m[0]:kM(m),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 n=J4(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});return this.options.routeMasks&&K4(this.options.routeMasks,n.processedTree),n},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:u,state:d})=>{const p=new URL(u,this.origin),f=Gy(this.rewrite,p),m=this.options.parseSearch(f.search),b=this.options.stringifySearch(m);return f.search=b,{href:f.href.replace(f.origin,""),publicHref:u,pathname:dp(f.pathname),external:!!this.rewrite&&f.origin!==this.origin,searchStr:b,search:Zn(i?.search,m),hash:dp(f.hash.split("#").reverse()[0]??""),state:Zn(i?.state,d)}},l=s(n),{__tempLocation:c,__tempKey:o}=l.state;if(c&&(!o||o===this.tempLocationKey)){const u=s(c);return u.state.key=l.state.key,u.state.__TSR_key=l.state.__TSR_key,delete u.state.__tempLocation,{...u,maskedLocation:l}}return l},this.resolvePathWithBase=(n,i)=>iM({base:n,to:Dv(i),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>OM({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(l=>l.status==="pending"),i=this.state.matches.filter(l=>l.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...i]).forEach(l=>{this.cancelMatch(l.id)})},this.buildLocation=n=>{const i=(l={})=>{const c=l._fromLocation||this.pendingBuiltLocation||this.latestLocation,o=this.matchRoutesLightweight(c);l.from;const u=l.unsafeRelative==="path"?c.pathname:l.from??o.fullPath,d=this.resolvePathWithBase(u,"."),p=o.search,f={...o.params},m=l.to?this.resolvePathWithBase(d,`${l.to}`):this.resolvePathWithBase(d,"."),b=l.params===!1||l.params===null?{}:(l.params??!0)===!0?f:Object.assign(f,Ci(l.params,f)),w=gp({path:m,params:b,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,E=this.getMatchedRoutes(w);let v=E.matchedRoutes;(E.foundRoute?E.foundRoute.path!=="/"&&E.routeParams["**"]:Gr(w))&&this.options.notFoundRoute&&(v=[...v,this.options.notFoundRoute]);let S=!1;if(Object.keys(b).length>0)for(const B of v){const V=B.options.params?.stringify??B.options.stringifyParams;V&&(S=!0,Object.assign(b,V(b)))}const _=n.leaveParams?m:dp(S?gp({path:m,params:b,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:w);let C=p;if(n._includeValidateSearch&&this.options.search?.strict){const B={};v.forEach(V=>{if(V.options.validateSearch)try{Object.assign(B,ju(V.options.validateSearch,{...B,...C}))}catch{}}),C=B}C=DM({search:C,dest:l,destRoutes:v,_includeValidateSearch:n._includeValidateSearch}),C=Zn(p,C);const N=this.options.stringifySearch(C),T=l.hash===!0?c.hash:l.hash?Ci(l.hash,c.hash):void 0,O=T?`#${T}`:"";let A=l.state===!0?c.state:l.state?Ci(l.state,c.state):{};A=Zn(c.state,A);const D=`${_}${N}${O}`;let L,I,H=!1;if(this.rewrite){const B=new URL(D,this.origin),V=cO(this.rewrite,B);L=B.href.replace(B.origin,""),V.origin!==this.origin?(I=V.href,H=!0):I=V.pathname+V.search+V.hash}else L=G4(D),I=L;return{publicHref:I,href:L,pathname:_,search:C,searchStr:N,state:A,hash:T??"",external:H,unmaskOnReload:l.unmaskOnReload}},s=(l={},c)=>{const o=i(l);let u=c?i(c):void 0;if(!u){const d={};if(this.options.routeMasks){const p=Y4(o.pathname,this.processedTree);if(p){Object.assign(d,p.rawParams);const{from:f,params:m,...b}=p.route,w=m===!1||m===null?{}:(m??!0)===!0?d:Object.assign(d,Ci(m,d));c={from:n.from,...b,params:w},u=i(c)}}}return u&&(o.maskedLocation=u),o};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:i,...s})=>{const l=()=>{const u=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];u.forEach(p=>{s.state[p]=this.latestLocation.state[p]});const d=la(s.state,this.latestLocation.state);return u.forEach(p=>{delete s.state[p]}),d},c=Gr(this.latestLocation.href)===Gr(s.href),o=this.commitLocationPromise;if(this.commitLocationPromise=vs(()=>{o?.resolve()}),c&&l())this.load();else{let{maskedLocation:u,hashScrollIntoView:d,...p}=s;u&&(p={...u,state:{...u.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=d??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,...u}={})=>{if(o){const f=this.history.location.state.__TSR_index,m=Ju(o,{__TSR_index:n?f:f+1}),b=new URL(m.pathname,this.origin),w=Gy(this.rewrite,b);u.to=w.pathname,u.search=this.options.parseSearch(m.search),u.hash=m.hash.slice(1)}const d=this.buildLocation({...u,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const p=this.commitLocation({...d,viewTransition:l,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:i,href:s,publicHref:l,...c})=>{let o=!1;if(s)try{new URL(`${s}`),o=!0}catch{}if(o&&!i&&(i=!0),i){if(n!==void 0||!s){const d=this.buildLocation({to:n,...c});s=s??d.publicHref,l=l??d.publicHref}const u=!o&&l?l:s;if(tc(u))return Promise.resolve();if(!c.ignoreBlocker){const p=this.history.getBlockers?.()??[];for(const f of p)if(f?.blockerFn&&await f.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return c.replace?window.location.replace(u):window.location.href=u,Promise.resolve()}return this.buildAndCommitLocation({...c,href:s,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();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 u=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...ua({resolvedLocation:d,location:u})}),this.emit({type:"onBeforeLoad",...ua({resolvedLocation:d,location:u})}),await e2({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:u,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let p=[],f=[],m=[];Lo(()=>{this.__store.setState(b=>{const w=b.matches,E=b.pendingMatches||b.matches;return p=w.filter(v=>!E.some(x=>x.id===v.id)),f=E.filter(v=>!w.some(x=>x.id===v.id)),m=E.filter(v=>w.some(x=>x.id===v.id)),{...b,isLoading:!1,loadedAt:Date.now(),matches:E,pendingMatches:void 0,cachedMatches:[...b.cachedMatches,...p.filter(v=>v.status!=="error"&&v.status!=="notFound")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[f,"onEnter"],[m,"onStay"]].forEach(([b,w])=>{b.forEach(E=>{this.looseRoutesById[E.routeId].options[w]?.(E)})})})})}})}catch(u){nr(u)?(i=u,this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):Fn(u)&&(s=u),this.__store.setState(d=>({...d,statusCode:i?i.status:s?404:d.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(ua({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)=>{this.startTransition(()=>{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"||s.status==="notFound"?{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.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const i=n.headers.get("Location");if(n.options.href){if(i)try{const s=new URL(i);if(this.origin&&s.origin===this.origin){const l=s.pathname+s.search+s.hash;n.options.href=l,n.headers.set("Location",l)}}catch{}}else{const s=this.buildLocation(n.options),l=this.getParsedLocationHref(s);n.options.href=l,n.headers.set("Location",l)}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=oO,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)]);Lo(()=>{s.forEach(o=>{c.has(o.id)||this.__store.setState(u=>({...u,cachedMatches:[...u.cachedMatches,o]}))})});try{return s=await e2({router:this,matches:s,location:i,preload:!0,updateMatch:(o,u)=>{l.has(o)?s=s.map(d=>d.id===o?u(d):d):this.updateMatch(o,u)}}),s}catch(o){if(nr(o))return o.options.reloadDocument?void 0:await this.preloadRoute({...o.options,_fromLocation:i});Fn(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,u=X4(l.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,o.pathname,this.processedTree);return!u||n.params&&!la(u.rawParams,n.params,{partial:!0})?!1:i?.includeSearch??!0?la(o.search,l.search,{partial:!0})?u.rawParams:!1:u.rawParams},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??yM,parseSearch:t.parseSearch??bM}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:i}){this.routesById=t,this.routesByPath=n,this.processedTree=i;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const i=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParams:l,parsedParams:c}=i;let{matchedRoutes:o}=i,u=!1;(s?s.path!=="/"&&l["**"]:Gr(t.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:u=!0);const d=u?LM(this.options.notFoundMode,o):void 0,p=[],f=m=>m?.id?m.context??this.options.context??void 0:this.options.context??void 0;return o.forEach((m,b)=>{const w=p[b-1],[E,v,x]=(()=>{const V=w?.search??t.search,K=w?._strictSearch??void 0;try{const W=ju(m.options.validateSearch,{...V})??void 0;return[{...V,...W},{...K,...W},void 0]}catch(W){let Z=W;if(W instanceof ac||(Z=new ac(W.message,{cause:W})),n?.throwOnError)throw Z;return[V,{},Z]}})(),S=m.options.loaderDeps?.({search:E})??"",_=S?JSON.stringify(S):"",{interpolatedPath:C,usedParams:N}=gp({path:m.fullPath,params:l,decoder:this.pathParamsDecoder,server:this.isServer}),T=m.id+C+_,O=this.getMatch(T),A=this.state.matches.find(V=>V.routeId===m.id),D=O?._strictParams??N;let L;if(!O)try{t2(m,N,c,D)}catch(V){if(Fn(V)||nr(V)?L=V:L=new AM(V.message,{cause:V}),n?.throwOnError)throw L}Object.assign(l,D);const I=A?"stay":"enter";let H;if(O)H={...O,cause:I,params:A?Zn(A.params,l):l,_strictParams:D,search:Zn(A?A.search:O.search,E),_strictSearch:v};else{const V=m.options.loader||m.options.beforeLoad||m.lazyFn||lO(m)?"pending":"success";H={id:T,ssr:m.options.ssr,index:b,routeId:m.id,params:A?Zn(A.params,l):l,_strictParams:D,pathname:C,updatedAt:Date.now(),search:A?Zn(A.search,E):E,_strictSearch:v,searchError:void 0,status:V,isFetching:!1,error:void 0,paramsError:L,__routeContext:void 0,_nonReactive:{loadPromise:vs()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:I,loaderDeps:A?Zn(A.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}n?.preload||(H.globalNotFound=d===m.id),H.searchError=x;const B=f(w);H.context={...B,...H.__routeContext,...H.__beforeLoadContext},p.push(H)}),p.forEach((m,b)=>{const w=this.looseRoutesById[m.routeId];if(!this.getMatch(m.id)){const v=p[b-1],x=f(v);if(w.options.context){const S={deps:m.loaderDeps,params:m.params,context:x??{},location:t,navigate:_=>this.navigate({..._,_fromLocation:t}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:p};m.__routeContext=w.options.context(S)??void 0}m.context={...x,...m.__routeContext,...m.__beforeLoadContext}}}),p}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:i,parsedParams:s}=this.getMatchedRoutes(t.pathname),l=Po(n),c={...t.search};for(const p of n)try{Object.assign(c,ju(p.options.validateSearch,c))}catch{}const o=Po(this.state.matches),u=o&&o.routeId===l.id&&t.pathname===this.state.location.pathname;let d;if(u)d=o.params;else{const p={...i};for(const f of n)try{t2(f,i,s??{},p)}catch{}d=p}return{matchedRoutes:n,fullPath:l.fullPath,search:c,params:d}}}class ac extends Error{}class AM extends Error{}function NM(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function ju(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new ac("Async validation not supported");if(n.issues)throw new ac(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 OM({pathname:e,routesById:t,processedTree:n}){const i={},s=Gr(e);let l,c;const o=Z4(s,n,!0);return o&&(l=o.route,Object.assign(i,o.rawParams),c=Object.assign({},o.parsedParams)),{matchedRoutes:o?.branch||[t[Jn]],routeParams:i,foundRoute:l,parsedParams:c}}function DM({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){return IM(n)(e,t,i??!1)}function IM(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const s of e){if("search"in s.options)s.options.search?.middlewares&&t.middlewares.push(...s.options.search.middlewares);else if(s.options.preSearchFilters||s.options.postSearchFilters){const l=({search:c,next:o})=>{let u=c;"preSearchFilters"in s.options&&s.options.preSearchFilters&&(u=s.options.preSearchFilters.reduce((p,f)=>f(p),c));const d=o(u);return"postSearchFilters"in s.options&&s.options.postSearchFilters?s.options.postSearchFilters.reduce((p,f)=>f(p),d):d};t.middlewares.push(l)}if(s.options.validateSearch){const l=({search:c,next:o})=>{const u=o(c);if(!t._includeValidateSearch)return u;try{return{...u,...ju(s.options.validateSearch,u)??void 0}}catch{return u}};t.middlewares.push(l)}}const n=({search:s})=>{const l=t.dest;return l.search?l.search===!0?s:Ci(l.search,s):{}};t.middlewares.push(n);const i=(s,l,c)=>{if(s>=c.length)return l;const o=c[s];return o({search:l,next:d=>i(s+1,d,c)})};return function(l,c,o){return t.dest=c,t._includeValidateSearch=o,i(0,l,t.middlewares)}}function LM(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.children)return i.id}return Jn}function t2(e,t,n,i){const s=e.options.params?.parse??e.options.parseParams;if(s)if(e.options.skipRouteOnParseError)for(const l in t)l in n&&(i[l]=n[l]);else{const l=s(i);Object.assign(i,l)}}const MM="Error preloading route! ☝️";class dO{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=Jn:this.parentRoute||Wr(!1);let l=s?Jn:i?.path;l&&l!=="/"&&(l=eO(l));const c=i?.id||l;let o=s?Jn:Bu([this.parentRoute.id===Jn?"":this.parentRoute.id,c]);l===Jn&&(l="/"),o!==Jn&&(o=Bu(["/",o]));const u=o===Jn?"/":Bu([this.parentRoute.fullPath,l]);this._path=l,this._id=o,this._fullPath=u,this._to=Gr(u)},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.redirect=n=>nO({from:this.fullPath,...n}),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 BM extends dO{constructor(t){super(t)}}const Cu=typeof window<"u"?q.useLayoutEffect:q.useEffect;function yp(e){const t=q.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function FM(e,t,n={},i={}){q.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([l])=>{t(l)},n);return s.observe(e.current),()=>{s.disconnect()}},[t,n,i.disabled,e])}function jM(e){const t=q.useRef(null);return q.useImperativeHandle(e,()=>t.current,[]),t}function Iv(e){const t=e.errorComponent??Lv;return y.jsx(PM,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?q.createElement(t,{error:n,reset:i}):e.children})}class PM extends q.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 Lv({error:e}){const[t,n]=q.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.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"})]}),y.jsx("div",{style:{height:".25rem"}}),t?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?y.jsx("code",{children:e.message}):null})}):null]})}function UM({children:e,fallback:t=null}){return hO()?y.jsx(Xe.Fragment,{children:e}):y.jsx(Xe.Fragment,{children:t})}function hO(){return Xe.useSyncExternalStore(HM,()=>!0,()=>!1)}function HM(){return()=>{}}var vp={exports:{}},_p={},Sp={exports:{}},xp={};var n2;function zM(){if(n2)return xp;n2=1;var e=Yo();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function o(f,m){var b=m(),w=i({inst:{value:b,getSnapshot:m}}),E=w[0].inst,v=w[1];return l(function(){E.value=b,E.getSnapshot=m,u(E)&&v({inst:E})},[f,b,m]),s(function(){return u(E)&&v({inst:E}),f(function(){u(E)&&v({inst:E})})},[f]),c(b),b}function u(f){var m=f.getSnapshot;f=f.value;try{var b=m();return!n(f,b)}catch{return!0}}function d(f,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:o;return xp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,xp}var r2;function qM(){return r2||(r2=1,Sp.exports=zM()),Sp.exports}var i2;function $M(){if(i2)return _p;i2=1;var e=Yo(),t=qM();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,l=e.useRef,c=e.useEffect,o=e.useMemo,u=e.useDebugValue;return _p.useSyncExternalStoreWithSelector=function(d,p,f,m,b){var w=l(null);if(w.current===null){var E={hasValue:!1,value:null};w.current=E}else E=w.current;w=o(function(){function x(T){if(!S){if(S=!0,_=T,T=m(T),b!==void 0&&E.hasValue){var O=E.value;if(b(O,T))return C=O}return C=T}if(O=C,i(_,T))return O;var A=m(T);return b!==void 0&&b(O,A)?(_=T,O):(_=T,C=A)}var S=!1,_,C,N=f===void 0?null:f;return[function(){return x(p())},N===null?void 0:function(){return x(N())}]},[p,f,m,b]);var v=s(d,w[0],w[1]);return c(function(){E.hasValue=!0,E.value=v},[v]),u(v),v},_p}var a2;function GM(){return a2||(a2=1,vp.exports=$M()),vp.exports}var WM=GM();function VM(e,t=i=>i,n={}){const i=n.equal??KM;return WM.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,i)}function KM(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!t.has(i)||!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=s2(e);if(n.length!==s2(t).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Object.is(e[n[i]],t[n[i]]))return!1;return!0}function s2(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const Ep=q.createContext(null);function pO(){return typeof document>"u"?Ep:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Ep,Ep)}function sr(e){const t=q.useContext(pO());return e?.warn,t}function Sn(e){const t=sr({warn:e?.router===void 0}),n=e?.router||t,i=q.useRef(void 0);return VM(n.__store,s=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const l=Zn(i.current,e.select(s));return i.current=l,l}return e.select(s)}return s})}const vc=q.createContext(void 0),YM=q.createContext(void 0);function Er(e){const t=q.useContext(e.from?YM:vc);return Sn({select:i=>{const s=i.matches.find(l=>e.from?e.from===l.routeId:l.id===t);if(Wr(!((e.shouldThrow??!0)&&!s),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),s!==void 0)return e.select?e.select(s):s},structuralSharing:e.structuralSharing})}function Mv(e){return Er({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Bv(e){const{select:t,...n}=e;return Er({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Fv(e){return Er({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function jv(e){return Er({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function _c(e){const t=sr();return q.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var XM=jN();function ZM(e,t){const n=sr(),i=jM(t),{activeProps:s,inactiveProps:l,activeOptions:c,to:o,preload:u,preloadDelay:d,hashScrollIntoView:p,replace:f,startTransition:m,resetScroll:b,viewTransition:w,children:E,target:v,disabled:x,style:S,className:_,onClick:C,onFocus:N,onMouseEnter:T,onMouseLeave:O,onTouchStart:A,ignoreBlocker:D,params:L,search:I,hash:H,state:B,mask:V,reloadDocument:K,unsafeRelative:W,from:Z,_fromLocation:Q,...P}=e,M=hO(),j=Sn({select:re=>re.location.search,structuralSharing:!0}),$=e.from,U=q.useMemo(()=>({...e,from:$}),[n,j,$,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),J=q.useMemo(()=>n.buildLocation({...U}),[n,U]),oe=J.maskedLocation?J.maskedLocation.publicHref:J.publicHref,de=J.maskedLocation?J.maskedLocation.external:J.external,Y=q.useMemo(()=>r6(oe,de,n.history,x),[x,de,oe,n.history]),z=q.useMemo(()=>{if(Y?.external)return tc(Y.href)?void 0:Y.href;if(!i6(o)&&!(typeof o!="string"||o.indexOf(":")===-1))try{return new URL(o),tc(o)?void 0:o}catch{}},[o,Y]),te=Sn({select:re=>{if(z)return!1;if(c?.exact){if(!rM(re.location.pathname,J.pathname,n.basepath))return!1}else{const pe=rc(re.location.pathname,n.basepath),ye=rc(J.pathname,n.basepath);if(!(pe.startsWith(ye)&&(pe.length===ye.length||pe[ye.length]==="/")))return!1}return(c?.includeSearch??!0)&&!la(re.location.search,J.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?M&&re.location.hash===J.hash:!0}}),ce=te?Ci(s,{})??QM:wp,ge=te?wp:Ci(l,{})??wp,be=[_,ce.className,ge.className].filter(Boolean).join(" "),we=(S||ce.style||ge.style)&&{...S,...ce.style,...ge.style},[ze,je]=q.useState(!1),qe=q.useRef(!1),xe=e.reloadDocument||z?!1:u??n.options.defaultPreload,_e=d??n.options.defaultPreloadDelay??0,Le=q.useCallback(()=>{n.preloadRoute({...U}).catch(re=>{console.warn(re),console.warn(MM)})},[n,U]),et=q.useCallback(re=>{re?.isIntersecting&&Le()},[Le]);FM(i,et,n6,{disabled:!!x||xe!=="viewport"}),q.useEffect(()=>{qe.current||!x&&xe==="render"&&(Le(),qe.current=!0)},[x,Le,xe]);const At=re=>{const pe=re.currentTarget.getAttribute("target"),ye=v!==void 0?v:pe;if(!x&&!a6(re)&&!re.defaultPrevented&&(!ye||ye==="_self")&&re.button===0){re.preventDefault(),XM.flushSync(()=>{je(!0)});const ke=n.subscribe("onResolved",()=>{ke(),je(!1)});n.navigate({...U,replace:f,resetScroll:b,hashScrollIntoView:p,startTransition:m,viewTransition:w,ignoreBlocker:D})}};if(z)return{...P,ref:i,href:z,...E&&{children:E},...v&&{target:v},...x&&{disabled:x},...S&&{style:S},..._&&{className:_},...C&&{onClick:C},...N&&{onFocus:N},...T&&{onMouseEnter:T},...O&&{onMouseLeave:O},...A&&{onTouchStart:A}};const mt=re=>{x||xe&&Le()},nt=mt,Ie=re=>{if(!(x||!xe))if(!_e)Le();else{const pe=re.target;if(Co.has(pe))return;const ye=setTimeout(()=>{Co.delete(pe),Le()},_e);Co.set(pe,ye)}},tt=re=>{if(x||!xe||!_e)return;const pe=re.target,ye=Co.get(pe);ye&&(clearTimeout(ye),Co.delete(pe))};return{...P,...ce,...ge,href:Y?.href,ref:i,onClick:ko([C,At]),onFocus:ko([N,mt]),onMouseEnter:ko([T,Ie]),onMouseLeave:ko([O,tt]),onTouchStart:ko([A,nt]),disabled:!!x,target:v,...we&&{style:we},...be&&{className:be},...x&&JM,...te&&e6,...M&&ze&&t6}}const wp={},QM={className:"active"},JM={role:"link","aria-disabled":!0},e6={"data-status":"active","aria-current":"page"},t6={"data-transitioning":"transitioning"},Co=new WeakMap,n6={rootMargin:"100px"},ko=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function r6(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function i6(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}const fO=q.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,...l}=ZM(i,t),c=typeof i.children=="function"?i.children({isActive:l["data-status"]==="active"}):i.children;if(!n){const{disabled:o,...u}=l;return q.createElement("a",u,c)}return q.createElement(n,l,c)});function a6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let s6=class extends dO{constructor(t){super(t),this.useMatch=n=>Er({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Er({...n,from:this.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>jv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Fv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Bv({...n,from:this.id}),this.useLoaderData=n=>Mv({...n,from:this.id}),this.useNavigate=()=>_c({from:this.fullPath}),this.Link=Xe.forwardRef((n,i)=>y.jsx(fO,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function o6(e){return new s6(e)}class l6 extends BM{constructor(t){super(t),this.useMatch=n=>Er({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Er({...n,from:this.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>jv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Fv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Bv({...n,from:this.id}),this.useLoaderData=n=>Mv({...n,from:this.id}),this.useNavigate=()=>_c({from:this.fullPath}),this.Link=Xe.forwardRef((n,i)=>y.jsx(fO,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function u6(e){return new l6(e)}function Ho(e){return typeof e=="object"?new o2(e,{silent:!0}).createRoute(e):new o2(e,{silent:!0}).createRoute}class o2{constructor(t,n){this.path=t,this.createRoute=i=>{this.silent;const s=o6(i);return s.isRoot=!1,s},this.silent=n?.silent}}class l2{constructor(t){this.useMatch=n=>Er({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Er({from:this.options.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>jv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>Fv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>Bv({...n,from:this.options.id}),this.useLoaderData=n=>Mv({...n,from:this.options.id}),this.useNavigate=()=>{const n=sr();return _c({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function u2(e){return typeof e=="object"?new l2(e):t=>new l2({id:e,...t})}function c6(){const e=sr(),t=q.useRef({router:e,mounted:!1}),[n,i]=q.useState(!1),{hasPendingMatches:s,isLoading:l}=Sn({select:f=>({isLoading:f.isLoading,hasPendingMatches:f.matches.some(m=>m.status==="pending")}),structuralSharing:!0}),c=yp(l),o=l||n||s,u=yp(o),d=l||s,p=yp(d);return e.startTransition=f=>{i(!0),q.startTransition(()=>{f(),i(!1)})},q.useEffect(()=>{const f=e.history.subscribe(e.load),m=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Gr(e.latestLocation.publicHref)!==Gr(m.publicHref)&&e.commitLocation({...m,replace:!0}),()=>{f()}},[e,e.history]),Cu(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(m){console.error(m)}})()},[e]),Cu(()=>{c&&!l&&e.emit({type:"onLoad",...ua(e.state)})},[c,e,l]),Cu(()=>{p&&!d&&e.emit({type:"onBeforeRouteMount",...ua(e.state)})},[d,p,e]),Cu(()=>{if(u&&!o){const f=ua(e.state);e.emit({type:"onResolved",...f}),e.__store.setState(m=>({...m,status:"idle",resolvedLocation:m.location})),f.hrefChanged&&fM(e)}},[o,u,e]),null}function d6(e){const t=Sn({select:n=>`not-found-${n.location.pathname}-${n.status}`});return y.jsx(Iv,{getResetKey:()=>t,onCatch:(n,i)=>{if(Fn(n))e.onCatch?.(n,i);else throw n},errorComponent:({error:n})=>{if(Fn(n))return e.fallback?.(n);throw n},children:e.children})}function h6(){return y.jsx("p",{children:"Not Found"})}function hs(e){return y.jsx(y.Fragment,{children:e.children})}function mO(e,t,n){return t.options.notFoundComponent?y.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?y.jsx(e.options.defaultNotFoundComponent,{...n}):y.jsx(h6,{})}function p6(){return sr().isScrollRestoring,null}const gO=q.memo(function({matchId:t}){const n=sr(),i=Sn({select:x=>{const S=x.matches.find(_=>_.id===t);return Wr(S),{routeId:S.routeId,ssr:S.ssr,_displayPending:S._displayPending}},structuralSharing:!0}),s=n.routesById[i.routeId],l=s.options.pendingComponent??n.options.defaultPendingComponent,c=l?y.jsx(l,{}):null,o=s.options.errorComponent??n.options.defaultErrorComponent,u=s.options.onCatch??n.options.defaultOnCatch,d=s.isRoot?s.options.notFoundComponent??n.options.notFoundRoute?.options.component:s.options.notFoundComponent,p=i.ssr===!1||i.ssr==="data-only",f=(!s.isRoot||s.options.wrapInSuspense||p)&&(s.options.wrapInSuspense??l??(s.options.errorComponent?.preload||p))?q.Suspense:hs,m=o?Iv:hs,b=d?d6:hs,w=Sn({select:x=>x.loadedAt}),E=Sn({select:x=>{const S=x.matches.findIndex(_=>_.id===t);return x.matches[S-1]?.routeId}}),v=s.isRoot?s.options.shellComponent??hs:hs;return y.jsxs(v,{children:[y.jsx(vc.Provider,{value:t,children:y.jsx(f,{fallback:c,children:y.jsx(m,{getResetKey:()=>w,errorComponent:o||Lv,onCatch:(x,S)=>{if(Fn(x))throw x;u?.(x,S)},children:y.jsx(b,{fallback:x=>{if(!d||x.routeId&&x.routeId!==i.routeId||!x.routeId&&!s.isRoot)throw x;return q.createElement(d,x)},children:p||i._displayPending?y.jsx(UM,{fallback:c,children:y.jsx(c2,{matchId:t})}):y.jsx(c2,{matchId:t})})})})}),E===Jn&&n.options.scrollRestoration?y.jsxs(y.Fragment,{children:[y.jsx(f6,{}),y.jsx(p6,{})]}):null]})});function f6(){const e=sr(),t=q.useRef(void 0);return y.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...ua(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const c2=q.memo(function({matchId:t}){const n=sr(),{match:i,key:s,routeId:l}=Sn({select:u=>{const d=u.matches.find(w=>w.id===t),p=d.routeId,m=(n.routesById[p].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:p,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:m?JSON.stringify(m):void 0,routeId:p,match:{id:d.id,status:d.status,error:d.error,invalid:d.invalid,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),c=n.routesById[l],o=q.useMemo(()=>{const u=c.options.component??n.options.defaultComponent;return u?y.jsx(u,{},s):y.jsx(bO,{})},[s,c.options.component,n.options.defaultComponent]);if(i._displayPending)throw n.getMatch(i.id)?._nonReactive.displayPendingPromise;if(i._forcePending)throw n.getMatch(i.id)?._nonReactive.minPendingPromise;if(i.status==="pending"){const u=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(u){const d=n.getMatch(i.id);if(d&&!d._nonReactive.minPendingPromise){const p=vs();d._nonReactive.minPendingPromise=p,setTimeout(()=>{p.resolve(),d._nonReactive.minPendingPromise=void 0},u)}}throw n.getMatch(i.id)?._nonReactive.loadPromise}if(i.status==="notFound")return Wr(Fn(i.error)),mO(n,c,i.error);if(i.status==="redirected")throw Wr(nr(i.error)),n.getMatch(i.id)?._nonReactive.loadPromise;if(i.status==="error")throw i.error;return o}),bO=q.memo(function(){const t=sr(),n=q.useContext(vc),i=Sn({select:d=>d.matches.find(p=>p.id===n)?.routeId}),s=t.routesById[i],l=Sn({select:d=>{const f=d.matches.find(m=>m.id===n);return Wr(f),f.globalNotFound}}),c=Sn({select:d=>{const p=d.matches,f=p.findIndex(m=>m.id===n);return p[f+1]?.id}}),o=t.options.defaultPendingComponent?y.jsx(t.options.defaultPendingComponent,{}):null;if(l)return mO(t,s,void 0);if(!c)return null;const u=y.jsx(gO,{matchId:c});return i===Jn?y.jsx(q.Suspense,{fallback:o,children:u}):u});function m6(){const e=sr(),n=e.routesById[Jn].options.pendingComponent??e.options.defaultPendingComponent,i=n?y.jsx(n,{}):null,s=typeof document<"u"&&e.ssr?hs:q.Suspense,l=y.jsxs(s,{fallback:i,children:[y.jsx(c6,{}),y.jsx(g6,{})]});return e.options.InnerWrap?y.jsx(e.options.InnerWrap,{children:l}):l}function g6(){const e=sr(),t=Sn({select:s=>s.matches[0]?.id}),n=Sn({select:s=>s.loadedAt}),i=t?y.jsx(gO,{matchId:t}):null;return y.jsx(vc.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:y.jsx(Iv,{getResetKey:()=>n,errorComponent:Lv,onCatch:s=>{s.message||s.toString()},children:i})})}const b6=e=>new y6(e);class y6 extends RM{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=Ho,globalThis.createLazyFileRoute=u2):typeof window<"u"&&(window.createFileRoute=Ho,window.createLazyFileRoute=u2);function v6({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=pO(),s=y.jsx(i.Provider,{value:e,children:t});return e.options.Wrap?y.jsx(e.options.Wrap,{children:s}):s}function _6({router:e,...t}){return y.jsx(v6,{router:e,...t,children:y.jsx(m6,{})})}const Sc=u6({component:S6});function S6(){return y.jsxs(y.Fragment,{children:[y.jsx(bO,{}),null]})}const x6=Ho("/")({beforeLoad:()=>{throw nO({to:"/sessions"})},component:()=>null}),st=q.forwardRef(({className:e="",variant:t="primary",size:n="md",...i},s)=>{const l="inline-flex items-center justify-center rounded font-medium transition-colors focus-visible:outline-none disabled:opacity-50 disabled:cursor-not-allowed",c={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/80 border border-border",ghost:"text-muted-foreground hover:text-foreground hover:bg-muted/50"},o={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base",icon:"w-10 h-10 p-0"};return y.jsx("button",{ref:s,className:`${l} ${c[t]} ${o[n]} ${e}`,...i})});st.displayName="Button";const E6=q.forwardRef(({className:e="",children:t,...n},i)=>y.jsx("div",{ref:i,className:`bg-card text-card-foreground border border-border rounded-lg ${e}`,...n,children:t}));E6.displayName="Card";const w6=q.forwardRef(({className:e="",...t},n)=>y.jsx("input",{ref:n,className:`w-full px-3 py-2 bg-muted border border-border rounded text-foreground placeholder-muted-foreground outline-none ${e}`,...t}));w6.displayName="Input";const xc=q.forwardRef(({className:e="",...t},n)=>y.jsx("textarea",{ref:n,className:`w-full px-3 py-2 bg-muted border border-border rounded text-foreground placeholder-muted-foreground outline-none resize-none ${e}`,...t}));xc.displayName="Textarea";const d2=e=>{let t;const n=new Set,i=(d,p)=>{const f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){const m=t;t=p??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(b=>b(t,m))}},s=()=>t,o={setState:i,getState:s,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d))},u=t=e(i,s,o);return o},C6=(e=>e?d2(e):d2),k6=e=>e;function T6(e,t=k6){const n=Xe.useSyncExternalStore(e.subscribe,Xe.useCallback(()=>t(e.getState()),[e,t]),Xe.useCallback(()=>t(e.getInitialState()),[e,t]));return Xe.useDebugValue(n),n}const h2=e=>{const t=C6(e),n=i=>T6(t,i);return Object.assign(n,t),n},or=(e=>e?h2(e):h2),Pv=or(e=>({isOpen:!1,title:"Confirm Action",message:"",confirmLabel:"Confirm",cancelLabel:"Cancel",variant:"default",onConfirm:()=>{},onCancel:void 0,openConfirmation:t=>e({isOpen:!0,title:t.title||"Confirm Action",message:t.message,confirmLabel:t.confirmLabel||"Confirm",cancelLabel:t.cancelLabel||"Cancel",variant:t.variant||"default",onConfirm:t.onConfirm,onCancel:t.onCancel}),closeConfirmation:()=>e({isOpen:!1,onConfirm:()=>{},onCancel:void 0})}));const R6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),A6=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),p2=e=>{const t=A6(e);return t.charAt(0).toUpperCase()+t.slice(1)},yO=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),N6=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var O6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const D6=q.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...o},u)=>q.createElement("svg",{ref:u,...O6,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:yO("lucide",s),...!l&&!N6(o)&&{"aria-hidden":"true"},...o},[...c.map(([d,p])=>q.createElement(d,p)),...Array.isArray(l)?l:[l]]));const Se=(e,t)=>{const n=q.forwardRef(({className:i,...s},l)=>q.createElement(D6,{ref:l,iconNode:t,className:yO(`lucide-${R6(p2(e))}`,`lucide-${e}`,i),...s}));return n.displayName=p2(e),n};const I6=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],L6=Se("arrow-down-to-line",I6);const M6=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],B6=Se("arrow-down",M6);const F6=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],j6=Se("arrow-left",F6);const P6=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],U6=Se("arrow-right",P6);const H6=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],vO=Se("arrow-up-right",H6);const z6=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],_O=Se("arrow-up",z6);const q6=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],$6=Se("bot",q6);const G6=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],W6=Se("braces",G6);const V6=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Uv=Se("brain",V6);const K6=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ma=Se("check",K6);const Y6=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],xa=Se("chevron-down",Y6);const X6=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Z6=Se("chevron-left",X6);const Q6=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],en=Se("chevron-right",Q6);const J6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Yr=Se("circle-alert",J6);const eB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],tB=Se("circle-check",eB);const nB=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],rB=Se("circle-check-big",nB);const iB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],SO=Se("circle-stop",iB);const aB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],xO=Se("circle-x",aB);const sB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],oB=Se("circle",sB);const lB=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],EO=Se("clock",lB);const uB=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],cB=Se("code",uB);const dB=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],f2=Se("command",dB);const hB=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],wO=Se("copy",hB);const pB=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],fB=Se("credit-card",pB);const mB=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],gB=Se("cpu",mB);const bB=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],yB=Se("database",bB);const vB=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],m2=Se("diff",vB);const _B=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],CO=Se("dollar-sign",_B);const SB=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],xB=Se("ellipsis-vertical",SB);const EB=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Di=Se("external-link",EB);const wB=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],kO=Se("file-code",wB);const CB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],kB=Se("file-json",CB);const TB=[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],ga=Se("file-pen",TB);const RB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],TO=Se("file-plus",RB);const AB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ec=Se("file-text",AB);const NB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 13v-1h6v1",key:"1bb014"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M11 18h2",key:"12mj7e"}]],OB=Se("file-type",NB);const DB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],IB=Se("file-x",DB);const LB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Oi=Se("file",LB);const MB=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],zo=Se("flask-conical",MB);const BB=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],FB=Se("folder-open",BB);const jB=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],RO=Se("folder-tree",jB);const PB=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],UB=Se("folder",PB);const HB=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],zB=Se("funnel",HB);const qB=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Pn=Se("git-branch",qB);const $B=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],sc=Se("git-commit-horizontal",$B);const GB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],WB=Se("globe",GB);const VB=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],AO=Se("hash",VB);const KB=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],YB=Se("history",KB);const XB=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],NO=Se("image",XB);const ZB=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],OO=Se("keyboard",ZB);const QB=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],JB=Se("link-2",QB);const eF=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],tF=Se("link",eF);const nF=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],rF=Se("list",nF);const iF=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ti=Se("loader-circle",iF);const aF=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],DO=Se("message-square",aF);const sF=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],oF=Se("minimize-2",sF);const lF=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],uF=Se("octagon-x",lF);const cF=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],g2=Se("pencil",cF);const dF=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],qo=Se("plus",dF);const hF=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],wc=Se("refresh-cw",hF);const pF=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],IO=Se("rotate-ccw",pF);const fF=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xo=Se("search",fF);const mF=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],LO=Se("settings",mF);const gF=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],$o=Se("sparkles",gF);const bF=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],yF=Se("split",bF);const vF=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],_F=Se("square-check-big",vF);const SF=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ba=Se("terminal",SF);const xF=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],MO=Se("trash-2",xF);const EF=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],wF=Se("upload",EF);const CF=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Hv=Se("user",CF);const kF=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],TF=Se("wallet",kF);const RF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rr=Se("x",RF);const AF=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],NF=Se("zap",AF);function OF(){const{isOpen:e,title:t,message:n,confirmLabel:i,cancelLabel:s,variant:l,onConfirm:c,onCancel:o,closeConfirmation:u}=Pv(),[d,p]=q.useState(!1);q.useEffect(()=>{e||p(!1)},[e]);const f=q.useCallback(async()=>{p(!0);try{await c(),u()}catch(w){console.error("Confirmation action failed:",w),p(!1)}},[c,u]),m=q.useCallback(()=>{o?.(),u()},[o,u]),b=w=>{w.target===w.currentTarget&&!d&&m()};return q.useEffect(()=>{const w=E=>{if(e&&!d){const v=E.target,x=v.tagName==="INPUT"||v.tagName==="TEXTAREA"||v.isContentEditable;(E.key==="Escape"||E.key==="q"&&!x)&&(E.preventDefault(),m()),E.key==="Enter"&&(E.preventDefault(),f())}};if(e)return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[e,d,f,m]),e?y.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",onClick:b,onKeyDown:w=>{const E=w.target,v=E.tagName==="INPUT"||E.tagName==="TEXTAREA"||E.isContentEditable;(w.key==="Escape"||w.key==="q"&&!v)&&!d&&(w.preventDefault(),m())},children:y.jsxs("div",{className:"bg-background border border-border rounded-lg shadow-lg max-w-md w-full mx-4",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[l==="destructive"&&y.jsx(Yr,{className:"w-5 h-5 text-destructive"}),y.jsx("h2",{className:"text-lg font-semibold",children:t})]}),y.jsx("button",{type:"button",onClick:m,disabled:d,className:"p-1 hover:bg-muted rounded transition-colors disabled:opacity-50","aria-label":"Close",children:y.jsx(rr,{className:"w-5 h-5"})})]}),y.jsx("div",{className:"p-4",children:y.jsx("p",{className:"text-muted-foreground",children:n})}),y.jsxs("div",{className:"flex items-center justify-end gap-3 p-4 border-t border-border",children:[y.jsx("button",{type:"button",onClick:m,disabled:d,className:"px-4 py-2 text-sm font-medium rounded transition-colors hover:bg-muted disabled:opacity-50",children:s}),y.jsx("button",{type:"button",onClick:f,disabled:d,className:`px-4 py-2 text-sm font-medium rounded transition-colors disabled:opacity-50 ${l==="destructive"?"bg-destructive text-destructive-foreground hover:bg-destructive/90":"bg-primary text-primary-foreground hover:bg-primary/90"}`,children:d?"Processing...":i})]})]})}):null}let DF=0;const Ii=or(e=>({toasts:[],addToast:t=>{const n=`toast-${++DF}`;return e(i=>({toasts:[...i.toasts,{...t,id:n}]})),n},removeToast:t=>e(n=>({toasts:n.toasts.filter(i=>i.id!==t)})),updateToast:(t,n)=>e(i=>({toasts:i.toasts.map(s=>s.id===t?{...s,...n}:s)})),clearToasts:()=>e({toasts:[]})}));function tr(e,t="default",n=4e3){const i=Ii.getState().addToast({message:e,type:t,duration:n});return n>0&&setTimeout(()=>{Ii.getState().removeToast(i)},n),i}tr.success=(e,t=4e3)=>tr(e,"success",t);tr.error=(e,t=5e3)=>tr(e,"error",t);tr.loading=e=>tr(e,"loading",0);tr.successWithAction=(e,t,n=6e3)=>{const i=Ii.getState().addToast({message:e,type:"success",duration:n,action:t});return n>0&&setTimeout(()=>{Ii.getState().removeToast(i)},n),i};const IF={default:y.jsx(fB,{className:"h-4 w-4"}),success:y.jsx(rB,{className:"h-4 w-4 text-green-500"}),error:y.jsx(xO,{className:"h-4 w-4 text-red-500"}),loading:y.jsx(Ti,{className:"h-4 w-4 animate-spin"})};function LF({toast:e}){const[t,n]=q.useState(!1),i=Ii(l=>l.removeToast);q.useEffect(()=>{requestAnimationFrame(()=>n(!0))},[]);const s=()=>{n(!1),setTimeout(()=>i(e.id),150)};return y.jsxs("div",{className:`
9
+ `).replace(u5,"")}function Gx(r,a){return a=$x(a),$x(r)===a}function ht(r,a,h,g,k,R){switch(h){case"children":typeof g=="string"?a==="body"||a==="textarea"&&g===""||Da(r,g):(typeof g=="number"||typeof g=="bigint")&&a!=="body"&&Da(r,""+g);break;case"className":dl(r,"class",g);break;case"tabIndex":dl(r,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":dl(r,h,g);break;case"style":G1(r,g,R);break;case"data":if(a!=="object"){dl(r,"data",g);break}case"src":case"href":if(g===""&&(a!=="a"||h!=="href")){r.removeAttribute(h);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(h);break}g=pl(""+g),r.setAttribute(h,g);break;case"action":case"formAction":if(typeof g=="function"){r.setAttribute(h,"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 R=="function"&&(h==="formAction"?(a!=="input"&&ht(r,a,"name",k.name,k,null),ht(r,a,"formEncType",k.formEncType,k,null),ht(r,a,"formMethod",k.formMethod,k,null),ht(r,a,"formTarget",k.formTarget,k,null)):(ht(r,a,"encType",k.encType,k,null),ht(r,a,"method",k.method,k,null),ht(r,a,"target",k.target,k,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(h);break}g=pl(""+g),r.setAttribute(h,g);break;case"onClick":g!=null&&(r.onclick=Tr);break;case"onScroll":g!=null&&Ge("scroll",r);break;case"onScrollEnd":g!=null&&Ge("scrollend",r);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(i(61));if(h=g.__html,h!=null){if(k.children!=null)throw Error(i(60));r.innerHTML=h}}break;case"multiple":r.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":r.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){r.removeAttribute("xlink:href");break}h=pl(""+g),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?r.setAttribute(h,""+g):r.removeAttribute(h);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":g&&typeof g!="function"&&typeof g!="symbol"?r.setAttribute(h,""):r.removeAttribute(h);break;case"capture":case"download":g===!0?r.setAttribute(h,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?r.setAttribute(h,g):r.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?r.setAttribute(h,g):r.removeAttribute(h);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?r.removeAttribute(h):r.setAttribute(h,g);break;case"popover":Ge("beforetoggle",r),Ge("toggle",r),cl(r,"popover",g);break;case"xlinkActuate":kr(r,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":kr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":kr(r,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":kr(r,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":kr(r,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":kr(r,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":kr(r,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":kr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":kr(r,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":cl(r,"is",g);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=FL.get(h)||h,cl(r,h,g))}}function Uh(r,a,h,g,k,R){switch(h){case"style":G1(r,g,R);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(i(61));if(h=g.__html,h!=null){if(k.children!=null)throw Error(i(60));r.innerHTML=h}}break;case"children":typeof g=="string"?Da(r,g):(typeof g=="number"||typeof g=="bigint")&&Da(r,""+g);break;case"onScroll":g!=null&&Ge("scroll",r);break;case"onScrollEnd":g!=null&&Ge("scrollend",r);break;case"onClick":g!=null&&(r.onclick=Tr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!B1.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(k=h.endsWith("Capture"),a=h.slice(2,k?h.length-7:void 0),R=r[pn]||null,R=R!=null?R[h]:null,typeof R=="function"&&r.removeEventListener(a,R,k),typeof g=="function")){typeof R!="function"&&R!==null&&(h in r?r[h]=null:r.hasAttribute(h)&&r.removeAttribute(h)),r.addEventListener(a,g,k);break e}h in r?r[h]=g:g===!0?r.setAttribute(h,""):cl(r,h,g)}}}function Jt(r,a,h){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",r),Ge("load",r);var g=!1,k=!1,R;for(R in h)if(h.hasOwnProperty(R)){var F=h[R];if(F!=null)switch(R){case"src":g=!0;break;case"srcSet":k=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:ht(r,a,R,F,h,null)}}k&&ht(r,a,"srcSet",h.srcSet,h,null),g&&ht(r,a,"src",h.src,h,null);return;case"input":Ge("invalid",r);var G=R=F=k=null,X=null,ae=null;for(g in h)if(h.hasOwnProperty(g)){var he=h[g];if(he!=null)switch(g){case"name":k=he;break;case"type":F=he;break;case"checked":X=he;break;case"defaultChecked":ae=he;break;case"value":R=he;break;case"defaultValue":G=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(i(137,a));break;default:ht(r,a,g,he,h,null)}}H1(r,R,G,X,ae,F,k,!1);return;case"select":Ge("invalid",r),g=F=R=null;for(k in h)if(h.hasOwnProperty(k)&&(G=h[k],G!=null))switch(k){case"value":R=G;break;case"defaultValue":F=G;break;case"multiple":g=G;default:ht(r,a,k,G,h,null)}a=R,h=F,r.multiple=!!g,a!=null?Oa(r,!!g,a,!1):h!=null&&Oa(r,!!g,h,!0);return;case"textarea":Ge("invalid",r),R=k=g=null;for(F in h)if(h.hasOwnProperty(F)&&(G=h[F],G!=null))switch(F){case"value":g=G;break;case"defaultValue":k=G;break;case"children":R=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(91));break;default:ht(r,a,F,G,h,null)}q1(r,g,k,R);return;case"option":for(X in h)h.hasOwnProperty(X)&&(g=h[X],g!=null)&&(X==="selected"?r.selected=g&&typeof g!="function"&&typeof g!="symbol":ht(r,a,X,g,h,null));return;case"dialog":Ge("beforetoggle",r),Ge("toggle",r),Ge("cancel",r),Ge("close",r);break;case"iframe":case"object":Ge("load",r);break;case"video":case"audio":for(g=0;g<ho.length;g++)Ge(ho[g],r);break;case"image":Ge("error",r),Ge("load",r);break;case"details":Ge("toggle",r);break;case"embed":case"source":case"link":Ge("error",r),Ge("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(ae in h)if(h.hasOwnProperty(ae)&&(g=h[ae],g!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:ht(r,a,ae,g,h,null)}return;default:if(ed(a)){for(he in h)h.hasOwnProperty(he)&&(g=h[he],g!==void 0&&Uh(r,a,he,g,h,void 0));return}}for(G in h)h.hasOwnProperty(G)&&(g=h[G],g!=null&&ht(r,a,G,g,h,null))}function c5(r,a,h,g){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var k=null,R=null,F=null,G=null,X=null,ae=null,he=null;for(le in h){var me=h[le];if(h.hasOwnProperty(le)&&me!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":X=me;default:g.hasOwnProperty(le)||ht(r,a,le,null,g,me)}}for(var se in g){var le=g[se];if(me=h[se],g.hasOwnProperty(se)&&(le!=null||me!=null))switch(se){case"type":R=le;break;case"name":k=le;break;case"checked":ae=le;break;case"defaultChecked":he=le;break;case"value":F=le;break;case"defaultValue":G=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:le!==me&&ht(r,a,se,le,g,me)}}Qc(r,F,G,X,ae,he,R,k);return;case"select":le=F=G=se=null;for(R in h)if(X=h[R],h.hasOwnProperty(R)&&X!=null)switch(R){case"value":break;case"multiple":le=X;default:g.hasOwnProperty(R)||ht(r,a,R,null,g,X)}for(k in g)if(R=g[k],X=h[k],g.hasOwnProperty(k)&&(R!=null||X!=null))switch(k){case"value":se=R;break;case"defaultValue":G=R;break;case"multiple":F=R;default:R!==X&&ht(r,a,k,R,g,X)}a=G,h=F,g=le,se!=null?Oa(r,!!h,se,!1):!!g!=!!h&&(a!=null?Oa(r,!!h,a,!0):Oa(r,!!h,h?[]:"",!1));return;case"textarea":le=se=null;for(G in h)if(k=h[G],h.hasOwnProperty(G)&&k!=null&&!g.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:ht(r,a,G,null,g,k)}for(F in g)if(k=g[F],R=h[F],g.hasOwnProperty(F)&&(k!=null||R!=null))switch(F){case"value":se=k;break;case"defaultValue":le=k;break;case"children":break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(i(91));break;default:k!==R&&ht(r,a,F,k,g,R)}z1(r,se,le);return;case"option":for(var Ee in h)se=h[Ee],h.hasOwnProperty(Ee)&&se!=null&&!g.hasOwnProperty(Ee)&&(Ee==="selected"?r.selected=!1:ht(r,a,Ee,null,g,se));for(X in g)se=g[X],le=h[X],g.hasOwnProperty(X)&&se!==le&&(se!=null||le!=null)&&(X==="selected"?r.selected=se&&typeof se!="function"&&typeof se!="symbol":ht(r,a,X,se,g,le));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 Ae in h)se=h[Ae],h.hasOwnProperty(Ae)&&se!=null&&!g.hasOwnProperty(Ae)&&ht(r,a,Ae,null,g,se);for(ae in g)if(se=g[ae],le=h[ae],g.hasOwnProperty(ae)&&se!==le&&(se!=null||le!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,a));break;default:ht(r,a,ae,se,g,le)}return;default:if(ed(a)){for(var pt in h)se=h[pt],h.hasOwnProperty(pt)&&se!==void 0&&!g.hasOwnProperty(pt)&&Uh(r,a,pt,void 0,g,se);for(he in g)se=g[he],le=h[he],!g.hasOwnProperty(he)||se===le||se===void 0&&le===void 0||Uh(r,a,he,se,g,le);return}}for(var ne in h)se=h[ne],h.hasOwnProperty(ne)&&se!=null&&!g.hasOwnProperty(ne)&&ht(r,a,ne,null,g,se);for(me in g)se=g[me],le=h[me],!g.hasOwnProperty(me)||se===le||se==null&&le==null||ht(r,a,me,se,g,le)}function Wx(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d5(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,h=performance.getEntriesByType("resource"),g=0;g<h.length;g++){var k=h[g],R=k.transferSize,F=k.initiatorType,G=k.duration;if(R&&G&&Wx(F)){for(F=0,G=k.responseEnd,g+=1;g<h.length;g++){var X=h[g],ae=X.startTime;if(ae>G)break;var he=X.transferSize,me=X.initiatorType;he&&Wx(me)&&(X=X.responseEnd,F+=he*(X<G?1:(G-ae)/(X-ae)))}if(--g,a+=8*(R+F)/(k.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 Hh=null,zh=null;function lu(r){return r.nodeType===9?r:r.ownerDocument}function Vx(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 Kx(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 qh(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 $h=null;function h5(){var r=window.event;return r&&r.type==="popstate"?r===$h?!1:($h=r,!0):($h=null,!1)}var Yx=typeof setTimeout=="function"?setTimeout:void 0,p5=typeof clearTimeout=="function"?clearTimeout:void 0,Xx=typeof Promise=="function"?Promise:void 0,f5=typeof queueMicrotask=="function"?queueMicrotask:typeof Xx<"u"?function(r){return Xx.resolve(null).then(r).catch(m5)}:Yx;function m5(r){setTimeout(function(){throw r})}function bi(r){return r==="head"}function Zx(r,a){var h=a,g=0;do{var k=h.nextSibling;if(r.removeChild(h),k&&k.nodeType===8)if(h=k.data,h==="/$"||h==="/&"){if(g===0){r.removeChild(k),us(a);return}g--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")g++;else if(h==="html")fo(r.ownerDocument.documentElement);else if(h==="head"){h=r.ownerDocument.head,fo(h);for(var R=h.firstChild;R;){var F=R.nextSibling,G=R.nodeName;R[Os]||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&R.rel.toLowerCase()==="stylesheet"||h.removeChild(R),R=F}}else h==="body"&&fo(r.ownerDocument.body);h=k}while(h);us(a)}function Qx(r,a){var h=r;r=0;do{var g=h.nextSibling;if(h.nodeType===1?a?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(a?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),g&&g.nodeType===8)if(h=g.data,h==="/$"){if(r===0)break;r--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||r++;h=g}while(h)}function Gh(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var h=a;switch(a=a.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Gh(h),Xc(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}r.removeChild(h)}}function g5(r,a,h,g){for(;r.nodeType===1;){var k=h;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!g&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(g){if(!r[Os])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(R=r.getAttribute("rel"),R==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(R!==k.rel||r.getAttribute("href")!==(k.href==null||k.href===""?null:k.href)||r.getAttribute("crossorigin")!==(k.crossOrigin==null?null:k.crossOrigin)||r.getAttribute("title")!==(k.title==null?null:k.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(R=r.getAttribute("src"),(R!==(k.src==null?null:k.src)||r.getAttribute("type")!==(k.type==null?null:k.type)||r.getAttribute("crossorigin")!==(k.crossOrigin==null?null:k.crossOrigin))&&R&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var R=k.name==null?null:""+k.name;if(k.type==="hidden"&&r.getAttribute("name")===R)return r}else return r;if(r=Yn(r.nextSibling),r===null)break}return null}function b5(r,a,h){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!h||(r=Yn(r.nextSibling),r===null))return null;return r}function Jx(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Yn(r.nextSibling),r===null))return null;return r}function Wh(r){return r.data==="$?"||r.data==="$~"}function Vh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function y5(r,a){var h=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||h.readyState!=="loading")a();else{var g=function(){a(),h.removeEventListener("DOMContentLoaded",g)};h.addEventListener("DOMContentLoaded",g),r._reactRetry=g}}function Yn(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 Kh=null;function eE(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var h=r.data;if(h==="/$"||h==="/&"){if(a===0)return Yn(r.nextSibling);a--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||a++}r=r.nextSibling}return null}function tE(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var h=r.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(a===0)return r;a--}else h!=="/$"&&h!=="/&"||a++}r=r.previousSibling}return null}function nE(r,a,h){switch(a=lu(h),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 fo(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Xc(r)}var Xn=new Map,rE=new Set;function uu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var qr=Z.d;Z.d={f:v5,r:_5,D:S5,C:x5,L:E5,m:w5,X:k5,S:C5,M:T5};function v5(){var r=qr.f(),a=eu();return r||a}function _5(r){var a=Ra(r);a!==null&&a.tag===5&&a.type==="form"?_S(a):qr.r(r)}var ss=typeof document>"u"?null:document;function iE(r,a,h){var g=ss;if(g&&typeof a=="string"&&a){var k=zn(a);k='link[rel="'+r+'"][href="'+k+'"]',typeof h=="string"&&(k+='[crossorigin="'+h+'"]'),rE.has(k)||(rE.add(k),r={rel:r,crossOrigin:h,href:a},g.querySelector(k)===null&&(a=g.createElement("link"),Jt(a,"link",r),Wt(a),g.head.appendChild(a)))}}function S5(r){qr.D(r),iE("dns-prefetch",r,null)}function x5(r,a){qr.C(r,a),iE("preconnect",r,a)}function E5(r,a,h){qr.L(r,a,h);var g=ss;if(g&&r&&a){var k='link[rel="preload"][as="'+zn(a)+'"]';a==="image"&&h&&h.imageSrcSet?(k+='[imagesrcset="'+zn(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(k+='[imagesizes="'+zn(h.imageSizes)+'"]')):k+='[href="'+zn(r)+'"]';var R=k;switch(a){case"style":R=os(r);break;case"script":R=ls(r)}Xn.has(R)||(r=f({rel:"preload",href:a==="image"&&h&&h.imageSrcSet?void 0:r,as:a},h),Xn.set(R,r),g.querySelector(k)!==null||a==="style"&&g.querySelector(mo(R))||a==="script"&&g.querySelector(go(R))||(a=g.createElement("link"),Jt(a,"link",r),Wt(a),g.head.appendChild(a)))}}function w5(r,a){qr.m(r,a);var h=ss;if(h&&r){var g=a&&typeof a.as=="string"?a.as:"script",k='link[rel="modulepreload"][as="'+zn(g)+'"][href="'+zn(r)+'"]',R=k;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":R=ls(r)}if(!Xn.has(R)&&(r=f({rel:"modulepreload",href:r},a),Xn.set(R,r),h.querySelector(k)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(go(R)))return}g=h.createElement("link"),Jt(g,"link",r),Wt(g),h.head.appendChild(g)}}}function C5(r,a,h){qr.S(r,a,h);var g=ss;if(g&&r){var k=Aa(g).hoistableStyles,R=os(r);a=a||"default";var F=k.get(R);if(!F){var G={loading:0,preload:null};if(F=g.querySelector(mo(R)))G.loading=5;else{r=f({rel:"stylesheet",href:r,"data-precedence":a},h),(h=Xn.get(R))&&Yh(r,h);var X=F=g.createElement("link");Wt(X),Jt(X,"link",r),X._p=new Promise(function(ae,he){X.onload=ae,X.onerror=he}),X.addEventListener("load",function(){G.loading|=1}),X.addEventListener("error",function(){G.loading|=2}),G.loading|=4,cu(F,a,g)}F={type:"stylesheet",instance:F,count:1,state:G},k.set(R,F)}}}function k5(r,a){qr.X(r,a);var h=ss;if(h&&r){var g=Aa(h).hoistableScripts,k=ls(r),R=g.get(k);R||(R=h.querySelector(go(k)),R||(r=f({src:r,async:!0},a),(a=Xn.get(k))&&Xh(r,a),R=h.createElement("script"),Wt(R),Jt(R,"link",r),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},g.set(k,R))}}function T5(r,a){qr.M(r,a);var h=ss;if(h&&r){var g=Aa(h).hoistableScripts,k=ls(r),R=g.get(k);R||(R=h.querySelector(go(k)),R||(r=f({src:r,async:!0,type:"module"},a),(a=Xn.get(k))&&Xh(r,a),R=h.createElement("script"),Wt(R),Jt(R,"link",r),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},g.set(k,R))}}function aE(r,a,h,g){var k=(k=de.current)?uu(k):null;if(!k)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(a=os(h.href),h=Aa(k).hoistableStyles,g=h.get(a),g||(g={type:"style",instance:null,count:0,state:null},h.set(a,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){r=os(h.href);var R=Aa(k).hoistableStyles,F=R.get(r);if(F||(k=k.ownerDocument||k,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(r,F),(R=k.querySelector(mo(r)))&&!R._p&&(F.instance=R,F.state.loading=5),Xn.has(r)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Xn.set(r,h),R||R5(k,r,h,F.state))),a&&g===null)throw Error(i(528,""));return F}if(a&&g!==null)throw Error(i(529,""));return null;case"script":return a=h.async,h=h.src,typeof h=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ls(h),h=Aa(k).hoistableScripts,g=h.get(a),g||(g={type:"script",instance:null,count:0,state:null},h.set(a,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function os(r){return'href="'+zn(r)+'"'}function mo(r){return'link[rel="stylesheet"]['+r+"]"}function sE(r){return f({},r,{"data-precedence":r.precedence,precedence:null})}function R5(r,a,h,g){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?g.loading=1:(a=r.createElement("link"),g.preload=a,a.addEventListener("load",function(){return g.loading|=1}),a.addEventListener("error",function(){return g.loading|=2}),Jt(a,"link",h),Wt(a),r.head.appendChild(a))}function ls(r){return'[src="'+zn(r)+'"]'}function go(r){return"script[async]"+r}function oE(r,a,h){if(a.count++,a.instance===null)switch(a.type){case"style":var g=r.querySelector('style[data-href~="'+zn(h.href)+'"]');if(g)return a.instance=g,Wt(g),g;var k=f({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return g=(r.ownerDocument||r).createElement("style"),Wt(g),Jt(g,"style",k),cu(g,h.precedence,r),a.instance=g;case"stylesheet":k=os(h.href);var R=r.querySelector(mo(k));if(R)return a.state.loading|=4,a.instance=R,Wt(R),R;g=sE(h),(k=Xn.get(k))&&Yh(g,k),R=(r.ownerDocument||r).createElement("link"),Wt(R);var F=R;return F._p=new Promise(function(G,X){F.onload=G,F.onerror=X}),Jt(R,"link",g),a.state.loading|=4,cu(R,h.precedence,r),a.instance=R;case"script":return R=ls(h.src),(k=r.querySelector(go(R)))?(a.instance=k,Wt(k),k):(g=h,(k=Xn.get(R))&&(g=f({},h),Xh(g,k)),r=r.ownerDocument||r,k=r.createElement("script"),Wt(k),Jt(k,"link",g),r.head.appendChild(k),a.instance=k);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(g=a.instance,a.state.loading|=4,cu(g,h.precedence,r));return a.instance}function cu(r,a,h){for(var g=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),k=g.length?g[g.length-1]:null,R=k,F=0;F<g.length;F++){var G=g[F];if(G.dataset.precedence===a)R=G;else if(R!==k)break}R?R.parentNode.insertBefore(r,R.nextSibling):(a=h.nodeType===9?h.head:h,a.insertBefore(r,a.firstChild))}function Yh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Xh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var du=null;function lE(r,a,h){if(du===null){var g=new Map,k=du=new Map;k.set(h,g)}else k=du,g=k.get(h),g||(g=new Map,k.set(h,g));if(g.has(r))return g;for(g.set(r,null),h=h.getElementsByTagName(r),k=0;k<h.length;k++){var R=h[k];if(!(R[Os]||R[Yt]||r==="link"&&R.getAttribute("rel")==="stylesheet")&&R.namespaceURI!=="http://www.w3.org/2000/svg"){var F=R.getAttribute(a)||"";F=r+F;var G=g.get(F);G?G.push(R):g.set(F,[R])}}return g}function uE(r,a,h){r=r.ownerDocument||r,r.head.insertBefore(h,a==="title"?r.querySelector("head > title"):null)}function A5(r,a,h){if(h===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;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!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 cE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function N5(r,a,h,g){if(h.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var k=os(g.href),R=a.querySelector(mo(k));if(R){a=R._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=hu.bind(r),a.then(r,r)),h.state.loading|=4,h.instance=R,Wt(R);return}R=a.ownerDocument||a,g=sE(g),(k=Xn.get(k))&&Yh(g,k),R=R.createElement("link"),Wt(R);var F=R;F._p=new Promise(function(G,X){F.onload=G,F.onerror=X}),Jt(R,"link",g),h.instance=R}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(h,a),(a=h.state.preload)&&(h.state.loading&3)===0&&(r.count++,h=hu.bind(r),a.addEventListener("load",h),a.addEventListener("error",h))}}var Zh=0;function O5(r,a){return r.stylesheets&&r.count===0&&fu(r,r.stylesheets),0<r.count||0<r.imgCount?function(h){var g=setTimeout(function(){if(r.stylesheets&&fu(r,r.stylesheets),r.unsuspend){var R=r.unsuspend;r.unsuspend=null,R()}},6e4+a);0<r.imgBytes&&Zh===0&&(Zh=62500*d5());var k=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&fu(r,r.stylesheets),r.unsuspend)){var R=r.unsuspend;r.unsuspend=null,R()}},(r.imgBytes>Zh?50:800)+a);return r.unsuspend=h,function(){r.unsuspend=null,clearTimeout(g),clearTimeout(k)}}:null}function hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fu(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var pu=null;function fu(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,pu=new Map,a.forEach(D5,r),pu=null,hu.call(r))}function D5(r,a){if(!(a.state.loading&4)){var h=pu.get(r);if(h)var g=h.get(null);else{h=new Map,pu.set(r,h);for(var k=r.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<k.length;R++){var F=k[R];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(h.set(F.dataset.precedence,F),g=F)}g&&h.set(null,g)}k=a.instance,F=k.getAttribute("data-precedence"),R=h.get(F)||g,R===g&&h.set(null,k),h.set(F,k),this.count++,g=hu.bind(this),k.addEventListener("load",g),k.addEventListener("error",g),R?R.parentNode.insertBefore(k,R.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(k,r.firstChild)),a.state.loading|=4}}var bo={$$typeof:_,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function I5(r,a,h,g,k,R,F,G,X){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=Wc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wc(0),this.hiddenUpdates=Wc(null),this.identifierPrefix=g,this.onUncaughtError=k,this.onCaughtError=R,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function dE(r,a,h,g,k,R,F,G,X,ae,he,me){return r=new I5(r,a,h,F,X,ae,he,me,G),a=1,R===!0&&(a|=24),R=Rn(3,null,null,a),r.current=R,R.stateNode=r,a=Nd(),a.refCount++,r.pooledCache=a,a.refCount++,R.memoizedState={element:g,isDehydrated:h,cache:a},Ld(R),r}function hE(r){return r?(r=Pa,r):Pa}function pE(r,a,h,g,k,R){k=hE(k),g.context===null?g.context=k:g.pendingContext=k,g=si(a),g.payload={element:h},R=R===void 0?null:R,R!==null&&(g.callback=R),h=oi(r,g,a),h!==null&&(vn(h,r,a),Ks(h,r,a))}function fE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var h=r.retryLane;r.retryLane=h!==0&&h<a?h:a}}function Qh(r,a){fE(r,a),(r=r.alternate)&&fE(r,a)}function mE(r){if(r.tag===13||r.tag===31){var a=qi(r,67108864);a!==null&&vn(a,r,67108864),Qh(r,67108864)}}function gE(r){if(r.tag===13||r.tag===31){var a=In();a=Vc(a);var h=qi(r,a);h!==null&&vn(h,r,a),Qh(r,a)}}var mu=!0;function L5(r,a,h,g){var k=W.T;W.T=null;var R=Z.p;try{Z.p=2,Jh(r,a,h,g)}finally{Z.p=R,W.T=k}}function M5(r,a,h,g){var k=W.T;W.T=null;var R=Z.p;try{Z.p=8,Jh(r,a,h,g)}finally{Z.p=R,W.T=k}}function Jh(r,a,h,g){if(mu){var k=ep(g);if(k===null)Ph(r,a,g,gu,h),yE(r,g);else if(F5(k,r,a,h,g))g.stopPropagation();else if(yE(r,g),a&4&&-1<B5.indexOf(r)){for(;k!==null;){var R=Ra(k);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var F=mr(R.pendingLanes);if(F!==0){var G=R;for(G.pendingLanes|=2,G.entangledLanes|=2;F;){var X=1<<31-Qe(F);G.entanglements[1]|=X,F&=~X}vr(R),(at&6)===0&&(Ql=Ie()+500,co(0))}}break;case 31:case 13:G=qi(R,2),G!==null&&vn(G,R,2),eu(),Qh(R,2)}if(R=ep(g),R===null&&Ph(r,a,g,gu,h),R===k)break;k=R}k!==null&&g.stopPropagation()}else Ph(r,a,g,null,h)}}function ep(r){return r=nd(r),tp(r)}var gu=null;function tp(r){if(gu=null,r=Ta(r),r!==null){var a=l(r);if(a===null)r=null;else{var h=a.tag;if(h===13){if(r=c(a),r!==null)return r;r=null}else if(h===31){if(r=o(a),r!==null)return r;r=null}else if(h===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return gu=r,null}function bE(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(tt()){case re:return 2;case pe:return 8;case ye:case ke:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var np=!1,yi=null,vi=null,_i=null,yo=new Map,vo=new Map,Si=[],B5="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 yE(r,a){switch(r){case"focusin":case"focusout":yi=null;break;case"dragenter":case"dragleave":vi=null;break;case"mouseover":case"mouseout":_i=null;break;case"pointerover":case"pointerout":yo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":vo.delete(a.pointerId)}}function _o(r,a,h,g,k,R){return r===null||r.nativeEvent!==R?(r={blockedOn:a,domEventName:h,eventSystemFlags:g,nativeEvent:R,targetContainers:[k]},a!==null&&(a=Ra(a),a!==null&&mE(a)),r):(r.eventSystemFlags|=g,a=r.targetContainers,k!==null&&a.indexOf(k)===-1&&a.push(k),r)}function F5(r,a,h,g,k){switch(a){case"focusin":return yi=_o(yi,r,a,h,g,k),!0;case"dragenter":return vi=_o(vi,r,a,h,g,k),!0;case"mouseover":return _i=_o(_i,r,a,h,g,k),!0;case"pointerover":var R=k.pointerId;return yo.set(R,_o(yo.get(R)||null,r,a,h,g,k)),!0;case"gotpointercapture":return R=k.pointerId,vo.set(R,_o(vo.get(R)||null,r,a,h,g,k)),!0}return!1}function vE(r){var a=Ta(r.target);if(a!==null){var h=l(a);if(h!==null){if(a=h.tag,a===13){if(a=c(h),a!==null){r.blockedOn=a,I1(r.priority,function(){gE(h)});return}}else if(a===31){if(a=o(h),a!==null){r.blockedOn=a,I1(r.priority,function(){gE(h)});return}}else if(a===3&&h.stateNode.current.memoizedState.isDehydrated){r.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}r.blockedOn=null}function bu(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var h=ep(r.nativeEvent);if(h===null){h=r.nativeEvent;var g=new h.constructor(h.type,h);td=g,h.target.dispatchEvent(g),td=null}else return a=Ra(h),a!==null&&mE(a),r.blockedOn=h,!1;a.shift()}return!0}function _E(r,a,h){bu(r)&&h.delete(a)}function j5(){np=!1,yi!==null&&bu(yi)&&(yi=null),vi!==null&&bu(vi)&&(vi=null),_i!==null&&bu(_i)&&(_i=null),yo.forEach(_E),vo.forEach(_E)}function yu(r,a){r.blockedOn===a&&(r.blockedOn=null,np||(np=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,j5)))}var vu=null;function SE(r){vu!==r&&(vu=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){vu===r&&(vu=null);for(var a=0;a<r.length;a+=3){var h=r[a],g=r[a+1],k=r[a+2];if(typeof g!="function"){if(tp(g||h)===null)continue;break}var R=Ra(h);R!==null&&(r.splice(a,3),a-=3,eh(R,{pending:!0,data:k,method:h.method,action:g},g,k))}}))}function us(r){function a(X){return yu(X,r)}yi!==null&&yu(yi,r),vi!==null&&yu(vi,r),_i!==null&&yu(_i,r),yo.forEach(a),vo.forEach(a);for(var h=0;h<Si.length;h++){var g=Si[h];g.blockedOn===r&&(g.blockedOn=null)}for(;0<Si.length&&(h=Si[0],h.blockedOn===null);)vE(h),h.blockedOn===null&&Si.shift();if(h=(r.ownerDocument||r).$$reactFormReplay,h!=null)for(g=0;g<h.length;g+=3){var k=h[g],R=h[g+1],F=k[pn]||null;if(typeof R=="function")F||SE(h);else if(F){var G=null;if(R&&R.hasAttribute("formAction")){if(k=R,F=R[pn]||null)G=F.formAction;else if(tp(k)!==null)continue}else G=F.action;typeof G=="function"?h[g+1]=G:(h.splice(g,3),g-=3),SE(h)}}}function xE(){function r(R){R.canIntercept&&R.info==="react-transition"&&R.intercept({handler:function(){return new Promise(function(F){return k=F})},focusReset:"manual",scroll:"manual"})}function a(){k!==null&&(k(),k=null),g||setTimeout(h,20)}function h(){if(!g&&!navigation.transition){var R=navigation.currentEntry;R&&R.url!=null&&navigation.navigate(R.url,{state:R.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,k=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(h,100),function(){g=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),k!==null&&(k(),k=null)}}}function rp(r){this._internalRoot=r}_u.prototype.render=rp.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var h=a.current,g=In();pE(h,g,r,a,null,null)},_u.prototype.unmount=rp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;pE(r.current,2,null,r,null,null),eu(),a[ka]=null}};function _u(r){this._internalRoot=r}_u.prototype.unstable_scheduleHydration=function(r){if(r){var a=D1();r={blockedOn:null,target:r,priority:a};for(var h=0;h<Si.length&&a!==0&&a<Si[h].priority;h++);Si.splice(h,0,r),h===0&&vE(r)}};var EE=t.version;if(EE!=="19.2.3")throw Error(i(527,EE,"19.2.3"));Z.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=d(a),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var P5={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{St=Su.inject(P5),lt=Su}catch{}}return xo.createRoot=function(r,a){if(!s(r))throw Error(i(299));var h=!1,g="",k=NS,R=OS,F=DS;return a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onUncaughtError!==void 0&&(k=a.onUncaughtError),a.onCaughtError!==void 0&&(R=a.onCaughtError),a.onRecoverableError!==void 0&&(F=a.onRecoverableError)),a=dE(r,1,!1,null,null,h,g,null,k,R,F,xE),r[ka]=a.current,jh(r),new rp(a)},xo.hydrateRoot=function(r,a,h){if(!s(r))throw Error(i(299));var g=!1,k="",R=NS,F=OS,G=DS,X=null;return h!=null&&(h.unstable_strictMode===!0&&(g=!0),h.identifierPrefix!==void 0&&(k=h.identifierPrefix),h.onUncaughtError!==void 0&&(R=h.onUncaughtError),h.onCaughtError!==void 0&&(F=h.onCaughtError),h.onRecoverableError!==void 0&&(G=h.onRecoverableError),h.formState!==void 0&&(X=h.formState)),a=dE(r,1,!0,a,h??null,g,k,X,R,F,G,xE),a.context=hE(null),h=a.current,g=In(),g=Vc(g),k=si(g),k.callback=null,oi(h,k,g),h=g,a.current.lanes=h,Ns(a,h),vr(a),r[ka]=a.current,jh(r),new _u(a)},xo.version="19.2.3",xo}var IE;function K5(){if(IE)return sp.exports;IE=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(),sp.exports=V5(),sp.exports}var Y5=K5(),Es=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(){}},X5={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Z5=class{#e=X5;#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)}},ia=new Z5;function Q5(e){setTimeout(e,0)}var da=typeof window>"u"||"Deno"in globalThis;function ln(){}function J5(e,t){return typeof e=="function"?e(t):e}function Fy(e){return typeof e=="number"&&e>=0&&e!==1/0}function PN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ai(e,t){return typeof e=="function"?e(t):e}function Qn(e,t){return typeof e=="function"?e(t):e}function LE(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:l,queryKey:c,stale:o}=e;if(c){if(i){if(t.queryHash!==wv(c,t.options))return!1}else if(!jo(t.queryKey,c))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||l&&!l(t))}function ME(e,t){const{exact:n,status:i,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(ha(t.options.mutationKey)!==ha(l))return!1}else if(!jo(t.options.mutationKey,l))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function wv(e,t){return(t?.queryKeyHashFn||ha)(e)}function ha(e){return JSON.stringify(e,(t,n)=>jy(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function jo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>jo(e[n],t[n])):!1}var e4=Object.prototype.hasOwnProperty;function UN(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=BE(e)&&BE(t);if(!i&&!(jy(e)&&jy(t)))return t;const l=(i?e:Object.keys(e)).length,c=i?t:Object.keys(t),o=c.length,u=i?new Array(o):{};let d=0;for(let p=0;p<o;p++){const f=i?p:c[p],m=e[f],b=t[f];if(m===b){u[f]=m,(i?p<l:e4.call(e,f))&&d++;continue}if(m===null||b===null||typeof m!="object"||typeof b!="object"){u[f]=b;continue}const w=UN(m,b,n+1);u[f]=w,w===m&&d++}return l===o&&d===l?e:u}function Xu(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 BE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jy(e){if(!FE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!FE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function FE(e){return Object.prototype.toString.call(e)==="[object Object]"}function t4(e){return new Promise(t=>{ia.setTimeout(t,e)})}function Py(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?UN(e,t):t}function n4(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function r4(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Cv=Symbol();function HN(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Cv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function kv(e,t){return typeof e=="function"?e(...t):!!e}function i4(e,t,n){let i=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),i||(i=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var a4=class extends Es{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!da&&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"}},Tv=new a4;function Uy(){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 s4=Q5;function o4(){let e=[],t=0,n=o=>{o()},i=o=>{o()},s=s4;const l=o=>{t?e.push(o):s(()=>{n(o)})},c=()=>{const o=e;e=[],o.length&&s(()=>{i(()=>{o.forEach(u=>{n(u)})})})};return{batch:o=>{let u;t++;try{u=o()}finally{t--,t||c()}return u},batchCalls:o=>(...u)=>{l(()=>{o(...u)})},schedule:l,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{i=o},setScheduler:o=>{s=o}}}var Gt=o4(),l4=class extends Es{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!da&&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}},Zu=new l4;function u4(e){return Math.min(1e3*2**e,3e4)}function zN(e){return(e??"online")==="online"?Zu.isOnline():!0}var Hy=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function qN(e){let t=!1,n=0,i;const s=Uy(),l=()=>s.status!=="pending",c=E=>{if(!l()){const v=new Hy(E);m(v),e.onCancel?.(v)}},o=()=>{t=!0},u=()=>{t=!1},d=()=>Tv.isFocused()&&(e.networkMode==="always"||Zu.isOnline())&&e.canRun(),p=()=>zN(e.networkMode)&&e.canRun(),f=E=>{l()||(i?.(),s.resolve(E))},m=E=>{l()||(i?.(),s.reject(E))},b=()=>new Promise(E=>{i=v=>{(l()||d())&&E(v)},e.onPause?.()}).then(()=>{i=void 0,l()||e.onContinue?.()}),w=()=>{if(l())return;let E;const v=n===0?e.initialPromise:void 0;try{E=v??e.fn()}catch(x){E=Promise.reject(x)}Promise.resolve(E).then(f).catch(x=>{if(l())return;const S=e.retry??(da?0:3),_=e.retryDelay??u4,C=typeof _=="function"?_(n,x):_,N=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,x);if(t||!N){m(x);return}n++,e.onFail?.(n,x),t4(C).then(()=>d()?void 0:b()).then(()=>{t?m(x):w()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(i?.(),s),cancelRetry:o,continueRetry:u,canStart:p,start:()=>(p()?w():b().then(w),s)}}var $N=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fy(this.gcTime)&&(this.#e=ia.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(da?1/0:300*1e3))}clearGcTimeout(){this.#e&&(ia.clearTimeout(this.#e),this.#e=void 0)}},c4=class extends $N{#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=PE(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=PE(this.options);t.data!==void 0&&(this.setState(jE(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Py(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(ln).catch(ln):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Qn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Cv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ai(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:!PN(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(u=>u.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=HN(this.options,t),d=(()=>{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,d,this):o(d)},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=qN({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:o=>{o instanceof Hy&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(o,u)=>{this.#a({type:"failed",failureCount:o,error:u})},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 Hy){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,...GN(n.data,this.options),fetchMeta:e.meta??null};case"success":const i={...n,...jE(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!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",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Gt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function GN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jE(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function PE(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 d4=class extends Es{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#o=Uy(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#s;#o;#a;#m;#h;#p;#u;#c;#l;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),UE(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zy(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zy(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 Qn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#t.setOptions(this.options),t._defaulted&&!Xu(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&HE(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),i&&(this.#t!==n||Qn(this.options.enabled,this.#t)!==Qn(t.enabled,this.#t)||Ai(this.options.staleTime,this.#t)!==Ai(t.staleTime,this.#t))&&this.#g();const s=this.#b();i&&(this.#t!==n||Qn(this.options.enabled,this.#t)!==Qn(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 p4(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.#f.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.#x();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ln)),t}#g(){this.#_();const e=Ai(this.options.staleTime,this.#t);if(da||this.#i.isStale||!Fy(e))return;const n=PN(this.#i.dataUpdatedAt,e)+1;this.#u=ia.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,!(da||Qn(this.options.enabled,this.#t)===!1||!Fy(this.#l)||this.#l===0)&&(this.#c=ia.setInterval(()=>{(this.options.refetchIntervalInBackground||Tv.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#y(this.#b())}#_(){this.#u&&(ia.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(ia.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,u=e!==n?e.state:this.#n,{state:d}=e;let p={...d},f=!1,m;if(t._optimisticResults){const A=this.hasListeners(),D=!A&&UE(e,t),L=A&&HE(e,n,t,i);(D||L)&&(p={...p,...GN(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:w,status:E}=p;m=p.data;let v=!1;if(t.placeholderData!==void 0&&m===void 0&&E==="pending"){let A;s?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(A=s.data,v=!0):A=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,A!==void 0&&(E="success",m=Py(s?.data,A,t),f=!0)}if(t.select&&m!==void 0&&!v)if(s&&m===l?.data&&t.select===this.#m)m=this.#h;else try{this.#m=t.select,m=t.select(m),m=Py(s?.data,m,t),this.#h=m,this.#a=null}catch(A){this.#a=A}this.#a&&(b=this.#a,m=this.#h,w=Date.now(),E="error");const x=p.fetchStatus==="fetching",S=E==="pending",_=E==="error",C=S&&x,N=m!==void 0,O={status:E,fetchStatus:p.fetchStatus,isPending:S,isSuccess:E==="success",isError:_,isInitialLoading:C,isLoading:C,data:m,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:w,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:_&&!N,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:_&&N,isStale:Rv(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Qn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const A=O.data!==void 0,D=O.status==="error"&&!A,L=B=>{D?B.reject(O.error):A&&B.resolve(O.data)},I=()=>{const B=this.#o=O.promise=Uy();L(B)},H=this.#o;switch(H.status){case"pending":e.queryHash===n.queryHash&&L(H);break;case"fulfilled":(D||O.data!==H.value)&&I();break;case"rejected":(!D||O.error!==H.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.#p=this.#t),Xu(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.#f.size)return!0;const l=new Set(s??this.#f);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.#E({listeners:n()})}#x(){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()}#E(e){Gt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function h4(e,t){return Qn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function UE(e,t){return h4(e,t)||e.state.data!==void 0&&zy(e,t,t.refetchOnMount)}function zy(e,t,n){if(Qn(t.enabled,e)!==!1&&Ai(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Rv(e,t)}return!1}function HE(e,t,n,i){return(e!==t||Qn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Rv(e,n)}function Rv(e,t){return Qn(t.enabled,e)!==!1&&e.isStaleByTime(Ai(t.staleTime,e))}function p4(e,t){return!Xu(e.getCurrentResult(),t)}function zE(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:[]},u=0;const d=async()=>{let p=!1;const f=w=>{i4(w,()=>t.signal,()=>p=!0)},m=HN(t.options,t.fetchOptions),b=async(w,E,v)=>{if(p)return Promise.reject();if(E==null&&w.pages.length)return Promise.resolve(w);const S=(()=>{const T={client:t.client,queryKey:t.queryKey,pageParam:E,direction:v?"backward":"forward",meta:t.options.meta};return f(T),T})(),_=await m(S),{maxPages:C}=t.options,N=v?r4:n4;return{pages:N(w.pages,_,C),pageParams:N(w.pageParams,E,C)}};if(s&&l.length){const w=s==="backward",E=w?f4:qE,v={pages:l,pageParams:c},x=E(i,v);o=await b(v,x,w)}else{const w=e??l.length;do{const E=u===0?c[0]??i.initialPageParam:qE(i,o);if(u>0&&E==null)break;o=await b(o,E),u++}while(u<w)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function qE(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 f4(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var m4=class extends $N{#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||WN(),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=qN({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}),this.#n.config.onMutate&&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{await this.#n.config.onError?.(l,e,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onError?.(l,e,this.state.context,n)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,l,e,this.state.context,n)}catch(c){Promise.reject(c)}throw this.#r({type:"error",error:l}),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),Gt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function WN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var g4=class extends Es{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 m4({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=xu(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=xu(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=xu(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=xu(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Gt.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=>ME(t,n))}findAll(e={}){return this.getAll().filter(t=>ME(e,t))}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Gt.batch(()=>Promise.all(e.map(t=>t.continue().catch(ln))))}};function xu(e){return e.options.scope?.id}var b4=class extends Es{#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),Xu(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ha(n.mutationKey)!==ha(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??WN();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){Gt.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};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,n,i,s)}catch(l){Promise.reject(l)}try{this.#i.onSettled?.(t.data,null,n,i,s)}catch(l){Promise.reject(l)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,n,i,s)}catch(l){Promise.reject(l)}try{this.#i.onSettled?.(void 0,t.error,n,i,s)}catch(l){Promise.reject(l)}}}this.listeners.forEach(n=>{n(this.#t)})})}},y4=class extends Es{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const i=t.queryKey,s=t.queryHash??wv(i,t);let l=this.get(s);return l||(l=new c4({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(){Gt.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=>LE(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>LE(e,n)):t}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},v4=class{#e;#t;#n;#i;#r;#s;#o;#a;constructor(e={}){this.#e=e.queryCache||new y4,this.#t=e.mutationCache||new g4,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=Tv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Zu.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(Ai(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=J5(t,l);if(c!==void 0)return this.#e.build(this,i).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Gt.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;Gt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Gt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Gt.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(ln).catch(ln)}invalidateQueries(e,t={}){return Gt.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=Gt.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(ln)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(ln)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Ai(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ln).catch(ln)}fetchInfiniteQuery(e){return e.behavior=zE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ln).catch(ln)}ensureInfiniteQueryData(e){return e.behavior=zE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Zu.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(ha(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(i=>{jo(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(ha(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(i=>{jo(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=wv(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===Cv&&(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()}},VN=q.createContext(void 0),qt=e=>{const t=q.useContext(VN);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_4=({client:e,children:t})=>(q.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(VN.Provider,{value:e,children:t})),KN=q.createContext(!1),S4=()=>q.useContext(KN);KN.Provider;function x4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var E4=q.createContext(x4()),w4=()=>q.useContext(E4),C4=(e,t,n)=>{const i=n?.state.error&&typeof e.throwOnError=="function"?kv(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},k4=e=>{q.useEffect(()=>{e.clearReset()},[e])},T4=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||kv(n,[e.error,i])),R4=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))}},A4=(e,t)=>e.isLoading&&e.isFetching&&!t,N4=(e,t)=>e?.suspense&&t.isPending,$E=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function O4(e,t,n){const i=S4(),s=w4(),l=qt(),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const o=l.getQueryCache().get(c.queryHash);c._optimisticResults=i?"isRestoring":"optimistic",R4(c),C4(c,s,o),k4(s);const u=!l.getQueryCache().get(c.queryHash),[d]=q.useState(()=>new t(l,c)),p=d.getOptimisticResult(c),f=!i&&e.subscribed!==!1;if(q.useSyncExternalStore(q.useCallback(m=>{const b=f?d.subscribe(Gt.batchCalls(m)):ln;return d.updateResult(),b},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),q.useEffect(()=>{d.setOptions(c)},[c,d]),N4(c,p))throw $E(c,d,s);if(T4({result:p,errorResetBoundary:s,throwOnError:c.throwOnError,query:o,suspense:c.suspense}))throw p.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(c,p),c.experimental_prefetchInRender&&!da&&A4(p,i)&&(u?$E(c,d,s):o?.promise)?.catch(ln).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?p:d.trackResult(p)}function ar(e,t){return O4(e,d4)}function tn(e,t){const n=qt(),[i]=q.useState(()=>new b4(n,e));q.useEffect(()=>{i.setOptions(e)},[i,e]);const s=q.useSyncExternalStore(q.useCallback(c=>i.subscribe(Gt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=q.useCallback((c,o)=>{i.mutate(c,o).catch(ln)},[i]);if(s.error&&kv(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}const qy=new WeakMap,D4=new WeakMap,Qu={current:[]};let cp=!1,Io=0;const Do=new Set,Eu=new Map;function YN(e){for(const t of e){if(Qu.current.includes(t))continue;Qu.current.push(t),t.recompute();const n=D4.get(t);if(n)for(const i of n){const s=qy.get(i);s?.length&&YN(s)}}}function I4(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function L4(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function XN(e){if(Io>0&&!Eu.has(e)&&Eu.set(e,e.prevState),Do.add(e),!(Io>0)&&!cp)try{for(cp=!0;Do.size>0;){const t=Array.from(Do);Do.clear();for(const n of t){const i=Eu.get(n)??n.prevState;n.prevState=i,I4(n)}for(const n of t){const i=qy.get(n);i&&(Qu.current.push(n),YN(i))}for(const n of t){const i=qy.get(n);if(i)for(const s of i)L4(s)}}}finally{cp=!1,Qu.current=[],Eu.clear()}}function M4(e){Io++;try{e()}finally{if(Io--,Io===0){const t=Do.values().next().value;t&&XN(t)}}}function B4(e){return typeof e=="function"}class F4{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):B4(t)?this.state=t(this.prevState):this.state=t,(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),XN(this)}}const Ni="__TSR_index",GE="popstate",WE="beforeunload";function j4(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,...u})=>{if(o?.ignoreBlocker??!1){c();return}const p=e.getBlockers?.()??[],f=u.type==="PUSH"||u.type==="REPLACE";if(typeof document<"u"&&p.length&&f)for(const m of p){const b=Ju(u.path,u.state);if(await m.blockerFn({currentLocation:t,nextLocation:b,action:u.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,u)=>{const d=t.state[Ni];o=VE(d+1,o),l({task:()=>{e.pushState(c,o),i({type:"PUSH"})},navigateOpts:u,type:"PUSH",path:c,state:o})},replace:(c,o,u)=>{const d=t.state[Ni];o=VE(d,o),l({task:()=>{e.replaceState(c,o),i({type:"REPLACE"})},navigateOpts:u,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[Ni]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const o=e.getBlockers?.()??[];return e.setBlockers([...o,c]),()=>{const u=e.getBlockers?.()??[];e.setBlockers?.(u.filter(d=>d!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function VE(e,t){t||(t={});const n=Av();return{...t,key:n,__TSR_key:n,[Ni]:e}}function P4(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const l=()=>s,c=A=>s=A,o=(A=>A),u=(()=>Ju(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const A=Av();t.history.replaceState({[Ni]:0,key:A,__TSR_key:A},"")}let d=u(),p,f=!1,m=!1,b=!1,w=!1;const E=()=>d;let v,x;const S=()=>{v&&(O._ignoreSubscribers=!0,(v.isPush?t.history.pushState:t.history.replaceState)(v.state,"",v.href),O._ignoreSubscribers=!1,v=void 0,x=void 0,p=void 0)},_=(A,D,L)=>{const I=o(D);x||(p=d),d=Ju(D,L),v={href:I,state:L,isPush:v?.isPush||A==="push"},x||(x=Promise.resolve().then(()=>S()))},C=A=>{d=u(),O.notify({type:A})},N=async()=>{if(m){m=!1;return}const A=u(),D=A.state[Ni]-d.state[Ni],L=D===1,I=D===-1,H=!L&&!I||f;f=!1;const B=H?"GO":I?"BACK":"FORWARD",V=H?{type:"GO",index:D}:{type:I?"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:d,nextLocation:A,action:B})){m=!0,t.history.go(1),O.notify(V);return}}}d=u(),O.notify(V)},T=A=>{if(w){w=!1;return}let D=!1;const L=l();if(typeof document<"u"&&L.length)for(const I of L){const H=I.enableBeforeUnload??!0;if(H===!0){D=!0;break}if(typeof H=="function"&&H()===!0){D=!0;break}}if(D)return A.preventDefault(),A.returnValue=""},O=j4({getLocation:E,getLength:()=>t.history.length,pushState:(A,D)=>_("push",A,D),replaceState:(A,D)=>_("replace",A,D),back:A=>(A&&(b=!0),w=!0,t.history.back()),forward:A=>{A&&(b=!0),w=!0,t.history.forward()},go:A=>{f=!0,t.history.go(A)},createHref:A=>o(A),flush:S,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(WE,T,{capture:!0}),t.removeEventListener(GE,N)},onBlocked:()=>{p&&d!==p&&(d=p)},getBlockers:l,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(WE,T,{capture:!0}),t.addEventListener(GE,N),t.history.pushState=function(...A){const D=n.apply(t.history,A);return O._ignoreSubscribers||C("PUSH"),D},t.history.replaceState=function(...A){const D=i.apply(t.history,A);return O._ignoreSubscribers||C("REPLACE"),D},O}function U4(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Ju(e,t){const n=U4(e),i=n.indexOf("#"),s=n.indexOf("?"),l=Av();return{href:n,pathname:n.substring(0,i>0?s>0?Math.min(i,s):i:s>0?s:n.length),hash:i>-1?n.substring(i):"",search:s>-1?n.slice(s,i===-1?void 0:i):"",state:t||{[Ni]:0,key:l,__TSR_key:l}}}function Av(){return(Math.random()+1).toString(36).substring(7)}const H4=!1;function Lo(e){let t;return M4(()=>{t=e()}),t}function Po(e){return e[e.length-1]}function z4(e){return typeof e=="function"}function Ci(e,t){return z4(e)?e(t):e}const q4=Object.prototype.hasOwnProperty,KE=Object.prototype.propertyIsEnumerable;function Zn(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=t,s=ZE(e)&&ZE(i);if(!s&&!(ec(e)&&ec(i)))return i;const l=s?e:YE(e);if(!l)return i;const c=s?i:YE(i);if(!c)return i;const o=l.length,u=c.length,d=s?new Array(u):{};let p=0;for(let f=0;f<u;f++){const m=s?f:c[f],b=e[m],w=i[m];if(b===w){d[m]=b,(s?f<o:q4.call(e,m))&&p++;continue}if(b===null||w===null||typeof b!="object"||typeof w!="object"){d[m]=w;continue}const E=Zn(b,w,n+1);d[m]=E,E===b&&p++}return o===u&&p===o?e:d}function YE(e){const t=Object.getOwnPropertyNames(e);for(const s of t)if(!KE.call(e,s))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const i=t;for(const s of n){if(!KE.call(e,s))return!1;i.push(s)}return i}function ec(e){if(!XE(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!XE(n)||!n.hasOwnProperty("isPrototypeOf"))}function XE(e){return Object.prototype.toString.call(e)==="[object Object]"}function ZE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function la(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(!la(e[i],t[i],n))return!1;return!0}if(ec(e)&&ec(t)){const i=n?.ignoreUndefined??!0;if(n?.partial){for(const c in t)if((!i||t[c]!==void 0)&&!la(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||!la(e[c],t[c],n)))return!1;return s===l}return!1}function vs(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 gs(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function $4(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function QE(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return $4(t)}const ZN=["http:","https:","mailto:","tel:"];function tc(e){if(!e)return!1;try{const t=new URL(e);return!ZN.includes(t.protocol)}catch{return!1}}function dp(e,t){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return e;const n=/%25|%5C/gi;let i=0,s="",l;for(;(l=n.exec(e))!==null;)s+=QE(e.slice(i,l.index))+l[0],i=n.lastIndex;return s=s+QE(i?e.slice(i):e),s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function G4(e){return/[^\u0000-\u007F]/.test(e)?e.replace(/[^\u0000-\u007F]/gu,encodeURIComponent):e}var W4="Invariant failed";function Wr(e,t){if(!e)throw new Error(W4)}function nc(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 u=n;t.delete(u.key),u.next&&(n=u.next,u.next.prev=void 0),u===i&&(i=void 0)}const o=t.get(l);if(o)o.value=c,s(o);else{const u={key:l,value:c,prev:i};i&&(i.next=u),i=u,n||(n=u),t.set(l,u)}},clear(){t.clear(),n=void 0,i=void 0}}}const _s=0,pa=1,fa=2,Uo=3,aa=4,QN=5;function V4(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function Nv(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,l=e.substring(t,s);if(!l||!l.includes("$"))return n[0]=_s,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(l==="$"){const o=e.length;return n[0]=fa,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}if(l.charCodeAt(0)===36)return n[0]=pa,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const c=V4(l);if(c){const[o,u]=c,d=l.charCodeAt(o+1);if(d===45){if(o+2<l.length&&l.charCodeAt(o+2)===36){const p=o+3,f=u;if(p<f)return n[0]=Uo,n[1]=t+o,n[2]=t+p,n[3]=t+f,n[4]=t+u+1,n[5]=s,n}}else if(d===36){const p=o+1,f=o+2;return f===u?(n[0]=fa,n[1]=t+o,n[2]=t+p,n[3]=t+f,n[4]=t+u+1,n[5]=e.length,n):(n[0]=pa,n[1]=t+o,n[2]=t+f,n[3]=t+u,n[4]=t+u+1,n[5]=s,n)}}return n[0]=_s,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function bc(e,t,n,i,s,l,c){c?.(n);let o=i;{const u=n.fullPath??n.from,d=u.length,p=n.options?.caseSensitive??e,f=!!(n.options?.params?.parse&&n.options?.skipRouteOnParseError?.params);for(;o<d;){const b=Nv(u,o,t);let w;const E=o,v=b[5];switch(o=v+1,l++,b[0]){case _s:{const S=u.substring(b[2],b[3]);if(p){const _=s.static?.get(S);if(_)w=_;else{s.static??=new Map;const C=sa(n.fullPath??n.from);C.parent=s,C.depth=l,w=C,s.static.set(S,C)}}else{const _=S.toLowerCase(),C=s.staticInsensitive?.get(_);if(C)w=C;else{s.staticInsensitive??=new Map;const N=sa(n.fullPath??n.from);N.parent=s,N.depth=l,w=N,s.staticInsensitive.set(_,N)}}break}case pa:{const S=u.substring(E,b[1]),_=u.substring(b[4],v),C=p&&!!(S||_),N=S?C?S:S.toLowerCase():void 0,T=_?C?_:_.toLowerCase():void 0,O=!f&&s.dynamic?.find(A=>!A.skipOnParamError&&A.caseSensitive===C&&A.prefix===N&&A.suffix===T);if(O)w=O;else{const A=pp(pa,n.fullPath??n.from,C,N,T);w=A,A.depth=l,A.parent=s,s.dynamic??=[],s.dynamic.push(A)}break}case Uo:{const S=u.substring(E,b[1]),_=u.substring(b[4],v),C=p&&!!(S||_),N=S?C?S:S.toLowerCase():void 0,T=_?C?_:_.toLowerCase():void 0,O=!f&&s.optional?.find(A=>!A.skipOnParamError&&A.caseSensitive===C&&A.prefix===N&&A.suffix===T);if(O)w=O;else{const A=pp(Uo,n.fullPath??n.from,C,N,T);w=A,A.parent=s,A.depth=l,s.optional??=[],s.optional.push(A)}break}case fa:{const S=u.substring(E,b[1]),_=u.substring(b[4],v),C=p&&!!(S||_),N=S?C?S:S.toLowerCase():void 0,T=_?C?_:_.toLowerCase():void 0,O=pp(fa,n.fullPath??n.from,C,N,T);w=O,O.parent=s,O.depth=l,s.wildcard??=[],s.wildcard.push(O)}}s=w}if(f&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const b=sa(n.fullPath??n.from);b.kind=QN,b.parent=s,l++,b.depth=l,s.pathless??=[],s.pathless.push(b),s=b}const m=(n.path||!n.children)&&!n.isRoot;if(m&&u.endsWith("/")){const b=sa(n.fullPath??n.from);b.kind=aa,b.parent=s,l++,b.depth=l,s.index=b,s=b}s.parse=n.options?.params?.parse??null,s.skipOnParamError=f,s.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,m&&!s.route&&(s.route=n,s.fullPath=n.fullPath??n.from)}if(n.children)for(const u of n.children)bc(e,t,u,o,s,l,c)}function hp(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function wi(e){if(e.pathless)for(const t of e.pathless)wi(t);if(e.static)for(const t of e.static.values())wi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())wi(t);if(e.dynamic?.length){e.dynamic.sort(hp);for(const t of e.dynamic)wi(t)}if(e.optional?.length){e.optional.sort(hp);for(const t of e.optional)wi(t)}if(e.wildcard?.length){e.wildcard.sort(hp);for(const t of e.wildcard)wi(t)}}function sa(e){return{kind:_s,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function pp(e,t,n,i,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:i,suffix:s}}function K4(e,t){const n=sa("/"),i=new Uint16Array(6);for(const s of e)bc(!1,i,s,1,n,0);wi(n),t.masksTree=n,t.flatCache=nc(1e3)}function Y4(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const i=Ov(e,t.masksTree);return t.flatCache.set(e,i),i}function X4(e,t,n,i,s){e||="/",i||="/";const l=t?`case\0${e}`:e;let c=s.singleCache.get(l);if(!c){c=sa("/");const o=new Uint16Array(6);bc(t,o,{from:e},1,c,0),s.singleCache.set(l,c)}return Ov(i,c,n)}function Z4(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||="/";let l;try{l=Ov(e,t.segmentTree,n)}catch(c){if(c instanceof URIError)l=null;else throw c}return l&&(l.branch=eM(l.route)),t.matchCache.set(i,l),l}function Q4(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function J4(e,t=!1,n){const i=sa(e.fullPath),s=new Uint16Array(6),l={},c={};let o=0;return bc(t,s,e,1,i,0,d=>{if(n?.(d,o),Wr(!(d.id in l),`Duplicate routes found with id: ${String(d.id)}`),l[d.id]=d,o!==0&&d.path){const p=Q4(d.fullPath);(!c[p]||d.fullPath.endsWith("/"))&&(c[p]=d)}o++}),wi(i),{processedTree:{segmentTree:i,singleCache:nc(1e3),matchCache:nc(1e3),flatCache:null,masksTree:null},routesById:l,routesByPath:c}}function Ov(e,t,n=!1){const i=e.split("/"),s=nM(e,i,t,n);if(!s)return null;const[l]=JN(e,i,s);return{route:s.node.route,rawParams:l,parsedParams:s.parsedParams}}function JN(e,t,n){const i=tM(n.node);let s=null;const l={};let c=n.extract?.part??0,o=n.extract?.node??0,u=n.extract?.path??0,d=n.extract?.segment??0;for(;o<i.length;c++,o++,u++,d++){const p=i[o];if(p.kind===aa)break;if(p.kind===QN){d--,c--,u--;continue}const f=t[c],m=u;if(f&&(u+=f.length),p.kind===pa){s??=n.node.fullPath.split("/");const b=s[d],w=p.prefix?.length??0;if(b.charCodeAt(w)===123){const v=p.suffix?.length??0,x=b.substring(w+2,b.length-v-1),S=f.substring(w,f.length-v);l[x]=decodeURIComponent(S)}else{const v=b.substring(1);l[v]=decodeURIComponent(f)}}else if(p.kind===Uo){if(n.skipped&1<<o){c--,u=m-1;continue}s??=n.node.fullPath.split("/");const b=s[d],w=p.prefix?.length??0,E=p.suffix?.length??0,v=b.substring(w+3,b.length-E-1),x=p.suffix||p.prefix?f.substring(w,f.length-E):f;x&&(l[v]=decodeURIComponent(x))}else if(p.kind===fa){const b=p,w=e.substring(m+(b.prefix?.length??0),e.length-(b.suffix?.length??0)),E=decodeURIComponent(w);l["*"]=E,l._splat=E;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:c,node:o,path:u,segment:d}]}function eM(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function tM(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function nM(e,t,n,i){if(e==="/"&&n.index)return{node:n.index,skipped:0};const s=!Po(t),l=s&&e!=="/",c=t.length-(s?1:0),o=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let u=null,d=null,p=null;for(;o.length;){const f=o.pop(),{node:m,index:b,skipped:w,depth:E,statics:v,dynamics:x,optionals:S}=f;let{extract:_,rawParams:C,parsedParams:N}=f;if(m.skipOnParamError){if(!fp(e,t,f))continue;C=f.rawParams,_=f.extract,N=f.parsedParams}i&&m.route&&m.kind!==aa&&Eo(d,f)&&(d=f);const T=b===c;if(T&&(m.route&&!l&&Eo(p,f)&&(p=f),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const O=T?void 0:t[b];let A;if(T&&m.index){const D={node:m.index,index:b,skipped:w,depth:E+1,statics:v,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N};let L=!0;if(m.index.skipOnParamError&&(fp(e,t,D)||(L=!1)),L){if(v===c&&!x&&!S&&!w)return D;Eo(p,D)&&(p=D)}}if(m.wildcard&&Eo(u,f))for(const D of m.wildcard){const{prefix:L,suffix:I}=D;if(L&&(T||!(D.caseSensitive?O:A??=O.toLowerCase()).startsWith(L)))continue;if(I){if(T)continue;const B=t.slice(b).join("/").slice(-I.length);if((D.caseSensitive?B:B.toLowerCase())!==I)continue}const H={node:D,index:c,skipped:w,depth:E,statics:v,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N};if(!(D.skipOnParamError&&!fp(e,t,H))){u=H;break}}if(m.optional){const D=w|1<<E,L=E+1;for(let I=m.optional.length-1;I>=0;I--){const H=m.optional[I];o.push({node:H,index:b,skipped:D,depth:L,statics:v,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N})}if(!T)for(let I=m.optional.length-1;I>=0;I--){const H=m.optional[I],{prefix:B,suffix:V}=H;if(B||V){const K=H.caseSensitive?O:A??=O.toLowerCase();if(B&&!K.startsWith(B)||V&&!K.endsWith(V))continue}o.push({node:H,index:b+1,skipped:w,depth:L,statics:v,dynamics:x,optionals:S+1,extract:_,rawParams:C,parsedParams:N})}}if(!T&&m.dynamic&&O)for(let D=m.dynamic.length-1;D>=0;D--){const L=m.dynamic[D],{prefix:I,suffix:H}=L;if(I||H){const B=L.caseSensitive?O:A??=O.toLowerCase();if(I&&!B.startsWith(I)||H&&!B.endsWith(H))continue}o.push({node:L,index:b+1,skipped:w,depth:E+1,statics:v,dynamics:x+1,optionals:S,extract:_,rawParams:C,parsedParams:N})}if(!T&&m.staticInsensitive){const D=m.staticInsensitive.get(A??=O.toLowerCase());D&&o.push({node:D,index:b+1,skipped:w,depth:E+1,statics:v+1,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N})}if(!T&&m.static){const D=m.static.get(O);D&&o.push({node:D,index:b+1,skipped:w,depth:E+1,statics:v+1,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N})}if(m.pathless){const D=E+1;for(let L=m.pathless.length-1;L>=0;L--){const I=m.pathless[L];o.push({node:I,index:b,skipped:w,depth:D,statics:v,dynamics:x,optionals:S,extract:_,rawParams:C,parsedParams:N})}}}if(p&&u)return Eo(u,p)?p:u;if(p)return p;if(u)return u;if(i&&d){let f=d.index;for(let b=0;b<d.index;b++)f+=t[b].length;const m=f===e.length?"/":e.slice(f);return d.rawParams??={},d.rawParams["**"]=decodeURIComponent(m),d}return null}function fp(e,t,n){try{const[i,s]=JN(e,t,n);n.rawParams=i,n.extract=s;const l=n.node.parse(i);return n.parsedParams=Object.assign({},n.parsedParams,l),!0}catch{return null}}function Eo(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===aa)>(e.node.kind===aa)||t.node.kind===aa==(e.node.kind===aa)&&t.depth>e.depth))):!0}function Bu(e){return Dv(e.filter(t=>t!==void 0).join("/"))}function Dv(e){return e.replace(/\/{2,}/g,"/")}function eO(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Gr(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function tO(e){return Gr(eO(e))}function rc(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function rM(e,t,n){return rc(e,n)===rc(t,n)}function iM({base:e,to:t,trailingSlash:n="never",cache:i}){const s=t.startsWith("/"),l=!s&&t===".";let c;if(i){c=s?t:l?e:e+"\0"+t;const f=i.get(c);if(f)return f}let o;if(l)o=e.split("/");else if(s)o=t.split("/");else{for(o=e.split("/");o.length>1&&Po(o)==="";)o.pop();const f=t.split("/");for(let m=0,b=f.length;m<b;m++){const w=f[m];w===""?m?m===b-1&&o.push(w):o=[w]:w===".."?o.pop():w==="."||o.push(w)}}o.length>1&&(Po(o)===""?n==="never"&&o.pop():n==="always"&&o.push(""));let u,d="";for(let f=0;f<o.length;f++){f>0&&(d+="/");const m=o[f];if(!m)continue;u=Nv(m,0,u);const b=u[0];if(b===_s){d+=m;continue}const w=u[5],E=m.substring(0,u[1]),v=m.substring(u[4],w),x=m.substring(u[2],u[3]);b===pa?d+=E||v?`${E}{$${x}}${v}`:`$${x}`:b===fa?d+=E||v?`${E}{$}${v}`:"$":d+=`${E}{-$${x}}${v}`}d=Dv(d);const p=d||"/";return c&&i&&i.set(c,p),p}function aM(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),n=Array.from(t.keys()).map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(n,"g");return s=>s.replace(i,l=>t.get(l)??l)}function mp(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?encodeURI(i):sM(i,n)}function gp({path:e,params:t,decoder:n,server:i}){let s=!1;const l={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:s};const c=e.length;let o=0,u,d="";for(;o<c;){const f=o;u=Nv(e,f,u);const m=u[5];if(o=m+1,f===m)continue;const b=u[0];if(b===_s){d+="/"+e.substring(f,m);continue}if(b===fa){const w=t._splat;l._splat=w,l["*"]=w;const E=e.substring(f,u[1]),v=e.substring(u[4],m);if(!w){s=!0,(E||v)&&(d+="/"+E+v);continue}const x=mp("_splat",t,n);d+="/"+E+x+v;continue}if(b===pa){const w=e.substring(u[2],u[3]);!s&&!(w in t)&&(s=!0),l[w]=t[w];const E=e.substring(f,u[1]),v=e.substring(u[4],m),x=mp(w,t,n)??"undefined";d+="/"+E+x+v;continue}if(b===Uo){const w=e.substring(u[2],u[3]),E=t[w];if(E==null)continue;l[w]=E;const v=e.substring(f,u[1]),x=e.substring(u[4],m),S=mp(w,t,n)??"";d+="/"+v+S+x;continue}}return e.endsWith("/")&&(d+="/"),{usedParams:l,interpolatedPath:d||"/",isMissingParams:s}}function sM(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Fn(e){return!!e?.isNotFound}function oM(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const $y="tsr-scroll-restoration-v1_3",lM=(e,t)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function uM(){const e=oM();if(!e)return null;const t=e.getItem($y);let n=t?JSON.parse(t):{};return{state:n,set:i=>{n=Ci(i,n)||n;try{e.setItem($y,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const wu=uM(),cM=e=>e.state.__TSR_key||e.href;function dM(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 ic=!1;function hM({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:s,location:l}){let c;try{c=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(d){console.error(d);return}const o=t||window.history.state?.__TSR_key,u=c[o];ic=!0;e:{if(i&&u&&Object.keys(u).length>0){for(const f in u){const m=u[f];if(f==="window")window.scrollTo({top:m.scrollY,left:m.scrollX,behavior:n});else if(f){const b=document.querySelector(f);b&&(b.scrollLeft=m.scrollX,b.scrollTop=m.scrollY)}}break e}const d=(l??window.location).hash.split("#",2)[1];if(d){const f=window.history.state?.__hashScrollIntoViewOptions??!0;if(f){const m=document.getElementById(d);m&&m.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 m=typeof f=="function"?f():document.querySelector(f);m&&m.scrollTo(p)}}ic=!1}function pM(e,t){if(!wu||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!wu))return;e.isScrollRestorationSetup=!0,ic=!1;const i=e.options.getScrollRestorationKey||cM;window.history.scrollRestoration="manual";const s=l=>{if(ic||!e.isScrollRestoring)return;let c="";if(l.target===document||l.target===window)c="window";else{const u=l.target.getAttribute("data-scroll-restoration-id");u?c=`[data-scroll-restoration-id="${u}"]`:c=dM(l.target)}const o=i(e.state.location);wu.set(u=>{const d=u[o]||={},p=d[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 u})};typeof document<"u"&&document.addEventListener("scroll",lM(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})||(hM({storageKey:$y,key:c,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&wu.set(o=>(o[c]||={},o)))})}function fM(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 mM(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 bp(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function gM(e){const t=new URLSearchParams(e),n={};for(const[i,s]of t.entries()){const l=n[i];l==null?n[i]=bp(s):Array.isArray(l)?l.push(bp(s)):n[i]=[l,bp(s)]}return n}const bM=vM(JSON.parse),yM=_M(JSON.stringify,JSON.parse);function vM(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=gM(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function _M(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=mM(s,i);return l?`?${l}`:""}}const Jn="__root__";function nO(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&typeof e.href=="string"&&tc(e.href))throw new Error(`Redirect blocked: unsafe protocol in href "${e.href}". Only ${ZN.join(", ")} protocols are allowed.`);if(!e._builtLocation&&!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 nr(e){return e instanceof Response&&!!e.options}const Fu=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},yc=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),bs=(e,t,n=!0)=>{const i={...e.router.options.context??{}},s=n?t:t-1;for(let l=0;l<=s;l++){const c=e.matches[l];if(!c)continue;const o=e.router.getMatch(c.id);o&&Object.assign(i,o.__routeContext,o.__beforeLoadContext)}return i},rO=(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),Wr(n.options.notFoundComponent);const i=e.matches.find(s=>s.routeId===n.id);Wr(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,rO(e,t))},ki=(e,t,n)=>{if(!(!nr(n)&&!Fn(n))){if(nr(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=nr(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,s=>({...s,status:i,context:bs(e,t.index),isFetching:!1,error:n})),Fn(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw nr(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(rO(e,n),n)}},iO=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,wo=(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,ki(e,e.router.getMatch(s),n);try{c.options.onError?.(n)}catch(o){n=o,ki(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}))},aO=(e,t,n,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!yc(e,t)&&(n.options.loader||n.options.beforeLoad||lO(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const c=setTimeout(()=>{Fu(e)},s);i._nonReactive.pendingTimeout=c}},SM=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;aO(e,t,n,i);const s=()=>{const l=e.router.getMatch(t);l.preload&&(l.status==="redirected"||l.status==="notFound")&&ki(e,l,l.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},xM=(e,t,n,i)=>{const s=e.router.getMatch(t),l=s._nonReactive.loadPromise;s._nonReactive.loadPromise=vs(()=>{l?.resolve()});const{paramsError:c,searchError:o}=s;c&&wo(e,n,c,"PARSE_PARAMS"),o&&wo(e,n,o,"VALIDATE_SEARCH"),aO(e,t,i,s);const u=new AbortController,d=e.matches[n-1]?.id;(d?e.router.getMatch(d):void 0)?.context??e.router.options.context;let f=!1;const m=()=>{f||(f=!0,e.updateMatch(t,T=>({...T,isFetching:"beforeLoad",fetchCount:T.fetchCount+1,abortController:u})))},b=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,T=>({...T,isFetching:!1}))};if(!i.options.beforeLoad){Lo(()=>{m(),b()});return}s._nonReactive.beforeLoadPromise=vs();const w={...bs(e,n,!1),...s.__routeContext},{search:E,params:v,cause:x}=s,S=yc(e,t),_={search:E,abortController:u,params:v,preload:S,context:w,location:e.location,navigate:T=>e.router.navigate({...T,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:S?"preload":x,matches:e.matches,...e.router.options.additionalContext},C=T=>{if(T===void 0){Lo(()=>{m(),b()});return}(nr(T)||Fn(T))&&(m(),wo(e,n,T,"BEFORE_LOAD")),Lo(()=>{m(),e.updateMatch(t,O=>({...O,__beforeLoadContext:T})),b()})};let N;try{if(N=i.options.beforeLoad(_),gs(N))return m(),N.catch(T=>{wo(e,n,T,"BEFORE_LOAD")}).then(C)}catch(T){m(),wo(e,n,T,"BEFORE_LOAD")}C(N)},EM=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],l=()=>o(),c=()=>xM(e,n,t,s),o=()=>{if(iO(e,n))return;const u=SM(e,n,s);return gs(u)?u.then(c):c()};return l()},wM=(e,t,n)=>{const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={ssr:e.router.options.ssr,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 u=l?.meta,d=l?.links,p=l?.scripts,f=l?.styles;return{meta:u,links:d,headScripts:p,headers:o,scripts:c,styles:f}})},sO=(e,t,n,i)=>{const s=e.matchPromises[n-1],{params:l,loaderDeps:c,abortController:o,cause:u}=e.router.getMatch(t),d=bs(e,n),p=yc(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":u,route:i,...e.router.options.additionalContext}},JE=async(e,t,n,i)=>{try{const s=e.router.getMatch(t);try{(!(H4??e.router.isServer)||s.ssr===!0)&&oO(i);const l=i.options.loader?.(sO(e,t,n,i)),c=i.options.loader&&gs(l);if((c||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(t,d=>({...d,isFetching:"loader"})),i.options.loader){const d=c?await l:l;ki(e,e.router.getMatch(t),d),d!==void 0&&e.updateMatch(t,p=>({...p,loaderData:d}))}i._lazyPromise&&await i._lazyPromise;const u=s._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,d=>({...d,error:void 0,context:bs(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let c=l;if(c?.name==="AbortError"){e.updateMatch(t,u=>({...u,status:u.status==="pending"?"success":u.status,isFetching:!1,context:bs(e,n)}));return}const o=s._nonReactive.minPendingPromise;o&&await o,Fn(l)&&await i.options.notFoundComponent?.preload?.(),ki(e,e.router.getMatch(t),l);try{i.options.onError?.(l)}catch(u){c=u,ki(e,e.router.getMatch(t),u)}e.updateMatch(t,u=>({...u,error:c,context:bs(e,n),status:"error",isFetching:!1}))}}catch(s){const l=e.router.getMatch(t);l&&(l._nonReactive.loaderPromise=void 0),ki(e,l,s)}},CM=async(e,t)=>{const{id:n,routeId:i}=e.matches[t];let s=!1,l=!1;const c=e.router.looseRoutesById[i];if(!iO(e,n)){const d=e.router.getMatch(n);if(d._nonReactive.loaderPromise){if(d.status==="success"&&!e.sync&&!d.preload)return d;await d._nonReactive.loaderPromise;const p=e.router.getMatch(n),f=p._nonReactive.error||p.error;f&&ki(e,p,f)}else{const p=Date.now()-d.updatedAt,f=yc(e,n),m=f?c.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.router.options.defaultStaleTime??0,b=c.options.shouldReload,w=typeof b=="function"?b(sO(e,n,t,c)):b,E=!!f&&!e.router.state.matches.some(_=>_.id===n),v=e.router.getMatch(n);v._nonReactive.loaderPromise=vs(),E!==v.preload&&e.updateMatch(n,_=>({..._,preload:E}));const{status:x,invalid:S}=v;s=x==="success"&&(S||(w??p>m)),f&&c.options.preload===!1||(s&&!e.sync?(l=!0,(async()=>{try{await JE(e,n,t,c);const _=e.router.getMatch(n);_._nonReactive.loaderPromise?.resolve(),_._nonReactive.loadPromise?.resolve(),_._nonReactive.loaderPromise=void 0}catch(_){nr(_)&&await e.router.navigate(_.options)}})()):(x!=="success"||s&&e.sync)&&await JE(e,n,t,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 u=l?o.isFetching:!1;return u!==o.isFetching||o.invalid!==!1?(e.updateMatch(n,d=>({...d,isFetching:u,invalid:!1})),e.router.getMatch(n)):o};async function e2(e){const t=Object.assign(e,{matchPromises:[]});t.router.state.matches.some(n=>n._forcePending)&&Fu(t);try{for(let o=0;o<t.matches.length;o++){const u=EM(t,o);gs(u)&&await u}const n=t.firstBadMatchIndex??t.matches.length;for(let o=0;o<n;o++)t.matchPromises.push(CM(t,o));const s=(await Promise.allSettled(t.matchPromises)).filter(o=>o.status==="rejected").map(o=>o.reason);let l;for(const o of s){if(nr(o))throw o;!l&&Fn(o)&&(l=o)}for(const o of t.matches){const{id:u,routeId:d}=o,p=t.router.looseRoutesById[d];try{const f=wM(t,u,p);if(f){const m=await f;t.updateMatch(u,b=>({...b,...m}))}}catch(f){console.error(`Error executing head for route ${d}:`,f)}}if(l)throw l;const c=Fu(t);gs(c)&&await c}catch(n){if(Fn(n)&&!t.preload){const i=Fu(t);throw gs(i)&&await i,n}if(nr(n))throw n}return t.matches}async function oO(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 uO){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 lO(e){for(const t of uO)if(e.options[t]?.preload)return!0;return!1}const uO=["component","errorComponent","pendingComponent","notFoundComponent"];function kM(e){return{input:({url:t})=>{for(const n of e)t=Gy(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=cO(e[n],t);return t}}}function TM(e){const t=tO(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=Bu(["/",t,c.pathname]),c)}}function Gy(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 cO(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 ua(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 RM{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;if(this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=aM(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=P4()),this.origin=this.options.origin,this.origin||(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;let m;this.resolvePathCache=nc(1e3),m=this.buildRouteTree(),this.setRoutes(m)}!this.__store&&this.latestLocation&&(this.__store=new F4(NM(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(m=>!["redirected"].includes(m.status))}}}),pM(this));let o=!1;const u=this.options.basepath??"/",d=this.options.rewrite;if(l||s!==u||c!==d){this.basepath=u;const m=[],b=tO(u);b&&b!=="/"&&m.push(TM({basepath:u})),d&&m.push(d),this.rewrite=m.length===0?void 0:m.length===1?m[0]:kM(m),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 n=J4(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});return this.options.routeMasks&&K4(this.options.routeMasks,n.processedTree),n},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:u,state:d})=>{const p=new URL(u,this.origin),f=Gy(this.rewrite,p),m=this.options.parseSearch(f.search),b=this.options.stringifySearch(m);return f.search=b,{href:f.href.replace(f.origin,""),publicHref:u,pathname:dp(f.pathname),external:!!this.rewrite&&f.origin!==this.origin,searchStr:b,search:Zn(i?.search,m),hash:dp(f.hash.split("#").reverse()[0]??""),state:Zn(i?.state,d)}},l=s(n),{__tempLocation:c,__tempKey:o}=l.state;if(c&&(!o||o===this.tempLocationKey)){const u=s(c);return u.state.key=l.state.key,u.state.__TSR_key=l.state.__TSR_key,delete u.state.__tempLocation,{...u,maskedLocation:l}}return l},this.resolvePathWithBase=(n,i)=>iM({base:n,to:Dv(i),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>OM({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(l=>l.status==="pending"),i=this.state.matches.filter(l=>l.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...i]).forEach(l=>{this.cancelMatch(l.id)})},this.buildLocation=n=>{const i=(l={})=>{const c=l._fromLocation||this.pendingBuiltLocation||this.latestLocation,o=this.matchRoutesLightweight(c);l.from;const u=l.unsafeRelative==="path"?c.pathname:l.from??o.fullPath,d=this.resolvePathWithBase(u,"."),p=o.search,f={...o.params},m=l.to?this.resolvePathWithBase(d,`${l.to}`):this.resolvePathWithBase(d,"."),b=l.params===!1||l.params===null?{}:(l.params??!0)===!0?f:Object.assign(f,Ci(l.params,f)),w=gp({path:m,params:b,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,E=this.getMatchedRoutes(w);let v=E.matchedRoutes;(E.foundRoute?E.foundRoute.path!=="/"&&E.routeParams["**"]:Gr(w))&&this.options.notFoundRoute&&(v=[...v,this.options.notFoundRoute]);let S=!1;if(Object.keys(b).length>0)for(const B of v){const V=B.options.params?.stringify??B.options.stringifyParams;V&&(S=!0,Object.assign(b,V(b)))}const _=n.leaveParams?m:dp(S?gp({path:m,params:b,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:w);let C=p;if(n._includeValidateSearch&&this.options.search?.strict){const B={};v.forEach(V=>{if(V.options.validateSearch)try{Object.assign(B,ju(V.options.validateSearch,{...B,...C}))}catch{}}),C=B}C=DM({search:C,dest:l,destRoutes:v,_includeValidateSearch:n._includeValidateSearch}),C=Zn(p,C);const N=this.options.stringifySearch(C),T=l.hash===!0?c.hash:l.hash?Ci(l.hash,c.hash):void 0,O=T?`#${T}`:"";let A=l.state===!0?c.state:l.state?Ci(l.state,c.state):{};A=Zn(c.state,A);const D=`${_}${N}${O}`;let L,I,H=!1;if(this.rewrite){const B=new URL(D,this.origin),V=cO(this.rewrite,B);L=B.href.replace(B.origin,""),V.origin!==this.origin?(I=V.href,H=!0):I=V.pathname+V.search+V.hash}else L=G4(D),I=L;return{publicHref:I,href:L,pathname:_,search:C,searchStr:N,state:A,hash:T??"",external:H,unmaskOnReload:l.unmaskOnReload}},s=(l={},c)=>{const o=i(l);let u=c?i(c):void 0;if(!u){const d={};if(this.options.routeMasks){const p=Y4(o.pathname,this.processedTree);if(p){Object.assign(d,p.rawParams);const{from:f,params:m,...b}=p.route,w=m===!1||m===null?{}:(m??!0)===!0?d:Object.assign(d,Ci(m,d));c={from:n.from,...b,params:w},u=i(c)}}}return u&&(o.maskedLocation=u),o};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:i,...s})=>{const l=()=>{const u=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];u.forEach(p=>{s.state[p]=this.latestLocation.state[p]});const d=la(s.state,this.latestLocation.state);return u.forEach(p=>{delete s.state[p]}),d},c=Gr(this.latestLocation.href)===Gr(s.href),o=this.commitLocationPromise;if(this.commitLocationPromise=vs(()=>{o?.resolve()}),c&&l())this.load();else{let{maskedLocation:u,hashScrollIntoView:d,...p}=s;u&&(p={...u,state:{...u.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=d??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,...u}={})=>{if(o){const f=this.history.location.state.__TSR_index,m=Ju(o,{__TSR_index:n?f:f+1}),b=new URL(m.pathname,this.origin),w=Gy(this.rewrite,b);u.to=w.pathname,u.search=this.options.parseSearch(m.search),u.hash=m.hash.slice(1)}const d=this.buildLocation({...u,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const p=this.commitLocation({...d,viewTransition:l,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:i,href:s,publicHref:l,...c})=>{let o=!1;if(s)try{new URL(`${s}`),o=!0}catch{}if(o&&!i&&(i=!0),i){if(n!==void 0||!s){const d=this.buildLocation({to:n,...c});s=s??d.publicHref,l=l??d.publicHref}const u=!o&&l?l:s;if(tc(u))return Promise.resolve();if(!c.ignoreBlocker){const p=this.history.getBlockers?.()??[];for(const f of p)if(f?.blockerFn&&await f.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return c.replace?window.location.replace(u):window.location.href=u,Promise.resolve()}return this.buildAndCommitLocation({...c,href:s,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();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 u=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...ua({resolvedLocation:d,location:u})}),this.emit({type:"onBeforeLoad",...ua({resolvedLocation:d,location:u})}),await e2({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:u,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let p=[],f=[],m=[];Lo(()=>{this.__store.setState(b=>{const w=b.matches,E=b.pendingMatches||b.matches;return p=w.filter(v=>!E.some(x=>x.id===v.id)),f=E.filter(v=>!w.some(x=>x.id===v.id)),m=E.filter(v=>w.some(x=>x.id===v.id)),{...b,isLoading:!1,loadedAt:Date.now(),matches:E,pendingMatches:void 0,cachedMatches:[...b.cachedMatches,...p.filter(v=>v.status!=="error"&&v.status!=="notFound")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[f,"onEnter"],[m,"onStay"]].forEach(([b,w])=>{b.forEach(E=>{this.looseRoutesById[E.routeId].options[w]?.(E)})})})})}})}catch(u){nr(u)?(i=u,this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):Fn(u)&&(s=u),this.__store.setState(d=>({...d,statusCode:i?i.status:s?404:d.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(ua({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)=>{this.startTransition(()=>{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"||s.status==="notFound"?{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.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const i=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const s=n.options._builtLocation??this.buildLocation(n.options),l=this.getParsedLocationHref(s);n.options.href=l,n.headers.set("Location",l)}else if(i)try{const s=new URL(i);if(this.origin&&s.origin===this.origin){const l=s.pathname+s.search+s.hash;n.options.href=l,n.headers.set("Location",l)}}catch{}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=oO,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)]);Lo(()=>{s.forEach(o=>{c.has(o.id)||this.__store.setState(u=>({...u,cachedMatches:[...u.cachedMatches,o]}))})});try{return s=await e2({router:this,matches:s,location:i,preload:!0,updateMatch:(o,u)=>{l.has(o)?s=s.map(d=>d.id===o?u(d):d):this.updateMatch(o,u)}}),s}catch(o){if(nr(o))return o.options.reloadDocument?void 0:await this.preloadRoute({...o.options,_fromLocation:i});Fn(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,u=X4(l.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,o.pathname,this.processedTree);return!u||n.params&&!la(u.rawParams,n.params,{partial:!0})?!1:i?.includeSearch??!0?la(o.search,l.search,{partial:!0})?u.rawParams:!1:u.rawParams},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??yM,parseSearch:t.parseSearch??bM}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:i}){this.routesById=t,this.routesByPath=n,this.processedTree=i;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const i=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParams:l,parsedParams:c}=i;let{matchedRoutes:o}=i,u=!1;(s?s.path!=="/"&&l["**"]:Gr(t.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:u=!0);const d=u?LM(this.options.notFoundMode,o):void 0,p=[],f=m=>m?.id?m.context??this.options.context??void 0:this.options.context??void 0;return o.forEach((m,b)=>{const w=p[b-1],[E,v,x]=(()=>{const V=w?.search??t.search,K=w?._strictSearch??void 0;try{const W=ju(m.options.validateSearch,{...V})??void 0;return[{...V,...W},{...K,...W},void 0]}catch(W){let Z=W;if(W instanceof ac||(Z=new ac(W.message,{cause:W})),n?.throwOnError)throw Z;return[V,{},Z]}})(),S=m.options.loaderDeps?.({search:E})??"",_=S?JSON.stringify(S):"",{interpolatedPath:C,usedParams:N}=gp({path:m.fullPath,params:l,decoder:this.pathParamsDecoder,server:this.isServer}),T=m.id+C+_,O=this.getMatch(T),A=this.state.matches.find(V=>V.routeId===m.id),D=O?._strictParams??N;let L;if(!O)try{t2(m,N,c,D)}catch(V){if(Fn(V)||nr(V)?L=V:L=new AM(V.message,{cause:V}),n?.throwOnError)throw L}Object.assign(l,D);const I=A?"stay":"enter";let H;if(O)H={...O,cause:I,params:A?Zn(A.params,l):l,_strictParams:D,search:Zn(A?A.search:O.search,E),_strictSearch:v};else{const V=m.options.loader||m.options.beforeLoad||m.lazyFn||lO(m)?"pending":"success";H={id:T,ssr:m.options.ssr,index:b,routeId:m.id,params:A?Zn(A.params,l):l,_strictParams:D,pathname:C,updatedAt:Date.now(),search:A?Zn(A.search,E):E,_strictSearch:v,searchError:void 0,status:V,isFetching:!1,error:void 0,paramsError:L,__routeContext:void 0,_nonReactive:{loadPromise:vs()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:I,loaderDeps:A?Zn(A.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}n?.preload||(H.globalNotFound=d===m.id),H.searchError=x;const B=f(w);H.context={...B,...H.__routeContext,...H.__beforeLoadContext},p.push(H)}),p.forEach((m,b)=>{const w=this.looseRoutesById[m.routeId];if(!this.getMatch(m.id)){const v=p[b-1],x=f(v);if(w.options.context){const S={deps:m.loaderDeps,params:m.params,context:x??{},location:t,navigate:_=>this.navigate({..._,_fromLocation:t}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:p};m.__routeContext=w.options.context(S)??void 0}m.context={...x,...m.__routeContext,...m.__beforeLoadContext}}}),p}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:i,parsedParams:s}=this.getMatchedRoutes(t.pathname),l=Po(n),c={...t.search};for(const p of n)try{Object.assign(c,ju(p.options.validateSearch,c))}catch{}const o=Po(this.state.matches),u=o&&o.routeId===l.id&&t.pathname===this.state.location.pathname;let d;if(u)d=o.params;else{const p={...i};for(const f of n)try{t2(f,i,s??{},p)}catch{}d=p}return{matchedRoutes:n,fullPath:l.fullPath,search:c,params:d}}}class ac extends Error{}class AM extends Error{}function NM(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function ju(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new ac("Async validation not supported");if(n.issues)throw new ac(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 OM({pathname:e,routesById:t,processedTree:n}){const i={},s=Gr(e);let l,c;const o=Z4(s,n,!0);return o&&(l=o.route,Object.assign(i,o.rawParams),c=Object.assign({},o.parsedParams)),{matchedRoutes:o?.branch||[t[Jn]],routeParams:i,foundRoute:l,parsedParams:c}}function DM({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){return IM(n)(e,t,i??!1)}function IM(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const s of e){if("search"in s.options)s.options.search?.middlewares&&t.middlewares.push(...s.options.search.middlewares);else if(s.options.preSearchFilters||s.options.postSearchFilters){const l=({search:c,next:o})=>{let u=c;"preSearchFilters"in s.options&&s.options.preSearchFilters&&(u=s.options.preSearchFilters.reduce((p,f)=>f(p),c));const d=o(u);return"postSearchFilters"in s.options&&s.options.postSearchFilters?s.options.postSearchFilters.reduce((p,f)=>f(p),d):d};t.middlewares.push(l)}if(s.options.validateSearch){const l=({search:c,next:o})=>{const u=o(c);if(!t._includeValidateSearch)return u;try{return{...u,...ju(s.options.validateSearch,u)??void 0}}catch{return u}};t.middlewares.push(l)}}const n=({search:s})=>{const l=t.dest;return l.search?l.search===!0?s:Ci(l.search,s):{}};t.middlewares.push(n);const i=(s,l,c)=>{if(s>=c.length)return l;const o=c[s];return o({search:l,next:d=>i(s+1,d,c)})};return function(l,c,o){return t.dest=c,t._includeValidateSearch=o,i(0,l,t.middlewares)}}function LM(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.children)return i.id}return Jn}function t2(e,t,n,i){const s=e.options.params?.parse??e.options.parseParams;if(s)if(e.options.skipRouteOnParseError)for(const l in t)l in n&&(i[l]=n[l]);else{const l=s(i);Object.assign(i,l)}}const MM="Error preloading route! ☝️";class dO{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=Jn:this.parentRoute||Wr(!1);let l=s?Jn:i?.path;l&&l!=="/"&&(l=eO(l));const c=i?.id||l;let o=s?Jn:Bu([this.parentRoute.id===Jn?"":this.parentRoute.id,c]);l===Jn&&(l="/"),o!==Jn&&(o=Bu(["/",o]));const u=o===Jn?"/":Bu([this.parentRoute.fullPath,l]);this._path=l,this._id=o,this._fullPath=u,this._to=Gr(u)},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.redirect=n=>nO({from:this.fullPath,...n}),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 BM extends dO{constructor(t){super(t)}}const Cu=typeof window<"u"?q.useLayoutEffect:q.useEffect;function yp(e){const t=q.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function FM(e,t,n={},i={}){q.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([l])=>{t(l)},n);return s.observe(e.current),()=>{s.disconnect()}},[t,n,i.disabled,e])}function jM(e){const t=q.useRef(null);return q.useImperativeHandle(e,()=>t.current,[]),t}function Iv(e){const t=e.errorComponent??Lv;return y.jsx(PM,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?q.createElement(t,{error:n,reset:i}):e.children})}class PM extends q.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 Lv({error:e}){const[t,n]=q.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.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"})]}),y.jsx("div",{style:{height:".25rem"}}),t?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?y.jsx("code",{children:e.message}):null})}):null]})}function UM({children:e,fallback:t=null}){return hO()?y.jsx(Xe.Fragment,{children:e}):y.jsx(Xe.Fragment,{children:t})}function hO(){return Xe.useSyncExternalStore(HM,()=>!0,()=>!1)}function HM(){return()=>{}}var vp={exports:{}},_p={},Sp={exports:{}},xp={};var n2;function zM(){if(n2)return xp;n2=1;var e=Yo();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function o(f,m){var b=m(),w=i({inst:{value:b,getSnapshot:m}}),E=w[0].inst,v=w[1];return l(function(){E.value=b,E.getSnapshot=m,u(E)&&v({inst:E})},[f,b,m]),s(function(){return u(E)&&v({inst:E}),f(function(){u(E)&&v({inst:E})})},[f]),c(b),b}function u(f){var m=f.getSnapshot;f=f.value;try{var b=m();return!n(f,b)}catch{return!0}}function d(f,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:o;return xp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,xp}var r2;function qM(){return r2||(r2=1,Sp.exports=zM()),Sp.exports}var i2;function $M(){if(i2)return _p;i2=1;var e=Yo(),t=qM();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,l=e.useRef,c=e.useEffect,o=e.useMemo,u=e.useDebugValue;return _p.useSyncExternalStoreWithSelector=function(d,p,f,m,b){var w=l(null);if(w.current===null){var E={hasValue:!1,value:null};w.current=E}else E=w.current;w=o(function(){function x(T){if(!S){if(S=!0,_=T,T=m(T),b!==void 0&&E.hasValue){var O=E.value;if(b(O,T))return C=O}return C=T}if(O=C,i(_,T))return O;var A=m(T);return b!==void 0&&b(O,A)?(_=T,O):(_=T,C=A)}var S=!1,_,C,N=f===void 0?null:f;return[function(){return x(p())},N===null?void 0:function(){return x(N())}]},[p,f,m,b]);var v=s(d,w[0],w[1]);return c(function(){E.hasValue=!0,E.value=v},[v]),u(v),v},_p}var a2;function GM(){return a2||(a2=1,vp.exports=$M()),vp.exports}var WM=GM();function VM(e,t=i=>i,n={}){const i=n.equal??KM;return WM.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,i)}function KM(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!t.has(i)||!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=s2(e);if(n.length!==s2(t).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Object.is(e[n[i]],t[n[i]]))return!1;return!0}function s2(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const Ep=q.createContext(null);function pO(){return typeof document>"u"?Ep:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Ep,Ep)}function sr(e){const t=q.useContext(pO());return e?.warn,t}function Sn(e){const t=sr({warn:e?.router===void 0}),n=e?.router||t,i=q.useRef(void 0);return VM(n.__store,s=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const l=Zn(i.current,e.select(s));return i.current=l,l}return e.select(s)}return s})}const vc=q.createContext(void 0),YM=q.createContext(void 0);function Er(e){const t=q.useContext(e.from?YM:vc);return Sn({select:i=>{const s=i.matches.find(l=>e.from?e.from===l.routeId:l.id===t);if(Wr(!((e.shouldThrow??!0)&&!s),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),s!==void 0)return e.select?e.select(s):s},structuralSharing:e.structuralSharing})}function Mv(e){return Er({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Bv(e){const{select:t,...n}=e;return Er({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Fv(e){return Er({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function jv(e){return Er({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function _c(e){const t=sr();return q.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var XM=jN();function ZM(e,t){const n=sr(),i=jM(t),{activeProps:s,inactiveProps:l,activeOptions:c,to:o,preload:u,preloadDelay:d,hashScrollIntoView:p,replace:f,startTransition:m,resetScroll:b,viewTransition:w,children:E,target:v,disabled:x,style:S,className:_,onClick:C,onFocus:N,onMouseEnter:T,onMouseLeave:O,onTouchStart:A,ignoreBlocker:D,params:L,search:I,hash:H,state:B,mask:V,reloadDocument:K,unsafeRelative:W,from:Z,_fromLocation:Q,...P}=e,M=hO(),j=Sn({select:re=>re.location.search,structuralSharing:!0}),$=e.from,U=q.useMemo(()=>({...e,from:$}),[n,j,$,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),J=q.useMemo(()=>n.buildLocation({...U}),[n,U]),oe=J.maskedLocation?J.maskedLocation.publicHref:J.publicHref,de=J.maskedLocation?J.maskedLocation.external:J.external,Y=q.useMemo(()=>r6(oe,de,n.history,x),[x,de,oe,n.history]),z=q.useMemo(()=>{if(Y?.external)return tc(Y.href)?void 0:Y.href;if(!i6(o)&&!(typeof o!="string"||o.indexOf(":")===-1))try{return new URL(o),tc(o)?void 0:o}catch{}},[o,Y]),te=Sn({select:re=>{if(z)return!1;if(c?.exact){if(!rM(re.location.pathname,J.pathname,n.basepath))return!1}else{const pe=rc(re.location.pathname,n.basepath),ye=rc(J.pathname,n.basepath);if(!(pe.startsWith(ye)&&(pe.length===ye.length||pe[ye.length]==="/")))return!1}return(c?.includeSearch??!0)&&!la(re.location.search,J.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?M&&re.location.hash===J.hash:!0}}),ce=te?Ci(s,{})??QM:wp,ge=te?wp:Ci(l,{})??wp,be=[_,ce.className,ge.className].filter(Boolean).join(" "),we=(S||ce.style||ge.style)&&{...S,...ce.style,...ge.style},[ze,je]=q.useState(!1),qe=q.useRef(!1),xe=e.reloadDocument||z?!1:u??n.options.defaultPreload,_e=d??n.options.defaultPreloadDelay??0,Le=q.useCallback(()=>{n.preloadRoute({...U}).catch(re=>{console.warn(re),console.warn(MM)})},[n,U]),et=q.useCallback(re=>{re?.isIntersecting&&Le()},[Le]);FM(i,et,n6,{disabled:!!x||xe!=="viewport"}),q.useEffect(()=>{qe.current||!x&&xe==="render"&&(Le(),qe.current=!0)},[x,Le,xe]);const At=re=>{const pe=re.currentTarget.getAttribute("target"),ye=v!==void 0?v:pe;if(!x&&!a6(re)&&!re.defaultPrevented&&(!ye||ye==="_self")&&re.button===0){re.preventDefault(),XM.flushSync(()=>{je(!0)});const ke=n.subscribe("onResolved",()=>{ke(),je(!1)});n.navigate({...U,replace:f,resetScroll:b,hashScrollIntoView:p,startTransition:m,viewTransition:w,ignoreBlocker:D})}};if(z)return{...P,ref:i,href:z,...E&&{children:E},...v&&{target:v},...x&&{disabled:x},...S&&{style:S},..._&&{className:_},...C&&{onClick:C},...N&&{onFocus:N},...T&&{onMouseEnter:T},...O&&{onMouseLeave:O},...A&&{onTouchStart:A}};const mt=re=>{x||xe&&Le()},nt=mt,Ie=re=>{if(!(x||!xe))if(!_e)Le();else{const pe=re.target;if(Co.has(pe))return;const ye=setTimeout(()=>{Co.delete(pe),Le()},_e);Co.set(pe,ye)}},tt=re=>{if(x||!xe||!_e)return;const pe=re.target,ye=Co.get(pe);ye&&(clearTimeout(ye),Co.delete(pe))};return{...P,...ce,...ge,href:Y?.href,ref:i,onClick:ko([C,At]),onFocus:ko([N,mt]),onMouseEnter:ko([T,Ie]),onMouseLeave:ko([O,tt]),onTouchStart:ko([A,nt]),disabled:!!x,target:v,...we&&{style:we},...be&&{className:be},...x&&JM,...te&&e6,...M&&ze&&t6}}const wp={},QM={className:"active"},JM={role:"link","aria-disabled":!0},e6={"data-status":"active","aria-current":"page"},t6={"data-transitioning":"transitioning"},Co=new WeakMap,n6={rootMargin:"100px"},ko=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function r6(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function i6(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}const fO=q.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,...l}=ZM(i,t),c=typeof i.children=="function"?i.children({isActive:l["data-status"]==="active"}):i.children;if(!n){const{disabled:o,...u}=l;return q.createElement("a",u,c)}return q.createElement(n,l,c)});function a6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let s6=class extends dO{constructor(t){super(t),this.useMatch=n=>Er({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Er({...n,from:this.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>jv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Fv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Bv({...n,from:this.id}),this.useLoaderData=n=>Mv({...n,from:this.id}),this.useNavigate=()=>_c({from:this.fullPath}),this.Link=Xe.forwardRef((n,i)=>y.jsx(fO,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function o6(e){return new s6(e)}class l6 extends BM{constructor(t){super(t),this.useMatch=n=>Er({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Er({...n,from:this.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>jv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Fv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Bv({...n,from:this.id}),this.useLoaderData=n=>Mv({...n,from:this.id}),this.useNavigate=()=>_c({from:this.fullPath}),this.Link=Xe.forwardRef((n,i)=>y.jsx(fO,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function u6(e){return new l6(e)}function Ho(e){return typeof e=="object"?new o2(e,{silent:!0}).createRoute(e):new o2(e,{silent:!0}).createRoute}class o2{constructor(t,n){this.path=t,this.createRoute=i=>{this.silent;const s=o6(i);return s.isRoot=!1,s},this.silent=n?.silent}}class l2{constructor(t){this.useMatch=n=>Er({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Er({from:this.options.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>jv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>Fv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>Bv({...n,from:this.options.id}),this.useLoaderData=n=>Mv({...n,from:this.options.id}),this.useNavigate=()=>{const n=sr();return _c({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function u2(e){return typeof e=="object"?new l2(e):t=>new l2({id:e,...t})}function c6(){const e=sr(),t=q.useRef({router:e,mounted:!1}),[n,i]=q.useState(!1),{hasPendingMatches:s,isLoading:l}=Sn({select:f=>({isLoading:f.isLoading,hasPendingMatches:f.matches.some(m=>m.status==="pending")}),structuralSharing:!0}),c=yp(l),o=l||n||s,u=yp(o),d=l||s,p=yp(d);return e.startTransition=f=>{i(!0),q.startTransition(()=>{f(),i(!1)})},q.useEffect(()=>{const f=e.history.subscribe(e.load),m=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Gr(e.latestLocation.publicHref)!==Gr(m.publicHref)&&e.commitLocation({...m,replace:!0}),()=>{f()}},[e,e.history]),Cu(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(m){console.error(m)}})()},[e]),Cu(()=>{c&&!l&&e.emit({type:"onLoad",...ua(e.state)})},[c,e,l]),Cu(()=>{p&&!d&&e.emit({type:"onBeforeRouteMount",...ua(e.state)})},[d,p,e]),Cu(()=>{if(u&&!o){const f=ua(e.state);e.emit({type:"onResolved",...f}),e.__store.setState(m=>({...m,status:"idle",resolvedLocation:m.location})),f.hrefChanged&&fM(e)}},[o,u,e]),null}function d6(e){const t=Sn({select:n=>`not-found-${n.location.pathname}-${n.status}`});return y.jsx(Iv,{getResetKey:()=>t,onCatch:(n,i)=>{if(Fn(n))e.onCatch?.(n,i);else throw n},errorComponent:({error:n})=>{if(Fn(n))return e.fallback?.(n);throw n},children:e.children})}function h6(){return y.jsx("p",{children:"Not Found"})}function hs(e){return y.jsx(y.Fragment,{children:e.children})}function mO(e,t,n){return t.options.notFoundComponent?y.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?y.jsx(e.options.defaultNotFoundComponent,{...n}):y.jsx(h6,{})}function p6(){return sr().isScrollRestoring,null}const gO=q.memo(function({matchId:t}){const n=sr(),i=Sn({select:x=>{const S=x.matches.find(_=>_.id===t);return Wr(S),{routeId:S.routeId,ssr:S.ssr,_displayPending:S._displayPending}},structuralSharing:!0}),s=n.routesById[i.routeId],l=s.options.pendingComponent??n.options.defaultPendingComponent,c=l?y.jsx(l,{}):null,o=s.options.errorComponent??n.options.defaultErrorComponent,u=s.options.onCatch??n.options.defaultOnCatch,d=s.isRoot?s.options.notFoundComponent??n.options.notFoundRoute?.options.component:s.options.notFoundComponent,p=i.ssr===!1||i.ssr==="data-only",f=(!s.isRoot||s.options.wrapInSuspense||p)&&(s.options.wrapInSuspense??l??(s.options.errorComponent?.preload||p))?q.Suspense:hs,m=o?Iv:hs,b=d?d6:hs,w=Sn({select:x=>x.loadedAt}),E=Sn({select:x=>{const S=x.matches.findIndex(_=>_.id===t);return x.matches[S-1]?.routeId}}),v=s.isRoot?s.options.shellComponent??hs:hs;return y.jsxs(v,{children:[y.jsx(vc.Provider,{value:t,children:y.jsx(f,{fallback:c,children:y.jsx(m,{getResetKey:()=>w,errorComponent:o||Lv,onCatch:(x,S)=>{if(Fn(x))throw x;u?.(x,S)},children:y.jsx(b,{fallback:x=>{if(!d||x.routeId&&x.routeId!==i.routeId||!x.routeId&&!s.isRoot)throw x;return q.createElement(d,x)},children:p||i._displayPending?y.jsx(UM,{fallback:c,children:y.jsx(c2,{matchId:t})}):y.jsx(c2,{matchId:t})})})})}),E===Jn&&n.options.scrollRestoration?y.jsxs(y.Fragment,{children:[y.jsx(f6,{}),y.jsx(p6,{})]}):null]})});function f6(){const e=sr(),t=q.useRef(void 0);return y.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...ua(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const c2=q.memo(function({matchId:t}){const n=sr(),{match:i,key:s,routeId:l}=Sn({select:u=>{const d=u.matches.find(w=>w.id===t),p=d.routeId,m=(n.routesById[p].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:p,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:m?JSON.stringify(m):void 0,routeId:p,match:{id:d.id,status:d.status,error:d.error,invalid:d.invalid,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),c=n.routesById[l],o=q.useMemo(()=>{const u=c.options.component??n.options.defaultComponent;return u?y.jsx(u,{},s):y.jsx(bO,{})},[s,c.options.component,n.options.defaultComponent]);if(i._displayPending)throw n.getMatch(i.id)?._nonReactive.displayPendingPromise;if(i._forcePending)throw n.getMatch(i.id)?._nonReactive.minPendingPromise;if(i.status==="pending"){const u=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(u){const d=n.getMatch(i.id);if(d&&!d._nonReactive.minPendingPromise){const p=vs();d._nonReactive.minPendingPromise=p,setTimeout(()=>{p.resolve(),d._nonReactive.minPendingPromise=void 0},u)}}throw n.getMatch(i.id)?._nonReactive.loadPromise}if(i.status==="notFound")return Wr(Fn(i.error)),mO(n,c,i.error);if(i.status==="redirected")throw Wr(nr(i.error)),n.getMatch(i.id)?._nonReactive.loadPromise;if(i.status==="error")throw i.error;return o}),bO=q.memo(function(){const t=sr(),n=q.useContext(vc),i=Sn({select:d=>d.matches.find(p=>p.id===n)?.routeId}),s=t.routesById[i],l=Sn({select:d=>{const f=d.matches.find(m=>m.id===n);return Wr(f),f.globalNotFound}}),c=Sn({select:d=>{const p=d.matches,f=p.findIndex(m=>m.id===n);return p[f+1]?.id}}),o=t.options.defaultPendingComponent?y.jsx(t.options.defaultPendingComponent,{}):null;if(l)return mO(t,s,void 0);if(!c)return null;const u=y.jsx(gO,{matchId:c});return i===Jn?y.jsx(q.Suspense,{fallback:o,children:u}):u});function m6(){const e=sr(),n=e.routesById[Jn].options.pendingComponent??e.options.defaultPendingComponent,i=n?y.jsx(n,{}):null,s=typeof document<"u"&&e.ssr?hs:q.Suspense,l=y.jsxs(s,{fallback:i,children:[y.jsx(c6,{}),y.jsx(g6,{})]});return e.options.InnerWrap?y.jsx(e.options.InnerWrap,{children:l}):l}function g6(){const e=sr(),t=Sn({select:s=>s.matches[0]?.id}),n=Sn({select:s=>s.loadedAt}),i=t?y.jsx(gO,{matchId:t}):null;return y.jsx(vc.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:y.jsx(Iv,{getResetKey:()=>n,errorComponent:Lv,onCatch:s=>{s.message||s.toString()},children:i})})}const b6=e=>new y6(e);class y6 extends RM{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=Ho,globalThis.createLazyFileRoute=u2):typeof window<"u"&&(window.createFileRoute=Ho,window.createLazyFileRoute=u2);function v6({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=pO(),s=y.jsx(i.Provider,{value:e,children:t});return e.options.Wrap?y.jsx(e.options.Wrap,{children:s}):s}function _6({router:e,...t}){return y.jsx(v6,{router:e,...t,children:y.jsx(m6,{})})}const Sc=u6({component:S6});function S6(){return y.jsxs(y.Fragment,{children:[y.jsx(bO,{}),null]})}const x6=Ho("/")({beforeLoad:()=>{throw nO({to:"/sessions"})},component:()=>null}),st=q.forwardRef(({className:e="",variant:t="primary",size:n="md",...i},s)=>{const l="inline-flex items-center justify-center rounded font-medium transition-colors focus-visible:outline-none disabled:opacity-50 disabled:cursor-not-allowed",c={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/80 border border-border",ghost:"text-muted-foreground hover:text-foreground hover:bg-muted/50"},o={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base",icon:"w-10 h-10 p-0"};return y.jsx("button",{ref:s,className:`${l} ${c[t]} ${o[n]} ${e}`,...i})});st.displayName="Button";const E6=q.forwardRef(({className:e="",children:t,...n},i)=>y.jsx("div",{ref:i,className:`bg-card text-card-foreground border border-border rounded-lg ${e}`,...n,children:t}));E6.displayName="Card";const w6=q.forwardRef(({className:e="",...t},n)=>y.jsx("input",{ref:n,className:`w-full px-3 py-2 bg-muted border border-border rounded text-foreground placeholder-muted-foreground outline-none ${e}`,...t}));w6.displayName="Input";const xc=q.forwardRef(({className:e="",...t},n)=>y.jsx("textarea",{ref:n,className:`w-full px-3 py-2 bg-muted border border-border rounded text-foreground placeholder-muted-foreground outline-none resize-none ${e}`,...t}));xc.displayName="Textarea";const d2=e=>{let t;const n=new Set,i=(d,p)=>{const f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){const m=t;t=p??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(b=>b(t,m))}},s=()=>t,o={setState:i,getState:s,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d))},u=t=e(i,s,o);return o},C6=(e=>e?d2(e):d2),k6=e=>e;function T6(e,t=k6){const n=Xe.useSyncExternalStore(e.subscribe,Xe.useCallback(()=>t(e.getState()),[e,t]),Xe.useCallback(()=>t(e.getInitialState()),[e,t]));return Xe.useDebugValue(n),n}const h2=e=>{const t=C6(e),n=i=>T6(t,i);return Object.assign(n,t),n},or=(e=>e?h2(e):h2),Pv=or(e=>({isOpen:!1,title:"Confirm Action",message:"",confirmLabel:"Confirm",cancelLabel:"Cancel",variant:"default",onConfirm:()=>{},onCancel:void 0,openConfirmation:t=>e({isOpen:!0,title:t.title||"Confirm Action",message:t.message,confirmLabel:t.confirmLabel||"Confirm",cancelLabel:t.cancelLabel||"Cancel",variant:t.variant||"default",onConfirm:t.onConfirm,onCancel:t.onCancel}),closeConfirmation:()=>e({isOpen:!1,onConfirm:()=>{},onCancel:void 0})}));const R6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),A6=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),p2=e=>{const t=A6(e);return t.charAt(0).toUpperCase()+t.slice(1)},yO=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),N6=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var O6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const D6=q.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...o},u)=>q.createElement("svg",{ref:u,...O6,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:yO("lucide",s),...!l&&!N6(o)&&{"aria-hidden":"true"},...o},[...c.map(([d,p])=>q.createElement(d,p)),...Array.isArray(l)?l:[l]]));const Se=(e,t)=>{const n=q.forwardRef(({className:i,...s},l)=>q.createElement(D6,{ref:l,iconNode:t,className:yO(`lucide-${R6(p2(e))}`,`lucide-${e}`,i),...s}));return n.displayName=p2(e),n};const I6=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],L6=Se("arrow-down-to-line",I6);const M6=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],B6=Se("arrow-down",M6);const F6=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],j6=Se("arrow-left",F6);const P6=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],U6=Se("arrow-right",P6);const H6=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],vO=Se("arrow-up-right",H6);const z6=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],_O=Se("arrow-up",z6);const q6=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],$6=Se("bot",q6);const G6=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],W6=Se("braces",G6);const V6=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Uv=Se("brain",V6);const K6=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ma=Se("check",K6);const Y6=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],xa=Se("chevron-down",Y6);const X6=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Z6=Se("chevron-left",X6);const Q6=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],en=Se("chevron-right",Q6);const J6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Yr=Se("circle-alert",J6);const eB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],tB=Se("circle-check",eB);const nB=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],rB=Se("circle-check-big",nB);const iB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],SO=Se("circle-stop",iB);const aB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],xO=Se("circle-x",aB);const sB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],oB=Se("circle",sB);const lB=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],EO=Se("clock",lB);const uB=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],cB=Se("code",uB);const dB=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],f2=Se("command",dB);const hB=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],wO=Se("copy",hB);const pB=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],fB=Se("credit-card",pB);const mB=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],gB=Se("cpu",mB);const bB=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],yB=Se("database",bB);const vB=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],m2=Se("diff",vB);const _B=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],CO=Se("dollar-sign",_B);const SB=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],xB=Se("ellipsis-vertical",SB);const EB=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Di=Se("external-link",EB);const wB=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],kO=Se("file-code",wB);const CB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],kB=Se("file-json",CB);const TB=[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],ga=Se("file-pen",TB);const RB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],TO=Se("file-plus",RB);const AB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ec=Se("file-text",AB);const NB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 13v-1h6v1",key:"1bb014"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M11 18h2",key:"12mj7e"}]],OB=Se("file-type",NB);const DB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],IB=Se("file-x",DB);const LB=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Oi=Se("file",LB);const MB=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],zo=Se("flask-conical",MB);const BB=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],FB=Se("folder-open",BB);const jB=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],RO=Se("folder-tree",jB);const PB=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],UB=Se("folder",PB);const HB=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],zB=Se("funnel",HB);const qB=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Pn=Se("git-branch",qB);const $B=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],sc=Se("git-commit-horizontal",$B);const GB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],WB=Se("globe",GB);const VB=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],AO=Se("hash",VB);const KB=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],YB=Se("history",KB);const XB=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],NO=Se("image",XB);const ZB=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],OO=Se("keyboard",ZB);const QB=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],JB=Se("link-2",QB);const eF=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],tF=Se("link",eF);const nF=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],rF=Se("list",nF);const iF=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ti=Se("loader-circle",iF);const aF=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],DO=Se("message-square",aF);const sF=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],oF=Se("minimize-2",sF);const lF=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],uF=Se("octagon-x",lF);const cF=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],g2=Se("pencil",cF);const dF=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],qo=Se("plus",dF);const hF=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],wc=Se("refresh-cw",hF);const pF=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],IO=Se("rotate-ccw",pF);const fF=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xo=Se("search",fF);const mF=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],LO=Se("settings",mF);const gF=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],$o=Se("sparkles",gF);const bF=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],yF=Se("split",bF);const vF=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],_F=Se("square-check-big",vF);const SF=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ba=Se("terminal",SF);const xF=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],MO=Se("trash-2",xF);const EF=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],wF=Se("upload",EF);const CF=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Hv=Se("user",CF);const kF=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],TF=Se("wallet",kF);const RF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rr=Se("x",RF);const AF=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],NF=Se("zap",AF);function OF(){const{isOpen:e,title:t,message:n,confirmLabel:i,cancelLabel:s,variant:l,onConfirm:c,onCancel:o,closeConfirmation:u}=Pv(),[d,p]=q.useState(!1);q.useEffect(()=>{e||p(!1)},[e]);const f=q.useCallback(async()=>{p(!0);try{await c(),u()}catch(w){console.error("Confirmation action failed:",w),p(!1)}},[c,u]),m=q.useCallback(()=>{o?.(),u()},[o,u]),b=w=>{w.target===w.currentTarget&&!d&&m()};return q.useEffect(()=>{const w=E=>{if(e&&!d){const v=E.target,x=v.tagName==="INPUT"||v.tagName==="TEXTAREA"||v.isContentEditable;(E.key==="Escape"||E.key==="q"&&!x)&&(E.preventDefault(),m()),E.key==="Enter"&&(E.preventDefault(),f())}};if(e)return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[e,d,f,m]),e?y.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",onClick:b,onKeyDown:w=>{const E=w.target,v=E.tagName==="INPUT"||E.tagName==="TEXTAREA"||E.isContentEditable;(w.key==="Escape"||w.key==="q"&&!v)&&!d&&(w.preventDefault(),m())},children:y.jsxs("div",{className:"bg-background border border-border rounded-lg shadow-lg max-w-md w-full mx-4",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[l==="destructive"&&y.jsx(Yr,{className:"w-5 h-5 text-destructive"}),y.jsx("h2",{className:"text-lg font-semibold",children:t})]}),y.jsx("button",{type:"button",onClick:m,disabled:d,className:"p-1 hover:bg-muted rounded transition-colors disabled:opacity-50","aria-label":"Close",children:y.jsx(rr,{className:"w-5 h-5"})})]}),y.jsx("div",{className:"p-4",children:y.jsx("p",{className:"text-muted-foreground",children:n})}),y.jsxs("div",{className:"flex items-center justify-end gap-3 p-4 border-t border-border",children:[y.jsx("button",{type:"button",onClick:m,disabled:d,className:"px-4 py-2 text-sm font-medium rounded transition-colors hover:bg-muted disabled:opacity-50",children:s}),y.jsx("button",{type:"button",onClick:f,disabled:d,className:`px-4 py-2 text-sm font-medium rounded transition-colors disabled:opacity-50 ${l==="destructive"?"bg-destructive text-destructive-foreground hover:bg-destructive/90":"bg-primary text-primary-foreground hover:bg-primary/90"}`,children:d?"Processing...":i})]})]})}):null}let DF=0;const Ii=or(e=>({toasts:[],addToast:t=>{const n=`toast-${++DF}`;return e(i=>({toasts:[...i.toasts,{...t,id:n}]})),n},removeToast:t=>e(n=>({toasts:n.toasts.filter(i=>i.id!==t)})),updateToast:(t,n)=>e(i=>({toasts:i.toasts.map(s=>s.id===t?{...s,...n}:s)})),clearToasts:()=>e({toasts:[]})}));function tr(e,t="default",n=4e3){const i=Ii.getState().addToast({message:e,type:t,duration:n});return n>0&&setTimeout(()=>{Ii.getState().removeToast(i)},n),i}tr.success=(e,t=4e3)=>tr(e,"success",t);tr.error=(e,t=5e3)=>tr(e,"error",t);tr.loading=e=>tr(e,"loading",0);tr.successWithAction=(e,t,n=6e3)=>{const i=Ii.getState().addToast({message:e,type:"success",duration:n,action:t});return n>0&&setTimeout(()=>{Ii.getState().removeToast(i)},n),i};const IF={default:y.jsx(fB,{className:"h-4 w-4"}),success:y.jsx(rB,{className:"h-4 w-4 text-green-500"}),error:y.jsx(xO,{className:"h-4 w-4 text-red-500"}),loading:y.jsx(Ti,{className:"h-4 w-4 animate-spin"})};function LF({toast:e}){const[t,n]=q.useState(!1),i=Ii(l=>l.removeToast);q.useEffect(()=>{requestAnimationFrame(()=>n(!0))},[]);const s=()=>{n(!1),setTimeout(()=>i(e.id),150)};return y.jsxs("div",{className:`
10
10
  flex items-center gap-3 px-4 py-3
11
11
  bg-card border border-border rounded-lg shadow-lg
12
12
  transition-all duration-150 ease-out cursor-pointer