diff --git a/web/ui/.gitignore b/web/ui/.gitignore index 3217a558..a5223554 100644 --- a/web/ui/.gitignore +++ b/web/ui/.gitignore @@ -8,7 +8,6 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist dist-ssr *.local diff --git a/web/ui/dist/assets/index-ApPLU5eo.js b/web/ui/dist/assets/index-ApPLU5eo.js new file mode 100644 index 00000000..408716c8 --- /dev/null +++ b/web/ui/dist/assets/index-ApPLU5eo.js @@ -0,0 +1,384 @@ +function ST(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Pf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var PT={exports:{}},gh={},ET={exports:{}},Ce={};/** + * @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 Ru=Symbol.for("react.element"),S3=Symbol.for("react.portal"),P3=Symbol.for("react.fragment"),E3=Symbol.for("react.strict_mode"),O3=Symbol.for("react.profiler"),C3=Symbol.for("react.provider"),_3=Symbol.for("react.context"),T3=Symbol.for("react.forward_ref"),A3=Symbol.for("react.suspense"),j3=Symbol.for("react.memo"),$3=Symbol.for("react.lazy"),sS=Symbol.iterator;function M3(e){return e===null||typeof e!="object"?null:(e=sS&&e[sS]||e["@@iterator"],typeof e=="function"?e:null)}var OT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},CT=Object.assign,_T={};function Js(e,t,n){this.props=e,this.context=t,this.refs=_T,this.updater=n||OT}Js.prototype.isReactComponent={};Js.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Js.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TT(){}TT.prototype=Js.prototype;function Nb(e,t,n){this.props=e,this.context=t,this.refs=_T,this.updater=n||OT}var kb=Nb.prototype=new TT;kb.constructor=Nb;CT(kb,Js.prototype);kb.isPureReactComponent=!0;var lS=Array.isArray,AT=Object.prototype.hasOwnProperty,Rb={current:null},jT={key:!0,ref:!0,__self:!0,__source:!0};function $T(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)AT.call(t,r)&&!jT.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,D=$[V];if(0>>1;Vo(J,K))ieo(q,J)?($[V]=q,$[ie]=K,V=ie):($[V]=J,$[Q]=K,V=Q);else if(ieo(q,K))$[V]=q,$[ie]=K,V=ie;else break e}}return k}function o($,k){var K=$.sortIndex-k.sortIndex;return K!==0?K:$.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,d=3,v=!1,g=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w($){for(var k=n(c);k!==null;){if(k.callback===null)r(c);else if(k.startTime<=$)r(c),k.sortIndex=k.expirationTime,t(l,k);else break;k=n(c)}}function S($){if(m=!1,w($),!g)if(n(l)!==null)g=!0,B(P);else{var k=n(c);k!==null&&N(S,k.startTime-$)}}function P($,k){g=!1,m&&(m=!1,x(E),E=-1),v=!0;var K=d;try{for(w(k),f=n(l);f!==null&&(!(f.expirationTime>k)||$&&!_());){var V=f.callback;if(typeof V=="function"){f.callback=null,d=f.priorityLevel;var D=V(f.expirationTime<=k);k=e.unstable_now(),typeof D=="function"?f.callback=D:f===n(l)&&r(l),w(k)}else r(l);f=n(l)}if(f!==null)var G=!0;else{var Q=n(c);Q!==null&&N(S,Q.startTime-k),G=!1}return G}finally{f=null,d=K,v=!1}}var O=!1,C=null,E=-1,T=5,A=-1;function _(){return!(e.unstable_now()-A$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var k=3;break;default:k=d}var K=d;d=k;try{return $()}finally{d=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,k){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var K=d;d=$;try{return k()}finally{d=K}},e.unstable_scheduleCallback=function($,k,K){var V=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0V?($.sortIndex=K,t(c,$),n(l)===null&&$===n(c)&&(m?(x(E),E=-1):m=!0,N(S,K-V))):($.sortIndex=D,t(l,$),g||v||(g=!0,B(P))),$},e.unstable_shouldYield=_,e.unstable_wrapCallback=function($){var k=d;return function(){var K=d;d=k;try{return $.apply(this,arguments)}finally{d=K}}}})(DT);RT.exports=DT;var W3=RT.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 H3=h,Tn=W3;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dg=Object.prototype.hasOwnProperty,V3=/^[: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]*$/,uS={},fS={};function K3(e){return Dg.call(fS,e)?!0:Dg.call(uS,e)?!1:V3.test(e)?fS[e]=!0:(uS[e]=!0,!1)}function G3(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Y3(e,t,n,r){if(t===null||typeof t>"u"||G3(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rn(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ft={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ft[e]=new rn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ft[t]=new rn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ft[e]=new rn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ft[e]=new rn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ft[e]=new rn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ft[e]=new rn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ft[e]=new rn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ft[e]=new rn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ft[e]=new rn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lb=/[\-:]([a-z])/g;function Fb(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Lb,Fb);Ft[t]=new rn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Lb,Fb);Ft[t]=new rn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Lb,Fb);Ft[t]=new rn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ft[e]=new rn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ft.xlinkHref=new rn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ft[e]=new rn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bb(e,t,n,r){var o=Ft.hasOwnProperty(t)?Ft[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{cv=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ec(e):""}function X3(e){switch(e.tag){case 5:return ec(e.type);case 16:return ec("Lazy");case 13:return ec("Suspense");case 19:return ec("SuspenseList");case 0:case 2:case 15:return e=uv(e.type,!1),e;case 11:return e=uv(e.type.render,!1),e;case 1:return e=uv(e.type,!0),e;default:return""}}function Bg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ua:return"Fragment";case za:return"Portal";case Ig:return"Profiler";case zb:return"StrictMode";case Lg:return"Suspense";case Fg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case FT:return(e.displayName||"Context")+".Consumer";case LT:return(e._context.displayName||"Context")+".Provider";case Ub:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wb:return t=e.displayName||null,t!==null?t:Bg(e.type)||"Memo";case Ro:t=e._payload,e=e._init;try{return Bg(e(t))}catch{}}return null}function q3(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Bg(t);case 8:return t===zb?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ni(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Q3(e){var t=zT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cf(e){e._valueTracker||(e._valueTracker=Q3(e))}function UT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zg(e,t){var n=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pS(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ni(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function WT(e,t){t=t.checked,t!=null&&Bb(e,"checked",t,!1)}function Ug(e,t){WT(e,t);var n=ni(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wg(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wg(e,t.type,ni(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hS(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wg(e,t,n){(t!=="number"||Nd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tc=Array.isArray;function is(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_f.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uc={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},Z3=["Webkit","ms","Moz","O"];Object.keys(uc).forEach(function(e){Z3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uc[t]=uc[e]})});function GT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uc.hasOwnProperty(e)&&uc[e]?(""+t).trim():t+"px"}function YT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=GT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var J3=lt({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 Kg(e,t){if(t){if(J3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Gg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yg=null;function Hb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xg=null,as=null,ss=null;function gS(e){if(e=Lu(e)){if(typeof Xg!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Sh(t),Xg(e.stateNode,e.type,t))}}function XT(e){as?ss?ss.push(e):ss=[e]:as=e}function qT(){if(as){var e=as,t=ss;if(ss=as=null,gS(e),t)for(e=0;e>>=0,e===0?32:31-(u4(e)/f4|0)|0}var Tf=64,Af=4194304;function nc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Id(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=nc(s):(i&=a,i!==0&&(r=nc(i)))}else a=n&~o,a!==0?r=nc(a):i!==0&&(r=nc(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Du(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=n}function m4(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=dc),CS=" ",_S=!1;function vA(e,t){switch(e){case"keyup":return W4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function V4(e,t){switch(e){case"compositionend":return gA(t);case"keypress":return t.which!==32?null:(_S=!0,CS);case"textInput":return e=t.data,e===CS&&_S?null:e;default:return null}}function K4(e,t){if(Wa)return e==="compositionend"||!Zb&&vA(e,t)?(e=hA(),gd=Xb=Wo=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$S(n)}}function wA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SA(){for(var e=window,t=Nd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nd(e.document)}return t}function Jb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function t5(e){var t=SA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wA(n.ownerDocument.documentElement,n)){if(r!==null&&Jb(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=MS(n,i);var a=MS(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ha=null,ty=null,hc=null,ny=!1;function NS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ny||Ha==null||Ha!==Nd(r)||(r=Ha,"selectionStart"in r&&Jb(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hc&&kc(hc,r)||(hc=r,r=Bd(ty,"onSelect"),0Ga||(e.current=ly[Ga],ly[Ga]=null,Ga--)}function Xe(e,t){Ga++,ly[Ga]=e.current,e.current=t}var ri={},Gt=pi(ri),un=pi(!1),qi=ri;function xs(e,t){var n=e.type.contextTypes;if(!n)return ri;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function fn(e){return e=e.childContextTypes,e!=null}function Ud(){et(un),et(Gt)}function BS(e,t,n){if(Gt.current!==ri)throw Error(Z(168));Xe(Gt,t),Xe(un,n)}function $A(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Z(108,q3(e)||"Unknown",o));return lt({},n,r)}function Wd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ri,qi=Gt.current,Xe(Gt,e),Xe(un,un.current),!0}function zS(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=$A(e,t,qi),r.__reactInternalMemoizedMergedChildContext=e,et(un),et(Gt),Xe(Gt,e)):et(un),Xe(un,n)}var Zr=null,Ph=!1,Ev=!1;function MA(e){Zr===null?Zr=[e]:Zr.push(e)}function p5(e){Ph=!0,MA(e)}function hi(){if(!Ev&&Zr!==null){Ev=!0;var e=0,t=Be;try{var n=Zr;for(Be=1;e>=a,o-=a,Jr=1<<32-fr(t)+o|n<E?(T=C,C=null):T=C.sibling;var A=d(x,C,w[E],S);if(A===null){C===null&&(C=T);break}e&&C&&A.alternate===null&&t(x,C),y=i(A,y,E),O===null?P=A:O.sibling=A,O=A,C=T}if(E===w.length)return n(x,C),rt&&_i(x,E),P;if(C===null){for(;EE?(T=C,C=null):T=C.sibling;var _=d(x,C,A.value,S);if(_===null){C===null&&(C=T);break}e&&C&&_.alternate===null&&t(x,C),y=i(_,y,E),O===null?P=_:O.sibling=_,O=_,C=T}if(A.done)return n(x,C),rt&&_i(x,E),P;if(C===null){for(;!A.done;E++,A=w.next())A=f(x,A.value,S),A!==null&&(y=i(A,y,E),O===null?P=A:O.sibling=A,O=A);return rt&&_i(x,E),P}for(C=r(x,C);!A.done;E++,A=w.next())A=v(C,x,E,A.value,S),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?E:A.key),y=i(A,y,E),O===null?P=A:O.sibling=A,O=A);return e&&C.forEach(function(j){return t(x,j)}),rt&&_i(x,E),P}function b(x,y,w,S){if(typeof w=="object"&&w!==null&&w.type===Ua&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Of:e:{for(var P=w.key,O=y;O!==null;){if(O.key===P){if(P=w.type,P===Ua){if(O.tag===7){n(x,O.sibling),y=o(O,w.props.children),y.return=x,x=y;break e}}else if(O.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Ro&&HS(P)===O.type){n(x,O.sibling),y=o(O,w.props),y.ref=$l(x,O,w),y.return=x,x=y;break e}n(x,O);break}else t(x,O);O=O.sibling}w.type===Ua?(y=Vi(w.props.children,x.mode,S,w.key),y.return=x,x=y):(S=Od(w.type,w.key,w.props,null,x.mode,S),S.ref=$l(x,y,w),S.return=x,x=S)}return a(x);case za:e:{for(O=w.key;y!==null;){if(y.key===O)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(x,y.sibling),y=o(y,w.children||[]),y.return=x,x=y;break e}else{n(x,y);break}else t(x,y);y=y.sibling}y=Mv(w,x.mode,S),y.return=x,x=y}return a(x);case Ro:return O=w._init,b(x,y,O(w._payload),S)}if(tc(w))return g(x,y,w,S);if(Cl(w))return m(x,y,w,S);Df(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(x,y.sibling),y=o(y,w),y.return=x,x=y):(n(x,y),y=$v(w,x.mode,S),y.return=x,x=y),a(x)):n(x,y)}return b}var Ss=DA(!0),IA=DA(!1),Kd=pi(null),Gd=null,qa=null,rx=null;function ox(){rx=qa=Gd=null}function ix(e){var t=Kd.current;et(Kd),e._currentValue=t}function fy(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function cs(e,t){Gd=e,rx=qa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ln=!0),e.firstContext=null)}function Un(e){var t=e._currentValue;if(rx!==e)if(e={context:e,memoizedValue:t,next:null},qa===null){if(Gd===null)throw Error(Z(308));qa=e,Gd.dependencies={lanes:0,firstContext:e}}else qa=qa.next=e;return t}var Di=null;function ax(e){Di===null?Di=[e]:Di.push(e)}function LA(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ax(t)):(n.next=o.next,o.next=n),t.interleaved=n,uo(e,r)}function uo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Do=!1;function sx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FA(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ae&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,uo(e,n)}return o=r.interleaved,o===null?(t.next=t,ax(r)):(t.next=o.next,o.next=t),r.interleaved=t,uo(e,n)}function bd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kb(e,n)}}function VS(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Yd(e,t,n,r){var o=e.updateQueue;Do=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var d=s.lane,v=s.eventTime;if((r&d)===d){u!==null&&(u=u.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,m=s;switch(d=t,v=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){f=g.call(v,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,d=typeof g=="function"?g.call(v,f,d):g,d==null)break e;f=lt({},f,d);break e;case 2:Do=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else v={eventTime:v,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=v,l=f):u=u.next=v,a|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ji|=a,e.lanes=a,e.memoizedState=f}}function KS(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Cv.transition;Cv.transition={};try{e(!1),t()}finally{Be=n,Cv.transition=r}}function nj(){return Wn().memoizedState}function g5(e,t,n){var r=Zo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rj(e))oj(t,n);else if(n=LA(e,t,n,r),n!==null){var o=en();dr(n,e,r,o),ij(n,t,r)}}function y5(e,t,n){var r=Zo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rj(e))oj(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,hr(s,a)){var l=t.interleaved;l===null?(o.next=o,ax(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=LA(e,t,o,r),n!==null&&(o=en(),dr(n,e,r,o),ij(n,t,r))}}function rj(e){var t=e.alternate;return e===st||t!==null&&t===st}function oj(e,t){mc=qd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ij(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kb(e,n)}}var Qd={readContext:Un,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useInsertionEffect:Bt,useLayoutEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useMutableSource:Bt,useSyncExternalStore:Bt,useId:Bt,unstable_isNewReconciler:!1},b5={readContext:Un,useCallback:function(e,t){return Er().memoizedState=[e,t===void 0?null:t],e},useContext:Un,useEffect:YS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wd(4194308,4,QA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wd(4194308,4,e,t)},useInsertionEffect:function(e,t){return wd(4,2,e,t)},useMemo:function(e,t){var n=Er();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Er();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=g5.bind(null,st,e),[r.memoizedState,e]},useRef:function(e){var t=Er();return e={current:e},t.memoizedState=e},useState:GS,useDebugValue:mx,useDeferredValue:function(e){return Er().memoizedState=e},useTransition:function(){var e=GS(!1),t=e[0];return e=v5.bind(null,e[1]),Er().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=st,o=Er();if(rt){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),jt===null)throw Error(Z(349));Zi&30||WA(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,YS(VA.bind(null,r,i,e),[e]),r.flags|=2048,Uc(9,HA.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Er(),t=jt.identifierPrefix;if(rt){var n=eo,r=Jr;n=(r&~(1<<32-fr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[jr]=t,e[Ic]=r,mj(e,t,!1,!1),t.stateNode=e;e:{switch(a=Gg(n,r),n){case"dialog":Qe("cancel",e),Qe("close",e),o=r;break;case"iframe":case"object":case"embed":Qe("load",e),o=r;break;case"video":case"audio":for(o=0;oOs&&(t.flags|=128,r=!0,Ml(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ml(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rt)return zt(t),null}else 2*pt()-i.renderingStartTime>Os&&n!==1073741824&&(t.flags|=128,r=!0,Ml(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pt(),t.sibling=null,n=it.current,Xe(it,r?n&1|2:n&1),t):(zt(t),null);case 22:case 23:return wx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yn&1073741824&&(zt(t),t.subtreeFlags&6&&(t.flags|=8192)):zt(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function _5(e,t){switch(tx(t),t.tag){case 1:return fn(t.type)&&Ud(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ps(),et(un),et(Gt),ux(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return cx(t),null;case 13:if(et(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));ws()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(it),null;case 4:return Ps(),null;case 10:return ix(t.type._context),null;case 22:case 23:return wx(),null;case 24:return null;default:return null}}var Lf=!1,Wt=!1,T5=typeof WeakSet=="function"?WeakSet:Set,le=null;function Qa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ut(e,t,r)}else n.current=null}function xy(e,t,n){try{n()}catch(r){ut(e,t,r)}}var iP=!1;function A5(e,t){if(ry=Ld,e=SA(),Jb(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(v=f.firstChild)!==null;)d=f,f=v;for(;;){if(f===e)break t;if(d===n&&++c===o&&(s=a),d===i&&++u===r&&(l=a),(v=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=v}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(oy={focusedElem:e,selectionRange:n},Ld=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,b=g.memoizedState,x=t.stateNode,y=x.getSnapshotBeforeUpdate(t.elementType===t.type?m:er(t.type,m),b);x.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(S){ut(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return g=iP,iP=!1,g}function vc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&xy(t,n,i)}o=o.next}while(o!==r)}}function Ch(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function wy(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yj(e){var t=e.alternate;t!==null&&(e.alternate=null,yj(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jr],delete t[Ic],delete t[sy],delete t[f5],delete t[d5])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bj(e){return e.tag===5||e.tag===3||e.tag===4}function aP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sy(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zd));else if(r!==4&&(e=e.child,e!==null))for(Sy(e,t,n),e=e.sibling;e!==null;)Sy(e,t,n),e=e.sibling}function Py(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Py(e,t,n),e=e.sibling;e!==null;)Py(e,t,n),e=e.sibling}var Dt=null,nr=!1;function To(e,t,n){for(n=n.child;n!==null;)xj(e,t,n),n=n.sibling}function xj(e,t,n){if(Nr&&typeof Nr.onCommitFiberUnmount=="function")try{Nr.onCommitFiberUnmount(yh,n)}catch{}switch(n.tag){case 5:Wt||Qa(n,t);case 6:var r=Dt,o=nr;Dt=null,To(e,t,n),Dt=r,nr=o,Dt!==null&&(nr?(e=Dt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Dt.removeChild(n.stateNode));break;case 18:Dt!==null&&(nr?(e=Dt,n=n.stateNode,e.nodeType===8?Pv(e.parentNode,n):e.nodeType===1&&Pv(e,n),Mc(e)):Pv(Dt,n.stateNode));break;case 4:r=Dt,o=nr,Dt=n.stateNode.containerInfo,nr=!0,To(e,t,n),Dt=r,nr=o;break;case 0:case 11:case 14:case 15:if(!Wt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&xy(n,t,a),o=o.next}while(o!==r)}To(e,t,n);break;case 1:if(!Wt&&(Qa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ut(n,t,s)}To(e,t,n);break;case 21:To(e,t,n);break;case 22:n.mode&1?(Wt=(r=Wt)||n.memoizedState!==null,To(e,t,n),Wt=r):To(e,t,n);break;default:To(e,t,n)}}function sP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new T5),t.forEach(function(r){var o=L5.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Zn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=pt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$5(r/1960))-r,10e?16:e,Ho===null)var r=!1;else{if(e=Ho,Ho=null,ep=0,Ae&6)throw Error(Z(331));var o=Ae;for(Ae|=4,le=e.current;le!==null;){var i=le,a=i.child;if(le.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpt()-bx?Hi(e,0):yx|=n),dn(e,t)}function Tj(e,t){t===0&&(e.mode&1?(t=Af,Af<<=1,!(Af&130023424)&&(Af=4194304)):t=1);var n=en();e=uo(e,t),e!==null&&(Du(e,t,n),dn(e,n))}function I5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tj(e,n)}function L5(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),Tj(e,n)}var Aj;Aj=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||un.current)ln=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ln=!1,O5(e,t,n);ln=!!(e.flags&131072)}else ln=!1,rt&&t.flags&1048576&&NA(t,Vd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sd(e,t),e=t.pendingProps;var o=xs(t,Gt.current);cs(t,n),o=dx(null,t,r,e,o,n);var i=px();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,fn(r)?(i=!0,Wd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,sx(t),o.updater=Oh,t.stateNode=o,o._reactInternals=t,py(t,r,e,n),t=vy(null,t,r,!0,i,n)):(t.tag=0,rt&&i&&ex(t),qt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=B5(r),e=er(r,e),o){case 0:t=my(null,t,r,e,n);break e;case 1:t=nP(null,t,r,e,n);break e;case 11:t=eP(null,t,r,e,n);break e;case 14:t=tP(null,t,r,er(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:er(r,o),my(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:er(r,o),nP(e,t,r,o,n);case 3:e:{if(dj(t),e===null)throw Error(Z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,FA(e,t),Yd(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Es(Error(Z(423)),t),t=rP(e,t,r,n,o);break e}else if(r!==o){o=Es(Error(Z(424)),t),t=rP(e,t,r,n,o);break e}else for(On=Xo(t.stateNode.containerInfo.firstChild),Cn=t,rt=!0,ar=null,n=IA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ws(),r===o){t=fo(e,t,n);break e}qt(e,t,r,n)}t=t.child}return t;case 5:return BA(t),e===null&&uy(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,iy(r,o)?a=null:i!==null&&iy(r,i)&&(t.flags|=32),fj(e,t),qt(e,t,a,n),t.child;case 6:return e===null&&uy(t),null;case 13:return pj(e,t,n);case 4:return lx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ss(t,null,r,n):qt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:er(r,o),eP(e,t,r,o,n);case 7:return qt(e,t,t.pendingProps,n),t.child;case 8:return qt(e,t,t.pendingProps.children,n),t.child;case 12:return qt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Xe(Kd,r._currentValue),r._currentValue=a,i!==null)if(hr(i.value,a)){if(i.children===o.children&&!un.current){t=fo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=oo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),fy(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Z(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),fy(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}qt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,cs(t,n),o=Un(o),r=r(o),t.flags|=1,qt(e,t,r,n),t.child;case 14:return r=t.type,o=er(r,t.pendingProps),o=er(r.type,o),tP(e,t,r,o,n);case 15:return cj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:er(r,o),Sd(e,t),t.tag=1,fn(r)?(e=!0,Wd(t)):e=!1,cs(t,n),aj(t,r,o),py(t,r,o,n),vy(null,t,r,!0,e,n);case 19:return hj(e,t,n);case 22:return uj(e,t,n)}throw Error(Z(156,t.tag))};function jj(e,t){return rA(e,t)}function F5(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,t,n,r){return new F5(e,t,n,r)}function Px(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B5(e){if(typeof e=="function")return Px(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ub)return 11;if(e===Wb)return 14}return 2}function Jo(e,t){var n=e.alternate;return n===null?(n=In(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Od(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Px(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ua:return Vi(n.children,o,i,t);case zb:a=8,o|=8;break;case Ig:return e=In(12,n,t,o|2),e.elementType=Ig,e.lanes=i,e;case Lg:return e=In(13,n,t,o),e.elementType=Lg,e.lanes=i,e;case Fg:return e=In(19,n,t,o),e.elementType=Fg,e.lanes=i,e;case BT:return Th(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case LT:a=10;break e;case FT:a=9;break e;case Ub:a=11;break e;case Wb:a=14;break e;case Ro:a=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=In(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Vi(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Th(e,t,n,r){return e=In(22,e,r,t),e.elementType=BT,e.lanes=n,e.stateNode={isHidden:!1},e}function $v(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Mv(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function z5(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dv(0),this.expirationTimes=dv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dv(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ex(e,t,n,r,o,i,a,s,l){return e=new z5(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=In(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sx(i),e}function U5(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kj)}catch(e){console.error(e)}}kj(),kT.exports=jn;var yr=kT.exports;const Tx=Ve(yr),G5=ST({__proto__:null,default:Tx},[yr]);var Rj,mP=yr;Rj=mP.createRoot,mP.hydrateRoot;/** + * @remix-run/router v1.19.1 + * + * 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 + */function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Cs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function X5(){return Math.random().toString(36).substr(2,8)}function gP(e,t){return{usr:e.state,key:e.key,idx:t}}function Hc(e,t,n,r){return n===void 0&&(n=null),nt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mi(t):t,{state:n,key:t&&t.key||r||X5()})}function oi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function mi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function q5(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=vt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(nt({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=vt.Pop;let b=u(),x=b==null?null:b-c;c=b,l&&l({action:s,location:m.location,delta:x})}function d(b,x){s=vt.Push;let y=Hc(m.location,b,x);c=u()+1;let w=gP(y,c),S=m.createHref(y);try{a.pushState(w,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(S)}i&&l&&l({action:s,location:m.location,delta:1})}function v(b,x){s=vt.Replace;let y=Hc(m.location,b,x);c=u();let w=gP(y,c),S=m.createHref(y);a.replaceState(w,"",S),i&&l&&l({action:s,location:m.location,delta:0})}function g(b){let x=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof b=="string"?b:oi(b);return y=y.replace(/ $/,"%20"),Se(x,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,x)}let m={get action(){return s},get location(){return e(o,a)},listen(b){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(vP,f),l=b,()=>{o.removeEventListener(vP,f),l=null}},createHref(b){return t(o,b)},createURL:g,encodeLocation(b){let x=g(b);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:v,go(b){return a.go(b)}};return m}var We;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(We||(We={}));const Q5=new Set(["lazy","caseSensitive","path","id","index","children"]);function Z5(e){return e.index===!0}function Vc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(Se(o.index!==!0||!o.children,"Cannot specify children on an index route"),Se(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Z5(o)){let l=nt({},o,t(o),{id:s});return r[s]=l,l}else{let l=nt({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=Vc(o.children,t,a,r)),l}})}function Ni(e,t,n){return n===void 0&&(n="/"),Cd(e,t,n,!1)}function Cd(e,t,n,r){let o=typeof t=="string"?mi(t):t,i=mr(o.pathname||"/",n);if(i==null)return null;let a=Dj(e);eF(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Se(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Rr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Se(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Dj(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:sF(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Ij(i.path))o(i,a,l)}),t}function Ij(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Ij(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function eF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lF(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tF=/^:[\w-]+$/,nF=3,rF=2,oF=1,iF=10,aF=-2,yP=e=>e==="*";function sF(e,t){let n=e.split("/"),r=n.length;return n.some(yP)&&(r+=aF),t&&(r+=rF),n.filter(o=>!yP(o)).reduce((o,i)=>o+(tF.test(i)?nF:i===""?oF:iF),r)}function lF(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function cF(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:d,isOptional:v}=u;if(d==="*"){let m=s[f]||"";a=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function uF(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Cs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function fF(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cs(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function mr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dF(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?mi(e):e;return{pathname:n?n.startsWith("/")?n:pF(n,t):t,search:mF(r),hash:vF(o)}}function pF(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Nv(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` 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 Lj(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ax(e,t){let n=Lj(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jx(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=mi(e):(o=nt({},e),Se(!o.pathname||!o.pathname.includes("?"),Nv("?","pathname","search",o)),Se(!o.pathname||!o.pathname.includes("#"),Nv("#","pathname","hash",o)),Se(!o.search||!o.search.includes("#"),Nv("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=dF(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Rr=e=>e.join("/").replace(/\/\/+/g,"/"),hF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,$x=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let o=new Headers(r.headers);return o.set("Location",t),new Response(null,nt({},r,{headers:o}))};class op{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Bu(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Fj=["post","put","patch","delete"],gF=new Set(Fj),yF=["get",...Fj],bF=new Set(yF),xF=new Set([301,302,303,307,308]),wF=new Set([307,308]),kv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},SF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},kl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Mx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PF=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Bj="remix-router-transitions";function EF(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Se(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;o=F=>({hasErrorBoundary:R(F)})}else o=PF;let i={},a=Vc(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.unstable_dataStrategy||AF,u=e.unstable_patchRoutesOnNavigation,f=nt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),d=null,v=new Set,g=1e3,m=new Set,b=null,x=null,y=null,w=e.hydrationData!=null,S=Ni(a,e.history.location,l),P=null;if(S==null&&!u){let R=Xt(404,{pathname:e.history.location.pathname}),{matches:F,route:U}=TP(a);S=F,P={[U.id]:R}}S&&!e.hydrationData&&yf(S,a,e.history.location.pathname).active&&(S=null);let O;if(S)if(S.some(R=>R.route.lazy))O=!1;else if(!S.some(R=>R.route.loader))O=!0;else if(f.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,F=e.hydrationData?e.hydrationData.errors:null,U=Y=>Y.route.loader?typeof Y.route.loader=="function"&&Y.route.loader.hydrate===!0?!1:R&&R[Y.route.id]!==void 0||F&&F[Y.route.id]!==void 0:!0;if(F){let Y=S.findIndex(se=>F[se.route.id]!==void 0);O=S.slice(0,Y+1).every(U)}else O=S.every(U)}else O=e.hydrationData!=null;else if(O=!1,S=[],f.v7_partialHydration){let R=yf(null,a,e.history.location.pathname);R.active&&R.matches&&(S=R.matches)}let C,E={historyAction:e.history.action,location:e.history.location,matches:S,initialized:O,navigation:kv,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||P,fetchers:new Map,blockers:new Map},T=vt.Pop,A=!1,_,j=!1,L=new Map,M=null,z=!1,B=!1,N=[],$=new Set,k=new Map,K=0,V=-1,D=new Map,G=new Set,Q=new Map,J=new Map,ie=new Set,q=new Map,ue=new Map,X=new Map,te=!1;function ae(){if(d=e.history.listen(R=>{let{action:F,location:U,delta:Y}=R;if(te){te=!1;return}Cs(ue.size===0||Y!=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 se=nS({currentLocation:E.location,nextLocation:U,historyAction:F});if(se&&Y!=null){te=!0,e.history.go(Y*-1),vf(se,{state:"blocked",location:U,proceed(){vf(se,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),e.history.go(Y)},reset(){let de=new Map(E.blockers);de.set(se,kl),fe({blockers:de})}});return}return wt(F,U)}),n){UF(t,L);let R=()=>WF(t,L);t.addEventListener("pagehide",R),M=()=>t.removeEventListener("pagehide",R)}return E.initialized||wt(vt.Pop,E.location,{initialHydration:!0}),C}function W(){d&&d(),M&&M(),v.clear(),_&&_.abort(),E.fetchers.forEach((R,F)=>mf(F)),E.blockers.forEach((R,F)=>tS(F))}function Oe(R){return v.add(R),()=>v.delete(R)}function fe(R,F){F===void 0&&(F={}),E=nt({},E,R);let U=[],Y=[];f.v7_fetcherPersist&&E.fetchers.forEach((se,de)=>{se.state==="idle"&&(ie.has(de)?Y.push(de):U.push(de))}),[...v].forEach(se=>se(E,{deletedFetchers:Y,unstable_viewTransitionOpts:F.viewTransitionOpts,unstable_flushSync:F.flushSync===!0})),f.v7_fetcherPersist&&(U.forEach(se=>E.fetchers.delete(se)),Y.forEach(se=>mf(se)))}function je(R,F,U){var Y,se;let{flushSync:de}=U===void 0?{}:U,ve=E.actionData!=null&&E.navigation.formMethod!=null&&rr(E.navigation.formMethod)&&E.navigation.state==="loading"&&((Y=R.state)==null?void 0:Y._isRedirect)!==!0,re;F.actionData?Object.keys(F.actionData).length>0?re=F.actionData:re=null:ve?re=E.actionData:re=null;let ge=F.loaderData?CP(E.loaderData,F.loaderData,F.matches||[],F.errors):E.loaderData,he=E.blockers;he.size>0&&(he=new Map(he),he.forEach((Le,Ke)=>he.set(Ke,kl)));let be=A===!0||E.navigation.formMethod!=null&&rr(E.navigation.formMethod)&&((se=R.state)==null?void 0:se._isRedirect)!==!0;s&&(a=s,s=void 0),z||T===vt.Pop||(T===vt.Push?e.history.push(R,R.state):T===vt.Replace&&e.history.replace(R,R.state));let Ue;if(T===vt.Pop){let Le=L.get(E.location.pathname);Le&&Le.has(R.pathname)?Ue={currentLocation:E.location,nextLocation:R}:L.has(R.pathname)&&(Ue={currentLocation:R,nextLocation:E.location})}else if(j){let Le=L.get(E.location.pathname);Le?Le.add(R.pathname):(Le=new Set([R.pathname]),L.set(E.location.pathname,Le)),Ue={currentLocation:E.location,nextLocation:R}}fe(nt({},F,{actionData:re,loaderData:ge,historyAction:T,location:R,initialized:!0,navigation:kv,revalidation:"idle",restoreScrollPosition:oS(R,F.matches||E.matches),preventScrollReset:be,blockers:he}),{viewTransitionOpts:Ue,flushSync:de===!0}),T=vt.Pop,A=!1,j=!1,z=!1,B=!1,N=[]}async function Ie(R,F){if(typeof R=="number"){e.history.go(R);return}let U=Ty(E.location,E.matches,l,f.v7_prependBasename,R,f.v7_relativeSplatPath,F==null?void 0:F.fromRouteId,F==null?void 0:F.relative),{path:Y,submission:se,error:de}=bP(f.v7_normalizeFormMethod,!1,U,F),ve=E.location,re=Hc(E.location,Y,F&&F.state);re=nt({},re,e.history.encodeLocation(re));let ge=F&&F.replace!=null?F.replace:void 0,he=vt.Push;ge===!0?he=vt.Replace:ge===!1||se!=null&&rr(se.formMethod)&&se.formAction===E.location.pathname+E.location.search&&(he=vt.Replace);let be=F&&"preventScrollReset"in F?F.preventScrollReset===!0:void 0,Ue=(F&&F.unstable_flushSync)===!0,Le=nS({currentLocation:ve,nextLocation:re,historyAction:he});if(Le){vf(Le,{state:"blocked",location:re,proceed(){vf(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:re}),Ie(R,F)},reset(){let Ke=new Map(E.blockers);Ke.set(Le,kl),fe({blockers:Ke})}});return}return await wt(he,re,{submission:se,pendingError:de,preventScrollReset:be,replace:F&&F.replace,enableViewTransition:F&&F.unstable_viewTransition,flushSync:Ue})}function dt(){if(ov(),fe({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){wt(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}wt(T||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function wt(R,F,U){_&&_.abort(),_=null,T=R,z=(U&&U.startUninterruptedRevalidation)===!0,y3(E.location,E.matches),A=(U&&U.preventScrollReset)===!0,j=(U&&U.enableViewTransition)===!0;let Y=s||a,se=U&&U.overrideNavigation,de=Ni(Y,F,l),ve=(U&&U.flushSync)===!0,re=yf(de,Y,F.pathname);if(re.active&&re.matches&&(de=re.matches),!de){let{error:ke,notFoundMatches:kt,route:ht}=iv(F.pathname);je(F,{matches:kt,loaderData:{},errors:{[ht.id]:ke}},{flushSync:ve});return}if(E.initialized&&!B&&RF(E.location,F)&&!(U&&U.submission&&rr(U.submission.formMethod))){je(F,{matches:de},{flushSync:ve});return}_=new AbortController;let ge=_a(e.history,F,_.signal,U&&U.submission),he;if(U&&U.pendingError)he=[Ja(de).route.id,{type:We.error,error:U.pendingError}];else if(U&&U.submission&&rr(U.submission.formMethod)){let ke=await Qn(ge,F,U.submission,de,re.active,{replace:U.replace,flushSync:ve});if(ke.shortCircuited)return;if(ke.pendingActionResult){let[kt,ht]=ke.pendingActionResult;if(xn(ht)&&Bu(ht.error)&&ht.error.status===404){_=null,je(F,{matches:ke.matches,loaderData:{},errors:{[kt]:ht.error}});return}}de=ke.matches||de,he=ke.pendingActionResult,se=Rv(F,U.submission),ve=!1,re.active=!1,ge=_a(e.history,ge.url,ge.signal)}let{shortCircuited:be,matches:Ue,loaderData:Le,errors:Ke}=await Vr(ge,F,de,re.active,se,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,ve,he);be||(_=null,je(F,nt({matches:Ue||de},_P(he),{loaderData:Le,errors:Ke})))}async function Qn(R,F,U,Y,se,de){de===void 0&&(de={}),ov();let ve=BF(F,U);if(fe({navigation:ve},{flushSync:de.flushSync===!0}),se){let he=await bf(Y,F.pathname,R.signal);if(he.type==="aborted")return{shortCircuited:!0};if(he.type==="error"){let{boundaryId:be,error:Ue}=gf(F.pathname,he);return{matches:he.partialMatches,pendingActionResult:[be,{type:We.error,error:Ue}]}}else if(he.matches)Y=he.matches;else{let{notFoundMatches:be,error:Ue,route:Le}=iv(F.pathname);return{matches:be,pendingActionResult:[Le.id,{type:We.error,error:Ue}]}}}let re,ge=oc(Y,F);if(!ge.route.action&&!ge.route.lazy)re={type:We.error,error:Xt(405,{method:R.method,pathname:F.pathname,routeId:ge.route.id})};else if(re=(await El("action",R,[ge],Y))[0],R.signal.aborted)return{shortCircuited:!0};if(Fi(re)){let he;return de&&de.replace!=null?he=de.replace:he=PP(re.response.headers.get("Location"),new URL(R.url),l)===E.location.pathname+E.location.search,await Pl(R,re,{submission:U,replace:he}),{shortCircuited:!0}}if(Li(re))throw Xt(400,{type:"defer-action"});if(xn(re)){let he=Ja(Y,ge.route.id);return(de&&de.replace)!==!0&&(T=vt.Push),{matches:Y,pendingActionResult:[he.route.id,re]}}return{matches:Y,pendingActionResult:[ge.route.id,re]}}async function Vr(R,F,U,Y,se,de,ve,re,ge,he,be){let Ue=se||Rv(F,de),Le=de||ve||MP(Ue),Ke=!z&&(!f.v7_partialHydration||!ge);if(Y){if(Ke){let ct=wr(be);fe(nt({navigation:Ue},ct!==void 0?{actionData:ct}:{}),{flushSync:he})}let Pe=await bf(U,F.pathname,R.signal);if(Pe.type==="aborted")return{shortCircuited:!0};if(Pe.type==="error"){let{boundaryId:ct,error:vn}=gf(F.pathname,Pe);return{matches:Pe.partialMatches,loaderData:{},errors:{[ct]:vn}}}else if(Pe.matches)U=Pe.matches;else{let{error:ct,notFoundMatches:vn,route:tt}=iv(F.pathname);return{matches:vn,loaderData:{},errors:{[tt.id]:ct}}}}let ke=s||a,[kt,ht]=xP(e.history,E,U,Le,F,f.v7_partialHydration&&ge===!0,f.v7_skipActionErrorRevalidation,B,N,$,ie,Q,G,ke,l,be);if(av(Pe=>!(U&&U.some(ct=>ct.route.id===Pe))||kt&&kt.some(ct=>ct.route.id===Pe)),V=++K,kt.length===0&&ht.length===0){let Pe=J1();return je(F,nt({matches:U,loaderData:{},errors:be&&xn(be[1])?{[be[0]]:be[1].error}:null},_P(be),Pe?{fetchers:new Map(E.fetchers)}:{}),{flushSync:he}),{shortCircuited:!0}}if(Ke){let Pe={};if(!Y){Pe.navigation=Ue;let ct=wr(be);ct!==void 0&&(Pe.actionData=ct)}ht.length>0&&(Pe.fetchers=Sl(ht)),fe(Pe,{flushSync:he})}ht.forEach(Pe=>{k.has(Pe.key)&&Co(Pe.key),Pe.controller&&k.set(Pe.key,Pe.controller)});let Ol=()=>ht.forEach(Pe=>Co(Pe.key));_&&_.signal.addEventListener("abort",Ol);let{loaderResults:_o,fetcherResults:Pa}=await q1(E.matches,U,kt,ht,R);if(R.signal.aborted)return{shortCircuited:!0};_&&_.signal.removeEventListener("abort",Ol),ht.forEach(Pe=>k.delete(Pe.key));let Ea=AP([..._o,...Pa]);if(Ea){if(Ea.idx>=kt.length){let Pe=ht[Ea.idx-kt.length].key;G.add(Pe)}return await Pl(R,Ea.result,{replace:re}),{shortCircuited:!0}}let{loaderData:Oa,errors:Sr}=OP(E,U,kt,_o,be,ht,Pa,q);q.forEach((Pe,ct)=>{Pe.subscribe(vn=>{(vn||Pe.done)&&q.delete(ct)})}),f.v7_partialHydration&&ge&&E.errors&&Object.entries(E.errors).filter(Pe=>{let[ct]=Pe;return!kt.some(vn=>vn.route.id===ct)}).forEach(Pe=>{let[ct,vn]=Pe;Sr=Object.assign(Sr||{},{[ct]:vn})});let xf=J1(),wf=eS(V),Sf=xf||wf||ht.length>0;return nt({matches:U,loaderData:Oa,errors:Sr},Sf?{fetchers:new Map(E.fetchers)}:{})}function wr(R){if(R&&!xn(R[1]))return{[R[0]]:R[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function Sl(R){return R.forEach(F=>{let U=E.fetchers.get(F.key),Y=Rl(void 0,U?U.data:void 0);E.fetchers.set(F.key,Y)}),new Map(E.fetchers)}function pf(R,F,U,Y){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");k.has(R)&&Co(R);let se=(Y&&Y.unstable_flushSync)===!0,de=s||a,ve=Ty(E.location,E.matches,l,f.v7_prependBasename,U,f.v7_relativeSplatPath,F,Y==null?void 0:Y.relative),re=Ni(de,ve,l),ge=yf(re,de,ve);if(ge.active&&ge.matches&&(re=ge.matches),!re){Kr(R,F,Xt(404,{pathname:ve}),{flushSync:se});return}let{path:he,submission:be,error:Ue}=bP(f.v7_normalizeFormMethod,!0,ve,Y);if(Ue){Kr(R,F,Ue,{flushSync:se});return}let Le=oc(re,he);if(A=(Y&&Y.preventScrollReset)===!0,be&&rr(be.formMethod)){hf(R,F,he,Le,re,ge.active,se,be);return}Q.set(R,{routeId:F,path:he}),h3(R,F,he,Le,re,ge.active,se,be)}async function hf(R,F,U,Y,se,de,ve,re){ov(),Q.delete(R);function ge(tt){if(!tt.route.action&&!tt.route.lazy){let Gr=Xt(405,{method:re.formMethod,pathname:U,routeId:F});return Kr(R,F,Gr,{flushSync:ve}),!0}return!1}if(!de&&ge(Y))return;let he=E.fetchers.get(R);Oo(R,zF(re,he),{flushSync:ve});let be=new AbortController,Ue=_a(e.history,U,be.signal,re);if(de){let tt=await bf(se,U,Ue.signal);if(tt.type==="aborted")return;if(tt.type==="error"){let{error:Gr}=gf(U,tt);Kr(R,F,Gr,{flushSync:ve});return}else if(tt.matches){if(se=tt.matches,Y=oc(se,U),ge(Y))return}else{Kr(R,F,Xt(404,{pathname:U}),{flushSync:ve});return}}k.set(R,be);let Le=K,ke=(await El("action",Ue,[Y],se))[0];if(Ue.signal.aborted){k.get(R)===be&&k.delete(R);return}if(f.v7_fetcherPersist&&ie.has(R)){if(Fi(ke)||xn(ke)){Oo(R,Mo(void 0));return}}else{if(Fi(ke))if(k.delete(R),V>Le){Oo(R,Mo(void 0));return}else return G.add(R),Oo(R,Rl(re)),Pl(Ue,ke,{fetcherSubmission:re});if(xn(ke)){Kr(R,F,ke.error);return}}if(Li(ke))throw Xt(400,{type:"defer-action"});let kt=E.navigation.location||E.location,ht=_a(e.history,kt,be.signal),Ol=s||a,_o=E.navigation.state!=="idle"?Ni(Ol,E.navigation.location,l):E.matches;Se(_o,"Didn't find any matches after fetcher action");let Pa=++K;D.set(R,Pa);let Ea=Rl(re,ke.data);E.fetchers.set(R,Ea);let[Oa,Sr]=xP(e.history,E,_o,re,kt,!1,f.v7_skipActionErrorRevalidation,B,N,$,ie,Q,G,Ol,l,[Y.route.id,ke]);Sr.filter(tt=>tt.key!==R).forEach(tt=>{let Gr=tt.key,aS=E.fetchers.get(Gr),w3=Rl(void 0,aS?aS.data:void 0);E.fetchers.set(Gr,w3),k.has(Gr)&&Co(Gr),tt.controller&&k.set(Gr,tt.controller)}),fe({fetchers:new Map(E.fetchers)});let xf=()=>Sr.forEach(tt=>Co(tt.key));be.signal.addEventListener("abort",xf);let{loaderResults:wf,fetcherResults:Sf}=await q1(E.matches,_o,Oa,Sr,ht);if(be.signal.aborted)return;be.signal.removeEventListener("abort",xf),D.delete(R),k.delete(R),Sr.forEach(tt=>k.delete(tt.key));let Pe=AP([...wf,...Sf]);if(Pe){if(Pe.idx>=Oa.length){let tt=Sr[Pe.idx-Oa.length].key;G.add(tt)}return Pl(ht,Pe.result)}let{loaderData:ct,errors:vn}=OP(E,E.matches,Oa,wf,void 0,Sr,Sf,q);if(E.fetchers.has(R)){let tt=Mo(ke.data);E.fetchers.set(R,tt)}eS(Pa),E.navigation.state==="loading"&&Pa>V?(Se(T,"Expected pending action"),_&&_.abort(),je(E.navigation.location,{matches:_o,loaderData:ct,errors:vn,fetchers:new Map(E.fetchers)})):(fe({errors:vn,loaderData:CP(E.loaderData,ct,_o,vn),fetchers:new Map(E.fetchers)}),B=!1)}async function h3(R,F,U,Y,se,de,ve,re){let ge=E.fetchers.get(R);Oo(R,Rl(re,ge?ge.data:void 0),{flushSync:ve});let he=new AbortController,be=_a(e.history,U,he.signal);if(de){let ke=await bf(se,U,be.signal);if(ke.type==="aborted")return;if(ke.type==="error"){let{error:kt}=gf(U,ke);Kr(R,F,kt,{flushSync:ve});return}else if(ke.matches)se=ke.matches,Y=oc(se,U);else{Kr(R,F,Xt(404,{pathname:U}),{flushSync:ve});return}}k.set(R,he);let Ue=K,Ke=(await El("loader",be,[Y],se))[0];if(Li(Ke)&&(Ke=await Vj(Ke,be.signal,!0)||Ke),k.get(R)===he&&k.delete(R),!be.signal.aborted){if(ie.has(R)){Oo(R,Mo(void 0));return}if(Fi(Ke))if(V>Ue){Oo(R,Mo(void 0));return}else{G.add(R),await Pl(be,Ke);return}if(xn(Ke)){Kr(R,F,Ke.error);return}Se(!Li(Ke),"Unhandled fetcher deferred data"),Oo(R,Mo(Ke.data))}}async function Pl(R,F,U){let{submission:Y,fetcherSubmission:se,replace:de}=U===void 0?{}:U;F.response.headers.has("X-Remix-Revalidate")&&(B=!0);let ve=F.response.headers.get("Location");Se(ve,"Expected a Location header on the redirect Response"),ve=PP(ve,new URL(R.url),l);let re=Hc(E.location,ve,{_isRedirect:!0});if(n){let Ke=!1;if(F.response.headers.has("X-Remix-Reload-Document"))Ke=!0;else if(Mx.test(ve)){const ke=e.history.createURL(ve);Ke=ke.origin!==t.location.origin||mr(ke.pathname,l)==null}if(Ke){de?t.location.replace(ve):t.location.assign(ve);return}}_=null;let ge=de===!0||F.response.headers.has("X-Remix-Replace")?vt.Replace:vt.Push,{formMethod:he,formAction:be,formEncType:Ue}=E.navigation;!Y&&!se&&he&&be&&Ue&&(Y=MP(E.navigation));let Le=Y||se;if(wF.has(F.response.status)&&Le&&rr(Le.formMethod))await wt(ge,re,{submission:nt({},Le,{formAction:ve}),preventScrollReset:A});else{let Ke=Rv(re,Y);await wt(ge,re,{overrideNavigation:Ke,fetcherSubmission:se,preventScrollReset:A})}}async function El(R,F,U,Y){try{let se=await jF(c,R,F,U,Y,i,o);return await Promise.all(se.map((de,ve)=>{if(IF(de)){let re=de.result;return{type:We.redirect,response:NF(re,F,U[ve].route.id,Y,l,f.v7_relativeSplatPath)}}return MF(de)}))}catch(se){return U.map(()=>({type:We.error,error:se}))}}async function q1(R,F,U,Y,se){let[de,...ve]=await Promise.all([U.length?El("loader",se,U,F):[],...Y.map(re=>{if(re.matches&&re.match&&re.controller){let ge=_a(e.history,re.path,re.controller.signal);return El("loader",ge,[re.match],re.matches).then(he=>he[0])}else return Promise.resolve({type:We.error,error:Xt(404,{pathname:re.path})})})]);return await Promise.all([$P(R,U,de,de.map(()=>se.signal),!1,E.loaderData),$P(R,Y.map(re=>re.match),ve,Y.map(re=>re.controller?re.controller.signal:null),!0)]),{loaderResults:de,fetcherResults:ve}}function ov(){B=!0,N.push(...av()),Q.forEach((R,F)=>{k.has(F)&&($.add(F),Co(F))})}function Oo(R,F,U){U===void 0&&(U={}),E.fetchers.set(R,F),fe({fetchers:new Map(E.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function Kr(R,F,U,Y){Y===void 0&&(Y={});let se=Ja(E.matches,F);mf(R),fe({errors:{[se.route.id]:U},fetchers:new Map(E.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function Q1(R){return f.v7_fetcherPersist&&(J.set(R,(J.get(R)||0)+1),ie.has(R)&&ie.delete(R)),E.fetchers.get(R)||SF}function mf(R){let F=E.fetchers.get(R);k.has(R)&&!(F&&F.state==="loading"&&D.has(R))&&Co(R),Q.delete(R),D.delete(R),G.delete(R),ie.delete(R),$.delete(R),E.fetchers.delete(R)}function m3(R){if(f.v7_fetcherPersist){let F=(J.get(R)||0)-1;F<=0?(J.delete(R),ie.add(R)):J.set(R,F)}else mf(R);fe({fetchers:new Map(E.fetchers)})}function Co(R){let F=k.get(R);Se(F,"Expected fetch controller: "+R),F.abort(),k.delete(R)}function Z1(R){for(let F of R){let U=Q1(F),Y=Mo(U.data);E.fetchers.set(F,Y)}}function J1(){let R=[],F=!1;for(let U of G){let Y=E.fetchers.get(U);Se(Y,"Expected fetcher: "+U),Y.state==="loading"&&(G.delete(U),R.push(U),F=!0)}return Z1(R),F}function eS(R){let F=[];for(let[U,Y]of D)if(Y0}function v3(R,F){let U=E.blockers.get(R)||kl;return ue.get(R)!==F&&ue.set(R,F),U}function tS(R){E.blockers.delete(R),ue.delete(R)}function vf(R,F){let U=E.blockers.get(R)||kl;Se(U.state==="unblocked"&&F.state==="blocked"||U.state==="blocked"&&F.state==="blocked"||U.state==="blocked"&&F.state==="proceeding"||U.state==="blocked"&&F.state==="unblocked"||U.state==="proceeding"&&F.state==="unblocked","Invalid blocker state transition: "+U.state+" -> "+F.state);let Y=new Map(E.blockers);Y.set(R,F),fe({blockers:Y})}function nS(R){let{currentLocation:F,nextLocation:U,historyAction:Y}=R;if(ue.size===0)return;ue.size>1&&Cs(!1,"A router only supports one blocker at a time");let se=Array.from(ue.entries()),[de,ve]=se[se.length-1],re=E.blockers.get(de);if(!(re&&re.state==="proceeding")&&ve({currentLocation:F,nextLocation:U,historyAction:Y}))return de}function iv(R){let F=Xt(404,{pathname:R}),U=s||a,{matches:Y,route:se}=TP(U);return av(),{notFoundMatches:Y,route:se,error:F}}function gf(R,F){return{boundaryId:Ja(F.partialMatches).route.id,error:Xt(400,{type:"route-discovery",pathname:R,message:F.error!=null&&"message"in F.error?F.error:String(F.error)})}}function av(R){let F=[];return q.forEach((U,Y)=>{(!R||R(Y))&&(U.cancel(),F.push(Y),q.delete(Y))}),F}function g3(R,F,U){if(b=R,y=F,x=U||null,!w&&E.navigation===kv){w=!0;let Y=oS(E.location,E.matches);Y!=null&&fe({restoreScrollPosition:Y})}return()=>{b=null,y=null,x=null}}function rS(R,F){return x&&x(R,F.map(Y=>J5(Y,E.loaderData)))||R.key}function y3(R,F){if(b&&y){let U=rS(R,F);b[U]=y()}}function oS(R,F){if(b){let U=rS(R,F),Y=b[U];if(typeof Y=="number")return Y}return null}function yf(R,F,U){if(u){if(m.has(U))return{active:!1,matches:R};if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:Cd(F,U,l,!0)}}else return{active:!0,matches:Cd(F,U,l,!0)||[]}}return{active:!1,matches:null}}async function bf(R,F,U){let Y=R;for(;;){let se=s==null,de=s||a;try{await TF(u,F,Y,de,i,o,X,U)}catch(ge){return{type:"error",error:ge,partialMatches:Y}}finally{se&&(a=[...a])}if(U.aborted)return{type:"aborted"};let ve=Ni(de,F,l);if(ve)return iS(F,m),{type:"success",matches:ve};let re=Cd(de,F,l,!0);if(!re||Y.length===re.length&&Y.every((ge,he)=>ge.route.id===re[he].route.id))return iS(F,m),{type:"success",matches:null};Y=re}}function iS(R,F){if(F.size>=g){let U=F.values().next().value;F.delete(U)}F.add(R)}function b3(R){i={},s=Vc(R,o,void 0,i)}function x3(R,F){let U=s==null;Uj(R,F,s||a,i,o),U&&(a=[...a],fe({}))}return C={get basename(){return l},get future(){return f},get state(){return E},get routes(){return a},get window(){return t},initialize:ae,subscribe:Oe,enableScrollRestoration:g3,navigate:Ie,fetch:pf,revalidate:dt,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Q1,deleteFetcher:m3,dispose:W,getBlocker:v3,deleteBlocker:tS,patchRoutes:x3,_internalFetchControllers:k,_internalActiveDeferreds:q,_internalSetRoutes:b3},C}function OF(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ty(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let u=jx(o||".",Ax(l,i),mr(e.pathname,n)||e.pathname,s==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!Nx(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Rr([n,u.pathname])),oi(u)}function bP(e,t,n,r){if(!r||!OF(r))return{path:n};if(r.formMethod&&!FF(r.formMethod))return{path:n,error:Xt(405,{method:r.formMethod})};let o=()=>({path:n,error:Xt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=Wj(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!rr(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,g)=>{let[m,b]=g;return""+v+m+"="+b+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!rr(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}Se(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=Ay(r.formData),c=r.formData;else if(r.body instanceof FormData)l=Ay(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=EP(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=EP(l)}catch{return o()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(rr(u.formMethod))return{path:n,submission:u};let f=mi(n);return t&&f.search&&Nx(f.search)&&l.append("index",""),f.search="?"+l,{path:oi(f),submission:u}}function CF(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function xP(e,t,n,r,o,i,a,s,l,c,u,f,d,v,g,m){let b=m?xn(m[1])?m[1].error:m[1].data:void 0,x=e.createURL(t.location),y=e.createURL(o),w=m&&xn(m[1])?m[0]:void 0,S=w?CF(n,w):n,P=m?m[1].statusCode:void 0,O=a&&P&&P>=400,C=S.filter((T,A)=>{let{route:_}=T;if(_.lazy)return!0;if(_.loader==null)return!1;if(i)return typeof _.loader!="function"||_.loader.hydrate?!0:t.loaderData[_.id]===void 0&&(!t.errors||t.errors[_.id]===void 0);if(_F(t.loaderData,t.matches[A],T)||l.some(M=>M===T.route.id))return!0;let j=t.matches[A],L=T;return wP(T,nt({currentUrl:x,currentParams:j.params,nextUrl:y,nextParams:L.params},r,{actionResult:b,actionStatus:P,defaultShouldRevalidate:O?!1:s||x.pathname+x.search===y.pathname+y.search||x.search!==y.search||zj(j,L)}))}),E=[];return f.forEach((T,A)=>{if(i||!n.some(z=>z.route.id===T.routeId)||u.has(A))return;let _=Ni(v,T.path,g);if(!_){E.push({key:A,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(A),L=oc(_,T.path),M=!1;d.has(A)?M=!1:c.has(A)?(c.delete(A),M=!0):j&&j.state!=="idle"&&j.data===void 0?M=s:M=wP(L,nt({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:b,actionStatus:P,defaultShouldRevalidate:O?!1:s})),M&&E.push({key:A,routeId:T.routeId,path:T.path,matches:_,match:L,controller:new AbortController})}),[C,E]}function _F(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function zj(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function wP(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function TF(e,t,n,r,o,i,a,s){let l=[t,...n.map(c=>c.route.id)].join("-");try{let c=a.get(l);c||(c=e({path:t,matches:n,patch:(u,f)=>{s.aborted||Uj(u,f,r,o,i)}}),a.set(l,c)),c&&DF(c)&&await c}finally{a.delete(l)}}function Uj(e,t,n,r,o){if(e){var i;let a=r[e];Se(a,"No route found to patch children into: routeId = "+e);let s=Vc(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...s):a.children=s}else{let a=Vc(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function SP(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Se(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Cs(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!Q5.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,nt({},t(o),{lazy:void 0}))}function AF(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function jF(e,t,n,r,o,i,a,s){let l=r.reduce((f,d)=>f.add(d.route.id),new Set),c=new Set,u=await e({matches:o.map(f=>{let d=l.has(f.route.id);return nt({},f,{shouldLoad:d,resolve:g=>(c.add(f.route.id),d?$F(t,n,f,i,a,g,s):Promise.resolve({type:We.data,result:void 0}))})}),request:n,params:o[0].params,context:s});return o.forEach(f=>Se(c.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),u.filter((f,d)=>l.has(o[d].route.id))}async function $F(e,t,n,r,o,i,a){let s,l,c=u=>{let f,d=new Promise((m,b)=>f=b);l=()=>f(),t.signal.addEventListener("abort",l);let v=m=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:a},...m!==void 0?[m]:[]),g;return i?g=i(m=>v(m)):g=(async()=>{try{return{type:"data",result:await v()}}catch(m){return{type:"error",result:m}}})(),Promise.race([g,d])};try{let u=n.route[e];if(n.route.lazy)if(u){let f,[d]=await Promise.all([c(u).catch(v=>{f=v}),SP(n.route,o,r)]);if(f!==void 0)throw f;s=d}else if(await SP(n.route,o,r),u=n.route[e],u)s=await c(u);else if(e==="action"){let f=new URL(t.url),d=f.pathname+f.search;throw Xt(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:We.data,result:void 0};else if(u)s=await c(u);else{let f=new URL(t.url),d=f.pathname+f.search;throw Xt(404,{pathname:d})}Se(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:We.error,result:u}}finally{l&&t.signal.removeEventListener("abort",l)}return s}async function MF(e){let{result:t,type:n}=e;if(Hj(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:We.error,error:u}}return n===We.error?{type:We.error,error:new op(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:We.data,data:c,statusCode:t.status,headers:t.headers}}if(n===We.error){if(jP(t)){var r;if(t.data instanceof Error){var o;return{type:We.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new op(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:We.error,error:t,statusCode:Bu(t)?t.status:void 0}}if(LF(t)){var i,a;return{type:We.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(jP(t)){var s,l;return{type:We.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:We.data,data:t}}function NF(e,t,n,r,o,i){let a=e.headers.get("Location");if(Se(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Mx.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=Ty(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function PP(e,t,n){if(Mx.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=mr(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function _a(e,t,n,r){let o=e.createURL(Wj(t)).toString(),i={signal:n};if(r&&rr(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=Ay(r.formData):i.body=r.formData}return new Request(o,i)}function Ay(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function EP(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function kF(e,t,n,r,o,i){let a={},s=null,l,c=!1,u={},f=r&&xn(r[1])?r[1].error:void 0;return n.forEach((d,v)=>{let g=t[v].route.id;if(Se(!Fi(d),"Cannot handle redirect results in processLoaderData"),xn(d)){let m=d.error;f!==void 0&&(m=f,f=void 0),s=s||{};{let b=Ja(e,g);s[b.route.id]==null&&(s[b.route.id]=m)}a[g]=void 0,c||(c=!0,l=Bu(d.error)?d.error.status:500),d.headers&&(u[g]=d.headers)}else Li(d)?(o.set(g,d.deferredData),a[g]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(u[g]=d.headers)):(a[g]=d.data,d.statusCode&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(u[g]=d.headers))}),f!==void 0&&r&&(s={[r[0]]:f},a[r[0]]=void 0),{loaderData:a,errors:s,statusCode:l||200,loaderHeaders:u}}function OP(e,t,n,r,o,i,a,s){let{loaderData:l,errors:c}=kF(t,n,r,o,s);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function TP(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Xt(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+a):o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new op(e||500,s,new Error(l),!0)}function AP(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Fi(n))return{result:n,idx:t}}}function Wj(e){let t=typeof e=="string"?mi(e):e;return oi(nt({},t,{hash:""}))}function RF(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function DF(e){return typeof e=="object"&&e!=null&&"then"in e}function IF(e){return Hj(e.result)&&xF.has(e.result.status)}function Li(e){return e.type===We.deferred}function xn(e){return e.type===We.error}function Fi(e){return(e&&e.type)===We.redirect}function jP(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function LF(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Hj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function FF(e){return bF.has(e.toLowerCase())}function rr(e){return gF.has(e.toLowerCase())}async function $P(e,t,n,r,o,i){for(let a=0;af.route.id===l.route.id),u=c!=null&&!zj(c,l)&&(i&&i[l.route.id])!==void 0;if(Li(s)&&(o||u)){let f=r[a];Se(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Vj(s,f,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function Vj(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:We.data,data:e.deferredData.unwrappedData}}catch(o){return{type:We.error,error:o}}return{type:We.data,data:e.deferredData.data}}}function Nx(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function oc(e,t){let n=typeof t=="string"?mi(t).search:t.search;if(e[e.length-1].route.index&&Nx(n||""))return e[e.length-1];let r=Lj(e);return r[r.length-1]}function MP(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Rv(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function BF(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Rl(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function zF(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Mo(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function UF(e,t){try{let n=e.sessionStorage.getItem(Bj);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function WF(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Bj,JSON.stringify(n))}catch(r){Cs(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.26.1 + * + * 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 + */function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),h.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=jx(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Rr([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}const KF=h.createContext(null);function GF(e){let t=h.useContext(Ur).outlet;return t&&h.createElement(KF.Provider,{value:e},t)}function YF(){let{matches:e}=h.useContext(Ur),t=e[e.length-1];return t?t.params:{}}function Wu(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(zr),{matches:o}=h.useContext(Ur),{pathname:i}=ha(),a=JSON.stringify(Ax(o,r.v7_relativeSplatPath));return h.useMemo(()=>jx(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function XF(e,t,n,r){Uu()||Se(!1);let{navigator:o}=h.useContext(zr),{matches:i}=h.useContext(Ur),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=ha(),u;u=c;let f=u.pathname||"/",d=f;if(l!=="/"){let m=l.replace(/^\//,"").split("/");d="/"+f.replace(/^\//,"").split("/").slice(m.length).join("/")}let v=Ni(e,{pathname:d});return e8(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:Rr([l,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:Rr([l,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,r)}function qF(){let e=qj(),t=Bu(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const QF=h.createElement(qF,null);class ZF extends h.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(Ur.Provider,{value:this.props.routeContext},h.createElement(Kj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function JF(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(zu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(Ur.Provider,{value:t},r)}function e8(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||Se(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,d)=>{let v,g=!1,m=null,b=null;n&&(v=s&&f.route.id?s[f.route.id]:void 0,m=f.route.errorElement||QF,l&&(c<0&&d===0?(a8("route-fallback"),g=!0,b=null):c===d&&(g=!0,b=f.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,d+1)),y=()=>{let w;return v?w=m:g?w=b:f.route.Component?w=h.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=u,h.createElement(JF,{match:f,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?h.createElement(ZF,{location:n.location,revalidation:n.revalidation,component:m,error:v,children:y(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):y()},null)}var Yj=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yj||{}),ii=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ii||{});function t8(e){let t=h.useContext(zu);return t||Se(!1),t}function Dx(e){let t=h.useContext(kx);return t||Se(!1),t}function n8(e){let t=h.useContext(Ur);return t||Se(!1),t}function kh(e){let t=n8(),n=t.matches[t.matches.length-1];return n.route.id||Se(!1),n.route.id}function r8(){return kh(ii.UseRouteId)}function Xj(){return Dx(ii.UseNavigation).navigation}function o8(){let e=Dx(ii.UseLoaderData),t=kh(ii.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function qj(){var e;let t=h.useContext(Kj),n=Dx(ii.UseRouteError),r=kh(ii.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function i8(){let{router:e}=t8(Yj.UseNavigateStable),t=kh(ii.UseNavigateStable),n=h.useRef(!1);return Gj(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ip({fromRouteId:t},i)))},[e,t])}const NP={};function a8(e,t,n){NP[e]||(NP[e]=!0)}function s8(e){return GF(e.context)}function l8(e){let{basename:t="/",children:n=null,location:r,navigationType:o=vt.Pop,navigator:i,static:a=!1,future:s}=e;Uu()&&Se(!1);let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:i,static:a,future:ip({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=mi(r));let{pathname:u="/",search:f="",hash:d="",state:v=null,key:g="default"}=r,m=h.useMemo(()=>{let b=mr(u,l);return b==null?null:{location:{pathname:b,search:f,hash:d,state:v,key:g},navigationType:o}},[l,u,f,d,v,g,o]);return m==null?null:h.createElement(zr.Provider,{value:c},h.createElement(Rx.Provider,{children:n,value:m}))}new Promise(()=>{});function c8(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.1 + * + * 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 + */function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}const _d="get",Dv="application/x-www-form-urlencoded";function Rh(e){return e!=null&&typeof e.tagName=="string"}function u8(e){return Rh(e)&&e.tagName.toLowerCase()==="button"}function f8(e){return Rh(e)&&e.tagName.toLowerCase()==="form"}function d8(e){return Rh(e)&&e.tagName.toLowerCase()==="input"}function p8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function h8(e,t){return e.button===0&&(!t||t==="_self")&&!p8(e)}function jy(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function m8(e,t){let n=jy(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}let zf=null;function v8(){if(zf===null)try{new FormData(document.createElement("form"),0),zf=!1}catch{zf=!0}return zf}const g8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Iv(e){return e!=null&&!g8.has(e)?null:e}function y8(e,t){let n,r,o,i,a;if(f8(e)){let s=e.getAttribute("action");r=s?mr(s,t):null,n=e.getAttribute("method")||_d,o=Iv(e.getAttribute("enctype"))||Dv,i=new FormData(e)}else if(u8(e)||d8(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a