From 38eef9e6451604e50fb6f89cb2a3c0dfdd71ba5b Mon Sep 17 00:00:00 2001 From: guoyoudu Date: Wed, 8 Apr 2026 21:46:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20gitignore=20?= =?UTF-8?q?=E5=B9=B6=E7=A7=BB=E9=99=A4=E5=B7=B2=E6=8F=90=E4=BA=A4=E7=9A=84?= =?UTF-8?q?=20dist=20=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/assets/index-DrcP_SDP.js | 4712 -------------------------------- dist/assets/index-qFKgvk67.css | 1 - dist/index.html | 16 - 3 files changed, 4729 deletions(-) delete mode 100644 dist/assets/index-DrcP_SDP.js delete mode 100644 dist/assets/index-qFKgvk67.css delete mode 100644 dist/index.html diff --git a/dist/assets/index-DrcP_SDP.js b/dist/assets/index-DrcP_SDP.js deleted file mode 100644 index 472cc643..00000000 --- a/dist/assets/index-DrcP_SDP.js +++ /dev/null @@ -1,4712 +0,0 @@ -function RW(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var x0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i1={exports:{}},Wf={},a1={exports:{}},ln={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var GR;function jW(){if(GR)return ln;GR=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;function m(W){return W===null||typeof W!="object"?null:(W=f&&W[f]||W["@@iterator"],typeof W=="function"?W:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,y={};function v(W,H,te){this.props=W,this.context=H,this.refs=y,this.updater=te||g}v.prototype.isReactComponent={},v.prototype.setState=function(W,H){if(typeof W!="object"&&typeof W!="function"&&W!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,W,H,"setState")},v.prototype.forceUpdate=function(W){this.updater.enqueueForceUpdate(this,W,"forceUpdate")};function w(){}w.prototype=v.prototype;function _(W,H,te){this.props=W,this.context=H,this.refs=y,this.updater=te||g}var E=_.prototype=new w;E.constructor=_,b(E,v.prototype),E.isPureReactComponent=!0;var M=Array.isArray,T=Object.prototype.hasOwnProperty,A={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function P(W,H,te){var we,Ae={},ne=null,de=null;if(H!=null)for(we in H.ref!==void 0&&(de=H.ref),H.key!==void 0&&(ne=""+H.key),H)T.call(H,we)&&!N.hasOwnProperty(we)&&(Ae[we]=H[we]);var pe=arguments.length-2;if(pe===1)Ae.children=te;else if(1>>1,H=$[W];if(0>>1;Wi(Ae,J))nei(de,Ae)?($[W]=de,$[ne]=J,W=ne):($[W]=Ae,$[we]=J,W=we);else if(nei(de,J))$[W]=de,$[ne]=J,W=ne;else break e}}return Y}function i($,Y){var J=$.sortIndex-Y.sortIndex;return J!==0?J:$.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var c=[],l=[],h=1,f=null,m=3,g=!1,b=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E($){for(var Y=n(l);Y!==null;){if(Y.callback===null)r(l);else if(Y.startTime<=$)r(l),Y.sortIndex=Y.expirationTime,e(c,Y);else break;Y=n(l)}}function M($){if(y=!1,E($),!b)if(n(c)!==null)b=!0,k(T);else{var Y=n(l);Y!==null&&V(M,Y.startTime-$)}}function T($,Y){b=!1,y&&(y=!1,w(P),P=-1),g=!0;var J=m;try{for(E(Y),f=n(c);f!==null&&(!(f.expirationTime>Y)||$&&!D());){var W=f.callback;if(typeof W=="function"){f.callback=null,m=f.priorityLevel;var H=W(f.expirationTime<=Y);Y=t.unstable_now(),typeof H=="function"?f.callback=H:f===n(c)&&r(c),E(Y)}else r(c);f=n(c)}if(f!==null)var te=!0;else{var we=n(l);we!==null&&V(M,we.startTime-Y),te=!1}return te}finally{f=null,m=J,g=!1}}var A=!1,N=null,P=-1,R=5,F=-1;function D(){return!(t.unstable_now()-F$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<$?Math.floor(1e3/$):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function($){switch(m){case 1:case 2:case 3:var Y=3;break;default:Y=m}var J=m;m=Y;try{return $()}finally{m=J}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function($,Y){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var J=m;m=$;try{return Y()}finally{m=J}},t.unstable_scheduleCallback=function($,Y,J){var W=t.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0W?($.sortIndex=J,e(l,$),n(c)===null&&$===n(l)&&(y?(w(P),P=-1):y=!0,V(M,J-W))):($.sortIndex=H,e(c,$),b||g||(b=!0,k(T))),$},t.unstable_shouldYield=D,t.unstable_wrapCallback=function($){var Y=m;return function(){var J=m;m=Y;try{return $.apply(this,arguments)}finally{m=J}}}})(l1)),l1}var YR;function kW(){return YR||(YR=1,o1.exports=DW()),o1.exports}/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ZR;function LW(){if(ZR)return Ti;ZR=1;var t=KA(),e=kW();function n(u){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+u,x=1;x"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,l=/^[: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]*$/,h={},f={};function m(u){return c.call(f,u)?!0:c.call(h,u)?!1:l.test(u)?f[u]=!0:(h[u]=!0,!1)}function g(u,p,x,S){if(x!==null&&x.type===0)return!1;switch(typeof p){case"function":case"symbol":return!0;case"boolean":return S?!1:x!==null?!x.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function b(u,p,x,S){if(p===null||typeof p>"u"||g(u,p,x,S))return!0;if(S)return!1;if(x!==null)switch(x.type){case 3:return!p;case 4:return p===!1;case 5:return isNaN(p);case 6:return isNaN(p)||1>p}return!1}function y(u,p,x,S,C,j,G){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=S,this.attributeNamespace=C,this.mustUseProperty=x,this.propertyName=u,this.type=p,this.sanitizeURL=j,this.removeEmptyString=G}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){v[u]=new y(u,0,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var p=u[0];v[p]=new y(p,1,!1,u[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(u){v[u]=new y(u,2,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){v[u]=new y(u,2,!1,u,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(u){v[u]=new y(u,3,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(u){v[u]=new y(u,3,!0,u,null,!1,!1)}),["capture","download"].forEach(function(u){v[u]=new y(u,4,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(function(u){v[u]=new y(u,6,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(function(u){v[u]=new y(u,5,!1,u.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function _(u){return u[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(u){var p=u.replace(w,_);v[p]=new y(p,1,!1,u,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var p=u.replace(w,_);v[p]=new y(p,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(u){var p=u.replace(w,_);v[p]=new y(p,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(u){v[u]=new y(u,1,!1,u.toLowerCase(),null,!1,!1)}),v.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(u){v[u]=new y(u,1,!1,u.toLowerCase(),null,!0,!0)});function E(u,p,x,S){var C=v.hasOwnProperty(p)?v[p]:null;(C!==null?C.type!==0:S||!(2Q||C[G]!==j[Q]){var se=` -`+C[G].replace(" at new "," at ");return u.displayName&&se.includes("")&&(se=se.replace("",u.displayName)),se}while(1<=G&&0<=Q);break}}}finally{te=!1,Error.prepareStackTrace=x}return(u=u?u.displayName||u.name:"")?H(u):""}function Ae(u){switch(u.tag){case 5:return H(u.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return u=we(u.type,!1),u;case 11:return u=we(u.type.render,!1),u;case 1:return u=we(u.type,!0),u;default:return""}}function ne(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case N:return"Fragment";case A:return"Portal";case R:return"Profiler";case P:return"StrictMode";case q:return"Suspense";case I:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case D:return(u.displayName||"Context")+".Consumer";case F:return(u._context.displayName||"Context")+".Provider";case L:var p=u.render;return u=u.displayName,u||(u=p.displayName||p.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case U:return p=u.displayName||null,p!==null?p:ne(u.type)||"Memo";case k:p=u._payload,u=u._init;try{return ne(u(p))}catch{}}return null}function de(u){var p=u.type;switch(u.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=p.render,u=u.displayName||u.name||"",p.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ne(p);case 8:return p===P?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function pe(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function fe(u){var p=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function ce(u){var p=fe(u)?"checked":"value",x=Object.getOwnPropertyDescriptor(u.constructor.prototype,p),S=""+u[p];if(!u.hasOwnProperty(p)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var C=x.get,j=x.set;return Object.defineProperty(u,p,{configurable:!0,get:function(){return C.call(this)},set:function(G){S=""+G,j.call(this,G)}}),Object.defineProperty(u,p,{enumerable:x.enumerable}),{getValue:function(){return S},setValue:function(G){S=""+G},stopTracking:function(){u._valueTracker=null,delete u[p]}}}}function Ce(u){u._valueTracker||(u._valueTracker=ce(u))}function ye(u){if(!u)return!1;var p=u._valueTracker;if(!p)return!0;var x=p.getValue(),S="";return u&&(S=fe(u)?u.checked?"true":"false":u.value),u=S,u!==x?(p.setValue(u),!0):!1}function Ze(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function tt(u,p){var x=p.checked;return J({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:x??u._wrapperState.initialChecked})}function St(u,p){var x=p.defaultValue==null?"":p.defaultValue,S=p.checked!=null?p.checked:p.defaultChecked;x=pe(p.value!=null?p.value:x),u._wrapperState={initialChecked:S,initialValue:x,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function lt(u,p){p=p.checked,p!=null&&E(u,"checked",p,!1)}function kt(u,p){lt(u,p);var x=pe(p.value),S=p.type;if(x!=null)S==="number"?(x===0&&u.value===""||u.value!=x)&&(u.value=""+x):u.value!==""+x&&(u.value=""+x);else if(S==="submit"||S==="reset"){u.removeAttribute("value");return}p.hasOwnProperty("value")?Ht(u,p.type,x):p.hasOwnProperty("defaultValue")&&Ht(u,p.type,pe(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(u.defaultChecked=!!p.defaultChecked)}function re(u,p,x){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var S=p.type;if(!(S!=="submit"&&S!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+u._wrapperState.initialValue,x||p===u.value||(u.value=p),u.defaultValue=p}x=u.name,x!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,x!==""&&(u.name=x)}function Ht(u,p,x){(p!=="number"||Ze(u.ownerDocument)!==u)&&(x==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+x&&(u.defaultValue=""+x))}var Lt=Array.isArray;function zt(u,p,x,S){if(u=u.options,p){p={};for(var C=0;C"+p.valueOf().toString()+"",p=ge.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;p.firstChild;)u.appendChild(p.firstChild)}});function Le(u,p){if(p){var x=u.firstChild;if(x&&x===u.lastChild&&x.nodeType===3){x.nodeValue=p;return}}u.textContent=p}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nt=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(u){nt.forEach(function(p){p=p+u.charAt(0).toUpperCase()+u.substring(1),ft[p]=ft[u]})});function Ue(u,p,x){return p==null||typeof p=="boolean"||p===""?"":x||typeof p!="number"||p===0||ft.hasOwnProperty(u)&&ft[u]?(""+p).trim():p+"px"}function ke(u,p){u=u.style;for(var x in p)if(p.hasOwnProperty(x)){var S=x.indexOf("--")===0,C=Ue(x,p[x],S);x==="float"&&(x="cssFloat"),S?u.setProperty(x,C):u[x]=C}}var Fe=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ze(u,p){if(p){if(Fe[u]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(n(137,u));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(n(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(n(61))}if(p.style!=null&&typeof p.style!="object")throw Error(n(62))}}function He(u,p){if(u.indexOf("-")===-1)return typeof p.is=="string";switch(u){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 vt=null;function ae(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var Re=null,Ie=null,rt=null;function $e(u){if(u=Rf(u)){if(typeof Re!="function")throw Error(n(280));var p=u.stateNode;p&&(p=Im(p),Re(u.stateNode,u.type,p))}}function he(u){Ie?rt?rt.push(u):rt=[u]:Ie=u}function Qe(){if(Ie){var u=Ie,p=rt;if(rt=Ie=null,$e(u),p)for(u=0;u>>=0,u===0?32:31-(Wt(u)/bt|0)|0}var wn=64,Tn=4194304;function fn(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function rr(u,p){var x=u.pendingLanes;if(x===0)return 0;var S=0,C=u.suspendedLanes,j=u.pingedLanes,G=x&268435455;if(G!==0){var Q=G&~C;Q!==0?S=fn(Q):(j&=G,j!==0&&(S=fn(j)))}else G=x&~C,G!==0?S=fn(G):j!==0&&(S=fn(j));if(S===0)return 0;if(p!==0&&p!==S&&(p&C)===0&&(C=S&-S,j=p&-p,C>=j||C===16&&(j&4194240)!==0))return p;if((S&4)!==0&&(S|=x&16),p=u.entangledLanes,p!==0)for(u=u.entanglements,p&=S;0x;x++)p.push(u);return p}function Ii(u,p,x){u.pendingLanes|=p,p!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,p=31-pt(p),u[p]=x}function So(u,p){var x=u.pendingLanes&~p;u.pendingLanes=p,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=p,u.mutableReadLanes&=p,u.entangledLanes&=p,p=u.entanglements;var S=u.eventTimes;for(u=u.expirationTimes;0=_f),FC=" ",UC=!1;function BC(u,p){switch(u){case"keyup":return T7.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zC(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var qc=!1;function N7(u,p){switch(u){case"compositionend":return zC(p);case"keypress":return p.which!==32?null:(UC=!0,FC);case"textInput":return u=p.data,u===FC&&UC?null:u;default:return null}}function P7(u,p){if(qc)return u==="compositionend"||!Fx&&BC(u,p)?(u=jC(),Sm=jx=No=null,qc=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:x,offset:p-u};u=S}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=XC(x)}}function YC(u,p){return u&&p?u===p?!0:u&&u.nodeType===3?!1:p&&p.nodeType===3?YC(u,p.parentNode):"contains"in u?u.contains(p):u.compareDocumentPosition?!!(u.compareDocumentPosition(p)&16):!1:!1}function ZC(){for(var u=window,p=Ze();p instanceof u.HTMLIFrameElement;){try{var x=typeof p.contentWindow.location.href=="string"}catch{x=!1}if(x)u=p.contentWindow;else break;p=Ze(u.document)}return p}function zx(u){var p=u&&u.nodeName&&u.nodeName.toLowerCase();return p&&(p==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||p==="textarea"||u.contentEditable==="true")}function F7(u){var p=ZC(),x=u.focusedElem,S=u.selectionRange;if(p!==x&&x&&x.ownerDocument&&YC(x.ownerDocument.documentElement,x)){if(S!==null&&zx(x)){if(p=S.start,u=S.end,u===void 0&&(u=p),"selectionStart"in x)x.selectionStart=p,x.selectionEnd=Math.min(u,x.value.length);else if(u=(p=x.ownerDocument||document)&&p.defaultView||window,u.getSelection){u=u.getSelection();var C=x.textContent.length,j=Math.min(S.start,C);S=S.end===void 0?j:Math.min(S.end,C),!u.extend&&j>S&&(C=S,S=j,j=C),C=KC(x,j);var G=KC(x,S);C&&G&&(u.rangeCount!==1||u.anchorNode!==C.node||u.anchorOffset!==C.offset||u.focusNode!==G.node||u.focusOffset!==G.offset)&&(p=p.createRange(),p.setStart(C.node,C.offset),u.removeAllRanges(),j>S?(u.addRange(p),u.extend(G.node,G.offset)):(p.setEnd(G.node,G.offset),u.addRange(p)))}}for(p=[],u=x;u=u.parentNode;)u.nodeType===1&&p.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x=document.documentMode,Xc=null,$x=null,Tf=null,Vx=!1;function JC(u,p,x){var S=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;Vx||Xc==null||Xc!==Ze(S)||(S=Xc,"selectionStart"in S&&zx(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),Tf&&Ef(Tf,S)||(Tf=S,S=Rm($x,"onSelect"),0Qc||(u.current=tb[Qc],tb[Qc]=null,Qc--)}function In(u,p){Qc++,tb[Qc]=u.current,u.current=p}var jo={},Vr=Ro(jo),wi=Ro(!1),Rl=jo;function eu(u,p){var x=u.type.contextTypes;if(!x)return jo;var S=u.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===p)return S.__reactInternalMemoizedMaskedChildContext;var C={},j;for(j in x)C[j]=p[j];return S&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=p,u.__reactInternalMemoizedMaskedChildContext=C),C}function _i(u){return u=u.childContextTypes,u!=null}function Dm(){Un(wi),Un(Vr)}function h3(u,p,x){if(Vr.current!==jo)throw Error(n(168));In(Vr,p),In(wi,x)}function p3(u,p,x){var S=u.stateNode;if(p=p.childContextTypes,typeof S.getChildContext!="function")return x;S=S.getChildContext();for(var C in S)if(!(C in p))throw Error(n(108,de(u)||"Unknown",C));return J({},x,S)}function km(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||jo,Rl=Vr.current,In(Vr,u),In(wi,wi.current),!0}function m3(u,p,x){var S=u.stateNode;if(!S)throw Error(n(169));x?(u=p3(u,p,Rl),S.__reactInternalMemoizedMergedChildContext=u,Un(wi),Un(Vr),In(Vr,u)):Un(wi),In(wi,x)}var ks=null,Lm=!1,nb=!1;function g3(u){ks===null?ks=[u]:ks.push(u)}function Y7(u){Lm=!0,g3(u)}function Oo(){if(!nb&&ks!==null){nb=!0;var u=0,p=qt;try{var x=ks;for(qt=1;u>=G,C-=G,Ls=1<<32-pt(p)+C|x<Xt?(Tr=Bt,Bt=null):Tr=Bt.sibling;var xn=Be(xe,Bt,Me[Xt],et);if(xn===null){Bt===null&&(Bt=Tr);break}u&&Bt&&xn.alternate===null&&p(xe,Bt),le=j(xn,le,Xt),Ut===null?Ot=xn:Ut.sibling=xn,Ut=xn,Bt=Tr}if(Xt===Me.length)return x(xe,Bt),Vn&&Ol(xe,Xt),Ot;if(Bt===null){for(;XtXt?(Tr=Bt,Bt=null):Tr=Bt.sibling;var $o=Be(xe,Bt,xn.value,et);if($o===null){Bt===null&&(Bt=Tr);break}u&&Bt&&$o.alternate===null&&p(xe,Bt),le=j($o,le,Xt),Ut===null?Ot=$o:Ut.sibling=$o,Ut=$o,Bt=Tr}if(xn.done)return x(xe,Bt),Vn&&Ol(xe,Xt),Ot;if(Bt===null){for(;!xn.done;Xt++,xn=Me.next())xn=We(xe,xn.value,et),xn!==null&&(le=j(xn,le,Xt),Ut===null?Ot=xn:Ut.sibling=xn,Ut=xn);return Vn&&Ol(xe,Xt),Ot}for(Bt=S(xe,Bt);!xn.done;Xt++,xn=Me.next())xn=gt(Bt,xe,Xt,xn.value,et),xn!==null&&(u&&xn.alternate!==null&&Bt.delete(xn.key===null?Xt:xn.key),le=j(xn,le,Xt),Ut===null?Ot=xn:Ut.sibling=xn,Ut=xn);return u&&Bt.forEach(function(CW){return p(xe,CW)}),Vn&&Ol(xe,Xt),Ot}function ar(xe,le,Me,et){if(typeof Me=="object"&&Me!==null&&Me.type===N&&Me.key===null&&(Me=Me.props.children),typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case T:e:{for(var Ot=Me.key,Ut=le;Ut!==null;){if(Ut.key===Ot){if(Ot=Me.type,Ot===N){if(Ut.tag===7){x(xe,Ut.sibling),le=C(Ut,Me.props.children),le.return=xe,xe=le;break e}}else if(Ut.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===k&&_3(Ot)===Ut.type){x(xe,Ut.sibling),le=C(Ut,Me.props),le.ref=jf(xe,Ut,Me),le.return=xe,xe=le;break e}x(xe,Ut);break}else p(xe,Ut);Ut=Ut.sibling}Me.type===N?(le=zl(Me.props.children,xe.mode,et,Me.key),le.return=xe,xe=le):(et=d0(Me.type,Me.key,Me.props,null,xe.mode,et),et.ref=jf(xe,le,Me),et.return=xe,xe=et)}return G(xe);case A:e:{for(Ut=Me.key;le!==null;){if(le.key===Ut)if(le.tag===4&&le.stateNode.containerInfo===Me.containerInfo&&le.stateNode.implementation===Me.implementation){x(xe,le.sibling),le=C(le,Me.children||[]),le.return=xe,xe=le;break e}else{x(xe,le);break}else p(xe,le);le=le.sibling}le=Qb(Me,xe.mode,et),le.return=xe,xe=le}return G(xe);case k:return Ut=Me._init,ar(xe,le,Ut(Me._payload),et)}if(Lt(Me))return Et(xe,le,Me,et);if(Y(Me))return Rt(xe,le,Me,et);zm(xe,Me)}return typeof Me=="string"&&Me!==""||typeof Me=="number"?(Me=""+Me,le!==null&&le.tag===6?(x(xe,le.sibling),le=C(le,Me),le.return=xe,xe=le):(x(xe,le),le=Jb(Me,xe.mode,et),le.return=xe,xe=le),G(xe)):x(xe,le)}return ar}var iu=S3(!0),M3=S3(!1),$m=Ro(null),Vm=null,au=null,lb=null;function cb(){lb=au=Vm=null}function ub(u){var p=$m.current;Un($m),u._currentValue=p}function db(u,p,x){for(;u!==null;){var S=u.alternate;if((u.childLanes&p)!==p?(u.childLanes|=p,S!==null&&(S.childLanes|=p)):S!==null&&(S.childLanes&p)!==p&&(S.childLanes|=p),u===x)break;u=u.return}}function su(u,p){Vm=u,lb=au=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&p)!==0&&(Si=!0),u.firstContext=null)}function ra(u){var p=u._currentValue;if(lb!==u)if(u={context:u,memoizedValue:p,next:null},au===null){if(Vm===null)throw Error(n(308));au=u,Vm.dependencies={lanes:0,firstContext:u}}else au=au.next=u;return p}var Il=null;function fb(u){Il===null?Il=[u]:Il.push(u)}function E3(u,p,x,S){var C=p.interleaved;return C===null?(x.next=x,fb(p)):(x.next=C.next,C.next=x),p.interleaved=x,Us(u,S)}function Us(u,p){u.lanes|=p;var x=u.alternate;for(x!==null&&(x.lanes|=p),x=u,u=u.return;u!==null;)u.childLanes|=p,x=u.alternate,x!==null&&(x.childLanes|=p),x=u,u=u.return;return x.tag===3?x.stateNode:null}var Io=!1;function hb(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function T3(u,p){u=u.updateQueue,p.updateQueue===u&&(p.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function Bs(u,p){return{eventTime:u,lane:p,tag:0,payload:null,callback:null,next:null}}function Do(u,p,x){var S=u.updateQueue;if(S===null)return null;if(S=S.shared,(gn&2)!==0){var C=S.pending;return C===null?p.next=p:(p.next=C.next,C.next=p),S.pending=p,Us(u,x)}return C=S.interleaved,C===null?(p.next=p,fb(S)):(p.next=C.next,C.next=p),S.interleaved=p,Us(u,x)}function Hm(u,p,x){if(p=p.updateQueue,p!==null&&(p=p.shared,(x&4194240)!==0)){var S=p.lanes;S&=u.pendingLanes,x|=S,p.lanes=x,_n(u,x)}}function A3(u,p){var x=u.updateQueue,S=u.alternate;if(S!==null&&(S=S.updateQueue,x===S)){var C=null,j=null;if(x=x.firstBaseUpdate,x!==null){do{var G={eventTime:x.eventTime,lane:x.lane,tag:x.tag,payload:x.payload,callback:x.callback,next:null};j===null?C=j=G:j=j.next=G,x=x.next}while(x!==null);j===null?C=j=p:j=j.next=p}else C=j=p;x={baseState:S.baseState,firstBaseUpdate:C,lastBaseUpdate:j,shared:S.shared,effects:S.effects},u.updateQueue=x;return}u=x.lastBaseUpdate,u===null?x.firstBaseUpdate=p:u.next=p,x.lastBaseUpdate=p}function Gm(u,p,x,S){var C=u.updateQueue;Io=!1;var j=C.firstBaseUpdate,G=C.lastBaseUpdate,Q=C.shared.pending;if(Q!==null){C.shared.pending=null;var se=Q,Ne=se.next;se.next=null,G===null?j=Ne:G.next=Ne,G=se;var Ve=u.alternate;Ve!==null&&(Ve=Ve.updateQueue,Q=Ve.lastBaseUpdate,Q!==G&&(Q===null?Ve.firstBaseUpdate=Ne:Q.next=Ne,Ve.lastBaseUpdate=se))}if(j!==null){var We=C.baseState;G=0,Ve=Ne=se=null,Q=j;do{var Be=Q.lane,gt=Q.eventTime;if((S&Be)===Be){Ve!==null&&(Ve=Ve.next={eventTime:gt,lane:0,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null});e:{var Et=u,Rt=Q;switch(Be=p,gt=x,Rt.tag){case 1:if(Et=Rt.payload,typeof Et=="function"){We=Et.call(gt,We,Be);break e}We=Et;break e;case 3:Et.flags=Et.flags&-65537|128;case 0:if(Et=Rt.payload,Be=typeof Et=="function"?Et.call(gt,We,Be):Et,Be==null)break e;We=J({},We,Be);break e;case 2:Io=!0}}Q.callback!==null&&Q.lane!==0&&(u.flags|=64,Be=C.effects,Be===null?C.effects=[Q]:Be.push(Q))}else gt={eventTime:gt,lane:Be,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},Ve===null?(Ne=Ve=gt,se=We):Ve=Ve.next=gt,G|=Be;if(Q=Q.next,Q===null){if(Q=C.shared.pending,Q===null)break;Be=Q,Q=Be.next,Be.next=null,C.lastBaseUpdate=Be,C.shared.pending=null}}while(!0);if(Ve===null&&(se=We),C.baseState=se,C.firstBaseUpdate=Ne,C.lastBaseUpdate=Ve,p=C.shared.interleaved,p!==null){C=p;do G|=C.lane,C=C.next;while(C!==p)}else j===null&&(C.shared.lanes=0);Ll|=G,u.lanes=G,u.memoizedState=We}}function N3(u,p,x){if(u=p.effects,p.effects=null,u!==null)for(p=0;px?x:4,u(!0);var S=yb.transition;yb.transition={};try{u(!1),p()}finally{qt=x,yb.transition=S}}function q3(){return ia().memoizedState}function eW(u,p,x){var S=Uo(u);if(x={lane:S,action:x,hasEagerState:!1,eagerState:null,next:null},X3(u))K3(p,x);else if(x=E3(u,p,x,S),x!==null){var C=ni();Ca(x,u,S,C),Y3(x,p,S)}}function tW(u,p,x){var S=Uo(u),C={lane:S,action:x,hasEagerState:!1,eagerState:null,next:null};if(X3(u))K3(p,C);else{var j=u.alternate;if(u.lanes===0&&(j===null||j.lanes===0)&&(j=p.lastRenderedReducer,j!==null))try{var G=p.lastRenderedState,Q=j(G,x);if(C.hasEagerState=!0,C.eagerState=Q,Ea(Q,G)){var se=p.interleaved;se===null?(C.next=C,fb(p)):(C.next=se.next,se.next=C),p.interleaved=C;return}}catch{}finally{}x=E3(u,p,C,S),x!==null&&(C=ni(),Ca(x,u,S,C),Y3(x,p,S))}}function X3(u){var p=u.alternate;return u===qn||p!==null&&p===qn}function K3(u,p){kf=Xm=!0;var x=u.pending;x===null?p.next=p:(p.next=x.next,x.next=p),u.pending=p}function Y3(u,p,x){if((x&4194240)!==0){var S=p.lanes;S&=u.pendingLanes,x|=S,p.lanes=x,_n(u,x)}}var Zm={readContext:ra,useCallback:Hr,useContext:Hr,useEffect:Hr,useImperativeHandle:Hr,useInsertionEffect:Hr,useLayoutEffect:Hr,useMemo:Hr,useReducer:Hr,useRef:Hr,useState:Hr,useDebugValue:Hr,useDeferredValue:Hr,useTransition:Hr,useMutableSource:Hr,useSyncExternalStore:Hr,useId:Hr,unstable_isNewReconciler:!1},nW={readContext:ra,useCallback:function(u,p){return Ja().memoizedState=[u,p===void 0?null:p],u},useContext:ra,useEffect:U3,useImperativeHandle:function(u,p,x){return x=x!=null?x.concat([u]):null,Km(4194308,4,$3.bind(null,p,u),x)},useLayoutEffect:function(u,p){return Km(4194308,4,u,p)},useInsertionEffect:function(u,p){return Km(4,2,u,p)},useMemo:function(u,p){var x=Ja();return p=p===void 0?null:p,u=u(),x.memoizedState=[u,p],u},useReducer:function(u,p,x){var S=Ja();return p=x!==void 0?x(p):p,S.memoizedState=S.baseState=p,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:p},S.queue=u,u=u.dispatch=eW.bind(null,qn,u),[S.memoizedState,u]},useRef:function(u){var p=Ja();return u={current:u},p.memoizedState=u},useState:L3,useDebugValue:Eb,useDeferredValue:function(u){return Ja().memoizedState=u},useTransition:function(){var u=L3(!1),p=u[0];return u=Q7.bind(null,u[1]),Ja().memoizedState=u,[p,u]},useMutableSource:function(){},useSyncExternalStore:function(u,p,x){var S=qn,C=Ja();if(Vn){if(x===void 0)throw Error(n(407));x=x()}else{if(x=p(),Er===null)throw Error(n(349));(kl&30)!==0||j3(S,p,x)}C.memoizedState=x;var j={value:x,getSnapshot:p};return C.queue=j,U3(I3.bind(null,S,j,u),[u]),S.flags|=2048,Uf(9,O3.bind(null,S,j,x,p),void 0,null),x},useId:function(){var u=Ja(),p=Er.identifierPrefix;if(Vn){var x=Fs,S=Ls;x=(S&~(1<<32-pt(S)-1)).toString(32)+x,p=":"+p+"R"+x,x=Lf++,0<\/script>",u=u.removeChild(u.firstChild)):typeof S.is=="string"?u=G.createElement(x,{is:S.is}):(u=G.createElement(x),x==="select"&&(G=u,S.multiple?G.multiple=!0:S.size&&(G.size=S.size))):u=G.createElementNS(u,x),u[Ya]=p,u[Cf]=S,gR(u,p,!1,!1),p.stateNode=u;e:{switch(G=He(x,S),x){case"dialog":Fn("cancel",u),Fn("close",u),C=S;break;case"iframe":case"object":case"embed":Fn("load",u),C=S;break;case"video":case"audio":for(C=0;Cdu&&(p.flags|=128,S=!0,Bf(j,!1),p.lanes=4194304)}else{if(!S)if(u=Wm(G),u!==null){if(p.flags|=128,S=!0,x=u.updateQueue,x!==null&&(p.updateQueue=x,p.flags|=4),Bf(j,!0),j.tail===null&&j.tailMode==="hidden"&&!G.alternate&&!Vn)return Gr(p),null}else 2*X()-j.renderingStartTime>du&&x!==1073741824&&(p.flags|=128,S=!0,Bf(j,!1),p.lanes=4194304);j.isBackwards?(G.sibling=p.child,p.child=G):(x=j.last,x!==null?x.sibling=G:p.child=G,j.last=G)}return j.tail!==null?(p=j.tail,j.rendering=p,j.tail=p.sibling,j.renderingStartTime=X(),p.sibling=null,x=Wn.current,In(Wn,S?x&1|2:x&1),p):(Gr(p),null);case 22:case 23:return Kb(),S=p.memoizedState!==null,u!==null&&u.memoizedState!==null!==S&&(p.flags|=8192),S&&(p.mode&1)!==0?(Fi&1073741824)!==0&&(Gr(p),p.subtreeFlags&6&&(p.flags|=8192)):Gr(p),null;case 24:return null;case 25:return null}throw Error(n(156,p.tag))}function uW(u,p){switch(ib(p),p.tag){case 1:return _i(p.type)&&Dm(),u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 3:return ou(),Un(wi),Un(Vr),vb(),u=p.flags,(u&65536)!==0&&(u&128)===0?(p.flags=u&-65537|128,p):null;case 5:return mb(p),null;case 13:if(Un(Wn),u=p.memoizedState,u!==null&&u.dehydrated!==null){if(p.alternate===null)throw Error(n(340));ru()}return u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 19:return Un(Wn),null;case 4:return ou(),null;case 10:return ub(p.type._context),null;case 22:case 23:return Kb(),null;case 24:return null;default:return null}}var t0=!1,Wr=!1,dW=typeof WeakSet=="function"?WeakSet:Set,wt=null;function cu(u,p){var x=u.ref;if(x!==null)if(typeof x=="function")try{x(null)}catch(S){Qn(u,p,S)}else x.current=null}function Lb(u,p,x){try{x()}catch(S){Qn(u,p,S)}}var xR=!1;function fW(u,p){if(Kx=wm,u=ZC(),zx(u)){if("selectionStart"in u)var x={start:u.selectionStart,end:u.selectionEnd};else e:{x=(x=u.ownerDocument)&&x.defaultView||window;var S=x.getSelection&&x.getSelection();if(S&&S.rangeCount!==0){x=S.anchorNode;var C=S.anchorOffset,j=S.focusNode;S=S.focusOffset;try{x.nodeType,j.nodeType}catch{x=null;break e}var G=0,Q=-1,se=-1,Ne=0,Ve=0,We=u,Be=null;t:for(;;){for(var gt;We!==x||C!==0&&We.nodeType!==3||(Q=G+C),We!==j||S!==0&&We.nodeType!==3||(se=G+S),We.nodeType===3&&(G+=We.nodeValue.length),(gt=We.firstChild)!==null;)Be=We,We=gt;for(;;){if(We===u)break t;if(Be===x&&++Ne===C&&(Q=G),Be===j&&++Ve===S&&(se=G),(gt=We.nextSibling)!==null)break;We=Be,Be=We.parentNode}We=gt}x=Q===-1||se===-1?null:{start:Q,end:se}}else x=null}x=x||{start:0,end:0}}else x=null;for(Yx={focusedElem:u,selectionRange:x},wm=!1,wt=p;wt!==null;)if(p=wt,u=p.child,(p.subtreeFlags&1028)!==0&&u!==null)u.return=p,wt=u;else for(;wt!==null;){p=wt;try{var Et=p.alternate;if((p.flags&1024)!==0)switch(p.tag){case 0:case 11:case 15:break;case 1:if(Et!==null){var Rt=Et.memoizedProps,ar=Et.memoizedState,xe=p.stateNode,le=xe.getSnapshotBeforeUpdate(p.elementType===p.type?Rt:Aa(p.type,Rt),ar);xe.__reactInternalSnapshotBeforeUpdate=le}break;case 3:var Me=p.stateNode.containerInfo;Me.nodeType===1?Me.textContent="":Me.nodeType===9&&Me.documentElement&&Me.removeChild(Me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(et){Qn(p,p.return,et)}if(u=p.sibling,u!==null){u.return=p.return,wt=u;break}wt=p.return}return Et=xR,xR=!1,Et}function zf(u,p,x){var S=p.updateQueue;if(S=S!==null?S.lastEffect:null,S!==null){var C=S=S.next;do{if((C.tag&u)===u){var j=C.destroy;C.destroy=void 0,j!==void 0&&Lb(p,x,j)}C=C.next}while(C!==S)}}function n0(u,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var x=p=p.next;do{if((x.tag&u)===u){var S=x.create;x.destroy=S()}x=x.next}while(x!==p)}}function Fb(u){var p=u.ref;if(p!==null){var x=u.stateNode;switch(u.tag){case 5:u=x;break;default:u=x}typeof p=="function"?p(u):p.current=u}}function bR(u){var p=u.alternate;p!==null&&(u.alternate=null,bR(p)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(p=u.stateNode,p!==null&&(delete p[Ya],delete p[Cf],delete p[eb],delete p[X7],delete p[K7])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function wR(u){return u.tag===5||u.tag===3||u.tag===4}function _R(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||wR(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function Ub(u,p,x){var S=u.tag;if(S===5||S===6)u=u.stateNode,p?x.nodeType===8?x.parentNode.insertBefore(u,p):x.insertBefore(u,p):(x.nodeType===8?(p=x.parentNode,p.insertBefore(u,x)):(p=x,p.appendChild(u)),x=x._reactRootContainer,x!=null||p.onclick!==null||(p.onclick=Om));else if(S!==4&&(u=u.child,u!==null))for(Ub(u,p,x),u=u.sibling;u!==null;)Ub(u,p,x),u=u.sibling}function Bb(u,p,x){var S=u.tag;if(S===5||S===6)u=u.stateNode,p?x.insertBefore(u,p):x.appendChild(u);else if(S!==4&&(u=u.child,u!==null))for(Bb(u,p,x),u=u.sibling;u!==null;)Bb(u,p,x),u=u.sibling}var Or=null,Na=!1;function ko(u,p,x){for(x=x.child;x!==null;)SR(u,p,x),x=x.sibling}function SR(u,p,x){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(it,x)}catch{}switch(x.tag){case 5:Wr||cu(x,p);case 6:var S=Or,C=Na;Or=null,ko(u,p,x),Or=S,Na=C,Or!==null&&(Na?(u=Or,x=x.stateNode,u.nodeType===8?u.parentNode.removeChild(x):u.removeChild(x)):Or.removeChild(x.stateNode));break;case 18:Or!==null&&(Na?(u=Or,x=x.stateNode,u.nodeType===8?Qx(u.parentNode,x):u.nodeType===1&&Qx(u,x),xf(u)):Qx(Or,x.stateNode));break;case 4:S=Or,C=Na,Or=x.stateNode.containerInfo,Na=!0,ko(u,p,x),Or=S,Na=C;break;case 0:case 11:case 14:case 15:if(!Wr&&(S=x.updateQueue,S!==null&&(S=S.lastEffect,S!==null))){C=S=S.next;do{var j=C,G=j.destroy;j=j.tag,G!==void 0&&((j&2)!==0||(j&4)!==0)&&Lb(x,p,G),C=C.next}while(C!==S)}ko(u,p,x);break;case 1:if(!Wr&&(cu(x,p),S=x.stateNode,typeof S.componentWillUnmount=="function"))try{S.props=x.memoizedProps,S.state=x.memoizedState,S.componentWillUnmount()}catch(Q){Qn(x,p,Q)}ko(u,p,x);break;case 21:ko(u,p,x);break;case 22:x.mode&1?(Wr=(S=Wr)||x.memoizedState!==null,ko(u,p,x),Wr=S):ko(u,p,x);break;default:ko(u,p,x)}}function MR(u){var p=u.updateQueue;if(p!==null){u.updateQueue=null;var x=u.stateNode;x===null&&(x=u.stateNode=new dW),p.forEach(function(S){var C=wW.bind(null,u,S);x.has(S)||(x.add(S),S.then(C,C))})}}function Pa(u,p){var x=p.deletions;if(x!==null)for(var S=0;SC&&(C=G),S&=~j}if(S=C,S=X()-S,S=(120>S?120:480>S?480:1080>S?1080:1920>S?1920:3e3>S?3e3:4320>S?4320:1960*pW(S/1960))-S,10u?16:u,Fo===null)var S=!1;else{if(u=Fo,Fo=null,o0=0,(gn&6)!==0)throw Error(n(331));var C=gn;for(gn|=4,wt=u.current;wt!==null;){var j=wt,G=j.child;if((wt.flags&16)!==0){var Q=j.deletions;if(Q!==null){for(var se=0;seX()-Vb?Ul(u,0):$b|=x),Ei(u,p)}function LR(u,p){p===0&&((u.mode&1)===0?p=1:(p=Tn,Tn<<=1,(Tn&130023424)===0&&(Tn=4194304)));var x=ni();u=Us(u,p),u!==null&&(Ii(u,p,x),Ei(u,x))}function bW(u){var p=u.memoizedState,x=0;p!==null&&(x=p.retryLane),LR(u,x)}function wW(u,p){var x=0;switch(u.tag){case 13:var S=u.stateNode,C=u.memoizedState;C!==null&&(x=C.retryLane);break;case 19:S=u.stateNode;break;default:throw Error(n(314))}S!==null&&S.delete(p),LR(u,x)}var FR;FR=function(u,p,x){if(u!==null)if(u.memoizedProps!==p.pendingProps||wi.current)Si=!0;else{if((u.lanes&x)===0&&(p.flags&128)===0)return Si=!1,lW(u,p,x);Si=(u.flags&131072)!==0}else Si=!1,Vn&&(p.flags&1048576)!==0&&v3(p,Um,p.index);switch(p.lanes=0,p.tag){case 2:var S=p.type;e0(u,p),u=p.pendingProps;var C=eu(p,Vr.current);su(p,x),C=bb(null,p,S,u,C,x);var j=wb();return p.flags|=1,typeof C=="object"&&C!==null&&typeof C.render=="function"&&C.$$typeof===void 0?(p.tag=1,p.memoizedState=null,p.updateQueue=null,_i(S)?(j=!0,km(p)):j=!1,p.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,hb(p),C.updater=Jm,p.stateNode=C,C._reactInternals=p,Ab(p,S,u,x),p=Rb(null,p,S,!0,j,x)):(p.tag=0,Vn&&j&&rb(p),ti(null,p,C,x),p=p.child),p;case 16:S=p.elementType;e:{switch(e0(u,p),u=p.pendingProps,C=S._init,S=C(S._payload),p.type=S,C=p.tag=SW(S),u=Aa(S,u),C){case 0:p=Cb(null,p,S,u,x);break e;case 1:p=uR(null,p,S,u,x);break e;case 11:p=aR(null,p,S,u,x);break e;case 14:p=sR(null,p,S,Aa(S.type,u),x);break e}throw Error(n(306,S,""))}return p;case 0:return S=p.type,C=p.pendingProps,C=p.elementType===S?C:Aa(S,C),Cb(u,p,S,C,x);case 1:return S=p.type,C=p.pendingProps,C=p.elementType===S?C:Aa(S,C),uR(u,p,S,C,x);case 3:e:{if(dR(p),u===null)throw Error(n(387));S=p.pendingProps,j=p.memoizedState,C=j.element,T3(u,p),Gm(p,S,null,x);var G=p.memoizedState;if(S=G.element,j.isDehydrated)if(j={element:S,isDehydrated:!1,cache:G.cache,pendingSuspenseBoundaries:G.pendingSuspenseBoundaries,transitions:G.transitions},p.updateQueue.baseState=j,p.memoizedState=j,p.flags&256){C=lu(Error(n(423)),p),p=fR(u,p,S,x,C);break e}else if(S!==C){C=lu(Error(n(424)),p),p=fR(u,p,S,x,C);break e}else for(Li=Co(p.stateNode.containerInfo.firstChild),ki=p,Vn=!0,Ta=null,x=M3(p,null,S,x),p.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling;else{if(ru(),S===C){p=zs(u,p,x);break e}ti(u,p,S,x)}p=p.child}return p;case 5:return P3(p),u===null&&sb(p),S=p.type,C=p.pendingProps,j=u!==null?u.memoizedProps:null,G=C.children,Zx(S,C)?G=null:j!==null&&Zx(S,j)&&(p.flags|=32),cR(u,p),ti(u,p,G,x),p.child;case 6:return u===null&&sb(p),null;case 13:return hR(u,p,x);case 4:return pb(p,p.stateNode.containerInfo),S=p.pendingProps,u===null?p.child=iu(p,null,S,x):ti(u,p,S,x),p.child;case 11:return S=p.type,C=p.pendingProps,C=p.elementType===S?C:Aa(S,C),aR(u,p,S,C,x);case 7:return ti(u,p,p.pendingProps,x),p.child;case 8:return ti(u,p,p.pendingProps.children,x),p.child;case 12:return ti(u,p,p.pendingProps.children,x),p.child;case 10:e:{if(S=p.type._context,C=p.pendingProps,j=p.memoizedProps,G=C.value,In($m,S._currentValue),S._currentValue=G,j!==null)if(Ea(j.value,G)){if(j.children===C.children&&!wi.current){p=zs(u,p,x);break e}}else for(j=p.child,j!==null&&(j.return=p);j!==null;){var Q=j.dependencies;if(Q!==null){G=j.child;for(var se=Q.firstContext;se!==null;){if(se.context===S){if(j.tag===1){se=Bs(-1,x&-x),se.tag=2;var Ne=j.updateQueue;if(Ne!==null){Ne=Ne.shared;var Ve=Ne.pending;Ve===null?se.next=se:(se.next=Ve.next,Ve.next=se),Ne.pending=se}}j.lanes|=x,se=j.alternate,se!==null&&(se.lanes|=x),db(j.return,x,p),Q.lanes|=x;break}se=se.next}}else if(j.tag===10)G=j.type===p.type?null:j.child;else if(j.tag===18){if(G=j.return,G===null)throw Error(n(341));G.lanes|=x,Q=G.alternate,Q!==null&&(Q.lanes|=x),db(G,x,p),G=j.sibling}else G=j.child;if(G!==null)G.return=j;else for(G=j;G!==null;){if(G===p){G=null;break}if(j=G.sibling,j!==null){j.return=G.return,G=j;break}G=G.return}j=G}ti(u,p,C.children,x),p=p.child}return p;case 9:return C=p.type,S=p.pendingProps.children,su(p,x),C=ra(C),S=S(C),p.flags|=1,ti(u,p,S,x),p.child;case 14:return S=p.type,C=Aa(S,p.pendingProps),C=Aa(S.type,C),sR(u,p,S,C,x);case 15:return oR(u,p,p.type,p.pendingProps,x);case 17:return S=p.type,C=p.pendingProps,C=p.elementType===S?C:Aa(S,C),e0(u,p),p.tag=1,_i(S)?(u=!0,km(p)):u=!1,su(p,x),J3(p,S,C),Ab(p,S,C,x),Rb(null,p,S,!0,u,x);case 19:return mR(u,p,x);case 22:return lR(u,p,x)}throw Error(n(156,p.tag))};function UR(u,p){return Gn(u,p)}function _W(u,p,x,S){this.tag=u,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sa(u,p,x,S){return new _W(u,p,x,S)}function Zb(u){return u=u.prototype,!(!u||!u.isReactComponent)}function SW(u){if(typeof u=="function")return Zb(u)?1:0;if(u!=null){if(u=u.$$typeof,u===L)return 11;if(u===U)return 14}return 2}function zo(u,p){var x=u.alternate;return x===null?(x=sa(u.tag,p,u.key,u.mode),x.elementType=u.elementType,x.type=u.type,x.stateNode=u.stateNode,x.alternate=u,u.alternate=x):(x.pendingProps=p,x.type=u.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=u.flags&14680064,x.childLanes=u.childLanes,x.lanes=u.lanes,x.child=u.child,x.memoizedProps=u.memoizedProps,x.memoizedState=u.memoizedState,x.updateQueue=u.updateQueue,p=u.dependencies,x.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},x.sibling=u.sibling,x.index=u.index,x.ref=u.ref,x}function d0(u,p,x,S,C,j){var G=2;if(S=u,typeof u=="function")Zb(u)&&(G=1);else if(typeof u=="string")G=5;else e:switch(u){case N:return zl(x.children,C,j,p);case P:G=8,C|=8;break;case R:return u=sa(12,x,p,C|2),u.elementType=R,u.lanes=j,u;case q:return u=sa(13,x,p,C),u.elementType=q,u.lanes=j,u;case I:return u=sa(19,x,p,C),u.elementType=I,u.lanes=j,u;case V:return f0(x,C,j,p);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case F:G=10;break e;case D:G=9;break e;case L:G=11;break e;case U:G=14;break e;case k:G=16,S=null;break e}throw Error(n(130,u==null?u:typeof u,""))}return p=sa(G,x,p,C),p.elementType=u,p.type=S,p.lanes=j,p}function zl(u,p,x,S){return u=sa(7,u,S,p),u.lanes=x,u}function f0(u,p,x,S){return u=sa(22,u,S,p),u.elementType=V,u.lanes=x,u.stateNode={isHidden:!1},u}function Jb(u,p,x){return u=sa(6,u,null,p),u.lanes=x,u}function Qb(u,p,x){return p=sa(4,u.children!==null?u.children:[],u.key,p),p.lanes=x,p.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},p}function MW(u,p,x,S,C){this.tag=p,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bi(0),this.expirationTimes=bi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.identifierPrefix=S,this.onRecoverableError=C,this.mutableSourceEagerHydrationData=null}function e1(u,p,x,S,C,j,G,Q,se){return u=new MW(u,p,x,Q,se),p===1?(p=1,j===!0&&(p|=8)):p=0,j=sa(3,null,null,p),u.current=j,j.stateNode=u,j.memoizedState={element:S,isDehydrated:x,cache:null,transitions:null,pendingSuspenseBoundaries:null},hb(j),u}function EW(u,p,x){var S=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),s1.exports=LW(),s1.exports}var QR;function FW(){if(QR)return b0;QR=1;var t=K8();return b0.createRoot=t.createRoot,b0.hydrateRoot=t.hydrateRoot,b0}var UW=FW(),O=KA();const K=Mn(O),Y8=RW({__proto__:null,default:K},[O]);/** - * react-router v7.13.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */var Z8=t=>{throw TypeError(t)},BW=(t,e,n)=>e.has(t)||Z8("Cannot "+n),c1=(t,e,n)=>(BW(t,e,"read from private field"),n?n.call(t):e.get(t)),zW=(t,e,n)=>e.has(t)?Z8("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),e5="popstate";function $W(t={}){function e(r,i){let{pathname:a,search:s,hash:o}=r.location;return qh("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:ws(i)}return HW(e,n,null,t)}function un(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function dr(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function VW(){return Math.random().toString(36).substring(2,10)}function t5(t,e){return{usr:t.state,key:t.key,idx:e}}function qh(t,e,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?_l(e):e,state:n,key:e&&e.key||r||VW()}}function ws({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function _l(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function HW(t,e,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o="POP",c=null,l=h();l==null&&(l=0,s.replaceState({...s.state,idx:l},""));function h(){return(s.state||{idx:null}).idx}function f(){o="POP";let v=h(),w=v==null?null:v-l;l=v,c&&c({action:o,location:y.location,delta:w})}function m(v,w){o="PUSH";let _=qh(y.location,v,w);l=h()+1;let E=t5(_,l),M=y.createHref(_);try{s.pushState(E,"",M)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(M)}a&&c&&c({action:o,location:y.location,delta:1})}function g(v,w){o="REPLACE";let _=qh(y.location,v,w);l=h();let E=t5(_,l),M=y.createHref(_);s.replaceState(E,"",M),a&&c&&c({action:o,location:y.location,delta:0})}function b(v){return J8(v)}let y={get action(){return o},get location(){return t(i,s)},listen(v){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(e5,f),c=v,()=>{i.removeEventListener(e5,f),c=null}},createHref(v){return e(i,v)},createURL:b,encodeLocation(v){let w=b(v);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:g,go(v){return s.go(v)}};return y}function J8(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),un(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:ws(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var bh,n5=class{constructor(t){if(zW(this,bh,new Map),t)for(let[e,n]of t)this.set(e,n)}get(t){if(c1(this,bh).has(t))return c1(this,bh).get(t);if(t.defaultValue!==void 0)return t.defaultValue;throw new Error("No value found for context")}set(t,e){c1(this,bh).set(t,e)}};bh=new WeakMap;var GW=new Set(["lazy","caseSensitive","path","id","index","children"]);function WW(t){return GW.has(t)}var qW=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function XW(t){return qW.has(t)}function KW(t){return t.index===!0}function Xh(t,e,n=[],r={},i=!1){return t.map((a,s)=>{let o=[...n,String(s)],c=typeof a.id=="string"?a.id:o.join("-");if(un(a.index!==!0||!a.children,"Cannot specify children on an index route"),un(i||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),KW(a)){let l={...a,id:c};return r[c]=r5(l,e(l)),l}else{let l={...a,id:c,children:void 0};return r[c]=r5(l,e(l)),a.children&&(l.children=Xh(a.children,e,o,r,i)),l}})}function r5(t,e){return Object.assign(t,{...e,...typeof e.lazy=="object"&&e.lazy!=null?{lazy:{...t.lazy,...e.lazy}}:{}})}function nl(t,e,n="/"){return wh(t,e,n,!1)}function wh(t,e,n,r){let i=typeof e=="string"?_l(e):e,a=ya(i.pathname||"/",n);if(a==null)return null;let s=Q8(t);ZW(s);let o=null;for(let c=0;o==null&&c{let h={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&c)return;un(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let f=hs([r,h.relativePath]),m=n.concat(h);s.children&&s.children.length>0&&(un(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Q8(s.children,e,m,f,c)),!(s.path==null&&!s.index)&&e.push({path:f,score:iq(f,s.index),routesMeta:m})};return t.forEach((s,o)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))a(s,o);else for(let l of eB(s.path))a(s,o,!0,l)}),e}function eB(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=eB(r.join("/")),o=[];return o.push(...s.map(c=>c===""?a:[a,c].join("/"))),i&&o.push(...s),o.map(c=>t.startsWith("/")&&c===""?"/":c)}function ZW(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:aq(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var JW=/^:[\w-]+$/,QW=3,eq=2,tq=1,nq=10,rq=-2,i5=t=>t==="*";function iq(t,e){let n=t.split("/"),r=n.length;return n.some(i5)&&(r+=rq),e&&(r+=eq),n.filter(i=>!i5(i)).reduce((i,a)=>i+(JW.test(a)?QW:a===""?tq:nq),r)}function aq(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function sq(t,e,n=!1){let{routesMeta:r}=t,i={},a="/",s=[];for(let o=0;o{if(h==="*"){let b=o[m]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const g=o[m];return f&&!g?l[h]=void 0:l[h]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:s,pattern:t}}function oq(t,e=!1,n=!0){dr(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,c)=>(r.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function lq(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return dr(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function ya(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function cq({basename:t,pathname:e}){return e==="/"?t:hs([t,e])}var tB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,YA=t=>tB.test(t);function uq(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?_l(t):t,a;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?a=a5(n.substring(1),"/"):a=a5(n,e)):a=e,{pathname:a,search:fq(r),hash:hq(i)}}function a5(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function u1(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function nB(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function ZA(t){let e=nB(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function JA(t,e,n,r=!1){let i;typeof t=="string"?i=_l(t):(i={...t},un(!i.pathname||!i.pathname.includes("?"),u1("?","pathname","search",i)),un(!i.pathname||!i.pathname.includes("#"),u1("#","pathname","hash",i)),un(!i.search||!i.search.includes("#"),u1("#","search","hash",i)));let a=t===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=e.length-1;if(!r&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}o=f>=0?e[f]:"/"}let c=uq(i,o),l=s&&s!=="/"&&s.endsWith("/"),h=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||h)&&(c.pathname+="/"),c}var hs=t=>t.join("/").replace(/\/\/+/g,"/"),dq=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),fq=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,hq=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,qp=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Kh(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function Xp(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var rB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function iB(t,e){let n=t;if(typeof n!="string"||!tB.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(rB)try{let a=new URL(window.location.href),s=n.startsWith("//")?new URL(a.protocol+n):new URL(n),o=ya(s.pathname,e);s.origin===a.origin&&o!=null?n=o+s.search+s.hash:i=!0}catch{dr(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var sl=Symbol("Uninstrumented");function pq(t,e){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};t.forEach(i=>i({id:e.id,index:e.index,path:e.path,instrument(a){let s=Object.keys(n);for(let o of s)a[o]&&n[o].push(a[o])}}));let r={};if(typeof e.lazy=="function"&&n.lazy.length>0){let i=zu(n.lazy,e.lazy,()=>{});i&&(r.lazy=i)}if(typeof e.lazy=="object"){let i=e.lazy;["middleware","loader","action"].forEach(a=>{let s=i[a],o=n[`lazy.${a}`];if(typeof s=="function"&&o.length>0){let c=zu(o,s,()=>{});c&&(r.lazy=Object.assign(r.lazy||{},{[a]:c}))}})}return["loader","action"].forEach(i=>{let a=e[i];if(typeof a=="function"&&n[i].length>0){let s=a[sl]??a,o=zu(n[i],s,(...c)=>s5(c[0]));o&&(i==="loader"&&s.hydrate===!0&&(o.hydrate=!0),o[sl]=s,r[i]=o)}}),e.middleware&&e.middleware.length>0&&n.middleware.length>0&&(r.middleware=e.middleware.map(i=>{let a=i[sl]??i,s=zu(n.middleware,a,(...o)=>s5(o[0]));return s?(s[sl]=a,s):i})),r}function mq(t,e){let n={navigate:[],fetch:[]};if(e.forEach(r=>r({instrument(i){let a=Object.keys(i);for(let s of a)i[s]&&n[s].push(i[s])}})),n.navigate.length>0){let r=t.navigate[sl]??t.navigate,i=zu(n.navigate,r,(...a)=>{let[s,o]=a;return{to:typeof s=="number"||typeof s=="string"?s:s?ws(s):".",...o5(t,o??{})}});i&&(i[sl]=r,t.navigate=i)}if(n.fetch.length>0){let r=t.fetch[sl]??t.fetch,i=zu(n.fetch,r,(...a)=>{let[s,,o,c]=a;return{href:o??".",fetcherKey:s,...o5(t,c??{})}});i&&(i[sl]=r,t.fetch=i)}return t}function zu(t,e,n){return t.length===0?null:async(...r)=>{let i=await aB(t,n(...r),()=>e(...r),t.length-1);if(i.type==="error")throw i.value;return i.value}}async function aB(t,e,n,r){let i=t[r],a;if(i){let s,o=async()=>(s?console.error("You cannot call instrumented handlers more than once"):s=aB(t,e,n,r-1),a=await s,un(a,"Expected a result"),a.type==="error"&&a.value instanceof Error?{status:"error",error:a.value}:{status:"success",error:void 0});try{await i(o,e)}catch(c){console.error("An instrumentation function threw an error:",c)}s||await o(),await s}else try{a={type:"success",value:await n()}}catch(s){a={type:"error",value:s}}return a||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function s5(t){let{request:e,context:n,params:r,unstable_pattern:i}=t;return{request:gq(e),params:{...r},unstable_pattern:i,context:vq(n)}}function o5(t,e){return{currentUrl:ws(t.state.location),..."formMethod"in e?{formMethod:e.formMethod}:{},..."formEncType"in e?{formEncType:e.formEncType}:{},..."formData"in e?{formData:e.formData}:{},..."body"in e?{body:e.body}:{}}}function gq(t){return{method:t.method,url:t.url,headers:{get:(...e)=>t.headers.get(...e)}}}function vq(t){if(xq(t)){let e={...t};return Object.freeze(e),e}else return{get:e=>t.get(e)}}var yq=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xq(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null||Object.getOwnPropertyNames(e).sort().join("\0")===yq}var sB=["POST","PUT","PATCH","DELETE"],bq=new Set(sB),wq=["GET",...sB],_q=new Set(wq),oB=new Set([301,302,303,307,308]),Sq=new Set([307,308]),d1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Mq={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Eq=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),lB="remix-router-transitions",cB=Symbol("ResetLoaderData");function Tq(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u";un(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=t.hydrationRouteProperties||[],i=t.mapRouteProperties||Eq,a=i;if(t.unstable_instrumentations){let ee=t.unstable_instrumentations;a=oe=>({...i(oe),...pq(ee.map(Se=>Se.route).filter(Boolean),oe)})}let s={},o=Xh(t.routes,a,void 0,s),c,l=t.basename||"/";l.startsWith("/")||(l=`/${l}`);let h=t.dataStrategy||Rq,f={...t.future},m=null,g=new Set,b=null,y=null,v=null,w=t.hydrationData!=null,_=nl(o,t.history.location,l),E=!1,M=null,T;if(_==null&&!t.patchRoutesOnNavigation){let ee=da(404,{pathname:t.history.location.pathname}),{matches:oe,route:Se}=w0(o);T=!0,_=oe,M={[Se.id]:ee}}else if(_&&!t.hydrationData&&Gt(_,o,t.history.location.pathname).active&&(_=null),_)if(_.some(ee=>ee.route.lazy))T=!1;else if(!_.some(ee=>QA(ee.route)))T=!0;else{let ee=t.hydrationData?t.hydrationData.loaderData:null,oe=t.hydrationData?t.hydrationData.errors:null;if(oe){let Se=_.findIndex(De=>oe[De.route.id]!==void 0);T=_.slice(0,Se+1).every(De=>!zM(De.route,ee,oe))}else T=_.every(Se=>!zM(Se.route,ee,oe))}else{T=!1,_=[];let ee=Gt(null,o,t.history.location.pathname);ee.active&&ee.matches&&(E=!0,_=ee.matches)}let A,N={historyAction:t.history.action,location:t.history.location,matches:_,initialized:T,navigation:d1,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||M,fetchers:new Map,blockers:new Map},P="POP",R=null,F=!1,D,L=!1,q=new Map,I=null,U=!1,k=!1,V=new Set,$=new Map,Y=0,J=-1,W=new Map,H=new Set,te=new Map,we=new Map,Ae=new Set,ne=new Map,de,pe=null;function fe(){if(m=t.history.listen(({action:ee,location:oe,delta:Se})=>{if(de){de(),de=void 0;return}dr(ne.size===0||Se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let De=Ie({currentLocation:N.location,nextLocation:oe,historyAction:ee});if(De&&Se!=null){let Ge=new Promise(Mt=>{de=Mt});t.history.go(Se*-1),Re(De,{state:"blocked",location:oe,proceed(){Re(De,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),Ge.then(()=>t.history.go(Se))},reset(){let Mt=new Map(N.blockers);Mt.set(De,qf),ye({blockers:Mt})}}),R==null||R.resolve(),R=null;return}return lt(ee,oe)}),n){Kq(e,q);let ee=()=>Yq(e,q);e.addEventListener("pagehide",ee),I=()=>e.removeEventListener("pagehide",ee)}return N.initialized||lt("POP",N.location,{initialHydration:!0}),A}function ce(){m&&m(),I&&I(),g.clear(),D&&D.abort(),N.fetchers.forEach((ee,oe)=>nt(oe)),N.blockers.forEach((ee,oe)=>ae(oe))}function Ce(ee){return g.add(ee),()=>g.delete(ee)}function ye(ee,oe={}){ee.matches&&(ee.matches=ee.matches.map(Ge=>{let Mt=s[Ge.route.id],It=Ge.route;return It.element!==Mt.element||It.errorElement!==Mt.errorElement||It.hydrateFallbackElement!==Mt.hydrateFallbackElement?{...Ge,route:Mt}:Ge})),N={...N,...ee};let Se=[],De=[];N.fetchers.forEach((Ge,Mt)=>{Ge.state==="idle"&&(Ae.has(Mt)?Se.push(Mt):De.push(Mt))}),Ae.forEach(Ge=>{!N.fetchers.has(Ge)&&!$.has(Ge)&&Se.push(Ge)}),[...g].forEach(Ge=>Ge(N,{deletedFetchers:Se,newErrors:ee.errors??null,viewTransitionOpts:oe.viewTransitionOpts,flushSync:oe.flushSync===!0})),Se.forEach(Ge=>nt(Ge)),De.forEach(Ge=>N.fetchers.delete(Ge))}function Ze(ee,oe,{flushSync:Se}={}){var $t,Ct;let De=N.actionData!=null&&N.navigation.formMethod!=null&&Yr(N.navigation.formMethod)&&N.navigation.state==="loading"&&(($t=ee.state)==null?void 0:$t._isRedirect)!==!0,Ge;oe.actionData?Object.keys(oe.actionData).length>0?Ge=oe.actionData:Ge=null:De?Ge=N.actionData:Ge=null;let Mt=oe.loaderData?v5(N.loaderData,oe.loaderData,oe.matches||[],oe.errors):N.loaderData,It=N.blockers;It.size>0&&(It=new Map(It),It.forEach((Zt,sn)=>It.set(sn,qf)));let mt=U?!1:ht(ee,oe.matches||N.matches),yt=F===!0||N.navigation.formMethod!=null&&Yr(N.navigation.formMethod)&&((Ct=ee.state)==null?void 0:Ct._isRedirect)!==!0;c&&(o=c,c=void 0),U||P==="POP"||(P==="PUSH"?t.history.push(ee,ee.state):P==="REPLACE"&&t.history.replace(ee,ee.state));let xt;if(P==="POP"){let Zt=q.get(N.location.pathname);Zt&&Zt.has(ee.pathname)?xt={currentLocation:N.location,nextLocation:ee}:q.has(ee.pathname)&&(xt={currentLocation:ee,nextLocation:N.location})}else if(L){let Zt=q.get(N.location.pathname);Zt?Zt.add(ee.pathname):(Zt=new Set([ee.pathname]),q.set(N.location.pathname,Zt)),xt={currentLocation:N.location,nextLocation:ee}}ye({...oe,actionData:Ge,loaderData:Mt,historyAction:P,location:ee,initialized:!0,navigation:d1,revalidation:"idle",restoreScrollPosition:mt,preventScrollReset:yt,blockers:It},{viewTransitionOpts:xt,flushSync:Se===!0}),P="POP",F=!1,L=!1,U=!1,k=!1,R==null||R.resolve(),R=null,pe==null||pe.resolve(),pe=null}async function tt(ee,oe){if(R==null||R.resolve(),R=null,typeof ee=="number"){R||(R=w5());let sn=R.promise;return t.history.go(ee),sn}let Se=BM(N.location,N.matches,l,ee,oe==null?void 0:oe.fromRouteId,oe==null?void 0:oe.relative),{path:De,submission:Ge,error:Mt}=l5(!1,Se,oe),It=N.location,mt=qh(N.location,De,oe&&oe.state);mt={...mt,...t.history.encodeLocation(mt)};let yt=oe&&oe.replace!=null?oe.replace:void 0,xt="PUSH";yt===!0?xt="REPLACE":yt===!1||Ge!=null&&Yr(Ge.formMethod)&&Ge.formAction===N.location.pathname+N.location.search&&(xt="REPLACE");let $t=oe&&"preventScrollReset"in oe?oe.preventScrollReset===!0:void 0,Ct=(oe&&oe.flushSync)===!0,Zt=Ie({currentLocation:It,nextLocation:mt,historyAction:xt});if(Zt){Re(Zt,{state:"blocked",location:mt,proceed(){Re(Zt,{state:"proceeding",proceed:void 0,reset:void 0,location:mt}),tt(ee,oe)},reset(){let sn=new Map(N.blockers);sn.set(Zt,qf),ye({blockers:sn})}});return}await lt(xt,mt,{submission:Ge,pendingError:Mt,preventScrollReset:$t,replace:oe&&oe.replace,enableViewTransition:oe&&oe.viewTransition,flushSync:Ct,callSiteDefaultShouldRevalidate:oe&&oe.unstable_defaultShouldRevalidate})}function St(){pe||(pe=w5()),Pe(),ye({revalidation:"loading"});let ee=pe.promise;return N.navigation.state==="submitting"?ee:N.navigation.state==="idle"?(lt(N.historyAction,N.location,{startUninterruptedRevalidation:!0}),ee):(lt(P||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:L===!0}),ee)}async function lt(ee,oe,Se){D&&D.abort(),D=null,P=ee,U=(Se&&Se.startUninterruptedRevalidation)===!0,Qe(N.location,N.matches),F=(Se&&Se.preventScrollReset)===!0,L=(Se&&Se.enableViewTransition)===!0;let De=c||o,Ge=Se&&Se.overrideNavigation,Mt=Se!=null&&Se.initialHydration&&N.matches&&N.matches.length>0&&!E?N.matches:nl(De,oe,l),It=(Se&&Se.flushSync)===!0;if(Mt&&N.initialized&&!k&&Uq(N.location,oe)&&!(Se&&Se.submission&&Yr(Se.submission.formMethod))){Ze(oe,{matches:Mt},{flushSync:It});return}let mt=Gt(Mt,De,oe.pathname);if(mt.active&&mt.matches&&(Mt=mt.matches),!Mt){let{error:Gn,notFoundMatches:sr,route:yn}=rt(oe.pathname);Ze(oe,{matches:sr,loaderData:{},errors:{[yn.id]:Gn}},{flushSync:It});return}D=new AbortController;let yt=Uu(t.history,oe,D.signal,Se&&Se.submission),xt=t.getContext?await t.getContext():new n5,$t;if(Se&&Se.pendingError)$t=[rl(Mt).route.id,{type:"error",error:Se.pendingError}];else if(Se&&Se.submission&&Yr(Se.submission.formMethod)){let Gn=await kt(yt,oe,Se.submission,Mt,xt,mt.active,Se&&Se.initialHydration===!0,{replace:Se.replace,flushSync:It});if(Gn.shortCircuited)return;if(Gn.pendingActionResult){let[sr,yn]=Gn.pendingActionResult;if(Hi(yn)&&Kh(yn.error)&&yn.error.status===404){D=null,Ze(oe,{matches:Gn.matches,loaderData:{},errors:{[sr]:yn.error}});return}}Mt=Gn.matches||Mt,$t=Gn.pendingActionResult,Ge=f1(oe,Se.submission),It=!1,mt.active=!1,yt=Uu(t.history,yt.url,yt.signal)}let{shortCircuited:Ct,matches:Zt,loaderData:sn,errors:Jn}=await re(yt,oe,Mt,xt,mt.active,Ge,Se&&Se.submission,Se&&Se.fetcherSubmission,Se&&Se.replace,Se&&Se.initialHydration===!0,It,$t,Se&&Se.callSiteDefaultShouldRevalidate);Ct||(D=null,Ze(oe,{matches:Zt||Mt,...y5($t),loaderData:sn,errors:Jn}))}async function kt(ee,oe,Se,De,Ge,Mt,It,mt={}){Pe();let yt=qq(oe,Se);if(ye({navigation:yt},{flushSync:mt.flushSync===!0}),Mt){let Ct=await Qt(De,oe.pathname,ee.signal);if(Ct.type==="aborted")return{shortCircuited:!0};if(Ct.type==="error"){if(Ct.partialMatches.length===0){let{matches:sn,route:Jn}=w0(o);return{matches:sn,pendingActionResult:[Jn.id,{type:"error",error:Ct.error}]}}let Zt=rl(Ct.partialMatches).route.id;return{matches:Ct.partialMatches,pendingActionResult:[Zt,{type:"error",error:Ct.error}]}}else if(Ct.matches)De=Ct.matches;else{let{notFoundMatches:Zt,error:sn,route:Jn}=rt(oe.pathname);return{matches:Zt,pendingActionResult:[Jn.id,{type:"error",error:sn}]}}}let xt,$t=Pg(De,oe);if(!$t.route.action&&!$t.route.lazy)xt={type:"error",error:da(405,{method:ee.method,pathname:oe.pathname,routeId:$t.route.id})};else{let Ct=Yu(a,s,ee,De,$t,It?[]:r,Ge),Zt=await ie(ee,Ct,Ge,null);if(xt=Zt[$t.route.id],!xt){for(let sn of De)if(Zt[sn.route.id]){xt=Zt[sn.route.id];break}}if(ee.signal.aborted)return{shortCircuited:!0}}if(oc(xt)){let Ct;return mt&&mt.replace!=null?Ct=mt.replace:Ct=p5(xt.response.headers.get("Location"),new URL(ee.url),l,t.history)===N.location.pathname+N.location.search,await z(ee,xt,!0,{submission:Se,replace:Ct}),{shortCircuited:!0}}if(Hi(xt)){let Ct=rl(De,$t.route.id);return(mt&&mt.replace)!==!0&&(P="PUSH"),{matches:De,pendingActionResult:[Ct.route.id,xt,$t.route.id]}}return{matches:De,pendingActionResult:[$t.route.id,xt]}}async function re(ee,oe,Se,De,Ge,Mt,It,mt,yt,xt,$t,Ct,Zt){let sn=Mt||f1(oe,It),Jn=It||mt||b5(sn),Gn=!U&&!xt;if(Ge){if(Gn){let pt=Ht(Ct);ye({navigation:sn,...pt!==void 0?{actionData:pt}:{}},{flushSync:$t})}let Ke=await Qt(Se,oe.pathname,ee.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){if(Ke.partialMatches.length===0){let{matches:Wt,route:bt}=w0(o);return{matches:Wt,loaderData:{},errors:{[bt.id]:Ke.error}}}let pt=rl(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[pt]:Ke.error}}}else if(Ke.matches)Se=Ke.matches;else{let{error:pt,notFoundMatches:Wt,route:bt}=rt(oe.pathname);return{matches:Wt,loaderData:{},errors:{[bt.id]:pt}}}}let sr=c||o,{dsMatches:yn,revalidatingFetchers:$r}=c5(ee,De,a,s,t.history,N,Se,Jn,oe,xt?[]:r,xt===!0,k,V,Ae,te,H,sr,l,t.patchRoutesOnNavigation!=null,Ct,Zt);if(J=++Y,!t.dataStrategy&&!yn.some(Ke=>Ke.shouldLoad)&&!yn.some(Ke=>Ke.route.middleware&&Ke.route.middleware.length>0)&&$r.length===0){let Ke=ze();return Ze(oe,{matches:Se,loaderData:{},errors:Ct&&Hi(Ct[1])?{[Ct[0]]:Ct[1].error}:null,...y5(Ct),...Ke?{fetchers:new Map(N.fetchers)}:{}},{flushSync:$t}),{shortCircuited:!0}}if(Gn){let Ke={};if(!Ge){Ke.navigation=sn;let pt=Ht(Ct);pt!==void 0&&(Ke.actionData=pt)}$r.length>0&&(Ke.fetchers=Lt($r)),ye(Ke,{flushSync:$t})}$r.forEach(Ke=>{ke(Ke.key),Ke.controller&&$.set(Ke.key,Ke.controller)});let X=()=>$r.forEach(Ke=>ke(Ke.key));D&&D.signal.addEventListener("abort",X);let{loaderResults:ue,fetcherResults:Te}=await Ee(yn,$r,ee,De);if(ee.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",X),$r.forEach(Ke=>$.delete(Ke.key));let ve=_0(ue);if(ve)return await z(ee,ve.result,!0,{replace:yt}),{shortCircuited:!0};if(ve=_0(Te),ve)return H.add(ve.key),await z(ee,ve.result,!0,{replace:yt}),{shortCircuited:!0};let{loaderData:be,errors:ot}=g5(N,Se,ue,Ct,$r,Te);xt&&N.errors&&(ot={...N.errors,...ot});let ct=ze(),it=He(J),ut=ct||it||$r.length>0;return{matches:Se,loaderData:be,errors:ot,...ut?{fetchers:new Map(N.fetchers)}:{}}}function Ht(ee){if(ee&&!Hi(ee[1]))return{[ee[0]]:ee[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function Lt(ee){return ee.forEach(oe=>{let Se=N.fetchers.get(oe.key),De=Xf(void 0,Se?Se.data:void 0);N.fetchers.set(oe.key,De)}),new Map(N.fetchers)}async function zt(ee,oe,Se,De){ke(ee);let Ge=(De&&De.flushSync)===!0,Mt=c||o,It=BM(N.location,N.matches,l,Se,oe,De==null?void 0:De.relative),mt=nl(Mt,It,l),yt=Gt(mt,Mt,It);if(yt.active&&yt.matches&&(mt=yt.matches),!mt){Xe(ee,oe,da(404,{pathname:It}),{flushSync:Ge});return}let{path:xt,submission:$t,error:Ct}=l5(!0,It,De);if(Ct){Xe(ee,oe,Ct,{flushSync:Ge});return}let Zt=t.getContext?await t.getContext():new n5,sn=(De&&De.preventScrollReset)===!0;if($t&&Yr($t.formMethod)){await qe(ee,oe,xt,mt,Zt,yt.active,Ge,sn,$t,De&&De.unstable_defaultShouldRevalidate);return}te.set(ee,{routeId:oe,path:xt}),await Z(ee,oe,xt,mt,Zt,yt.active,Ge,sn,$t)}async function qe(ee,oe,Se,De,Ge,Mt,It,mt,yt,xt){Pe(),te.delete(ee);let $t=N.fetchers.get(ee);ge(ee,Xq(yt,$t),{flushSync:It});let Ct=new AbortController,Zt=Uu(t.history,Se,Ct.signal,yt);if(Mt){let Ft=await Qt(De,new URL(Zt.url).pathname,Zt.signal,ee);if(Ft.type==="aborted")return;if(Ft.type==="error"){Xe(ee,oe,Ft.error,{flushSync:It});return}else if(Ft.matches)De=Ft.matches;else{Xe(ee,oe,da(404,{pathname:Se}),{flushSync:It});return}}let sn=Pg(De,Se);if(!sn.route.action&&!sn.route.lazy){let Ft=da(405,{method:yt.formMethod,pathname:Se,routeId:oe});Xe(ee,oe,Ft,{flushSync:It});return}$.set(ee,Ct);let Jn=Y,Gn=Yu(a,s,Zt,De,sn,r,Ge),sr=await ie(Zt,Gn,Ge,ee),yn=sr[sn.route.id];if(!yn){for(let Ft of Gn)if(sr[Ft.route.id]){yn=sr[Ft.route.id];break}}if(Zt.signal.aborted){$.get(ee)===Ct&&$.delete(ee);return}if(Ae.has(ee)){if(oc(yn)||Hi(yn)){ge(ee,Js(void 0));return}}else{if(oc(yn))if($.delete(ee),J>Jn){ge(ee,Js(void 0));return}else return H.add(ee),ge(ee,Xf(yt)),z(Zt,yn,!1,{fetcherSubmission:yt,preventScrollReset:mt});if(Hi(yn)){Xe(ee,oe,yn.error);return}}let $r=N.navigation.location||N.location,X=Uu(t.history,$r,Ct.signal),ue=c||o,Te=N.navigation.state!=="idle"?nl(ue,N.navigation.location,l):N.matches;un(Te,"Didn't find any matches after fetcher action");let ve=++Y;W.set(ee,ve);let be=Xf(yt,yn.data);N.fetchers.set(ee,be);let{dsMatches:ot,revalidatingFetchers:ct}=c5(X,Ge,a,s,t.history,N,Te,yt,$r,r,!1,k,V,Ae,te,H,ue,l,t.patchRoutesOnNavigation!=null,[sn.route.id,yn],xt);ct.filter(Ft=>Ft.key!==ee).forEach(Ft=>{let wn=Ft.key,Tn=N.fetchers.get(wn),fn=Xf(void 0,Tn?Tn.data:void 0);N.fetchers.set(wn,fn),ke(wn),Ft.controller&&$.set(wn,Ft.controller)}),ye({fetchers:new Map(N.fetchers)});let it=()=>ct.forEach(Ft=>ke(Ft.key));Ct.signal.addEventListener("abort",it);let{loaderResults:ut,fetcherResults:Ke}=await Ee(ot,ct,X,Ge);if(Ct.signal.aborted)return;if(Ct.signal.removeEventListener("abort",it),W.delete(ee),$.delete(ee),ct.forEach(Ft=>$.delete(Ft.key)),N.fetchers.has(ee)){let Ft=Js(yn.data);N.fetchers.set(ee,Ft)}let pt=_0(ut);if(pt)return z(X,pt.result,!1,{preventScrollReset:mt});if(pt=_0(Ke),pt)return H.add(pt.key),z(X,pt.result,!1,{preventScrollReset:mt});let{loaderData:Wt,errors:bt}=g5(N,Te,ut,void 0,ct,Ke);He(ve),N.navigation.state==="loading"&&ve>J?(un(P,"Expected pending action"),D&&D.abort(),Ze(N.navigation.location,{matches:Te,loaderData:Wt,errors:bt,fetchers:new Map(N.fetchers)})):(ye({errors:bt,loaderData:v5(N.loaderData,Wt,Te,bt),fetchers:new Map(N.fetchers)}),k=!1)}async function Z(ee,oe,Se,De,Ge,Mt,It,mt,yt){let xt=N.fetchers.get(ee);ge(ee,Xf(yt,xt?xt.data:void 0),{flushSync:It});let $t=new AbortController,Ct=Uu(t.history,Se,$t.signal);if(Mt){let yn=await Qt(De,new URL(Ct.url).pathname,Ct.signal,ee);if(yn.type==="aborted")return;if(yn.type==="error"){Xe(ee,oe,yn.error,{flushSync:It});return}else if(yn.matches)De=yn.matches;else{Xe(ee,oe,da(404,{pathname:Se}),{flushSync:It});return}}let Zt=Pg(De,Se);$.set(ee,$t);let sn=Y,Jn=Yu(a,s,Ct,De,Zt,r,Ge),sr=(await ie(Ct,Jn,Ge,ee))[Zt.route.id];if($.get(ee)===$t&&$.delete(ee),!Ct.signal.aborted){if(Ae.has(ee)){ge(ee,Js(void 0));return}if(oc(sr))if(J>sn){ge(ee,Js(void 0));return}else{H.add(ee),await z(Ct,sr,!1,{preventScrollReset:mt});return}if(Hi(sr)){Xe(ee,oe,sr.error);return}ge(ee,Js(sr.data))}}async function z(ee,oe,Se,{submission:De,fetcherSubmission:Ge,preventScrollReset:Mt,replace:It}={}){Se||(R==null||R.resolve(),R=null),oe.response.headers.has("X-Remix-Revalidate")&&(k=!0);let mt=oe.response.headers.get("Location");un(mt,"Expected a Location header on the redirect Response"),mt=p5(mt,new URL(ee.url),l,t.history);let yt=qh(N.location,mt,{_isRedirect:!0});if(n){let Jn=!1;if(oe.response.headers.has("X-Remix-Reload-Document"))Jn=!0;else if(YA(mt)){const Gn=J8(mt,!0);Jn=Gn.origin!==e.location.origin||ya(Gn.pathname,l)==null}if(Jn){It?e.location.replace(mt):e.location.assign(mt);return}}D=null;let xt=It===!0||oe.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:$t,formAction:Ct,formEncType:Zt}=N.navigation;!De&&!Ge&&$t&&Ct&&Zt&&(De=b5(N.navigation));let sn=De||Ge;if(Sq.has(oe.response.status)&&sn&&Yr(sn.formMethod))await lt(xt,yt,{submission:{...sn,formAction:mt},preventScrollReset:Mt||F,enableViewTransition:Se?L:void 0});else{let Jn=f1(yt,De);await lt(xt,yt,{overrideNavigation:Jn,fetcherSubmission:Ge,preventScrollReset:Mt||F,enableViewTransition:Se?L:void 0})}}async function ie(ee,oe,Se,De){var It;let Ge,Mt={};try{Ge=await Oq(h,ee,oe,De,Se,!1)}catch(mt){return oe.filter(yt=>yt.shouldLoad).forEach(yt=>{Mt[yt.route.id]={type:"error",error:mt}}),Mt}if(ee.signal.aborted)return Mt;if(!Yr(ee.method))for(let mt of oe){if(((It=Ge[mt.route.id])==null?void 0:It.type)==="error")break;!Ge.hasOwnProperty(mt.route.id)&&!N.loaderData.hasOwnProperty(mt.route.id)&&(!N.errors||!N.errors.hasOwnProperty(mt.route.id))&&mt.shouldCallHandler()&&(Ge[mt.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${mt.route.id}`)})}for(let[mt,yt]of Object.entries(Ge))if(Vq(yt)){let xt=yt.result;Mt[mt]={type:"redirect",response:Lq(xt,ee,mt,oe,l)}}else Mt[mt]=await kq(yt);return Mt}async function Ee(ee,oe,Se,De){let Ge=ie(Se,ee,De,null),Mt=Promise.all(oe.map(async yt=>{if(yt.matches&&yt.match&&yt.request&&yt.controller){let $t=(await ie(yt.request,yt.matches,De,yt.key))[yt.match.route.id];return{[yt.key]:$t}}else return Promise.resolve({[yt.key]:{type:"error",error:da(404,{pathname:yt.path})}})})),It=await Ge,mt=(await Mt).reduce((yt,xt)=>Object.assign(yt,xt),{});return{loaderResults:It,fetcherResults:mt}}function Pe(){k=!0,te.forEach((ee,oe)=>{$.has(oe)&&V.add(oe),ke(oe)})}function ge(ee,oe,Se={}){N.fetchers.set(ee,oe),ye({fetchers:new Map(N.fetchers)},{flushSync:(Se&&Se.flushSync)===!0})}function Xe(ee,oe,Se,De={}){let Ge=rl(N.matches,oe);nt(ee),ye({errors:{[Ge.route.id]:Se},fetchers:new Map(N.fetchers)},{flushSync:(De&&De.flushSync)===!0})}function Le(ee){return we.set(ee,(we.get(ee)||0)+1),Ae.has(ee)&&Ae.delete(ee),N.fetchers.get(ee)||Mq}function ft(ee,oe){ke(ee,oe==null?void 0:oe.reason),ge(ee,Js(null))}function nt(ee){let oe=N.fetchers.get(ee);$.has(ee)&&!(oe&&oe.state==="loading"&&W.has(ee))&&ke(ee),te.delete(ee),W.delete(ee),H.delete(ee),Ae.delete(ee),V.delete(ee),N.fetchers.delete(ee)}function Ue(ee){let oe=(we.get(ee)||0)-1;oe<=0?(we.delete(ee),Ae.add(ee)):we.set(ee,oe),ye({fetchers:new Map(N.fetchers)})}function ke(ee,oe){let Se=$.get(ee);Se&&(Se.abort(oe),$.delete(ee))}function Fe(ee){for(let oe of ee){let Se=Le(oe),De=Js(Se.data);N.fetchers.set(oe,De)}}function ze(){let ee=[],oe=!1;for(let Se of H){let De=N.fetchers.get(Se);un(De,`Expected fetcher: ${Se}`),De.state==="loading"&&(H.delete(Se),ee.push(Se),oe=!0)}return Fe(ee),oe}function He(ee){let oe=[];for(let[Se,De]of W)if(De0}function vt(ee,oe){let Se=N.blockers.get(ee)||qf;return ne.get(ee)!==oe&&ne.set(ee,oe),Se}function ae(ee){N.blockers.delete(ee),ne.delete(ee)}function Re(ee,oe){let Se=N.blockers.get(ee)||qf;un(Se.state==="unblocked"&&oe.state==="blocked"||Se.state==="blocked"&&oe.state==="blocked"||Se.state==="blocked"&&oe.state==="proceeding"||Se.state==="blocked"&&oe.state==="unblocked"||Se.state==="proceeding"&&oe.state==="unblocked",`Invalid blocker state transition: ${Se.state} -> ${oe.state}`);let De=new Map(N.blockers);De.set(ee,oe),ye({blockers:De})}function Ie({currentLocation:ee,nextLocation:oe,historyAction:Se}){if(ne.size===0)return;ne.size>1&&dr(!1,"A router only supports one blocker at a time");let De=Array.from(ne.entries()),[Ge,Mt]=De[De.length-1],It=N.blockers.get(Ge);if(!(It&&It.state==="proceeding")&&Mt({currentLocation:ee,nextLocation:oe,historyAction:Se}))return Ge}function rt(ee){let oe=da(404,{pathname:ee}),Se=c||o,{matches:De,route:Ge}=w0(Se);return{notFoundMatches:De,route:Ge,error:oe}}function $e(ee,oe,Se){if(b=ee,v=oe,y=Se||null,!w&&N.navigation===d1){w=!0;let De=ht(N.location,N.matches);De!=null&&ye({restoreScrollPosition:De})}return()=>{b=null,v=null,y=null}}function he(ee,oe){return y&&y(ee,oe.map(De=>YW(De,N.loaderData)))||ee.key}function Qe(ee,oe){if(b&&v){let Se=he(ee,oe);b[Se]=v()}}function ht(ee,oe){if(b){let Se=he(ee,oe),De=b[Se];if(typeof De=="number")return De}return null}function Gt(ee,oe,Se){if(t.patchRoutesOnNavigation)if(ee){if(Object.keys(ee[0].params).length>0)return{active:!0,matches:wh(oe,Se,l,!0)}}else return{active:!0,matches:wh(oe,Se,l,!0)||[]};return{active:!1,matches:null}}async function Qt(ee,oe,Se,De){if(!t.patchRoutesOnNavigation)return{type:"success",matches:ee};let Ge=ee;for(;;){let Mt=c==null,It=c||o,mt=s;try{await t.patchRoutesOnNavigation({signal:Se,path:oe,matches:Ge,fetcherKey:De,patch:($t,Ct)=>{Se.aborted||u5($t,Ct,It,mt,a,!1)}})}catch($t){return{type:"error",error:$t,partialMatches:Ge}}finally{Mt&&!Se.aborted&&(o=[...o])}if(Se.aborted)return{type:"aborted"};let yt=nl(It,oe,l),xt=null;if(yt){if(Object.keys(yt[0].params).length===0)return{type:"success",matches:yt};if(xt=wh(It,oe,l,!0),!(xt&&Ge.lengthSe.route.id===oe[De].route.id)}function En(ee){s={},c=Xh(ee,a,void 0,s)}function Oi(ee,oe,Se=!1){let De=c==null;u5(ee,oe,c||o,s,a,Se),De&&(o=[...o],ye({}))}return A={get basename(){return l},get future(){return f},get state(){return N},get routes(){return o},get window(){return e},initialize:fe,subscribe:Ce,enableScrollRestoration:$e,navigate:tt,fetch:zt,revalidate:St,createHref:ee=>t.history.createHref(ee),encodeLocation:ee=>t.history.encodeLocation(ee),getFetcher:Le,resetFetcher:ft,deleteFetcher:Ue,dispose:ce,getBlocker:vt,deleteBlocker:ae,patchRoutes:Oi,_internalFetchControllers:$,_internalSetRoutes:En,_internalSetStateDoNotUseOrYouWillBreakYourApp(ee){ye(ee)}},t.unstable_instrumentations&&(A=mq(A,t.unstable_instrumentations.map(ee=>ee.router).filter(Boolean))),A}function Aq(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function BM(t,e,n,r,i,a){let s,o;if(i){s=[];for(let l of e)if(s.push(l),l.route.id===i){o=l;break}}else s=e,o=e[e.length-1];let c=JA(r||".",ZA(s),ya(t.pathname,n)||t.pathname,a==="path");if(r==null&&(c.search=t.search,c.hash=t.hash),(r==null||r===""||r===".")&&o){let l=tN(c.search);if(o.route.index&&!l)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!o.route.index&&l){let h=new URLSearchParams(c.search),f=h.getAll("index");h.delete("index"),f.filter(g=>g).forEach(g=>h.append("index",g));let m=h.toString();c.search=m?`?${m}`:""}}return n!=="/"&&(c.pathname=cq({basename:n,pathname:c.pathname})),ws(c)}function l5(t,e,n){if(!n||!Aq(n))return{path:e};if(n.formMethod&&!Wq(n.formMethod))return{path:e,error:da(405,{method:n.formMethod})};let r=()=>({path:e,error:da(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=mB(e);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Yr(a))return r();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((m,[g,b])=>`${m}${g}=${b} -`,""):String(n.body);return{path:e,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!Yr(a))return r();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:e,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return r()}}}un(typeof FormData=="function","FormData is not available in this environment");let o,c;if(n.formData)o=VM(n.formData),c=n.formData;else if(n.body instanceof FormData)o=VM(n.body),c=n.body;else if(n.body instanceof URLSearchParams)o=n.body,c=m5(o);else if(n.body==null)o=new URLSearchParams,c=new FormData;else try{o=new URLSearchParams(n.body),c=m5(o)}catch{return r()}let l={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Yr(l.formMethod))return{path:e,submission:l};let h=_l(e);return t&&h.search&&tN(h.search)&&o.append("index",""),h.search=`?${o}`,{path:ws(h),submission:l}}function c5(t,e,n,r,i,a,s,o,c,l,h,f,m,g,b,y,v,w,_,E,M){var U;let T=E?Hi(E[1])?E[1].error:E[1].data:void 0,A=i.createURL(a.location),N=i.createURL(c),P;if(h&&a.errors){let k=Object.keys(a.errors)[0];P=s.findIndex(V=>V.route.id===k)}else if(E&&Hi(E[1])){let k=E[0];P=s.findIndex(V=>V.route.id===k)-1}let R=E?E[1].statusCode:void 0,F=R&&R>=400,D={currentUrl:A,currentParams:((U=a.matches[0])==null?void 0:U.params)||{},nextUrl:N,nextParams:s[0].params,...o,actionResult:T,actionStatus:R},L=Xp(s),q=s.map((k,V)=>{let{route:$}=k,Y=null;if(P!=null&&V>P?Y=!1:$.lazy?Y=!0:QA($)?h?Y=zM($,a.loaderData,a.errors):Nq(a.loaderData,a.matches[V],k)&&(Y=!0):Y=!1,Y!==null)return $M(n,r,t,L,k,l,e,Y);let J=!1;typeof M=="boolean"?J=M:F?J=!1:(f||A.pathname+A.search===N.pathname+N.search||A.search!==N.search||Pq(a.matches[V],k))&&(J=!0);let W={...D,defaultShouldRevalidate:J},H=Rh(k,W);return $M(n,r,t,L,k,l,e,H,W,M)}),I=[];return b.forEach((k,V)=>{if(h||!s.some(Ae=>Ae.route.id===k.routeId)||g.has(V))return;let $=a.fetchers.get(V),Y=$&&$.state!=="idle"&&$.data===void 0,J=nl(v,k.path,w);if(!J){if(_&&Y)return;I.push({key:V,routeId:k.routeId,path:k.path,matches:null,match:null,request:null,controller:null});return}if(y.has(V))return;let W=Pg(J,k.path),H=new AbortController,te=Uu(i,k.path,H.signal),we=null;if(m.has(V))m.delete(V),we=Yu(n,r,te,J,W,l,e);else if(Y)f&&(we=Yu(n,r,te,J,W,l,e));else{let Ae;typeof M=="boolean"?Ae=M:F?Ae=!1:Ae=f;let ne={...D,defaultShouldRevalidate:Ae};Rh(W,ne)&&(we=Yu(n,r,te,J,W,l,e,ne))}we&&I.push({key:V,routeId:k.routeId,path:k.path,matches:we,match:W,request:te,controller:H})}),{dsMatches:q,revalidatingFetchers:I}}function QA(t){return t.loader!=null||t.middleware!=null&&t.middleware.length>0}function zM(t,e,n){if(t.lazy)return!0;if(!QA(t))return!1;let r=e!=null&&t.id in e,i=n!=null&&n[t.id]!==void 0;return!r&&i?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!r&&!i}function Nq(t,e,n){let r=!e||n.route.id!==e.route.id,i=!t.hasOwnProperty(n.route.id);return r||i}function Pq(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function Rh(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}function u5(t,e,n,r,i,a){let s;if(t){let l=r[t];un(l,`No route found to patch children into: routeId = ${t}`),l.children||(l.children=[]),s=l.children}else s=n;let o=[],c=[];if(e.forEach(l=>{let h=s.find(f=>uB(l,f));h?c.push({existingRoute:h,newRoute:l}):o.push(l)}),o.length>0){let l=Xh(o,i,[t||"_","patch",String((s==null?void 0:s.length)||"0")],r);s.push(...l)}if(a&&c.length>0)for(let l=0;l{var i;return(i=e.children)==null?void 0:i.some(a=>uB(n,a))}):!1}var d5=new WeakMap,dB=({key:t,route:e,manifest:n,mapRouteProperties:r})=>{let i=n[e.id];if(un(i,"No route found in manifest"),!i.lazy||typeof i.lazy!="object")return;let a=i.lazy[t];if(!a)return;let s=d5.get(i);s||(s={},d5.set(i,s));let o=s[t];if(o)return o;let c=(async()=>{let l=WW(t),f=i[t]!==void 0&&t!=="hasErrorBoundary";if(l)dr(!l,"Route property "+t+" is not a supported lazy route property. This property will be ignored."),s[t]=Promise.resolve();else if(f)dr(!1,`Route "${i.id}" has a static property "${t}" defined. The lazy property will be ignored.`);else{let m=await a();m!=null&&(Object.assign(i,{[t]:m}),Object.assign(i,r(i)))}typeof i.lazy=="object"&&(i.lazy[t]=void 0,Object.values(i.lazy).every(m=>m===void 0)&&(i.lazy=void 0))})();return s[t]=c,c},f5=new WeakMap;function Cq(t,e,n,r,i){let a=n[t.id];if(un(a,"No route found in manifest"),!t.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof t.lazy=="function"){let h=f5.get(a);if(h)return{lazyRoutePromise:h,lazyHandlerPromise:h};let f=(async()=>{un(typeof t.lazy=="function","No lazy route function found");let m=await t.lazy(),g={};for(let b in m){let y=m[b];if(y===void 0)continue;let v=XW(b),_=a[b]!==void 0&&b!=="hasErrorBoundary";v?dr(!v,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):_?dr(!_,`Route "${a.id}" has a static property "${b}" defined but its lazy function is also returning a value for this property. The lazy route property "${b}" will be ignored.`):g[b]=y}Object.assign(a,g),Object.assign(a,{...r(a),lazy:void 0})})();return f5.set(a,f),f.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:f}}let s=Object.keys(t.lazy),o=[],c;for(let h of s){if(i&&i.includes(h))continue;let f=dB({key:h,route:t,manifest:n,mapRouteProperties:r});f&&(o.push(f),h===e&&(c=f))}let l=o.length>0?Promise.all(o).then(()=>{}):void 0;return l==null||l.catch(()=>{}),c==null||c.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function h5(t){let e=t.matches.filter(i=>i.shouldLoad),n={};return(await Promise.all(e.map(i=>i.resolve()))).forEach((i,a)=>{n[e[a].route.id]=i}),n}async function Rq(t){return t.matches.some(e=>e.route.middleware)?fB(t,()=>h5(t)):h5(t)}function fB(t,e){return jq(t,e,r=>{if(Gq(r))throw r;return r},zq,n);function n(r,i,a){if(a)return Promise.resolve(Object.assign(a.value,{[i]:{type:"error",result:r}}));{let{matches:s}=t,o=Math.min(Math.max(s.findIndex(l=>l.route.id===i),0),Math.max(s.findIndex(l=>l.shouldCallHandler()),0)),c=rl(s,s[o].route.id).route.id;return Promise.resolve({[c]:{type:"error",result:r}})}}}async function jq(t,e,n,r,i){let{matches:a,request:s,params:o,context:c,unstable_pattern:l}=t,h=a.flatMap(m=>m.route.middleware?m.route.middleware.map(g=>[m.route.id,g]):[]);return await hB({request:s,params:o,context:c,unstable_pattern:l},h,e,n,r,i)}async function hB(t,e,n,r,i,a,s=0){let{request:o}=t;if(o.signal.aborted)throw o.signal.reason??new Error(`Request aborted: ${o.method} ${o.url}`);let c=e[s];if(!c)return await n();let[l,h]=c,f,m=async()=>{if(f)throw new Error("You may only call `next()` once per middleware");try{return f={value:await hB(t,e,n,r,i,a,s+1)},f.value}catch(g){return f={value:await a(g,l,f)},f.value}};try{let g=await h(t,m),b=g!=null?r(g):void 0;return i(b)?b:f?b??f.value:(f={value:await m()},f.value)}catch(g){return await a(g,l,f)}}function pB(t,e,n,r,i){let a=dB({key:"middleware",route:r.route,manifest:e,mapRouteProperties:t}),s=Cq(r.route,Yr(n.method)?"action":"loader",e,t,i);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function $M(t,e,n,r,i,a,s,o,c=null,l){let h=!1,f=pB(t,e,n,i,a);return{...i,_lazyPromises:f,shouldLoad:o,shouldRevalidateArgs:c,shouldCallHandler(m){return h=!0,c?typeof l=="boolean"?Rh(i,{...c,defaultShouldRevalidate:l}):typeof m=="boolean"?Rh(i,{...c,defaultShouldRevalidate:m}):Rh(i,c):o},resolve(m){let{lazy:g,loader:b,middleware:y}=i.route,v=h||o||m&&!Yr(n.method)&&(g||b),w=y&&y.length>0&&!b&&!g;return v&&(Yr(n.method)||!w)?Iq({request:n,unstable_pattern:r,match:i,lazyHandlerPromise:f==null?void 0:f.handler,lazyRoutePromise:f==null?void 0:f.route,handlerOverride:m,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function Yu(t,e,n,r,i,a,s,o=null){return r.map(c=>c.route.id!==i.route.id?{...c,shouldLoad:!1,shouldRevalidateArgs:o,shouldCallHandler:()=>!1,_lazyPromises:pB(t,e,n,c,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:$M(t,e,n,Xp(r),c,a,s,!0,o))}async function Oq(t,e,n,r,i,a){n.some(l=>{var h;return(h=l._lazyPromises)==null?void 0:h.middleware})&&await Promise.all(n.map(l=>{var h;return(h=l._lazyPromises)==null?void 0:h.middleware}));let s={request:e,unstable_pattern:Xp(n),params:n[0].params,context:i,matches:n},c=await t({...s,fetcherKey:r,runClientMiddleware:l=>{let h=s;return fB(h,()=>l({...h,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(l=>{var h,f;return[(h=l._lazyPromises)==null?void 0:h.handler,(f=l._lazyPromises)==null?void 0:f.route]}))}catch{}return c}async function Iq({request:t,unstable_pattern:e,match:n,lazyHandlerPromise:r,lazyRoutePromise:i,handlerOverride:a,scopedContext:s}){let o,c,l=Yr(t.method),h=l?"action":"loader",f=m=>{let g,b=new Promise((w,_)=>g=_);c=()=>g(),t.signal.addEventListener("abort",c);let y=w=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${h}" [routeId: ${n.route.id}]`)):m({request:t,unstable_pattern:e,params:n.params,context:s},...w!==void 0?[w]:[]),v=(async()=>{try{return{type:"data",result:await(a?a(_=>y(_)):y())}}catch(w){return{type:"error",result:w}}})();return Promise.race([v,b])};try{let m=l?n.route.action:n.route.loader;if(r||i)if(m){let g,[b]=await Promise.all([f(m).catch(y=>{g=y}),r,i]);if(g!==void 0)throw g;o=b}else{await r;let g=l?n.route.action:n.route.loader;if(g)[o]=await Promise.all([f(g),i]);else if(h==="action"){let b=new URL(t.url),y=b.pathname+b.search;throw da(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:"data",result:void 0}}else if(m)o=await f(m);else{let g=new URL(t.url),b=g.pathname+g.search;throw da(404,{pathname:b})}}catch(m){return{type:"error",result:m}}finally{c&&t.signal.removeEventListener("abort",c)}return o}async function Dq(t){let e=t.headers.get("Content-Type");return e&&/\bapplication\/json\b/.test(e)?t.body==null?null:t.json():t.text()}async function kq(t){var r,i,a,s,o;let{result:e,type:n}=t;if(eN(e)){let c;try{c=await Dq(e)}catch(l){return{type:"error",error:l}}return n==="error"?{type:"error",error:new qp(e.status,e.statusText,c),statusCode:e.status,headers:e.headers}:{type:"data",data:c,statusCode:e.status,headers:e.headers}}return n==="error"?x5(e)?e.data instanceof Error?{type:"error",error:e.data,statusCode:(r=e.init)==null?void 0:r.status,headers:(i=e.init)!=null&&i.headers?new Headers(e.init.headers):void 0}:{type:"error",error:Bq(e),statusCode:Kh(e)?e.status:void 0,headers:(a=e.init)!=null&&a.headers?new Headers(e.init.headers):void 0}:{type:"error",error:e,statusCode:Kh(e)?e.status:void 0}:x5(e)?{type:"data",data:e.data,statusCode:(s=e.init)==null?void 0:s.status,headers:(o=e.init)!=null&&o.headers?new Headers(e.init.headers):void 0}:{type:"data",data:e}}function Lq(t,e,n,r,i){let a=t.headers.get("Location");if(un(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!YA(a)){let s=r.slice(0,r.findIndex(o=>o.route.id===n)+1);a=BM(new URL(e.url),s,i,a),t.headers.set("Location",a)}return t}function p5(t,e,n,r){let i=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(YA(t)){let a=t,s=a.startsWith("//")?new URL(e.protocol+a):new URL(a);if(i.includes(s.protocol))throw new Error("Invalid redirect location");let o=ya(s.pathname,n)!=null;if(s.origin===e.origin&&o)return s.pathname+s.search+s.hash}try{let a=r.createURL(t);if(i.includes(a.protocol))throw new Error("Invalid redirect location")}catch{}return t}function Uu(t,e,n,r){let i=t.createURL(mB(e)).toString(),a={signal:n};if(r&&Yr(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=VM(r.formData):a.body=r.formData}return new Request(i,a)}function VM(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function m5(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function Fq(t,e,n,r=!1,i=!1){let a={},s=null,o,c=!1,l={},h=n&&Hi(n[1])?n[1].error:void 0;return t.forEach(f=>{if(!(f.route.id in e))return;let m=f.route.id,g=e[m];if(un(!oc(g),"Cannot handle redirect results in processLoaderData"),Hi(g)){let b=g.error;if(h!==void 0&&(b=h,h=void 0),s=s||{},i)s[m]=b;else{let y=rl(t,m);s[y.route.id]==null&&(s[y.route.id]=b)}r||(a[m]=cB),c||(c=!0,o=Kh(g.error)?g.error.status:500),g.headers&&(l[m]=g.headers)}else a[m]=g.data,g.statusCode&&g.statusCode!==200&&!c&&(o=g.statusCode),g.headers&&(l[m]=g.headers)}),h!==void 0&&n&&(s={[n[0]]:h},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:l}}function g5(t,e,n,r,i,a){let{loaderData:s,errors:o}=Fq(e,n,r);return i.filter(c=>!c.matches||c.matches.some(l=>l.shouldLoad)).forEach(c=>{let{key:l,match:h,controller:f}=c;if(f&&f.signal.aborted)return;let m=a[l];if(un(m,"Did not find corresponding fetcher result"),Hi(m)){let g=rl(t.matches,h==null?void 0:h.route.id);o&&o[g.route.id]||(o={...o,[g.route.id]:m.error}),t.fetchers.delete(l)}else if(oc(m))un(!1,"Unhandled fetcher revalidation redirect");else{let g=Js(m.data);t.fetchers.set(l,g)}}),{loaderData:s,errors:o}}function v5(t,e,n,r){let i=Object.entries(e).filter(([,a])=>a!==cB).reduce((a,[s,o])=>(a[s]=o,a),{});for(let a of n){let s=a.route.id;if(!e.hasOwnProperty(s)&&t.hasOwnProperty(s)&&a.route.loader&&(i[s]=t[s]),r&&r.hasOwnProperty(s))break}return i}function y5(t){return t?Hi(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function rl(t,e){return(e?t.slice(0,t.findIndex(r=>r.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function w0(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function da(t,{pathname:e,routeId:n,method:r,type:i,message:a}={}){let s="Unknown Server Error",o="Unknown @remix-run/router error";return t===400?(s="Bad Request",r&&e&&n?o=`You made a ${r} request to "${e}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i==="invalid-body"&&(o="Unable to encode submission body")):t===403?(s="Forbidden",o=`Route "${n}" does not match URL "${e}"`):t===404?(s="Not Found",o=`No route matches URL "${e}"`):t===405&&(s="Method Not Allowed",r&&e&&n?o=`You made a ${r.toUpperCase()} request to "${e}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(o=`Invalid request method "${r.toUpperCase()}"`)),new qp(t||500,s,new Error(o),!0)}function _0(t){let e=Object.entries(t);for(let n=e.length-1;n>=0;n--){let[r,i]=e[n];if(oc(i))return{key:r,result:i}}}function mB(t){let e=typeof t=="string"?_l(t):t;return ws({...e,hash:""})}function Uq(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Bq(t){var e,n;return new qp(((e=t.init)==null?void 0:e.status)??500,((n=t.init)==null?void 0:n.statusText)??"Internal Server Error",t.data)}function zq(t){return t!=null&&typeof t=="object"&&Object.entries(t).every(([e,n])=>typeof e=="string"&&$q(n))}function $q(t){return t!=null&&typeof t=="object"&&"type"in t&&"result"in t&&(t.type==="data"||t.type==="error")}function Vq(t){return eN(t.result)&&oB.has(t.result.status)}function Hi(t){return t.type==="error"}function oc(t){return(t&&t.type)==="redirect"}function x5(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function eN(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function Hq(t){return oB.has(t)}function Gq(t){return eN(t)&&Hq(t.status)&&t.headers.has("Location")}function Wq(t){return _q.has(t.toUpperCase())}function Yr(t){return bq.has(t.toUpperCase())}function tN(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Pg(t,e){let n=typeof e=="string"?_l(e).search:e.search;if(t[t.length-1].route.index&&tN(n||""))return t[t.length-1];let r=nB(t);return r[r.length-1]}function b5(t){let{formMethod:e,formAction:n,formEncType:r,text:i,formData:a,json:s}=t;if(!(!e||!n||!r)){if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:e,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function f1(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function qq(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function Xf(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Xq(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Js(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Kq(t,e){try{let n=t.sessionStorage.getItem(lB);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&e.set(i,new Set(a||[]))}}catch{}}function Yq(t,e){if(e.size>0){let n={};for(let[r,i]of e)n[r]=[...i];try{t.sessionStorage.setItem(lB,JSON.stringify(n))}catch(r){dr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function w5(){let t,e,n=new Promise((r,i)=>{t=async a=>{r(a);try{await n}catch{}},e=async a=>{i(a);try{await n}catch{}}});return{promise:n,resolve:t,reject:e}}var Lc=O.createContext(null);Lc.displayName="DataRouter";var Kp=O.createContext(null);Kp.displayName="DataRouterState";var gB=O.createContext(!1);function Zq(){return O.useContext(gB)}var nN=O.createContext({isTransitioning:!1});nN.displayName="ViewTransition";var vB=O.createContext(new Map);vB.displayName="Fetchers";var Jq=O.createContext(null);Jq.displayName="Await";var _a=O.createContext(null);_a.displayName="Navigation";var Ry=O.createContext(null);Ry.displayName="Location";var Ps=O.createContext({outlet:null,matches:[],isDataRoute:!1});Ps.displayName="Route";var rN=O.createContext(null);rN.displayName="RouteError";var yB="REACT_ROUTER_ERROR",Qq="REDIRECT",eX="ROUTE_ERROR_RESPONSE";function tX(t){if(t.startsWith(`${yB}:${Qq}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function nX(t){if(t.startsWith(`${yB}:${eX}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new qp(e.status,e.statusText,e.data)}catch{}}function rX(t,{relative:e}={}){un(Yp(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=O.useContext(_a),{hash:i,pathname:a,search:s}=Zp(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:hs([n,a])),r.createHref({pathname:o,search:s,hash:i})}function Yp(){return O.useContext(Ry)!=null}function Sl(){return un(Yp(),"useLocation() may be used only in the context of a component."),O.useContext(Ry).location}var xB="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bB(t){O.useContext(_a).static||O.useLayoutEffect(t)}function wB(){let{isDataRoute:t}=O.useContext(Ps);return t?yX():iX()}function iX(){un(Yp(),"useNavigate() may be used only in the context of a component.");let t=O.useContext(Lc),{basename:e,navigator:n}=O.useContext(_a),{matches:r}=O.useContext(Ps),{pathname:i}=Sl(),a=JSON.stringify(ZA(r)),s=O.useRef(!1);return bB(()=>{s.current=!0}),O.useCallback((c,l={})=>{if(dr(s.current,xB),!s.current)return;if(typeof c=="number"){n.go(c);return}let h=JA(c,JSON.parse(a),i,l.relative==="path");t==null&&e!=="/"&&(h.pathname=h.pathname==="/"?e:hs([e,h.pathname])),(l.replace?n.replace:n.push)(h,l.state,l)},[e,n,a,i,t])}var aX=O.createContext(null);function sX(t){let e=O.useContext(Ps).outlet;return O.useMemo(()=>e&&O.createElement(aX.Provider,{value:t},e),[e,t])}function Zp(t,{relative:e}={}){let{matches:n}=O.useContext(Ps),{pathname:r}=Sl(),i=JSON.stringify(ZA(n));return O.useMemo(()=>JA(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function oX(t,e,n,r,i){un(Yp(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=O.useContext(_a),{matches:s}=O.useContext(Ps),o=s[s.length-1],c=o?o.params:{},l=o?o.pathname:"/",h=o?o.pathnameBase:"/",f=o&&o.route;{let _=f&&f.path||"";SB(l,!f||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. - -Please change the parent to .`)}let m=Sl(),g;g=m;let b=g.pathname||"/",y=b;if(h!=="/"){let _=h.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(_.length).join("/")}let v=nl(t,{pathname:y});return dr(f||v!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),dr(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`),fX(v&&v.map(_=>Object.assign({},_,{params:Object.assign({},c,_.params),pathname:hs([h,a.encodeLocation?a.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?h:hs([h,a.encodeLocation?a.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),s,n,r,i)}function lX(){let t=vX(),e=Kh(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:a},"ErrorBoundary")," or"," ",O.createElement("code",{style:a},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},e),n?O.createElement("pre",{style:i},n):null,s)}var cX=O.createElement(lX,null),_B=class extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=nX(t.digest);n&&(t=n)}let e=t!==void 0?O.createElement(Ps.Provider,{value:this.props.routeContext},O.createElement(rN.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?O.createElement(uX,{error:t},e):e}};_B.contextType=gB;var h1=new WeakMap;function uX({children:t,error:e}){let{basename:n}=O.useContext(_a);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=tX(e.digest);if(r){let i=h1.get(e);if(i)throw i;let a=iB(r.location,n);if(rB&&!h1.get(e))if(a.isExternal||r.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:r.replace}));throw h1.set(e,s),s}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return t}function dX({routeContext:t,match:e,children:n}){let r=O.useContext(Lc);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),O.createElement(Ps.Provider,{value:t},n)}function fX(t,e=[],n=null,r=null,i=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,s=n==null?void 0:n.errors;if(s!=null){let h=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);un(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,h+1))}let o=!1,c=-1;if(n)for(let h=0;h=0?a=a.slice(0,c+1):a=[a[0]];break}}}let l=n&&r?(h,f)=>{var m,g;r(h,{location:n.location,params:((g=(m=n.matches)==null?void 0:m[0])==null?void 0:g.params)??{},unstable_pattern:Xp(n.matches),errorInfo:f})}:void 0;return a.reduceRight((h,f,m)=>{let g,b=!1,y=null,v=null;n&&(g=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||cX,o&&(c<0&&m===0?(SB("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,v=null):c===m&&(b=!0,v=f.route.hydrateFallbackElement||null)));let w=e.concat(a.slice(0,m+1)),_=()=>{let E;return g?E=y:b?E=v:f.route.Component?E=O.createElement(f.route.Component,null):f.route.element?E=f.route.element:E=h,O.createElement(dX,{match:f,routeContext:{outlet:h,matches:w,isDataRoute:n!=null},children:E})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?O.createElement(_B,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:_(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:l}):_()},null)}function iN(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hX(t){let e=O.useContext(Lc);return un(e,iN(t)),e}function pX(t){let e=O.useContext(Kp);return un(e,iN(t)),e}function mX(t){let e=O.useContext(Ps);return un(e,iN(t)),e}function aN(t){let e=mX(t),n=e.matches[e.matches.length-1];return un(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function gX(){return aN("useRouteId")}function vX(){var r;let t=O.useContext(rN),e=pX("useRouteError"),n=aN("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function yX(){let{router:t}=hX("useNavigate"),e=aN("useNavigate"),n=O.useRef(!1);return bB(()=>{n.current=!0}),O.useCallback(async(i,a={})=>{dr(n.current,xB),n.current&&(typeof i=="number"?await t.navigate(i):await t.navigate(i,{fromRouteId:e,...a}))},[t,e])}var _5={};function SB(t,e,n){!e&&!_5[t]&&(_5[t]=!0,dr(!1,n))}var S5={};function M5(t,e){!t&&!S5[e]&&(S5[e]=!0,console.warn(e))}var xX="useOptimistic",E5=Y8[xX],bX=()=>{};function wX(t){return E5?E5(t):[t,bX]}function _X(t){let e={hasErrorBoundary:t.hasErrorBoundary||t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&(t.element&&dr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(e,{element:O.createElement(t.Component),Component:void 0})),t.HydrateFallback&&(t.hydrateFallbackElement&&dr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(e,{hydrateFallbackElement:O.createElement(t.HydrateFallback),HydrateFallback:void 0})),t.ErrorBoundary&&(t.errorElement&&dr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(e,{errorElement:O.createElement(t.ErrorBoundary),ErrorBoundary:void 0})),e}var SX=["HydrateFallback","hydrateFallbackElement"],MX=class{constructor(){this.status="pending",this.promise=new Promise((t,e)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",e(n))}})}};function EX({router:t,flushSync:e,onError:n,unstable_useTransitions:r}){r=Zq()||r;let[a,s]=O.useState(t.state),[o,c]=wX(a),[l,h]=O.useState(),[f,m]=O.useState({isTransitioning:!1}),[g,b]=O.useState(),[y,v]=O.useState(),[w,_]=O.useState(),E=O.useRef(new Map),M=O.useCallback((P,{deletedFetchers:R,newErrors:F,flushSync:D,viewTransitionOpts:L})=>{F&&n&&Object.values(F).forEach(I=>{var U;return n(I,{location:P.location,params:((U=P.matches[0])==null?void 0:U.params)??{},unstable_pattern:Xp(P.matches)})}),P.fetchers.forEach((I,U)=>{I.data!==void 0&&E.current.set(U,I.data)}),R.forEach(I=>E.current.delete(I)),M5(D===!1||e!=null,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let q=t.window!=null&&t.window.document!=null&&typeof t.window.document.startViewTransition=="function";if(M5(L==null||q,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!L||!q){e&&D?e(()=>s(P)):r===!1?s(P):O.startTransition(()=>{r===!0&&c(I=>T5(I,P)),s(P)});return}if(e&&D){e(()=>{y&&(g==null||g.resolve(),y.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let I=t.window.document.startViewTransition(()=>{e(()=>s(P))});I.finished.finally(()=>{e(()=>{b(void 0),v(void 0),h(void 0),m({isTransitioning:!1})})}),e(()=>v(I));return}y?(g==null||g.resolve(),y.skipTransition(),_({state:P,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(h(P),m({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[t.window,e,y,g,r,c,n]);O.useLayoutEffect(()=>t.subscribe(M),[t,M]),O.useEffect(()=>{f.isTransitioning&&!f.flushSync&&b(new MX)},[f]),O.useEffect(()=>{if(g&&l&&t.window){let P=l,R=g.promise,F=t.window.document.startViewTransition(async()=>{r===!1?s(P):O.startTransition(()=>{r===!0&&c(D=>T5(D,P)),s(P)}),await R});F.finished.finally(()=>{b(void 0),v(void 0),h(void 0),m({isTransitioning:!1})}),v(F)}},[l,g,t.window,r,c]),O.useEffect(()=>{g&&l&&o.location.key===l.location.key&&g.resolve()},[g,y,o.location,l]),O.useEffect(()=>{!f.isTransitioning&&w&&(h(w.state),m({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),_(void 0))},[f.isTransitioning,w]);let T=O.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:P=>t.navigate(P),push:(P,R,F)=>t.navigate(P,{state:R,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(P,R,F)=>t.navigate(P,{replace:!0,state:R,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[t]),A=t.basename||"/",N=O.useMemo(()=>({router:t,navigator:T,static:!1,basename:A,onError:n}),[t,T,A,n]);return O.createElement(O.Fragment,null,O.createElement(Lc.Provider,{value:N},O.createElement(Kp.Provider,{value:o},O.createElement(vB.Provider,{value:E.current},O.createElement(nN.Provider,{value:f},O.createElement(PX,{basename:A,location:o.location,navigationType:o.historyAction,navigator:T,unstable_useTransitions:r},O.createElement(TX,{routes:t.routes,future:t.future,state:o,onError:n})))))),null)}function T5(t,e){return{...t,navigation:e.navigation.state!=="idle"?e.navigation:t.navigation,revalidation:e.revalidation!=="idle"?e.revalidation:t.revalidation,actionData:e.navigation.state!=="submitting"?e.actionData:t.actionData,fetchers:e.fetchers}}var TX=O.memo(AX);function AX({routes:t,future:e,state:n,onError:r}){return oX(t,void 0,n,r,e)}function NX(t){return sX(t.context)}function PX({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:a=!1,unstable_useTransitions:s}){un(!Yp(),"You cannot render a inside another . You should never have more than one in your app.");let o=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:o,navigator:i,static:a,unstable_useTransitions:s,future:{}}),[o,i,a,s]);typeof n=="string"&&(n=_l(n));let{pathname:l="/",search:h="",hash:f="",state:m=null,key:g="default"}=n,b=O.useMemo(()=>{let y=ya(l,o);return y==null?null:{location:{pathname:y,search:h,hash:f,state:m,key:g},navigationType:r}},[o,l,h,f,m,g,r]);return dr(b!=null,` is not able to match the URL "${l}${h}${f}" because it does not start with the basename, so the won't render anything.`),b==null?null:O.createElement(_a.Provider,{value:c},O.createElement(Ry.Provider,{children:e,value:b}))}var Cg="get",Rg="application/x-www-form-urlencoded";function jy(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function CX(t){return jy(t)&&t.tagName.toLowerCase()==="button"}function RX(t){return jy(t)&&t.tagName.toLowerCase()==="form"}function jX(t){return jy(t)&&t.tagName.toLowerCase()==="input"}function OX(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function IX(t,e){return t.button===0&&(!e||e==="_self")&&!OX(t)}var S0=null;function DX(){if(S0===null)try{new FormData(document.createElement("form"),0),S0=!1}catch{S0=!0}return S0}var kX=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function p1(t){return t!=null&&!kX.has(t)?(dr(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Rg}"`),null):t}function LX(t,e){let n,r,i,a,s;if(RX(t)){let o=t.getAttribute("action");r=o?ya(o,e):null,n=t.getAttribute("method")||Cg,i=p1(t.getAttribute("enctype"))||Rg,a=new FormData(t)}else if(CX(t)||jX(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a