From 7686cdb572c1b4b518a0314c8acc19346de838f7 Mon Sep 17 00:00:00 2001 From: parampatil Date: Sun, 14 Apr 2024 20:03:55 +0000 Subject: [PATCH] deploy: 0092abe4b3bf9f31678a1c9516d52c07d4535b0e --- .../{index-D2GyRjd1.js => index-4lZ93V8u.js} | 32 +++++++++---------- index.html | 28 ++++++++++++---- 2 files changed, 37 insertions(+), 23 deletions(-) rename assets/{index-D2GyRjd1.js => index-4lZ93V8u.js} (66%) diff --git a/assets/index-D2GyRjd1.js b/assets/index-4lZ93V8u.js similarity index 66% rename from assets/index-D2GyRjd1.js rename to assets/index-4lZ93V8u.js index 436e9fa..8e2d1c1 100644 --- a/assets/index-D2GyRjd1.js +++ b/assets/index-4lZ93V8u.js @@ -1,4 +1,4 @@ -function Yc(e,t){for(var n=0;nr[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xc={exports:{}},zo={},Gc={exports:{}},K={};/** +function Yc(e,t){for(var n=0;nr[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xc={exports:{}},Mo={},Gc={exports:{}},K={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Yc(e,t){for(var n=0;n>>1,re=D[q];if(0>>1;ql(st,H))Mel(It,st)?(D[q]=It,D[Me]=H,q=Me):(D[q]=st,D[Pe]=H,q=Pe);else if(Mel(It,H))D[q]=It,D[Me]=H,q=Me;else break e}}return B}function l(D,B){var H=D.sortIndex-B.sortIndex;return H!==0?H:D.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],s=[],c=1,f=null,h=3,E=!1,w=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,p=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(D){for(var B=n(s);B!==null;){if(B.callback===null)r(s);else if(B.startTime<=D)r(s),B.sortIndex=B.expirationTime,t(u,B);else break;B=n(s)}}function R(D){if(y=!1,m(D),!w)if(n(u)!==null)w=!0,Ut(L);else{var B=n(s);B!==null&&ie(R,B.startTime-D)}}function L(D,B){w=!1,y&&(y=!1,p(O),O=-1),E=!0;var H=h;try{for(m(B),f=n(u);f!==null&&(!(f.expirationTime>B)||D&&!G());){var q=f.callback;if(typeof q=="function"){f.callback=null,h=f.priorityLevel;var re=q(f.expirationTime<=B);B=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(u)&&r(u),m(B)}else r(u);f=n(u)}if(f!==null)var gt=!0;else{var Pe=n(s);Pe!==null&&ie(R,Pe.startTime-B),gt=!1}return gt}finally{f=null,h=H,E=!1}}var v=!1,P=null,O=-1,M=5,U=-1;function G(){return!(e.unstable_now()-UD||125q?(D.sortIndex=H,t(s,D),n(u)===null&&D===n(s)&&(y?(p(O),O=-1):y=!0,ie(R,H-q))):(D.sortIndex=re,t(u,D),w||E||(w=!0,Ut(L))),D},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(D){var B=h;return function(){var H=h;h=B;try{return D.apply(this,arguments)}finally{h=H}}}})(sf);uf.exports=sf;var jh=uf.exports;/** + */(function(e){function t(F,B){var H=F.length;F.push(B);e:for(;0>>1,re=F[q];if(0>>1;ql(st,H))zel(It,st)?(F[q]=It,F[ze]=H,q=ze):(F[q]=st,F[Pe]=H,q=Pe);else if(zel(It,H))F[q]=It,F[ze]=H,q=ze;else break e}}return B}function l(F,B){var H=F.sortIndex-B.sortIndex;return H!==0?H:F.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],s=[],c=1,f=null,h=3,E=!1,w=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,p=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(F){for(var B=n(s);B!==null;){if(B.callback===null)r(s);else if(B.startTime<=F)r(s),B.sortIndex=B.expirationTime,t(u,B);else break;B=n(s)}}function R(F){if(v=!1,m(F),!w)if(n(u)!==null)w=!0,Ut(L);else{var B=n(s);B!==null&&ie(R,B.startTime-F)}}function L(F,B){w=!1,v&&(v=!1,p(O),O=-1),E=!0;var H=h;try{for(m(B),f=n(u);f!==null&&(!(f.expirationTime>B)||F&&!G());){var q=f.callback;if(typeof q=="function"){f.callback=null,h=f.priorityLevel;var re=q(f.expirationTime<=B);B=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(u)&&r(u),m(B)}else r(u);f=n(u)}if(f!==null)var gt=!0;else{var Pe=n(s);Pe!==null&&ie(R,Pe.startTime-B),gt=!1}return gt}finally{f=null,h=H,E=!1}}var y=!1,P=null,O=-1,M=5,U=-1;function G(){return!(e.unstable_now()-UF||125q?(F.sortIndex=H,t(s,F),n(u)===null&&F===n(s)&&(v?(p(O),O=-1):v=!0,ie(R,H-q))):(F.sortIndex=re,t(u,F),w||E||(w=!0,Ut(L))),F},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(F){var B=h;return function(){var H=h;h=B;try{return F.apply(this,arguments)}finally{h=H}}}})(sf);uf.exports=sf;var zh=uf.exports;/** * @license React * react-dom.production.min.js * @@ -30,19 +30,19 @@ function Yc(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qi=Object.prototype.hasOwnProperty,Mh=/^[: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]*$/,ds={},ps={};function zh(e){return Qi.call(ps,e)?!0:Qi.call(ds,e)?!1:Mh.test(e)?ps[e]=!0:(ds[e]=!0,!1)}function Ah(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 Uh(e,t,n,r){if(t===null||typeof t>"u"||Ah(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 Ie(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Ie(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){Le[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var qa=/[\-:]([a-z])/g;function Za(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(qa,Za);Le[t]=new Ie(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(qa,Za);Le[t]=new Ie(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(qa,Za);Le[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function ba(e,t,n,r){var l=Le.hasOwnProperty(t)?Le[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qi=Object.prototype.hasOwnProperty,Mh=/^[: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]*$/,ds={},ps={};function Ah(e){return Qi.call(ps,e)?!0:Qi.call(ds,e)?!1:Mh.test(e)?ps[e]=!0:(ds[e]=!0,!1)}function Uh(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 Ih(e,t,n,r){if(t===null||typeof t>"u"||Uh(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 Ie(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Ie(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){Le[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var qa=/[\-:]([a-z])/g;function Za(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(qa,Za);Le[t]=new Ie(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(qa,Za);Le[t]=new Ie(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(qa,Za);Le[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function ba(e,t,n,r){var l=Le.hasOwnProperty(t)?Le[t]:null;(l!==null?l.type!==0:r||!(2a||l[i]!==o[a]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{pi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mr(e):""}function Ih(e){switch(e.tag){case 5:return Mr(e.type);case 16:return Mr("Lazy");case 13:return Mr("Suspense");case 19:return Mr("SuspenseList");case 0:case 2:case 15:return e=hi(e.type,!1),e;case 11:return e=hi(e.type.render,!1),e;case 1:return e=hi(e.type,!0),e;default:return""}}function Xi(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 Un:return"Fragment";case An:return"Portal";case Ki:return"Profiler";case eu:return"StrictMode";case Ji:return"Suspense";case Yi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pf:return(e.displayName||"Context")+".Consumer";case df:return(e._context.displayName||"Context")+".Provider";case tu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nu:return t=e.displayName||null,t!==null?t:Xi(e.type)||"Memo";case Kt:t=e._payload,e=e._init;try{return Xi(e(t))}catch{}}return null}function Bh(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 Xi(t);case 8:return t===eu?"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 un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $h(e){var t=mf(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.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 Dl(e){e._valueTracker||(e._valueTracker=$h(e))}function vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function uo(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 Gi(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ms(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=un(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 yf(e,t){t=t.checked,t!=null&&ba(e,"checked",t,!1)}function qi(e,t){yf(e,t);var n=un(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")?Zi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zi(e,t.type,un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vs(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 Zi(e,t,n){(t!=="number"||uo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function qn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ir={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},Hh=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(e){Hh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ir[t]=Ir[e]})});function Ef(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ir.hasOwnProperty(e)&&Ir[e]?(""+t).trim():t+"px"}function xf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ef(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Vh=ce({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 ta(e,t){if(t){if(Vh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function na(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 ra=null;function ru(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var la=null,Zn=null,bn=null;function ws(e){if(e=gl(e)){if(typeof la!="function")throw Error(_(280));var t=e.stateNode;t&&(t=$o(t),la(e.stateNode,e.type,t))}}function kf(e){Zn?bn?bn.push(e):bn=[e]:Zn=e}function Cf(){if(Zn){var e=Zn,t=bn;if(bn=Zn=null,ws(e),t)for(e=0;e>>=0,e===0?32:31-(em(e)/tm|0)|0}var jl=64,Ml=4194304;function Ar(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 po(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=Ar(a):(o&=i,o!==0&&(r=Ar(o)))}else i=n&~l,i!==0?r=Ar(i):o!==0&&(r=Ar(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 vl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mt(t),e[t]=n}function om(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=$r),Ts=" ",Ns=!1;function Wf(e,t){switch(e){case"keyup":return Fm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var In=!1;function Mm(e,t){switch(e){case"compositionend":return Qf(t);case"keypress":return t.which!==32?null:(Ns=!0,Ts);case"textInput":return e=t.data,e===Ts&&Ns?null:e;default:return null}}function zm(e,t){if(In)return e==="compositionend"||!fu&&Wf(e,t)?(e=Hf(),Gl=uu=Gt=null,In=!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=Fs(n)}}function Xf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gf(){for(var e=window,t=uo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uo(e.document)}return t}function du(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 Qm(e){var t=Gf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xf(n.ownerDocument.documentElement,n)){if(r!==null&&du(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=js(n,o);var i=js(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>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,Bn=null,ca=null,Vr=null,fa=!1;function Ms(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fa||Bn==null||Bn!==uo(r)||(r=Bn,"selectionStart"in r&&du(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}),Vr&&nl(Vr,r)||(Vr=r,r=vo(ca,"onSelect"),0Vn||(e.current=ya[Vn],ya[Vn]=null,Vn--)}function ne(e,t){Vn++,ya[Vn]=e.current,e.current=t}var sn={},je=fn(sn),Ve=fn(!1),Rn=sn;function lr(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function We(e){return e=e.childContextTypes,e!=null}function go(){oe(Ve),oe(je)}function Hs(e,t,n){if(je.current!==sn)throw Error(_(168));ne(je,t),ne(Ve,n)}function od(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,Bh(e)||"Unknown",l));return ce({},n,r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,Rn=je.current,ne(je,e),ne(Ve,Ve.current),!0}function Vs(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=od(e,t,Rn),r.__reactInternalMemoizedMergedChildContext=e,oe(Ve),oe(je),ne(je,e)):oe(Ve),ne(Ve,n)}var _t=null,Ho=!1,Ti=!1;function id(e){_t===null?_t=[e]:_t.push(e)}function rv(e){Ho=!0,id(e)}function dn(){if(!Ti&&_t!==null){Ti=!0;var e=0,t=b;try{var n=_t;for(b=1;e>=i,l-=i,Tt=1<<32-mt(t)+l|n<O?(M=P,P=null):M=P.sibling;var U=h(p,P,m[O],R);if(U===null){P===null&&(P=M);break}e&&P&&U.alternate===null&&t(p,P),d=o(U,d,O),v===null?L=U:v.sibling=U,v=U,P=M}if(O===m.length)return n(p,P),ae&&vn(p,O),L;if(P===null){for(;OO?(M=P,P=null):M=P.sibling;var G=h(p,P,U.value,R);if(G===null){P===null&&(P=M);break}e&&P&&G.alternate===null&&t(p,P),d=o(G,d,O),v===null?L=G:v.sibling=G,v=G,P=M}if(U.done)return n(p,P),ae&&vn(p,O),L;if(P===null){for(;!U.done;O++,U=m.next())U=f(p,U.value,R),U!==null&&(d=o(U,d,O),v===null?L=U:v.sibling=U,v=U);return ae&&vn(p,O),L}for(P=r(p,P);!U.done;O++,U=m.next())U=E(P,p,O,U.value,R),U!==null&&(e&&U.alternate!==null&&P.delete(U.key===null?O:U.key),d=o(U,d,O),v===null?L=U:v.sibling=U,v=U);return e&&P.forEach(function(we){return t(p,we)}),ae&&vn(p,O),L}function x(p,d,m,R){if(typeof m=="object"&&m!==null&&m.type===Un&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ol:e:{for(var L=m.key,v=d;v!==null;){if(v.key===L){if(L=m.type,L===Un){if(v.tag===7){n(p,v.sibling),d=l(v,m.props.children),d.return=p,p=d;break e}}else if(v.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Kt&&Gs(L)===v.type){n(p,v.sibling),d=l(v,m.props),d.ref=Pr(p,v,m),d.return=p,p=d;break e}n(p,v);break}else t(p,v);v=v.sibling}m.type===Un?(d=Cn(m.props.children,p.mode,R,m.key),d.return=p,p=d):(R=lo(m.type,m.key,m.props,null,p.mode,R),R.ref=Pr(p,d,m),R.return=p,p=R)}return i(p);case An:e:{for(v=m.key;d!==null;){if(d.key===v)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=l(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=zi(m,p.mode,R),d.return=p,p=d}return i(p);case Kt:return v=m._init,x(p,d,v(m._payload),R)}if(zr(m))return w(p,d,m,R);if(Er(m))return y(p,d,m,R);Hl(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,m),d.return=p,p=d):(n(p,d),d=Mi(m,p.mode,R),d.return=p,p=d),i(p)):n(p,d)}return x}var ir=hd(!0),md=hd(!1),wl={},Ct=fn(wl),il=fn(wl),al=fn(wl);function Sn(e){if(e===wl)throw Error(_(174));return e}function Eu(e,t){switch(ne(al,t),ne(il,e),ne(Ct,wl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ea(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ea(t,e)}oe(Ct),ne(Ct,t)}function ar(){oe(Ct),oe(il),oe(al)}function vd(e){Sn(al.current);var t=Sn(Ct.current),n=ea(t,e.type);t!==n&&(ne(il,e),ne(Ct,n))}function xu(e){il.current===e&&(oe(Ct),oe(il))}var ue=fn(0);function Ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ni=[];function ku(){for(var e=0;en?n:4,e(!0);var r=Li.transition;Li.transition={};try{e(!1),t()}finally{b=n,Li.transition=r}}function Dd(){return ut().memoizedState}function av(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fd(e))jd(t,n);else if(n=cd(e,t,n,r),n!==null){var l=Ae();vt(n,e,r,l),Md(n,t,r)}}function uv(e,t,n){var r=ln(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fd(e))jd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,yt(a,i)){var u=t.interleaved;u===null?(l.next=l,wu(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=cd(e,t,l,r),n!==null&&(l=Ae(),vt(n,e,r,l),Md(n,t,r))}}function Fd(e){var t=e.alternate;return e===se||t!==null&&t===se}function jd(e,t){Wr=Po=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Md(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ou(e,n)}}var _o={readContext:at,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useInsertionEffect:Oe,useLayoutEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useMutableSource:Oe,useSyncExternalStore:Oe,useId:Oe,unstable_isNewReconciler:!1},sv={readContext:at,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Zs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,eo(4194308,4,_d.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eo(4194308,4,e,t)},useInsertionEffect:function(e,t){return eo(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=St();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=av.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:qs,useDebugValue:Tu,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=qs(!1),t=e[0];return e=iv.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,l=St();if(ae){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),Re===null)throw Error(_(349));_n&30||wd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Zs(Ed.bind(null,r,o,e),[e]),r.flags|=2048,cl(9,Sd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=St(),t=Re.identifierPrefix;if(ae){var n=Nt,r=Tt;n=(r&~(1<<32-mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ul++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{pi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Bh(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=hi(e.type,!1),e;case 11:return e=hi(e.type.render,!1),e;case 1:return e=hi(e.type,!0),e;default:return""}}function Xi(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 In:return"Fragment";case Un:return"Portal";case Ki:return"Profiler";case eu:return"StrictMode";case Ji:return"Suspense";case Yi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pf:return(e.displayName||"Context")+".Consumer";case df:return(e._context.displayName||"Context")+".Provider";case tu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nu:return t=e.displayName||null,t!==null?t:Xi(e.type)||"Memo";case Kt:t=e._payload,e=e._init;try{return Xi(e(t))}catch{}}return null}function $h(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 Xi(t);case 8:return t===eu?"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 un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hh(e){var t=mf(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.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 Dl(e){e._valueTracker||(e._valueTracker=Hh(e))}function yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function uo(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 Gi(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ms(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=un(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 vf(e,t){t=t.checked,t!=null&&ba(e,"checked",t,!1)}function qi(e,t){vf(e,t);var n=un(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")?Zi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zi(e,t.type,un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ys(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 Zi(e,t,n){(t!=="number"||uo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mr=Array.isArray;function Zn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ir={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},Vh=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(e){Vh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ir[t]=Ir[e]})});function Ef(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ir.hasOwnProperty(e)&&Ir[e]?(""+t).trim():t+"px"}function xf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ef(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Wh=ce({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 ta(e,t){if(t){if(Wh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function na(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 ra=null;function ru(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var la=null,bn=null,er=null;function ws(e){if(e=gl(e)){if(typeof la!="function")throw Error(_(280));var t=e.stateNode;t&&(t=$o(t),la(e.stateNode,e.type,t))}}function kf(e){bn?er?er.push(e):er=[e]:bn=e}function Cf(){if(bn){var e=bn,t=er;if(er=bn=null,ws(e),t)for(e=0;e>>=0,e===0?32:31-(tm(e)/nm|0)|0}var jl=64,zl=4194304;function Ar(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 po(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=Ar(a):(o&=i,o!==0&&(r=Ar(o)))}else i=n&~l,i!==0?r=Ar(i):o!==0&&(r=Ar(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 yl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mt(t),e[t]=n}function im(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=$r),Ts=" ",Ns=!1;function Wf(e,t){switch(e){case"keyup":return jm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function Mm(e,t){switch(e){case"compositionend":return Qf(t);case"keypress":return t.which!==32?null:(Ns=!0,Ts);case"textInput":return e=t.data,e===Ts&&Ns?null:e;default:return null}}function Am(e,t){if(Bn)return e==="compositionend"||!fu&&Wf(e,t)?(e=Hf(),Gl=uu=Gt=null,Bn=!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=Fs(n)}}function Xf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gf(){for(var e=window,t=uo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uo(e.document)}return t}function du(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 Km(e){var t=Gf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xf(n.ownerDocument.documentElement,n)){if(r!==null&&du(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=js(n,o);var i=js(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>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,$n=null,ca=null,Vr=null,fa=!1;function zs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fa||$n==null||$n!==uo(r)||(r=$n,"selectionStart"in r&&du(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}),Vr&&nl(Vr,r)||(Vr=r,r=yo(ca,"onSelect"),0Wn||(e.current=va[Wn],va[Wn]=null,Wn--)}function ne(e,t){Wn++,va[Wn]=e.current,e.current=t}var sn={},je=fn(sn),Ve=fn(!1),Rn=sn;function or(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function We(e){return e=e.childContextTypes,e!=null}function go(){oe(Ve),oe(je)}function Hs(e,t,n){if(je.current!==sn)throw Error(_(168));ne(je,t),ne(Ve,n)}function od(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,$h(e)||"Unknown",l));return ce({},n,r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,Rn=je.current,ne(je,e),ne(Ve,Ve.current),!0}function Vs(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=od(e,t,Rn),r.__reactInternalMemoizedMergedChildContext=e,oe(Ve),oe(je),ne(je,e)):oe(Ve),ne(Ve,n)}var _t=null,Ho=!1,Ti=!1;function id(e){_t===null?_t=[e]:_t.push(e)}function ly(e){Ho=!0,id(e)}function dn(){if(!Ti&&_t!==null){Ti=!0;var e=0,t=b;try{var n=_t;for(b=1;e>=i,l-=i,Tt=1<<32-mt(t)+l|n<O?(M=P,P=null):M=P.sibling;var U=h(p,P,m[O],R);if(U===null){P===null&&(P=M);break}e&&P&&U.alternate===null&&t(p,P),d=o(U,d,O),y===null?L=U:y.sibling=U,y=U,P=M}if(O===m.length)return n(p,P),ae&&yn(p,O),L;if(P===null){for(;OO?(M=P,P=null):M=P.sibling;var G=h(p,P,U.value,R);if(G===null){P===null&&(P=M);break}e&&P&&G.alternate===null&&t(p,P),d=o(G,d,O),y===null?L=G:y.sibling=G,y=G,P=M}if(U.done)return n(p,P),ae&&yn(p,O),L;if(P===null){for(;!U.done;O++,U=m.next())U=f(p,U.value,R),U!==null&&(d=o(U,d,O),y===null?L=U:y.sibling=U,y=U);return ae&&yn(p,O),L}for(P=r(p,P);!U.done;O++,U=m.next())U=E(P,p,O,U.value,R),U!==null&&(e&&U.alternate!==null&&P.delete(U.key===null?O:U.key),d=o(U,d,O),y===null?L=U:y.sibling=U,y=U);return e&&P.forEach(function(we){return t(p,we)}),ae&&yn(p,O),L}function x(p,d,m,R){if(typeof m=="object"&&m!==null&&m.type===In&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ol:e:{for(var L=m.key,y=d;y!==null;){if(y.key===L){if(L=m.type,L===In){if(y.tag===7){n(p,y.sibling),d=l(y,m.props.children),d.return=p,p=d;break e}}else if(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Kt&&Gs(L)===y.type){n(p,y.sibling),d=l(y,m.props),d.ref=Pr(p,y,m),d.return=p,p=d;break e}n(p,y);break}else t(p,y);y=y.sibling}m.type===In?(d=Cn(m.props.children,p.mode,R,m.key),d.return=p,p=d):(R=lo(m.type,m.key,m.props,null,p.mode,R),R.ref=Pr(p,d,m),R.return=p,p=R)}return i(p);case Un:e:{for(y=m.key;d!==null;){if(d.key===y)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=l(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=Mi(m,p.mode,R),d.return=p,p=d}return i(p);case Kt:return y=m._init,x(p,d,y(m._payload),R)}if(Mr(m))return w(p,d,m,R);if(Er(m))return v(p,d,m,R);Hl(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,m),d.return=p,p=d):(n(p,d),d=zi(m,p.mode,R),d.return=p,p=d),i(p)):n(p,d)}return x}var ar=hd(!0),md=hd(!1),wl={},Ct=fn(wl),il=fn(wl),al=fn(wl);function Sn(e){if(e===wl)throw Error(_(174));return e}function Eu(e,t){switch(ne(al,t),ne(il,e),ne(Ct,wl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ea(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ea(t,e)}oe(Ct),ne(Ct,t)}function ur(){oe(Ct),oe(il),oe(al)}function yd(e){Sn(al.current);var t=Sn(Ct.current),n=ea(t,e.type);t!==n&&(ne(il,e),ne(Ct,n))}function xu(e){il.current===e&&(oe(Ct),oe(il))}var ue=fn(0);function Ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ni=[];function ku(){for(var e=0;en?n:4,e(!0);var r=Li.transition;Li.transition={};try{e(!1),t()}finally{b=n,Li.transition=r}}function Dd(){return ut().memoizedState}function uy(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fd(e))jd(t,n);else if(n=cd(e,t,n,r),n!==null){var l=Ae();yt(n,e,r,l),zd(n,t,r)}}function sy(e,t,n){var r=ln(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fd(e))jd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,vt(a,i)){var u=t.interleaved;u===null?(l.next=l,wu(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=cd(e,t,l,r),n!==null&&(l=Ae(),yt(n,e,r,l),zd(n,t,r))}}function Fd(e){var t=e.alternate;return e===se||t!==null&&t===se}function jd(e,t){Wr=Po=!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,ou(e,n)}}var _o={readContext:at,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useInsertionEffect:Oe,useLayoutEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useMutableSource:Oe,useSyncExternalStore:Oe,useId:Oe,unstable_isNewReconciler:!1},cy={readContext:at,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Zs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,eo(4194308,4,_d.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eo(4194308,4,e,t)},useInsertionEffect:function(e,t){return eo(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=St();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=uy.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:qs,useDebugValue:Tu,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=qs(!1),t=e[0];return e=ay.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,l=St();if(ae){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),Re===null)throw Error(_(349));_n&30||wd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Zs(Ed.bind(null,r,o,e),[e]),r.flags|=2048,cl(9,Sd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=St(),t=Re.identifierPrefix;if(ae){var n=Nt,r=Tt;n=(r&~(1<<32-mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ul++,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[Et]=t,e[ol]=r,Wd(e,t,!1,!1),t.stateNode=e;e:{switch(i=na(n,r),n){case"dialog":le("cancel",e),le("close",e),l=r;break;case"iframe":case"object":case"embed":le("load",e),l=r;break;case"video":case"audio":for(l=0;lsr&&(t.flags|=128,r=!0,_r(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ro(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_r(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!ae)return De(t),null}else 2*me()-o.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,_r(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=me(),t.sibling=null,n=ue.current,ne(ue,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return ju(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function yv(e,t){switch(hu(t),t.tag){case 1:return We(t.type)&&go(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),oe(Ve),oe(je),ku(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xu(t),null;case 13:if(oe(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ue),null;case 4:return ar(),null;case 10:return gu(t.type._context),null;case 22:case 23:return ju(),null;case 24:return null;default:return null}}var Wl=!1,Fe=!1,gv=typeof WeakSet=="function"?WeakSet:Set,F=null;function Jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function Na(e,t,n){try{n()}catch(r){de(e,t,r)}}var ac=!1;function wv(e,t){if(da=ho,e=Gf(),du(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,s=0,c=0,f=e,h=null;t:for(;;){for(var E;f!==n||l!==0&&f.nodeType!==3||(a=i+l),f!==o||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(E=f.firstChild)!==null;)h=f,f=E;for(;;){if(f===e)break t;if(h===n&&++s===l&&(a=i),h===o&&++c===r&&(u=i),(E=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=E}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(pa={focusedElem:e,selectionRange:n},ho=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,x=w.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:ft(t.type,y),x);p.__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(_(163))}}catch(R){de(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return w=ac,ac=!1,w}function Qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Na(t,n,o)}l=l.next}while(l!==r)}}function Qo(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 La(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 Jd(e){var t=e.alternate;t!==null&&(e.alternate=null,Jd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Et],delete t[ol],delete t[va],delete t[tv],delete t[nv])),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 Yd(e){return e.tag===5||e.tag===3||e.tag===4}function uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yd(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 Oa(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=yo));else if(r!==4&&(e=e.child,e!==null))for(Oa(e,t,n),e=e.sibling;e!==null;)Oa(e,t,n),e=e.sibling}function Da(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(Da(e,t,n),e=e.sibling;e!==null;)Da(e,t,n),e=e.sibling}var Te=null,dt=!1;function Vt(e,t,n){for(n=n.child;n!==null;)Xd(e,t,n),n=n.sibling}function Xd(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(Ao,n)}catch{}switch(n.tag){case 5:Fe||Jn(n,t);case 6:var r=Te,l=dt;Te=null,Vt(e,t,n),Te=r,dt=l,Te!==null&&(dt?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(dt?(e=Te,n=n.stateNode,e.nodeType===8?_i(e.parentNode,n):e.nodeType===1&&_i(e,n),el(e)):_i(Te,n.stateNode));break;case 4:r=Te,l=dt,Te=n.stateNode.containerInfo,dt=!0,Vt(e,t,n),Te=r,dt=l;break;case 0:case 11:case 14:case 15:if(!Fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Na(n,t,i),l=l.next}while(l!==r)}Vt(e,t,n);break;case 1:if(!Fe&&(Jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){de(n,t,a)}Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:n.mode&1?(Fe=(r=Fe)||n.memoizedState!==null,Vt(e,t,n),Fe=r):Vt(e,t,n);break;default:Vt(e,t,n)}}function sc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gv),t.forEach(function(r){var l=Tv.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ev(r/1960))-r,10e?16:e,qt===null)var r=!1;else{if(e=qt,qt=null,Lo=0,X&6)throw Error(_(331));var l=X;for(X|=4,F=e.current;F!==null;){var o=F,i=o.child;if(F.flags&16){var a=o.deletions;if(a!==null){for(var u=0;ume()-Du?kn(e,0):Ou|=n),Qe(e,t)}function rp(e,t){t===0&&(e.mode&1?(t=Ml,Ml<<=1,!(Ml&130023424)&&(Ml=4194304)):t=1);var n=Ae();e=jt(e,t),e!==null&&(vl(e,t,n),Qe(e,n))}function _v(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rp(e,n)}function Tv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),rp(e,n)}var lp;lp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,mv(e,t,n);He=!!(e.flags&131072)}else He=!1,ae&&t.flags&1048576&&ad(t,Eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;to(e,t),e=t.pendingProps;var l=lr(t,je.current);tr(t,n),l=Ru(null,t,r,e,l,n);var o=Pu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(o=!0,wo(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Su(t),l.updater=Vo,t.stateNode=l,l._reactInternals=t,xa(t,r,e,n),t=Ra(null,t,r,!0,o,n)):(t.tag=0,ae&&o&&pu(t),ze(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(to(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Lv(r),e=ft(r,e),l){case 0:t=Ca(null,t,r,e,n);break e;case 1:t=lc(null,t,r,e,n);break e;case 11:t=nc(null,t,r,e,n);break e;case 14:t=rc(null,t,r,ft(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ft(r,l),Ca(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ft(r,l),lc(e,t,r,l,n);case 3:e:{if($d(t),e===null)throw Error(_(387));r=t.pendingProps,o=t.memoizedState,l=o.element,fd(e,t),Co(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=ur(Error(_(423)),t),t=oc(e,t,r,n,l);break e}else if(r!==l){l=ur(Error(_(424)),t),t=oc(e,t,r,n,l);break e}else for(Xe=tn(t.stateNode.containerInfo.firstChild),Ge=t,ae=!0,ht=null,n=md(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(or(),r===l){t=Mt(e,t,n);break e}ze(e,t,r,n)}t=t.child}return t;case 5:return vd(t),e===null&&wa(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ha(r,l)?i=null:o!==null&&ha(r,o)&&(t.flags|=32),Bd(e,t),ze(e,t,i,n),t.child;case 6:return e===null&&wa(t),null;case 13:return Hd(e,t,n);case 4:return Eu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):ze(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ft(r,l),nc(e,t,r,l,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,ne(xo,r._currentValue),r._currentValue=i,o!==null)if(yt(o.value,i)){if(o.children===l.children&&!Ve.current){t=Mt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Lt(-1,n&-n),u.tag=2;var s=o.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}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Sa(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(_(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Sa(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ze(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,tr(t,n),l=at(l),r=r(l),t.flags|=1,ze(e,t,r,n),t.child;case 14:return r=t.type,l=ft(r,t.pendingProps),l=ft(r.type,l),rc(e,t,r,l,n);case 15:return Ud(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ft(r,l),to(e,t),t.tag=1,We(r)?(e=!0,wo(t)):e=!1,tr(t,n),pd(t,r,l),xa(t,r,l,n),Ra(null,t,r,!0,e,n);case 19:return Vd(e,t,n);case 22:return Id(e,t,n)}throw Error(_(156,t.tag))};function op(e,t){return Of(e,t)}function Nv(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 lt(e,t,n,r){return new Nv(e,t,n,r)}function zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lv(e){if(typeof e=="function")return zu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tu)return 11;if(e===nu)return 14}return 2}function on(e,t){var n=e.alternate;return n===null?(n=lt(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 lo(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")zu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Un:return Cn(n.children,l,o,t);case eu:i=8,l|=8;break;case Ki:return e=lt(12,n,t,l|2),e.elementType=Ki,e.lanes=o,e;case Ji:return e=lt(13,n,t,l),e.elementType=Ji,e.lanes=o,e;case Yi:return e=lt(19,n,t,l),e.elementType=Yi,e.lanes=o,e;case hf:return Jo(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case df:i=10;break e;case pf:i=9;break e;case tu:i=11;break e;case nu:i=14;break e;case Kt:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=lt(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Cn(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function Jo(e,t,n,r){return e=lt(22,e,r,t),e.elementType=hf,e.lanes=n,e.stateNode={isHidden:!1},e}function Mi(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function zi(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ov(e,t,n,r,l){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=vi(0),this.expirationTimes=vi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Au(e,t,n,r,l,o,i,a,u){return e=new Ov(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Su(o),e}function Dv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sp)}catch(e){console.error(e)}}sp(),af.exports=Ze;var $u=af.exports;const Av=Ka($u),Uv=Yc({__proto__:null,default:Av},[$u]);var yc=$u;Wi.createRoot=yc.createRoot,Wi.hydrateRoot=yc.hydrateRoot;function cp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Iv}=Object.prototype,{getPrototypeOf:Hu}=Object,Zo=(e=>t=>{const n=Iv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rt=e=>(e=e.toLowerCase(),t=>Zo(t)===e),bo=e=>t=>typeof t===e,{isArray:mr}=Array,dl=bo("undefined");function Bv(e){return e!==null&&!dl(e)&&e.constructor!==null&&!dl(e.constructor)&&it(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fp=Rt("ArrayBuffer");function $v(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fp(e.buffer),t}const Hv=bo("string"),it=bo("function"),dp=bo("number"),ei=e=>e!==null&&typeof e=="object",Vv=e=>e===!0||e===!1,oo=e=>{if(Zo(e)!=="object")return!1;const t=Hu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wv=Rt("Date"),Qv=Rt("File"),Kv=Rt("Blob"),Jv=Rt("FileList"),Yv=e=>ei(e)&&it(e.pipe),Xv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||it(e.append)&&((t=Zo(e))==="formdata"||t==="object"&&it(e.toString)&&e.toString()==="[object FormData]"))},Gv=Rt("URLSearchParams"),qv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),mr(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const hp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mp=e=>!dl(e)&&e!==hp;function Aa(){const{caseless:e}=mp(this)&&this||{},t={},n=(r,l)=>{const o=e&&pp(t,l)||l;oo(t[o])&&oo(r)?t[o]=Aa(t[o],r):oo(r)?t[o]=Aa({},r):mr(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(Sl(t,(l,o)=>{n&&it(l)?e[o]=cp(l,n):e[o]=l},{allOwnKeys:r}),e),bv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ey=(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)},ty=(e,t,n,r)=>{let l,o,i;const a={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Hu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ny=(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},ry=e=>{if(!e)return null;if(mr(e))return e;let t=e.length;if(!dp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ly=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hu(Uint8Array)),oy=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},iy=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ay=Rt("HTMLFormElement"),uy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),gc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sy=Rt("RegExp"),vp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sl(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},cy=e=>{vp(e,(t,n)=>{if(it(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(it(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+"'")})}})},fy=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return mr(e)?r(e):r(String(e).split(t)),n},dy=()=>{},py=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ai="abcdefghijklmnopqrstuvwxyz",wc="0123456789",yp={DIGIT:wc,ALPHA:Ai,ALPHA_DIGIT:Ai+Ai.toUpperCase()+wc},hy=(e=16,t=yp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function my(e){return!!(e&&it(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vy=e=>{const t=new Array(10),n=(r,l)=>{if(ei(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=mr(r)?[]:{};return Sl(r,(i,a)=>{const u=n(i,l+1);!dl(u)&&(o[a]=u)}),t[l]=void 0,o}}return r};return n(e,0)},yy=Rt("AsyncFunction"),gy=e=>e&&(ei(e)||it(e))&&it(e.then)&&it(e.catch),C={isArray:mr,isArrayBuffer:fp,isBuffer:Bv,isFormData:Xv,isArrayBufferView:$v,isString:Hv,isNumber:dp,isBoolean:Vv,isObject:ei,isPlainObject:oo,isUndefined:dl,isDate:Wv,isFile:Qv,isBlob:Kv,isRegExp:sy,isFunction:it,isStream:Yv,isURLSearchParams:Gv,isTypedArray:ly,isFileList:Jv,forEach:Sl,merge:Aa,extend:Zv,trim:qv,stripBOM:bv,inherits:ey,toFlatObject:ty,kindOf:Zo,kindOfTest:Rt,endsWith:ny,toArray:ry,forEachEntry:oy,matchAll:iy,isHTMLForm:ay,hasOwnProperty:gc,hasOwnProp:gc,reduceDescriptors:vp,freezeMethods:cy,toObjectSet:fy,toCamelCase:uy,noop:dy,toFiniteNumber:py,findKey:pp,global:hp,isContextDefined:mp,ALPHABET:yp,generateString:hy,isSpecCompliantForm:my,toJSONObject:vy,isAsyncFn:yy,isThenable:gy};function Y(e,t,n,r,l){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),l&&(this.response=l)}C.inherits(Y,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:C.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gp=Y.prototype,wp={};["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=>{wp[e]={value:e}});Object.defineProperties(Y,wp);Object.defineProperty(gp,"isAxiosError",{value:!0});Y.from=(e,t,n,r,l,o)=>{const i=Object.create(gp);return C.toFlatObject(e,i,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),Y.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const wy=null;function Ua(e){return C.isPlainObject(e)||C.isArray(e)}function Sp(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function Sc(e,t,n){return e?e.concat(t).map(function(l,o){return l=Sp(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function Sy(e){return C.isArray(e)&&!e.some(Ua)}const Ey=C.toFlatObject(C,{},null,function(t){return/^is[A-Z]/.test(t)});function ti(e,t,n){if(!C.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,x){return!C.isUndefined(x[y])});const r=n.metaTokens,l=n.visitor||c,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(t);if(!C.isFunction(l))throw new TypeError("visitor must be a function");function s(w){if(w===null)return"";if(C.isDate(w))return w.toISOString();if(!u&&C.isBlob(w))throw new Y("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(w)||C.isTypedArray(w)?u&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function c(w,y,x){let p=w;if(w&&!x&&typeof w=="object"){if(C.endsWith(y,"{}"))y=r?y:y.slice(0,-2),w=JSON.stringify(w);else if(C.isArray(w)&&Sy(w)||(C.isFileList(w)||C.endsWith(y,"[]"))&&(p=C.toArray(w)))return y=Sp(y),p.forEach(function(m,R){!(C.isUndefined(m)||m===null)&&t.append(i===!0?Sc([y],R,o):i===null?y:y+"[]",s(m))}),!1}return Ua(w)?!0:(t.append(Sc(x,y,o),s(w)),!1)}const f=[],h=Object.assign(Ey,{defaultVisitor:c,convertValue:s,isVisitable:Ua});function E(w,y){if(!C.isUndefined(w)){if(f.indexOf(w)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(w),C.forEach(w,function(p,d){(!(C.isUndefined(p)||p===null)&&l.call(t,p,C.isString(d)?d.trim():d,y,h))===!0&&E(p,y?y.concat(d):[d])}),f.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Ec(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vu(e,t){this._pairs=[],e&&ti(e,this,t)}const Ep=Vu.prototype;Ep.append=function(t,n){this._pairs.push([t,n])};Ep.toString=function(t){const n=t?function(r){return t.call(this,r,Ec)}:Ec;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function xy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xp(e,t,n){if(!t)return e;const r=n&&n.encode||xy,l=n&&n.serialize;let o;if(l?o=l(t,n):o=C.isURLSearchParams(t)?t.toString():new Vu(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class xc{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){C.forEach(this.handlers,function(r){r!==null&&t(r)})}}const kp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ky=typeof URLSearchParams<"u"?URLSearchParams:Vu,Cy=typeof FormData<"u"?FormData:null,Ry=typeof Blob<"u"?Blob:null,Py={isBrowser:!0,classes:{URLSearchParams:ky,FormData:Cy,Blob:Ry},protocols:["http","https","file","blob","url","data"]},Cp=typeof window<"u"&&typeof document<"u",_y=(e=>Cp&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ty=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ny=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cp,hasStandardBrowserEnv:_y,hasStandardBrowserWebWorkerEnv:Ty},Symbol.toStringTag,{value:"Module"})),xt={...Ny,...Py};function Ly(e,t){return ti(e,new xt.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return xt.isNode&&C.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Oy(e){return C.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Dy(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&C.isArray(l)?l.length:i,u?(C.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!a):((!l[i]||!C.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&C.isArray(l[i])&&(l[i]=Dy(l[i])),!a)}if(C.isFormData(e)&&C.isFunction(e.entries)){const n={};return C.forEachEntry(e,(r,l)=>{t(Oy(r),l,n,0)}),n}return null}function Fy(e,t,n){if(C.isString(e))try{return(t||JSON.parse)(e),C.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wu={transitional:kp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=C.isObject(t);if(o&&C.isHTMLForm(t)&&(t=new FormData(t)),C.isFormData(t))return l?JSON.stringify(Rp(t)):t;if(C.isArrayBuffer(t)||C.isBuffer(t)||C.isStream(t)||C.isFile(t)||C.isBlob(t))return t;if(C.isArrayBufferView(t))return t.buffer;if(C.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ly(t,this.formSerializer).toString();if((a=C.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ti(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),Fy(t)):t}],transformResponse:[function(t){const n=this.transitional||Wu.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&C.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?Y.from(a,Y.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:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],e=>{Wu.headers[e]={}});const Qu=Wu,jy=C.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"]),My=e=>{const t={};let n,r,l;return e&&e.split(` -`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&jy[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},kc=Symbol("internals");function Nr(e){return e&&String(e).trim().toLowerCase()}function io(e){return e===!1||e==null?e:C.isArray(e)?e.map(io):String(e)}function zy(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 Ay=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ui(e,t,n,r,l){if(C.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!C.isString(t)){if(C.isString(r))return t.indexOf(r)!==-1;if(C.isRegExp(r))return r.test(t)}}function Uy(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Iy(e,t){const n=C.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class ni{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(a,u,s){const c=Nr(u);if(!c)throw new Error("header name must be a non-empty string");const f=C.findKey(l,c);(!f||l[f]===void 0||s===!0||s===void 0&&l[f]!==!1)&&(l[f||u]=io(a))}const i=(a,u)=>C.forEach(a,(s,c)=>o(s,c,u));return C.isPlainObject(t)||t instanceof this.constructor?i(t,n):C.isString(t)&&(t=t.trim())&&!Ay(t)?i(My(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Nr(t),t){const r=C.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return zy(l);if(C.isFunction(n))return n.call(this,l,r);if(C.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Nr(t),t){const r=C.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ui(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=Nr(i),i){const a=C.findKey(r,i);a&&(!n||Ui(r,r[a],a,n))&&(delete r[a],l=!0)}}return C.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||Ui(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return C.forEach(this,(l,o)=>{const i=C.findKey(r,o);if(i){n[i]=io(l),delete n[o];return}const a=t?Uy(o):String(o).trim();a!==o&&delete n[o],n[a]=io(l),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return C.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&C.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(l=>r.set(l)),r}static accessor(t){const r=(this[kc]=this[kc]={accessors:{}}).accessors,l=this.prototype;function o(i){const a=Nr(i);r[a]||(Iy(l,i),r[a]=!0)}return C.isArray(t)?t.forEach(o):o(t),this}}ni.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(ni.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});C.freezeMethods(ni);const Ot=ni;function Ii(e,t){const n=this||Qu,r=t||n,l=Ot.from(r.headers);let o=r.data;return C.forEach(e,function(a){o=a.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function Pp(e){return!!(e&&e.__CANCEL__)}function El(e,t,n){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,n),this.name="CanceledError"}C.inherits(El,Y,{__CANCEL__:!0});function By(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $y=xt.hasStandardBrowserEnv?{write(e,t,n,r,l,o){const i=[e+"="+encodeURIComponent(t)];C.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),C.isString(r)&&i.push("path="+r),C.isString(l)&&i.push("domain="+l),o===!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 Hy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vy(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _p(e,t){return e&&!Hy(t)?Vy(e,t):t}const Wy=xt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;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=l(window.location.href),function(i){const a=C.isString(i)?l(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Qy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ky(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),c=r[o];i||(i=s),n[l]=u,r[l]=s;let f=o,h=0;for(;f!==l;)h+=n[f++],f=f%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),s-i{const o=l.loaded,i=l.lengthComputable?l.total:void 0,a=o-n,u=r(a),s=o<=i;n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:u||void 0,estimated:u&&i&&s?(i-o)/u:void 0,event:l};c[t?"download":"upload"]=!0,e(c)}}const Jy=typeof XMLHttpRequest<"u",Yy=Jy&&function(e){return new Promise(function(n,r){let l=e.data;const o=Ot.from(e.headers).normalize();let{responseType:i,withXSRFToken:a}=e,u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let c;if(C.isFormData(l)){if(xt.hasStandardBrowserEnv||xt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[y,...x]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([y||"multipart/form-data",...x].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+x))}const h=_p(e.baseURL,e.url);f.open(e.method.toUpperCase(),xp(h,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function E(){if(!f)return;const y=Ot.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:e,request:f};By(function(m){n(m),s()},function(m){r(m),s()},p),f=null}if("onloadend"in f?f.onloadend=E:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(E)},f.onabort=function(){f&&(r(new Y("Request aborted",Y.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new Y("Network Error",Y.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||kp;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),r(new Y(x,p.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,f)),f=null},xt.hasStandardBrowserEnv&&(a&&C.isFunction(a)&&(a=a(e)),a||a!==!1&&Wy(h))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&$y.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}l===void 0&&o.setContentType(null),"setRequestHeader"in f&&C.forEach(o.toJSON(),function(x,p){f.setRequestHeader(p,x)}),C.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),i&&i!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Cc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Cc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{f&&(r(!y||y.type?new El(null,e,f):y),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const w=Qy(h);if(w&&xt.protocols.indexOf(w)===-1){r(new Y("Unsupported protocol "+w+":",Y.ERR_BAD_REQUEST,e));return}f.send(l||null)})},Ia={http:wy,xhr:Yy};C.forEach(Ia,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rc=e=>`- ${e}`,Xy=e=>C.isFunction(e)||e===null||e===!1,Tp={getAdapter:e=>{e=C.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Fi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ka(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var py=typeof WeakMap=="function"?WeakMap:Map;function Md(e,t,n){n=Lt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){No||(No=!0,Fa=r),ka(e,t)},n}function Ad(e,t,n){n=Lt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){ka(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ka(e,t),typeof r!="function"&&(rn===null?rn=new Set([this]):rn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function bs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new py;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=_y.bind(null,e,t,n),t.then(e,e))}function ec(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function tc(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Lt(-1,1),t.tag=2,nn(n,t,1))),n.lanes|=1),e)}var hy=Mt.ReactCurrentOwner,He=!1;function Me(e,t,n,r){t.child=e===null?md(t,null,n,r):ar(t,e.child,n,r)}function nc(e,t,n,r,l){n=n.render;var o=t.ref;return nr(t,l),r=Ru(e,t,n,r,o,l),n=Pu(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,zt(e,t,l)):(ae&&n&&pu(t),t.flags|=1,Me(e,t,r,l),t.child)}function rc(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Mu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ud(e,t,o,r,l)):(e=lo(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:nl,n(i,r)&&e.ref===t.ref)return zt(e,t,l)}return t.flags|=1,e=on(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ud(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(nl(o,r)&&e.ref===t.ref)if(He=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,zt(e,t,l)}return Ca(e,t,n,r,l)}function Id(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(Xn,Ye),Ye|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(Xn,Ye),Ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ne(Xn,Ye),Ye|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ne(Xn,Ye),Ye|=r;return Me(e,t,l,n),t.child}function Bd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ca(e,t,n,r,l){var o=We(n)?Rn:je.current;return o=or(t,o),nr(t,l),n=Ru(e,t,n,r,o,l),r=Pu(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,zt(e,t,l)):(ae&&r&&pu(t),t.flags|=1,Me(e,t,n,l),t.child)}function lc(e,t,n,r,l){if(We(n)){var o=!0;wo(t)}else o=!1;if(nr(t,l),t.stateNode===null)to(e,t),pd(t,n,r),xa(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var u=i.context,s=n.contextType;typeof s=="object"&&s!==null?s=at(s):(s=We(n)?Rn:je.current,s=or(t,s));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||u!==s)&&Xs(t,i,r,s),Jt=!1;var h=t.memoizedState;i.state=h,Co(t,r,i,l),u=t.memoizedState,a!==r||h!==u||Ve.current||Jt?(typeof c=="function"&&(Ea(t,n,c,r),u=t.memoizedState),(a=Jt||Ys(t,n,a,r,h,u,s))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,fd(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:ft(t.type,a),i.props=s,f=t.pendingProps,h=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=at(u):(u=We(n)?Rn:je.current,u=or(t,u));var E=n.getDerivedStateFromProps;(c=typeof E=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||h!==u)&&Xs(t,i,r,u),Jt=!1,h=t.memoizedState,i.state=h,Co(t,r,i,l);var w=t.memoizedState;a!==f||h!==w||Ve.current||Jt?(typeof E=="function"&&(Ea(t,n,E,r),w=t.memoizedState),(s=Jt||Ys(t,n,s,r,h,w,u)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=u,r=s):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Ra(e,t,n,r,o,l)}function Ra(e,t,n,r,l,o){Bd(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Vs(t,n,!1),zt(e,t,o);r=t.stateNode,hy.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ar(t,e.child,null,o),t.child=ar(t,null,a,o)):Me(e,t,a,o),t.memoizedState=r.state,l&&Vs(t,n,!0),t.child}function $d(e){var t=e.stateNode;t.pendingContext?Hs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hs(e,t.context,!1),Eu(e,t.containerInfo)}function oc(e,t,n,r,l){return ir(),mu(l),t.flags|=256,Me(e,t,n,r),t.child}var Pa={dehydrated:null,treeContext:null,retryLane:0};function _a(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hd(e,t,n){var r=t.pendingProps,l=ue.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ne(ue,l&1),e===null)return wa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Jo(i,r,0,null),e=Cn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=_a(n),t.memoizedState=Pa,e):Nu(t,i));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return my(e,t,i,r,a,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=on(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?o=on(a,o):(o=Cn(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?_a(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Pa,r}return o=e.child,e=o.sibling,r=on(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Nu(e,t){return t=Jo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vl(e,t,n,r){return r!==null&&mu(r),ar(t,e.child,null,n),e=Nu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function my(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Fi(Error(_(422))),Vl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Jo({mode:"visible",children:r.children},l,0,null),o=Cn(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ar(t,e.child,null,i),t.child.memoizedState=_a(i),t.memoizedState=Pa,o);if(!(t.mode&1))return Vl(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(_(419)),r=Fi(o,r,void 0),Vl(e,t,i,r)}if(a=(i&e.childLanes)!==0,He||a){if(r=Re,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,jt(e,l),yt(r,e,l,-1))}return zu(),r=Fi(Error(_(421))),Vl(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Ty.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Xe=tn(l.nextSibling),Ge=t,ae=!0,ht=null,e!==null&&(nt[rt++]=Tt,nt[rt++]=Nt,nt[rt++]=Pn,Tt=e.id,Nt=e.overflow,Pn=t),t=Nu(t,r.children),t.flags|=4096,t)}function ic(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sa(e.return,t,n)}function ji(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Vd(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(Me(e,t,r.children,n),r=ue.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ic(e,n,t);else if(e.tag===19)ic(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ne(ue,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ro(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ji(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ro(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ji(t,!0,n,null,o);break;case"together":ji(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function to(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=on(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=on(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yy(e,t,n){switch(t.tag){case 3:$d(t),ir();break;case 5:yd(t);break;case 1:We(t.type)&&wo(t);break;case 4:Eu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;ne(xo,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(ue,ue.current&1),t.flags|=128,null):n&t.child.childLanes?Hd(e,t,n):(ne(ue,ue.current&1),e=zt(e,t,n),e!==null?e.sibling:null);ne(ue,ue.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vd(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ne(ue,ue.current),r)break;return null;case 22:case 23:return t.lanes=0,Id(e,t,n)}return zt(e,t,n)}var Wd,Ta,Qd,Kd;Wd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ta=function(){};Qd=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Sn(Ct.current);var o=null;switch(n){case"input":l=Gi(e,l),r=Gi(e,r),o=[];break;case"select":l=ce({},l,{value:void 0}),r=ce({},r,{value:void 0}),o=[];break;case"textarea":l=bi(e,l),r=bi(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vo)}ta(n,r);var i;n=null;for(s in l)if(!r.hasOwnProperty(s)&&l.hasOwnProperty(s)&&l[s]!=null)if(s==="style"){var a=l[s];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Xr.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in r){var u=r[s];if(a=l!=null?l[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(i in a)!a.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&a[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Xr.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&le("scroll",e),o||a===u||(o=[])):(o=o||[]).push(s,u))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};Kd=function(e,t,n,r){n!==r&&(t.flags|=4)};function _r(e,t){if(!ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vy(e,t,n){var r=t.pendingProps;switch(hu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return We(t.type)&&go(),De(t),null;case 3:return r=t.stateNode,ur(),oe(Ve),oe(je),ku(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($l(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ht!==null&&(Ma(ht),ht=null))),Ta(e,t),De(t),null;case 5:xu(t);var l=Sn(al.current);if(n=t.type,e!==null&&t.stateNode!=null)Qd(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return De(t),null}if(e=Sn(Ct.current),$l(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Et]=t,r[ol]=o,e=(t.mode&1)!==0,n){case"dialog":le("cancel",r),le("close",r);break;case"iframe":case"object":case"embed":le("load",r);break;case"video":case"audio":for(l=0;l<\/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[Et]=t,e[ol]=r,Wd(e,t,!1,!1),t.stateNode=e;e:{switch(i=na(n,r),n){case"dialog":le("cancel",e),le("close",e),l=r;break;case"iframe":case"object":case"embed":le("load",e),l=r;break;case"video":case"audio":for(l=0;lcr&&(t.flags|=128,r=!0,_r(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ro(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_r(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!ae)return De(t),null}else 2*ye()-o.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,_r(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ye(),t.sibling=null,n=ue.current,ne(ue,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return ju(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function gy(e,t){switch(hu(t),t.tag){case 1:return We(t.type)&&go(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ur(),oe(Ve),oe(je),ku(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xu(t),null;case 13:if(oe(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ue),null;case 4:return ur(),null;case 10:return gu(t.type._context),null;case 22:case 23:return ju(),null;case 24:return null;default:return null}}var Wl=!1,Fe=!1,wy=typeof WeakSet=="function"?WeakSet:Set,j=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function Na(e,t,n){try{n()}catch(r){pe(e,t,r)}}var ac=!1;function Sy(e,t){if(da=ho,e=Gf(),du(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,s=0,c=0,f=e,h=null;t:for(;;){for(var E;f!==n||l!==0&&f.nodeType!==3||(a=i+l),f!==o||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(E=f.firstChild)!==null;)h=f,f=E;for(;;){if(f===e)break t;if(h===n&&++s===l&&(a=i),h===o&&++c===r&&(u=i),(E=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=E}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(pa={focusedElem:e,selectionRange:n},ho=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,x=w.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:ft(t.type,v),x);p.__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(_(163))}}catch(R){pe(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return w=ac,ac=!1,w}function Qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Na(t,n,o)}l=l.next}while(l!==r)}}function Qo(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 La(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 Jd(e){var t=e.alternate;t!==null&&(e.alternate=null,Jd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Et],delete t[ol],delete t[ya],delete t[ny],delete t[ry])),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 Yd(e){return e.tag===5||e.tag===3||e.tag===4}function uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yd(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 Oa(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=vo));else if(r!==4&&(e=e.child,e!==null))for(Oa(e,t,n),e=e.sibling;e!==null;)Oa(e,t,n),e=e.sibling}function Da(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(Da(e,t,n),e=e.sibling;e!==null;)Da(e,t,n),e=e.sibling}var Te=null,dt=!1;function Vt(e,t,n){for(n=n.child;n!==null;)Xd(e,t,n),n=n.sibling}function Xd(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(Ao,n)}catch{}switch(n.tag){case 5:Fe||Yn(n,t);case 6:var r=Te,l=dt;Te=null,Vt(e,t,n),Te=r,dt=l,Te!==null&&(dt?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(dt?(e=Te,n=n.stateNode,e.nodeType===8?_i(e.parentNode,n):e.nodeType===1&&_i(e,n),el(e)):_i(Te,n.stateNode));break;case 4:r=Te,l=dt,Te=n.stateNode.containerInfo,dt=!0,Vt(e,t,n),Te=r,dt=l;break;case 0:case 11:case 14:case 15:if(!Fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Na(n,t,i),l=l.next}while(l!==r)}Vt(e,t,n);break;case 1:if(!Fe&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pe(n,t,a)}Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:n.mode&1?(Fe=(r=Fe)||n.memoizedState!==null,Vt(e,t,n),Fe=r):Vt(e,t,n);break;default:Vt(e,t,n)}}function sc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wy),t.forEach(function(r){var l=Ny.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xy(r/1960))-r,10e?16:e,qt===null)var r=!1;else{if(e=qt,qt=null,Lo=0,X&6)throw Error(_(331));var l=X;for(X|=4,j=e.current;j!==null;){var o=j,i=o.child;if(j.flags&16){var a=o.deletions;if(a!==null){for(var u=0;uye()-Du?kn(e,0):Ou|=n),Qe(e,t)}function rp(e,t){t===0&&(e.mode&1?(t=zl,zl<<=1,!(zl&130023424)&&(zl=4194304)):t=1);var n=Ae();e=jt(e,t),e!==null&&(yl(e,t,n),Qe(e,n))}function Ty(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rp(e,n)}function Ny(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),rp(e,n)}var lp;lp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,yy(e,t,n);He=!!(e.flags&131072)}else He=!1,ae&&t.flags&1048576&&ad(t,Eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;to(e,t),e=t.pendingProps;var l=or(t,je.current);nr(t,n),l=Ru(null,t,r,e,l,n);var o=Pu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(o=!0,wo(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Su(t),l.updater=Vo,t.stateNode=l,l._reactInternals=t,xa(t,r,e,n),t=Ra(null,t,r,!0,o,n)):(t.tag=0,ae&&o&&pu(t),Me(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(to(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Oy(r),e=ft(r,e),l){case 0:t=Ca(null,t,r,e,n);break e;case 1:t=lc(null,t,r,e,n);break e;case 11:t=nc(null,t,r,e,n);break e;case 14:t=rc(null,t,r,ft(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ft(r,l),Ca(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ft(r,l),lc(e,t,r,l,n);case 3:e:{if($d(t),e===null)throw Error(_(387));r=t.pendingProps,o=t.memoizedState,l=o.element,fd(e,t),Co(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=sr(Error(_(423)),t),t=oc(e,t,r,n,l);break e}else if(r!==l){l=sr(Error(_(424)),t),t=oc(e,t,r,n,l);break e}else for(Xe=tn(t.stateNode.containerInfo.firstChild),Ge=t,ae=!0,ht=null,n=md(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===l){t=zt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return yd(t),e===null&&wa(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ha(r,l)?i=null:o!==null&&ha(r,o)&&(t.flags|=32),Bd(e,t),Me(e,t,i,n),t.child;case 6:return e===null&&wa(t),null;case 13:return Hd(e,t,n);case 4:return Eu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ar(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ft(r,l),nc(e,t,r,l,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,ne(xo,r._currentValue),r._currentValue=i,o!==null)if(vt(o.value,i)){if(o.children===l.children&&!Ve.current){t=zt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Lt(-1,n&-n),u.tag=2;var s=o.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}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Sa(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(_(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Sa(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Me(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,nr(t,n),l=at(l),r=r(l),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,l=ft(r,t.pendingProps),l=ft(r.type,l),rc(e,t,r,l,n);case 15:return Ud(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ft(r,l),to(e,t),t.tag=1,We(r)?(e=!0,wo(t)):e=!1,nr(t,n),pd(t,r,l),xa(t,r,l,n),Ra(null,t,r,!0,e,n);case 19:return Vd(e,t,n);case 22:return Id(e,t,n)}throw Error(_(156,t.tag))};function op(e,t){return Of(e,t)}function Ly(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 lt(e,t,n,r){return new Ly(e,t,n,r)}function Mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oy(e){if(typeof e=="function")return Mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tu)return 11;if(e===nu)return 14}return 2}function on(e,t){var n=e.alternate;return n===null?(n=lt(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 lo(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Mu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case In:return Cn(n.children,l,o,t);case eu:i=8,l|=8;break;case Ki:return e=lt(12,n,t,l|2),e.elementType=Ki,e.lanes=o,e;case Ji:return e=lt(13,n,t,l),e.elementType=Ji,e.lanes=o,e;case Yi:return e=lt(19,n,t,l),e.elementType=Yi,e.lanes=o,e;case hf:return Jo(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case df:i=10;break e;case pf:i=9;break e;case tu:i=11;break e;case nu:i=14;break e;case Kt:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=lt(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Cn(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function Jo(e,t,n,r){return e=lt(22,e,r,t),e.elementType=hf,e.lanes=n,e.stateNode={isHidden:!1},e}function zi(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function Mi(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dy(e,t,n,r,l){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=yi(0),this.expirationTimes=yi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Au(e,t,n,r,l,o,i,a,u){return e=new Dy(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Su(o),e}function Fy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sp)}catch(e){console.error(e)}}sp(),af.exports=Ze;var $u=af.exports;const Uy=Ka($u),Iy=Yc({__proto__:null,default:Uy},[$u]);var vc=$u;Wi.createRoot=vc.createRoot,Wi.hydrateRoot=vc.hydrateRoot;function cp(e,t){return function(){return e.apply(t,arguments)}}const{toString:By}=Object.prototype,{getPrototypeOf:Hu}=Object,Zo=(e=>t=>{const n=By.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rt=e=>(e=e.toLowerCase(),t=>Zo(t)===e),bo=e=>t=>typeof t===e,{isArray:yr}=Array,dl=bo("undefined");function $y(e){return e!==null&&!dl(e)&&e.constructor!==null&&!dl(e.constructor)&&it(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fp=Rt("ArrayBuffer");function Hy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fp(e.buffer),t}const Vy=bo("string"),it=bo("function"),dp=bo("number"),ei=e=>e!==null&&typeof e=="object",Wy=e=>e===!0||e===!1,oo=e=>{if(Zo(e)!=="object")return!1;const t=Hu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Qy=Rt("Date"),Ky=Rt("File"),Jy=Rt("Blob"),Yy=Rt("FileList"),Xy=e=>ei(e)&&it(e.pipe),Gy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||it(e.append)&&((t=Zo(e))==="formdata"||t==="object"&&it(e.toString)&&e.toString()==="[object FormData]"))},qy=Rt("URLSearchParams"),Zy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),yr(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const hp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mp=e=>!dl(e)&&e!==hp;function Aa(){const{caseless:e}=mp(this)&&this||{},t={},n=(r,l)=>{const o=e&&pp(t,l)||l;oo(t[o])&&oo(r)?t[o]=Aa(t[o],r):oo(r)?t[o]=Aa({},r):yr(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(Sl(t,(l,o)=>{n&&it(l)?e[o]=cp(l,n):e[o]=l},{allOwnKeys:r}),e),ev=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tv=(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)},nv=(e,t,n,r)=>{let l,o,i;const a={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Hu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rv=(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},lv=e=>{if(!e)return null;if(yr(e))return e;let t=e.length;if(!dp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ov=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hu(Uint8Array)),iv=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},av=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uv=Rt("HTMLFormElement"),sv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),gc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cv=Rt("RegExp"),yp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sl(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},fv=e=>{yp(e,(t,n)=>{if(it(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(it(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+"'")})}})},dv=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return yr(e)?r(e):r(String(e).split(t)),n},pv=()=>{},hv=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ai="abcdefghijklmnopqrstuvwxyz",wc="0123456789",vp={DIGIT:wc,ALPHA:Ai,ALPHA_DIGIT:Ai+Ai.toUpperCase()+wc},mv=(e=16,t=vp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function yv(e){return!!(e&&it(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vv=e=>{const t=new Array(10),n=(r,l)=>{if(ei(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=yr(r)?[]:{};return Sl(r,(i,a)=>{const u=n(i,l+1);!dl(u)&&(o[a]=u)}),t[l]=void 0,o}}return r};return n(e,0)},gv=Rt("AsyncFunction"),wv=e=>e&&(ei(e)||it(e))&&it(e.then)&&it(e.catch),C={isArray:yr,isArrayBuffer:fp,isBuffer:$y,isFormData:Gy,isArrayBufferView:Hy,isString:Vy,isNumber:dp,isBoolean:Wy,isObject:ei,isPlainObject:oo,isUndefined:dl,isDate:Qy,isFile:Ky,isBlob:Jy,isRegExp:cv,isFunction:it,isStream:Xy,isURLSearchParams:qy,isTypedArray:ov,isFileList:Yy,forEach:Sl,merge:Aa,extend:by,trim:Zy,stripBOM:ev,inherits:tv,toFlatObject:nv,kindOf:Zo,kindOfTest:Rt,endsWith:rv,toArray:lv,forEachEntry:iv,matchAll:av,isHTMLForm:uv,hasOwnProperty:gc,hasOwnProp:gc,reduceDescriptors:yp,freezeMethods:fv,toObjectSet:dv,toCamelCase:sv,noop:pv,toFiniteNumber:hv,findKey:pp,global:hp,isContextDefined:mp,ALPHABET:vp,generateString:mv,isSpecCompliantForm:yv,toJSONObject:vv,isAsyncFn:gv,isThenable:wv};function Y(e,t,n,r,l){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),l&&(this.response=l)}C.inherits(Y,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:C.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gp=Y.prototype,wp={};["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=>{wp[e]={value:e}});Object.defineProperties(Y,wp);Object.defineProperty(gp,"isAxiosError",{value:!0});Y.from=(e,t,n,r,l,o)=>{const i=Object.create(gp);return C.toFlatObject(e,i,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),Y.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Sv=null;function Ua(e){return C.isPlainObject(e)||C.isArray(e)}function Sp(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function Sc(e,t,n){return e?e.concat(t).map(function(l,o){return l=Sp(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function Ev(e){return C.isArray(e)&&!e.some(Ua)}const xv=C.toFlatObject(C,{},null,function(t){return/^is[A-Z]/.test(t)});function ti(e,t,n){if(!C.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,x){return!C.isUndefined(x[v])});const r=n.metaTokens,l=n.visitor||c,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(t);if(!C.isFunction(l))throw new TypeError("visitor must be a function");function s(w){if(w===null)return"";if(C.isDate(w))return w.toISOString();if(!u&&C.isBlob(w))throw new Y("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(w)||C.isTypedArray(w)?u&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function c(w,v,x){let p=w;if(w&&!x&&typeof w=="object"){if(C.endsWith(v,"{}"))v=r?v:v.slice(0,-2),w=JSON.stringify(w);else if(C.isArray(w)&&Ev(w)||(C.isFileList(w)||C.endsWith(v,"[]"))&&(p=C.toArray(w)))return v=Sp(v),p.forEach(function(m,R){!(C.isUndefined(m)||m===null)&&t.append(i===!0?Sc([v],R,o):i===null?v:v+"[]",s(m))}),!1}return Ua(w)?!0:(t.append(Sc(x,v,o),s(w)),!1)}const f=[],h=Object.assign(xv,{defaultVisitor:c,convertValue:s,isVisitable:Ua});function E(w,v){if(!C.isUndefined(w)){if(f.indexOf(w)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(w),C.forEach(w,function(p,d){(!(C.isUndefined(p)||p===null)&&l.call(t,p,C.isString(d)?d.trim():d,v,h))===!0&&E(p,v?v.concat(d):[d])}),f.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Ec(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vu(e,t){this._pairs=[],e&&ti(e,this,t)}const Ep=Vu.prototype;Ep.append=function(t,n){this._pairs.push([t,n])};Ep.toString=function(t){const n=t?function(r){return t.call(this,r,Ec)}:Ec;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function kv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xp(e,t,n){if(!t)return e;const r=n&&n.encode||kv,l=n&&n.serialize;let o;if(l?o=l(t,n):o=C.isURLSearchParams(t)?t.toString():new Vu(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class xc{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){C.forEach(this.handlers,function(r){r!==null&&t(r)})}}const kp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cv=typeof URLSearchParams<"u"?URLSearchParams:Vu,Rv=typeof FormData<"u"?FormData:null,Pv=typeof Blob<"u"?Blob:null,_v={isBrowser:!0,classes:{URLSearchParams:Cv,FormData:Rv,Blob:Pv},protocols:["http","https","file","blob","url","data"]},Cp=typeof window<"u"&&typeof document<"u",Tv=(e=>Cp&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Nv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lv=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cp,hasStandardBrowserEnv:Tv,hasStandardBrowserWebWorkerEnv:Nv},Symbol.toStringTag,{value:"Module"})),xt={...Lv,..._v};function Ov(e,t){return ti(e,new xt.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return xt.isNode&&C.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Dv(e){return C.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fv(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&C.isArray(l)?l.length:i,u?(C.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!a):((!l[i]||!C.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&C.isArray(l[i])&&(l[i]=Fv(l[i])),!a)}if(C.isFormData(e)&&C.isFunction(e.entries)){const n={};return C.forEachEntry(e,(r,l)=>{t(Dv(r),l,n,0)}),n}return null}function jv(e,t,n){if(C.isString(e))try{return(t||JSON.parse)(e),C.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wu={transitional:kp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=C.isObject(t);if(o&&C.isHTMLForm(t)&&(t=new FormData(t)),C.isFormData(t))return l?JSON.stringify(Rp(t)):t;if(C.isArrayBuffer(t)||C.isBuffer(t)||C.isStream(t)||C.isFile(t)||C.isBlob(t))return t;if(C.isArrayBufferView(t))return t.buffer;if(C.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ov(t,this.formSerializer).toString();if((a=C.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ti(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),jv(t)):t}],transformResponse:[function(t){const n=this.transitional||Wu.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&C.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?Y.from(a,Y.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:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],e=>{Wu.headers[e]={}});const Qu=Wu,zv=C.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"]),Mv=e=>{const t={};let n,r,l;return e&&e.split(` +`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&zv[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},kc=Symbol("internals");function Nr(e){return e&&String(e).trim().toLowerCase()}function io(e){return e===!1||e==null?e:C.isArray(e)?e.map(io):String(e)}function Av(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 Uv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ui(e,t,n,r,l){if(C.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!C.isString(t)){if(C.isString(r))return t.indexOf(r)!==-1;if(C.isRegExp(r))return r.test(t)}}function Iv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Bv(e,t){const n=C.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class ni{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(a,u,s){const c=Nr(u);if(!c)throw new Error("header name must be a non-empty string");const f=C.findKey(l,c);(!f||l[f]===void 0||s===!0||s===void 0&&l[f]!==!1)&&(l[f||u]=io(a))}const i=(a,u)=>C.forEach(a,(s,c)=>o(s,c,u));return C.isPlainObject(t)||t instanceof this.constructor?i(t,n):C.isString(t)&&(t=t.trim())&&!Uv(t)?i(Mv(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Nr(t),t){const r=C.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return Av(l);if(C.isFunction(n))return n.call(this,l,r);if(C.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Nr(t),t){const r=C.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ui(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=Nr(i),i){const a=C.findKey(r,i);a&&(!n||Ui(r,r[a],a,n))&&(delete r[a],l=!0)}}return C.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||Ui(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return C.forEach(this,(l,o)=>{const i=C.findKey(r,o);if(i){n[i]=io(l),delete n[o];return}const a=t?Iv(o):String(o).trim();a!==o&&delete n[o],n[a]=io(l),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return C.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&C.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(l=>r.set(l)),r}static accessor(t){const r=(this[kc]=this[kc]={accessors:{}}).accessors,l=this.prototype;function o(i){const a=Nr(i);r[a]||(Bv(l,i),r[a]=!0)}return C.isArray(t)?t.forEach(o):o(t),this}}ni.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(ni.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});C.freezeMethods(ni);const Ot=ni;function Ii(e,t){const n=this||Qu,r=t||n,l=Ot.from(r.headers);let o=r.data;return C.forEach(e,function(a){o=a.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function Pp(e){return!!(e&&e.__CANCEL__)}function El(e,t,n){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,n),this.name="CanceledError"}C.inherits(El,Y,{__CANCEL__:!0});function $v(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Hv=xt.hasStandardBrowserEnv?{write(e,t,n,r,l,o){const i=[e+"="+encodeURIComponent(t)];C.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),C.isString(r)&&i.push("path="+r),C.isString(l)&&i.push("domain="+l),o===!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 Vv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Wv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _p(e,t){return e&&!Vv(t)?Wv(e,t):t}const Qv=xt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;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=l(window.location.href),function(i){const a=C.isString(i)?l(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Kv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jv(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),c=r[o];i||(i=s),n[l]=u,r[l]=s;let f=o,h=0;for(;f!==l;)h+=n[f++],f=f%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),s-i{const o=l.loaded,i=l.lengthComputable?l.total:void 0,a=o-n,u=r(a),s=o<=i;n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:u||void 0,estimated:u&&i&&s?(i-o)/u:void 0,event:l};c[t?"download":"upload"]=!0,e(c)}}const Yv=typeof XMLHttpRequest<"u",Xv=Yv&&function(e){return new Promise(function(n,r){let l=e.data;const o=Ot.from(e.headers).normalize();let{responseType:i,withXSRFToken:a}=e,u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let c;if(C.isFormData(l)){if(xt.hasStandardBrowserEnv||xt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[v,...x]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([v||"multipart/form-data",...x].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(v+":"+x))}const h=_p(e.baseURL,e.url);f.open(e.method.toUpperCase(),xp(h,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function E(){if(!f)return;const v=Ot.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:v,config:e,request:f};$v(function(m){n(m),s()},function(m){r(m),s()},p),f=null}if("onloadend"in f?f.onloadend=E:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(E)},f.onabort=function(){f&&(r(new Y("Request aborted",Y.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new Y("Network Error",Y.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||kp;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),r(new Y(x,p.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,f)),f=null},xt.hasStandardBrowserEnv&&(a&&C.isFunction(a)&&(a=a(e)),a||a!==!1&&Qv(h))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&Hv.read(e.xsrfCookieName);v&&o.set(e.xsrfHeaderName,v)}l===void 0&&o.setContentType(null),"setRequestHeader"in f&&C.forEach(o.toJSON(),function(x,p){f.setRequestHeader(p,x)}),C.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),i&&i!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Cc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Cc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=v=>{f&&(r(!v||v.type?new El(null,e,f):v),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const w=Kv(h);if(w&&xt.protocols.indexOf(w)===-1){r(new Y("Unsupported protocol "+w+":",Y.ERR_BAD_REQUEST,e));return}f.send(l||null)})},Ia={http:Sv,xhr:Xv};C.forEach(Ia,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rc=e=>`- ${e}`,Gv=e=>C.isFunction(e)||e===null||e===!1,Tp={getAdapter:e=>{e=C.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(Rc).join(` -`):" "+Rc(o[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Ia};function Bi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new El(null,e)}function Pc(e){return Bi(e),e.headers=Ot.from(e.headers),e.data=Ii.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tp.getAdapter(e.adapter||Qu.adapter)(e).then(function(r){return Bi(e),r.data=Ii.call(e,e.transformResponse,r),r.headers=Ot.from(r.headers),r},function(r){return Pp(r)||(Bi(e),r&&r.response&&(r.response.data=Ii.call(e,e.transformResponse,r.response),r.response.headers=Ot.from(r.response.headers))),Promise.reject(r)})}const _c=e=>e instanceof Ot?{...e}:e;function cr(e,t){t=t||{};const n={};function r(s,c,f){return C.isPlainObject(s)&&C.isPlainObject(c)?C.merge.call({caseless:f},s,c):C.isPlainObject(c)?C.merge({},c):C.isArray(c)?c.slice():c}function l(s,c,f){if(C.isUndefined(c)){if(!C.isUndefined(s))return r(void 0,s,f)}else return r(s,c,f)}function o(s,c){if(!C.isUndefined(c))return r(void 0,c)}function i(s,c){if(C.isUndefined(c)){if(!C.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:o,method:o,data:o,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)=>l(_c(s),_c(c),!0)};return C.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||l,h=f(e[c],t[c],c);C.isUndefined(h)&&f!==a||(n[c]=h)}),n}const Np="1.6.8",Ku={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ku[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tc={};Ku.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Np+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new Y(l(i," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!Tc[i]&&(Tc[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};function Gy(e,t,n){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const a=e[o],u=a===void 0||i(a,o,e);if(u!==!0)throw new Y("option "+o+" must be "+u,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}}const Ba={assertOptions:Gy,validators:Ku},Wt=Ba.validators;class Fo{constructor(t){this.defaults=t,this.interceptors={request:new xc,response:new xc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cr(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&Ba.assertOptions(r,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),l!=null&&(C.isFunction(l)?n.paramsSerializer={serialize:l}:Ba.assertOptions(l,{encode:Wt.function,serialize:Wt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&C.merge(o.common,o[n.method]);o&&C.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w]}),n.headers=Ot.concat(i,o);const a=[];let u=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(u=u&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const s=[];this.interceptors.response.forEach(function(y){s.push(y.fulfilled,y.rejected)});let c,f=0,h;if(!u){const w=[Pc.bind(this),void 0];for(w.unshift.apply(w,a),w.push.apply(w,s),h=w.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new El(o,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 Ju(function(l){t=l}),cancel:t}}}const qy=Ju;function Zy(e){return function(n){return e.apply(null,n)}}function by(e){return C.isObject(e)&&e.isAxiosError===!0}const $a={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($a).forEach(([e,t])=>{$a[t]=e});const eg=$a;function Lp(e){const t=new ao(e),n=cp(ao.prototype.request,t);return C.extend(n,ao.prototype,t,{allOwnKeys:!0}),C.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Lp(cr(e,l))},n}const ve=Lp(Qu);ve.Axios=ao;ve.CanceledError=El;ve.CancelToken=qy;ve.isCancel=Pp;ve.VERSION=Np;ve.toFormData=ti;ve.AxiosError=Y;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=Zy;ve.isAxiosError=by;ve.mergeConfig=cr;ve.AxiosHeaders=Ot;ve.formToJSON=e=>Rp(C.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Tp.getAdapter;ve.HttpStatusCode=eg;ve.default=ve;var Op={exports:{}},tg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ng=tg,rg=ng;function Dp(){}function Fp(){}Fp.resetWarningCache=Dp;var lg=function(){function e(r,l,o,i,a,u){if(u!==rg){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Fp,resetWarningCache:Dp};return n.PropTypes=n,n};Op.exports=lg();var og=Op.exports;const ig=Ka(og),jp=T.createContext(),Mp=({children:e})=>{const[t,n]=T.useState(localStorage.getItem("token")),r=o=>{n(o)};T.useEffect(()=>{t?(ve.defaults.headers.common.Authorization="Bearer "+t,localStorage.setItem("token",t)):(delete ve.defaults.headers.common.Authorization,localStorage.removeItem("token"))},[t]);const l=T.useMemo(()=>({token:t,setToken:r}),[t]);return A.jsx(jp.Provider,{value:l,children:e})},ri=()=>T.useContext(jp);Mp.propTypes={children:ig.node.isRequired};/** +`):" "+Rc(o[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Ia};function Bi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new El(null,e)}function Pc(e){return Bi(e),e.headers=Ot.from(e.headers),e.data=Ii.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tp.getAdapter(e.adapter||Qu.adapter)(e).then(function(r){return Bi(e),r.data=Ii.call(e,e.transformResponse,r),r.headers=Ot.from(r.headers),r},function(r){return Pp(r)||(Bi(e),r&&r.response&&(r.response.data=Ii.call(e,e.transformResponse,r.response),r.response.headers=Ot.from(r.response.headers))),Promise.reject(r)})}const _c=e=>e instanceof Ot?{...e}:e;function fr(e,t){t=t||{};const n={};function r(s,c,f){return C.isPlainObject(s)&&C.isPlainObject(c)?C.merge.call({caseless:f},s,c):C.isPlainObject(c)?C.merge({},c):C.isArray(c)?c.slice():c}function l(s,c,f){if(C.isUndefined(c)){if(!C.isUndefined(s))return r(void 0,s,f)}else return r(s,c,f)}function o(s,c){if(!C.isUndefined(c))return r(void 0,c)}function i(s,c){if(C.isUndefined(c)){if(!C.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:o,method:o,data:o,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)=>l(_c(s),_c(c),!0)};return C.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||l,h=f(e[c],t[c],c);C.isUndefined(h)&&f!==a||(n[c]=h)}),n}const Np="1.6.8",Ku={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ku[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tc={};Ku.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Np+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new Y(l(i," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!Tc[i]&&(Tc[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};function qv(e,t,n){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const a=e[o],u=a===void 0||i(a,o,e);if(u!==!0)throw new Y("option "+o+" must be "+u,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}}const Ba={assertOptions:qv,validators:Ku},Wt=Ba.validators;class Fo{constructor(t){this.defaults=t,this.interceptors={request:new xc,response:new xc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fr(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&Ba.assertOptions(r,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),l!=null&&(C.isFunction(l)?n.paramsSerializer={serialize:l}:Ba.assertOptions(l,{encode:Wt.function,serialize:Wt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&C.merge(o.common,o[n.method]);o&&C.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w]}),n.headers=Ot.concat(i,o);const a=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let c,f=0,h;if(!u){const w=[Pc.bind(this),void 0];for(w.unshift.apply(w,a),w.push.apply(w,s),h=w.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new El(o,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 Ju(function(l){t=l}),cancel:t}}}const Zv=Ju;function bv(e){return function(n){return e.apply(null,n)}}function eg(e){return C.isObject(e)&&e.isAxiosError===!0}const $a={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($a).forEach(([e,t])=>{$a[t]=e});const tg=$a;function Lp(e){const t=new ao(e),n=cp(ao.prototype.request,t);return C.extend(n,ao.prototype,t,{allOwnKeys:!0}),C.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Lp(fr(e,l))},n}const fe=Lp(Qu);fe.Axios=ao;fe.CanceledError=El;fe.CancelToken=Zv;fe.isCancel=Pp;fe.VERSION=Np;fe.toFormData=ti;fe.AxiosError=Y;fe.Cancel=fe.CanceledError;fe.all=function(t){return Promise.all(t)};fe.spread=bv;fe.isAxiosError=eg;fe.mergeConfig=fr;fe.AxiosHeaders=Ot;fe.formToJSON=e=>Rp(C.isHTMLForm(e)?new FormData(e):e);fe.getAdapter=Tp.getAdapter;fe.HttpStatusCode=tg;fe.default=fe;var Op={exports:{}},ng="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",rg=ng,lg=rg;function Dp(){}function Fp(){}Fp.resetWarningCache=Dp;var og=function(){function e(r,l,o,i,a,u){if(u!==lg){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Fp,resetWarningCache:Dp};return n.PropTypes=n,n};Op.exports=og();var ig=Op.exports;const ag=Ka(ig),jp=T.createContext(),zp=({children:e})=>{const[t,n]=T.useState(localStorage.getItem("token")),r=o=>{n(o)};T.useEffect(()=>{t?(fe.defaults.headers.common.Authorization="Bearer "+t,localStorage.setItem("token",t)):(delete fe.defaults.headers.common.Authorization,localStorage.removeItem("token"))},[t]);const l=T.useMemo(()=>({token:t,setToken:r}),[t]);return D.jsx(jp.Provider,{value:l,children:e})},ri=()=>T.useContext(jp);zp.propTypes={children:ag.node.isRequired};/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -51,8 +51,8 @@ Error generating stack: `+o.message+` * 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 fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ug(){return Math.random().toString(36).substr(2,8)}function Lc(e,t){return{usr:e.state,key:e.key,idx:t}}function pl(e,t,n,r){return n===void 0&&(n=null),pe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?At(t):t,{state:n,key:t&&t.key||r||ug()})}function xl(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 At(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 sg(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,a=he.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=he.Pop;let x=c(),p=x==null?null:x-s;s=x,u&&u({action:a,location:y.location,delta:p})}function h(x,p){a=he.Push;let d=pl(y.location,x,p);n&&n(d,x),s=c()+1;let m=Lc(d,s),R=y.createHref(d);try{i.pushState(m,"",R)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(R)}o&&u&&u({action:a,location:y.location,delta:1})}function E(x,p){a=he.Replace;let d=pl(y.location,x,p);n&&n(d,x),s=c();let m=Lc(d,s),R=y.createHref(d);i.replaceState(m,"",R),o&&u&&u({action:a,location:y.location,delta:0})}function w(x){let p=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof x=="string"?x:xl(x);return d=d.replace(/ $/,"%20"),Q(p,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,p)}let y={get action(){return a},get location(){return e(l,i)},listen(x){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Nc,f),u=x,()=>{l.removeEventListener(Nc,f),u=null}},createHref(x){return t(l,x)},createURL:w,encodeLocation(x){let p=w(x);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:E,go(x){return i.go(x)}};return y}var fe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fe||(fe={}));const cg=new Set(["lazy","caseSensitive","path","id","index","children"]);function fg(e){return e.index===!0}function Ha(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,o],a=typeof l.id=="string"?l.id:i.join("-");if(Q(l.index!==!0||!l.children,"Cannot specify children on an index route"),Q(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),fg(l)){let u=pe({},l,t(l),{id:a});return r[a]=u,u}else{let u=pe({},l,t(l),{id:a,children:void 0});return r[a]=u,l.children&&(u.children=Ha(l.children,t,i,r)),u}})}function Xn(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?At(t):t,l=kl(r.pathname||"/",n);if(l==null)return null;let o=zp(e);pg(o);let i=null;for(let a=0;i==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Q(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=an([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(Q(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),zp(o.children,t,c,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:Sg(s,o.index),routesMeta:c})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,i);else for(let u of Ap(o.path))l(o,i,u)}),t}function Ap(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Ap(r.join("/")),a=[];return a.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function pg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Eg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hg=/^:[\w-]+$/,mg=3,vg=2,yg=1,gg=10,wg=-2,Oc=e=>e==="*";function Sg(e,t){let n=e.split("/"),r=n.length;return n.some(Oc)&&(r+=wg),t&&(r+=vg),n.filter(l=>!Oc(l)).reduce((l,o)=>l+(hg.test(o)?mg:o===""?yg:gg),r)}function Eg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function xg(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{let{paramName:h,isOptional:E}=c;if(h==="*"){let y=a[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const w=a[f];return E&&!w?s[h]=void 0:s[h]=(w||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Cg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),fr(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=[],l="^"+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:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Rg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fr(!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 kl(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 Pg(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?At(e):e;return{pathname:n?n.startsWith("/")?n:_g(n,t):t,search:Ng(r),hash:Lg(l)}}function _g(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function $i(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 Up(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Yu(e,t){let n=Up(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Xu(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=At(e):(l=pe({},e),Q(!l.pathname||!l.pathname.includes("?"),$i("?","pathname","search",l)),Q(!l.pathname||!l.pathname.includes("#"),$i("#","pathname","hash",l)),Q(!l.search||!l.search.includes("#"),$i("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;l.pathname=h.join("/")}a=f>=0?t[f]:"/"}let u=Pg(l,a),s=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const an=e=>e.join("/").replace(/\/\/+/g,"/"),Tg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ng=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Lg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Gu{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ip(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Bp=["post","put","patch","delete"],Og=new Set(Bp),Dg=["get",...Bp],Fg=new Set(Dg),jg=new Set([301,302,303,307,308]),Mg=new Set([307,308]),Hi={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zg={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Lr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$p=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ag=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Hp="remix-router-transitions";function Ug(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;Q(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let g=e.detectErrorBoundary;l=S=>({hasErrorBoundary:g(S)})}else l=Ag;let o={},i=Ha(e.routes,l,void 0,o),a,u=e.basename||"/",s=pe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,f=new Set,h=null,E=null,w=null,y=e.hydrationData!=null,x=Xn(i,e.history.location,u),p=null;if(x==null){let g=tt(404,{pathname:e.history.location.pathname}),{matches:S,route:k}=Ic(i);x=S,p={[k.id]:g}}let d,m=x.some(g=>g.route.lazy),R=x.some(g=>g.route.loader);if(m)d=!1;else if(!R)d=!0;else if(s.v7_partialHydration){let g=e.hydrationData?e.hydrationData.loaderData:null,S=e.hydrationData?e.hydrationData.errors:null,k=N=>N.route.loader?N.route.loader.hydrate===!0?!1:g&&g[N.route.id]!==void 0||S&&S[N.route.id]!==void 0:!0;if(S){let N=x.findIndex(j=>S[j.route.id]!==void 0);d=x.slice(0,N+1).every(k)}else d=x.every(k)}else d=e.hydrationData!=null;let L,v={historyAction:e.history.action,location:e.history.location,matches:x,initialized:d,navigation:Hi,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},P=he.Pop,O=!1,M,U=!1,G=new Map,we=null,ye=!1,et=!1,Dn=[],Ut=[],ie=new Map,D=0,B=-1,H=new Map,q=new Set,re=new Map,gt=new Map,Pe=new Set,st=new Map,Me=new Map,It=!1;function qp(){if(c=e.history.listen(g=>{let{action:S,location:k,delta:N}=g;if(It){It=!1;return}fr(Me.size===0||N!=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 j=is({currentLocation:v.location,nextLocation:k,historyAction:S});if(j&&N!=null){It=!0,e.history.go(N*-1),_l(j,{state:"blocked",location:k,proceed(){_l(j,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),e.history.go(N)},reset(){let W=new Map(v.blockers);W.set(j,Lr),Ke({blockers:W})}});return}return hn(S,k)}),n){Xg(t,G);let g=()=>Gg(t,G);t.addEventListener("pagehide",g),we=()=>t.removeEventListener("pagehide",g)}return v.initialized||hn(he.Pop,v.location,{initialHydration:!0}),L}function Zp(){c&&c(),we&&we(),f.clear(),M&&M.abort(),v.fetchers.forEach((g,S)=>Pl(S)),v.blockers.forEach((g,S)=>os(S))}function bp(g){return f.add(g),()=>f.delete(g)}function Ke(g,S){S===void 0&&(S={}),v=pe({},v,g);let k=[],N=[];s.v7_fetcherPersist&&v.fetchers.forEach((j,W)=>{j.state==="idle"&&(Pe.has(W)?N.push(W):k.push(W))}),[...f].forEach(j=>j(v,{deletedFetchers:N,unstable_viewTransitionOpts:S.viewTransitionOpts,unstable_flushSync:S.flushSync===!0})),s.v7_fetcherPersist&&(k.forEach(j=>v.fetchers.delete(j)),N.forEach(j=>Pl(j)))}function yr(g,S,k){var N,j;let{flushSync:W}=k===void 0?{}:k,$=v.actionData!=null&&v.navigation.formMethod!=null&&pt(v.navigation.formMethod)&&v.navigation.state==="loading"&&((N=g.state)==null?void 0:N._isRedirect)!==!0,I;S.actionData?Object.keys(S.actionData).length>0?I=S.actionData:I=null:$?I=v.actionData:I=null;let z=S.loaderData?Uc(v.loaderData,S.loaderData,S.matches||[],S.errors):v.loaderData,J=v.blockers;J.size>0&&(J=new Map(J),J.forEach((te,_e)=>J.set(_e,Lr)));let xe=O===!0||v.navigation.formMethod!=null&&pt(v.navigation.formMethod)&&((j=g.state)==null?void 0:j._isRedirect)!==!0;a&&(i=a,a=void 0),ye||P===he.Pop||(P===he.Push?e.history.push(g,g.state):P===he.Replace&&e.history.replace(g,g.state));let V;if(P===he.Pop){let te=G.get(v.location.pathname);te&&te.has(g.pathname)?V={currentLocation:v.location,nextLocation:g}:G.has(g.pathname)&&(V={currentLocation:g,nextLocation:v.location})}else if(U){let te=G.get(v.location.pathname);te?te.add(g.pathname):(te=new Set([g.pathname]),G.set(v.location.pathname,te)),V={currentLocation:v.location,nextLocation:g}}Ke(pe({},S,{actionData:I,loaderData:z,historyAction:P,location:g,initialized:!0,navigation:Hi,revalidation:"idle",restoreScrollPosition:us(g,S.matches||v.matches),preventScrollReset:xe,blockers:J}),{viewTransitionOpts:V,flushSync:W===!0}),P=he.Pop,O=!1,U=!1,ye=!1,et=!1,Dn=[],Ut=[]}async function bu(g,S){if(typeof g=="number"){e.history.go(g);return}let k=Va(v.location,v.matches,u,s.v7_prependBasename,g,s.v7_relativeSplatPath,S==null?void 0:S.fromRouteId,S==null?void 0:S.relative),{path:N,submission:j,error:W}=Dc(s.v7_normalizeFormMethod,!1,k,S),$=v.location,I=pl(v.location,N,S&&S.state);I=pe({},I,e.history.encodeLocation(I));let z=S&&S.replace!=null?S.replace:void 0,J=he.Push;z===!0?J=he.Replace:z===!1||j!=null&&pt(j.formMethod)&&j.formAction===v.location.pathname+v.location.search&&(J=he.Replace);let xe=S&&"preventScrollReset"in S?S.preventScrollReset===!0:void 0,V=(S&&S.unstable_flushSync)===!0,te=is({currentLocation:$,nextLocation:I,historyAction:J});if(te){_l(te,{state:"blocked",location:I,proceed(){_l(te,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),bu(g,S)},reset(){let _e=new Map(v.blockers);_e.set(te,Lr),Ke({blockers:_e})}});return}return await hn(J,I,{submission:j,pendingError:W,preventScrollReset:xe,replace:S&&S.replace,enableViewTransition:S&&S.unstable_viewTransition,flushSync:V})}function eh(){if(ii(),Ke({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){hn(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}hn(P||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function hn(g,S,k){M&&M.abort(),M=null,P=g,ye=(k&&k.startUninterruptedRevalidation)===!0,sh(v.location,v.matches),O=(k&&k.preventScrollReset)===!0,U=(k&&k.enableViewTransition)===!0;let N=a||i,j=k&&k.overrideNavigation,W=Xn(N,S,u),$=(k&&k.flushSync)===!0;if(!W){let _e=tt(404,{pathname:S.pathname}),{matches:Je,route:ke}=Ic(N);ai(),yr(S,{matches:Je,loaderData:{},errors:{[ke.id]:_e}},{flushSync:$});return}if(v.initialized&&!et&&Vg(v.location,S)&&!(k&&k.submission&&pt(k.submission.formMethod))){yr(S,{matches:W},{flushSync:$});return}M=new AbortController;let I=Dr(e.history,S,M.signal,k&&k.submission),z,J;if(k&&k.pendingError)J={[Yr(W).route.id]:k.pendingError};else if(k&&k.submission&&pt(k.submission.formMethod)){let _e=await th(I,S,k.submission,W,{replace:k.replace,flushSync:$});if(_e.shortCircuited)return;z=_e.pendingActionData,J=_e.pendingActionError,j=Vi(S,k.submission),$=!1,I=new Request(I.url,{signal:I.signal})}let{shortCircuited:xe,loaderData:V,errors:te}=await nh(I,S,W,j,k&&k.submission,k&&k.fetcherSubmission,k&&k.replace,k&&k.initialHydration===!0,$,z,J);xe||(M=null,yr(S,pe({matches:W},z?{actionData:z}:{},{loaderData:V,errors:te})))}async function th(g,S,k,N,j){j===void 0&&(j={}),ii();let W=Jg(S,k);Ke({navigation:W},{flushSync:j.flushSync===!0});let $,I=Qa(N,S);if(!I.route.action&&!I.route.lazy)$={type:fe.error,error:tt(405,{method:g.method,pathname:S.pathname,routeId:I.route.id})};else if($=await Or("action",g,I,N,o,l,u,s.v7_relativeSplatPath),g.signal.aborted)return{shortCircuited:!0};if(xn($)){let z;return j&&j.replace!=null?z=j.replace:z=$.location===v.location.pathname+v.location.search,await gr(v,$,{submission:k,replace:z}),{shortCircuited:!0}}if(Gn($)){let z=Yr(N,I.route.id);return(j&&j.replace)!==!0&&(P=he.Push),{pendingActionData:{},pendingActionError:{[z.route.id]:$.error}}}if(En($))throw tt(400,{type:"defer-action"});return{pendingActionData:{[I.route.id]:$.data}}}async function nh(g,S,k,N,j,W,$,I,z,J,xe){let V=N||Vi(S,j),te=j||W||Hc(V),_e=a||i,[Je,ke]=Fc(e.history,v,k,te,S,s.v7_partialHydration&&I===!0,et,Dn,Ut,Pe,re,q,_e,u,J,xe);if(ai(Z=>!(k&&k.some(ee=>ee.route.id===Z))||Je&&Je.some(ee=>ee.route.id===Z)),B=++D,Je.length===0&&ke.length===0){let Z=rs();return yr(S,pe({matches:k,loaderData:{},errors:xe||null},J?{actionData:J}:{},Z?{fetchers:new Map(v.fetchers)}:{}),{flushSync:z}),{shortCircuited:!0}}if(!ye&&(!s.v7_partialHydration||!I)){ke.forEach(ee=>{let Be=v.fetchers.get(ee.key),Nl=Fr(void 0,Be?Be.data:void 0);v.fetchers.set(ee.key,Nl)});let Z=J||v.actionData;Ke(pe({navigation:V},Z?Object.keys(Z).length===0?{actionData:null}:{actionData:Z}:{},ke.length>0?{fetchers:new Map(v.fetchers)}:{}),{flushSync:z})}ke.forEach(Z=>{ie.has(Z.key)&&$t(Z.key),Z.controller&&ie.set(Z.key,Z.controller)});let Fn=()=>ke.forEach(Z=>$t(Z.key));M&&M.signal.addEventListener("abort",Fn);let{results:ui,loaderResults:jn,fetcherResults:Ht}=await es(v.matches,k,Je,ke,g);if(g.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Fn),ke.forEach(Z=>ie.delete(Z.key));let mn=Bc(ui);if(mn){if(mn.idx>=Je.length){let Z=ke[mn.idx-Je.length].key;q.add(Z)}return await gr(v,mn.result,{replace:$}),{shortCircuited:!0}}let{loaderData:si,errors:Sr}=Ac(v,k,Je,jn,xe,ke,Ht,st);st.forEach((Z,ee)=>{Z.subscribe(Be=>{(Be||Z.done)&&st.delete(ee)})}),s.v7_partialHydration&&I&&v.errors&&Object.entries(v.errors).filter(Z=>{let[ee]=Z;return!Je.some(Be=>Be.route.id===ee)}).forEach(Z=>{let[ee,Be]=Z;Sr=Object.assign(Sr||{},{[ee]:Be})});let ci=rs(),Mn=ls(B),Tl=ci||Mn||ke.length>0;return pe({loaderData:si,errors:Sr},Tl?{fetchers:new Map(v.fetchers)}:{})}function rh(g,S,k,N){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.");ie.has(g)&&$t(g);let j=(N&&N.unstable_flushSync)===!0,W=a||i,$=Va(v.location,v.matches,u,s.v7_prependBasename,k,s.v7_relativeSplatPath,S,N==null?void 0:N.relative),I=Xn(W,$,u);if(!I){wr(g,S,tt(404,{pathname:$}),{flushSync:j});return}let{path:z,submission:J,error:xe}=Dc(s.v7_normalizeFormMethod,!0,$,N);if(xe){wr(g,S,xe,{flushSync:j});return}let V=Qa(I,z);if(O=(N&&N.preventScrollReset)===!0,J&&pt(J.formMethod)){lh(g,S,z,V,I,j,J);return}re.set(g,{routeId:S,path:z}),oh(g,S,z,V,I,j,J)}async function lh(g,S,k,N,j,W,$){if(ii(),re.delete(g),!N.route.action&&!N.route.lazy){let ee=tt(405,{method:$.formMethod,pathname:k,routeId:S});wr(g,S,ee,{flushSync:W});return}let I=v.fetchers.get(g);Bt(g,Yg($,I),{flushSync:W});let z=new AbortController,J=Dr(e.history,k,z.signal,$);ie.set(g,z);let xe=D,V=await Or("action",J,N,j,o,l,u,s.v7_relativeSplatPath);if(J.signal.aborted){ie.get(g)===z&&ie.delete(g);return}if(s.v7_fetcherPersist&&Pe.has(g)){if(xn(V)||Gn(V)){Bt(g,Qt(void 0));return}}else{if(xn(V))if(ie.delete(g),B>xe){Bt(g,Qt(void 0));return}else return q.add(g),Bt(g,Fr($)),gr(v,V,{fetcherSubmission:$});if(Gn(V)){wr(g,S,V.error);return}}if(En(V))throw tt(400,{type:"defer-action"});let te=v.navigation.location||v.location,_e=Dr(e.history,te,z.signal),Je=a||i,ke=v.navigation.state!=="idle"?Xn(Je,v.navigation.location,u):v.matches;Q(ke,"Didn't find any matches after fetcher action");let Fn=++D;H.set(g,Fn);let ui=Fr($,V.data);v.fetchers.set(g,ui);let[jn,Ht]=Fc(e.history,v,ke,$,te,!1,et,Dn,Ut,Pe,re,q,Je,u,{[N.route.id]:V.data},void 0);Ht.filter(ee=>ee.key!==g).forEach(ee=>{let Be=ee.key,Nl=v.fetchers.get(Be),fh=Fr(void 0,Nl?Nl.data:void 0);v.fetchers.set(Be,fh),ie.has(Be)&&$t(Be),ee.controller&&ie.set(Be,ee.controller)}),Ke({fetchers:new Map(v.fetchers)});let mn=()=>Ht.forEach(ee=>$t(ee.key));z.signal.addEventListener("abort",mn);let{results:si,loaderResults:Sr,fetcherResults:ci}=await es(v.matches,ke,jn,Ht,_e);if(z.signal.aborted)return;z.signal.removeEventListener("abort",mn),H.delete(g),ie.delete(g),Ht.forEach(ee=>ie.delete(ee.key));let Mn=Bc(si);if(Mn){if(Mn.idx>=jn.length){let ee=Ht[Mn.idx-jn.length].key;q.add(ee)}return gr(v,Mn.result)}let{loaderData:Tl,errors:Z}=Ac(v,v.matches,jn,Sr,void 0,Ht,ci,st);if(v.fetchers.has(g)){let ee=Qt(V.data);v.fetchers.set(g,ee)}ls(Fn),v.navigation.state==="loading"&&Fn>B?(Q(P,"Expected pending action"),M&&M.abort(),yr(v.navigation.location,{matches:ke,loaderData:Tl,errors:Z,fetchers:new Map(v.fetchers)})):(Ke({errors:Z,loaderData:Uc(v.loaderData,Tl,ke,Z),fetchers:new Map(v.fetchers)}),et=!1)}async function oh(g,S,k,N,j,W,$){let I=v.fetchers.get(g);Bt(g,Fr($,I?I.data:void 0),{flushSync:W});let z=new AbortController,J=Dr(e.history,k,z.signal);ie.set(g,z);let xe=D,V=await Or("loader",J,N,j,o,l,u,s.v7_relativeSplatPath);if(En(V)&&(V=await Qp(V,J.signal,!0)||V),ie.get(g)===z&&ie.delete(g),!J.signal.aborted){if(Pe.has(g)){Bt(g,Qt(void 0));return}if(xn(V))if(B>xe){Bt(g,Qt(void 0));return}else{q.add(g),await gr(v,V);return}if(Gn(V)){wr(g,S,V.error);return}Q(!En(V),"Unhandled fetcher deferred data"),Bt(g,Qt(V.data))}}async function gr(g,S,k){let{submission:N,fetcherSubmission:j,replace:W}=k===void 0?{}:k;S.revalidate&&(et=!0);let $=pl(g.location,S.location,{_isRedirect:!0});if(Q($,"Expected a location on the redirect navigation"),n){let te=!1;if(S.reloadDocument)te=!0;else if($p.test(S.location)){const _e=e.history.createURL(S.location);te=_e.origin!==t.location.origin||kl(_e.pathname,u)==null}if(te){W?t.location.replace(S.location):t.location.assign(S.location);return}}M=null;let I=W===!0?he.Replace:he.Push,{formMethod:z,formAction:J,formEncType:xe}=g.navigation;!N&&!j&&z&&J&&xe&&(N=Hc(g.navigation));let V=N||j;if(Mg.has(S.status)&&V&&pt(V.formMethod))await hn(I,$,{submission:pe({},V,{formAction:S.location}),preventScrollReset:O});else{let te=Vi($,N);await hn(I,$,{overrideNavigation:te,fetcherSubmission:j,preventScrollReset:O})}}async function es(g,S,k,N,j){let W=await Promise.all([...k.map(z=>Or("loader",j,z,S,o,l,u,s.v7_relativeSplatPath)),...N.map(z=>z.matches&&z.match&&z.controller?Or("loader",Dr(e.history,z.path,z.controller.signal),z.match,z.matches,o,l,u,s.v7_relativeSplatPath):{type:fe.error,error:tt(404,{pathname:z.path})})]),$=W.slice(0,k.length),I=W.slice(k.length);return await Promise.all([$c(g,k,$,$.map(()=>j.signal),!1,v.loaderData),$c(g,N.map(z=>z.match),I,N.map(z=>z.controller?z.controller.signal:null),!0)]),{results:W,loaderResults:$,fetcherResults:I}}function ii(){et=!0,Dn.push(...ai()),re.forEach((g,S)=>{ie.has(S)&&(Ut.push(S),$t(S))})}function Bt(g,S,k){k===void 0&&(k={}),v.fetchers.set(g,S),Ke({fetchers:new Map(v.fetchers)},{flushSync:(k&&k.flushSync)===!0})}function wr(g,S,k,N){N===void 0&&(N={});let j=Yr(v.matches,S);Pl(g),Ke({errors:{[j.route.id]:k},fetchers:new Map(v.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function ts(g){return s.v7_fetcherPersist&&(gt.set(g,(gt.get(g)||0)+1),Pe.has(g)&&Pe.delete(g)),v.fetchers.get(g)||zg}function Pl(g){let S=v.fetchers.get(g);ie.has(g)&&!(S&&S.state==="loading"&&H.has(g))&&$t(g),re.delete(g),H.delete(g),q.delete(g),Pe.delete(g),v.fetchers.delete(g)}function ih(g){if(s.v7_fetcherPersist){let S=(gt.get(g)||0)-1;S<=0?(gt.delete(g),Pe.add(g)):gt.set(g,S)}else Pl(g);Ke({fetchers:new Map(v.fetchers)})}function $t(g){let S=ie.get(g);Q(S,"Expected fetch controller: "+g),S.abort(),ie.delete(g)}function ns(g){for(let S of g){let k=ts(S),N=Qt(k.data);v.fetchers.set(S,N)}}function rs(){let g=[],S=!1;for(let k of q){let N=v.fetchers.get(k);Q(N,"Expected fetcher: "+k),N.state==="loading"&&(q.delete(k),g.push(k),S=!0)}return ns(g),S}function ls(g){let S=[];for(let[k,N]of H)if(N0}function ah(g,S){let k=v.blockers.get(g)||Lr;return Me.get(g)!==S&&Me.set(g,S),k}function os(g){v.blockers.delete(g),Me.delete(g)}function _l(g,S){let k=v.blockers.get(g)||Lr;Q(k.state==="unblocked"&&S.state==="blocked"||k.state==="blocked"&&S.state==="blocked"||k.state==="blocked"&&S.state==="proceeding"||k.state==="blocked"&&S.state==="unblocked"||k.state==="proceeding"&&S.state==="unblocked","Invalid blocker state transition: "+k.state+" -> "+S.state);let N=new Map(v.blockers);N.set(g,S),Ke({blockers:N})}function is(g){let{currentLocation:S,nextLocation:k,historyAction:N}=g;if(Me.size===0)return;Me.size>1&&fr(!1,"A router only supports one blocker at a time");let j=Array.from(Me.entries()),[W,$]=j[j.length-1],I=v.blockers.get(W);if(!(I&&I.state==="proceeding")&&$({currentLocation:S,nextLocation:k,historyAction:N}))return W}function ai(g){let S=[];return st.forEach((k,N)=>{(!g||g(N))&&(k.cancel(),S.push(N),st.delete(N))}),S}function uh(g,S,k){if(h=g,w=S,E=k||null,!y&&v.navigation===Hi){y=!0;let N=us(v.location,v.matches);N!=null&&Ke({restoreScrollPosition:N})}return()=>{h=null,w=null,E=null}}function as(g,S){return E&&E(g,S.map(N=>dg(N,v.loaderData)))||g.key}function sh(g,S){if(h&&w){let k=as(g,S);h[k]=w()}}function us(g,S){if(h){let k=as(g,S),N=h[k];if(typeof N=="number")return N}return null}function ch(g){o={},a=Ha(g,l,void 0,o)}return L={get basename(){return u},get future(){return s},get state(){return v},get routes(){return i},get window(){return t},initialize:qp,subscribe:bp,enableScrollRestoration:uh,navigate:bu,fetch:rh,revalidate:eh,createHref:g=>e.history.createHref(g),encodeLocation:g=>e.history.encodeLocation(g),getFetcher:ts,deleteFetcher:ih,dispose:Zp,getBlocker:ah,deleteBlocker:os,_internalFetchControllers:ie,_internalActiveDeferreds:st,_internalSetRoutes:ch},L}function Ig(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Va(e,t,n,r,l,o,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=Xu(l||".",Yu(u,o),kl(e.pathname,n)||e.pathname,a==="path");return l==null&&(c.search=e.search,c.hash=e.hash),(l==null||l===""||l===".")&&s&&s.route.index&&!qu(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:an([n,c.pathname])),xl(c)}function Dc(e,t,n,r){if(!r||!Ig(r))return{path:n};if(r.formMethod&&!Kg(r.formMethod))return{path:n,error:tt(405,{method:r.formMethod})};let l=()=>({path:n,error:tt(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),a=Wp(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!pt(i))return l();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((E,w)=>{let[y,x]=w;return""+E+y+"="+x+` -`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!pt(i))return l();try{let h=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:h,text:void 0}}}catch{return l()}}}Q(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=Wa(r.formData),s=r.formData;else if(r.body instanceof FormData)u=Wa(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=zc(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=zc(u)}catch{return l()}let c={formMethod:i,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(pt(c.formMethod))return{path:n,submission:c};let f=At(n);return t&&f.search&&qu(f.search)&&u.append("index",""),f.search="?"+u,{path:xl(f),submission:c}}function Bg(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Fc(e,t,n,r,l,o,i,a,u,s,c,f,h,E,w,y){let x=y?Object.values(y)[0]:w?Object.values(w)[0]:void 0,p=e.createURL(t.location),d=e.createURL(l),m=y?Object.keys(y)[0]:void 0,L=Bg(n,m).filter((P,O)=>{let{route:M}=P;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if($g(t.loaderData,t.matches[O],P)||a.some(we=>we===P.route.id))return!0;let U=t.matches[O],G=P;return jc(P,pe({currentUrl:p,currentParams:U.params,nextUrl:d,nextParams:G.params},r,{actionResult:x,defaultShouldRevalidate:i||p.pathname+p.search===d.pathname+d.search||p.search!==d.search||Vp(U,G)}))}),v=[];return c.forEach((P,O)=>{if(o||!n.some(ye=>ye.route.id===P.routeId)||s.has(O))return;let M=Xn(h,P.path,E);if(!M){v.push({key:O,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let U=t.fetchers.get(O),G=Qa(M,P.path),we=!1;f.has(O)?we=!1:u.includes(O)?we=!0:U&&U.state!=="idle"&&U.data===void 0?we=i:we=jc(G,pe({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:n[n.length-1].params},r,{actionResult:x,defaultShouldRevalidate:i})),we&&v.push({key:O,routeId:P.routeId,path:P.path,matches:M,match:G,controller:new AbortController})}),[L,v]}function $g(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Vp(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function jc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Mc(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];Q(l,"No route found in manifest");let o={};for(let i in r){let u=l[i]!==void 0&&i!=="hasErrorBoundary";fr(!u,'Route "'+l.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&&!cg.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,pe({},t(l),{lazy:void 0}))}async function Or(e,t,n,r,l,o,i,a,u){u===void 0&&(u={});let s,c,f,h=y=>{let x,p=new Promise((d,m)=>x=m);return f=()=>x(),t.signal.addEventListener("abort",f),Promise.race([y({request:t,params:n.params,context:u.requestContext}),p])};try{let y=n.route[e];if(n.route.lazy)if(y){let x,p=await Promise.all([h(y).catch(d=>{x=d}),Mc(n.route,o,l)]);if(x)throw x;c=p[0]}else if(await Mc(n.route,o,l),y=n.route[e],y)c=await h(y);else if(e==="action"){let x=new URL(t.url),p=x.pathname+x.search;throw tt(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:fe.data,data:void 0};else if(y)c=await h(y);else{let x=new URL(t.url),p=x.pathname+x.search;throw tt(404,{pathname:p})}Q(c!==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(y){s=fe.error,c=y}finally{f&&t.signal.removeEventListener("abort",f)}if(Qg(c)){let y=c.status;if(jg.has(y)){let p=c.headers.get("Location");if(Q(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!$p.test(p))p=Va(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,p,a);else if(!u.isStaticRequest){let d=new URL(t.url),m=p.startsWith("//")?new URL(d.protocol+p):new URL(p),R=kl(m.pathname,i)!=null;m.origin===d.origin&&R&&(p=m.pathname+m.search+m.hash)}if(u.isStaticRequest)throw c.headers.set("Location",p),c;return{type:fe.redirect,status:y,location:p,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===fe.error?fe.error:fe.data,response:c};let x;try{let p=c.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?c.body==null?x=null:x=await c.json():x=await c.text()}catch(p){return{type:fe.error,error:p}}return s===fe.error?{type:s,error:new Gu(y,c.statusText,x),headers:c.headers}:{type:fe.data,data:x,statusCode:c.status,headers:c.headers}}if(s===fe.error)return{type:s,error:c};if(Wg(c)){var E,w;return{type:fe.deferred,deferredData:c,statusCode:(E=c.init)==null?void 0:E.status,headers:((w=c.init)==null?void 0:w.headers)&&new Headers(c.init.headers)}}return{type:fe.data,data:c}}function Dr(e,t,n,r){let l=e.createURL(Wp(t)).toString(),o={signal:n};if(r&&pt(r.formMethod)){let{formMethod:i,formEncType:a}=r;o.method=i.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=Wa(r.formData):o.body=r.formData}return new Request(l,o)}function Wa(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function zc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Hg(e,t,n,r,l){let o={},i=null,a,u=!1,s={};return n.forEach((c,f)=>{let h=t[f].route.id;if(Q(!xn(c),"Cannot handle redirect results in processLoaderData"),Gn(c)){let E=Yr(e,h),w=c.error;r&&(w=Object.values(r)[0],r=void 0),i=i||{},i[E.route.id]==null&&(i[E.route.id]=w),o[h]=void 0,u||(u=!0,a=Ip(c.error)?c.error.status:500),c.headers&&(s[h]=c.headers)}else En(c)?(l.set(h,c.deferredData),o[h]=c.deferredData.data):o[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[h]=c.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:s}}function Ac(e,t,n,r,l,o,i,a){let{loaderData:u,errors:s}=Hg(t,n,r,l,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Ic(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 tt(e,t){let{pathname:n,routeId:r,method:l,type:o}=t===void 0?{}:t,i="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(i="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(i="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",a='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new Gu(e||500,i,new Error(a),!0)}function Bc(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(xn(n))return{result:n,idx:t}}}function Wp(e){let t=typeof e=="string"?At(e):e;return xl(pe({},t,{hash:""}))}function Vg(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function En(e){return e.type===fe.deferred}function Gn(e){return e.type===fe.error}function xn(e){return(e&&e.type)===fe.redirect}function Wg(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 Qg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Kg(e){return Fg.has(e.toLowerCase())}function pt(e){return Og.has(e.toLowerCase())}async function $c(e,t,n,r,l,o){for(let i=0;if.route.id===u.route.id),c=s!=null&&!Vp(s,u)&&(o&&o[u.route.id])!==void 0;if(En(a)&&(l||c)){let f=r[i];Q(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Qp(a,f,l).then(h=>{h&&(n[i]=h||n[i])})}}}async function Qp(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:fe.data,data:e.deferredData.unwrappedData}}catch(l){return{type:fe.error,error:l}}return{type:fe.data,data:e.deferredData.data}}}function qu(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Qa(e,t){let n=typeof t=="string"?At(t).search:t.search;if(e[e.length-1].route.index&&qu(n||""))return e[e.length-1];let r=Up(e);return r[r.length-1]}function Hc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:o,json:i}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,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 Vi(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 Jg(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 Fr(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 Yg(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 Qt(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 Xg(e,t){try{let n=e.sessionStorage.getItem(Hp);if(n){let r=JSON.parse(n);for(let[l,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(l,new Set(o||[]))}}catch{}}function Gg(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Hp,JSON.stringify(n))}catch(r){fr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function dr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sg(){return Math.random().toString(36).substr(2,8)}function Lc(e,t){return{usr:e.state,key:e.key,idx:t}}function pl(e,t,n,r){return n===void 0&&(n=null),he({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?At(t):t,{state:n,key:t&&t.key||r||sg()})}function xl(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 At(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 cg(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,a=me.Pop,u=null,s=c();s==null&&(s=0,i.replaceState(he({},i.state,{idx:s}),""));function c(){return(i.state||{idx:null}).idx}function f(){a=me.Pop;let x=c(),p=x==null?null:x-s;s=x,u&&u({action:a,location:v.location,delta:p})}function h(x,p){a=me.Push;let d=pl(v.location,x,p);n&&n(d,x),s=c()+1;let m=Lc(d,s),R=v.createHref(d);try{i.pushState(m,"",R)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(R)}o&&u&&u({action:a,location:v.location,delta:1})}function E(x,p){a=me.Replace;let d=pl(v.location,x,p);n&&n(d,x),s=c();let m=Lc(d,s),R=v.createHref(d);i.replaceState(m,"",R),o&&u&&u({action:a,location:v.location,delta:0})}function w(x){let p=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof x=="string"?x:xl(x);return d=d.replace(/ $/,"%20"),Q(p,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,p)}let v={get action(){return a},get location(){return e(l,i)},listen(x){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Nc,f),u=x,()=>{l.removeEventListener(Nc,f),u=null}},createHref(x){return t(l,x)},createURL:w,encodeLocation(x){let p=w(x);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:E,go(x){return i.go(x)}};return v}var de;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(de||(de={}));const fg=new Set(["lazy","caseSensitive","path","id","index","children"]);function dg(e){return e.index===!0}function Ha(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,o],a=typeof l.id=="string"?l.id:i.join("-");if(Q(l.index!==!0||!l.children,"Cannot specify children on an index route"),Q(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),dg(l)){let u=he({},l,t(l),{id:a});return r[a]=u,u}else{let u=he({},l,t(l),{id:a,children:void 0});return r[a]=u,l.children&&(u.children=Ha(l.children,t,i,r)),u}})}function Gn(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?At(t):t,l=kl(r.pathname||"/",n);if(l==null)return null;let o=Mp(e);hg(o);let i=null;for(let a=0;i==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Q(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=an([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(Q(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Mp(o.children,t,c,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:Eg(s,o.index),routesMeta:c})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,i);else for(let u of Ap(o.path))l(o,i,u)}),t}function Ap(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Ap(r.join("/")),a=[];return a.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function hg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mg=/^:[\w-]+$/,yg=3,vg=2,gg=1,wg=10,Sg=-2,Oc=e=>e==="*";function Eg(e,t){let n=e.split("/"),r=n.length;return n.some(Oc)&&(r+=Sg),t&&(r+=vg),n.filter(l=>!Oc(l)).reduce((l,o)=>l+(mg.test(o)?yg:o===""?gg:wg),r)}function xg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function kg(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{let{paramName:h,isOptional:E}=c;if(h==="*"){let v=a[f]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const w=a[f];return E&&!w?s[h]=void 0:s[h]=(w||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Rg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dr(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=[],l="^"+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:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Pg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dr(!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 kl(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 _g(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?At(e):e;return{pathname:n?n.startsWith("/")?n:Tg(n,t):t,search:Lg(r),hash:Og(l)}}function Tg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function $i(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 Up(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Yu(e,t){let n=Up(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Xu(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=At(e):(l=he({},e),Q(!l.pathname||!l.pathname.includes("?"),$i("?","pathname","search",l)),Q(!l.pathname||!l.pathname.includes("#"),$i("#","pathname","hash",l)),Q(!l.search||!l.search.includes("#"),$i("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;l.pathname=h.join("/")}a=f>=0?t[f]:"/"}let u=_g(l,a),s=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const an=e=>e.join("/").replace(/\/\/+/g,"/"),Ng=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Lg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Og=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Gu{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ip(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Bp=["post","put","patch","delete"],Dg=new Set(Bp),Fg=["get",...Bp],jg=new Set(Fg),zg=new Set([301,302,303,307,308]),Mg=new Set([307,308]),Hi={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ag={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Lr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$p=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ug=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Hp="remix-router-transitions";function Ig(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;Q(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let g=e.detectErrorBoundary;l=S=>({hasErrorBoundary:g(S)})}else l=Ug;let o={},i=Ha(e.routes,l,void 0,o),a,u=e.basename||"/",s=he({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,f=new Set,h=null,E=null,w=null,v=e.hydrationData!=null,x=Gn(i,e.history.location,u),p=null;if(x==null){let g=tt(404,{pathname:e.history.location.pathname}),{matches:S,route:k}=Ic(i);x=S,p={[k.id]:g}}let d,m=x.some(g=>g.route.lazy),R=x.some(g=>g.route.loader);if(m)d=!1;else if(!R)d=!0;else if(s.v7_partialHydration){let g=e.hydrationData?e.hydrationData.loaderData:null,S=e.hydrationData?e.hydrationData.errors:null,k=N=>N.route.loader?N.route.loader.hydrate===!0?!1:g&&g[N.route.id]!==void 0||S&&S[N.route.id]!==void 0:!0;if(S){let N=x.findIndex(z=>S[z.route.id]!==void 0);d=x.slice(0,N+1).every(k)}else d=x.every(k)}else d=e.hydrationData!=null;let L,y={historyAction:e.history.action,location:e.history.location,matches:x,initialized:d,navigation:Hi,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},P=me.Pop,O=!1,M,U=!1,G=new Map,we=null,ve=!1,et=!1,Fn=[],Ut=[],ie=new Map,F=0,B=-1,H=new Map,q=new Set,re=new Map,gt=new Map,Pe=new Set,st=new Map,ze=new Map,It=!1;function Zp(){if(c=e.history.listen(g=>{let{action:S,location:k,delta:N}=g;if(It){It=!1;return}dr(ze.size===0||N!=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 z=is({currentLocation:y.location,nextLocation:k,historyAction:S});if(z&&N!=null){It=!0,e.history.go(N*-1),_l(z,{state:"blocked",location:k,proceed(){_l(z,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),e.history.go(N)},reset(){let W=new Map(y.blockers);W.set(z,Lr),Ke({blockers:W})}});return}return hn(S,k)}),n){Gg(t,G);let g=()=>qg(t,G);t.addEventListener("pagehide",g),we=()=>t.removeEventListener("pagehide",g)}return y.initialized||hn(me.Pop,y.location,{initialHydration:!0}),L}function bp(){c&&c(),we&&we(),f.clear(),M&&M.abort(),y.fetchers.forEach((g,S)=>Pl(S)),y.blockers.forEach((g,S)=>os(S))}function eh(g){return f.add(g),()=>f.delete(g)}function Ke(g,S){S===void 0&&(S={}),y=he({},y,g);let k=[],N=[];s.v7_fetcherPersist&&y.fetchers.forEach((z,W)=>{z.state==="idle"&&(Pe.has(W)?N.push(W):k.push(W))}),[...f].forEach(z=>z(y,{deletedFetchers:N,unstable_viewTransitionOpts:S.viewTransitionOpts,unstable_flushSync:S.flushSync===!0})),s.v7_fetcherPersist&&(k.forEach(z=>y.fetchers.delete(z)),N.forEach(z=>Pl(z)))}function vr(g,S,k){var N,z;let{flushSync:W}=k===void 0?{}:k,$=y.actionData!=null&&y.navigation.formMethod!=null&&pt(y.navigation.formMethod)&&y.navigation.state==="loading"&&((N=g.state)==null?void 0:N._isRedirect)!==!0,I;S.actionData?Object.keys(S.actionData).length>0?I=S.actionData:I=null:$?I=y.actionData:I=null;let A=S.loaderData?Uc(y.loaderData,S.loaderData,S.matches||[],S.errors):y.loaderData,J=y.blockers;J.size>0&&(J=new Map(J),J.forEach((te,_e)=>J.set(_e,Lr)));let xe=O===!0||y.navigation.formMethod!=null&&pt(y.navigation.formMethod)&&((z=g.state)==null?void 0:z._isRedirect)!==!0;a&&(i=a,a=void 0),ve||P===me.Pop||(P===me.Push?e.history.push(g,g.state):P===me.Replace&&e.history.replace(g,g.state));let V;if(P===me.Pop){let te=G.get(y.location.pathname);te&&te.has(g.pathname)?V={currentLocation:y.location,nextLocation:g}:G.has(g.pathname)&&(V={currentLocation:g,nextLocation:y.location})}else if(U){let te=G.get(y.location.pathname);te?te.add(g.pathname):(te=new Set([g.pathname]),G.set(y.location.pathname,te)),V={currentLocation:y.location,nextLocation:g}}Ke(he({},S,{actionData:I,loaderData:A,historyAction:P,location:g,initialized:!0,navigation:Hi,revalidation:"idle",restoreScrollPosition:us(g,S.matches||y.matches),preventScrollReset:xe,blockers:J}),{viewTransitionOpts:V,flushSync:W===!0}),P=me.Pop,O=!1,U=!1,ve=!1,et=!1,Fn=[],Ut=[]}async function bu(g,S){if(typeof g=="number"){e.history.go(g);return}let k=Va(y.location,y.matches,u,s.v7_prependBasename,g,s.v7_relativeSplatPath,S==null?void 0:S.fromRouteId,S==null?void 0:S.relative),{path:N,submission:z,error:W}=Dc(s.v7_normalizeFormMethod,!1,k,S),$=y.location,I=pl(y.location,N,S&&S.state);I=he({},I,e.history.encodeLocation(I));let A=S&&S.replace!=null?S.replace:void 0,J=me.Push;A===!0?J=me.Replace:A===!1||z!=null&&pt(z.formMethod)&&z.formAction===y.location.pathname+y.location.search&&(J=me.Replace);let xe=S&&"preventScrollReset"in S?S.preventScrollReset===!0:void 0,V=(S&&S.unstable_flushSync)===!0,te=is({currentLocation:$,nextLocation:I,historyAction:J});if(te){_l(te,{state:"blocked",location:I,proceed(){_l(te,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),bu(g,S)},reset(){let _e=new Map(y.blockers);_e.set(te,Lr),Ke({blockers:_e})}});return}return await hn(J,I,{submission:z,pendingError:W,preventScrollReset:xe,replace:S&&S.replace,enableViewTransition:S&&S.unstable_viewTransition,flushSync:V})}function th(){if(ii(),Ke({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){hn(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}hn(P||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation})}}async function hn(g,S,k){M&&M.abort(),M=null,P=g,ve=(k&&k.startUninterruptedRevalidation)===!0,ch(y.location,y.matches),O=(k&&k.preventScrollReset)===!0,U=(k&&k.enableViewTransition)===!0;let N=a||i,z=k&&k.overrideNavigation,W=Gn(N,S,u),$=(k&&k.flushSync)===!0;if(!W){let _e=tt(404,{pathname:S.pathname}),{matches:Je,route:ke}=Ic(N);ai(),vr(S,{matches:Je,loaderData:{},errors:{[ke.id]:_e}},{flushSync:$});return}if(y.initialized&&!et&&Wg(y.location,S)&&!(k&&k.submission&&pt(k.submission.formMethod))){vr(S,{matches:W},{flushSync:$});return}M=new AbortController;let I=Dr(e.history,S,M.signal,k&&k.submission),A,J;if(k&&k.pendingError)J={[Yr(W).route.id]:k.pendingError};else if(k&&k.submission&&pt(k.submission.formMethod)){let _e=await nh(I,S,k.submission,W,{replace:k.replace,flushSync:$});if(_e.shortCircuited)return;A=_e.pendingActionData,J=_e.pendingActionError,z=Vi(S,k.submission),$=!1,I=new Request(I.url,{signal:I.signal})}let{shortCircuited:xe,loaderData:V,errors:te}=await rh(I,S,W,z,k&&k.submission,k&&k.fetcherSubmission,k&&k.replace,k&&k.initialHydration===!0,$,A,J);xe||(M=null,vr(S,he({matches:W},A?{actionData:A}:{},{loaderData:V,errors:te})))}async function nh(g,S,k,N,z){z===void 0&&(z={}),ii();let W=Yg(S,k);Ke({navigation:W},{flushSync:z.flushSync===!0});let $,I=Qa(N,S);if(!I.route.action&&!I.route.lazy)$={type:de.error,error:tt(405,{method:g.method,pathname:S.pathname,routeId:I.route.id})};else if($=await Or("action",g,I,N,o,l,u,s.v7_relativeSplatPath),g.signal.aborted)return{shortCircuited:!0};if(xn($)){let A;return z&&z.replace!=null?A=z.replace:A=$.location===y.location.pathname+y.location.search,await gr(y,$,{submission:k,replace:A}),{shortCircuited:!0}}if(qn($)){let A=Yr(N,I.route.id);return(z&&z.replace)!==!0&&(P=me.Push),{pendingActionData:{},pendingActionError:{[A.route.id]:$.error}}}if(En($))throw tt(400,{type:"defer-action"});return{pendingActionData:{[I.route.id]:$.data}}}async function rh(g,S,k,N,z,W,$,I,A,J,xe){let V=N||Vi(S,z),te=z||W||Hc(V),_e=a||i,[Je,ke]=Fc(e.history,y,k,te,S,s.v7_partialHydration&&I===!0,et,Fn,Ut,Pe,re,q,_e,u,J,xe);if(ai(Z=>!(k&&k.some(ee=>ee.route.id===Z))||Je&&Je.some(ee=>ee.route.id===Z)),B=++F,Je.length===0&&ke.length===0){let Z=rs();return vr(S,he({matches:k,loaderData:{},errors:xe||null},J?{actionData:J}:{},Z?{fetchers:new Map(y.fetchers)}:{}),{flushSync:A}),{shortCircuited:!0}}if(!ve&&(!s.v7_partialHydration||!I)){ke.forEach(ee=>{let Be=y.fetchers.get(ee.key),Nl=Fr(void 0,Be?Be.data:void 0);y.fetchers.set(ee.key,Nl)});let Z=J||y.actionData;Ke(he({navigation:V},Z?Object.keys(Z).length===0?{actionData:null}:{actionData:Z}:{},ke.length>0?{fetchers:new Map(y.fetchers)}:{}),{flushSync:A})}ke.forEach(Z=>{ie.has(Z.key)&&$t(Z.key),Z.controller&&ie.set(Z.key,Z.controller)});let jn=()=>ke.forEach(Z=>$t(Z.key));M&&M.signal.addEventListener("abort",jn);let{results:ui,loaderResults:zn,fetcherResults:Ht}=await es(y.matches,k,Je,ke,g);if(g.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",jn),ke.forEach(Z=>ie.delete(Z.key));let mn=Bc(ui);if(mn){if(mn.idx>=Je.length){let Z=ke[mn.idx-Je.length].key;q.add(Z)}return await gr(y,mn.result,{replace:$}),{shortCircuited:!0}}let{loaderData:si,errors:Sr}=Ac(y,k,Je,zn,xe,ke,Ht,st);st.forEach((Z,ee)=>{Z.subscribe(Be=>{(Be||Z.done)&&st.delete(ee)})}),s.v7_partialHydration&&I&&y.errors&&Object.entries(y.errors).filter(Z=>{let[ee]=Z;return!Je.some(Be=>Be.route.id===ee)}).forEach(Z=>{let[ee,Be]=Z;Sr=Object.assign(Sr||{},{[ee]:Be})});let ci=rs(),Mn=ls(B),Tl=ci||Mn||ke.length>0;return he({loaderData:si,errors:Sr},Tl?{fetchers:new Map(y.fetchers)}:{})}function lh(g,S,k,N){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.");ie.has(g)&&$t(g);let z=(N&&N.unstable_flushSync)===!0,W=a||i,$=Va(y.location,y.matches,u,s.v7_prependBasename,k,s.v7_relativeSplatPath,S,N==null?void 0:N.relative),I=Gn(W,$,u);if(!I){wr(g,S,tt(404,{pathname:$}),{flushSync:z});return}let{path:A,submission:J,error:xe}=Dc(s.v7_normalizeFormMethod,!0,$,N);if(xe){wr(g,S,xe,{flushSync:z});return}let V=Qa(I,A);if(O=(N&&N.preventScrollReset)===!0,J&&pt(J.formMethod)){oh(g,S,A,V,I,z,J);return}re.set(g,{routeId:S,path:A}),ih(g,S,A,V,I,z,J)}async function oh(g,S,k,N,z,W,$){if(ii(),re.delete(g),!N.route.action&&!N.route.lazy){let ee=tt(405,{method:$.formMethod,pathname:k,routeId:S});wr(g,S,ee,{flushSync:W});return}let I=y.fetchers.get(g);Bt(g,Xg($,I),{flushSync:W});let A=new AbortController,J=Dr(e.history,k,A.signal,$);ie.set(g,A);let xe=F,V=await Or("action",J,N,z,o,l,u,s.v7_relativeSplatPath);if(J.signal.aborted){ie.get(g)===A&&ie.delete(g);return}if(s.v7_fetcherPersist&&Pe.has(g)){if(xn(V)||qn(V)){Bt(g,Qt(void 0));return}}else{if(xn(V))if(ie.delete(g),B>xe){Bt(g,Qt(void 0));return}else return q.add(g),Bt(g,Fr($)),gr(y,V,{fetcherSubmission:$});if(qn(V)){wr(g,S,V.error);return}}if(En(V))throw tt(400,{type:"defer-action"});let te=y.navigation.location||y.location,_e=Dr(e.history,te,A.signal),Je=a||i,ke=y.navigation.state!=="idle"?Gn(Je,y.navigation.location,u):y.matches;Q(ke,"Didn't find any matches after fetcher action");let jn=++F;H.set(g,jn);let ui=Fr($,V.data);y.fetchers.set(g,ui);let[zn,Ht]=Fc(e.history,y,ke,$,te,!1,et,Fn,Ut,Pe,re,q,Je,u,{[N.route.id]:V.data},void 0);Ht.filter(ee=>ee.key!==g).forEach(ee=>{let Be=ee.key,Nl=y.fetchers.get(Be),dh=Fr(void 0,Nl?Nl.data:void 0);y.fetchers.set(Be,dh),ie.has(Be)&&$t(Be),ee.controller&&ie.set(Be,ee.controller)}),Ke({fetchers:new Map(y.fetchers)});let mn=()=>Ht.forEach(ee=>$t(ee.key));A.signal.addEventListener("abort",mn);let{results:si,loaderResults:Sr,fetcherResults:ci}=await es(y.matches,ke,zn,Ht,_e);if(A.signal.aborted)return;A.signal.removeEventListener("abort",mn),H.delete(g),ie.delete(g),Ht.forEach(ee=>ie.delete(ee.key));let Mn=Bc(si);if(Mn){if(Mn.idx>=zn.length){let ee=Ht[Mn.idx-zn.length].key;q.add(ee)}return gr(y,Mn.result)}let{loaderData:Tl,errors:Z}=Ac(y,y.matches,zn,Sr,void 0,Ht,ci,st);if(y.fetchers.has(g)){let ee=Qt(V.data);y.fetchers.set(g,ee)}ls(jn),y.navigation.state==="loading"&&jn>B?(Q(P,"Expected pending action"),M&&M.abort(),vr(y.navigation.location,{matches:ke,loaderData:Tl,errors:Z,fetchers:new Map(y.fetchers)})):(Ke({errors:Z,loaderData:Uc(y.loaderData,Tl,ke,Z),fetchers:new Map(y.fetchers)}),et=!1)}async function ih(g,S,k,N,z,W,$){let I=y.fetchers.get(g);Bt(g,Fr($,I?I.data:void 0),{flushSync:W});let A=new AbortController,J=Dr(e.history,k,A.signal);ie.set(g,A);let xe=F,V=await Or("loader",J,N,z,o,l,u,s.v7_relativeSplatPath);if(En(V)&&(V=await Qp(V,J.signal,!0)||V),ie.get(g)===A&&ie.delete(g),!J.signal.aborted){if(Pe.has(g)){Bt(g,Qt(void 0));return}if(xn(V))if(B>xe){Bt(g,Qt(void 0));return}else{q.add(g),await gr(y,V);return}if(qn(V)){wr(g,S,V.error);return}Q(!En(V),"Unhandled fetcher deferred data"),Bt(g,Qt(V.data))}}async function gr(g,S,k){let{submission:N,fetcherSubmission:z,replace:W}=k===void 0?{}:k;S.revalidate&&(et=!0);let $=pl(g.location,S.location,{_isRedirect:!0});if(Q($,"Expected a location on the redirect navigation"),n){let te=!1;if(S.reloadDocument)te=!0;else if($p.test(S.location)){const _e=e.history.createURL(S.location);te=_e.origin!==t.location.origin||kl(_e.pathname,u)==null}if(te){W?t.location.replace(S.location):t.location.assign(S.location);return}}M=null;let I=W===!0?me.Replace:me.Push,{formMethod:A,formAction:J,formEncType:xe}=g.navigation;!N&&!z&&A&&J&&xe&&(N=Hc(g.navigation));let V=N||z;if(Mg.has(S.status)&&V&&pt(V.formMethod))await hn(I,$,{submission:he({},V,{formAction:S.location}),preventScrollReset:O});else{let te=Vi($,N);await hn(I,$,{overrideNavigation:te,fetcherSubmission:z,preventScrollReset:O})}}async function es(g,S,k,N,z){let W=await Promise.all([...k.map(A=>Or("loader",z,A,S,o,l,u,s.v7_relativeSplatPath)),...N.map(A=>A.matches&&A.match&&A.controller?Or("loader",Dr(e.history,A.path,A.controller.signal),A.match,A.matches,o,l,u,s.v7_relativeSplatPath):{type:de.error,error:tt(404,{pathname:A.path})})]),$=W.slice(0,k.length),I=W.slice(k.length);return await Promise.all([$c(g,k,$,$.map(()=>z.signal),!1,y.loaderData),$c(g,N.map(A=>A.match),I,N.map(A=>A.controller?A.controller.signal:null),!0)]),{results:W,loaderResults:$,fetcherResults:I}}function ii(){et=!0,Fn.push(...ai()),re.forEach((g,S)=>{ie.has(S)&&(Ut.push(S),$t(S))})}function Bt(g,S,k){k===void 0&&(k={}),y.fetchers.set(g,S),Ke({fetchers:new Map(y.fetchers)},{flushSync:(k&&k.flushSync)===!0})}function wr(g,S,k,N){N===void 0&&(N={});let z=Yr(y.matches,S);Pl(g),Ke({errors:{[z.route.id]:k},fetchers:new Map(y.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function ts(g){return s.v7_fetcherPersist&&(gt.set(g,(gt.get(g)||0)+1),Pe.has(g)&&Pe.delete(g)),y.fetchers.get(g)||Ag}function Pl(g){let S=y.fetchers.get(g);ie.has(g)&&!(S&&S.state==="loading"&&H.has(g))&&$t(g),re.delete(g),H.delete(g),q.delete(g),Pe.delete(g),y.fetchers.delete(g)}function ah(g){if(s.v7_fetcherPersist){let S=(gt.get(g)||0)-1;S<=0?(gt.delete(g),Pe.add(g)):gt.set(g,S)}else Pl(g);Ke({fetchers:new Map(y.fetchers)})}function $t(g){let S=ie.get(g);Q(S,"Expected fetch controller: "+g),S.abort(),ie.delete(g)}function ns(g){for(let S of g){let k=ts(S),N=Qt(k.data);y.fetchers.set(S,N)}}function rs(){let g=[],S=!1;for(let k of q){let N=y.fetchers.get(k);Q(N,"Expected fetcher: "+k),N.state==="loading"&&(q.delete(k),g.push(k),S=!0)}return ns(g),S}function ls(g){let S=[];for(let[k,N]of H)if(N0}function uh(g,S){let k=y.blockers.get(g)||Lr;return ze.get(g)!==S&&ze.set(g,S),k}function os(g){y.blockers.delete(g),ze.delete(g)}function _l(g,S){let k=y.blockers.get(g)||Lr;Q(k.state==="unblocked"&&S.state==="blocked"||k.state==="blocked"&&S.state==="blocked"||k.state==="blocked"&&S.state==="proceeding"||k.state==="blocked"&&S.state==="unblocked"||k.state==="proceeding"&&S.state==="unblocked","Invalid blocker state transition: "+k.state+" -> "+S.state);let N=new Map(y.blockers);N.set(g,S),Ke({blockers:N})}function is(g){let{currentLocation:S,nextLocation:k,historyAction:N}=g;if(ze.size===0)return;ze.size>1&&dr(!1,"A router only supports one blocker at a time");let z=Array.from(ze.entries()),[W,$]=z[z.length-1],I=y.blockers.get(W);if(!(I&&I.state==="proceeding")&&$({currentLocation:S,nextLocation:k,historyAction:N}))return W}function ai(g){let S=[];return st.forEach((k,N)=>{(!g||g(N))&&(k.cancel(),S.push(N),st.delete(N))}),S}function sh(g,S,k){if(h=g,w=S,E=k||null,!v&&y.navigation===Hi){v=!0;let N=us(y.location,y.matches);N!=null&&Ke({restoreScrollPosition:N})}return()=>{h=null,w=null,E=null}}function as(g,S){return E&&E(g,S.map(N=>pg(N,y.loaderData)))||g.key}function ch(g,S){if(h&&w){let k=as(g,S);h[k]=w()}}function us(g,S){if(h){let k=as(g,S),N=h[k];if(typeof N=="number")return N}return null}function fh(g){o={},a=Ha(g,l,void 0,o)}return L={get basename(){return u},get future(){return s},get state(){return y},get routes(){return i},get window(){return t},initialize:Zp,subscribe:eh,enableScrollRestoration:sh,navigate:bu,fetch:lh,revalidate:th,createHref:g=>e.history.createHref(g),encodeLocation:g=>e.history.encodeLocation(g),getFetcher:ts,deleteFetcher:ah,dispose:bp,getBlocker:uh,deleteBlocker:os,_internalFetchControllers:ie,_internalActiveDeferreds:st,_internalSetRoutes:fh},L}function Bg(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Va(e,t,n,r,l,o,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=Xu(l||".",Yu(u,o),kl(e.pathname,n)||e.pathname,a==="path");return l==null&&(c.search=e.search,c.hash=e.hash),(l==null||l===""||l===".")&&s&&s.route.index&&!qu(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:an([n,c.pathname])),xl(c)}function Dc(e,t,n,r){if(!r||!Bg(r))return{path:n};if(r.formMethod&&!Jg(r.formMethod))return{path:n,error:tt(405,{method:r.formMethod})};let l=()=>({path:n,error:tt(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),a=Wp(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!pt(i))return l();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((E,w)=>{let[v,x]=w;return""+E+v+"="+x+` +`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!pt(i))return l();try{let h=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:h,text:void 0}}}catch{return l()}}}Q(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=Wa(r.formData),s=r.formData;else if(r.body instanceof FormData)u=Wa(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Mc(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Mc(u)}catch{return l()}let c={formMethod:i,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(pt(c.formMethod))return{path:n,submission:c};let f=At(n);return t&&f.search&&qu(f.search)&&u.append("index",""),f.search="?"+u,{path:xl(f),submission:c}}function $g(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Fc(e,t,n,r,l,o,i,a,u,s,c,f,h,E,w,v){let x=v?Object.values(v)[0]:w?Object.values(w)[0]:void 0,p=e.createURL(t.location),d=e.createURL(l),m=v?Object.keys(v)[0]:void 0,L=$g(n,m).filter((P,O)=>{let{route:M}=P;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if(Hg(t.loaderData,t.matches[O],P)||a.some(we=>we===P.route.id))return!0;let U=t.matches[O],G=P;return jc(P,he({currentUrl:p,currentParams:U.params,nextUrl:d,nextParams:G.params},r,{actionResult:x,defaultShouldRevalidate:i||p.pathname+p.search===d.pathname+d.search||p.search!==d.search||Vp(U,G)}))}),y=[];return c.forEach((P,O)=>{if(o||!n.some(ve=>ve.route.id===P.routeId)||s.has(O))return;let M=Gn(h,P.path,E);if(!M){y.push({key:O,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let U=t.fetchers.get(O),G=Qa(M,P.path),we=!1;f.has(O)?we=!1:u.includes(O)?we=!0:U&&U.state!=="idle"&&U.data===void 0?we=i:we=jc(G,he({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:n[n.length-1].params},r,{actionResult:x,defaultShouldRevalidate:i})),we&&y.push({key:O,routeId:P.routeId,path:P.path,matches:M,match:G,controller:new AbortController})}),[L,y]}function Hg(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Vp(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function jc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function zc(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];Q(l,"No route found in manifest");let o={};for(let i in r){let u=l[i]!==void 0&&i!=="hasErrorBoundary";dr(!u,'Route "'+l.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&&!fg.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,he({},t(l),{lazy:void 0}))}async function Or(e,t,n,r,l,o,i,a,u){u===void 0&&(u={});let s,c,f,h=v=>{let x,p=new Promise((d,m)=>x=m);return f=()=>x(),t.signal.addEventListener("abort",f),Promise.race([v({request:t,params:n.params,context:u.requestContext}),p])};try{let v=n.route[e];if(n.route.lazy)if(v){let x,p=await Promise.all([h(v).catch(d=>{x=d}),zc(n.route,o,l)]);if(x)throw x;c=p[0]}else if(await zc(n.route,o,l),v=n.route[e],v)c=await h(v);else if(e==="action"){let x=new URL(t.url),p=x.pathname+x.search;throw tt(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:de.data,data:void 0};else if(v)c=await h(v);else{let x=new URL(t.url),p=x.pathname+x.search;throw tt(404,{pathname:p})}Q(c!==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(v){s=de.error,c=v}finally{f&&t.signal.removeEventListener("abort",f)}if(Kg(c)){let v=c.status;if(zg.has(v)){let p=c.headers.get("Location");if(Q(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!$p.test(p))p=Va(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,p,a);else if(!u.isStaticRequest){let d=new URL(t.url),m=p.startsWith("//")?new URL(d.protocol+p):new URL(p),R=kl(m.pathname,i)!=null;m.origin===d.origin&&R&&(p=m.pathname+m.search+m.hash)}if(u.isStaticRequest)throw c.headers.set("Location",p),c;return{type:de.redirect,status:v,location:p,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===de.error?de.error:de.data,response:c};let x;try{let p=c.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?c.body==null?x=null:x=await c.json():x=await c.text()}catch(p){return{type:de.error,error:p}}return s===de.error?{type:s,error:new Gu(v,c.statusText,x),headers:c.headers}:{type:de.data,data:x,statusCode:c.status,headers:c.headers}}if(s===de.error)return{type:s,error:c};if(Qg(c)){var E,w;return{type:de.deferred,deferredData:c,statusCode:(E=c.init)==null?void 0:E.status,headers:((w=c.init)==null?void 0:w.headers)&&new Headers(c.init.headers)}}return{type:de.data,data:c}}function Dr(e,t,n,r){let l=e.createURL(Wp(t)).toString(),o={signal:n};if(r&&pt(r.formMethod)){let{formMethod:i,formEncType:a}=r;o.method=i.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=Wa(r.formData):o.body=r.formData}return new Request(l,o)}function Wa(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Mc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Vg(e,t,n,r,l){let o={},i=null,a,u=!1,s={};return n.forEach((c,f)=>{let h=t[f].route.id;if(Q(!xn(c),"Cannot handle redirect results in processLoaderData"),qn(c)){let E=Yr(e,h),w=c.error;r&&(w=Object.values(r)[0],r=void 0),i=i||{},i[E.route.id]==null&&(i[E.route.id]=w),o[h]=void 0,u||(u=!0,a=Ip(c.error)?c.error.status:500),c.headers&&(s[h]=c.headers)}else En(c)?(l.set(h,c.deferredData),o[h]=c.deferredData.data):o[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[h]=c.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:s}}function Ac(e,t,n,r,l,o,i,a){let{loaderData:u,errors:s}=Vg(t,n,r,l,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Ic(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 tt(e,t){let{pathname:n,routeId:r,method:l,type:o}=t===void 0?{}:t,i="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(i="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(i="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",a='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new Gu(e||500,i,new Error(a),!0)}function Bc(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(xn(n))return{result:n,idx:t}}}function Wp(e){let t=typeof e=="string"?At(e):e;return xl(he({},t,{hash:""}))}function Wg(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function En(e){return e.type===de.deferred}function qn(e){return e.type===de.error}function xn(e){return(e&&e.type)===de.redirect}function Qg(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 Kg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Jg(e){return jg.has(e.toLowerCase())}function pt(e){return Dg.has(e.toLowerCase())}async function $c(e,t,n,r,l,o){for(let i=0;if.route.id===u.route.id),c=s!=null&&!Vp(s,u)&&(o&&o[u.route.id])!==void 0;if(En(a)&&(l||c)){let f=r[i];Q(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Qp(a,f,l).then(h=>{h&&(n[i]=h||n[i])})}}}async function Qp(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:de.data,data:e.deferredData.unwrappedData}}catch(l){return{type:de.error,error:l}}return{type:de.data,data:e.deferredData.data}}}function qu(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Qa(e,t){let n=typeof t=="string"?At(t).search:t.search;if(e[e.length-1].route.index&&qu(n||""))return e[e.length-1];let r=Up(e);return r[r.length-1]}function Hc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:o,json:i}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,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 Vi(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 Yg(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 Fr(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 Xg(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 Qt(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 Gg(e,t){try{let n=e.sessionStorage.getItem(Hp);if(n){let r=JSON.parse(n);for(let[l,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(l,new Set(o||[]))}}catch{}}function qg(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Hp,JSON.stringify(n))}catch(r){dr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -61,7 +61,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),T.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let f=Xu(s,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:an([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,i,o,e])}const Zg=T.createContext(null);function bg(e){let t=T.useContext(pn).outlet;return t&&T.createElement(Zg.Provider,{value:e},t)}function e0(e,t,n,r){Rl()||Q(!1);let{navigator:l}=T.useContext(Cl),{matches:o}=T.useContext(pn),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let s=Zu(),c;if(t){var f;let x=typeof t=="string"?At(t):t;u==="/"||(f=x.pathname)!=null&&f.startsWith(u)||Q(!1),c=x}else c=s;let h=c.pathname||"/",E=h;if(u!=="/"){let x=u.replace(/^\//,"").split("/");E="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=Xn(e,{pathname:E}),y=o0(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:an([u,l.encodeLocation?l.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:an([u,l.encodeLocation?l.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&y?T.createElement(oi.Provider,{value:{location:hl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:he.Pop}},y):y}function t0(){let e=s0(),t=Ip(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:l},n):null,null)}const n0=T.createElement(t0,null);class r0 extends T.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?T.createElement(pn.Provider,{value:this.props.routeContext},T.createElement(Jp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function l0(e){let{routeContext:t,match:n,children:r}=e,l=T.useContext(li);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(pn.Provider,{value:t},r)}function o0(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let c=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id]));c>=0||Q(!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,h)=>{let E,w=!1,y=null,x=null;n&&(E=a&&f.route.id?a[f.route.id]:void 0,y=f.route.errorElement||n0,u&&(s<0&&h===0?(f0("route-fallback",!1),w=!0,x=null):s===h&&(w=!0,x=f.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,h+1)),d=()=>{let m;return E?m=y:w?m=x:f.route.Component?m=T.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,T.createElement(l0,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?T.createElement(r0,{location:n.location,revalidation:n.revalidation,component:y,error:E,children:d(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):d()},null)}var Xp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Xp||{}),jo=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}(jo||{});function i0(e){let t=T.useContext(li);return t||Q(!1),t}function a0(e){let t=T.useContext(Kp);return t||Q(!1),t}function u0(e){let t=T.useContext(pn);return t||Q(!1),t}function Gp(e){let t=u0(),n=t.matches[t.matches.length-1];return n.route.id||Q(!1),n.route.id}function s0(){var e;let t=T.useContext(Jp),n=a0(jo.UseRouteError),r=Gp(jo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function c0(){let{router:e}=i0(Xp.UseNavigateStable),t=Gp(jo.UseNavigateStable),n=T.useRef(!1);return Yp(()=>{n.current=!0}),T.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,hl({fromRouteId:t},o)))},[e,t])}const Vc={};function f0(e,t,n){!t&&!Vc[e]&&(Vc[e]=!0)}function d0(e){let{to:t,replace:n,state:r,relative:l}=e;Rl()||Q(!1);let{future:o,static:i}=T.useContext(Cl),{matches:a}=T.useContext(pn),{pathname:u}=Zu(),s=vr(),c=Xu(t,Yu(a,o.v7_relativeSplatPath),u,l==="path"),f=JSON.stringify(c);return T.useEffect(()=>s(JSON.parse(f),{replace:n,state:r,relative:l}),[s,f,l,n,r]),null}function p0(e){return bg(e.context)}function h0(e){let{basename:t="/",children:n=null,location:r,navigationType:l=he.Pop,navigator:o,static:i=!1,future:a}=e;Rl()&&Q(!1);let u=t.replace(/^\/*/,"/"),s=T.useMemo(()=>({basename:u,navigator:o,static:i,future:hl({v7_relativeSplatPath:!1},a)}),[u,a,o,i]);typeof r=="string"&&(r=At(r));let{pathname:c="/",search:f="",hash:h="",state:E=null,key:w="default"}=r,y=T.useMemo(()=>{let x=kl(c,u);return x==null?null:{location:{pathname:x,search:f,hash:h,state:E,key:w},navigationType:l}},[u,c,f,h,E,w,l]);return y==null?null:T.createElement(Cl.Provider,{value:s},T.createElement(oi.Provider,{children:n,value:y}))}new Promise(()=>{});function m0(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:T.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:T.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:T.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),T.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let f=Xu(s,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:an([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,i,o,e])}const bg=T.createContext(null);function e0(e){let t=T.useContext(pn).outlet;return t&&T.createElement(bg.Provider,{value:e},t)}function t0(e,t,n,r){Rl()||Q(!1);let{navigator:l}=T.useContext(Cl),{matches:o}=T.useContext(pn),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let s=Zu(),c;if(t){var f;let x=typeof t=="string"?At(t):t;u==="/"||(f=x.pathname)!=null&&f.startsWith(u)||Q(!1),c=x}else c=s;let h=c.pathname||"/",E=h;if(u!=="/"){let x=u.replace(/^\//,"").split("/");E="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=Gn(e,{pathname:E}),v=i0(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:an([u,l.encodeLocation?l.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:an([u,l.encodeLocation?l.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&v?T.createElement(oi.Provider,{value:{location:hl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:me.Pop}},v):v}function n0(){let e=c0(),t=Ip(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:l},n):null,null)}const r0=T.createElement(n0,null);class l0 extends T.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?T.createElement(pn.Provider,{value:this.props.routeContext},T.createElement(Jp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function o0(e){let{routeContext:t,match:n,children:r}=e,l=T.useContext(li);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(pn.Provider,{value:t},r)}function i0(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let c=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id]));c>=0||Q(!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,h)=>{let E,w=!1,v=null,x=null;n&&(E=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||r0,u&&(s<0&&h===0?(d0("route-fallback",!1),w=!0,x=null):s===h&&(w=!0,x=f.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,h+1)),d=()=>{let m;return E?m=v:w?m=x:f.route.Component?m=T.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,T.createElement(o0,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?T.createElement(l0,{location:n.location,revalidation:n.revalidation,component:v,error:E,children:d(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):d()},null)}var Xp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Xp||{}),jo=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}(jo||{});function a0(e){let t=T.useContext(li);return t||Q(!1),t}function u0(e){let t=T.useContext(Kp);return t||Q(!1),t}function s0(e){let t=T.useContext(pn);return t||Q(!1),t}function Gp(e){let t=s0(),n=t.matches[t.matches.length-1];return n.route.id||Q(!1),n.route.id}function c0(){var e;let t=T.useContext(Jp),n=u0(jo.UseRouteError),r=Gp(jo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function f0(){let{router:e}=a0(Xp.UseNavigateStable),t=Gp(jo.UseNavigateStable),n=T.useRef(!1);return Yp(()=>{n.current=!0}),T.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,hl({fromRouteId:t},o)))},[e,t])}const Vc={};function d0(e,t,n){!t&&!Vc[e]&&(Vc[e]=!0)}function p0(e){let{to:t,replace:n,state:r,relative:l}=e;Rl()||Q(!1);let{future:o,static:i}=T.useContext(Cl),{matches:a}=T.useContext(pn),{pathname:u}=Zu(),s=Dn(),c=Xu(t,Yu(a,o.v7_relativeSplatPath),u,l==="path"),f=JSON.stringify(c);return T.useEffect(()=>s(JSON.parse(f),{replace:n,state:r,relative:l}),[s,f,l,n,r]),null}function h0(e){return e0(e.context)}function m0(e){let{basename:t="/",children:n=null,location:r,navigationType:l=me.Pop,navigator:o,static:i=!1,future:a}=e;Rl()&&Q(!1);let u=t.replace(/^\/*/,"/"),s=T.useMemo(()=>({basename:u,navigator:o,static:i,future:hl({v7_relativeSplatPath:!1},a)}),[u,a,o,i]);typeof r=="string"&&(r=At(r));let{pathname:c="/",search:f="",hash:h="",state:E=null,key:w="default"}=r,v=T.useMemo(()=>{let x=kl(c,u);return x==null?null:{location:{pathname:x,search:f,hash:h,state:E,key:w},navigationType:l}},[u,c,f,h,E,w,l]);return v==null?null:T.createElement(Cl.Provider,{value:s},T.createElement(oi.Provider,{children:n,value:v}))}new Promise(()=>{});function y0(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:T.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:T.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:T.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -70,4 +70,4 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function P0(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=T.useState(n.state),[i,a]=T.useState(),[u,s]=T.useState({isTransitioning:!1}),[c,f]=T.useState(),[h,E]=T.useState(),[w,y]=T.useState(),x=T.useRef(new Map),{v7_startTransition:p}=r||{},d=T.useCallback(P=>{p?C0(P):P()},[p]),m=T.useCallback((P,O)=>{let{deletedFetchers:M,unstable_flushSync:U,unstable_viewTransitionOpts:G}=O;M.forEach(ye=>x.current.delete(ye)),P.fetchers.forEach((ye,et)=>{ye.data!==void 0&&x.current.set(et,ye.data)});let we=n.window==null||typeof n.window.document.startViewTransition!="function";if(!G||we){U?jr(()=>o(P)):d(()=>o(P));return}if(U){jr(()=>{h&&(c&&c.resolve(),h.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:G.currentLocation,nextLocation:G.nextLocation})});let ye=n.window.document.startViewTransition(()=>{jr(()=>o(P))});ye.finished.finally(()=>{jr(()=>{f(void 0),E(void 0),a(void 0),s({isTransitioning:!1})})}),jr(()=>E(ye));return}h?(c&&c.resolve(),h.skipTransition(),y({state:P,currentLocation:G.currentLocation,nextLocation:G.nextLocation})):(a(P),s({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}))},[n.window,h,c,x,d]);T.useLayoutEffect(()=>n.subscribe(m),[n,m]),T.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new R0)},[u]),T.useEffect(()=>{if(c&&i&&n.window){let P=i,O=c.promise,M=n.window.document.startViewTransition(async()=>{d(()=>o(P)),await O});M.finished.finally(()=>{f(void 0),E(void 0),a(void 0),s({isTransitioning:!1})}),E(M)}},[d,i,c,n.window]),T.useEffect(()=>{c&&i&&l.location.key===i.location.key&&c.resolve()},[c,h,l.location,i]),T.useEffect(()=>{!u.isTransitioning&&w&&(a(w.state),s({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),y(void 0))},[u.isTransitioning,w]),T.useEffect(()=>{},[]);let R=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:P=>n.navigate(P),push:(P,O,M)=>n.navigate(P,{state:O,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(P,O,M)=>n.navigate(P,{replace:!0,state:O,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),L=n.basename||"/",v=T.useMemo(()=>({router:n,navigator:R,static:!1,basename:L}),[n,R,L]);return T.createElement(T.Fragment,null,T.createElement(li.Provider,{value:v},T.createElement(Kp.Provider,{value:l},T.createElement(E0.Provider,{value:x.current},T.createElement(S0.Provider,{value:u},T.createElement(h0,{basename:L,location:l.location,navigationType:l.historyAction,navigator:R,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},l.initialized||n.future.v7_partialHydration?T.createElement(_0,{routes:n.routes,future:n.future,state:l}):t))))),null)}function _0(e){let{routes:t,future:n,state:r}=e;return e0(t,void 0,r,n)}var Kc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Kc||(Kc={}));var Jc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Jc||(Jc={}));const T0=()=>{const{token:e}=ri();return e?A.jsx(p0,{}):A.jsx(d0,{to:"/login"})},N0=()=>A.jsx("nav",{className:"navbar navbar-expand-lg navbar-dark bg-dark w-100",children:A.jsxs("div",{className:"container",children:[A.jsx("a",{className:"navbar-brand",href:"/",children:"Your Used Car Dealership"}),A.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#basicNavbarNav","aria-controls":"basicNavbarNav","aria-expanded":"false","aria-label":"Toggle navigation",children:A.jsx("span",{className:"navbar-toggler-icon"})}),A.jsx("div",{className:"collapse navbar-collapse",id:"basicNavbarNav",children:A.jsxs("ul",{className:"navbar-nav me-auto",children:[A.jsx("li",{className:"nav-item",children:A.jsx("a",{className:"nav-link active","aria-current":"page",href:"/",children:"Home"})}),A.jsx("li",{className:"nav-item",children:A.jsx("a",{className:"nav-link",href:"/inventory",children:"Inventory"})}),A.jsx("li",{className:"nav-item",children:A.jsx("a",{className:"nav-link",href:"/about",children:"About Us"})}),A.jsx("li",{className:"nav-item",children:A.jsx("a",{className:"nav-link",href:"/contact",children:"Contact"})})]})})]})}),L0=()=>{const{setToken:e}=ri(),t=vr(),n=()=>{e("this is a test token"),t("/",{replace:!0})};return A.jsxs(A.Fragment,{children:[A.jsx("h1",{children:"Login Page"}),A.jsx("div",{children:A.jsx("button",{onClick:n,children:"Click to Login"})})]})},O0=()=>{const{setToken:e}=ri(),t=vr(),n=()=>{e(),t("/",{replace:!0})};return A.jsxs(A.Fragment,{children:[A.jsx("h1",{children:"Logout Page"}),A.jsx("button",{onClick:n,children:"Click to Logout"})]})},D0=()=>{const e=vr(),t=()=>{e("/login")};return A.jsxs("div",{children:[A.jsx("h1",{children:"Home Page"}),A.jsx("button",{onClick:t,children:"Go to Login Page"})]})},F0=()=>{const e=vr(),t=()=>{e("/logout")};return A.jsxs("div",{children:[A.jsx("h1",{children:"UserDashboard Page"}),A.jsx("button",{onClick:t,children:"Go to Logout Page"})]})},j0=()=>{const e=vr(),t=()=>{e("/logout",{replace:!0})};return A.jsxs("div",{children:[A.jsx("h1",{children:"Profile Page"}),A.jsx("button",{onClick:t,children:"Go to Logout Page"})]})},M0=()=>{const{token:e}=ri(),t=[{path:"/service",element:A.jsx("div",{children:"Service Page"})},{path:"/about-us",element:A.jsx("div",{children:"About Us"})}],n=[{path:"/",element:A.jsx(T0,{}),children:[{path:"/",element:A.jsx(F0,{})},{path:"/profile",element:A.jsx(j0,{})},{path:"/logout",element:A.jsx(O0,{})}]}],r=[{path:"/",element:A.jsx(D0,{})},{path:"/login",element:A.jsx(L0,{})}],l=y0([...t,...e?[]:r,...n],{basename:"/usedcars"});return A.jsxs(A.Fragment,{children:[A.jsx(N0,{})," ",A.jsx(P0,{router:l})]})};function z0(){return A.jsx(Mp,{children:A.jsx(M0,{})})}Wi.createRoot(document.getElementById("root")).render(A.jsx(lf.StrictMode,{children:A.jsx(z0,{})})); + */function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function _0(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=T.useState(n.state),[i,a]=T.useState(),[u,s]=T.useState({isTransitioning:!1}),[c,f]=T.useState(),[h,E]=T.useState(),[w,v]=T.useState(),x=T.useRef(new Map),{v7_startTransition:p}=r||{},d=T.useCallback(P=>{p?R0(P):P()},[p]),m=T.useCallback((P,O)=>{let{deletedFetchers:M,unstable_flushSync:U,unstable_viewTransitionOpts:G}=O;M.forEach(ve=>x.current.delete(ve)),P.fetchers.forEach((ve,et)=>{ve.data!==void 0&&x.current.set(et,ve.data)});let we=n.window==null||typeof n.window.document.startViewTransition!="function";if(!G||we){U?jr(()=>o(P)):d(()=>o(P));return}if(U){jr(()=>{h&&(c&&c.resolve(),h.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:G.currentLocation,nextLocation:G.nextLocation})});let ve=n.window.document.startViewTransition(()=>{jr(()=>o(P))});ve.finished.finally(()=>{jr(()=>{f(void 0),E(void 0),a(void 0),s({isTransitioning:!1})})}),jr(()=>E(ve));return}h?(c&&c.resolve(),h.skipTransition(),v({state:P,currentLocation:G.currentLocation,nextLocation:G.nextLocation})):(a(P),s({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}))},[n.window,h,c,x,d]);T.useLayoutEffect(()=>n.subscribe(m),[n,m]),T.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new P0)},[u]),T.useEffect(()=>{if(c&&i&&n.window){let P=i,O=c.promise,M=n.window.document.startViewTransition(async()=>{d(()=>o(P)),await O});M.finished.finally(()=>{f(void 0),E(void 0),a(void 0),s({isTransitioning:!1})}),E(M)}},[d,i,c,n.window]),T.useEffect(()=>{c&&i&&l.location.key===i.location.key&&c.resolve()},[c,h,l.location,i]),T.useEffect(()=>{!u.isTransitioning&&w&&(a(w.state),s({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),v(void 0))},[u.isTransitioning,w]),T.useEffect(()=>{},[]);let R=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:P=>n.navigate(P),push:(P,O,M)=>n.navigate(P,{state:O,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(P,O,M)=>n.navigate(P,{replace:!0,state:O,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),L=n.basename||"/",y=T.useMemo(()=>({router:n,navigator:R,static:!1,basename:L}),[n,R,L]);return T.createElement(T.Fragment,null,T.createElement(li.Provider,{value:y},T.createElement(Kp.Provider,{value:l},T.createElement(x0.Provider,{value:x.current},T.createElement(E0.Provider,{value:u},T.createElement(m0,{basename:L,location:l.location,navigationType:l.historyAction,navigator:R,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},l.initialized||n.future.v7_partialHydration?T.createElement(T0,{routes:n.routes,future:n.future,state:l}):t))))),null)}function T0(e){let{routes:t,future:n,state:r}=e;return t0(t,void 0,r,n)}var Kc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Kc||(Kc={}));var Jc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Jc||(Jc={}));const N0=()=>{const{token:e}=ri();return e?D.jsx(h0,{}):D.jsx(p0,{to:"/login"})},L0=()=>{const{setToken:e}=ri(),t=Dn(),n=()=>{e("this is a test token"),t("/",{replace:!0})};return D.jsxs(D.Fragment,{children:[D.jsx("h1",{children:"Login Page"}),D.jsx("div",{children:D.jsx("button",{onClick:n,children:"Click to Login"})})]})},O0=()=>{const{setToken:e}=ri(),t=Dn(),n=()=>{e(),t("/",{replace:!0})};return D.jsxs(D.Fragment,{children:[D.jsx("h1",{children:"Logout Page"}),D.jsx("button",{onClick:n,children:"Click to Logout"})]})},qp=()=>{const e=Dn();return D.jsx("nav",{className:"navbar navbar-expand-lg navbar-dark bg-dark w-100",children:D.jsxs("div",{className:"container",children:[D.jsx("a",{className:"navbar-brand",href:"/",onClick:()=>e("/"),children:"Split Pdf"}),D.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#basicNavbarNav","aria-controls":"basicNavbarNav","aria-expanded":"false","aria-label":"Toggle navigation",children:D.jsx("span",{className:"navbar-toggler-icon"})}),D.jsx("div",{className:"collapse navbar-collapse",id:"basicNavbarNav",children:D.jsxs("ul",{className:"navbar-nav me-auto",children:[D.jsx("li",{className:"nav-item",children:D.jsx("a",{className:"nav-link",onClick:()=>e("/"),"aria-current":"page",children:"Home"})}),D.jsx("li",{className:"nav-item",children:D.jsx("a",{className:"nav-link",onClick:()=>e("/fileupload"),children:"Upload Files"})})]})})]})})},D0=()=>{const e=Dn(),t=()=>{e("/fileupload")};return D.jsxs(D.Fragment,{children:[D.jsx(qp,{}),D.jsx("h1",{children:"Home Page"}),D.jsx("button",{onClick:t,children:"Go to File Upload"})]})},F0=()=>{const e=Dn(),t=()=>{e("/logout")};return D.jsxs("div",{children:[D.jsx("h1",{children:"UserDashboard Page"}),D.jsx("button",{onClick:t,children:"Go to Logout Page"})]})},j0=()=>{const e=Dn(),t=()=>{e("/logout",{replace:!0})};return D.jsxs("div",{children:[D.jsx("h1",{children:"Profile Page"}),D.jsx("button",{onClick:t,children:"Go to Logout Page"})]})},z0=()=>{const[e,t]=T.useState(null),[n,r]=T.useState("idle"),[l,o]=T.useState([]),i=c=>{const f=c.target.files[0];t(f)},a=async()=>{r("uploading");try{const c=new FormData;c.append("file",e);const f=await fe.post("http://manavmandal.pythonanywhere.com/upload",c,{headers:{"Content-Type":"multipart/form-data"}});console.log("Upload successful:",f.data),r("success"),o(f.data.files||[])}catch(c){console.error("Upload failed:",c),r("failed")}},u=()=>{t(null),r("idle"),o([])},s=async()=>{try{const c=await fe.post("http://manavmandal.pythonanywhere.com/split",{file:e},{responseType:"blob"}),f=window.URL.createObjectURL(new Blob([c.data])),h=document.createElement("a");h.href=f,h.setAttribute("download","split_files.zip"),document.body.appendChild(h),h.click(),document.body.removeChild(h)}catch(c){console.error("Split and download failed:",c)}};return D.jsxs(D.Fragment,{children:[D.jsx(qp,{}),D.jsx("div",{className:"container mt-5",children:D.jsxs("div",{className:"row",children:[D.jsx("h1",{className:"mb-5",children:"Upload Files"}),D.jsxs("div",{className:"col-md-6",children:[D.jsx("input",{type:"file",accept:".pdf",onChange:i,className:"form-control mb-3"}),e&&D.jsx("div",{className:"card mb-3",children:D.jsxs("div",{className:"card-body",children:[D.jsx("h5",{className:"card-title",children:e.name}),n==="idle"&&D.jsxs(D.Fragment,{children:[D.jsx("button",{className:"btn btn-danger me-2",onClick:u,children:"Delete"}),D.jsx("button",{className:"btn btn-primary",onClick:a,disabled:n==="uploading",children:n==="uploading"?"Uploading...":"Upload"})]}),n==="success"&&D.jsx("span",{className:"text-success",children:"Upload Successful!"}),n==="failed"&&D.jsx("span",{className:"text-danger",children:"Upload Failed!"})]})}),l.length>0&&D.jsxs("div",{className:"mt-3",children:[D.jsx("h2",{children:"Response Files:"}),D.jsx("ul",{className:"list-group",children:l.map((c,f)=>D.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center",children:[c.name,D.jsx("button",{className:"btn btn-primary",onClick:()=>{const h=document.createElement("a");h.href=c.url,h.setAttribute("download",c.name),document.body.appendChild(h),h.click(),document.body.removeChild(h)},children:"Download"})]},f))})]})]}),n==="success"&&D.jsx("div",{className:"col-md-6",children:D.jsx("button",{className:"btn btn-success",onClick:s,children:"Split & Download"})})]})})]})},M0=()=>{const{token:e}=ri(),t=[{path:"/service",element:D.jsx("div",{children:"Service Page"})},{path:"/about-us",element:D.jsx("div",{children:"About Us"})}],n=[{path:"/",element:D.jsx(N0,{}),children:[{path:"/",element:D.jsx(F0,{})},{path:"/profile",element:D.jsx(j0,{})},{path:"/logout",element:D.jsx(O0,{})}]}],r=[{path:"/",element:D.jsx(D0,{})},{path:"/login",element:D.jsx(L0,{})},{path:"/fileupload",element:D.jsx(z0,{})}],l=g0([...t,...e?[]:r,...n],{basename:"/splitpdf"});return D.jsx(D.Fragment,{children:D.jsx(_0,{router:l})})};function A0(){return D.jsx(zp,{children:D.jsx(M0,{})})}Wi.createRoot(document.getElementById("root")).render(D.jsx(lf.StrictMode,{children:D.jsx(A0,{})})); diff --git a/index.html b/index.html index 7870147..defec16 100644 --- a/index.html +++ b/index.html @@ -1,20 +1,34 @@ - + - + - Used Cars + Split Pdf - - - + + + + +
- +