diff --git a/assets/index-ANNvMQeH.js b/assets/index-ANNvMQeH.js new file mode 100644 index 0000000..2a348c7 --- /dev/null +++ b/assets/index-ANNvMQeH.js @@ -0,0 +1,73 @@ +function pf(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 l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mf={exports:{}},Jl={},yf={exports:{}},G={};/** + * @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 Po=Symbol.for("react.element"),Oh=Symbol.for("react.portal"),Dh=Symbol.for("react.fragment"),jh=Symbol.for("react.strict_mode"),Fh=Symbol.for("react.profiler"),Mh=Symbol.for("react.provider"),zh=Symbol.for("react.context"),Ah=Symbol.for("react.forward_ref"),Uh=Symbol.for("react.suspense"),Ih=Symbol.for("react.memo"),Bh=Symbol.for("react.lazy"),ks=Symbol.iterator;function Hh(e){return e===null||typeof e!="object"?null:(e=ks&&e[ks]||e["@@iterator"],typeof e=="function"?e:null)}var vf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gf=Object.assign,wf={};function Er(e,t,n){this.props=e,this.context=t,this.refs=wf,this.updater=n||vf}Er.prototype.isReactComponent={};Er.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")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sf(){}Sf.prototype=Er.prototype;function ou(e,t,n){this.props=e,this.context=t,this.refs=wf,this.updater=n||vf}var lu=ou.prototype=new Sf;lu.constructor=ou;gf(lu,Er.prototype);lu.isPureReactComponent=!0;var Cs=Array.isArray,Ef=Object.prototype.hasOwnProperty,iu={current:null},xf={key:!0,ref:!0,__self:!0,__source:!0};function kf(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)Ef.call(t,r)&&!xf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,ae=M[Z];if(0>>1;Zo(pt,W))Ieo($n,pt)?(M[Z]=$n,M[Ie]=W,Z=Ie):(M[Z]=pt,M[Ne]=W,Z=Ne);else if(Ieo($n,W))M[Z]=$n,M[Ie]=W,Z=Ie;else break e}}return V}function o(M,V){var W=M.sortIndex-V.sortIndex;return W!==0?W:M.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],s=[],c=1,f=null,p=3,x=!1,v=!1,S=!1,L=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(M){for(var V=n(s);V!==null;){if(V.callback===null)r(s);else if(V.startTime<=M)r(s),V.sortIndex=V.expirationTime,t(u,V);else break;V=n(s)}}function C(M){if(S=!1,m(M),!v)if(n(u)!==null)v=!0,Qt(N);else{var V=n(s);V!==null&&fe(C,V.startTime-M)}}function N(M,V){v=!1,S&&(S=!1,h(j),j=-1),x=!0;var W=p;try{for(m(V),f=n(u);f!==null&&(!(f.expirationTime>V)||M&&!X());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,p=f.priorityLevel;var ae=Z(f.expirationTime<=V);V=e.unstable_now(),typeof ae=="function"?f.callback=ae:f===n(u)&&r(u),m(V)}else r(u);f=n(u)}if(f!==null)var Ct=!0;else{var Ne=n(s);Ne!==null&&fe(C,Ne.startTime-V),Ct=!1}return Ct}finally{f=null,p=W,x=!1}}var g=!1,_=null,j=-1,A=5,I=-1;function X(){return!(e.unstable_now()-IM||125Z?(M.sortIndex=W,t(s,M),n(u)===null&&M===n(s)&&(S?(h(j),j=-1):S=!0,fe(C,W-Z))):(M.sortIndex=ae,t(u,M),v||x||(v=!0,Qt(N))),M},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(M){var V=p;return function(){var W=p;p=V;try{return M.apply(this,arguments)}finally{p=W}}}})(Lf);Tf.exports=Lf;var bh=Tf.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 em=P,rt=bh;function T(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"),na=Object.prototype.hasOwnProperty,tm=/^[: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]*$/,Ps={},_s={};function nm(e){return na.call(_s,e)?!0:na.call(Ps,e)?!1:tm.test(e)?_s[e]=!0:(Ps[e]=!0,!1)}function rm(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 om(e,t,n,r){if(t===null||typeof t>"u"||rm(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 Ke(e,t,n,r,o,l,i){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=l,this.removeEmptyString=i}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new Ke(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){Fe[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var uu=/[\-:]([a-z])/g;function su(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(uu,su);Fe[t]=new Ke(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(uu,su);Fe[t]=new Ke(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(uu,su);Fe[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function cu(e,t,n,r){var o=Fe.hasOwnProperty(t)?Fe[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==l[a]){var u=` +`+o[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{Ci=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$r(e):""}function lm(e){switch(e.tag){case 5:return $r(e.type);case 16:return $r("Lazy");case 13:return $r("Suspense");case 19:return $r("SuspenseList");case 0:case 2:case 15:return e=Ri(e.type,!1),e;case 11:return e=Ri(e.type.render,!1),e;case 1:return e=Ri(e.type,!0),e;default:return""}}function ia(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 Gn:return"Fragment";case Xn:return"Portal";case ra:return"Profiler";case fu:return"StrictMode";case oa:return"Suspense";case la:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Df:return(e.displayName||"Context")+".Consumer";case Of:return(e._context.displayName||"Context")+".Provider";case du:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pu:return t=e.displayName||null,t!==null?t:ia(e.type)||"Memo";case bt:t=e._payload,e=e._init;try{return ia(e(t))}catch{}}return null}function im(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 ia(t);case 8:return t===fu?"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 hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ff(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function am(e){var t=Ff(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vo(e){e._valueTracker||(e._valueTracker=am(e))}function Mf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ff(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wl(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 aa(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ls(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hn(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 zf(e,t){t=t.checked,t!=null&&cu(e,"checked",t,!1)}function ua(e,t){zf(e,t);var n=hn(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")?sa(e,t.type,n):t.hasOwnProperty("defaultValue")&&sa(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ns(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 sa(e,t,n){(t!=="number"||wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vr=Array.isArray;function ar(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Wo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yr={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},um=["Webkit","ms","Moz","O"];Object.keys(Yr).forEach(function(e){um.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yr[t]=Yr[e]})});function Bf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yr.hasOwnProperty(e)&&Yr[e]?(""+t).trim():t+"px"}function Hf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Bf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var sm=ye({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 da(e,t){if(t){if(sm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function pa(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 ha=null;function hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,ur=null,sr=null;function js(e){if(e=Lo(e)){if(typeof ma!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Zl(t),ma(e.stateNode,e.type,t))}}function $f(e){ur?sr?sr.push(e):sr=[e]:ur=e}function Vf(){if(ur){var e=ur,t=sr;if(sr=ur=null,js(e),t)for(e=0;e>>=0,e===0?32:31-(Sm(e)/Em|0)|0}var Ko=64,Qo=4194304;function Wr(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 kl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Wr(a):(l&=i,l!==0&&(r=Wr(l)))}else i=n&~o,i!==0?r=Wr(i):l!==0&&(r=Wr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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 _o(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function Rm(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=Gr),$s=" ",Vs=!1;function sd(e,t){switch(e){case"keyup":return bm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function ty(e,t){switch(e){case"compositionend":return cd(t);case"keypress":return t.which!==32?null:(Vs=!0,$s);case"textInput":return e=t.data,e===$s&&Vs?null:e;default:return null}}function ny(e,t){if(qn)return e==="compositionend"||!xu&&sd(e,t)?(e=ad(),al=wu=rn=null,qn=!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=Js(n)}}function hd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function md(){for(var e=window,t=wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wl(e.document)}return t}function ku(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 fy(e){var t=md(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hd(n.ownerDocument.documentElement,n)){if(r!==null&&ku(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,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Ys(n,l);var i=Ys(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Zn=null,Ea=null,Zr=null,xa=!1;function Xs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xa||Zn==null||Zn!==wl(r)||(r=Zn,"selectionStart"in r&&ku(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}),Zr&&fo(Zr,r)||(Zr=r,r=Pl(Ea,"onSelect"),0tr||(e.current=Ta[tr],Ta[tr]=null,tr--)}function ie(e,t){tr++,Ta[tr]=e.current,e.current=t}var mn={},Ue=vn(mn),Ye=vn(!1),Dn=mn;function hr(e,t){var n=e.type.contextTypes;if(!n)return mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Xe(e){return e=e.childContextTypes,e!=null}function Tl(){se(Ye),se(Ue)}function nc(e,t,n){if(Ue.current!==mn)throw Error(T(168));ie(Ue,t),ie(Ye,n)}function Cd(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(T(108,im(e)||"Unknown",o));return ye({},n,r)}function Ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,Dn=Ue.current,ie(Ue,e),ie(Ye,Ye.current),!0}function rc(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Cd(e,t,Dn),r.__reactInternalMemoizedMergedChildContext=e,se(Ye),se(Ue),ie(Ue,e)):se(Ye),ie(Ye,n)}var Ft=null,bl=!1,Ii=!1;function Rd(e){Ft===null?Ft=[e]:Ft.push(e)}function ky(e){bl=!0,Rd(e)}function gn(){if(!Ii&&Ft!==null){Ii=!0;var e=0,t=te;try{var n=Ft;for(te=1;e>=i,o-=i,Mt=1<<32-wt(t)+o|n<j?(A=_,_=null):A=_.sibling;var I=p(h,_,m[j],C);if(I===null){_===null&&(_=A);break}e&&_&&I.alternate===null&&t(h,_),d=l(I,d,j),g===null?N=I:g.sibling=I,g=I,_=A}if(j===m.length)return n(h,_),de&&En(h,j),N;if(_===null){for(;jj?(A=_,_=null):A=_.sibling;var X=p(h,_,I.value,C);if(X===null){_===null&&(_=A);break}e&&_&&X.alternate===null&&t(h,_),d=l(X,d,j),g===null?N=X:g.sibling=X,g=X,_=A}if(I.done)return n(h,_),de&&En(h,j),N;if(_===null){for(;!I.done;j++,I=m.next())I=f(h,I.value,C),I!==null&&(d=l(I,d,j),g===null?N=I:g.sibling=I,g=I);return de&&En(h,j),N}for(_=r(h,_);!I.done;j++,I=m.next())I=x(_,h,j,I.value,C),I!==null&&(e&&I.alternate!==null&&_.delete(I.key===null?j:I.key),d=l(I,d,j),g===null?N=I:g.sibling=I,g=I);return e&&_.forEach(function(_e){return t(h,_e)}),de&&En(h,j),N}function L(h,d,m,C){if(typeof m=="object"&&m!==null&&m.type===Gn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case $o:e:{for(var N=m.key,g=d;g!==null;){if(g.key===N){if(N=m.type,N===Gn){if(g.tag===7){n(h,g.sibling),d=o(g,m.props.children),d.return=h,h=d;break e}}else if(g.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===bt&&ic(N)===g.type){n(h,g.sibling),d=o(g,m.props),d.ref=Mr(h,g,m),d.return=h,h=d;break e}n(h,g);break}else t(h,g);g=g.sibling}m.type===Gn?(d=Nn(m.props.children,h.mode,C,m.key),d.return=h,h=d):(C=ml(m.type,m.key,m.props,null,h.mode,C),C.ref=Mr(h,d,m),C.return=h,h=C)}return i(h);case Xn:e:{for(g=m.key;d!==null;){if(d.key===g)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(h,d.sibling),d=o(d,m.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=Ji(m,h.mode,C),d.return=h,h=d}return i(h);case bt:return g=m._init,L(h,d,g(m._payload),C)}if(Vr(m))return v(h,d,m,C);if(Nr(m))return S(h,d,m,C);bo(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(h,d.sibling),d=o(d,m),d.return=h,h=d):(n(h,d),d=Qi(m,h.mode,C),d.return=h,h=d),i(h)):n(h,d)}return L}var yr=Ld(!0),Nd=Ld(!1),Dl=vn(null),jl=null,or=null,_u=null;function Tu(){_u=or=jl=null}function Lu(e){var t=Dl.current;se(Dl),e._currentValue=t}function Oa(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 fr(e,t){jl=e,_u=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Je=!0),e.firstContext=null)}function ft(e){var t=e._currentValue;if(_u!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(jl===null)throw Error(T(308));or=e,jl.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Rn=null;function Nu(e){Rn===null?Rn=[e]:Rn.push(e)}function Od(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Nu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ht(e,r)}function Ht(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 en=!1;function Ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dd(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 At(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ht(e,n)}return o=r.interleaved,o===null?(t.next=t,Nu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ht(e,n)}function sl(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,yu(e,n)}}function ac(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 Fl(e,t,n,r){var o=e.updateQueue;en=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,s=u.next;u.next=null,i===null?l=s:i.next=s,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=s:a.next=s,c.lastBaseUpdate=u))}if(l!==null){var f=o.baseState;i=0,c=s=u=null,a=l;do{var p=a.lane,x=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,S=a;switch(p=t,x=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){f=v.call(x,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,p=typeof v=="function"?v.call(x,f,p):v,p==null)break e;f=ye({},f,p);break e;case 2:en=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else x={eventTime:x,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(s=c=x,u=f):c=c.next=x,i|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(u=f),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Mn|=i,e.lanes=i,e.memoizedState=f}}function uc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Hi.transition;Hi.transition={};try{e(!1),t()}finally{te=n,Hi.transition=r}}function Xd(){return dt().memoizedState}function _y(e,t,n){var r=dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gd(e))qd(t,n);else if(n=Od(e,t,n,r),n!==null){var o=Ve();St(n,e,r,o),Zd(n,t,r)}}function Ty(e,t,n){var r=dn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gd(e))qd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,a=l(i,n);if(o.hasEagerState=!0,o.eagerState=a,xt(a,i)){var u=t.interleaved;u===null?(o.next=o,Nu(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=Od(e,t,o,r),n!==null&&(o=Ve(),St(n,e,r,o),Zd(n,t,r))}}function Gd(e){var t=e.alternate;return e===me||t!==null&&t===me}function qd(e,t){br=zl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yu(e,n)}}var Al={readContext:ft,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},Ly={readContext:ft,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:cc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fl(4194308,4,Wd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fl(4194308,4,e,t)},useInsertionEffect:function(e,t){return fl(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();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=_y.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:sc,useDebugValue:Iu,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=sc(!1),t=e[0];return e=Py.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,o=_t();if(de){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Le===null)throw Error(T(349));Fn&30||zd(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,cc(Ud.bind(null,r,l,e),[e]),r.flags|=2048,So(9,Ad.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=_t(),t=Le.identifierPrefix;if(de){var n=zt,r=Mt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Tt]=t,e[mo]=r,up(e,t,!1,!1),t.stateNode=e;e:{switch(i=pa(n,r),n){case"dialog":ue("cancel",e),ue("close",e),o=r;break;case"iframe":case"object":case"embed":ue("load",e),o=r;break;case"video":case"audio":for(o=0;owr&&(t.flags|=128,r=!0,zr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ml(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!de)return ze(t),null}else 2*we()-l.renderingStartTime>wr&&n!==1073741824&&(t.flags|=128,r=!0,zr(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=we(),t.sibling=null,n=he.current,ie(he,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Ku(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?be&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Ay(e,t){switch(Ru(t),t.tag){case 1:return Xe(t.type)&&Tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vr(),se(Ye),se(Ue),Fu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ju(t),null;case 13:if(se(he),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));mr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(he),null;case 4:return vr(),null;case 10:return Lu(t.type._context),null;case 22:case 23:return Ku(),null;case 24:return null;default:return null}}var tl=!1,Ae=!1,Uy=typeof WeakSet=="function"?WeakSet:Set,z=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function Ba(e,t,n){try{n()}catch(r){ge(e,t,r)}}var Ec=!1;function Iy(e,t){if(ka=Cl,e=md(),ku(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,s=0,c=0,f=e,p=null;t:for(;;){for(var x;f!==n||o!==0&&f.nodeType!==3||(a=i+o),f!==l||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(x=f.firstChild)!==null;)p=f,f=x;for(;;){if(f===e)break t;if(p===n&&++s===o&&(a=i),p===l&&++c===r&&(u=i),(x=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=x}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ca={focusedElem:e,selectionRange:n},Cl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,L=v.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:mt(t.type,S),L);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(C){ge(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return v=Ec,Ec=!1,v}function eo(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 l=o.destroy;o.destroy=void 0,l!==void 0&&Ba(t,n,l)}o=o.next}while(o!==r)}}function ni(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 Ha(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 fp(e){var t=e.alternate;t!==null&&(e.alternate=null,fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[mo],delete t[_a],delete t[Ey],delete t[xy])),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 dp(e){return e.tag===5||e.tag===3||e.tag===4}function xc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dp(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 $a(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=_l));else if(r!==4&&(e=e.child,e!==null))for($a(e,t,n),e=e.sibling;e!==null;)$a(e,t,n),e=e.sibling}function Va(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(Va(e,t,n),e=e.sibling;e!==null;)Va(e,t,n),e=e.sibling}var De=null,yt=!1;function Gt(e,t,n){for(n=n.child;n!==null;)pp(e,t,n),n=n.sibling}function pp(e,t,n){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Yl,n)}catch{}switch(n.tag){case 5:Ae||lr(n,t);case 6:var r=De,o=yt;De=null,Gt(e,t,n),De=r,yt=o,De!==null&&(yt?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(yt?(e=De,n=n.stateNode,e.nodeType===8?Ui(e.parentNode,n):e.nodeType===1&&Ui(e,n),so(e)):Ui(De,n.stateNode));break;case 4:r=De,o=yt,De=n.stateNode.containerInfo,yt=!0,Gt(e,t,n),De=r,yt=o;break;case 0:case 11:case 14:case 15:if(!Ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Ba(n,t,i),o=o.next}while(o!==r)}Gt(e,t,n);break;case 1:if(!Ae&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ge(n,t,a)}Gt(e,t,n);break;case 21:Gt(e,t,n);break;case 22:n.mode&1?(Ae=(r=Ae)||n.memoizedState!==null,Gt(e,t,n),Ae=r):Gt(e,t,n);break;default:Gt(e,t,n)}}function kc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Uy),t.forEach(function(r){var o=Yy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=we()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hy(r/1960))-r,10e?16:e,on===null)var r=!1;else{if(e=on,on=null,Bl=0,q&6)throw Error(T(331));var o=q;for(q|=4,z=e.current;z!==null;){var l=z,i=l.child;if(z.flags&16){var a=l.deletions;if(a!==null){for(var u=0;uwe()-Vu?Ln(e,0):$u|=n),Ge(e,t)}function Ep(e,t){t===0&&(e.mode&1?(t=Qo,Qo<<=1,!(Qo&130023424)&&(Qo=4194304)):t=1);var n=Ve();e=Ht(e,t),e!==null&&(_o(e,t,n),Ge(e,n))}function Jy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ep(e,n)}function Yy(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(T(314))}r!==null&&r.delete(t),Ep(e,n)}var xp;xp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Je=!1,My(e,t,n);Je=!!(e.flags&131072)}else Je=!1,de&&t.flags&1048576&&Pd(t,Ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;dl(e,t),e=t.pendingProps;var o=hr(t,Ue.current);fr(t,n),o=zu(null,t,r,e,o,n);var l=Au();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,Xe(r)?(l=!0,Ll(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ou(t),o.updater=ti,t.stateNode=o,o._reactInternals=t,ja(t,r,e,n),t=za(null,t,r,!0,l,n)):(t.tag=0,de&&l&&Cu(t),$e(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(dl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Gy(r),e=mt(r,e),o){case 0:t=Ma(null,t,r,e,n);break e;case 1:t=gc(null,t,r,e,n);break e;case 11:t=yc(null,t,r,e,n);break e;case 14:t=vc(null,t,r,mt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Ma(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),gc(e,t,r,o,n);case 3:e:{if(lp(t),e===null)throw Error(T(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Dd(e,t),Fl(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=gr(Error(T(423)),t),t=wc(e,t,r,n,o);break e}else if(r!==o){o=gr(Error(T(424)),t),t=wc(e,t,r,n,o);break e}else for(tt=sn(t.stateNode.containerInfo.firstChild),nt=t,de=!0,gt=null,n=Nd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mr(),r===o){t=$t(e,t,n);break e}$e(e,t,r,n)}t=t.child}return t;case 5:return jd(t),e===null&&Na(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Ra(r,o)?i=null:l!==null&&Ra(r,l)&&(t.flags|=32),op(e,t),$e(e,t,i,n),t.child;case 6:return e===null&&Na(t),null;case 13:return ip(e,t,n);case 4:return Du(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=yr(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),yc(e,t,r,o,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,ie(Dl,r._currentValue),r._currentValue=i,l!==null)if(xt(l.value,i)){if(l.children===o.children&&!Ye.current){t=$t(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=At(-1,n&-n),u.tag=2;var s=l.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Oa(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(T(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Oa(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}$e(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,fr(t,n),o=ft(o),r=r(o),t.flags|=1,$e(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),vc(e,t,r,o,n);case 15:return np(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),dl(e,t),t.tag=1,Xe(r)?(e=!0,Ll(t)):e=!1,fr(t,n),bd(t,r,o),ja(t,r,o,n),za(null,t,r,!0,e,n);case 19:return ap(e,t,n);case 22:return rp(e,t,n)}throw Error(T(156,t.tag))};function kp(e,t){return Gf(e,t)}function Xy(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 ut(e,t,n,r){return new Xy(e,t,n,r)}function Ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gy(e){if(typeof e=="function")return Ju(e)?1:0;if(e!=null){if(e=e.$$typeof,e===du)return 11;if(e===pu)return 14}return 2}function pn(e,t){var n=e.alternate;return n===null?(n=ut(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 ml(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")Ju(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Gn:return Nn(n.children,o,l,t);case fu:i=8,o|=8;break;case ra:return e=ut(12,n,t,o|2),e.elementType=ra,e.lanes=l,e;case oa:return e=ut(13,n,t,o),e.elementType=oa,e.lanes=l,e;case la:return e=ut(19,n,t,o),e.elementType=la,e.lanes=l,e;case jf:return oi(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Of:i=10;break e;case Df:i=9;break e;case du:i=11;break e;case pu:i=14;break e;case bt:i=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ut(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Nn(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function oi(e,t,n,r){return e=ut(22,e,r,t),e.elementType=jf,e.lanes=n,e.stateNode={isHidden:!1},e}function Qi(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Ji(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qy(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=_i(0),this.expirationTimes=_i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_i(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Yu(e,t,n,r,o,l,i,a,u){return e=new qy(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=ut(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ou(l),e}function Zy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_p)}catch(e){console.error(e)}}_p(),_f.exports=ot;var Zu=_f.exports;const rv=hf(Zu),ov=pf({__proto__:null,default:rv},[Zu]);var Oc=Zu;ta.createRoot=Oc.createRoot,ta.hydrateRoot=Oc.hydrateRoot;/** + * @remix-run/router v1.17.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Sr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iv(){return Math.random().toString(36).substr(2,8)}function jc(e,t){return{usr:e.state,key:e.key,idx:t}}function xo(e,t,n,r){return n===void 0&&(n=null),pe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wn(t):t,{state:n,key:t&&t.key||r||iv()})}function An(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 wn(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 av(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,i=o.history,a=ke.Pop,u=null,s=c();s==null&&(s=0,i.replaceState(pe({},i.state,{idx:s}),""));function c(){return(i.state||{idx:null}).idx}function f(){a=ke.Pop;let L=c(),h=L==null?null:L-s;s=L,u&&u({action:a,location:S.location,delta:h})}function p(L,h){a=ke.Push;let d=xo(S.location,L,h);s=c()+1;let m=jc(d,s),C=S.createHref(d);try{i.pushState(m,"",C)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(C)}l&&u&&u({action:a,location:S.location,delta:1})}function x(L,h){a=ke.Replace;let d=xo(S.location,L,h);s=c();let m=jc(d,s),C=S.createHref(d);i.replaceState(m,"",C),l&&u&&u({action:a,location:S.location,delta:0})}function v(L){let h=o.location.origin!=="null"?o.location.origin:o.location.href,d=typeof L=="string"?L:An(L);return d=d.replace(/ $/,"%20"),J(h,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,h)}let S={get action(){return a},get location(){return e(o,i)},listen(L){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Dc,f),u=L,()=>{o.removeEventListener(Dc,f),u=null}},createHref(L){return t(o,L)},createURL:v,encodeLocation(L){let h=v(L);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:x,go(L){return i.go(L)}};return S}var le;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(le||(le={}));const uv=new Set(["lazy","caseSensitive","path","id","index","children"]);function sv(e){return e.index===!0}function ko(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,l)=>{let i=[...n,String(l)],a=typeof o.id=="string"?o.id:i.join("-");if(J(o.index!==!0||!o.children,"Cannot specify children on an index route"),J(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),sv(o)){let u=pe({},o,t(o),{id:a});return r[a]=u,u}else{let u=pe({},o,t(o),{id:a,children:void 0});return r[a]=u,o.children&&(u.children=ko(o.children,t,i,r)),u}})}function kn(e,t,n){return n===void 0&&(n="/"),yl(e,t,n,!1)}function yl(e,t,n,r){let o=typeof t=="string"?wn(t):t,l=Cr(o.pathname||"/",n);if(l==null)return null;let i=Tp(e);fv(i);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};u.relativePath.startsWith("/")&&(J(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=Ut([r,u.relativePath]),c=n.concat(u);l.children&&l.children.length>0&&(J(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Tp(l.children,t,c,s)),!(l.path==null&&!l.index)&&t.push({path:s,score:gv(s,l.index),routesMeta:c})};return e.forEach((l,i)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))o(l,i);else for(let u of Lp(l.path))o(l,i,u)}),t}function Lp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let i=Lp(r.join("/")),a=[];return a.push(...i.map(u=>u===""?l:[l,u].join("/"))),o&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function fv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dv=/^:[\w-]+$/,pv=3,hv=2,mv=1,yv=10,vv=-2,Fc=e=>e==="*";function gv(e,t){let n=e.split("/"),r=n.length;return n.some(Fc)&&(r+=vv),t&&(r+=hv),n.filter(o=>!Fc(o)).reduce((o,l)=>o+(dv.test(l)?pv:l===""?mv:yv),r)}function wv(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 Sv(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},l="/",i=[];for(let a=0;a{let{paramName:p,isOptional:x}=c;if(p==="*"){let S=a[f]||"";i=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}const v=a[f];return x&&!v?s[p]=void 0:s[p]=(v||"").replace(/%2F/g,"/"),s},{}),pathname:l,pathnameBase:i,pattern:e}}function Ev(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Sr(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,(i,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function xv(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sr(!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 Cr(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 kv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?wn(e):e;return{pathname:n?n.startsWith("/")?n:Cv(n,t):t,search:Pv(r),hash:_v(o)}}function Cv(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 Yi(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 Np(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function bu(e,t){let n=Np(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function es(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=wn(e):(o=pe({},e),J(!o.pathname||!o.pathname.includes("?"),Yi("?","pathname","search",o)),J(!o.pathname||!o.pathname.includes("#"),Yi("#","pathname","hash",o)),J(!o.search||!o.search.includes("#"),Yi("#","search","hash",o)));let l=e===""||o.pathname==="",i=l?"/":o.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}a=f>=0?t[f]:"/"}let u=kv(o,a),s=i&&i!=="/"&&i.endsWith("/"),c=(l||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const Ut=e=>e.join("/").replace(/\/\/+/g,"/"),Rv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Pv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_v=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ts{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 si(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Op=["post","put","patch","delete"],Tv=new Set(Op),Lv=["get",...Op],Nv=new Set(Lv),Ov=new Set([301,302,303,307,308]),Dv=new Set([307,308]),Xi={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jv={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ur={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ns=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Dp="remix-router-transitions";function Mv(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;J(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 y=e.detectErrorBoundary;o=w=>({hasErrorBoundary:y(w)})}else o=Fv;let l={},i=ko(e.routes,o,void 0,l),a,u=e.basename||"/",s=e.unstable_dataStrategy||Bv,c=e.unstable_patchRoutesOnMiss,f=pe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),p=null,x=new Set,v=null,S=null,L=null,h=e.hydrationData!=null,d=kn(i,e.history.location,u),m=null;if(d==null&&!c){let y=He(404,{pathname:e.history.location.pathname}),{matches:w,route:E}=Kc(i);d=w,m={[E.id]:y}}d&&c&&Ei(d,i,e.history.location.pathname).active&&(d=null);let C;if(!d)C=!1,d=[];else if(d.some(y=>y.route.lazy))C=!1;else if(!d.some(y=>y.route.loader))C=!0;else if(f.v7_partialHydration){let y=e.hydrationData?e.hydrationData.loaderData:null,w=e.hydrationData?e.hydrationData.errors:null,E=R=>R.route.loader?typeof R.route.loader=="function"&&R.route.loader.hydrate===!0?!1:y&&y[R.route.id]!==void 0||w&&w[R.route.id]!==void 0:!0;if(w){let R=d.findIndex(F=>w[F.route.id]!==void 0);C=d.slice(0,R+1).every(E)}else C=d.every(E)}else C=e.hydrationData!=null;let N,g={historyAction:e.history.action,location:e.history.location,matches:d,initialized:C,navigation:Xi,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||m,fetchers:new Map,blockers:new Map},_=ke.Pop,j=!1,A,I=!1,X=new Map,_e=null,ce=!1,Ee=!1,Kt=[],Qt=[],fe=new Map,M=0,V=-1,W=new Map,Z=new Set,ae=new Map,Ct=new Map,Ne=new Set,pt=new Map,Ie=new Map,$n=new Map,vi=!1;function hh(){if(p=e.history.listen(y=>{let{action:w,location:E,delta:R}=y;if(vi){vi=!1;return}Sr(Ie.size===0||R!=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 F=ws({currentLocation:g.location,nextLocation:E,historyAction:w});if(F&&R!=null){vi=!0,e.history.go(R*-1),Mo(F,{state:"blocked",location:E,proceed(){Mo(F,{state:"proceeding",proceed:void 0,reset:void 0,location:E}),e.history.go(R)},reset(){let U=new Map(g.blockers);U.set(F,Ur),Be({blockers:U})}});return}return Sn(w,E)}),n){bv(t,X);let y=()=>eg(t,X);t.addEventListener("pagehide",y),_e=()=>t.removeEventListener("pagehide",y)}return g.initialized||Sn(ke.Pop,g.location,{initialHydration:!0}),N}function mh(){p&&p(),_e&&_e(),x.clear(),A&&A.abort(),g.fetchers.forEach((y,w)=>Fo(w)),g.blockers.forEach((y,w)=>gs(w))}function yh(y){return x.add(y),()=>x.delete(y)}function Be(y,w){w===void 0&&(w={}),g=pe({},g,y);let E=[],R=[];f.v7_fetcherPersist&&g.fetchers.forEach((F,U)=>{F.state==="idle"&&(Ne.has(U)?R.push(U):E.push(U))}),[...x].forEach(F=>F(g,{deletedFetchers:R,unstable_viewTransitionOpts:w.viewTransitionOpts,unstable_flushSync:w.flushSync===!0})),f.v7_fetcherPersist&&(E.forEach(F=>g.fetchers.delete(F)),R.forEach(F=>Fo(F)))}function Vn(y,w,E){var R,F;let{flushSync:U}=E===void 0?{}:E,$=g.actionData!=null&&g.navigation.formMethod!=null&&vt(g.navigation.formMethod)&&g.navigation.state==="loading"&&((R=y.state)==null?void 0:R._isRedirect)!==!0,D;w.actionData?Object.keys(w.actionData).length>0?D=w.actionData:D=null:$?D=g.actionData:D=null;let Q=w.loaderData?Vc(g.loaderData,w.loaderData,w.matches||[],w.errors):g.loaderData,B=g.blockers;B.size>0&&(B=new Map(B),B.forEach((b,re)=>B.set(re,Ur)));let H=j===!0||g.navigation.formMethod!=null&&vt(g.navigation.formMethod)&&((F=y.state)==null?void 0:F._isRedirect)!==!0;a&&(i=a,a=void 0),ce||_===ke.Pop||(_===ke.Push?e.history.push(y,y.state):_===ke.Replace&&e.history.replace(y,y.state));let ne;if(_===ke.Pop){let b=X.get(g.location.pathname);b&&b.has(y.pathname)?ne={currentLocation:g.location,nextLocation:y}:X.has(y.pathname)&&(ne={currentLocation:y,nextLocation:g.location})}else if(I){let b=X.get(g.location.pathname);b?b.add(y.pathname):(b=new Set([y.pathname]),X.set(g.location.pathname,b)),ne={currentLocation:g.location,nextLocation:y}}Be(pe({},w,{actionData:D,loaderData:Q,historyAction:_,location:y,initialized:!0,navigation:Xi,revalidation:"idle",restoreScrollPosition:Es(y,w.matches||g.matches),preventScrollReset:H,blockers:B}),{viewTransitionOpts:ne,flushSync:U===!0}),_=ke.Pop,j=!1,I=!1,ce=!1,Ee=!1,Kt=[],Qt=[]}async function fs(y,w){if(typeof y=="number"){e.history.go(y);return}let E=Ya(g.location,g.matches,u,f.v7_prependBasename,y,f.v7_relativeSplatPath,w==null?void 0:w.fromRouteId,w==null?void 0:w.relative),{path:R,submission:F,error:U}=zc(f.v7_normalizeFormMethod,!1,E,w),$=g.location,D=xo(g.location,R,w&&w.state);D=pe({},D,e.history.encodeLocation(D));let Q=w&&w.replace!=null?w.replace:void 0,B=ke.Push;Q===!0?B=ke.Replace:Q===!1||F!=null&&vt(F.formMethod)&&F.formAction===g.location.pathname+g.location.search&&(B=ke.Replace);let H=w&&"preventScrollReset"in w?w.preventScrollReset===!0:void 0,ne=(w&&w.unstable_flushSync)===!0,b=ws({currentLocation:$,nextLocation:D,historyAction:B});if(b){Mo(b,{state:"blocked",location:D,proceed(){Mo(b,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),fs(y,w)},reset(){let re=new Map(g.blockers);re.set(b,Ur),Be({blockers:re})}});return}return await Sn(B,D,{submission:F,pendingError:U,preventScrollReset:H,replace:w&&w.replace,enableViewTransition:w&&w.unstable_viewTransition,flushSync:ne})}function vh(){if(gi(),Be({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){Sn(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}Sn(_||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function Sn(y,w,E){A&&A.abort(),A=null,_=y,ce=(E&&E.startUninterruptedRevalidation)===!0,_h(g.location,g.matches),j=(E&&E.preventScrollReset)===!0,I=(E&&E.enableViewTransition)===!0;let R=a||i,F=E&&E.overrideNavigation,U=kn(R,w,u),$=(E&&E.flushSync)===!0,D=Ei(U,R,w.pathname);if(D.active&&D.matches&&(U=D.matches),!U){let{error:ee,notFoundMatches:Oe,route:xe}=wi(w.pathname);Vn(w,{matches:Oe,loaderData:{},errors:{[xe.id]:ee}},{flushSync:$});return}if(g.initialized&&!Ee&&Qv(g.location,w)&&!(E&&E.submission&&vt(E.submission.formMethod))){Vn(w,{matches:U},{flushSync:$});return}A=new AbortController;let Q=Yn(e.history,w,A.signal,E&&E.submission),B;if(E&&E.pendingError)B=[ro(U).route.id,{type:le.error,error:E.pendingError}];else if(E&&E.submission&&vt(E.submission.formMethod)){let ee=await gh(Q,w,E.submission,U,D.active,{replace:E.replace,flushSync:$});if(ee.shortCircuited)return;if(ee.pendingActionResult){let[Oe,xe]=ee.pendingActionResult;if(et(xe)&&si(xe.error)&&xe.error.status===404){A=null,Vn(w,{matches:ee.matches,loaderData:{},errors:{[Oe]:xe.error}});return}}U=ee.matches||U,B=ee.pendingActionResult,F=Gi(w,E.submission),$=!1,D.active=!1,Q=Yn(e.history,Q.url,Q.signal)}let{shortCircuited:H,matches:ne,loaderData:b,errors:re}=await wh(Q,w,U,D.active,F,E&&E.submission,E&&E.fetcherSubmission,E&&E.replace,E&&E.initialHydration===!0,$,B);H||(A=null,Vn(w,pe({matches:ne||U},Wc(B),{loaderData:b,errors:re})))}async function gh(y,w,E,R,F,U){U===void 0&&(U={}),gi();let $=qv(w,E);if(Be({navigation:$},{flushSync:U.flushSync===!0}),F){let B=await Ao(R,w.pathname,y.signal);if(B.type==="aborted")return{shortCircuited:!0};if(B.type==="error"){let{error:H,notFoundMatches:ne,route:b}=zo(w.pathname,B);return{matches:ne,pendingActionResult:[b.id,{type:le.error,error:H}]}}else if(B.matches)R=B.matches;else{let{notFoundMatches:H,error:ne,route:b}=wi(w.pathname);return{matches:H,pendingActionResult:[b.id,{type:le.error,error:ne}]}}}let D,Q=Qr(R,w);if(!Q.route.action&&!Q.route.lazy)D={type:le.error,error:He(405,{method:y.method,pathname:w.pathname,routeId:Q.route.id})};else if(D=(await Tr("action",y,[Q],R))[0],y.signal.aborted)return{shortCircuited:!0};if(Tn(D)){let B;return U&&U.replace!=null?B=U.replace:B=Bc(D.response.headers.get("Location"),new URL(y.url),u)===g.location.pathname+g.location.search,await _r(y,D,{submission:E,replace:B}),{shortCircuited:!0}}if(_n(D))throw He(400,{type:"defer-action"});if(et(D)){let B=ro(R,Q.route.id);return(U&&U.replace)!==!0&&(_=ke.Push),{matches:R,pendingActionResult:[B.route.id,D]}}return{matches:R,pendingActionResult:[Q.route.id,D]}}async function wh(y,w,E,R,F,U,$,D,Q,B,H){let ne=F||Gi(w,U),b=U||$||Yc(ne),re=!ce&&(!f.v7_partialHydration||!Q);if(R){if(re){let ve=ds(H);Be(pe({navigation:ne},ve!==void 0?{actionData:ve}:{}),{flushSync:B})}let Y=await Ao(E,w.pathname,y.signal);if(Y.type==="aborted")return{shortCircuited:!0};if(Y.type==="error"){let{error:ve,notFoundMatches:Ze,route:oe}=zo(w.pathname,Y);return{matches:Ze,loaderData:{},errors:{[oe.id]:ve}}}else if(Y.matches)E=Y.matches;else{let{error:ve,notFoundMatches:Ze,route:oe}=wi(w.pathname);return{matches:Ze,loaderData:{},errors:{[oe.id]:ve}}}}let ee=a||i,[Oe,xe]=Ac(e.history,g,E,b,w,f.v7_partialHydration&&Q===!0,f.unstable_skipActionErrorRevalidation,Ee,Kt,Qt,Ne,ae,Z,ee,u,H);if(Si(Y=>!(E&&E.some(ve=>ve.route.id===Y))||Oe&&Oe.some(ve=>ve.route.id===Y)),V=++M,Oe.length===0&&xe.length===0){let Y=ys();return Vn(w,pe({matches:E,loaderData:{},errors:H&&et(H[1])?{[H[0]]:H[1].error}:null},Wc(H),Y?{fetchers:new Map(g.fetchers)}:{}),{flushSync:B}),{shortCircuited:!0}}if(re){let Y={};if(!R){Y.navigation=ne;let ve=ds(H);ve!==void 0&&(Y.actionData=ve)}xe.length>0&&(Y.fetchers=Sh(xe)),Be(Y,{flushSync:B})}xe.forEach(Y=>{fe.has(Y.key)&&Yt(Y.key),Y.controller&&fe.set(Y.key,Y.controller)});let Lr=()=>xe.forEach(Y=>Yt(Y.key));A&&A.signal.addEventListener("abort",Lr);let{loaderResults:Xt,fetcherResults:Wn}=await ps(g.matches,E,Oe,xe,y);if(y.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Lr),xe.forEach(Y=>fe.delete(Y.key));let Kn=Qc([...Xt,...Wn]);if(Kn){if(Kn.idx>=Oe.length){let Y=xe[Kn.idx-Oe.length].key;Z.add(Y)}return await _r(y,Kn.result,{replace:D}),{shortCircuited:!0}}let{loaderData:Qn,errors:Rt}=$c(g,E,Oe,Xt,H,xe,Wn,pt);pt.forEach((Y,ve)=>{Y.subscribe(Ze=>{(Ze||Y.done)&&pt.delete(ve)})}),f.v7_partialHydration&&Q&&g.errors&&Object.entries(g.errors).filter(Y=>{let[ve]=Y;return!Oe.some(Ze=>Ze.route.id===ve)}).forEach(Y=>{let[ve,Ze]=Y;Rt=Object.assign(Rt||{},{[ve]:Ze})});let Uo=ys(),Io=vs(V),Bo=Uo||Io||xe.length>0;return pe({matches:E,loaderData:Qn,errors:Rt},Bo?{fetchers:new Map(g.fetchers)}:{})}function ds(y){if(y&&!et(y[1]))return{[y[0]]:y[1].data};if(g.actionData)return Object.keys(g.actionData).length===0?null:g.actionData}function Sh(y){return y.forEach(w=>{let E=g.fetchers.get(w.key),R=Ir(void 0,E?E.data:void 0);g.fetchers.set(w.key,R)}),new Map(g.fetchers)}function Eh(y,w,E,R){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.");fe.has(y)&&Yt(y);let F=(R&&R.unstable_flushSync)===!0,U=a||i,$=Ya(g.location,g.matches,u,f.v7_prependBasename,E,f.v7_relativeSplatPath,w,R==null?void 0:R.relative),D=kn(U,$,u),Q=Ei(D,U,$);if(Q.active&&Q.matches&&(D=Q.matches),!D){Ot(y,w,He(404,{pathname:$}),{flushSync:F});return}let{path:B,submission:H,error:ne}=zc(f.v7_normalizeFormMethod,!0,$,R);if(ne){Ot(y,w,ne,{flushSync:F});return}let b=Qr(D,B);if(j=(R&&R.preventScrollReset)===!0,H&&vt(H.formMethod)){xh(y,w,B,b,D,Q.active,F,H);return}ae.set(y,{routeId:w,path:B}),kh(y,w,B,b,D,Q.active,F,H)}async function xh(y,w,E,R,F,U,$,D){gi(),ae.delete(y);function Q(oe){if(!oe.route.action&&!oe.route.lazy){let Dt=He(405,{method:D.formMethod,pathname:E,routeId:w});return Ot(y,w,Dt,{flushSync:$}),!0}return!1}if(!U&&Q(R))return;let B=g.fetchers.get(y);Jt(y,Zv(D,B),{flushSync:$});let H=new AbortController,ne=Yn(e.history,E,H.signal,D);if(U){let oe=await Ao(F,E,ne.signal);if(oe.type==="aborted")return;if(oe.type==="error"){let{error:Dt}=zo(E,oe);Ot(y,w,Dt,{flushSync:$});return}else if(oe.matches){if(F=oe.matches,R=Qr(F,E),Q(R))return}else{Ot(y,w,He(404,{pathname:E}),{flushSync:$});return}}fe.set(y,H);let b=M,ee=(await Tr("action",ne,[R],F))[0];if(ne.signal.aborted){fe.get(y)===H&&fe.delete(y);return}if(f.v7_fetcherPersist&&Ne.has(y)){if(Tn(ee)||et(ee)){Jt(y,Zt(void 0));return}}else{if(Tn(ee))if(fe.delete(y),V>b){Jt(y,Zt(void 0));return}else return Z.add(y),Jt(y,Ir(D)),_r(ne,ee,{fetcherSubmission:D});if(et(ee)){Ot(y,w,ee.error);return}}if(_n(ee))throw He(400,{type:"defer-action"});let Oe=g.navigation.location||g.location,xe=Yn(e.history,Oe,H.signal),Lr=a||i,Xt=g.navigation.state!=="idle"?kn(Lr,g.navigation.location,u):g.matches;J(Xt,"Didn't find any matches after fetcher action");let Wn=++M;W.set(y,Wn);let Kn=Ir(D,ee.data);g.fetchers.set(y,Kn);let[Qn,Rt]=Ac(e.history,g,Xt,D,Oe,!1,f.unstable_skipActionErrorRevalidation,Ee,Kt,Qt,Ne,ae,Z,Lr,u,[R.route.id,ee]);Rt.filter(oe=>oe.key!==y).forEach(oe=>{let Dt=oe.key,xs=g.fetchers.get(Dt),Nh=Ir(void 0,xs?xs.data:void 0);g.fetchers.set(Dt,Nh),fe.has(Dt)&&Yt(Dt),oe.controller&&fe.set(Dt,oe.controller)}),Be({fetchers:new Map(g.fetchers)});let Uo=()=>Rt.forEach(oe=>Yt(oe.key));H.signal.addEventListener("abort",Uo);let{loaderResults:Io,fetcherResults:Bo}=await ps(g.matches,Xt,Qn,Rt,xe);if(H.signal.aborted)return;H.signal.removeEventListener("abort",Uo),W.delete(y),fe.delete(y),Rt.forEach(oe=>fe.delete(oe.key));let Y=Qc([...Io,...Bo]);if(Y){if(Y.idx>=Qn.length){let oe=Rt[Y.idx-Qn.length].key;Z.add(oe)}return _r(xe,Y.result)}let{loaderData:ve,errors:Ze}=$c(g,g.matches,Qn,Io,void 0,Rt,Bo,pt);if(g.fetchers.has(y)){let oe=Zt(ee.data);g.fetchers.set(y,oe)}vs(Wn),g.navigation.state==="loading"&&Wn>V?(J(_,"Expected pending action"),A&&A.abort(),Vn(g.navigation.location,{matches:Xt,loaderData:ve,errors:Ze,fetchers:new Map(g.fetchers)})):(Be({errors:Ze,loaderData:Vc(g.loaderData,ve,Xt,Ze),fetchers:new Map(g.fetchers)}),Ee=!1)}async function kh(y,w,E,R,F,U,$,D){let Q=g.fetchers.get(y);Jt(y,Ir(D,Q?Q.data:void 0),{flushSync:$});let B=new AbortController,H=Yn(e.history,E,B.signal);if(U){let ee=await Ao(F,E,H.signal);if(ee.type==="aborted")return;if(ee.type==="error"){let{error:Oe}=zo(E,ee);Ot(y,w,Oe,{flushSync:$});return}else if(ee.matches)F=ee.matches,R=Qr(F,E);else{Ot(y,w,He(404,{pathname:E}),{flushSync:$});return}}fe.set(y,B);let ne=M,re=(await Tr("loader",H,[R],F))[0];if(_n(re)&&(re=await Ap(re,H.signal,!0)||re),fe.get(y)===B&&fe.delete(y),!H.signal.aborted){if(Ne.has(y)){Jt(y,Zt(void 0));return}if(Tn(re))if(V>ne){Jt(y,Zt(void 0));return}else{Z.add(y),await _r(H,re);return}if(et(re)){Ot(y,w,re.error);return}J(!_n(re),"Unhandled fetcher deferred data"),Jt(y,Zt(re.data))}}async function _r(y,w,E){let{submission:R,fetcherSubmission:F,replace:U}=E===void 0?{}:E;w.response.headers.has("X-Remix-Revalidate")&&(Ee=!0);let $=w.response.headers.get("Location");J($,"Expected a Location header on the redirect Response"),$=Bc($,new URL(y.url),u);let D=xo(g.location,$,{_isRedirect:!0});if(n){let re=!1;if(w.response.headers.has("X-Remix-Reload-Document"))re=!0;else if(ns.test($)){const ee=e.history.createURL($);re=ee.origin!==t.location.origin||Cr(ee.pathname,u)==null}if(re){U?t.location.replace($):t.location.assign($);return}}A=null;let Q=U===!0?ke.Replace:ke.Push,{formMethod:B,formAction:H,formEncType:ne}=g.navigation;!R&&!F&&B&&H&&ne&&(R=Yc(g.navigation));let b=R||F;if(Dv.has(w.response.status)&&b&&vt(b.formMethod))await Sn(Q,D,{submission:pe({},b,{formAction:$}),preventScrollReset:j});else{let re=Gi(D,R);await Sn(Q,D,{overrideNavigation:re,fetcherSubmission:F,preventScrollReset:j})}}async function Tr(y,w,E,R){try{let F=await Hv(s,y,w,E,R,l,o);return await Promise.all(F.map((U,$)=>{if(Yv(U)){let D=U.result;return{type:le.redirect,response:Wv(D,w,E[$].route.id,R,u,f.v7_relativeSplatPath)}}return Vv(U)}))}catch(F){return E.map(()=>({type:le.error,error:F}))}}async function ps(y,w,E,R,F){let[U,...$]=await Promise.all([E.length?Tr("loader",F,E,w):[],...R.map(D=>{if(D.matches&&D.match&&D.controller){let Q=Yn(e.history,D.path,D.controller.signal);return Tr("loader",Q,[D.match],D.matches).then(B=>B[0])}else return Promise.resolve({type:le.error,error:He(404,{pathname:D.path})})})]);return await Promise.all([Jc(y,E,U,U.map(()=>F.signal),!1,g.loaderData),Jc(y,R.map(D=>D.match),$,R.map(D=>D.controller?D.controller.signal:null),!0)]),{loaderResults:U,fetcherResults:$}}function gi(){Ee=!0,Kt.push(...Si()),ae.forEach((y,w)=>{fe.has(w)&&(Qt.push(w),Yt(w))})}function Jt(y,w,E){E===void 0&&(E={}),g.fetchers.set(y,w),Be({fetchers:new Map(g.fetchers)},{flushSync:(E&&E.flushSync)===!0})}function Ot(y,w,E,R){R===void 0&&(R={});let F=ro(g.matches,w);Fo(y),Be({errors:{[F.route.id]:E},fetchers:new Map(g.fetchers)},{flushSync:(R&&R.flushSync)===!0})}function hs(y){return f.v7_fetcherPersist&&(Ct.set(y,(Ct.get(y)||0)+1),Ne.has(y)&&Ne.delete(y)),g.fetchers.get(y)||jv}function Fo(y){let w=g.fetchers.get(y);fe.has(y)&&!(w&&w.state==="loading"&&W.has(y))&&Yt(y),ae.delete(y),W.delete(y),Z.delete(y),Ne.delete(y),g.fetchers.delete(y)}function Ch(y){if(f.v7_fetcherPersist){let w=(Ct.get(y)||0)-1;w<=0?(Ct.delete(y),Ne.add(y)):Ct.set(y,w)}else Fo(y);Be({fetchers:new Map(g.fetchers)})}function Yt(y){let w=fe.get(y);J(w,"Expected fetch controller: "+y),w.abort(),fe.delete(y)}function ms(y){for(let w of y){let E=hs(w),R=Zt(E.data);g.fetchers.set(w,R)}}function ys(){let y=[],w=!1;for(let E of Z){let R=g.fetchers.get(E);J(R,"Expected fetcher: "+E),R.state==="loading"&&(Z.delete(E),y.push(E),w=!0)}return ms(y),w}function vs(y){let w=[];for(let[E,R]of W)if(R0}function Rh(y,w){let E=g.blockers.get(y)||Ur;return Ie.get(y)!==w&&Ie.set(y,w),E}function gs(y){g.blockers.delete(y),Ie.delete(y)}function Mo(y,w){let E=g.blockers.get(y)||Ur;J(E.state==="unblocked"&&w.state==="blocked"||E.state==="blocked"&&w.state==="blocked"||E.state==="blocked"&&w.state==="proceeding"||E.state==="blocked"&&w.state==="unblocked"||E.state==="proceeding"&&w.state==="unblocked","Invalid blocker state transition: "+E.state+" -> "+w.state);let R=new Map(g.blockers);R.set(y,w),Be({blockers:R})}function ws(y){let{currentLocation:w,nextLocation:E,historyAction:R}=y;if(Ie.size===0)return;Ie.size>1&&Sr(!1,"A router only supports one blocker at a time");let F=Array.from(Ie.entries()),[U,$]=F[F.length-1],D=g.blockers.get(U);if(!(D&&D.state==="proceeding")&&$({currentLocation:w,nextLocation:E,historyAction:R}))return U}function wi(y){let w=He(404,{pathname:y}),E=a||i,{matches:R,route:F}=Kc(E);return Si(),{notFoundMatches:R,route:F,error:w}}function zo(y,w){let E=w.partialMatches,R=E[E.length-1].route,F=He(400,{type:"route-discovery",routeId:R.id,pathname:y,message:w.error!=null&&"message"in w.error?w.error:String(w.error)});return{notFoundMatches:E,route:R,error:F}}function Si(y){let w=[];return pt.forEach((E,R)=>{(!y||y(R))&&(E.cancel(),w.push(R),pt.delete(R))}),w}function Ph(y,w,E){if(v=y,L=w,S=E||null,!h&&g.navigation===Xi){h=!0;let R=Es(g.location,g.matches);R!=null&&Be({restoreScrollPosition:R})}return()=>{v=null,L=null,S=null}}function Ss(y,w){return S&&S(y,w.map(R=>cv(R,g.loaderData)))||y.key}function _h(y,w){if(v&&L){let E=Ss(y,w);v[E]=L()}}function Es(y,w){if(v){let E=Ss(y,w),R=v[E];if(typeof R=="number")return R}return null}function Ei(y,w,E){if(c)if(y){let R=y[y.length-1].route;if(R.path&&(R.path==="*"||R.path.endsWith("/*")))return{active:!0,matches:yl(w,E,u,!0)}}else return{active:!0,matches:yl(w,E,u,!0)||[]};return{active:!1,matches:null}}async function Ao(y,w,E){let R=y,F=R.length>0?R[R.length-1].route:null;for(;;){let U=a==null,$=a||i;try{await Iv(c,w,R,$,l,o,$n,E)}catch(H){return{type:"error",error:H,partialMatches:R}}finally{U&&(i=[...i])}if(E.aborted)return{type:"aborted"};let D=kn($,w,u),Q=!1;if(D){let H=D[D.length-1].route;if(H.index)return{type:"success",matches:D};if(H.path&&H.path.length>0)if(H.path==="*")Q=!0;else return{type:"success",matches:D}}let B=yl($,w,u,!0);if(!B||R.map(H=>H.route.id).join("-")===B.map(H=>H.route.id).join("-"))return{type:"success",matches:Q?D:null};if(R=B,F=R[R.length-1].route,F.path==="*")return{type:"success",matches:R}}}function Th(y){l={},a=ko(y,o,void 0,l)}function Lh(y,w){let E=a==null;Fp(y,w,a||i,l,o),E&&(i=[...i],Be({}))}return N={get basename(){return u},get future(){return f},get state(){return g},get routes(){return i},get window(){return t},initialize:hh,subscribe:yh,enableScrollRestoration:Ph,navigate:fs,fetch:Eh,revalidate:vh,createHref:y=>e.history.createHref(y),encodeLocation:y=>e.history.encodeLocation(y),getFetcher:hs,deleteFetcher:Ch,dispose:mh,getBlocker:Rh,deleteBlocker:gs,patchRoutes:Lh,_internalFetchControllers:fe,_internalActiveDeferreds:pt,_internalSetRoutes:Th},N}function zv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ya(e,t,n,r,o,l,i,a){let u,s;if(i){u=[];for(let f of t)if(u.push(f),f.route.id===i){s=f;break}}else u=t,s=t[t.length-1];let c=es(o||".",bu(u,l),Cr(e.pathname,n)||e.pathname,a==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!rs(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Ut([n,c.pathname])),An(c)}function zc(e,t,n,r){if(!r||!zv(r))return{path:n};if(r.formMethod&&!Gv(r.formMethod))return{path:n,error:He(405,{method:r.formMethod})};let o=()=>({path:n,error:He(400,{type:"invalid-body"})}),l=r.formMethod||"get",i=e?l.toUpperCase():l.toLowerCase(),a=Mp(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!vt(i))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((x,v)=>{let[S,L]=v;return""+x+S+"="+L+` +`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!vt(i))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}J(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=Xa(r.formData),s=r.formData;else if(r.body instanceof FormData)u=Xa(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Hc(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Hc(u)}catch{return o()}let c={formMethod:i,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(vt(c.formMethod))return{path:n,submission:c};let f=wn(n);return t&&f.search&&rs(f.search)&&u.append("index",""),f.search="?"+u,{path:An(f),submission:c}}function Av(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 Ac(e,t,n,r,o,l,i,a,u,s,c,f,p,x,v,S){let L=S?et(S[1])?S[1].error:S[1].data:void 0,h=e.createURL(t.location),d=e.createURL(o),m=S&&et(S[1])?S[0]:void 0,C=m?Av(n,m):n,N=S?S[1].statusCode:void 0,g=i&&N&&N>=400,_=C.filter((A,I)=>{let{route:X}=A;if(X.lazy)return!0;if(X.loader==null)return!1;if(l)return typeof X.loader!="function"||X.loader.hydrate?!0:t.loaderData[X.id]===void 0&&(!t.errors||t.errors[X.id]===void 0);if(Uv(t.loaderData,t.matches[I],A)||u.some(Ee=>Ee===A.route.id))return!0;let _e=t.matches[I],ce=A;return Uc(A,pe({currentUrl:h,currentParams:_e.params,nextUrl:d,nextParams:ce.params},r,{actionResult:L,unstable_actionStatus:N,defaultShouldRevalidate:g?!1:a||h.pathname+h.search===d.pathname+d.search||h.search!==d.search||jp(_e,ce)}))}),j=[];return f.forEach((A,I)=>{if(l||!n.some(Kt=>Kt.route.id===A.routeId)||c.has(I))return;let X=kn(x,A.path,v);if(!X){j.push({key:I,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let _e=t.fetchers.get(I),ce=Qr(X,A.path),Ee=!1;p.has(I)?Ee=!1:s.includes(I)?Ee=!0:_e&&_e.state!=="idle"&&_e.data===void 0?Ee=a:Ee=Uc(ce,pe({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:n[n.length-1].params},r,{actionResult:L,unstable_actionStatus:N,defaultShouldRevalidate:g?!1:a})),Ee&&j.push({key:I,routeId:A.routeId,path:A.path,matches:X,match:ce,controller:new AbortController})}),[_,j]}function Uv(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function jp(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Uc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Iv(e,t,n,r,o,l,i,a){let u=[t,...n.map(s=>s.route.id)].join("-");try{let s=i.get(u);s||(s=e({path:t,matches:n,patch:(c,f)=>{a.aborted||Fp(c,f,r,o,l)}}),i.set(u,s)),s&&Jv(s)&&await s}finally{i.delete(u)}}function Fp(e,t,n,r,o){if(e){var l;let i=r[e];J(i,"No route found to patch children into: routeId = "+e);let a=ko(t,o,[e,"patch",String(((l=i.children)==null?void 0:l.length)||"0")],r);i.children?i.children.push(...a):i.children=a}else{let i=ko(t,o,["patch",String(n.length||"0")],r);n.push(...i)}}async function Ic(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];J(o,"No route found in manifest");let l={};for(let i in r){let u=o[i]!==void 0&&i!=="hasErrorBoundary";Sr(!u,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!uv.has(i)&&(l[i]=r[i])}Object.assign(o,l),Object.assign(o,pe({},t(o),{lazy:void 0}))}function Bv(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function Hv(e,t,n,r,o,l,i,a){let u=r.reduce((f,p)=>f.add(p.route.id),new Set),s=new Set,c=await e({matches:o.map(f=>{let p=u.has(f.route.id);return pe({},f,{shouldLoad:p,resolve:v=>(s.add(f.route.id),p?$v(t,n,f,l,i,v,a):Promise.resolve({type:le.data,result:void 0}))})}),request:n,params:o[0].params,context:a});return o.forEach(f=>J(s.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((f,p)=>u.has(o[p].route.id))}async function $v(e,t,n,r,o,l,i){let a,u,s=c=>{let f,p=new Promise((S,L)=>f=L);u=()=>f(),t.signal.addEventListener("abort",u);let x=S=>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},...S!==void 0?[S]:[]),v;return l?v=l(S=>x(S)):v=(async()=>{try{return{type:"data",result:await x()}}catch(S){return{type:"error",result:S}}})(),Promise.race([v,p])};try{let c=n.route[e];if(n.route.lazy)if(c){let f,[p]=await Promise.all([s(c).catch(x=>{f=x}),Ic(n.route,o,r)]);if(f!==void 0)throw f;a=p}else if(await Ic(n.route,o,r),c=n.route[e],c)a=await s(c);else if(e==="action"){let f=new URL(t.url),p=f.pathname+f.search;throw He(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:le.data,result:void 0};else if(c)a=await s(c);else{let f=new URL(t.url),p=f.pathname+f.search;throw He(404,{pathname:p})}J(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:le.error,result:c}}finally{u&&t.signal.removeEventListener("abort",u)}return a}async function Vv(e){let{result:t,type:n,status:r}=e;if(zp(t)){let i;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(a){return{type:le.error,error:a}}return n===le.error?{type:le.error,error:new ts(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:le.data,data:i,statusCode:t.status,headers:t.headers}}if(n===le.error)return{type:le.error,error:t,statusCode:si(t)?t.status:r};if(Xv(t)){var o,l;return{type:le.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}return{type:le.data,data:t,statusCode:r}}function Wv(e,t,n,r,o,l){let i=e.headers.get("Location");if(J(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ns.test(i)){let a=r.slice(0,r.findIndex(u=>u.route.id===n)+1);i=Ya(new URL(t.url),a,o,!0,i,l),e.headers.set("Location",i)}return e}function Bc(e,t,n){if(ns.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),l=Cr(o.pathname,n)!=null;if(o.origin===t.origin&&l)return o.pathname+o.search+o.hash}return e}function Yn(e,t,n,r){let o=e.createURL(Mp(t)).toString(),l={signal:n};if(r&&vt(r.formMethod)){let{formMethod:i,formEncType:a}=r;l.method=i.toUpperCase(),a==="application/json"?(l.headers=new Headers({"Content-Type":a}),l.body=JSON.stringify(r.json)):a==="text/plain"?l.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?l.body=Xa(r.formData):l.body=r.formData}return new Request(o,l)}function Xa(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Hc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Kv(e,t,n,r,o,l){let i={},a=null,u,s=!1,c={},f=r&&et(r[1])?r[1].error:void 0;return n.forEach((p,x)=>{let v=t[x].route.id;if(J(!Tn(p),"Cannot handle redirect results in processLoaderData"),et(p)){let S=p.error;f!==void 0&&(S=f,f=void 0),a=a||{};{let L=ro(e,v);a[L.route.id]==null&&(a[L.route.id]=S)}i[v]=void 0,s||(s=!0,u=si(p.error)?p.error.status:500),p.headers&&(c[v]=p.headers)}else _n(p)?(o.set(v,p.deferredData),i[v]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!s&&(u=p.statusCode),p.headers&&(c[v]=p.headers)):(i[v]=p.data,p.statusCode&&p.statusCode!==200&&!s&&(u=p.statusCode),p.headers&&(c[v]=p.headers))}),f!==void 0&&r&&(a={[r[0]]:f},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:u||200,loaderHeaders:c}}function $c(e,t,n,r,o,l,i,a){let{loaderData:u,errors:s}=Kv(t,n,r,o,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Kc(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 He(e,t){let{pathname:n,routeId:r,method:o,type:l,message:i}=t===void 0?{}:t,a="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(a="Bad Request",l==="route-discovery"?u='Unable to match URL "'+n+'" - the `children()` function for '+("route `"+r+"` threw the following error:\n"+i):o&&n&&r?u="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.":l==="defer-action"?u="defer() is not supported in actions":l==="invalid-body"&&(u="Unable to encode submission body")):e===403?(a="Forbidden",u='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",u='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?u="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&&(u='Invalid request method "'+o.toUpperCase()+'"')),new ts(e||500,a,new Error(u),!0)}function Qc(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Tn(n))return{result:n,idx:t}}}function Mp(e){let t=typeof e=="string"?wn(e):e;return An(pe({},t,{hash:""}))}function Qv(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Jv(e){return typeof e=="object"&&e!=null&&"then"in e}function Yv(e){return zp(e.result)&&Ov.has(e.result.status)}function _n(e){return e.type===le.deferred}function et(e){return e.type===le.error}function Tn(e){return(e&&e.type)===le.redirect}function Xv(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 zp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Gv(e){return Nv.has(e.toLowerCase())}function vt(e){return Tv.has(e.toLowerCase())}async function Jc(e,t,n,r,o,l){for(let i=0;if.route.id===u.route.id),c=s!=null&&!jp(s,u)&&(l&&l[u.route.id])!==void 0;if(_n(a)&&(o||c)){let f=r[i];J(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ap(a,f,o).then(p=>{p&&(n[i]=p||n[i])})}}}async function Ap(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:le.data,data:e.deferredData.unwrappedData}}catch(o){return{type:le.error,error:o}}return{type:le.data,data:e.deferredData.data}}}function rs(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Qr(e,t){let n=typeof t=="string"?wn(t).search:t.search;if(e[e.length-1].route.index&&rs(n||""))return e[e.length-1];let r=Np(e);return r[r.length-1]}function Yc(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:l,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:l,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Gi(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 qv(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 Ir(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 Zv(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 Zt(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 bv(e,t){try{let n=e.sessionStorage.getItem(Dp);if(n){let r=JSON.parse(n);for(let[o,l]of Object.entries(r||{}))l&&Array.isArray(l)&&t.set(o,new Set(l||[]))}}catch{}}function eg(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Dp,JSON.stringify(n))}catch(r){Sr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.24.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),P.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let f=es(s,JSON.parse(i),l,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ut([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,i,l,e])}const rg=P.createContext(null);function og(e){let t=P.useContext(Wt).outlet;return t&&P.createElement(rg.Provider,{value:e},t)}function lg(){let{matches:e}=P.useContext(Wt),t=e[e.length-1];return t?t.params:{}}function $p(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(Hn),{matches:o}=P.useContext(Wt),{pathname:l}=fi(),i=JSON.stringify(bu(o,r.v7_relativeSplatPath));return P.useMemo(()=>es(e,JSON.parse(i),l,n==="path"),[e,i,l,n])}function ig(e,t,n,r){Oo()||J(!1);let{navigator:o}=P.useContext(Hn),{matches:l}=P.useContext(Wt),i=l[l.length-1],a=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let s=fi(),c;c=s;let f=c.pathname||"/",p=f;if(u!=="/"){let S=u.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let x=kn(e,{pathname:p});return fg(x&&x.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:Ut([u,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Ut([u,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),l,n,r)}function ag(){let e=mg(),t=si(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 P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:o},n):null,null)}const ug=P.createElement(ag,null);class sg extends P.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?P.createElement(Wt.Provider,{value:this.props.routeContext},P.createElement(Ip.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cg(e){let{routeContext:t,match:n,children:r}=e,o=P.useContext(ci);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Wt.Provider,{value:t},r)}function fg(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||J(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let x,v=!1,S=null,L=null;n&&(x=a&&f.route.id?a[f.route.id]:void 0,S=f.route.errorElement||ug,u&&(s<0&&p===0?(v=!0,L=null):s===p&&(v=!0,L=f.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,p+1)),d=()=>{let m;return x?m=S:v?m=L:f.route.Component?m=P.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,P.createElement(cg,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?P.createElement(sg,{location:n.location,revalidation:n.revalidation,component:S,error:x,children:d(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):d()},null)}var Vp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vp||{}),Wl=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}(Wl||{});function dg(e){let t=P.useContext(ci);return t||J(!1),t}function pg(e){let t=P.useContext(Up);return t||J(!1),t}function hg(e){let t=P.useContext(Wt);return t||J(!1),t}function Wp(e){let t=hg(),n=t.matches[t.matches.length-1];return n.route.id||J(!1),n.route.id}function mg(){var e;let t=P.useContext(Ip),n=pg(Wl.UseRouteError),r=Wp(Wl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yg(){let{router:e}=dg(Vp.UseNavigateStable),t=Wp(Wl.UseNavigateStable),n=P.useRef(!1);return Bp(()=>{n.current=!0}),P.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Vl({fromRouteId:t},l)))},[e,t])}function vg(e){return og(e.context)}function Jr(e){J(!1)}function gg(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ke.Pop,navigator:l,static:i=!1,future:a}=e;Oo()&&J(!1);let u=t.replace(/^\/*/,"/"),s=P.useMemo(()=>({basename:u,navigator:l,static:i,future:Vl({v7_relativeSplatPath:!1},a)}),[u,a,l,i]);typeof r=="string"&&(r=wn(r));let{pathname:c="/",search:f="",hash:p="",state:x=null,key:v="default"}=r,S=P.useMemo(()=>{let L=Cr(c,u);return L==null?null:{location:{pathname:L,search:f,hash:p,state:x,key:v},navigationType:o}},[u,c,f,p,x,v,o]);return S==null?null:P.createElement(Hn.Provider,{value:s},P.createElement(os.Provider,{children:n,value:S}))}new Promise(()=>{});function Ga(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,o)=>{if(!P.isValidElement(r))return;let l=[...t,o];if(r.type===P.Fragment){n.push.apply(n,Ga(r.props.children,l));return}r.type!==Jr&&J(!1),!r.props.index||!r.props.children||J(!1);let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Ga(r.props.children,l)),n.push(i)}),n}function wg(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.24.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Eg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xg(e,t){return e.button===0&&(!t||t==="_self")&&!Eg(e)}const kg=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Cg="6";try{window.__reactRouterVersion=Cg}catch{}function Rg(e,t){return Mv({basename:void 0,future:Co({},void 0,{v7_prependBasename:!0}),history:lv({window:void 0}),hydrationData:Pg(),routes:e,mapRouteProperties:wg,unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize()}function Pg(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Co({},t,{errors:_g(t.errors)})),t}function _g(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new ts(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let l=window[o.__subType];if(typeof l=="function")try{let i=new l(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let l=new Error(o.message);l.stack="",n[r]=l}}else n[r]=o;return n}const Tg=P.createContext({isTransitioning:!1}),Lg=P.createContext(new Map),Ng="startTransition",Xc=Qh[Ng],Og="flushSync",Gc=ov[Og];function Dg(e){Xc?Xc(e):e()}function Br(e){Gc?Gc(e):e()}class jg{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Fg(e){let{fallbackElement:t,router:n,future:r}=e,[o,l]=P.useState(n.state),[i,a]=P.useState(),[u,s]=P.useState({isTransitioning:!1}),[c,f]=P.useState(),[p,x]=P.useState(),[v,S]=P.useState(),L=P.useRef(new Map),{v7_startTransition:h}=r||{},d=P.useCallback(_=>{h?Dg(_):_()},[h]),m=P.useCallback((_,j)=>{let{deletedFetchers:A,unstable_flushSync:I,unstable_viewTransitionOpts:X}=j;A.forEach(ce=>L.current.delete(ce)),_.fetchers.forEach((ce,Ee)=>{ce.data!==void 0&&L.current.set(Ee,ce.data)});let _e=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!X||_e){I?Br(()=>l(_)):d(()=>l(_));return}if(I){Br(()=>{p&&(c&&c.resolve(),p.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:X.currentLocation,nextLocation:X.nextLocation})});let ce=n.window.document.startViewTransition(()=>{Br(()=>l(_))});ce.finished.finally(()=>{Br(()=>{f(void 0),x(void 0),a(void 0),s({isTransitioning:!1})})}),Br(()=>x(ce));return}p?(c&&c.resolve(),p.skipTransition(),S({state:_,currentLocation:X.currentLocation,nextLocation:X.nextLocation})):(a(_),s({isTransitioning:!0,flushSync:!1,currentLocation:X.currentLocation,nextLocation:X.nextLocation}))},[n.window,p,c,L,d]);P.useLayoutEffect(()=>n.subscribe(m),[n,m]),P.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new jg)},[u]),P.useEffect(()=>{if(c&&i&&n.window){let _=i,j=c.promise,A=n.window.document.startViewTransition(async()=>{d(()=>l(_)),await j});A.finished.finally(()=>{f(void 0),x(void 0),a(void 0),s({isTransitioning:!1})}),x(A)}},[d,i,c,n.window]),P.useEffect(()=>{c&&i&&o.location.key===i.location.key&&c.resolve()},[c,p,o.location,i]),P.useEffect(()=>{!u.isTransitioning&&v&&(a(v.state),s({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),S(void 0))},[u.isTransitioning,v]),P.useEffect(()=>{},[]);let C=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,j,A)=>n.navigate(_,{state:j,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(_,j,A)=>n.navigate(_,{replace:!0,state:j,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),N=n.basename||"/",g=P.useMemo(()=>({router:n,navigator:C,static:!1,basename:N}),[n,C,N]);return P.createElement(P.Fragment,null,P.createElement(ci.Provider,{value:g},P.createElement(Up.Provider,{value:o},P.createElement(Lg.Provider,{value:L.current},P.createElement(Tg.Provider,{value:u},P.createElement(gg,{basename:N,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?P.createElement(Mg,{routes:n.routes,future:n.future,state:o}):t))))),null)}function Mg(e){let{routes:t,future:n,state:r}=e;return ig(t,void 0,r,n)}const zg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ag=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ls=P.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:i,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:f}=t,p=Sg(t,kg),{basename:x}=P.useContext(Hn),v,S=!1;if(typeof s=="string"&&Ag.test(s)&&(v=s,zg))try{let m=new URL(window.location.href),C=s.startsWith("//")?new URL(m.protocol+s):new URL(s),N=Cr(C.pathname,x);C.origin===m.origin&&N!=null?s=N+C.search+C.hash:S=!0}catch{}let L=tg(s,{relative:o}),h=Ug(s,{replace:i,state:a,target:u,preventScrollReset:c,relative:o,unstable_viewTransition:f});function d(m){r&&r(m),m.defaultPrevented||h(m)}return P.createElement("a",Co({},p,{href:v||L,onClick:S||l?r:d,ref:n,target:u}))});var qc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qc||(qc={}));var Zc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Zc||(Zc={}));function Ug(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:i,unstable_viewTransition:a}=t===void 0?{}:t,u=Hp(),s=fi(),c=$p(e,{relative:i});return P.useCallback(f=>{if(xg(f,n)){f.preventDefault();let p=r!==void 0?r:An(s)===An(c);u(e,{replace:p,state:o,preventScrollReset:l,relative:i,unstable_viewTransition:a})}},[s,u,c,r,o,n,e,l,i,a])}function Ig(){return O.jsx("nav",{children:O.jsx("h1",{children:O.jsx(ls,{to:"./",children:"Where is the world?"})})})}function Bg(){return O.jsxs(O.Fragment,{children:[O.jsx(Ig,{}),O.jsx(vg,{})]})}function Hg(){return O.jsx("h1",{children:"Not Found"})}function Kp(e,t){return function(){return e.apply(t,arguments)}}const{toString:$g}=Object.prototype,{getPrototypeOf:is}=Object,di=(e=>t=>{const n=$g.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kt=e=>(e=e.toLowerCase(),t=>di(t)===e),pi=e=>t=>typeof t===e,{isArray:Rr}=Array,Ro=pi("undefined");function Vg(e){return e!==null&&!Ro(e)&&e.constructor!==null&&!Ro(e.constructor)&&ct(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qp=kt("ArrayBuffer");function Wg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qp(e.buffer),t}const Kg=pi("string"),ct=pi("function"),Jp=pi("number"),hi=e=>e!==null&&typeof e=="object",Qg=e=>e===!0||e===!1,vl=e=>{if(di(e)!=="object")return!1;const t=is(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Jg=kt("Date"),Yg=kt("File"),Xg=kt("Blob"),Gg=kt("FileList"),qg=e=>hi(e)&&ct(e.pipe),Zg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ct(e.append)&&((t=di(e))==="formdata"||t==="object"&&ct(e.toString)&&e.toString()==="[object FormData]"))},bg=kt("URLSearchParams"),[e0,t0,n0,r0]=["ReadableStream","Request","Response","Headers"].map(kt),o0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Do(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Rr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Xp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gp=e=>!Ro(e)&&e!==Xp;function qa(){const{caseless:e}=Gp(this)&&this||{},t={},n=(r,o)=>{const l=e&&Yp(t,o)||o;vl(t[l])&&vl(r)?t[l]=qa(t[l],r):vl(r)?t[l]=qa({},r):Rr(r)?t[l]=r.slice():t[l]=r};for(let r=0,o=arguments.length;r(Do(t,(o,l)=>{n&&ct(o)?e[l]=Kp(o,n):e[l]=o},{allOwnKeys:r}),e),i0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),a0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},u0=(e,t,n,r)=>{let o,l,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)i=o[l],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&is(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},s0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},c0=e=>{if(!e)return null;if(Rr(e))return e;let t=e.length;if(!Jp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},f0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&is(Uint8Array)),d0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},p0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},h0=kt("HTMLFormElement"),m0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),bc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),y0=kt("RegExp"),qp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Do(n,(o,l)=>{let i;(i=t(o,l,e))!==!1&&(r[l]=i||o)}),Object.defineProperties(e,r)},v0=e=>{qp(e,(t,n)=>{if(ct(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ct(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},g0=(e,t)=>{const n={},r=o=>{o.forEach(l=>{n[l]=!0})};return Rr(e)?r(e):r(String(e).split(t)),n},w0=()=>{},S0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,qi="abcdefghijklmnopqrstuvwxyz",ef="0123456789",Zp={DIGIT:ef,ALPHA:qi,ALPHA_DIGIT:qi+qi.toUpperCase()+ef},E0=(e=16,t=Zp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function x0(e){return!!(e&&ct(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const k0=e=>{const t=new Array(10),n=(r,o)=>{if(hi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const l=Rr(r)?[]:{};return Do(r,(i,a)=>{const u=n(i,o+1);!Ro(u)&&(l[a]=u)}),t[o]=void 0,l}}return r};return n(e,0)},C0=kt("AsyncFunction"),R0=e=>e&&(hi(e)||ct(e))&&ct(e.then)&&ct(e.catch),k={isArray:Rr,isArrayBuffer:Qp,isBuffer:Vg,isFormData:Zg,isArrayBufferView:Wg,isString:Kg,isNumber:Jp,isBoolean:Qg,isObject:hi,isPlainObject:vl,isReadableStream:e0,isRequest:t0,isResponse:n0,isHeaders:r0,isUndefined:Ro,isDate:Jg,isFile:Yg,isBlob:Xg,isRegExp:y0,isFunction:ct,isStream:qg,isURLSearchParams:bg,isTypedArray:f0,isFileList:Gg,forEach:Do,merge:qa,extend:l0,trim:o0,stripBOM:i0,inherits:a0,toFlatObject:u0,kindOf:di,kindOfTest:kt,endsWith:s0,toArray:c0,forEachEntry:d0,matchAll:p0,isHTMLForm:h0,hasOwnProperty:bc,hasOwnProp:bc,reduceDescriptors:qp,freezeMethods:v0,toObjectSet:g0,toCamelCase:m0,noop:w0,toFiniteNumber:S0,findKey:Yp,global:Xp,isContextDefined:Gp,ALPHABET:Zp,generateString:E0,isSpecCompliantForm:x0,toJSONObject:k0,isAsyncFn:C0,isThenable:R0};function K(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}k.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bp=K.prototype,eh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{eh[e]={value:e}});Object.defineProperties(K,eh);Object.defineProperty(bp,"isAxiosError",{value:!0});K.from=(e,t,n,r,o,l)=>{const i=Object.create(bp);return k.toFlatObject(e,i,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),K.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,l&&Object.assign(i,l),i};const P0=null;function Za(e){return k.isPlainObject(e)||k.isArray(e)}function th(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function tf(e,t,n){return e?e.concat(t).map(function(o,l){return o=th(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function _0(e){return k.isArray(e)&&!e.some(Za)}const T0=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function mi(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,L){return!k.isUndefined(L[S])});const r=n.metaTokens,o=n.visitor||c,l=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(o))throw new TypeError("visitor must be a function");function s(v){if(v===null)return"";if(k.isDate(v))return v.toISOString();if(!u&&k.isBlob(v))throw new K("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(v)||k.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,S,L){let h=v;if(v&&!L&&typeof v=="object"){if(k.endsWith(S,"{}"))S=r?S:S.slice(0,-2),v=JSON.stringify(v);else if(k.isArray(v)&&_0(v)||(k.isFileList(v)||k.endsWith(S,"[]"))&&(h=k.toArray(v)))return S=th(S),h.forEach(function(m,C){!(k.isUndefined(m)||m===null)&&t.append(i===!0?tf([S],C,l):i===null?S:S+"[]",s(m))}),!1}return Za(v)?!0:(t.append(tf(L,S,l),s(v)),!1)}const f=[],p=Object.assign(T0,{defaultVisitor:c,convertValue:s,isVisitable:Za});function x(v,S){if(!k.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(v),k.forEach(v,function(h,d){(!(k.isUndefined(h)||h===null)&&o.call(t,h,k.isString(d)?d.trim():d,S,p))===!0&&x(h,S?S.concat(d):[d])}),f.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return x(e),t}function nf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function as(e,t){this._pairs=[],e&&mi(e,this,t)}const nh=as.prototype;nh.append=function(t,n){this._pairs.push([t,n])};nh.toString=function(t){const n=t?function(r){return t.call(this,r,nf)}:nf;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function L0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rh(e,t,n){if(!t)return e;const r=n&&n.encode||L0,o=n&&n.serialize;let l;if(o?l=o(t,n):l=k.isURLSearchParams(t)?t.toString():new as(t,n).toString(r),l){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class rf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const oh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},N0=typeof URLSearchParams<"u"?URLSearchParams:as,O0=typeof FormData<"u"?FormData:null,D0=typeof Blob<"u"?Blob:null,j0={isBrowser:!0,classes:{URLSearchParams:N0,FormData:O0,Blob:D0},protocols:["http","https","file","blob","url","data"]},us=typeof window<"u"&&typeof document<"u",F0=(e=>us&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),M0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",z0=us&&window.location.href||"http://localhost",A0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:us,hasStandardBrowserEnv:F0,hasStandardBrowserWebWorkerEnv:M0,origin:z0},Symbol.toStringTag,{value:"Module"})),Et={...A0,...j0};function U0(e,t){return mi(e,new Et.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,l){return Et.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function I0(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B0(e){const t={},n=Object.keys(e);let r;const o=n.length;let l;for(r=0;r=n.length;return i=!i&&k.isArray(o)?o.length:i,u?(k.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!k.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],l)&&k.isArray(o[i])&&(o[i]=B0(o[i])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,o)=>{t(I0(r),o,n,0)}),n}return null}function H0(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const jo={transitional:oh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,l=k.isObject(t);if(l&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return o?JSON.stringify(lh(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return U0(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return mi(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),H0(t)):t}],transformResponse:[function(t){const n=this.transitional||jo.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?K.from(a,K.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{jo.headers[e]={}});const $0=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),V0=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&$0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},of=Symbol("internals");function Hr(e){return e&&String(e).trim().toLowerCase()}function gl(e){return e===!1||e==null?e:k.isArray(e)?e.map(gl):String(e)}function W0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const K0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zi(e,t,n,r,o){if(k.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function Q0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function J0(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,l,i){return this[r].call(this,t,o,l,i)},configurable:!0})})}class qe{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function l(a,u,s){const c=Hr(u);if(!c)throw new Error("header name must be a non-empty string");const f=k.findKey(o,c);(!f||o[f]===void 0||s===!0||s===void 0&&o[f]!==!1)&&(o[f||u]=gl(a))}const i=(a,u)=>k.forEach(a,(s,c)=>l(s,c,u));if(k.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(k.isString(t)&&(t=t.trim())&&!K0(t))i(V0(t),n);else if(k.isHeaders(t))for(const[a,u]of t.entries())l(u,a,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Hr(t),t){const r=k.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return W0(o);if(k.isFunction(n))return n.call(this,o,r);if(k.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hr(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Zi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function l(i){if(i=Hr(i),i){const a=k.findKey(r,i);a&&(!n||Zi(r,r[a],a,n))&&(delete r[a],o=!0)}}return k.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const l=n[r];(!t||Zi(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,r={};return k.forEach(this,(o,l)=>{const i=k.findKey(r,l);if(i){n[i]=gl(o),delete n[l];return}const a=t?Q0(l):String(l).trim();a!==l&&delete n[l],n[a]=gl(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&k.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[of]=this[of]={accessors:{}}).accessors,o=this.prototype;function l(i){const a=Hr(i);r[a]||(J0(o,i),r[a]=!0)}return k.isArray(t)?t.forEach(l):l(t),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(qe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});k.freezeMethods(qe);function bi(e,t){const n=this||jo,r=t||n,o=qe.from(r.headers);let l=r.data;return k.forEach(e,function(a){l=a.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function ih(e){return!!(e&&e.__CANCEL__)}function Pr(e,t,n){K.call(this,e??"canceled",K.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Pr,K,{__CANCEL__:!0});function ah(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Y0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function X0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,l=0,i;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),c=r[l];i||(i=s),n[o]=u,r[o]=s;let f=l,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),s-ir)return o&&(clearTimeout(o),o=null),n=a,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(a-n)))}}const Kl=(e,t,n=3)=>{let r=0;const o=X0(50,250);return G0(l=>{const i=l.loaded,a=l.lengthComputable?l.total:void 0,u=i-r,s=o(u),c=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:u,rate:s||void 0,estimated:s&&a&&c?(a-i)/s:void 0,event:l,lengthComputable:a!=null};f[t?"download":"upload"]=!0,e(f)},n)},q0=Et.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(l){let i=l;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=k.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Z0=Et.hasStandardBrowserEnv?{write(e,t,n,r,o,l){const i=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),k.isString(r)&&i.push("path="+r),k.isString(o)&&i.push("domain="+o),l===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function b0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function e1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uh(e,t){return e&&!b0(t)?e1(e,t):t}const lf=e=>e instanceof qe?{...e}:e;function Un(e,t){t=t||{};const n={};function r(s,c,f){return k.isPlainObject(s)&&k.isPlainObject(c)?k.merge.call({caseless:f},s,c):k.isPlainObject(c)?k.merge({},c):k.isArray(c)?c.slice():c}function o(s,c,f){if(k.isUndefined(c)){if(!k.isUndefined(s))return r(void 0,s,f)}else return r(s,c,f)}function l(s,c){if(!k.isUndefined(c))return r(void 0,c)}function i(s,c){if(k.isUndefined(c)){if(!k.isUndefined(s))return r(void 0,s)}else return r(void 0,c)}function a(s,c,f){if(f in t)return r(s,c);if(f in e)return r(void 0,s)}const u={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(s,c)=>o(lf(s),lf(c),!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||o,p=f(e[c],t[c],c);k.isUndefined(p)&&f!==a||(n[c]=p)}),n}const sh=e=>{const t=Un({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:l,headers:i,auth:a}=t;t.headers=i=qe.from(i),t.url=rh(uh(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(k.isFormData(n)){if(Et.hasStandardBrowserEnv||Et.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[s,...c]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([s||"multipart/form-data",...c].join("; "))}}if(Et.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(t)),r||r!==!1&&q0(t.url))){const s=o&&l&&Z0.read(l);s&&i.set(o,s)}return t},t1=typeof XMLHttpRequest<"u",n1=t1&&function(e){return new Promise(function(n,r){const o=sh(e);let l=o.data;const i=qe.from(o.headers).normalize();let{responseType:a}=o,u;function s(){o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let c=new XMLHttpRequest;c.open(o.method.toUpperCase(),o.url,!0),c.timeout=o.timeout;function f(){if(!c)return;const x=qe.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:x,config:e,request:c};ah(function(h){n(h),s()},function(h){r(h),s()},S),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new K("Request aborted",K.ECONNABORTED,o,c)),c=null)},c.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,o,c)),c=null},c.ontimeout=function(){let v=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||oh;o.timeoutErrorMessage&&(v=o.timeoutErrorMessage),r(new K(v,S.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,o,c)),c=null},l===void 0&&i.setContentType(null),"setRequestHeader"in c&&k.forEach(i.toJSON(),function(v,S){c.setRequestHeader(S,v)}),k.isUndefined(o.withCredentials)||(c.withCredentials=!!o.withCredentials),a&&a!=="json"&&(c.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&c.addEventListener("progress",Kl(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Kl(o.onUploadProgress)),(o.cancelToken||o.signal)&&(u=x=>{c&&(r(!x||x.type?new Pr(null,e,c):x),c.abort(),c=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const p=Y0(o.url);if(p&&Et.protocols.indexOf(p)===-1){r(new K("Unsupported protocol "+p+":",K.ERR_BAD_REQUEST,e));return}c.send(l||null)})},r1=(e,t)=>{let n=new AbortController,r;const o=function(u){if(!r){r=!0,i();const s=u instanceof Error?u:this.reason;n.abort(s instanceof K?s:new Pr(s instanceof Error?s.message:s))}};let l=t&&setTimeout(()=>{o(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const i=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",o):u.unsubscribe(o))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=i,[a,()=>{l&&clearTimeout(l),l=null}]},o1=function*(e,t){let n=e.byteLength;if(!t||n{const l=l1(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(a){const{done:u,value:s}=await l.next();if(u){a.close(),r();return}let c=s.byteLength;n&&n(i+=c),a.enqueue(new Uint8Array(s))},cancel(a){return r(a),l.return()}},{highWaterMark:2})},uf=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},yi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ch=yi&&typeof ReadableStream=="function",ba=yi&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),i1=ch&&(()=>{let e=!1;const t=new Request(Et.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),sf=64*1024,eu=ch&&!!(()=>{try{return k.isReadableStream(new Response("").body)}catch{}})(),Ql={stream:eu&&(e=>e.body)};yi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ql[t]&&(Ql[t]=k.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new K(`Response type '${t}' is not supported`,K.ERR_NOT_SUPPORT,r)})})})(new Response);const a1=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(k.isArrayBufferView(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await ba(e)).byteLength},u1=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??a1(t)},s1=yi&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:l,timeout:i,onDownloadProgress:a,onUploadProgress:u,responseType:s,headers:c,withCredentials:f="same-origin",fetchOptions:p}=sh(e);s=s?(s+"").toLowerCase():"text";let[x,v]=o||l||i?r1([o,l],i):[],S,L;const h=()=>{!S&&setTimeout(()=>{x&&x.unsubscribe()}),S=!0};let d;try{if(u&&i1&&n!=="get"&&n!=="head"&&(d=await u1(c,r))!==0){let g=new Request(t,{method:"POST",body:r,duplex:"half"}),_;k.isFormData(r)&&(_=g.headers.get("content-type"))&&c.setContentType(_),g.body&&(r=af(g.body,sf,uf(d,Kl(u)),null,ba))}k.isString(f)||(f=f?"cors":"omit"),L=new Request(t,{...p,signal:x,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let m=await fetch(L);const C=eu&&(s==="stream"||s==="response");if(eu&&(a||C)){const g={};["status","statusText","headers"].forEach(j=>{g[j]=m[j]});const _=k.toFiniteNumber(m.headers.get("content-length"));m=new Response(af(m.body,sf,a&&uf(_,Kl(a,!0)),C&&h,ba),g)}s=s||"text";let N=await Ql[k.findKey(Ql,s)||"text"](m,e);return!C&&h(),v&&v(),await new Promise((g,_)=>{ah(g,_,{data:N,headers:qe.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:L})})}catch(m){throw h(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,e,L),{cause:m.cause||m}):K.from(m,m&&m.code,e,L)}}),tu={http:P0,xhr:n1,fetch:s1};k.forEach(tu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cf=e=>`- ${e}`,c1=e=>k.isFunction(e)||e===null||e===!1,fh={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let l=0;l`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?l.length>1?`since : +`+l.map(cf).join(` +`):" "+cf(l[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:tu};function ea(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pr(null,e)}function ff(e){return ea(e),e.headers=qe.from(e.headers),e.data=bi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fh.getAdapter(e.adapter||jo.adapter)(e).then(function(r){return ea(e),r.data=bi.call(e,e.transformResponse,r),r.headers=qe.from(r.headers),r},function(r){return ih(r)||(ea(e),r&&r.response&&(r.response.data=bi.call(e,e.transformResponse,r.response),r.response.headers=qe.from(r.response.headers))),Promise.reject(r)})}const dh="1.7.2",ss={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ss[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const df={};ss.transitional=function(t,n,r){function o(l,i){return"[Axios v"+dh+"] Transitional option '"+l+"'"+i+(r?". "+r:"")}return(l,i,a)=>{if(t===!1)throw new K(o(i," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!df[i]&&(df[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,i,a):!0}};function f1(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const l=r[o],i=t[l];if(i){const a=e[l],u=a===void 0||i(a,l,e);if(u!==!0)throw new K("option "+l+" must be "+u,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+l,K.ERR_BAD_OPTION)}}const nu={assertOptions:f1,validators:ss},qt=nu.validators;class On{constructor(t){this.defaults=t,this.interceptors={request:new rf,response:new rf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const l=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Un(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:l}=n;r!==void 0&&nu.assertOptions(r,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean)},!1),o!=null&&(k.isFunction(o)?n.paramsSerializer={serialize:o}:nu.assertOptions(o,{encode:qt.function,serialize:qt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=l&&k.merge(l.common,l[n.method]);l&&k.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=qe.concat(i,l);const a=[];let u=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(u=u&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const s=[];this.interceptors.response.forEach(function(S){s.push(S.fulfilled,S.rejected)});let c,f=0,p;if(!u){const v=[ff.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,s),p=v.length,c=Promise.resolve(n);f{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](o);r._listeners=null}),this.promise.then=o=>{let l;const i=new Promise(a=>{r.subscribe(a),l=a}).then(o);return i.cancel=function(){r.unsubscribe(l)},i},t(function(l,i,a){r.reason||(r.reason=new Pr(l,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new cs(function(o){t=o}),cancel:t}}}function d1(e){return function(n){return e.apply(null,n)}}function p1(e){return k.isObject(e)&&e.isAxiosError===!0}const ru={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ru).forEach(([e,t])=>{ru[t]=e});function ph(e){const t=new On(e),n=Kp(On.prototype.request,t);return k.extend(n,On.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ph(Un(e,o))},n}const Se=ph(jo);Se.Axios=On;Se.CanceledError=Pr;Se.CancelToken=cs;Se.isCancel=ih;Se.VERSION=dh;Se.toFormData=mi;Se.AxiosError=K;Se.Cancel=Se.CanceledError;Se.all=function(t){return Promise.all(t)};Se.spread=d1;Se.isAxiosError=p1;Se.mergeConfig=Un;Se.AxiosHeaders=qe;Se.formToJSON=e=>lh(k.isHTMLForm(e)?new FormData(e):e);Se.getAdapter=fh.getAdapter;Se.HttpStatusCode=ru;Se.default=Se;function h1({datas:e}){return O.jsxs(O.Fragment,{children:[O.jsx("p",{children:"Border Countries:"}),O.jsx("nav",{children:O.jsx("ul",{className:"countries-borders",children:e.borders.map(t=>O.jsx("li",{children:O.jsx(ls,{to:`/countrie/${t}`,children:t})},t))})})]})}function m1({datas:e}){const t=e.currencies?Object.values(e.currencies).map(r=>r.name).join(", "):"N/A",n=e.languages?Object.values(e.languages).sort().join(", "):"N/A";return O.jsx(O.Fragment,{children:O.jsxs("div",{className:"t",children:[O.jsx("img",{src:e.flags.svg,alt:e.flags.alt}),O.jsxs("section",{children:[O.jsx("h1",{children:e.name.common}),O.jsxs("div",{children:[O.jsxs("ul",{children:[O.jsxs("li",{children:[O.jsx("span",{children:"Native Name: "}),e.name.official]}),O.jsxs("li",{children:[O.jsx("span",{children:"Population:"})," ",e.population.toLocaleString()]}),O.jsxs("li",{children:[O.jsx("span",{children:"Region:"})," ",e.region]}),O.jsxs("li",{children:[O.jsx("span",{children:"Sub Region: "}),e.subregion]}),O.jsxs("li",{children:[O.jsx("span",{children:"Capital:"})," ",e.capital]})]}),O.jsxs("ul",{children:[O.jsxs("li",{children:[O.jsx("span",{children:"Top Level Domain:"})," ",e.tld]}),O.jsxs("li",{children:[O.jsx("span",{children:"Currencies:"})," ",t]}),O.jsxs("li",{children:[O.jsx("span",{children:"Languages:"})," ",n]})]})]}),e.borders&&O.jsx(h1,{datas:e})]})]})})}function y1(){const{id:e}=lg(),[t,n]=P.useState(null),r=Hp();return P.useEffect(()=>{(async()=>{try{const l=await Se.get(`https://restcountries.com/v3.1/alpha/${e}`);n(l.data[0])}catch(l){console.error(l)}})()},[e]),t?O.jsxs("div",{className:"countrie-details",children:[O.jsx("button",{onClick:()=>r(-1),children:"Back"}),O.jsx(m1,{datas:t})]}):O.jsx("p",{children:"Loading..."})}function v1({onSearchChange:e,onRegionChange:t}){return O.jsxs("header",{className:"container",children:[O.jsx("form",{children:O.jsx("input",{type:"search",onChange:e,placeholder:"Search for a country..."})}),O.jsxs("select",{onChange:t,children:[O.jsx("option",{value:"",children:"Filter by Region"}),O.jsx("option",{value:"Africa",children:"Africa"}),O.jsx("option",{value:"Americas",children:"Americas"}),O.jsx("option",{value:"Antarctic",children:"Antarctic"}),O.jsx("option",{value:"Asia",children:"Asia"}),O.jsx("option",{value:"Europe",children:"Europe"}),O.jsx("option",{value:"Oceania",children:"Oceania"})]})]})}function g1({datas:e}){return O.jsx(O.Fragment,{children:O.jsx(ls,{to:`/countrie/${e.cca3}`,children:O.jsxs("div",{className:"card",children:[O.jsxs("figure",{children:[O.jsx("img",{src:e.flags.svg,alt:e.flags.alt}),O.jsx("figcaption",{children:e.name.common})]}),O.jsxs("ul",{children:[O.jsxs("li",{children:[O.jsx("span",{children:"Population:"})," ",e.population.toLocaleString()]}),O.jsxs("li",{children:[O.jsx("span",{children:"Region:"})," ",e.region]}),O.jsxs("li",{children:[O.jsx("span",{children:"Capital:"})," ",e.capital]})]})]})})})}function w1(){const[e,t]=P.useState([]),[n,r]=P.useState(""),[o,l]=P.useState(""),i=async()=>{try{const c=await Se.get("https://restcountries.com/v3.1/all");t(c.data)}catch(c){console.log(c)}};P.useEffect(()=>{i()},[]);const a=P.useCallback(c=>{r(c.target.value)},[]),u=P.useCallback(c=>{l(c.target.value)},[]),s=e.filter(c=>c.name.common.toLowerCase().includes(n.toLowerCase())&&(o?c.region===o:!0));return console.log(e),O.jsxs("main",{children:[O.jsx(v1,{onSearchChange:a,onRegionChange:u}),O.jsx("article",{children:s.map(c=>O.jsx(g1,{datas:c},c.cca3))})]})}const S1=Rg(Ga(O.jsxs(Jr,{element:O.jsx(Bg,{}),children:[O.jsx(Jr,{path:"/",element:O.jsx(w1,{})}),O.jsx(Jr,{path:"countrie/:id",element:O.jsx(y1,{})}),O.jsx(Jr,{path:"/*",element:O.jsx(Hg,{})})]})));ta.createRoot(document.getElementById("root")).render(O.jsx(Rf.StrictMode,{children:O.jsx(Fg,{router:S1})})); diff --git a/assets/index-pKLoGC8W.css b/assets/index-pKLoGC8W.css new file mode 100644 index 0000000..cc771cf --- /dev/null +++ b/assets/index-pKLoGC8W.css @@ -0,0 +1 @@ +nav{padding:32px 16px;box-shadow:0 0 10px #858585}nav a{color:#111517;font-size:1rem;text-decoration:none}#root{max-width:1280px;margin:0 auto}*{box-sizing:border-box;margin:0;padding:0;line-height:1.5}body{font-family:Nunito Sans,sans-serif}ul{list-style:none}.countries-borders{display:flex;flex-wrap:wrap;gap:8px}.countries-borders li{margin:16px 0}.countries-borders a{border-radius:5px;box-shadow:0 0 10px #858585;padding:8px 16px}.countries-borders a:hover{background-color:#858585}.countrie-details{padding:32px;box-shadow:none}.countrie-details span,.countrie-details p{font-weight:700}.countrie-details nav{box-shadow:none}.countrie-details div{display:flex;flex-direction:column}.countrie-details section{margin-top:32px}.countrie-details section div{gap:32px}.countrie-details img{margin-top:32px;width:100%;max-width:400px}button{padding:16px;border:none;border-radius:5px;box-shadow:0 0 10px #858585}button:hover{cursor:pointer}@media screen and (min-width: 900px){.countrie-details div{flex-direction:row}.countrie-details section{margin-left:96px}.countrie-details section div{gap:128px}}.container{display:flex;flex-wrap:wrap;gap:32px}input,select{border-radius:5px;box-shadow:0 0 10px #858585;border:none;padding:16px}input{width:100%;min-width:300px;max-width:400px}select{background-color:#fafafa}@media screen and (min-width: 550px){.container{justify-content:space-between}}a{text-decoration:none;color:inherit}.card{max-width:250px;border-radius:5px;box-shadow:0 0 10px #858585;padding-bottom:32px;min-height:100%}.card img{border-radius:5px 5px 0 0;width:100%}.card ul{list-style:none;margin:16px}.card ul span{font-weight:700}.card figcaption{font-weight:700;font-size:1.3rem;margin:16px}main{padding:32px 16px;display:flex;flex-direction:column;gap:32px}article{display:flex;justify-content:center;flex-wrap:wrap;gap:32px} diff --git a/index.html b/index.html new file mode 100644 index 0000000..925830e --- /dev/null +++ b/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + Rest Coutries API + + + + +
+ + diff --git a/vite.svg b/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file