const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FunnelChart-DMBXKsfb.js","assets/index-MBAMFHrS.js","assets/TrendChart-DJcrTtwd.js"])))=>i.map(i=>d[i]); var jg=n=>{throw TypeError(n)};var hd=(n,a,l)=>a.has(n)||jg("Cannot "+l);var W=(n,a,l)=>(hd(n,a,"read from private field"),l?l.call(n):a.get(n)),Re=(n,a,l)=>a.has(n)?jg("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,l),Se=(n,a,l,i)=>(hd(n,a,"write to private field"),i?i.call(n,l):a.set(n,l),l),it=(n,a,l)=>(hd(n,a,"access private method"),l);var su=(n,a,l,i)=>({set _(s){Se(n,a,s,l)},get _(){return W(n,a,i)}});function Cw(n,a){for(var l=0;li[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function C0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var md={exports:{}},Mo={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Bg;function Tw(){if(Bg)return Mo;Bg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(i,s,c){var d=null;if(c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),"key"in s){c={};for(var h in s)h!=="key"&&(c[h]=s[h])}else c=s;return s=c.ref,{$$typeof:n,type:i,key:d,ref:s!==void 0?s:null,props:c}}return Mo.Fragment=a,Mo.jsx=l,Mo.jsxs=l,Mo}var Ug;function Dw(){return Ug||(Ug=1,md.exports=Tw()),md.exports}var T=Dw(),yd={exports:{}},Te={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Hg;function Nw(){if(Hg)return Te;Hg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),b=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function M(R,F,K){this.props=R,this.context=F,this.refs=C,this.updater=K||O}M.prototype.isReactComponent={},M.prototype.setState=function(R,F){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,F,"setState")},M.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function _(){}_.prototype=M.prototype;function A(R,F,K){this.props=R,this.context=F,this.refs=C,this.updater=K||O}var z=A.prototype=new _;z.constructor=A,E(z,M.prototype),z.isPureReactComponent=!0;var U=Array.isArray;function D(){}var Q={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function I(R,F,K){var te=K.ref;return{$$typeof:n,type:R,key:F,ref:te!==void 0?te:null,props:K}}function ae(R,F){return I(R.type,F,R.props)}function ue(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function de(R){var F={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(K){return F[K]})}var me=/\/+/g;function ye(R,F){return typeof R=="object"&&R!==null&&R.key!=null?de(""+R.key):F.toString(36)}function ve(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(D,D):(R.status="pending",R.then(function(F){R.status==="pending"&&(R.status="fulfilled",R.value=F)},function(F){R.status==="pending"&&(R.status="rejected",R.reason=F)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function j(R,F,K,te,ne){var re=typeof R;(re==="undefined"||re==="boolean")&&(R=null);var Oe=!1;if(R===null)Oe=!0;else switch(re){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(R.$$typeof){case n:case a:Oe=!0;break;case v:return Oe=R._init,j(Oe(R._payload),F,K,te,ne)}}if(Oe)return ne=ne(R),Oe=te===""?"."+ye(R,0):te,U(ne)?(K="",Oe!=null&&(K=Oe.replace(me,"$&/")+"/"),j(ne,F,K,"",function(st){return st})):ne!=null&&(ue(ne)&&(ne=ae(ne,K+(ne.key==null||R&&R.key===ne.key?"":(""+ne.key).replace(me,"$&/")+"/")+Oe)),F.push(ne)),1;Oe=0;var Ce=te===""?".":te+":";if(U(R))for(var be=0;be>>1,$=j[le];if(0>>1;les(K,ee))te<$&&0>s(ne,K)?(j[le]=ne,j[te]=ee,le=te):(j[le]=K,j[F]=ee,le=F);else if(te<$&&0>s(ne,ee))j[le]=ne,j[te]=ee,le=te;else break e}}return P}function s(j,P){var ee=j.sortIndex-P.sortIndex;return ee!==0?ee:j.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var y=[],m=[],v=1,p=null,b=3,w=!1,O=!1,E=!1,C=!1,M=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function z(j){for(var P=l(m);P!==null;){if(P.callback===null)i(m);else if(P.startTime<=j)i(m),P.sortIndex=P.expirationTime,a(y,P);else break;P=l(m)}}function U(j){if(E=!1,z(j),!O)if(l(y)!==null)O=!0,D||(D=!0,de());else{var P=l(m);P!==null&&ve(U,P.startTime-j)}}var D=!1,Q=-1,Y=5,I=-1;function ae(){return C?!0:!(n.unstable_now()-Ij&&ae());){var le=p.callback;if(typeof le=="function"){p.callback=null,b=p.priorityLevel;var $=le(p.expirationTime<=j);if(j=n.unstable_now(),typeof $=="function"){p.callback=$,z(j),P=!0;break t}p===l(y)&&i(y),z(j)}else i(y);p=l(y)}if(p!==null)P=!0;else{var R=l(m);R!==null&&ve(U,R.startTime-j),P=!1}}break e}finally{p=null,b=ee,w=!1}P=void 0}}finally{P?de():D=!1}}}var de;if(typeof A=="function")de=function(){A(ue)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,ye=me.port2;me.port1.onmessage=ue,de=function(){ye.postMessage(null)}}else de=function(){M(ue,0)};function ve(j,P){Q=M(function(){j(n.unstable_now())},P)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125le?(j.sortIndex=ee,a(m,j),l(y)===null&&j===l(m)&&(E?(_(Q),Q=-1):E=!0,ve(U,ee-le))):(j.sortIndex=$,a(y,j),O||w||(O=!0,D||(D=!0,de()))),j},n.unstable_shouldYield=ae,n.unstable_wrapCallback=function(j){var P=b;return function(){var ee=b;b=P;try{return j.apply(this,arguments)}finally{b=ee}}}})(vd)),vd}var qg;function _w(){return qg||(qg=1,gd.exports=Aw()),gd.exports}var bd={exports:{}},Ut={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Gg;function Rw(){if(Gg)return Ut;Gg=1;var n=uh();function a(y){var m="https://react.dev/errors/"+y;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),bd.exports=Rw(),bd.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Qg;function kw(){if(Qg)return Co;Qg=1;var n=_w(),a=uh(),l=T0();function i(e){var t="https://react.dev/errors/"+e;if(1$||(e.current=le[$],le[$]=null,$--)}function K(e,t){$++,le[$]=e.current,e.current=t}var te=R(null),ne=R(null),re=R(null),Oe=R(null);function Ce(e,t){switch(K(re,t),K(ne,e),K(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rg(t),e=lg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(te),K(te,e)}function be(){F(te),F(ne),F(re)}function st(e){e.memoizedState!==null&&K(Oe,e);var t=te.current,r=lg(t,e.type);t!==r&&(K(ne,e),K(te,r))}function gt(e){ne.current===e&&(F(te),F(ne)),Oe.current===e&&(F(Oe),So._currentValue=ee)}var ft,$t;function et(e){if(ft===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ft=t&&t[1]||"",$t=-1)":-1u||N[o]!==L[u]){var X=` `+N[o].replace(" at new "," at ");return e.displayName&&X.includes("")&&(X=X.replace("",e.displayName)),X}while(1<=o&&0<=u);break}}}finally{Nn=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?et(r):""}function An(e,t){switch(e.tag){case 26:case 27:case 5:return et(e.type);case 16:return et("Lazy");case 13:return e.child!==t&&t!==null?et("Suspense Fallback"):et("Suspense");case 19:return et("SuspenseList");case 0:case 15:return Vn(e.type,!1);case 11:return Vn(e.type.render,!1);case 1:return Vn(e.type,!0);case 31:return et("Activity");default:return""}}function ha(e){try{var t="",r=null;do t+=An(e,r),r=e,e=e.return;while(e);return t}catch(o){return` Error generating stack: `+o.message+` `+o.stack}}var Tt=Object.prototype.hasOwnProperty,mn=n.unstable_scheduleCallback,Yr=n.unstable_cancelCallback,Dt=n.unstable_shouldYield,_n=n.unstable_requestPaint,vt=n.unstable_now,Lr=n.unstable_getCurrentPriorityLevel,ma=n.unstable_ImmediatePriority,xl=n.unstable_UserBlockingPriority,ya=n.unstable_NormalPriority,qr=n.unstable_LowPriority,Rn=n.unstable_IdlePriority,Sl=n.log,Fn=n.unstable_setDisableYieldValue,pa=null,Nt=null;function Jt(e){if(typeof Sl=="function"&&Fn(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(pa,e)}catch{}}var wt=Math.clz32?Math.clz32:yn,wl=Math.log,$a=Math.LN2;function yn(e){return e>>>=0,e===0?32:31-(wl(e)/$a|0)|0}var ga=256,Ee=262144,Ne=4194304;function xe(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ie(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=o&134217727;return S!==0?(o=S&~f,o!==0?u=xe(o):(g&=S,g!==0?u=xe(g):r||(r=S&~e,r!==0&&(u=xe(r))))):(S=o&~f,S!==0?u=xe(S):g!==0?u=xe(g):r||(r=o&~e,r!==0&&(u=xe(r)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:u}function pe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ge(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Me(){var e=Ne;return Ne<<=1,(Ne&62914560)===0&&(Ne=4194304),e}function Xn(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function $e(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bt(e,t,r,o,u,f){var g=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var S=e.entanglements,N=e.expirationTimes,L=e.hiddenUpdates;for(r=g&~r;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function gn(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ic(e,t,r,o,u,f,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pn(t)):e.value!==""+pn(t)&&(e.value=""+pn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?oc(e,g,pn(t)):r!=null?oc(e,g,pn(r)):o!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+pn(S):e.removeAttribute("name")}function Jh(e,t,r,o,u,f,g,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||r!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){lc(e);return}r=r!=null?""+pn(r):"",t=t!=null?""+pn(t):r,S||t===e.value||(e.value=t),e.defaultValue=t}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=S?e.checked:!!o,e.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),lc(e)}function oc(e,t,r){t==="number"&&Jo(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Nl(e,t,r,o){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dc=!1;if(xa)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){dc=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{dc=!1}var Ia=null,hc=null,es=null;function lm(){if(es)return es;var e,t=hc,r=t.length,o,u="value"in Ia?Ia.value:Ia.textContent,f=u.length;for(e=0;e=qi),fm=" ",dm=!1;function hm(e,t){switch(e){case"keyup":return Px.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kl=!1;function Kx(e,t){switch(e){case"compositionend":return mm(t);case"keypress":return t.which!==32?null:(dm=!0,fm);case"textInput":return e=t.data,e===fm&&dm?null:e;default:return null}}function $x(e,t){if(kl)return e==="compositionend"||!vc&&hm(e,t)?(e=lm(),es=hc=Ia=null,kl=!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:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=wm(r)}}function Om(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Om(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jo(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Jo(e.document)}return t}function Sc(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")}var lS=xa&&"documentMode"in document&&11>=document.documentMode,zl=null,wc=null,Vi=null,Ec=!1;function Cm(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ec||zl==null||zl!==Jo(o)||(o=zl,"selectionStart"in o&&Sc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Vi&&Qi(Vi,o)||(Vi=o,o=Xs(wc,"onSelect"),0>=g,u-=g,Pn=1<<32-wt(t)+u|r<_e?(Ue=he,he=null):Ue=he.sibling;var Le=q(B,he,H[_e],Z);if(Le===null){he===null&&(he=Ue);break}e&&he&&Le.alternate===null&&t(B,he),k=f(Le,k,_e),Ye===null?ge=Le:Ye.sibling=Le,Ye=Le,he=Ue}if(_e===H.length)return r(B,he),He&&wa(B,_e),ge;if(he===null){for(;_e_e?(Ue=he,he=null):Ue=he.sibling;var Sr=q(B,he,Le.value,Z);if(Sr===null){he===null&&(he=Ue);break}e&&he&&Sr.alternate===null&&t(B,he),k=f(Sr,k,_e),Ye===null?ge=Sr:Ye.sibling=Sr,Ye=Sr,he=Ue}if(Le.done)return r(B,he),He&&wa(B,_e),ge;if(he===null){for(;!Le.done;_e++,Le=H.next())Le=J(B,Le.value,Z),Le!==null&&(k=f(Le,k,_e),Ye===null?ge=Le:Ye.sibling=Le,Ye=Le);return He&&wa(B,_e),ge}for(he=o(he);!Le.done;_e++,Le=H.next())Le=V(he,B,_e,Le.value,Z),Le!==null&&(e&&Le.alternate!==null&&he.delete(Le.key===null?_e:Le.key),k=f(Le,k,_e),Ye===null?ge=Le:Ye.sibling=Le,Ye=Le);return e&&he.forEach(function(Mw){return t(B,Mw)}),He&&wa(B,_e),ge}function Pe(B,k,H,Z){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case w:e:{for(var ge=H.key;k!==null;){if(k.key===ge){if(ge=H.type,ge===E){if(k.tag===7){r(B,k.sibling),Z=u(k,H.props.children),Z.return=B,B=Z;break e}}else if(k.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===Y&&Jr(ge)===k.type){r(B,k.sibling),Z=u(k,H.props),$i(Z,H),Z.return=B,B=Z;break e}r(B,k);break}else t(B,k);k=k.sibling}H.type===E?(Z=Xr(H.props.children,B.mode,Z,H.key),Z.return=B,B=Z):(Z=cs(H.type,H.key,H.props,null,B.mode,Z),$i(Z,H),Z.return=B,B=Z)}return g(B);case O:e:{for(ge=H.key;k!==null;){if(k.key===ge)if(k.tag===4&&k.stateNode.containerInfo===H.containerInfo&&k.stateNode.implementation===H.implementation){r(B,k.sibling),Z=u(k,H.children||[]),Z.return=B,B=Z;break e}else{r(B,k);break}else t(B,k);k=k.sibling}Z=Ac(H,B.mode,Z),Z.return=B,B=Z}return g(B);case Y:return H=Jr(H),Pe(B,k,H,Z)}if(ve(H))return fe(B,k,H,Z);if(de(H)){if(ge=de(H),typeof ge!="function")throw Error(i(150));return H=ge.call(H),we(B,k,H,Z)}if(typeof H.then=="function")return Pe(B,k,gs(H),Z);if(H.$$typeof===A)return Pe(B,k,hs(B,H),Z);vs(B,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,k!==null&&k.tag===6?(r(B,k.sibling),Z=u(k,H),Z.return=B,B=Z):(r(B,k),Z=Nc(H,B.mode,Z),Z.return=B,B=Z),g(B)):r(B,k)}return function(B,k,H,Z){try{Ki=0;var ge=Pe(B,k,H,Z);return Vl=null,ge}catch(he){if(he===Ql||he===ys)throw he;var Ye=en(29,he,null,B.mode);return Ye.lanes=Z,Ye.return=B,Ye}finally{}}}var el=Zm(!0),Km=Zm(!1),rr=!1;function Gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function lr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ir(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(qe&2)!==0){var u=o.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),o.pending=t,t=us(e),km(e,null,r),t}return ss(e,o,t,r),us(e)}function Ji(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Et(e,r)}}function Qc(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var u=null,f=null;if(r=r.firstBaseUpdate,r!==null){do{var g={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};f===null?u=f=g:f=f.next=g,r=r.next}while(r!==null);f===null?u=f=t:f=f.next=t}else u=f=t;r={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Vc=!1;function Ii(){if(Vc){var e=Wl;if(e!==null)throw e}}function eo(e,t,r,o){Vc=!1;var u=e.updateQueue;rr=!1;var f=u.firstBaseUpdate,g=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var N=S,L=N.next;N.next=null,g===null?f=L:g.next=L,g=N;var X=e.alternate;X!==null&&(X=X.updateQueue,S=X.lastBaseUpdate,S!==g&&(S===null?X.firstBaseUpdate=L:S.next=L,X.lastBaseUpdate=N))}if(f!==null){var J=u.baseState;g=0,X=L=N=null,S=f;do{var q=S.lane&-536870913,V=q!==S.lane;if(V?(Be&q)===q:(o&q)===q){q!==0&&q===Gl&&(Vc=!0),X!==null&&(X=X.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var fe=e,we=S;q=t;var Pe=r;switch(we.tag){case 1:if(fe=we.payload,typeof fe=="function"){J=fe.call(Pe,J,q);break e}J=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=we.payload,q=typeof fe=="function"?fe.call(Pe,J,q):fe,q==null)break e;J=p({},J,q);break e;case 2:rr=!0}}q=S.callback,q!==null&&(e.flags|=64,V&&(e.flags|=8192),V=u.callbacks,V===null?u.callbacks=[q]:V.push(q))}else V={lane:q,tag:S.tag,payload:S.payload,callback:S.callback,next:null},X===null?(L=X=V,N=J):X=X.next=V,g|=q;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;V=S,S=V.next,V.next=null,u.lastBaseUpdate=V,u.shared.pending=null}}while(!0);X===null&&(N=J),u.baseState=N,u.firstBaseUpdate=L,u.lastBaseUpdate=X,f===null&&(u.shared.lanes=0),fr|=g,e.lanes=g,e.memoizedState=J}}function $m(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Jm(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;ef?f:8;var g=j.T,S={};j.T=S,ff(e,!1,t,r);try{var N=u(),L=j.S;if(L!==null&&L(S,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var X=mS(N,o);ao(e,t,X,ln(e))}else ao(e,t,o,ln(e))}catch(J){ao(e,t,{then:function(){},status:"rejected",reason:J},ln())}finally{P.p=f,g!==null&&S.types!==null&&(g.types=S.types),j.T=g}}function xS(){}function uf(e,t,r,o){if(e.tag!==5)throw Error(i(476));var u=Ay(e).queue;Ny(e,u,t,ee,r===null?xS:function(){return _y(e),r(o)})}function Ay(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:ee},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _y(e){var t=Ay(e);t.next===null&&(t=e.alternate.memoizedState),ao(e,t.next.queue,{},ln())}function cf(){return Rt(So)}function Ry(){return ct().memoizedState}function ky(){return ct().memoizedState}function SS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=ln();e=lr(r);var o=ir(t,e,r);o!==null&&(Pt(o,t,r),Ji(o,t,r)),t={cache:Hc()},e.payload=t;return}t=t.return}}function wS(e,t,r){var o=ln();r={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ds(e)?jy(t,r):(r=Tc(e,t,r,o),r!==null&&(Pt(r,e,o),By(r,t,o)))}function zy(e,t,r){var o=ln();ao(e,t,r,o)}function ao(e,t,r,o){var u={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))jy(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,S=f(g,r);if(u.hasEagerState=!0,u.eagerState=S,It(S,g))return ss(e,t,u,0),Ke===null&&os(),!1}catch{}finally{}if(r=Tc(e,t,u,o),r!==null)return Pt(r,e,o),By(r,t,o),!0}return!1}function ff(e,t,r,o){if(o={lane:2,revertLane:Wf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ds(e)){if(t)throw Error(i(479))}else t=Tc(e,r,o,2),t!==null&&Pt(t,e,2)}function Ds(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function jy(e,t){Xl=Ss=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function By(e,t,r){if((r&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Et(e,r)}}var ro={readContext:Rt,use:Os,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};ro.useEffectEvent=rt;var Uy={readContext:Rt,use:Os,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:xy,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Cs(4194308,4,Oy.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Cs(4194308,4,e,t)},useInsertionEffect:function(e,t){Cs(4,2,e,t)},useMemo:function(e,t){var r=Lt();t=t===void 0?null:t;var o=e();if(tl){Jt(!0);try{e()}finally{Jt(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=Lt();if(r!==void 0){var u=r(t);if(tl){Jt(!0);try{r(t)}finally{Jt(!1)}}}else u=t;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=wS.bind(null,Ae,e),[o.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=af(e);var t=e.queue,r=zy.bind(null,Ae,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:of,useDeferredValue:function(e,t){var r=Lt();return sf(r,e,t)},useTransition:function(){var e=af(!1);return e=Ny.bind(null,Ae,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=Ae,u=Lt();if(He){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),Ke===null)throw Error(i(349));(Be&127)!==0||ry(o,t,r)}u.memoizedState=r;var f={value:r,getSnapshot:t};return u.queue=f,xy(iy.bind(null,o,f,e),[e]),o.flags|=2048,Zl(9,{destroy:void 0},ly.bind(null,o,f,r,t),null),r},useId:function(){var e=Lt(),t=Ke.identifierPrefix;if(He){var r=Zn,o=Pn;r=(o&~(1<<32-wt(o)-1)).toString(32)+r,t="_"+t+"R_"+r,r=ws++,0<\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?g.createElement("select",{is:o.is}):g.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?g.createElement(u,{is:o.is}):g.createElement(u)}}f[At]=t,f[Gt]=o;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)f.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=f;e:switch(zt(f,u,o),u){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Da(t)}}return Ie(t),Mf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Da(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=re.current,Ll(t)){if(e=t.stateNode,r=t.memoizedProps,o=null,u=_t,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}e[At]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||ng(e.nodeValue,r)),e||nr(t,!0)}else e=Ps(e).createTextNode(o),e[At]=t,t.stateNode=e}return Ie(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(o=Ll(t),r!==null){if(e===null){if(!o)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[At]=t}else Pr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),e=!1}else r=zc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(nn(t),t):(nn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Ie(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ll(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[At]=t}else Pr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),u=!1}else u=zc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(nn(t),t):(nn(t),null)}return nn(t),(t.flags&128)!==0?(t.lanes=r,t):(r=o!==null,e=e!==null&&e.memoizedState!==null,r&&(o=t.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==u&&(o.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),ks(t,t.updateQueue),Ie(t),null);case 4:return be(),e===null&&Xf(t.stateNode.containerInfo),Ie(t),null;case 10:return Oa(t.type),Ie(t),null;case 19:if(F(ut),o=t.memoizedState,o===null)return Ie(t),null;if(u=(t.flags&128)!==0,f=o.rendering,f===null)if(u)io(o,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=xs(e),f!==null){for(t.flags|=128,io(o,!1),e=f.updateQueue,t.updateQueue=e,ks(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)zm(r,e),r=r.sibling;return K(ut,ut.current&1|2),He&&wa(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&vt()>Hs&&(t.flags|=128,u=!0,io(o,!1),t.lanes=4194304)}else{if(!u)if(e=xs(f),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,ks(t,e),io(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!He)return Ie(t),null}else 2*vt()-o.renderingStartTime>Hs&&r!==536870912&&(t.flags|=128,u=!0,io(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=vt(),e.sibling=null,r=ut.current,K(ut,u?r&1|2:r&1),He&&wa(t,o.treeForkCount),e):(Ie(t),null);case 22:case 23:return nn(t),Xc(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(r&536870912)!==0&&(t.flags&128)===0&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),r=t.updateQueue,r!==null&&ks(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&F($r),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Oa(dt),Ie(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function TS(e,t){switch(Rc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oa(dt),be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gt(t),null;case 31:if(t.memoizedState!==null){if(nn(t),t.alternate===null)throw Error(i(340));Pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(nn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ut),null;case 4:return be(),null;case 10:return Oa(t.type),null;case 22:case 23:return nn(t),Xc(),e!==null&&F($r),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Oa(dt),null;case 25:return null;default:return null}}function op(e,t){switch(Rc(t),t.tag){case 3:Oa(dt),be();break;case 26:case 27:case 5:gt(t);break;case 4:be();break;case 31:t.memoizedState!==null&&nn(t);break;case 13:nn(t);break;case 19:F(ut);break;case 10:Oa(t.type);break;case 22:case 23:nn(t),Xc(),e!==null&&F($r);break;case 24:Oa(dt)}}function oo(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var u=o.next;r=u;do{if((r.tag&e)===e){o=void 0;var f=r.create,g=r.inst;o=f(),g.destroy=o}r=r.next}while(r!==u)}}catch(S){Qe(t,t.return,S)}}function ur(e,t,r){try{var o=t.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var f=u.next;o=f;do{if((o.tag&e)===e){var g=o.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,u=t;var N=r,L=S;try{L()}catch(X){Qe(u,N,X)}}}o=o.next}while(o!==f)}}catch(X){Qe(t,t.return,X)}}function sp(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{Jm(t,r)}catch(o){Qe(e,e.return,o)}}}function up(e,t,r){r.props=nl(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){Qe(e,t,o)}}function so(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(u){Qe(e,t,u)}}function Kn(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(u){Qe(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(u){Qe(e,t,u)}else r.current=null}function cp(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(u){Qe(e,e.return,u)}}function Cf(e,t,r){try{var o=e.stateNode;ZS(o,e.type,r,t),o[Gt]=t}catch(u){Qe(e,e.return,u)}}function fp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pr(e.type)||e.tag===4}function Tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fp(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.tag===27&&pr(e.type)||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 Df(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ba));else if(o!==4&&(o===27&&pr(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Df(e,t,r),e=e.sibling;e!==null;)Df(e,t,r),e=e.sibling}function zs(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(o===27&&pr(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(zs(e,t,r),e=e.sibling;e!==null;)zs(e,t,r),e=e.sibling}function dp(e){var t=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);zt(t,o,r),t[At]=e,t[Gt]=r}catch(f){Qe(e,e.return,f)}}var Na=!1,yt=!1,Nf=!1,hp=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function DS(e,t){if(e=e.containerInfo,Kf=tu,e=Mm(e),Sc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var u=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{r.nodeType,f.nodeType}catch{r=null;break e}var g=0,S=-1,N=-1,L=0,X=0,J=e,q=null;t:for(;;){for(var V;J!==r||u!==0&&J.nodeType!==3||(S=g+u),J!==f||o!==0&&J.nodeType!==3||(N=g+o),J.nodeType===3&&(g+=J.nodeValue.length),(V=J.firstChild)!==null;)q=J,J=V;for(;;){if(J===e)break t;if(q===r&&++L===u&&(S=g),q===f&&++X===o&&(N=g),(V=J.nextSibling)!==null)break;J=q,q=J.parentNode}J=V}r=S===-1||N===-1?null:{start:S,end:N}}else r=null}r=r||{start:0,end:0}}else r=null;for($f={focusedElem:e,selectionRange:r},tu=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){switch(t=Mt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r title"))),zt(f,o,r),f[At]=e,Ot(f),o=f;break e;case"link":var g=bg("link","href",u).get(o+(r.href||""));if(g){for(var S=0;SPe&&(g=Pe,Pe=we,we=g);var B=Em(S,we),k=Em(S,Pe);if(B&&k&&(V.rangeCount!==1||V.anchorNode!==B.node||V.anchorOffset!==B.offset||V.focusNode!==k.node||V.focusOffset!==k.offset)){var H=J.createRange();H.setStart(B.node,B.offset),V.removeAllRanges(),we>Pe?(V.addRange(H),V.extend(k.node,k.offset)):(H.setEnd(k.node,k.offset),V.addRange(H))}}}}for(J=[],V=S;V=V.parentNode;)V.nodeType===1&&J.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;Sr?32:r,j.T=null,r=Bf,Bf=null;var f=hr,g=za;if(bt=0,ei=hr=null,za=0,(qe&6)!==0)throw Error(i(331));var S=qe;if(qe|=4,Op(f.current),Sp(f,f.current,g,r),qe=S,yo(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(pa,f)}catch{}return!0}finally{P.p=u,j.T=o,Gp(e,t)}}function Qp(e,t,r){t=bn(r,t),t=yf(e.stateNode,t,2),e=ir(e,t,2),e!==null&&($e(e,2),$n(e))}function Qe(e,t,r){if(e.tag===3)Qp(e,e,r);else for(;t!==null;){if(t.tag===3){Qp(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(dr===null||!dr.has(o))){e=bn(r,e),r=Vy(2),o=ir(t,r,2),o!==null&&(Fy(r,o,t,e),$e(o,2),$n(o));break}}t=t.return}}function Lf(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new _S;var u=new Set;o.set(t,u)}else u=o.get(t),u===void 0&&(u=new Set,o.set(t,u));u.has(r)||(Rf=!0,u.add(r),e=BS.bind(null,e,t,r),t.then(e,e))}function BS(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ke===e&&(Be&r)===r&&(lt===4||lt===3&&(Be&62914560)===Be&&300>vt()-Us?(qe&2)===0&&ti(e,0):kf|=r,Il===Be&&(Il=0)),$n(e)}function Vp(e,t){t===0&&(t=Me()),e=Fr(e,t),e!==null&&($e(e,t),$n(e))}function US(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Vp(e,r)}function HS(e,t){var r=0;switch(e.tag){case 31:case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),Vp(e,r)}function YS(e,t){return mn(e,t)}var Qs=null,ai=null,qf=!1,Vs=!1,Gf=!1,yr=0;function $n(e){e!==ai&&e.next===null&&(ai===null?Qs=ai=e:ai=ai.next=e),Vs=!0,qf||(qf=!0,qS())}function yo(e,t){if(!Gf&&Vs){Gf=!0;do for(var r=!1,o=Qs;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var f=0;else{var g=o.suspendedLanes,S=o.pingedLanes;f=(1<<31-wt(42|e)+1)-1,f&=u&~(g&~S),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(r=!0,Zp(o,f))}else f=Be,f=ie(o,o===Ke?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||pe(o,f)||(r=!0,Zp(o,f));o=o.next}while(r);Gf=!1}}function LS(){Fp()}function Fp(){Vs=qf=!1;var e=0;yr!==0&&$S()&&(e=yr);for(var t=vt(),r=null,o=Qs;o!==null;){var u=o.next,f=Xp(o,t);f===0?(o.next=null,r===null?Qs=u:r.next=u,u===null&&(ai=r)):(r=o,(e!==0||(f&3)!==0)&&(Vs=!0)),o=u}bt!==0&&bt!==5||yo(e),yr!==0&&(yr=0)}function Xp(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0S)break;var X=N.transferSize,J=N.initiatorType;X&&ag(J)&&(N=N.responseEnd,g+=X*(N"u"?null:document;function yg(e,t,r){var o=ri;if(o&&typeof t=="string"&&t){var u=gn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof r=="string"&&(u+='[crossorigin="'+r+'"]'),mg.has(u)||(mg.add(u),e={rel:e,crossOrigin:r,href:t},o.querySelector(u)===null&&(t=o.createElement("link"),zt(t,"link",e),Ot(t),o.head.appendChild(t)))}}function iw(e){ja.D(e),yg("dns-prefetch",e,null)}function ow(e,t){ja.C(e,t),yg("preconnect",e,t)}function sw(e,t,r){ja.L(e,t,r);var o=ri;if(o&&e&&t){var u='link[rel="preload"][as="'+gn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(u+='[imagesrcset="'+gn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(u+='[imagesizes="'+gn(r.imageSizes)+'"]')):u+='[href="'+gn(e)+'"]';var f=u;switch(t){case"style":f=li(e);break;case"script":f=ii(e)}Mn.has(f)||(e=p({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Mn.set(f,e),o.querySelector(u)!==null||t==="style"&&o.querySelector(bo(f))||t==="script"&&o.querySelector(xo(f))||(t=o.createElement("link"),zt(t,"link",e),Ot(t),o.head.appendChild(t)))}}function uw(e,t){ja.m(e,t);var r=ri;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+gn(o)+'"][href="'+gn(e)+'"]',f=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ii(e)}if(!Mn.has(f)&&(e=p({rel:"modulepreload",href:e},t),Mn.set(f,e),r.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(xo(f)))return}o=r.createElement("link"),zt(o,"link",e),Ot(o),r.head.appendChild(o)}}}function cw(e,t,r){ja.S(e,t,r);var o=ri;if(o&&e){var u=Tl(o).hoistableStyles,f=li(e);t=t||"default";var g=u.get(f);if(!g){var S={loading:0,preload:null};if(g=o.querySelector(bo(f)))S.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Mn.get(f))&&rd(e,r);var N=g=o.createElement("link");Ot(N),zt(N,"link",e),N._p=new Promise(function(L,X){N.onload=L,N.onerror=X}),N.addEventListener("load",function(){S.loading|=1}),N.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Ks(g,t,o)}g={type:"stylesheet",instance:g,count:1,state:S},u.set(f,g)}}}function fw(e,t){ja.X(e,t);var r=ri;if(r&&e){var o=Tl(r).hoistableScripts,u=ii(e),f=o.get(u);f||(f=r.querySelector(xo(u)),f||(e=p({src:e,async:!0},t),(t=Mn.get(u))&&ld(e,t),f=r.createElement("script"),Ot(f),zt(f,"link",e),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function dw(e,t){ja.M(e,t);var r=ri;if(r&&e){var o=Tl(r).hoistableScripts,u=ii(e),f=o.get(u);f||(f=r.querySelector(xo(u)),f||(e=p({src:e,async:!0,type:"module"},t),(t=Mn.get(u))&&ld(e,t),f=r.createElement("script"),Ot(f),zt(f,"link",e),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function pg(e,t,r,o){var u=(u=re.current)?Zs(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=li(r.href),r=Tl(u).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=li(r.href);var f=Tl(u).hoistableStyles,g=f.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=u.querySelector(bo(e)))&&!f._p&&(g.instance=f,g.state.loading=5),Mn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Mn.set(e,r),f||hw(u,e,r,g.state))),t&&o===null)throw Error(i(528,""));return g}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ii(r),r=Tl(u).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function li(e){return'href="'+gn(e)+'"'}function bo(e){return'link[rel="stylesheet"]['+e+"]"}function gg(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function hw(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),zt(t,"link",r),Ot(t),e.head.appendChild(t))}function ii(e){return'[src="'+gn(e)+'"]'}function xo(e){return"script[async]"+e}function vg(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+gn(r.href)+'"]');if(o)return t.instance=o,Ot(o),o;var u=p({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Ot(o),zt(o,"style",u),Ks(o,r.precedence,e),t.instance=o;case"stylesheet":u=li(r.href);var f=e.querySelector(bo(u));if(f)return t.state.loading|=4,t.instance=f,Ot(f),f;o=gg(r),(u=Mn.get(u))&&rd(o,u),f=(e.ownerDocument||e).createElement("link"),Ot(f);var g=f;return g._p=new Promise(function(S,N){g.onload=S,g.onerror=N}),zt(f,"link",o),t.state.loading|=4,Ks(f,r.precedence,e),t.instance=f;case"script":return f=ii(r.src),(u=e.querySelector(xo(f)))?(t.instance=u,Ot(u),u):(o=r,(u=Mn.get(f))&&(o=p({},r),ld(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ot(u),zt(u,"link",o),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Ks(o,r.precedence,e));return t.instance}function Ks(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,f=u,g=0;g title"):null)}function mw(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Sg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yw(e,t,r,o){if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var u=li(o.href),f=t.querySelector(bo(u));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Js.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=f,Ot(f);return}f=t.ownerDocument||t,o=gg(o),(u=Mn.get(u))&&rd(o,u),f=f.createElement("link"),Ot(f);var g=f;g._p=new Promise(function(S,N){g.onload=S,g.onerror=N}),zt(f,"link",o),r.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Js.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var id=0;function pw(e,t){return e.stylesheets&&e.count===0&&eu(e,e.stylesheets),0id?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(u)}}:null}function Js(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Is=null;function eu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Is=new Map,t.forEach(gw,e),Is=null,Js.call(e))}function gw(e,t){if(!(t.state.loading&4)){var r=Is.get(e);if(r)var o=r.get(null);else{r=new Map,Is.set(e,r);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),pd.exports=kw(),pd.exports}var jw=zw();/** * react-router v7.18.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var fh=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,D0=/^[\\/]{2}/;function Bw(n,a){return a+n.replace(/\\/g,"/")}var Fg="popstate";function Xg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Uw(n={}){function a(i,s){var m;let c=(m=s.state)==null?void 0:m.masked,{pathname:d,search:h,hash:y}=c||i.location;return Wd("",{pathname:d,search:h,hash:y},s.state&&s.state.usr||null,s.state&&s.state.key||"default",c?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function l(i,s){return typeof s=="string"?s:jo(s)}return Yw(a,l,null,n)}function nt(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Gn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Hw(){return Math.random().toString(36).substring(2,10)}function Pg(n,a){return{usr:n.state,key:n.key,idx:a,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Wd(n,a,l=null,i,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Ni(a):a,state:l,key:a&&a.key||i||Hw(),mask:s}}function jo({pathname:n="/",search:a="",hash:l=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function Ni(n){let a={};if(n){let l=n.indexOf("#");l>=0&&(a.hash=n.substring(l),n=n.substring(0,l));let i=n.indexOf("?");i>=0&&(a.search=n.substring(i),n=n.substring(0,i)),n&&(a.pathname=n)}return a}function Yw(n,a,l,i={}){let{window:s=document.defaultView,v5Compat:c=!1}=i,d=s.history,h="POP",y=null,m=v();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function v(){return(d.state||{idx:null}).idx}function p(){h="POP";let C=v(),M=C==null?null:C-m;m=C,y&&y({action:h,location:E.location,delta:M})}function b(C,M){h="PUSH";let _=Xg(C)?C:Wd(E.location,C,M);m=v()+1;let A=Pg(_,m),z=E.createHref(_.mask||_);try{d.pushState(A,"",z)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;s.location.assign(z)}c&&y&&y({action:h,location:E.location,delta:1})}function w(C,M){h="REPLACE";let _=Xg(C)?C:Wd(E.location,C,M);m=v();let A=Pg(_,m),z=E.createHref(_.mask||_);d.replaceState(A,"",z),c&&y&&y({action:h,location:E.location,delta:0})}function O(C){return Lw(s,C)}let E={get action(){return h},get location(){return n(s,d)},listen(C){if(y)throw new Error("A history only accepts one active listener");return s.addEventListener(Fg,p),y=C,()=>{s.removeEventListener(Fg,p),y=null}},createHref(C){return a(s,C)},createURL:O,encodeLocation(C){let M=O(C);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:b,replace:w,go(C){return d.go(C)}};return E}function Lw(n,a,l=!1){let i="http://localhost";n&&(i=n.location.origin!=="null"?n.location.origin:n.location.href),nt(i,"No window.location.(origin|href) available to create URL");let s=typeof a=="string"?a:jo(a);return s=s.replace(/ $/,"%20"),!l&&D0.test(s)&&(s=i+s),new URL(s,i)}function N0(n,a,l="/"){return qw(n,a,l,!1)}function qw(n,a,l,i,s){let c=typeof a=="string"?Ni(a):a,d=Xa(c.pathname||"/",l);if(d==null)return null;let h=Gw(n),y=null,m=Iw(d);for(let v=0;y==null&&v{let v={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(i)&&y)return;nt(v.relativePath.startsWith(i),`Absolute route path "${v.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(i.length)}let p=qn([i,v.relativePath]),b=l.concat(v);d.children&&d.children.length>0&&(nt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),A0(d.children,a,b,p,y)),!(d.path==null&&!d.index)&&a.push({path:p,score:Kw(p,d.index),routesMeta:b.map((w,O)=>{let[E,C]=k0(w.relativePath,w.caseSensitive,O===b.length-1);return{...w,matcher:E,compiledParams:C}})})};return n.forEach((d,h)=>{var y;if(d.path===""||!((y=d.path)!=null&&y.includes("?")))c(d,h);else for(let m of _0(d.path))c(d,h,!0,m)}),a}function _0(n){let a=n.split("/");if(a.length===0)return[];let[l,...i]=a,s=l.endsWith("?"),c=l.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let d=_0(i.join("/")),h=[];return h.push(...d.map(y=>y===""?c:[c,y].join("/"))),s&&h.push(...d),h.map(y=>n.startsWith("/")&&y===""?"/":y)}function Ww(n){n.sort((a,l)=>a.score!==l.score?l.score-a.score:$w(a.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var Qw=/^:[\w-]+$/,Vw=3,Fw=2,Xw=1,Pw=10,Zw=-2,Zg=n=>n==="*";function Kw(n,a){let l=n.split("/"),i=l.length;return l.some(Zg)&&(i+=Zw),a&&(i+=Fw),l.filter(s=>!Zg(s)).reduce((s,c)=>s+(Qw.test(c)?Vw:c===""?Xw:Pw),i)}function $w(n,a){return n.length===a.length&&n.slice(0,-1).every((i,s)=>i===a[s])?n[n.length-1]-a[a.length-1]:0}function Jw(n,a,l=!1){let{routesMeta:i}=n,s={},c="/",d=[];for(let h=0;h{if(v==="*"){let O=h[b]||"";d=c.slice(0,c.length-O.length).replace(/(.)\/+$/,"$1")}const w=h[b];return p&&!w?m[v]=void 0:m[v]=(w||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:n}}function k0(n,a=!1,l=!0){Gn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,y,m,v)=>{if(i.push({paramName:h,isOptional:y!=null}),y){let p=v.charAt(m+d.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(i.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),i]}function Iw(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Gn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Xa(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,i=n.charAt(l);return i&&i!=="/"?null:n.slice(l)||"/"}function eE(n,a="/"){let{pathname:l,search:i="",hash:s=""}=typeof n=="string"?Ni(n):n,c;return l?(l=z0(l),l.startsWith("/")?c=Kg(l.substring(1),"/"):c=Kg(l,a)):c=a,{pathname:c,search:aE(i),hash:rE(s)}}function Kg(n,a){let l=Ru(a).split("/");return n.split("/").forEach(s=>{s===".."?l.length>1&&l.pop():s!=="."&&l.push(s)}),l.length>1?l.join("/"):"/"}function xd(n,a,l,i){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function tE(n){return n.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function dh(n){let a=tE(n);return a.map((l,i)=>i===a.length-1?l.pathname:l.pathnameBase)}function Gu(n,a,l,i=!1){let s;typeof n=="string"?s=Ni(n):(s={...n},nt(!s.pathname||!s.pathname.includes("?"),xd("?","pathname","search",s)),nt(!s.pathname||!s.pathname.includes("#"),xd("#","pathname","hash",s)),nt(!s.search||!s.search.includes("#"),xd("#","search","hash",s)));let c=n===""||s.pathname==="",d=c?"/":s.pathname,h;if(d==null)h=l;else{let p=a.length-1;if(!i&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),p-=1;s.pathname=b.join("/")}h=p>=0?a[p]:"/"}let y=eE(s,h),m=d&&d!=="/"&&d.endsWith("/"),v=(c||d===".")&&l.endsWith("/");return!y.pathname.endsWith("/")&&(m||v)&&(y.pathname+="/"),y}var z0=n=>n.replace(/[\\/]{2,}/g,"/"),qn=n=>z0(n.join("/")),Ru=n=>n.replace(/\/+$/,""),nE=n=>Ru(n).replace(/^\/*/,"/"),aE=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,rE=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,lE=class{constructor(n,a,l,i=!1){this.status=n,this.statusText=a||"",this.internal=i,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function iE(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function oE(n){let a=n.map(l=>l.route.path).filter(Boolean);return qn(a)||"/"}var j0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function B0(n,a){let l=n;if(typeof l!="string"||!fh.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let i=l,s=!1;if(j0)try{let c=new URL(window.location.href),d=D0.test(l)?new URL(Bw(l,c.protocol)):new URL(l),h=Xa(d.pathname,a);d.origin===c.origin&&h!=null?l=h+d.search+d.hash:s=!0}catch{Gn(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:s,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var U0=["POST","PUT","PATCH","DELETE"];new Set(U0);var sE=["GET",...U0];new Set(sE);var uE=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function cE(n){try{return uE.includes(new URL(n).protocol)}catch{return!1}}var Ai=x.createContext(null);Ai.displayName="DataRouter";var Wu=x.createContext(null);Wu.displayName="DataRouterState";var H0=x.createContext(!1);function fE(){return x.useContext(H0)}var Y0=x.createContext({isTransitioning:!1});Y0.displayName="ViewTransition";var dE=x.createContext(new Map);dE.displayName="Fetchers";var hE=x.createContext(null);hE.displayName="Await";var dn=x.createContext(null);dn.displayName="Navigation";var Wo=x.createContext(null);Wo.displayName="Location";var ua=x.createContext({outlet:null,matches:[],isDataRoute:!1});ua.displayName="Route";var hh=x.createContext(null);hh.displayName="RouteError";var L0="REACT_ROUTER_ERROR",mE="REDIRECT",yE="ROUTE_ERROR_RESPONSE";function pE(n){if(n.startsWith(`${L0}:${mE}:{`))try{let a=JSON.parse(n.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function gE(n){if(n.startsWith(`${L0}:${yE}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new lE(a.status,a.statusText,a.data)}catch{}}function vE(n,{relative:a}={}){nt(_i(),"useHref() may be used only in the context of a component.");let{basename:l,navigator:i}=x.useContext(dn),{hash:s,pathname:c,search:d}=Qo(n,{relative:a}),h=c;return l!=="/"&&(h=c==="/"?l:qn([l,c])),i.createHref({pathname:h,search:d,hash:s})}function _i(){return x.useContext(Wo)!=null}function hn(){return nt(_i(),"useLocation() may be used only in the context of a component."),x.useContext(Wo).location}var q0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function G0(n){x.useContext(dn).static||x.useLayoutEffect(n)}function W0(){let{isDataRoute:n}=x.useContext(ua);return n?_E():bE()}function bE(){nt(_i(),"useNavigate() may be used only in the context of a component.");let n=x.useContext(Ai),{basename:a,navigator:l}=x.useContext(dn),{matches:i}=x.useContext(ua),{pathname:s}=hn(),c=JSON.stringify(dh(i)),d=x.useRef(!1);return G0(()=>{d.current=!0}),x.useCallback((y,m={})=>{if(Gn(d.current,q0),!d.current)return;if(typeof y=="number"){l.go(y);return}let v=Gu(y,JSON.parse(c),s,m.relative==="path");n==null&&a!=="/"&&(v.pathname=v.pathname==="/"?a:qn([a,v.pathname])),(m.replace?l.replace:l.push)(v,m.state,m)},[a,l,c,s,n])}x.createContext(null);function Qo(n,{relative:a}={}){let{matches:l}=x.useContext(ua),{pathname:i}=hn(),s=JSON.stringify(dh(l));return x.useMemo(()=>Gu(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function xE(n,a){return Q0(n,a)}function Q0(n,a,l){var C;nt(_i(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=x.useContext(dn),{matches:s}=x.useContext(ua),c=s[s.length-1],d=c?c.params:{},h=c?c.pathname:"/",y=c?c.pathnameBase:"/",m=c&&c.route;{let M=m&&m.path||"";F0(h,!m||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${h}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let v=hn(),p;if(a){let M=typeof a=="string"?Ni(a):a;nt(y==="/"||((C=M.pathname)==null?void 0:C.startsWith(y)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${M.pathname}" was given in the \`location\` prop.`),p=M}else p=v;let b=p.pathname||"/",w=b;if(y!=="/"){let M=y.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(M.length).join("/")}let O=l&&l.state.matches.length?l.state.matches.map(M=>Object.assign(M,{route:l.manifest[M.route.id]||M.route})):N0(n,{pathname:w});Gn(m||O!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Gn(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let E=ME(O&&O.map(M=>Object.assign({},M,{params:Object.assign({},d,M.params),pathname:qn([y,i.encodeLocation?i.encodeLocation(M.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?y:qn([y,i.encodeLocation?i.encodeLocation(M.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),s,l);return a&&E?x.createElement(Wo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},E):E}function SE(){let n=AE(),a=iE(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:c},"ErrorBoundary")," or"," ",x.createElement("code",{style:c},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},a),l?x.createElement("pre",{style:s},l):null,d)}var wE=x.createElement(SE,null),V0=class extends x.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.onError?this.props.onError(n,a):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const l=gE(n.digest);l&&(n=l)}let a=n!==void 0?x.createElement(ua.Provider,{value:this.props.routeContext},x.createElement(hh.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?x.createElement(EE,{error:n},a):a}};V0.contextType=H0;var Sd=new WeakMap;function EE({children:n,error:a}){let{basename:l}=x.useContext(dn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let i=pE(a.digest);if(i){let s=Sd.get(a);if(s)throw s;let c=B0(i.location,l),d=c.absoluteURL||c.to;if(cE(d))throw new Error("Invalid redirect location");if(j0&&!Sd.get(a))if(c.isExternal||i.reloadDocument)window.location.href=d;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:i.replace}));throw Sd.set(a,h),h}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d}`})}}return n}function OE({routeContext:n,match:a,children:l}){let i=x.useContext(Ai);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),x.createElement(ua.Provider,{value:n},l)}function ME(n,a=[],l){let i=l==null?void 0:l.state;if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(a.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let s=n,c=i==null?void 0:i.errors;if(c!=null){let v=s.findIndex(p=>p.route.id&&(c==null?void 0:c[p.route.id])!==void 0);nt(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,v+1))}let d=!1,h=-1;if(l&&i){d=i.renderFallback;for(let v=0;v=0?s=s.slice(0,h+1):s=[s[0]];break}}}}let y=l==null?void 0:l.onError,m=i&&y?(v,p)=>{var b,w;y(v,{location:i.location,params:((w=(b=i.matches)==null?void 0:b[0])==null?void 0:w.params)??{},pattern:oE(i.matches),errorInfo:p})}:void 0;return s.reduceRight((v,p,b)=>{let w,O=!1,E=null,C=null;i&&(w=c&&p.route.id?c[p.route.id]:void 0,E=p.route.errorElement||wE,d&&(h<0&&b===0?(F0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,C=null):h===b&&(O=!0,C=p.route.hydrateFallbackElement||null)));let M=a.concat(s.slice(0,b+1)),_=()=>{let A;return w?A=E:O?A=C:p.route.Component?A=x.createElement(p.route.Component,null):p.route.element?A=p.route.element:A=v,x.createElement(OE,{match:p,routeContext:{outlet:v,matches:M,isDataRoute:i!=null},children:A})};return i&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?x.createElement(V0,{location:i.location,revalidation:i.revalidation,component:E,error:w,children:_(),routeContext:{outlet:null,matches:M,isDataRoute:!0},onError:m}):_()},null)}function mh(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function CE(n){let a=x.useContext(Ai);return nt(a,mh(n)),a}function TE(n){let a=x.useContext(Wu);return nt(a,mh(n)),a}function DE(n){let a=x.useContext(ua);return nt(a,mh(n)),a}function yh(n){let a=DE(n),l=a.matches[a.matches.length-1];return nt(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function NE(){return yh("useRouteId")}function AE(){var i;let n=x.useContext(hh),a=TE("useRouteError"),l=yh("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[l]}function _E(){let{router:n}=CE("useNavigate"),a=yh("useNavigate"),l=x.useRef(!1);return G0(()=>{l.current=!0}),x.useCallback(async(s,c={})=>{Gn(l.current,q0),l.current&&(typeof s=="number"?await n.navigate(s):await n.navigate(s,{fromRouteId:a,...c}))},[n,a])}var $g={};function F0(n,a,l){!a&&!$g[n]&&($g[n]=!0,Gn(!1,l))}x.memo(RE);function RE({routes:n,manifest:a,future:l,state:i,isStatic:s,onError:c}){return Q0(n,void 0,{manifest:a,state:i,isStatic:s,onError:c})}function Qd({to:n,replace:a,state:l,relative:i}){nt(_i()," may be used only in the context of a component.");let{static:s}=x.useContext(dn);Gn(!s," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:c}=x.useContext(ua),{pathname:d}=hn(),h=W0(),y=Gu(n,dh(c),d,i==="path"),m=JSON.stringify(y);return x.useEffect(()=>{h(JSON.parse(m),{replace:a,state:l,relative:i})},[h,m,i,a,l]),null}function Ou(n){nt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function kE({basename:n="/",children:a=null,location:l,navigationType:i="POP",navigator:s,static:c=!1,useTransitions:d}){nt(!_i(),"You cannot render a inside another . You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),y=x.useMemo(()=>({basename:h,navigator:s,static:c,useTransitions:d,future:{}}),[h,s,c,d]);typeof l=="string"&&(l=Ni(l));let{pathname:m="/",search:v="",hash:p="",state:b=null,key:w="default",mask:O}=l,E=x.useMemo(()=>{let C=Xa(m,h);return C==null?null:{location:{pathname:C,search:v,hash:p,state:b,key:w,mask:O},navigationType:i}},[h,m,v,p,b,w,i,O]);return Gn(E!=null,` is not able to match the URL "${m}${v}${p}" because it does not start with the basename, so the won't render anything.`),E==null?null:x.createElement(dn.Provider,{value:y},x.createElement(Wo.Provider,{children:a,value:E}))}function zE({children:n,location:a}){return xE(Vd(n),a)}function Vd(n,a=[]){let l=[];return x.Children.forEach(n,(i,s)=>{if(!x.isValidElement(i))return;let c=[...a,s];if(i.type===x.Fragment){l.push.apply(l,Vd(i.props.children,c));return}nt(i.type===Ou,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),nt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=Vd(i.props.children,c)),l.push(d)}),l}var Mu="get",Cu="application/x-www-form-urlencoded";function Qu(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function jE(n){return Qu(n)&&n.tagName.toLowerCase()==="button"}function BE(n){return Qu(n)&&n.tagName.toLowerCase()==="form"}function UE(n){return Qu(n)&&n.tagName.toLowerCase()==="input"}function HE(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function YE(n,a){return n.button===0&&(!a||a==="_self")&&!HE(n)}var uu=null;function LE(){if(uu===null)try{new FormData(document.createElement("form"),0),uu=!1}catch{uu=!0}return uu}var qE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wd(n){return n!=null&&!qE.has(n)?(Gn(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Cu}"`),null):n}function GE(n,a){let l,i,s,c,d;if(BE(n)){let h=n.getAttribute("action");i=h?Xa(h,a):null,l=n.getAttribute("method")||Mu,s=wd(n.getAttribute("enctype"))||Cu,c=new FormData(n)}else if(jE(n)||UE(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a