From 9b8eee555b70df38bfe7a6d5618e4875d47030de Mon Sep 17 00:00:00 2001 From: Leon Jacobs Date: Wed, 18 Sep 2024 18:59:53 +0200 Subject: [PATCH] (chore) update ui dist --- web/ui/dist/README.md | 5 - web/ui/dist/assets/index-1RGl8SFg.js | 384 ++++++++++++++++++ web/ui/dist/assets/index-ApPLU5eo.js | 384 ------------------ ...{index-D5JT96tU.css => index-BctVAbJi.css} | 2 +- web/ui/dist/index.html | 4 +- 5 files changed, 387 insertions(+), 392 deletions(-) delete mode 100644 web/ui/dist/README.md create mode 100644 web/ui/dist/assets/index-1RGl8SFg.js delete mode 100644 web/ui/dist/assets/index-ApPLU5eo.js rename web/ui/dist/assets/{index-D5JT96tU.css => index-BctVAbJi.css} (84%) diff --git a/web/ui/dist/README.md b/web/ui/dist/README.md deleted file mode 100644 index 92821719..00000000 --- a/web/ui/dist/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# note on this directory - -We commit this to source purely to let `go install` installations work. It's not amazing, but it is what it is. - -**NOTE** No pull request that updates these files will be accepted. Please exclude these files from your commits. Minified JavaScript is scary enough to deal with ;) diff --git a/web/ui/dist/assets/index-1RGl8SFg.js b/web/ui/dist/assets/index-1RGl8SFg.js new file mode 100644 index 00000000..c4fd7564 --- /dev/null +++ b/web/ui/dist/assets/index-1RGl8SFg.js @@ -0,0 +1,384 @@ +function PT(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 ET={exports:{}},yh={},OT={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 ku=Symbol.for("react.element"),w3=Symbol.for("react.portal"),S3=Symbol.for("react.fragment"),P3=Symbol.for("react.strict_mode"),E3=Symbol.for("react.profiler"),O3=Symbol.for("react.provider"),C3=Symbol.for("react.context"),_3=Symbol.for("react.forward_ref"),T3=Symbol.for("react.suspense"),A3=Symbol.for("react.memo"),j3=Symbol.for("react.lazy"),dS=Symbol.iterator;function $3(e){return e===null||typeof e!="object"?null:(e=dS&&e[dS]||e["@@iterator"],typeof e=="function"?e:null)}var CT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_T=Object.assign,TT={};function Js(e,t,n){this.props=e,this.context=t,this.refs=TT,this.updater=n||CT}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 AT(){}AT.prototype=Js.prototype;function Ib(e,t,n){this.props=e,this.context=t,this.refs=TT,this.updater=n||CT}var Lb=Ib.prototype=new AT;Lb.constructor=Ib;_T(Lb,Js.prototype);Lb.isPureReactComponent=!0;var pS=Array.isArray,jT=Object.prototype.hasOwnProperty,Fb={current:null},$T={key:!0,ref:!0,__self:!0,__source:!0};function MT(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)jT.call(t,r)&&!$T.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,D=$[G];if(0>>1;Go(J,W))ieo(q,J)?($[G]=q,$[ie]=W,G=ie):($[G]=J,$[Q]=W,G=Q);else if(ieo(q,W))$[G]=q,$[ie]=W,G=ie;else break e}}return k}function o($,k){var W=$.sortIndex-k.sortIndex;return W!==0?W:$.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,m=!1,g=!1,v=!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(v=!1,w($),!g)if(n(l)!==null)g=!0,F(P);else{var k=n(c);k!==null&&N(S,k.startTime-$)}}function P($,k){g=!1,v&&(v=!1,x(E),E=-1),m=!0;var W=d;try{for(w(k),f=n(l);f!==null&&(!(f.expirationTime>k)||$&&!_());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var D=G(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 K=!0;else{var Q=n(c);Q!==null&&N(S,Q.startTime-k),K=!1}return K}finally{f=null,d=W,m=!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 W=d;d=k;try{return $()}finally{d=W}},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 W=d;d=$;try{return k()}finally{d=W}},e.unstable_scheduleCallback=function($,k,W){var G=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0G?($.sortIndex=W,t(c,$),n(l)===null&&$===n(c)&&(v?(x(E),E=-1):v=!0,N(S,W-G))):($.sortIndex=D,t(l,$),g||m||(g=!0,F(P))),$},e.unstable_shouldYield=_,e.unstable_wrapCallback=function($){var k=d;return function(){var W=d;d=k;try{return $.apply(this,arguments)}finally{d=W}}}})(IT);DT.exports=IT;var U3=DT.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 W3=h,Tn=U3;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"),Fg=Object.prototype.hasOwnProperty,H3=/^[: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]*$/,mS={},vS={};function V3(e){return Fg.call(vS,e)?!0:Fg.call(mS,e)?!1:H3.test(e)?vS[e]=!0:(mS[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 K3(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 Ub=/[\-:]([a-z])/g;function Wb(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(Ub,Wb);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(Ub,Wb);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(Ub,Wb);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 Hb(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{fv=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jl(e):""}function Y3(e){switch(e.tag){case 5:return Jl(e.type);case 16:return Jl("Lazy");case 13:return Jl("Suspense");case 19:return Jl("SuspenseList");case 0:case 2:case 15:return e=dv(e.type,!1),e;case 11:return e=dv(e.type.render,!1),e;case 1:return e=dv(e.type,!0),e;default:return""}}function Wg(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 Bg:return"Profiler";case Vb:return"StrictMode";case zg:return"Suspense";case Ug:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BT:return(e.displayName||"Context")+".Consumer";case FT:return(e._context.displayName||"Context")+".Provider";case Gb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kb:return t=e.displayName||null,t!==null?t:Wg(e.type)||"Memo";case Ro:t=e._payload,e=e._init;try{return Wg(e(t))}catch{}}return null}function X3(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 Wg(t);case 8:return t===Vb?"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 ri(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function UT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q3(e){var t=UT(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 WT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kd(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 Hg(e,t){var n=t.checked;return st({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function yS(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ri(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 HT(e,t){t=t.checked,t!=null&&Hb(e,"checked",t,!1)}function Vg(e,t){HT(e,t);var n=ri(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")?Gg(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gg(e,t.type,ri(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bS(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 Gg(e,t,n){(t!=="number"||kd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ec=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 _c(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cc={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},Q3=["Webkit","ms","Moz","O"];Object.keys(cc).forEach(function(e){Q3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cc[t]=cc[e]})});function YT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cc.hasOwnProperty(e)&&cc[e]?(""+t).trim():t+"px"}function XT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=YT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Z3=st({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 Xg(e,t){if(t){if(Z3[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 qg(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 Qg=null;function Yb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zg=null,as=null,ss=null;function SS(e){if(e=Iu(e)){if(typeof Zg!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Ph(t),Zg(e.stateNode,e.type,t))}}function qT(e){as?ss?ss.push(e):ss=[e]:as=e}function QT(){if(as){var e=as,t=ss;if(ss=as=null,SS(e),t)for(e=0;e>>=0,e===0?32:31-(c4(e)/u4|0)|0}var Tf=64,Af=4194304;function tc(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 Ld(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=tc(s):(i&=a,i!==0&&(r=tc(i)))}else a=n&~o,a!==0?r=tc(a):i!==0&&(r=tc(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 Ru(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 h4(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=fc),$S=" ",MS=!1;function gA(e,t){switch(e){case"keyup":return U4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function H4(e,t){switch(e){case"compositionend":return yA(t);case"keypress":return t.which!==32?null:(MS=!0,$S);case"textInput":return e=t.data,e===$S&&MS?null:e;default:return null}}function V4(e,t){if(Wa)return e==="compositionend"||!nx&&gA(e,t)?(e=mA(),yd=Jb=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=DS(n)}}function SA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?SA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function PA(){for(var e=window,t=kd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kd(e.document)}return t}function rx(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 e5(e){var t=PA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&SA(n.ownerDocument.documentElement,n)){if(r!==null&&rx(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=IS(n,i);var a=IS(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,oy=null,pc=null,iy=!1;function LS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;iy||Ha==null||Ha!==kd(r)||(r=Ha,"selectionStart"in r&&rx(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}),pc&&Nc(pc,r)||(pc=r,r=zd(oy,"onSelect"),0Ka||(e.current=fy[Ka],fy[Ka]=null,Ka--)}function Ye(e,t){Ka++,fy[Ka]=e.current,e.current=t}var oi={},Kt=mi(oi),un=mi(!1),Zi=oi;function xs(e,t){var n=e.type.contextTypes;if(!n)return oi;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 Wd(){et(un),et(Kt)}function VS(e,t,n){if(Kt.current!==oi)throw Error(Z(168));Ye(Kt,t),Ye(un,n)}function MA(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,X3(e)||"Unknown",o));return st({},n,r)}function Hd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||oi,Zi=Kt.current,Ye(Kt,e),Ye(un,un.current),!0}function GS(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=MA(e,t,Zi),r.__reactInternalMemoizedMergedChildContext=e,et(un),et(Kt),Ye(Kt,e)):et(un),Ye(un,n)}var Jr=null,Eh=!1,Cv=!1;function NA(e){Jr===null?Jr=[e]:Jr.push(e)}function d5(e){Eh=!0,NA(e)}function vi(){if(!Cv&&Jr!==null){Cv=!0;var e=0,t=ze;try{var n=Jr;for(ze=1;e>=a,o-=a,eo=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),nt&&ji(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),nt&&ji(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 nt&&ji(x,E),P}for(C=r(x,C);!A.done;E++,A=w.next())A=m(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)}),nt&&ji(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&&XS(P)===O.type){n(x,O.sibling),y=o(O,w.props),y.ref=jl(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=Ki(w.props.children,x.mode,S,w.key),y.return=x,x=y):(S=Cd(w.type,w.key,w.props,null,x.mode,S),S.ref=jl(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=kv(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(ec(w))return g(x,y,w,S);if(Ol(w))return v(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=Nv(w,x.mode,S),y.return=x,x=y),a(x)):n(x,y)}return b}var Ss=IA(!0),LA=IA(!1),Kd=mi(null),Yd=null,qa=null,sx=null;function lx(){sx=qa=Yd=null}function cx(e){var t=Kd.current;et(Kd),e._currentValue=t}function hy(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){Yd=e,sx=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(sx!==e)if(e={context:e,memoizedValue:t,next:null},qa===null){if(Yd===null)throw Error(Z(308));qa=e,Yd.dependencies={lanes:0,firstContext:e}}else qa=qa.next=e;return t}var Fi=null;function ux(e){Fi===null?Fi=[e]:Fi.push(e)}function FA(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ux(t)):(n.next=o.next,o.next=n),t.interleaved=n,fo(e,r)}function fo(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 fx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function BA(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 io(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,je&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,fo(e,n)}return o=r.interleaved,o===null?(t.next=t,ux(r)):(t.next=o.next,o.next=t),r.interleaved=t,fo(e,n)}function xd(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,qb(e,n)}}function qS(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 Xd(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,m=s.eventTime;if((r&d)===d){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,v=s;switch(d=t,m=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(m,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(m,f,d):g,d==null)break e;f=st({},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 m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=f):u=u.next=m,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);ta|=a,e.lanes=a,e.memoizedState=f}}function QS(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Tv.transition;Tv.transition={};try{e(!1),t()}finally{ze=n,Tv.transition=r}}function rj(){return Wn().memoizedState}function v5(e,t,n){var r=Jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oj(e))ij(t,n);else if(n=FA(e,t,n,r),n!==null){var o=en();dr(n,e,r,o),aj(n,t,r)}}function g5(e,t,n){var r=Jo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oj(e))ij(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,ux(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=FA(e,t,o,r),n!==null&&(o=en(),dr(n,e,r,o),aj(n,t,r))}}function oj(e){var t=e.alternate;return e===at||t!==null&&t===at}function ij(e,t){hc=Qd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function aj(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qb(e,n)}}var Zd={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},y5={readContext:Un,useCallback:function(e,t){return Pr().memoizedState=[e,t===void 0?null:t],e},useContext:Un,useEffect:JS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sd(4194308,4,ZA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sd(4,2,e,t)},useMemo:function(e,t){var n=Pr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pr();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=v5.bind(null,at,e),[r.memoizedState,e]},useRef:function(e){var t=Pr();return e={current:e},t.memoizedState=e},useState:ZS,useDebugValue:bx,useDeferredValue:function(e){return Pr().memoizedState=e},useTransition:function(){var e=ZS(!1),t=e[0];return e=m5.bind(null,e[1]),Pr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=at,o=Pr();if(nt){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),$t===null)throw Error(Z(349));ea&30||HA(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,JS(GA.bind(null,r,i,e),[e]),r.flags|=2048,zc(9,VA.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pr(),t=$t.identifierPrefix;if(nt){var n=to,r=eo;n=(r&~(1<<32-fr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fc++,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[Ar]=t,e[Dc]=r,vj(e,t,!1,!1),t.stateNode=e;e:{switch(a=qg(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,$l(i,!1),t.lanes=4194304)}else{if(!r)if(e=qd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$l(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!nt)return zt(t),null}else 2*pt()-i.renderingStartTime>Os&&n!==1073741824&&(t.flags|=128,r=!0,$l(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=ot.current,Ye(ot,r?n&1|2:n&1),t):(zt(t),null);case 22:case 23:return Ox(),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 C5(e,t){switch(ix(t),t.tag){case 1:return fn(t.type)&&Wd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ps(),et(un),et(Kt),hx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return px(t),null;case 13:if(et(ot),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(ot),null;case 4:return Ps(),null;case 10:return cx(t.type._context),null;case 22:case 23:return Ox(),null;case 24:return null;default:return null}}var Lf=!1,Wt=!1,_5=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 Py(e,t,n){try{n()}catch(r){ut(e,t,r)}}var uP=!1;function T5(e,t){if(ay=Fd,e=PA(),rx(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 m;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),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++c===o&&(s=a),d===i&&++u===r&&(l=a),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sy={focusedElem:e,selectionRange:n},Fd=!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 v=g.memoizedProps,b=g.memoizedState,x=t.stateNode,y=x.getSnapshotBeforeUpdate(t.elementType===t.type?v:er(t.type,v),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=uP,uP=!1,g}function mc(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&&Py(t,n,i)}o=o.next}while(o!==r)}}function _h(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 Ey(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 bj(e){var t=e.alternate;t!==null&&(e.alternate=null,bj(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ar],delete t[Dc],delete t[uy],delete t[u5],delete t[f5])),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 xj(e){return e.tag===5||e.tag===3||e.tag===4}function fP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xj(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 Oy(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=Ud));else if(r!==4&&(e=e.child,e!==null))for(Oy(e,t,n),e=e.sibling;e!==null;)Oy(e,t,n),e=e.sibling}function Cy(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(Cy(e,t,n),e=e.sibling;e!==null;)Cy(e,t,n),e=e.sibling}var Dt=null,nr=!1;function To(e,t,n){for(n=n.child;n!==null;)wj(e,t,n),n=n.sibling}function wj(e,t,n){if($r&&typeof $r.onCommitFiberUnmount=="function")try{$r.onCommitFiberUnmount(bh,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?Ov(e.parentNode,n):e.nodeType===1&&Ov(e,n),$c(e)):Ov(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)&&Py(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 dP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _5),t.forEach(function(r){var o=I5.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*j5(r/1960))-r,10e?16:e,Ho===null)var r=!1;else{if(e=Ho,Ho=null,tp=0,je&6)throw Error(Z(331));var o=je;for(je|=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()-Px?Gi(e,0):Sx|=n),dn(e,t)}function Aj(e,t){t===0&&(e.mode&1?(t=Af,Af<<=1,!(Af&130023424)&&(Af=4194304)):t=1);var n=en();e=fo(e,t),e!==null&&(Ru(e,t,n),dn(e,n))}function D5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Aj(e,n)}function I5(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),Aj(e,n)}var jj;jj=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,E5(e,t,n);ln=!!(e.flags&131072)}else ln=!1,nt&&t.flags&1048576&&kA(t,Gd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pd(e,t),e=t.pendingProps;var o=xs(t,Kt.current);cs(t,n),o=vx(null,t,r,e,o,n);var i=gx();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,Hd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,fx(t),o.updater=Ch,t.stateNode=o,o._reactInternals=t,vy(t,r,e,n),t=by(null,t,r,!0,i,n)):(t.tag=0,nt&&i&&ox(t),qt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=F5(r),e=er(r,e),o){case 0:t=yy(null,t,r,e,n);break e;case 1:t=sP(null,t,r,e,n);break e;case 11:t=iP(null,t,r,e,n);break e;case 14:t=aP(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),yy(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:er(r,o),sP(e,t,r,o,n);case 3:e:{if(pj(t),e===null)throw Error(Z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,BA(e,t),Xd(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=lP(e,t,r,n,o);break e}else if(r!==o){o=Es(Error(Z(424)),t),t=lP(e,t,r,n,o);break e}else for(On=qo(t.stateNode.containerInfo.firstChild),Cn=t,nt=!0,ar=null,n=LA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ws(),r===o){t=po(e,t,n);break e}qt(e,t,r,n)}t=t.child}return t;case 5:return zA(t),e===null&&py(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,ly(r,o)?a=null:i!==null&&ly(r,i)&&(t.flags|=32),dj(e,t),qt(e,t,a,n),t.child;case 6:return e===null&&py(t),null;case 13:return hj(e,t,n);case 4:return dx(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),iP(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,Ye(Kd,r._currentValue),r._currentValue=a,i!==null)if(hr(i.value,a)){if(i.children===o.children&&!un.current){t=po(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=io(-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),hy(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),hy(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),aP(e,t,r,o,n);case 15:return uj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:er(r,o),Pd(e,t),t.tag=1,fn(r)?(e=!0,Hd(t)):e=!1,cs(t,n),sj(t,r,o),vy(t,r,o,n),by(null,t,r,!0,e,n);case 19:return mj(e,t,n);case 22:return fj(e,t,n)}throw Error(Z(156,t.tag))};function $j(e,t){return oA(e,t)}function L5(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 L5(e,t,n,r)}function _x(e){return e=e.prototype,!(!e||!e.isReactComponent)}function F5(e){if(typeof e=="function")return _x(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gb)return 11;if(e===Kb)return 14}return 2}function ei(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 Cd(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")_x(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ua:return Ki(n.children,o,i,t);case Vb:a=8,o|=8;break;case Bg:return e=In(12,n,t,o|2),e.elementType=Bg,e.lanes=i,e;case zg:return e=In(13,n,t,o),e.elementType=zg,e.lanes=i,e;case Ug:return e=In(19,n,t,o),e.elementType=Ug,e.lanes=i,e;case zT:return Ah(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case FT:a=10;break e;case BT:a=9;break e;case Gb:a=11;break e;case Kb: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 Ki(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Ah(e,t,n,r){return e=In(22,e,r,t),e.elementType=zT,e.lanes=n,e.stateNode={isHidden:!1},e}function Nv(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function kv(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 B5(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=hv(0),this.expirationTimes=hv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hv(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tx(e,t,n,r,o,i,a,s,l){return e=new B5(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},fx(i),e}function z5(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rj)}catch(e){console.error(e)}}Rj(),RT.exports=jn;var yr=RT.exports;const Mx=Ve(yr),G5=PT({__proto__:null,default:Mx},[yr]);var Dj,xP=yr;Dj=xP.createRoot,xP.hydrateRoot;/** + * @remix-run/router v1.19.2 + * + * 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 tt(){return tt=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 Y5(){return Math.random().toString(36).substr(2,8)}function SP(e,t){return{usr:e.state,key:e.key,idx:t}}function Wc(e,t,n,r){return n===void 0&&(n=null),tt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gi(t):t,{state:n,key:t&&t.key||r||Y5()})}function ii(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 gi(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 X5(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(tt({},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:v.location,delta:x})}function d(b,x){s=vt.Push;let y=Wc(v.location,b,x);c=u()+1;let w=SP(y,c),S=v.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:v.location,delta:1})}function m(b,x){s=vt.Replace;let y=Wc(v.location,b,x);c=u();let w=SP(y,c),S=v.createHref(y);a.replaceState(w,"",S),i&&l&&l({action:s,location:v.location,delta:0})}function g(b){let x=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof b=="string"?b:ii(b);return y=y.replace(/ $/,"%20"),Pe(x,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,x)}let v={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(wP,f),l=b,()=>{o.removeEventListener(wP,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:m,go(b){return a.go(b)}};return v}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 Q5(e){return e.index===!0}function Hc(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(Pe(o.index!==!0||!o.children,"Cannot specify children on an index route"),Pe(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Q5(o)){let l=tt({},o,t(o),{id:s});return r[s]=l,l}else{let l=tt({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=Hc(o.children,t,a,r)),l}})}function Di(e,t,n){return n===void 0&&(n="/"),_d(e,t,n,!1)}function _d(e,t,n,r){let o=typeof t=="string"?gi(t):t,i=mr(o.pathname||"/",n);if(i==null)return null;let a=Ij(e);J5(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("/")&&(Pe(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=Nr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ij(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:aF(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 Lj(i.path))o(i,a,l)}),t}function Lj(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=Lj(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 J5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sF(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const eF=/^:[\w-]+$/,tF=3,nF=2,rF=1,oF=10,iF=-2,PP=e=>e==="*";function aF(e,t){let n=e.split("/"),r=n.length;return n.some(PP)&&(r+=iF),t&&(r+=nF),n.filter(o=>!PP(o)).reduce((o,i)=>o+(eF.test(i)?tF:i===""?rF:oF),r)}function sF(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 lF(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:d,isOptional:m}=u;if(d==="*"){let v=s[f]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const g=s[f];return m&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function cF(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 uF(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 fF(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?gi(e):e;return{pathname:n?n.startsWith("/")?n:dF(n,t):t,search:hF(r),hash:mF(o)}}function dF(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 Rv(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 Fj(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nx(e,t){let n=Fj(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function kx(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=gi(e):(o=tt({},e),Pe(!o.pathname||!o.pathname.includes("?"),Rv("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),Rv("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),Rv("#","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=fF(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Nr=e=>e.join("/").replace(/\/\/+/g,"/"),pF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Rx=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,tt({},r,{headers:o}))};class ip{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 Fu(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Bj=["post","put","patch","delete"],vF=new Set(Bj),gF=["get",...Bj],yF=new Set(gF),bF=new Set([301,302,303,307,308]),xF=new Set([307,308]),Dv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Nl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Dx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SF=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zj="remix-router-transitions";function PF(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;Pe(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=B=>({hasErrorBoundary:R(B)})}else o=SF;let i={},a=Hc(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.unstable_dataStrategy||AF,u=e.unstable_patchRoutesOnNavigation,f=tt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),d=null,m=new Set,g=1e3,v=new Set,b=null,x=null,y=null,w=e.hydrationData!=null,S=Di(a,e.history.location,l),P=null;if(S==null&&!u){let R=Xt(404,{pathname:e.history.location.pathname}),{matches:B,route:U}=MP(a);S=B,P={[U.id]:R}}S&&!e.hydrationData&&gf(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,B=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||B&&B[Y.route.id]!==void 0:!0;if(B){let Y=S.findIndex(se=>B[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=gf(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:Dv,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,F=!1,N=[],$=new Set,k=new Map,W=0,G=-1,D=new Map,K=new Set,Q=new Map,J=new Map,ie=new Set,q=new Map,ue=new Map,X=new Map,te;function ae(){if(d=e.history.listen(R=>{let{action:B,location:U,delta:Y}=R;if(te){te(),te=void 0;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=sS({currentLocation:E.location,nextLocation:U,historyAction:B});if(se&&Y!=null){let me=new Promise(ye=>{te=ye});e.history.go(Y*-1),mf(se,{state:"blocked",location:U,proceed(){mf(se,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),me.then(()=>e.history.go(Y))},reset(){let ye=new Map(E.blockers);ye.set(se,Nl),fe({blockers:ye})}});return}return wt(B,U)}),n){HF(t,L);let R=()=>VF(t,L);t.addEventListener("pagehide",R),M=()=>t.removeEventListener("pagehide",R)}return E.initialized||wt(vt.Pop,E.location,{initialHydration:!0}),C}function H(){d&&d(),M&&M(),m.clear(),_&&_.abort(),E.fetchers.forEach((R,B)=>hf(B)),E.blockers.forEach((R,B)=>aS(B))}function Oe(R){return m.add(R),()=>m.delete(R)}function fe(R,B){B===void 0&&(B={}),E=tt({},E,R);let U=[],Y=[];f.v7_fetcherPersist&&E.fetchers.forEach((se,me)=>{se.state==="idle"&&(ie.has(me)?Y.push(me):U.push(me))}),[...m].forEach(se=>se(E,{deletedFetchers:Y,unstable_viewTransitionOpts:B.viewTransitionOpts,unstable_flushSync:B.flushSync===!0})),f.v7_fetcherPersist&&(U.forEach(se=>E.fetchers.delete(se)),Y.forEach(se=>hf(se)))}function $e(R,B,U){var Y,se;let{flushSync:me}=U===void 0?{}:U,ye=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;B.actionData?Object.keys(B.actionData).length>0?re=B.actionData:re=null:ye?re=E.actionData:re=null;let ve=B.loaderData?jP(E.loaderData,B.loaderData,B.matches||[],B.errors):E.loaderData,de=E.blockers;de.size>0&&(de=new Map(de),de.forEach((Fe,Xe)=>de.set(Xe,Nl)));let he=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 Ne;if(T===vt.Pop){let Fe=L.get(E.location.pathname);Fe&&Fe.has(R.pathname)?Ne={currentLocation:E.location,nextLocation:R}:L.has(R.pathname)&&(Ne={currentLocation:R,nextLocation:E.location})}else if(j){let Fe=L.get(E.location.pathname);Fe?Fe.add(R.pathname):(Fe=new Set([R.pathname]),L.set(E.location.pathname,Fe)),Ne={currentLocation:E.location,nextLocation:R}}fe(tt({},B,{actionData:re,loaderData:ve,historyAction:T,location:R,initialized:!0,navigation:Dv,revalidation:"idle",restoreScrollPosition:cS(R,B.matches||E.matches),preventScrollReset:he,blockers:de}),{viewTransitionOpts:Ne,flushSync:me===!0}),T=vt.Pop,A=!1,j=!1,z=!1,F=!1,N=[]}async function Le(R,B){if(typeof R=="number"){e.history.go(R);return}let U=$y(E.location,E.matches,l,f.v7_prependBasename,R,f.v7_relativeSplatPath,B==null?void 0:B.fromRouteId,B==null?void 0:B.relative),{path:Y,submission:se,error:me}=EP(f.v7_normalizeFormMethod,!1,U,B),ye=E.location,re=Wc(E.location,Y,B&&B.state);re=tt({},re,e.history.encodeLocation(re));let ve=B&&B.replace!=null?B.replace:void 0,de=vt.Push;ve===!0?de=vt.Replace:ve===!1||se!=null&&rr(se.formMethod)&&se.formAction===E.location.pathname+E.location.search&&(de=vt.Replace);let he=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,Ne=(B&&B.unstable_flushSync)===!0,Fe=sS({currentLocation:ye,nextLocation:re,historyAction:de});if(Fe){mf(Fe,{state:"blocked",location:re,proceed(){mf(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:re}),Le(R,B)},reset(){let Xe=new Map(E.blockers);Xe.set(Fe,Nl),fe({blockers:Xe})}});return}return await wt(de,re,{submission:se,pendingError:me,preventScrollReset:he,replace:B&&B.replace,enableViewTransition:B&&B.unstable_viewTransition,flushSync:Ne})}function dt(){if(av(),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,enableViewTransition:j===!0})}}async function wt(R,B,U){_&&_.abort(),_=null,T=R,z=(U&&U.startUninterruptedRevalidation)===!0,g3(E.location,E.matches),A=(U&&U.preventScrollReset)===!0,j=(U&&U.enableViewTransition)===!0;let Y=s||a,se=U&&U.overrideNavigation,me=Di(Y,B,l),ye=(U&&U.flushSync)===!0,re=gf(me,Y,B.pathname);if(re.active&&re.matches&&(me=re.matches),!me){let{error:Ae,notFoundMatches:_t,route:ht}=sv(B.pathname);$e(B,{matches:_t,loaderData:{},errors:{[ht.id]:Ae}},{flushSync:ye});return}if(E.initialized&&!F&&RF(E.location,B)&&!(U&&U.submission&&rr(U.submission.formMethod))){$e(B,{matches:me},{flushSync:ye});return}_=new AbortController;let ve=_a(e.history,B,_.signal,U&&U.submission),de;if(U&&U.pendingError)de=[Ja(me).route.id,{type:We.error,error:U.pendingError}];else if(U&&U.submission&&rr(U.submission.formMethod)){let Ae=await Qn(ve,B,U.submission,me,re.active,{replace:U.replace,flushSync:ye});if(Ae.shortCircuited)return;if(Ae.pendingActionResult){let[_t,ht]=Ae.pendingActionResult;if(xn(ht)&&Fu(ht.error)&&ht.error.status===404){_=null,$e(B,{matches:Ae.matches,loaderData:{},errors:{[_t]:ht.error}});return}}me=Ae.matches||me,de=Ae.pendingActionResult,se=Iv(B,U.submission),ye=!1,re.active=!1,ve=_a(e.history,ve.url,ve.signal)}let{shortCircuited:he,matches:Ne,loaderData:Fe,errors:Xe}=await Hr(ve,B,me,re.active,se,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,ye,de);he||(_=null,$e(B,tt({matches:Ne||me},$P(de),{loaderData:Fe,errors:Xe})))}async function Qn(R,B,U,Y,se,me){me===void 0&&(me={}),av();let ye=UF(B,U);if(fe({navigation:ye},{flushSync:me.flushSync===!0}),se){let de=await yf(Y,B.pathname,R.signal);if(de.type==="aborted")return{shortCircuited:!0};if(de.type==="error"){let{boundaryId:he,error:Ne}=vf(B.pathname,de);return{matches:de.partialMatches,pendingActionResult:[he,{type:We.error,error:Ne}]}}else if(de.matches)Y=de.matches;else{let{notFoundMatches:he,error:Ne,route:Fe}=sv(B.pathname);return{matches:he,pendingActionResult:[Fe.id,{type:We.error,error:Ne}]}}}let re,ve=rc(Y,B);if(!ve.route.action&&!ve.route.lazy)re={type:We.error,error:Xt(405,{method:R.method,pathname:B.pathname,routeId:ve.route.id})};else if(re=(await Pl("action",E,R,[ve],Y,null))[ve.route.id],R.signal.aborted)return{shortCircuited:!0};if(zi(re)){let de;return me&&me.replace!=null?de=me.replace:de=_P(re.response.headers.get("Location"),new URL(R.url),l)===E.location.pathname+E.location.search,await Ti(R,re,!0,{submission:U,replace:de}),{shortCircuited:!0}}if(Vo(re))throw Xt(400,{type:"defer-action"});if(xn(re)){let de=Ja(Y,ve.route.id);return(me&&me.replace)!==!0&&(T=vt.Push),{matches:Y,pendingActionResult:[de.route.id,re]}}return{matches:Y,pendingActionResult:[ve.route.id,re]}}async function Hr(R,B,U,Y,se,me,ye,re,ve,de,he){let Ne=se||Iv(B,me),Fe=me||ye||kP(Ne),Xe=!z&&(!f.v7_partialHydration||!ve);if(Y){if(Xe){let lt=wr(he);fe(tt({navigation:Ne},lt!==void 0?{actionData:lt}:{}),{flushSync:de})}let Se=await yf(U,B.pathname,R.signal);if(Se.type==="aborted")return{shortCircuited:!0};if(Se.type==="error"){let{boundaryId:lt,error:vn}=vf(B.pathname,Se);return{matches:Se.partialMatches,loaderData:{},errors:{[lt]:vn}}}else if(Se.matches)U=Se.matches;else{let{error:lt,notFoundMatches:vn,route:ct}=sv(B.pathname);return{matches:vn,loaderData:{},errors:{[ct.id]:lt}}}}let Ae=s||a,[_t,ht]=OP(e.history,E,U,Fe,B,f.v7_partialHydration&&ve===!0,f.v7_skipActionErrorRevalidation,F,N,$,ie,Q,K,Ae,l,he);if(lv(Se=>!(U&&U.some(lt=>lt.route.id===Se))||_t&&_t.some(lt=>lt.route.id===Se)),G=++W,_t.length===0&&ht.length===0){let Se=oS();return $e(B,tt({matches:U,loaderData:{},errors:he&&xn(he[1])?{[he[0]]:he[1].error}:null},$P(he),Se?{fetchers:new Map(E.fetchers)}:{}),{flushSync:de}),{shortCircuited:!0}}if(Xe){let Se={};if(!Y){Se.navigation=Ne;let lt=wr(he);lt!==void 0&&(Se.actionData=lt)}ht.length>0&&(Se.fetchers=Sl(ht)),fe(Se,{flushSync:de})}ht.forEach(Se=>{k.has(Se.key)&&Co(Se.key),Se.controller&&k.set(Se.key,Se.controller)});let El=()=>ht.forEach(Se=>Co(Se.key));_&&_.signal.addEventListener("abort",El);let{loaderResults:Gr,fetcherResults:Oa}=await tS(E,U,_t,ht,R);if(R.signal.aborted)return{shortCircuited:!0};_&&_.signal.removeEventListener("abort",El),ht.forEach(Se=>k.delete(Se.key));let _o=zf(Gr);if(_o)return await Ti(R,_o.result,!0,{replace:re}),{shortCircuited:!0};if(_o=zf(Oa),_o)return K.add(_o.key),await Ti(R,_o.result,!0,{replace:re}),{shortCircuited:!0};let{loaderData:bf,errors:Kr}=AP(E,U,_t,Gr,he,ht,Oa,q);q.forEach((Se,lt)=>{Se.subscribe(vn=>{(vn||Se.done)&&q.delete(lt)})}),f.v7_partialHydration&&ve&&E.errors&&Object.entries(E.errors).filter(Se=>{let[lt]=Se;return!_t.some(vn=>vn.route.id===lt)}).forEach(Se=>{let[lt,vn]=Se;Kr=Object.assign(Kr||{},{[lt]:vn})});let xf=oS(),wf=iS(G),Sf=xf||wf||ht.length>0;return tt({matches:U,loaderData:bf,errors:Kr},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(B=>{let U=E.fetchers.get(B.key),Y=kl(void 0,U?U.data:void 0);E.fetchers.set(B.key,Y)}),new Map(E.fetchers)}function df(R,B,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,me=s||a,ye=$y(E.location,E.matches,l,f.v7_prependBasename,U,f.v7_relativeSplatPath,B,Y==null?void 0:Y.relative),re=Di(me,ye,l),ve=gf(re,me,ye);if(ve.active&&ve.matches&&(re=ve.matches),!re){Vr(R,B,Xt(404,{pathname:ye}),{flushSync:se});return}let{path:de,submission:he,error:Ne}=EP(f.v7_normalizeFormMethod,!0,ye,Y);if(Ne){Vr(R,B,Ne,{flushSync:se});return}let Fe=rc(re,de);if(A=(Y&&Y.preventScrollReset)===!0,he&&rr(he.formMethod)){pf(R,B,de,Fe,re,ve.active,se,he);return}Q.set(R,{routeId:B,path:de}),p3(R,B,de,Fe,re,ve.active,se,he)}async function pf(R,B,U,Y,se,me,ye,re){av(),Q.delete(R);function ve(ct){if(!ct.route.action&&!ct.route.lazy){let Yr=Xt(405,{method:re.formMethod,pathname:U,routeId:B});return Vr(R,B,Yr,{flushSync:ye}),!0}return!1}if(!me&&ve(Y))return;let de=E.fetchers.get(R);Oo(R,WF(re,de),{flushSync:ye});let he=new AbortController,Ne=_a(e.history,U,he.signal,re);if(me){let ct=await yf(se,U,Ne.signal);if(ct.type==="aborted")return;if(ct.type==="error"){let{error:Yr}=vf(U,ct);Vr(R,B,Yr,{flushSync:ye});return}else if(ct.matches){if(se=ct.matches,Y=rc(se,U),ve(Y))return}else{Vr(R,B,Xt(404,{pathname:U}),{flushSync:ye});return}}k.set(R,he);let Fe=W,Ae=(await Pl("action",E,Ne,[Y],se,R))[Y.route.id];if(Ne.signal.aborted){k.get(R)===he&&k.delete(R);return}if(f.v7_fetcherPersist&&ie.has(R)){if(zi(Ae)||xn(Ae)){Oo(R,Mo(void 0));return}}else{if(zi(Ae))if(k.delete(R),G>Fe){Oo(R,Mo(void 0));return}else return K.add(R),Oo(R,kl(re)),Ti(Ne,Ae,!1,{fetcherSubmission:re});if(xn(Ae)){Vr(R,B,Ae.error);return}}if(Vo(Ae))throw Xt(400,{type:"defer-action"});let _t=E.navigation.location||E.location,ht=_a(e.history,_t,he.signal),El=s||a,Gr=E.navigation.state!=="idle"?Di(El,E.navigation.location,l):E.matches;Pe(Gr,"Didn't find any matches after fetcher action");let Oa=++W;D.set(R,Oa);let _o=kl(re,Ae.data);E.fetchers.set(R,_o);let[bf,Kr]=OP(e.history,E,Gr,re,_t,!1,f.v7_skipActionErrorRevalidation,F,N,$,ie,Q,K,El,l,[Y.route.id,Ae]);Kr.filter(ct=>ct.key!==R).forEach(ct=>{let Yr=ct.key,fS=E.fetchers.get(Yr),x3=kl(void 0,fS?fS.data:void 0);E.fetchers.set(Yr,x3),k.has(Yr)&&Co(Yr),ct.controller&&k.set(Yr,ct.controller)}),fe({fetchers:new Map(E.fetchers)});let xf=()=>Kr.forEach(ct=>Co(ct.key));he.signal.addEventListener("abort",xf);let{loaderResults:wf,fetcherResults:Sf}=await tS(E,Gr,bf,Kr,ht);if(he.signal.aborted)return;he.signal.removeEventListener("abort",xf),D.delete(R),k.delete(R),Kr.forEach(ct=>k.delete(ct.key));let Se=zf(wf);if(Se)return Ti(ht,Se.result,!1);if(Se=zf(Sf),Se)return K.add(Se.key),Ti(ht,Se.result,!1);let{loaderData:lt,errors:vn}=AP(E,Gr,bf,wf,void 0,Kr,Sf,q);if(E.fetchers.has(R)){let ct=Mo(Ae.data);E.fetchers.set(R,ct)}iS(Oa),E.navigation.state==="loading"&&Oa>G?(Pe(T,"Expected pending action"),_&&_.abort(),$e(E.navigation.location,{matches:Gr,loaderData:lt,errors:vn,fetchers:new Map(E.fetchers)})):(fe({errors:vn,loaderData:jP(E.loaderData,lt,Gr,vn),fetchers:new Map(E.fetchers)}),F=!1)}async function p3(R,B,U,Y,se,me,ye,re){let ve=E.fetchers.get(R);Oo(R,kl(re,ve?ve.data:void 0),{flushSync:ye});let de=new AbortController,he=_a(e.history,U,de.signal);if(me){let Ae=await yf(se,U,he.signal);if(Ae.type==="aborted")return;if(Ae.type==="error"){let{error:_t}=vf(U,Ae);Vr(R,B,_t,{flushSync:ye});return}else if(Ae.matches)se=Ae.matches,Y=rc(se,U);else{Vr(R,B,Xt(404,{pathname:U}),{flushSync:ye});return}}k.set(R,de);let Ne=W,Xe=(await Pl("loader",E,he,[Y],se,R))[Y.route.id];if(Vo(Xe)&&(Xe=await Ix(Xe,he.signal,!0)||Xe),k.get(R)===de&&k.delete(R),!he.signal.aborted){if(ie.has(R)){Oo(R,Mo(void 0));return}if(zi(Xe))if(G>Ne){Oo(R,Mo(void 0));return}else{K.add(R),await Ti(he,Xe,!1);return}if(xn(Xe)){Vr(R,B,Xe.error);return}Pe(!Vo(Xe),"Unhandled fetcher deferred data"),Oo(R,Mo(Xe.data))}}async function Ti(R,B,U,Y){let{submission:se,fetcherSubmission:me,replace:ye}=Y===void 0?{}:Y;B.response.headers.has("X-Remix-Revalidate")&&(F=!0);let re=B.response.headers.get("Location");Pe(re,"Expected a Location header on the redirect Response"),re=_P(re,new URL(R.url),l);let ve=Wc(E.location,re,{_isRedirect:!0});if(n){let Ae=!1;if(B.response.headers.has("X-Remix-Reload-Document"))Ae=!0;else if(Dx.test(re)){const _t=e.history.createURL(re);Ae=_t.origin!==t.location.origin||mr(_t.pathname,l)==null}if(Ae){ye?t.location.replace(re):t.location.assign(re);return}}_=null;let de=ye===!0||B.response.headers.has("X-Remix-Replace")?vt.Replace:vt.Push,{formMethod:he,formAction:Ne,formEncType:Fe}=E.navigation;!se&&!me&&he&&Ne&&Fe&&(se=kP(E.navigation));let Xe=se||me;if(xF.has(B.response.status)&&Xe&&rr(Xe.formMethod))await wt(de,ve,{submission:tt({},Xe,{formAction:re}),preventScrollReset:A,enableViewTransition:U?j:void 0});else{let Ae=Iv(ve,se);await wt(de,ve,{overrideNavigation:Ae,fetcherSubmission:me,preventScrollReset:A,enableViewTransition:U?j:void 0})}}async function Pl(R,B,U,Y,se,me){let ye,re={};try{ye=await jF(c,R,B,U,Y,se,me,i,o)}catch(ve){return Y.forEach(de=>{re[de.route.id]={type:We.error,error:ve}}),re}for(let[ve,de]of Object.entries(ye))if(IF(de)){let he=de.result;re[ve]={type:We.redirect,response:NF(he,U,ve,se,l,f.v7_relativeSplatPath)}}else re[ve]=await MF(de);return re}async function tS(R,B,U,Y,se){let me=R.matches,ye=Pl("loader",R,se,U,B,null),re=Promise.all(Y.map(async he=>{if(he.matches&&he.match&&he.controller){let Fe=(await Pl("loader",R,_a(e.history,he.path,he.controller.signal),[he.match],he.matches,he.key))[he.match.route.id];return{[he.key]:Fe}}else return Promise.resolve({[he.key]:{type:We.error,error:Xt(404,{pathname:he.path})}})})),ve=await ye,de=(await re).reduce((he,Ne)=>Object.assign(he,Ne),{});return await Promise.all([BF(B,ve,se.signal,me,R.loaderData),zF(B,de,Y)]),{loaderResults:ve,fetcherResults:de}}function av(){F=!0,N.push(...lv()),Q.forEach((R,B)=>{k.has(B)&&($.add(B),Co(B))})}function Oo(R,B,U){U===void 0&&(U={}),E.fetchers.set(R,B),fe({fetchers:new Map(E.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function Vr(R,B,U,Y){Y===void 0&&(Y={});let se=Ja(E.matches,B);hf(R),fe({errors:{[se.route.id]:U},fetchers:new Map(E.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function nS(R){return f.v7_fetcherPersist&&(J.set(R,(J.get(R)||0)+1),ie.has(R)&&ie.delete(R)),E.fetchers.get(R)||wF}function hf(R){let B=E.fetchers.get(R);k.has(R)&&!(B&&B.state==="loading"&&D.has(R))&&Co(R),Q.delete(R),D.delete(R),K.delete(R),ie.delete(R),$.delete(R),E.fetchers.delete(R)}function h3(R){if(f.v7_fetcherPersist){let B=(J.get(R)||0)-1;B<=0?(J.delete(R),ie.add(R)):J.set(R,B)}else hf(R);fe({fetchers:new Map(E.fetchers)})}function Co(R){let B=k.get(R);Pe(B,"Expected fetch controller: "+R),B.abort(),k.delete(R)}function rS(R){for(let B of R){let U=nS(B),Y=Mo(U.data);E.fetchers.set(B,Y)}}function oS(){let R=[],B=!1;for(let U of K){let Y=E.fetchers.get(U);Pe(Y,"Expected fetcher: "+U),Y.state==="loading"&&(K.delete(U),R.push(U),B=!0)}return rS(R),B}function iS(R){let B=[];for(let[U,Y]of D)if(Y0}function m3(R,B){let U=E.blockers.get(R)||Nl;return ue.get(R)!==B&&ue.set(R,B),U}function aS(R){E.blockers.delete(R),ue.delete(R)}function mf(R,B){let U=E.blockers.get(R)||Nl;Pe(U.state==="unblocked"&&B.state==="blocked"||U.state==="blocked"&&B.state==="blocked"||U.state==="blocked"&&B.state==="proceeding"||U.state==="blocked"&&B.state==="unblocked"||U.state==="proceeding"&&B.state==="unblocked","Invalid blocker state transition: "+U.state+" -> "+B.state);let Y=new Map(E.blockers);Y.set(R,B),fe({blockers:Y})}function sS(R){let{currentLocation:B,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()),[me,ye]=se[se.length-1],re=E.blockers.get(me);if(!(re&&re.state==="proceeding")&&ye({currentLocation:B,nextLocation:U,historyAction:Y}))return me}function sv(R){let B=Xt(404,{pathname:R}),U=s||a,{matches:Y,route:se}=MP(U);return lv(),{notFoundMatches:Y,route:se,error:B}}function vf(R,B){return{boundaryId:Ja(B.partialMatches).route.id,error:Xt(400,{type:"route-discovery",pathname:R,message:B.error!=null&&"message"in B.error?B.error:String(B.error)})}}function lv(R){let B=[];return q.forEach((U,Y)=>{(!R||R(Y))&&(U.cancel(),B.push(Y),q.delete(Y))}),B}function v3(R,B,U){if(b=R,y=B,x=U||null,!w&&E.navigation===Dv){w=!0;let Y=cS(E.location,E.matches);Y!=null&&fe({restoreScrollPosition:Y})}return()=>{b=null,y=null,x=null}}function lS(R,B){return x&&x(R,B.map(Y=>Z5(Y,E.loaderData)))||R.key}function g3(R,B){if(b&&y){let U=lS(R,B);b[U]=y()}}function cS(R,B){if(b){let U=lS(R,B),Y=b[U];if(typeof Y=="number")return Y}return null}function gf(R,B,U){if(u){if(v.has(U))return{active:!1,matches:R};if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:_d(B,U,l,!0)}}else return{active:!0,matches:_d(B,U,l,!0)||[]}}return{active:!1,matches:null}}async function yf(R,B,U){let Y=R;for(;;){let se=s==null,me=s||a;try{await _F(u,B,Y,me,i,o,X,U)}catch(ve){return{type:"error",error:ve,partialMatches:Y}}finally{se&&(a=[...a])}if(U.aborted)return{type:"aborted"};let ye=Di(me,B,l);if(ye)return uS(B,v),{type:"success",matches:ye};let re=_d(me,B,l,!0);if(!re||Y.length===re.length&&Y.every((ve,de)=>ve.route.id===re[de].route.id))return uS(B,v),{type:"success",matches:null};Y=re}}function uS(R,B){if(B.size>=g){let U=B.values().next().value;B.delete(U)}B.add(R)}function y3(R){i={},s=Hc(R,o,void 0,i)}function b3(R,B){let U=s==null;Wj(R,B,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:v3,navigate:Le,fetch:df,revalidate:dt,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:nS,deleteFetcher:h3,dispose:H,getBlocker:m3,deleteBlocker:aS,patchRoutes:b3,_internalFetchControllers:k,_internalActiveDeferreds:q,_internalSetRoutes:y3},C}function EF(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $y(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=kx(o||".",Nx(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&&!Lx(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Nr([n,u.pathname])),ii(u)}function EP(e,t,n,r){if(!r||!EF(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=Hj(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((m,g)=>{let[v,b]=g;return""+m+v+"="+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()}}}Pe(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=My(r.formData),c=r.formData;else if(r.body instanceof FormData)l=My(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=TP(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=TP(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=gi(n);return t&&f.search&&Lx(f.search)&&l.append("index",""),f.search="?"+l,{path:ii(f),submission:u}}function OF(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 OP(e,t,n,r,o,i,a,s,l,c,u,f,d,m,g,v){let b=v?xn(v[1])?v[1].error:v[1].data:void 0,x=e.createURL(t.location),y=e.createURL(o),w=v&&xn(v[1])?v[0]:void 0,S=w?OF(n,w):n,P=v?v[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(CF(t.loaderData,t.matches[A],T)||l.some(M=>M===T.route.id))return!0;let j=t.matches[A],L=T;return CP(T,tt({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||Uj(j,L)}))}),E=[];return f.forEach((T,A)=>{if(i||!n.some(z=>z.route.id===T.routeId)||u.has(A))return;let _=Di(m,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=rc(_,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=CP(L,tt({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 CF(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Uj(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function CP(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function _F(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||Wj(u,f,r,o,i)}}),a.set(l,c)),c&&DF(c)&&await c}finally{a.delete(l)}}function Wj(e,t,n,r,o){if(e){var i;let a=r[e];Pe(a,"No route found to patch children into: routeId = "+e);let s=Hc(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=Hc(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function TF(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Pe(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,tt({},t(o),{lazy:void 0}))}async function AF(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function jF(e,t,n,r,o,i,a,s,l,c){let u=i.map(m=>m.route.lazy?TF(m.route,l,s):void 0),f=i.map((m,g)=>{let v=u[g],b=o.some(y=>y.route.id===m.route.id);return tt({},m,{shouldLoad:b,resolve:async y=>(y&&r.method==="GET"&&(m.route.lazy||m.route.loader)&&(b=!0),b?$F(t,r,m,v,y,c):Promise.resolve({type:We.data,result:void 0}))})}),d=await e({matches:f,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return d}async function $F(e,t,n,r,o,i){let a,s,l=c=>{let u,f=new Promise((g,v)=>u=v);s=()=>u(),t.signal.addEventListener("abort",s);let d=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...g!==void 0?[g]:[]),m=(async()=>{try{return{type:"data",result:await(o?o(v=>d(v)):d())}}catch(g){return{type:"error",result:g}}})();return Promise.race([m,f])};try{let c=n.route[e];if(r)if(c){let u,[f]=await Promise.all([l(c).catch(d=>{u=d}),r]);if(u!==void 0)throw u;a=f}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),f=u.pathname+u.search;throw Xt(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:We.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),f=u.pathname+u.search;throw Xt(404,{pathname:f})}Pe(a.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(c){return{type:We.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function MF(e){let{result:t,type:n}=e;if(Vj(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 ip(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(NP(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 ip(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:We.error,error:t,statusCode:Fu(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(NP(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(Pe(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Dx.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=$y(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function _P(e,t,n){if(Dx.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(Hj(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=My(r.formData):i.body=r.formData}return new Request(o,i)}function My(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function TP(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){let i={},a=null,s,l=!1,c={},u=n&&xn(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let d=f.route.id,m=t[d];if(Pe(!zi(m),"Cannot handle redirect results in processLoaderData"),xn(m)){let g=m.error;u!==void 0&&(g=u,u=void 0),a=a||{};{let v=Ja(e,d);a[v.route.id]==null&&(a[v.route.id]=g)}i[d]=void 0,l||(l=!0,s=Fu(m.error)?m.error.status:500),m.headers&&(c[d]=m.headers)}else Vo(m)?(r.set(d,m.deferredData),i[d]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!l&&(s=m.statusCode),m.headers&&(c[d]=m.headers)):(i[d]=m.data,m.statusCode&&m.statusCode!==200&&!l&&(s=m.statusCode),m.headers&&(c[d]=m.headers))}),u!==void 0&&n&&(a={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function AP(e,t,n,r,o,i,a,s){let{loaderData:l,errors:c}=kF(t,r,o,s);return i.forEach(u=>{let{key:f,match:d,controller:m}=u,g=a[f];if(Pe(g,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(xn(g)){let v=Ja(e.matches,d==null?void 0:d.route.id);c&&c[v.route.id]||(c=tt({},c,{[v.route.id]:g.error})),e.fetchers.delete(f)}else if(zi(g))Pe(!1,"Unhandled fetcher revalidation redirect");else if(Vo(g))Pe(!1,"Unhandled fetcher deferred data");else{let v=Mo(g.data);e.fetchers.set(f,v)}}),{loaderData:l,errors:c}}function jP(e,t,n,r){let o=tt({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function $P(e){return e?xn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ja(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function MP(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 ip(e||500,s,new Error(l),!0)}function zf(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(zi(o))return{key:r,result:o}}}function Hj(e){let t=typeof e=="string"?gi(e):e;return ii(tt({},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 Vj(e.result)&&bF.has(e.result.status)}function Vo(e){return e.type===We.deferred}function xn(e){return e.type===We.error}function zi(e){return(e&&e.type)===We.redirect}function NP(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 Vj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function FF(e){return yF.has(e.toLowerCase())}function rr(e){return vF.has(e.toLowerCase())}async function BF(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(d==null?void 0:d.route.id)===s);if(!c)continue;let u=r.find(d=>d.route.id===c.route.id),f=u!=null&&!Uj(u,c)&&(o&&o[c.route.id])!==void 0;Vo(l)&&f&&await Ix(l,n,!1).then(d=>{d&&(t[s]=d)})}}async function zF(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&Vo(s)&&(Pe(a,"Expected an AbortController for revalidating fetcher deferred result"),await Ix(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function Ix(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 Lx(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function rc(e,t){let n=typeof t=="string"?gi(t).search:t.search;if(e[e.length-1].route.index&&Lx(n||""))return e[e.length-1];let r=Fj(e);return r[r.length-1]}function kP(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 Iv(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 UF(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 kl(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 WF(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 HF(e,t){try{let n=e.sessionStorage.getItem(zj);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 VF(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(zj,JSON.stringify(n))}catch(r){Cs(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.26.2 + * + * 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 ap(){return ap=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=kx(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Nr([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}const YF=h.createContext(null);function XF(e){let t=h.useContext(Br).outlet;return t&&h.createElement(YF.Provider,{value:e},t)}function qF(){let{matches:e}=h.useContext(Br),t=e[e.length-1];return t?t.params:{}}function Uu(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Fr),{matches:o}=h.useContext(Br),{pathname:i}=va(),a=JSON.stringify(Nx(o,r.v7_relativeSplatPath));return h.useMemo(()=>kx(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function QF(e,t,n,r){zu()||Pe(!1);let{navigator:o}=h.useContext(Fr),{matches:i}=h.useContext(Br),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=va(),u;u=c;let f=u.pathname||"/",d=f;if(l!=="/"){let v=l.replace(/^\//,"").split("/");d="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=Di(e,{pathname:d});return n8(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Nr([l,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Nr([l,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r)}function ZF(){let e=qj(),t=Fu(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 JF=h.createElement(ZF,null);class e8 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(Br.Provider,{value:this.props.routeContext},h.createElement(Gj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function t8(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Bu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(Br.Provider,{value:t},r)}function n8(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||Pe(!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 m,g=!1,v=null,b=null;n&&(m=s&&f.route.id?s[f.route.id]:void 0,v=f.route.errorElement||JF,l&&(c<0&&d===0?(l8("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 m?w=v:g?w=b:f.route.Component?w=h.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=u,h.createElement(t8,{match:f,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?h.createElement(e8,{location:n.location,revalidation:n.revalidation,component:v,error:m,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||{}),ai=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}(ai||{});function r8(e){let t=h.useContext(Bu);return t||Pe(!1),t}function zx(e){let t=h.useContext(Fx);return t||Pe(!1),t}function o8(e){let t=h.useContext(Br);return t||Pe(!1),t}function Rh(e){let t=o8(),n=t.matches[t.matches.length-1];return n.route.id||Pe(!1),n.route.id}function i8(){return Rh(ai.UseRouteId)}function Xj(){return zx(ai.UseNavigation).navigation}function a8(){let e=zx(ai.UseLoaderData),t=Rh(ai.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(Gj),n=zx(ai.UseRouteError),r=Rh(ai.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function s8(){let{router:e}=r8(Yj.UseNavigateStable),t=Rh(ai.UseNavigateStable),n=h.useRef(!1);return Kj(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ap({fromRouteId:t},i)))},[e,t])}const RP={};function l8(e,t,n){RP[e]||(RP[e]=!0)}function c8(e){return XF(e.context)}function u8(e){let{basename:t="/",children:n=null,location:r,navigationType:o=vt.Pop,navigator:i,static:a=!1,future:s}=e;zu()&&Pe(!1);let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:i,static:a,future:ap({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=gi(r));let{pathname:u="/",search:f="",hash:d="",state:m=null,key:g="default"}=r,v=h.useMemo(()=>{let b=mr(u,l);return b==null?null:{location:{pathname:b,search:f,hash:d,state:m,key:g},navigationType:o}},[l,u,f,d,m,g,o]);return v==null?null:h.createElement(Fr.Provider,{value:c},h.createElement(Bx.Provider,{children:n,value:v}))}new Promise(()=>{});function f8(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.2 + * + * 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 si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}const Td="get",Lv="application/x-www-form-urlencoded";function Dh(e){return e!=null&&typeof e.tagName=="string"}function d8(e){return Dh(e)&&e.tagName.toLowerCase()==="button"}function p8(e){return Dh(e)&&e.tagName.toLowerCase()==="form"}function h8(e){return Dh(e)&&e.tagName.toLowerCase()==="input"}function m8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function v8(e,t){return e.button===0&&(!t||t==="_self")&&!m8(e)}function Ny(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 g8(e,t){let n=Ny(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}let Uf=null;function y8(){if(Uf===null)try{new FormData(document.createElement("form"),0),Uf=!1}catch{Uf=!0}return Uf}const b8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fv(e){return e!=null&&!b8.has(e)?null:e}function x8(e,t){let n,r,o,i,a;if(p8(e)){let s=e.getAttribute("action");r=s?mr(s,t):null,n=e.getAttribute("method")||Td,o=Fv(e.getAttribute("enctype"))||Lv,i=new FormData(e)}else if(d8(e)||h8(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a