(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&r(p)}).observe(document,{childList:!0,subtree:!0});function i(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(c){if(c.ep)return;c.ep=!0;const d=i(c);fetch(c.href,d)}})();function r0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Jd={exports:{}},dr={};/** * @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 qh;function c0(){if(qh)return dr;qh=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,c,d){var p=null;if(d!==void 0&&(p=""+d),c.key!==void 0&&(p=""+c.key),"key"in c){d={};for(var y in c)y!=="key"&&(d[y]=c[y])}else d=c;return c=d.ref,{$$typeof:n,type:r,key:p,ref:c!==void 0?c:null,props:d}}return dr.Fragment=a,dr.jsx=i,dr.jsxs=i,dr}var Bh;function o0(){return Bh||(Bh=1,Jd.exports=c0()),Jd.exports}var o=o0(),Fd={exports:{}},Ae={};/** * @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 Uh;function u0(){if(Uh)return Ae;Uh=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),w=Symbol.iterator;function $(C){return C===null||typeof C!="object"?null:(C=w&&C[w]||C["@@iterator"],typeof C=="function"?C:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,N={};function T(C,H,W){this.props=C,this.context=H,this.refs=N,this.updater=W||j}T.prototype.isReactComponent={},T.prototype.setState=function(C,H){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,H,"setState")},T.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function Q(){}Q.prototype=T.prototype;function K(C,H,W){this.props=C,this.context=H,this.refs=N,this.updater=W||j}var ce=K.prototype=new Q;ce.constructor=K,R(ce,T.prototype),ce.isPureReactComponent=!0;var ae=Array.isArray;function ie(){}var J={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function le(C,H,W){var ne=W.ref;return{$$typeof:n,type:C,key:H,ref:ne!==void 0?ne:null,props:W}}function M(C,H){return le(C.type,H,C.props)}function se(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function Te(C){var H={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(W){return H[W]})}var F=/\/+/g;function _e(C,H){return typeof C=="object"&&C!==null&&C.key!=null?Te(""+C.key):H.toString(36)}function Se(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(ie,ie):(C.status="pending",C.then(function(H){C.status==="pending"&&(C.status="fulfilled",C.value=H)},function(H){C.status==="pending"&&(C.status="rejected",C.reason=H)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function q(C,H,W,ne,he){var we=typeof C;(we==="undefined"||we==="boolean")&&(C=null);var Z=!1;if(C===null)Z=!0;else switch(we){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(C.$$typeof){case n:case a:Z=!0;break;case S:return Z=C._init,q(Z(C._payload),H,W,ne,he)}}if(Z)return he=he(C),Z=ne===""?"."+_e(C,0):ne,ae(he)?(W="",Z!=null&&(W=Z.replace(F,"$&/")+"/"),q(he,H,W,"",function(Ue){return Ue})):he!=null&&(se(he)&&(he=M(he,W+(he.key==null||C&&C.key===he.key?"":(""+he.key).replace(F,"$&/")+"/")+Z)),H.push(he)),1;Z=0;var de=ne===""?".":ne+":";if(ae(C))for(var Be=0;Be>>1,X=q[me];if(0>>1;mec(W,te))nec(he,W)?(q[me]=he,q[ne]=te,me=ne):(q[me]=W,q[H]=te,me=H);else if(nec(he,te))q[me]=he,q[ne]=te,me=ne;else break e}}return V}function c(q,V){var te=q.sortIndex-V.sortIndex;return te!==0?te:q.id-V.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var p=Date,y=p.now();n.unstable_now=function(){return p.now()-y}}var _=[],g=[],S=1,x=null,w=3,$=!1,j=!1,R=!1,N=!1,T=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function ce(q){for(var V=i(g);V!==null;){if(V.callback===null)r(g);else if(V.startTime<=q)r(g),V.sortIndex=V.expirationTime,a(_,V);else break;V=i(g)}}function ae(q){if(R=!1,ce(q),!j)if(i(_)!==null)j=!0,ie||(ie=!0,Te());else{var V=i(g);V!==null&&Se(ae,V.startTime-q)}}var ie=!1,J=-1,P=5,le=-1;function M(){return N?!0:!(n.unstable_now()-leq&&M());){var me=x.callback;if(typeof me=="function"){x.callback=null,w=x.priorityLevel;var X=me(x.expirationTime<=q);if(q=n.unstable_now(),typeof X=="function"){x.callback=X,ce(q),V=!0;break t}x===i(_)&&r(_),ce(q)}else r(_);x=i(_)}if(x!==null)V=!0;else{var C=i(g);C!==null&&Se(ae,C.startTime-q),V=!1}}break e}finally{x=null,w=te,$=!1}V=void 0}}finally{V?Te():ie=!1}}}var Te;if(typeof K=="function")Te=function(){K(se)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,_e=F.port2;F.port1.onmessage=se,Te=function(){_e.postMessage(null)}}else Te=function(){T(se,0)};function Se(q,V){J=T(function(){q(n.unstable_now())},V)}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(q){q.callback=null},n.unstable_forceFrameRate=function(q){0>q||125me?(q.sortIndex=te,a(g,q),i(_)===null&&q===i(g)&&(R?(Q(J),J=-1):R=!0,Se(ae,te-me))):(q.sortIndex=X,a(_,q),j||$||(j=!0,ie||(ie=!0,Te()))),q},n.unstable_shouldYield=M,n.unstable_wrapCallback=function(q){var V=w;return function(){var te=w;w=V;try{return q.apply(this,arguments)}finally{w=te}}}})(ef)),ef}var Yh;function m0(){return Yh||(Yh=1,Wd.exports=f0()),Wd.exports}var tf={exports:{}},Ht={};/** * @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 Ih;function p0(){if(Ih)return Ht;Ih=1;var n=Bf();function a(_){var g="https://react.dev/errors/"+_;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),tf.exports=p0(),tf.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 Qh;function h0(){if(Qh)return fr;Qh=1;var n=m0(),a=Bf(),i=_0();function r(e){var t="https://react.dev/errors/"+e;if(1X||(e.current=me[X],me[X]=null,X--)}function W(e,t){X++,me[X]=e.current,e.current=t}var ne=C(null),he=C(null),we=C(null),Z=C(null);function de(e,t){switch(W(we,t),W(he,e),W(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rh(t),e=ch(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(ne),W(ne,e)}function Be(){H(ne),H(he),H(we)}function Ue(e){e.memoizedState!==null&&W(Z,e);var t=ne.current,l=ch(t,e.type);t!==l&&(W(he,e),W(ne,l))}function Ot(e){he.current===e&&(H(ne),H(he)),Z.current===e&&(H(Z),rr._currentValue=te)}var Lt,He;function qe(e){if(Lt===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Lt=t&&t[1]||"",He=-1)":-1u||A[s]!==O[u]){var G=` `+A[s].replace(" at new "," at ");return e.displayName&&G.includes("")&&(G=G.replace("",e.displayName)),G}while(1<=s&&0<=u);break}}}finally{xt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?qe(l):""}function si(e,t){switch(e.tag){case 26:case 27:case 5:return qe(e.type);case 16:return qe("Lazy");case 13:return e.child!==t&&t!==null?qe("Suspense Fallback"):qe("Suspense");case 19:return qe("SuspenseList");case 0:case 15:return ia(e.type,!1);case 11:return ia(e.type.render,!1);case 1:return ia(e.type,!0);case 31:return qe("Activity");default:return""}}function ds(e){try{var t="",l=null;do t+=si(e,l),l=e,e=e.return;while(e);return t}catch(s){return` Error generating stack: `+s.message+` `+s.stack}}var vl=Object.prototype.hasOwnProperty,ri=n.unstable_scheduleCallback,Ma=n.unstable_cancelCallback,bl=n.unstable_shouldYield,ci=n.unstable_requestPaint,Nt=n.unstable_now,vn=n.unstable_getCurrentPriorityLevel,sa=n.unstable_ImmediatePriority,ra=n.unstable_UserBlockingPriority,Sl=n.unstable_NormalPriority,Ko=n.unstable_LowPriority,oi=n.unstable_IdlePriority,Qo=n.log,Vo=n.unstable_setDisableYieldValue,kt=null,qt=null;function oe(e){if(typeof Qo=="function"&&Vo(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(kt,e)}catch{}}var wt=Math.clz32?Math.clz32:ui,at=Math.log,rn=Math.LN2;function ui(e){return e>>>=0,e===0?32:31-(at(e)/rn|0)|0}var Wt=256,At=262144,ca=4194304;function Gt(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 Xn(e,t,l){var s=e.pendingLanes;if(s===0)return 0;var u=0,f=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=s&134217727;return b!==0?(s=b&~f,s!==0?u=Gt(s):(h&=b,h!==0?u=Gt(h):l||(l=b&~e,l!==0&&(u=Gt(l))))):(b=s&~f,b!==0?u=Gt(b):h!==0?u=Gt(h):l||(l=s&~e,l!==0&&(u=Gt(l)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:u}function oa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yt(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 Lr(){var e=ca;return ca<<=1,(ca&62914560)===0&&(ca=4194304),e}function di(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function bn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xo(e,t,l,s,u,f){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,A=e.expirationTimes,O=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Yr=/[\n"\\]/g;function Zt(e){return e.replace(Yr,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hs(e,t,l,s,u,f,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ys(e,h,Xt(t)):l!=null?ys(e,h,Xt(l)):s!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Xt(b):e.removeAttribute("name")}function gs(e,t,l,s,u,f,h,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){kl(e);return}l=l!=null?""+Xt(l):"",t=t!=null?""+Xt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=b?e.checked:!!s,e.defaultChecked=!!s,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),kl(e)}function ys(e,t,l){t==="number"&&Oa(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function fa(e,t,l,s){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=!1;if(Ln)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){xs=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{xs=!1}var qn=null,ks=null,Ba=null;function Ua(){if(Ba)return Ba;var e,t=ks,l=t.length,s,u="value"in qn?qn.value:qn.textContent,f=u.length;for(e=0;e=Es),pm=" ",_m=!1;function hm(e,t){switch(e){case"keyup":return Nv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Si=!1;function Dv(e,t){switch(e){case"compositionend":return gm(t);case"keypress":return t.which!==32?null:(_m=!0,pm);case"textInput":return e=t.data,e===pm&&_m?null:e;default:return null}}function Rv(e,t){if(Si)return e==="compositionend"||!nu&&hm(e,t)?(e=Ua(),Ba=ks=qn=null,Si=!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:l,offset:t-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=jm(l)}}function Cm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Em(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Oa(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Oa(e.document)}return t}function iu(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 Uv=Ln&&"documentMode"in document&&11>=document.documentMode,xi=null,su=null,Rs=null,ru=!1;function Nm(e,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ru||xi==null||xi!==Oa(s)||(s=xi,"selectionStart"in s&&iu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Rs&&Ds(Rs,s)||(Rs=s,s=Kc(su,"onSelect"),0>=h,u-=h,Pn=1<<32-wt(t)+u|l<Ne?(ze=fe,fe=null):ze=fe.sibling;var Ye=L(D,fe,z[Ne],Y);if(Ye===null){fe===null&&(fe=ze);break}e&&fe&&Ye.alternate===null&&t(D,fe),E=f(Ye,E,Ne),Ge===null?ve=Ye:Ge.sibling=Ye,Ge=Ye,fe=ze}if(Ne===z.length)return l(D,fe),Oe&&pa(D,Ne),ve;if(fe===null){for(;NeNe?(ze=fe,fe=null):ze=fe.sibling;var dl=L(D,fe,Ye.value,Y);if(dl===null){fe===null&&(fe=ze);break}e&&fe&&dl.alternate===null&&t(D,fe),E=f(dl,E,Ne),Ge===null?ve=dl:Ge.sibling=dl,Ge=dl,fe=ze}if(Ye.done)return l(D,fe),Oe&&pa(D,Ne),ve;if(fe===null){for(;!Ye.done;Ne++,Ye=z.next())Ye=I(D,Ye.value,Y),Ye!==null&&(E=f(Ye,E,Ne),Ge===null?ve=Ye:Ge.sibling=Ye,Ge=Ye);return Oe&&pa(D,Ne),ve}for(fe=s(fe);!Ye.done;Ne++,Ye=z.next())Ye=B(fe,D,Ne,Ye.value,Y),Ye!==null&&(e&&Ye.alternate!==null&&fe.delete(Ye.key===null?Ne:Ye.key),E=f(Ye,E,Ne),Ge===null?ve=Ye:Ge.sibling=Ye,Ge=Ye);return e&&fe.forEach(function(s0){return t(D,s0)}),Oe&&pa(D,Ne),ve}function Fe(D,E,z,Y){if(typeof z=="object"&&z!==null&&z.type===R&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case $:e:{for(var ve=z.key;E!==null;){if(E.key===ve){if(ve=z.type,ve===R){if(E.tag===7){l(D,E.sibling),Y=u(E,z.props.children),Y.return=D,D=Y;break e}}else if(E.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===P&&Bl(ve)===E.type){l(D,E.sibling),Y=u(E,z.props),qs(Y,z),Y.return=D,D=Y;break e}l(D,E);break}else t(D,E);E=E.sibling}z.type===R?(Y=Ml(z.props.children,D.mode,Y,z.key),Y.return=D,D=Y):(Y=cc(z.type,z.key,z.props,null,D.mode,Y),qs(Y,z),Y.return=D,D=Y)}return h(D);case j:e:{for(ve=z.key;E!==null;){if(E.key===ve)if(E.tag===4&&E.stateNode.containerInfo===z.containerInfo&&E.stateNode.implementation===z.implementation){l(D,E.sibling),Y=u(E,z.children||[]),Y.return=D,D=Y;break e}else{l(D,E);break}else t(D,E);E=E.sibling}Y=pu(z,D.mode,Y),Y.return=D,D=Y}return h(D);case P:return z=Bl(z),Fe(D,E,z,Y)}if(Se(z))return ue(D,E,z,Y);if(Te(z)){if(ve=Te(z),typeof ve!="function")throw Error(r(150));return z=ve.call(z),xe(D,E,z,Y)}if(typeof z.then=="function")return Fe(D,E,_c(z),Y);if(z.$$typeof===K)return Fe(D,E,dc(D,z),Y);hc(D,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,E!==null&&E.tag===6?(l(D,E.sibling),Y=u(E,z),Y.return=D,D=Y):(l(D,E),Y=mu(z,D.mode,Y),Y.return=D,D=Y),h(D)):l(D,E)}return function(D,E,z,Y){try{Ls=0;var ve=Fe(D,E,z,Y);return $i=null,ve}catch(fe){if(fe===Ri||fe===mc)throw fe;var Ge=dn(29,fe,null,D.mode);return Ge.lanes=Y,Ge.return=D,Ge}finally{}}}var Hl=Pm(!0),Wm=Pm(!1),Xa=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cu(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 Za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ie&2)!==0){var u=s.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),s.pending=t,t=rc(e),Om(e,null,l),t}return sc(e,s,t,l),rc(e)}function Bs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,qr(e,l)}}function Eu(e,t){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var u=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?u=f=h:f=f.next=h,l=l.next}while(l!==null);f===null?u=f=t:f=f.next=t}else u=f=t;l={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Nu=!1;function Us(){if(Nu){var e=Di;if(e!==null)throw e}}function Hs(e,t,l,s){Nu=!1;var u=e.updateQueue;Xa=!1;var f=u.firstBaseUpdate,h=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var A=b,O=A.next;A.next=null,h===null?f=O:h.next=O,h=A;var G=e.alternate;G!==null&&(G=G.updateQueue,b=G.lastBaseUpdate,b!==h&&(b===null?G.firstBaseUpdate=O:b.next=O,G.lastBaseUpdate=A))}if(f!==null){var I=u.baseState;h=0,G=O=A=null,b=f;do{var L=b.lane&-536870913,B=L!==b.lane;if(B?(Me&L)===L:(s&L)===L){L!==0&&L===Ti&&(Nu=!0),G!==null&&(G=G.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ue=e,xe=b;L=t;var Fe=l;switch(xe.tag){case 1:if(ue=xe.payload,typeof ue=="function"){I=ue.call(Fe,I,L);break e}I=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=xe.payload,L=typeof ue=="function"?ue.call(Fe,I,L):ue,L==null)break e;I=x({},I,L);break e;case 2:Xa=!0}}L=b.callback,L!==null&&(e.flags|=64,B&&(e.flags|=8192),B=u.callbacks,B===null?u.callbacks=[L]:B.push(L))}else B={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},G===null?(O=G=B,A=I):G=G.next=B,h|=L;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;B=b,b=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);G===null&&(A=I),u.baseState=A,u.firstBaseUpdate=O,u.lastBaseUpdate=G,f===null&&(u.shared.lanes=0),tl|=h,e.lanes=h,e.memoizedState=I}}function ep(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function tp(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ef?f:8;var h=q.T,b={};q.T=b,Xu(e,!1,t,l);try{var A=u(),O=q.S;if(O!==null&&O(b,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=Zv(A,s);Is(e,t,G,hn(e))}else Is(e,t,s,hn(e))}catch(I){Is(e,t,{then:function(){},status:"rejected",reason:I},hn())}finally{V.p=f,h!==null&&b.types!==null&&(h.types=b.types),q.T=h}}function tb(){}function Qu(e,t,l,s){if(e.tag!==5)throw Error(r(476));var u=$p(e).queue;Rp(e,u,t,te,l===null?tb:function(){return Mp(e),l(s)})}function $p(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:te},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mp(e){var t=$p(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},hn())}function Vu(){return Dt(rr)}function zp(){return _t().memoizedState}function Op(){return _t().memoizedState}function nb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=hn();e=Za(l);var s=Ja(t,e,l);s!==null&&(ln(s,t,l),Bs(s,t,l)),t={cache:xu()},e.payload=t;return}t=t.return}}function ab(e,t,l){var s=hn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ac(e)?qp(t,l):(l=du(e,t,l,s),l!==null&&(ln(l,e,s),Bp(l,t,s)))}function Lp(e,t,l){var s=hn();Is(e,t,l,s)}function Is(e,t,l,s){var u={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ac(e))qp(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var h=t.lastRenderedState,b=f(h,l);if(u.hasEagerState=!0,u.eagerState=b,un(b,h))return sc(e,t,u,0),Pe===null&&ic(),!1}catch{}finally{}if(l=du(e,t,u,s),l!==null)return ln(l,e,s),Bp(l,t,s),!0}return!1}function Xu(e,t,l,s){if(s={lane:2,revertLane:Ad(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ac(e)){if(t)throw Error(r(479))}else t=du(e,l,s,2),t!==null&&ln(t,e,2)}function Ac(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function qp(e,t){zi=vc=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Bp(e,t,l){if((l&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,qr(e,l)}}var Ks={readContext:Dt,use:xc,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};Ks.useEffectEvent=ot;var Up={readContext:Dt,use:xc,useCallback:function(e,t){return Ft().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:kp,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,wc(4194308,4,Cp.bind(null,t,e),l)},useLayoutEffect:function(e,t){return wc(4194308,4,e,t)},useInsertionEffect:function(e,t){wc(4,2,e,t)},useMemo:function(e,t){var l=Ft();t=t===void 0?null:t;var s=e();if(Gl){oe(!0);try{e()}finally{oe(!1)}}return l.memoizedState=[s,t],s},useReducer:function(e,t,l){var s=Ft();if(l!==void 0){var u=l(t);if(Gl){oe(!0);try{l(t)}finally{oe(!1)}}}else u=t;return s.memoizedState=s.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},s.queue=e,e=e.dispatch=ab.bind(null,Ee,e),[s.memoizedState,e]},useRef:function(e){var t=Ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Hu(e);var t=e.queue,l=Lp.bind(null,Ee,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Iu,useDeferredValue:function(e,t){var l=Ft();return Ku(l,e,t)},useTransition:function(){var e=Hu(!1);return e=Rp.bind(null,Ee,e.queue,!0,!1),Ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var s=Ee,u=Ft();if(Oe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Pe===null)throw Error(r(349));(Me&127)!==0||rp(s,t,l)}u.memoizedState=l;var f={value:l,getSnapshot:t};return u.queue=f,kp(op.bind(null,s,f,e),[e]),s.flags|=2048,Li(9,{destroy:void 0},cp.bind(null,s,f,l,t),null),l},useId:function(){var e=Ft(),t=Pe.identifierPrefix;if(Oe){var l=Wn,s=Pn;l=(s&~(1<<32-wt(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=bc++,0<\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof s.is=="string"?h.createElement("select",{is:s.is}):h.createElement("select"),s.multiple?f.multiple=!0:s.size&&(f.size=s.size);break;default:f=typeof s.is=="string"?h.createElement(u,{is:s.is}):h.createElement(u)}}f[ft]=t,f[It]=s;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)f.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=f;e:switch($t(f,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&ba(t)}}return tt(t),cd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&ba(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=we.current,Ei(t)){if(e=t.stateNode,l=t.memoizedProps,s=null,u=Tt,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}e[ft]=t,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||ih(e.nodeValue,l)),e||Qa(t,!0)}else e=Qc(e).createTextNode(s),e[ft]=t,t.stateNode=e}return tt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(s=Ei(t),l!==null){if(e===null){if(!s)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ft]=t}else zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),e=!1}else l=yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(mn(t),t):(mn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return tt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ei(t),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ft]=t}else zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),u=!1}else u=yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(mn(t),t):(mn(t),null)}return mn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=t.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),f=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==u&&(s.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Dc(t,t.updateQueue),tt(t),null);case 4:return Be(),e===null&&Td(t.stateNode.containerInfo),tt(t),null;case 10:return ha(t.type),tt(t),null;case 19:if(H(pt),s=t.memoizedState,s===null)return tt(t),null;if(u=(t.flags&128)!==0,f=s.rendering,f===null)if(u)Vs(s,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=yc(e),f!==null){for(t.flags|=128,Vs(s,!1),e=f.updateQueue,t.updateQueue=e,Dc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Lm(l,e),l=l.sibling;return W(pt,pt.current&1|2),Oe&&pa(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Nt()>Oc&&(t.flags|=128,u=!0,Vs(s,!1),t.lanes=4194304)}else{if(!u)if(e=yc(f),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Dc(t,e),Vs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!f.alternate&&!Oe)return tt(t),null}else 2*Nt()-s.renderingStartTime>Oc&&l!==536870912&&(t.flags|=128,u=!0,Vs(s,!1),t.lanes=4194304);s.isBackwards?(f.sibling=t.child,t.child=f):(e=s.last,e!==null?e.sibling=f:t.child=f,s.last=f)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Nt(),e.sibling=null,l=pt.current,W(pt,u?l&1|2:l&1),Oe&&pa(t,s.treeForkCount),e):(tt(t),null);case 22:case 23:return mn(t),Du(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),l=t.updateQueue,l!==null&&Dc(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),e!==null&&H(ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ha(gt),tt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function cb(e,t){switch(hu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(gt),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ot(t),null;case 31:if(t.memoizedState!==null){if(mn(t),t.alternate===null)throw Error(r(340));zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(pt),null;case 4:return Be(),null;case 10:return ha(t.type),null;case 22:case 23:return mn(t),Du(),e!==null&&H(ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ha(gt),null;case 25:return null;default:return null}}function u_(e,t){switch(hu(t),t.tag){case 3:ha(gt),Be();break;case 26:case 27:case 5:Ot(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&mn(t);break;case 13:mn(t);break;case 19:H(pt);break;case 10:ha(t.type);break;case 22:case 23:mn(t),Du(),e!==null&&H(ql);break;case 24:ha(gt)}}function Xs(e,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var u=s.next;l=u;do{if((l.tag&e)===e){s=void 0;var f=l.create,h=l.inst;s=f(),h.destroy=s}l=l.next}while(l!==u)}}catch(b){Ve(t,t.return,b)}}function Wa(e,t,l){try{var s=t.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var f=u.next;s=f;do{if((s.tag&e)===e){var h=s.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,u=t;var A=l,O=b;try{O()}catch(G){Ve(u,A,G)}}}s=s.next}while(s!==f)}}catch(G){Ve(t,t.return,G)}}function d_(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{tp(t,l)}catch(s){Ve(e,e.return,s)}}}function f_(e,t,l){l.props=Yl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){Ve(e,t,s)}}function Zs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(u){Ve(e,t,u)}}function ea(e,t){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(u){Ve(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){Ve(e,t,u)}else l.current=null}function m_(e){var t=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(u){Ve(e,e.return,u)}}function od(e,t,l){try{var s=e.stateNode;Tb(s,e.type,l,t),s[It]=t}catch(u){Ve(e,e.return,u)}}function p_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sl(e.type)||e.tag===4}function ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||p_(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&&sl(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 dd(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=xn));else if(s!==4&&(s===27&&sl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(dd(e,t,l),e=e.sibling;e!==null;)dd(e,t,l),e=e.sibling}function Rc(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(s!==4&&(s===27&&sl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Rc(e,t,l),e=e.sibling;e!==null;)Rc(e,t,l),e=e.sibling}function __(e){var t=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);$t(t,s,l),t[ft]=e,t[It]=l}catch(f){Ve(e,e.return,f)}}var Sa=!1,bt=!1,fd=!1,h_=typeof WeakSet=="function"?WeakSet:Set,Et=null;function ob(e,t){if(e=e.containerInfo,$d=Wc,e=Em(e),iu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var u=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var h=0,b=-1,A=-1,O=0,G=0,I=e,L=null;t:for(;;){for(var B;I!==l||u!==0&&I.nodeType!==3||(b=h+u),I!==f||s!==0&&I.nodeType!==3||(A=h+s),I.nodeType===3&&(h+=I.nodeValue.length),(B=I.firstChild)!==null;)L=I,I=B;for(;;){if(I===e)break t;if(L===l&&++O===u&&(b=h),L===f&&++G===s&&(A=h),(B=I.nextSibling)!==null)break;I=L,L=I.parentNode}I=B}l=b===-1||A===-1?null:{start:b,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(Md={focusedElem:e,selectionRange:l},Wc=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){switch(t=Et,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(l=0;l title"))),$t(f,s,l),f[ft]=e,lt(f),s=f;break e;case"link":var h=xh("link","href",u).get(s+(l.href||""));if(h){for(var b=0;bFe&&(h=Fe,Fe=xe,xe=h);var D=Am(b,xe),E=Am(b,Fe);if(D&&E&&(B.rangeCount!==1||B.anchorNode!==D.node||B.anchorOffset!==D.offset||B.focusNode!==E.node||B.focusOffset!==E.offset)){var z=I.createRange();z.setStart(D.node,D.offset),B.removeAllRanges(),xe>Fe?(B.addRange(z),B.extend(E.node,E.offset)):(z.setEnd(E.node,E.offset),B.addRange(z))}}}}for(I=[],B=b;B=B.parentNode;)B.nodeType===1&&I.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;bl?32:l,q.T=null,l=vd,vd=null;var f=al,h=Aa;if(jt=0,Gi=al=null,Aa=0,(Ie&6)!==0)throw Error(r(331));var b=Ie;if(Ie|=4,C_(f.current),w_(f,f.current,h,l),Ie=b,tr(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(kt,f)}catch{}return!0}finally{V.p=u,q.T=s,K_(e,t)}}function V_(e,t,l){t=jn(l,t),t=Pu(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(bn(e,2),ta(e))}function Ve(e,t,l){if(e.tag===3)V_(e,e,l);else for(;t!==null;){if(t.tag===3){V_(t,e,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(nl===null||!nl.has(s))){e=jn(l,e),l=Xp(2),s=Ja(t,l,2),s!==null&&(Zp(l,s,t,e),bn(s,2),ta(s));break}}t=t.return}}function kd(e,t,l){var s=e.pingCache;if(s===null){s=e.pingCache=new fb;var u=new Set;s.set(t,u)}else u=s.get(t),u===void 0&&(u=new Set,s.set(t,u));u.has(l)||(_d=!0,u.add(l),e=gb.bind(null,e,t,l),t.then(e,e))}function gb(e,t,l){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Pe===e&&(Me&l)===l&&(ut===4||ut===3&&(Me&62914560)===Me&&300>Nt()-zc?(Ie&2)===0&&Yi(e,0):hd|=l,Hi===Me&&(Hi=0)),ta(e)}function X_(e,t){t===0&&(t=Lr()),e=$l(e,t),e!==null&&(bn(e,t),ta(e))}function yb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),X_(e,l)}function vb(e,t){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(l=u.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(t),X_(e,l)}function bb(e,t){return ri(e,t)}var Gc=null,Ki=null,wd=!1,Yc=!1,jd=!1,il=0;function ta(e){e!==Ki&&e.next===null&&(Ki===null?Gc=Ki=e:Ki=Ki.next=e),Yc=!0,wd||(wd=!0,xb())}function tr(e,t){if(!jd&&Yc){jd=!0;do for(var l=!1,s=Gc;s!==null;){if(e!==0){var u=s.pendingLanes;if(u===0)var f=0;else{var h=s.suspendedLanes,b=s.pingedLanes;f=(1<<31-wt(42|e)+1)-1,f&=u&~(h&~b),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,P_(s,f))}else f=Me,f=Xn(s,s===Pe?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||oa(s,f)||(l=!0,P_(s,f));s=s.next}while(l);jd=!1}}function Sb(){Z_()}function Z_(){Yc=wd=!1;var e=0;il!==0&&Rb()&&(e=il);for(var t=Nt(),l=null,s=Gc;s!==null;){var u=s.next,f=J_(s,t);f===0?(s.next=null,l===null?Gc=u:l.next=u,u===null&&(Ki=l)):(l=s,(e!==0||(f&3)!==0)&&(Yc=!0)),s=u}jt!==0&&jt!==5||tr(e),il!==0&&(il=0)}function J_(e,t){for(var l=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0b)break;var G=A.transferSize,I=A.initiatorType;G&&sh(I)&&(A=A.responseEnd,h+=G*(A"u"?null:document;function yh(e,t,l){var s=Qi;if(s&&typeof t=="string"&&t){var u=Zt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),gh.has(u)||(gh.add(u),e={rel:e,crossOrigin:l,href:t},s.querySelector(u)===null&&(t=s.createElement("link"),$t(t,"link",e),lt(t),s.head.appendChild(t)))}}function Hb(e){Ca.D(e),yh("dns-prefetch",e,null)}function Gb(e,t){Ca.C(e,t),yh("preconnect",e,t)}function Yb(e,t,l){Ca.L(e,t,l);var s=Qi;if(s&&e&&t){var u='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+Zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+Zt(l.imageSizes)+'"]')):u+='[href="'+Zt(e)+'"]';var f=u;switch(t){case"style":f=Vi(e);break;case"script":f=Xi(e)}Dn.has(f)||(e=x({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Dn.set(f,e),s.querySelector(u)!==null||t==="style"&&s.querySelector(ir(f))||t==="script"&&s.querySelector(sr(f))||(t=s.createElement("link"),$t(t,"link",e),lt(t),s.head.appendChild(t)))}}function Ib(e,t){Ca.m(e,t);var l=Qi;if(l&&e){var s=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Zt(s)+'"][href="'+Zt(e)+'"]',f=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Xi(e)}if(!Dn.has(f)&&(e=x({rel:"modulepreload",href:e},t),Dn.set(f,e),l.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(sr(f)))return}s=l.createElement("link"),$t(s,"link",e),lt(s),l.head.appendChild(s)}}}function Kb(e,t,l){Ca.S(e,t,l);var s=Qi;if(s&&e){var u=da(s).hoistableStyles,f=Vi(e);t=t||"default";var h=u.get(f);if(!h){var b={loading:0,preload:null};if(h=s.querySelector(ir(f)))b.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Dn.get(f))&&Hd(e,l);var A=h=s.createElement("link");lt(A),$t(A,"link",e),A._p=new Promise(function(O,G){A.onload=O,A.onerror=G}),A.addEventListener("load",function(){b.loading|=1}),A.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Xc(h,t,s)}h={type:"stylesheet",instance:h,count:1,state:b},u.set(f,h)}}}function Qb(e,t){Ca.X(e,t);var l=Qi;if(l&&e){var s=da(l).hoistableScripts,u=Xi(e),f=s.get(u);f||(f=l.querySelector(sr(u)),f||(e=x({src:e,async:!0},t),(t=Dn.get(u))&&Gd(e,t),f=l.createElement("script"),lt(f),$t(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(u,f))}}function Vb(e,t){Ca.M(e,t);var l=Qi;if(l&&e){var s=da(l).hoistableScripts,u=Xi(e),f=s.get(u);f||(f=l.querySelector(sr(u)),f||(e=x({src:e,async:!0,type:"module"},t),(t=Dn.get(u))&&Gd(e,t),f=l.createElement("script"),lt(f),$t(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(u,f))}}function vh(e,t,l,s){var u=(u=we.current)?Vc(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Vi(l.href),l=da(u).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Vi(l.href);var f=da(u).hoistableStyles,h=f.get(e);if(h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,h),(f=u.querySelector(ir(e)))&&!f._p&&(h.instance=f,h.state.loading=5),Dn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Dn.set(e,l),f||Xb(u,e,l,h.state))),t&&s===null)throw Error(r(528,""));return h}if(t&&s!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xi(l),l=da(u).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Vi(e){return'href="'+Zt(e)+'"'}function ir(e){return'link[rel="stylesheet"]['+e+"]"}function bh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Xb(e,t,l,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),$t(t,"link",l),lt(t),e.head.appendChild(t))}function Xi(e){return'[src="'+Zt(e)+'"]'}function sr(e){return"script[async]"+e}function Sh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Zt(l.href)+'"]');if(s)return t.instance=s,lt(s),s;var u=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),lt(s),$t(s,"style",u),Xc(s,l.precedence,e),t.instance=s;case"stylesheet":u=Vi(l.href);var f=e.querySelector(ir(u));if(f)return t.state.loading|=4,t.instance=f,lt(f),f;s=bh(l),(u=Dn.get(u))&&Hd(s,u),f=(e.ownerDocument||e).createElement("link"),lt(f);var h=f;return h._p=new Promise(function(b,A){h.onload=b,h.onerror=A}),$t(f,"link",s),t.state.loading|=4,Xc(f,l.precedence,e),t.instance=f;case"script":return f=Xi(l.src),(u=e.querySelector(sr(f)))?(t.instance=u,lt(u),u):(s=l,(u=Dn.get(f))&&(s=x({},l),Gd(s,u)),e=e.ownerDocument||e,u=e.createElement("script"),lt(u),$t(u,"link",s),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,Xc(s,l.precedence,e));return t.instance}function Xc(e,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,f=u,h=0;h title"):null)}function Zb(e,t,l){if(l===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 wh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Jb(e,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=Vi(s.href),f=t.querySelector(ir(u));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Jc.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,lt(f);return}f=t.ownerDocument||t,s=bh(s),(u=Dn.get(u))&&Hd(s,u),f=f.createElement("link"),lt(f);var h=f;h._p=new Promise(function(b,A){h.onload=b,h.onerror=A}),$t(f,"link",s),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Jc.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Yd=0;function Fb(e,t){return e.stylesheets&&e.count===0&&Pc(e,e.stylesheets),0Yd?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function Jc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fc=null;function Pc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fc=new Map,t.forEach(Pb,e),Fc=null,Jc.call(e))}function Pb(e,t){if(!(t.state.loading&4)){var l=Fc.get(e);if(l)var s=l.get(null);else{l=new Map,Fc.set(e,l);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=h0(),Pd.exports}var y0=g0();/** * react-router v7.17.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 Xh="popstate";function Zh(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function v0(n={}){function a(c,d){let{pathname:p="/",search:y="",hash:_=""}=ei(c.location.hash.substring(1));return!p.startsWith("/")&&!p.startsWith(".")&&(p="/"+p),vf("",{pathname:p,search:y,hash:_},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function i(c,d){let p=c.document.querySelector("base"),y="";if(p&&p.getAttribute("href")){let _=c.location.href,g=_.indexOf("#");y=g===-1?_:_.slice(0,g)}return y+"#"+(typeof d=="string"?d:jr(d))}function r(c,d){Mn(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(d)})`)}return S0(a,i,r,n)}function rt(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Mn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function b0(){return Math.random().toString(36).substring(2,10)}function Jh(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 vf(n,a,i=null,r,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?ei(a):a,state:i,key:a&&a.key||r||b0(),mask:c}}function jr({pathname:n="/",search:a="",hash:i=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function ei(n){let a={};if(n){let i=n.indexOf("#");i>=0&&(a.hash=n.substring(i),n=n.substring(0,i));let r=n.indexOf("?");r>=0&&(a.search=n.substring(r),n=n.substring(0,r)),n&&(a.pathname=n)}return a}function S0(n,a,i,r={}){let{window:c=document.defaultView,v5Compat:d=!1}=r,p=c.history,y="POP",_=null,g=S();g==null&&(g=0,p.replaceState({...p.state,idx:g},""));function S(){return(p.state||{idx:null}).idx}function x(){y="POP";let N=S(),T=N==null?null:N-g;g=N,_&&_({action:y,location:R.location,delta:T})}function w(N,T){y="PUSH";let Q=Zh(N)?N:vf(R.location,N,T);i&&i(Q,N),g=S()+1;let K=Jh(Q,g),ce=R.createHref(Q.mask||Q);try{p.pushState(K,"",ce)}catch(ae){if(ae instanceof DOMException&&ae.name==="DataCloneError")throw ae;c.location.assign(ce)}d&&_&&_({action:y,location:R.location,delta:1})}function $(N,T){y="REPLACE";let Q=Zh(N)?N:vf(R.location,N,T);i&&i(Q,N),g=S();let K=Jh(Q,g),ce=R.createHref(Q.mask||Q);p.replaceState(K,"",ce),d&&_&&_({action:y,location:R.location,delta:0})}function j(N){return x0(c,N)}let R={get action(){return y},get location(){return n(c,p)},listen(N){if(_)throw new Error("A history only accepts one active listener");return c.addEventListener(Xh,x),_=N,()=>{c.removeEventListener(Xh,x),_=null}},createHref(N){return a(c,N)},createURL:j,encodeLocation(N){let T=j(N);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:w,replace:$,go(N){return p.go(N)}};return R}function x0(n,a,i=!1){let r="http://localhost";n&&(r=n.location.origin!=="null"?n.location.origin:n.location.href),rt(r,"No window.location.(origin|href) available to create URL");let c=typeof a=="string"?a:jr(a);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Jg(n,a,i="/"){return k0(n,a,i,!1)}function k0(n,a,i,r,c){let d=typeof a=="string"?ei(a):a,p=Na(d.pathname||"/",i);if(p==null)return null;let y=w0(n),_=null,g=O0(p);for(let S=0;_==null&&S{let S={relativePath:g===void 0?p.path||"":g,caseSensitive:p.caseSensitive===!0,childrenIndex:y,route:p};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(r)&&_)return;rt(S.relativePath.startsWith(r),`Absolute route path "${S.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(r.length)}let x=Yn([r,S.relativePath]),w=i.concat(S);p.children&&p.children.length>0&&(rt(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Fg(p.children,a,w,x,_)),!(p.path==null&&!p.index)&&a.push({path:x,score:R0(x,p.index),routesMeta:w})};return n.forEach((p,y)=>{var _;if(p.path===""||!((_=p.path)!=null&&_.includes("?")))d(p,y);else for(let g of Pg(p.path))d(p,y,!0,g)}),a}function Pg(n){let a=n.split("/");if(a.length===0)return[];let[i,...r]=a,c=i.endsWith("?"),d=i.replace(/\?$/,"");if(r.length===0)return c?[d,""]:[d];let p=Pg(r.join("/")),y=[];return y.push(...p.map(_=>_===""?d:[d,_].join("/"))),c&&y.push(...p),y.map(_=>n.startsWith("/")&&_===""?"/":_)}function j0(n){n.sort((a,i)=>a.score!==i.score?i.score-a.score:$0(a.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var A0=/^:[\w-]+$/,C0=3,E0=2,N0=1,T0=10,D0=-2,Fh=n=>n==="*";function R0(n,a){let i=n.split("/"),r=i.length;return i.some(Fh)&&(r+=D0),a&&(r+=E0),i.filter(c=>!Fh(c)).reduce((c,d)=>c+(A0.test(d)?C0:d===""?N0:T0),r)}function $0(n,a){return n.length===a.length&&n.slice(0,-1).every((r,c)=>r===a[c])?n[n.length-1]-a[a.length-1]:0}function M0(n,a,i=!1){let{routesMeta:r}=n,c={},d="/",p=[];for(let y=0;y{if(S==="*"){let j=y[w]||"";p=d.slice(0,d.length-j.length).replace(/(.)\/+$/,"$1")}const $=y[w];return x&&!$?g[S]=void 0:g[S]=($||"").replace(/%2F/g,"/"),g},{}),pathname:d,pathnameBase:p,pattern:n}}function z0(n,a=!1,i=!0){Mn(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 r=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,y,_,g,S)=>{if(r.push({paramName:y,isOptional:_!=null}),_){let x=S.charAt(g+p.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,a?void 0:"i"),r]}function O0(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Mn(!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 Na(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let i=a.endsWith("/")?a.length-1:a.length,r=n.charAt(i);return r&&r!=="/"?null:n.slice(i)||"/"}var L0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function q0(n,a="/"){let{pathname:i,search:r="",hash:c=""}=typeof n=="string"?ei(n):n,d;return i?(i=Wg(i),i.startsWith("/")?d=Ph(i.substring(1),"/"):d=Ph(i,a)):d=a,{pathname:d,search:H0(r),hash:G0(c)}}function Ph(n,a){let i=bo(a).split("/");return n.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function nf(n,a,i,r){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function B0(n){return n.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function Uf(n){let a=B0(n);return a.map((i,r)=>r===a.length-1?i.pathname:i.pathnameBase)}function To(n,a,i,r=!1){let c;typeof n=="string"?c=ei(n):(c={...n},rt(!c.pathname||!c.pathname.includes("?"),nf("?","pathname","search",c)),rt(!c.pathname||!c.pathname.includes("#"),nf("#","pathname","hash",c)),rt(!c.search||!c.search.includes("#"),nf("#","search","hash",c)));let d=n===""||c.pathname==="",p=d?"/":c.pathname,y;if(p==null)y=i;else{let x=a.length-1;if(!r&&p.startsWith("..")){let w=p.split("/");for(;w[0]==="..";)w.shift(),x-=1;c.pathname=w.join("/")}y=x>=0?a[x]:"/"}let _=q0(c,y),g=p&&p!=="/"&&p.endsWith("/"),S=(d||p===".")&&i.endsWith("/");return!_.pathname.endsWith("/")&&(g||S)&&(_.pathname+="/"),_}var Wg=n=>n.replace(/\/\/+/g,"/"),Yn=n=>Wg(n.join("/")),bo=n=>n.replace(/\/+$/,""),U0=n=>bo(n).replace(/^\/*/,"/"),H0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,G0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Y0=class{constructor(n,a,i,r=!1){this.status=n,this.statusText=a||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function I0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function K0(n){let a=n.map(i=>i.route.path).filter(Boolean);return Yn(a)||"/"}var ey=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ty(n,a){let i=n;if(typeof i!="string"||!L0.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let r=i,c=!1;if(ey)try{let d=new URL(window.location.href),p=i.startsWith("//")?new URL(d.protocol+i):new URL(i),y=Na(p.pathname,a);p.origin===d.origin&&y!=null?i=y+p.search+p.hash:c=!0}catch{Mn(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:c,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ny=["POST","PUT","PATCH","DELETE"];new Set(ny);var Q0=["GET",...ny];new Set(Q0);var ls=k.createContext(null);ls.displayName="DataRouter";var Do=k.createContext(null);Do.displayName="DataRouterState";var ay=k.createContext(!1);function V0(){return k.useContext(ay)}var ly=k.createContext({isTransitioning:!1});ly.displayName="ViewTransition";var X0=k.createContext(new Map);X0.displayName="Fetchers";var Z0=k.createContext(null);Z0.displayName="Await";var yn=k.createContext(null);yn.displayName="Navigation";var Nr=k.createContext(null);Nr.displayName="Location";var la=k.createContext({outlet:null,matches:[],isDataRoute:!1});la.displayName="Route";var Hf=k.createContext(null);Hf.displayName="RouteError";var iy="REACT_ROUTER_ERROR",J0="REDIRECT",F0="ROUTE_ERROR_RESPONSE";function P0(n){if(n.startsWith(`${iy}:${J0}:{`))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 W0(n){if(n.startsWith(`${iy}:${F0}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new Y0(a.status,a.statusText,a.data)}catch{}}function eS(n,{relative:a}={}){rt(is(),"useHref() may be used only in the context of a component.");let{basename:i,navigator:r}=k.useContext(yn),{hash:c,pathname:d,search:p}=Tr(n,{relative:a}),y=d;return i!=="/"&&(y=d==="/"?i:Yn([i,d])),r.createHref({pathname:y,search:p,hash:c})}function is(){return k.useContext(Nr)!=null}function Vn(){return rt(is(),"useLocation() may be used only in the context of a component."),k.useContext(Nr).location}var sy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ry(n){k.useContext(yn).static||k.useLayoutEffect(n)}function Gf(){let{isDataRoute:n}=k.useContext(la);return n?mS():tS()}function tS(){rt(is(),"useNavigate() may be used only in the context of a component.");let n=k.useContext(ls),{basename:a,navigator:i}=k.useContext(yn),{matches:r}=k.useContext(la),{pathname:c}=Vn(),d=JSON.stringify(Uf(r)),p=k.useRef(!1);return ry(()=>{p.current=!0}),k.useCallback((_,g={})=>{if(Mn(p.current,sy),!p.current)return;if(typeof _=="number"){i.go(_);return}let S=To(_,JSON.parse(d),c,g.relative==="path");n==null&&a!=="/"&&(S.pathname=S.pathname==="/"?a:Yn([a,S.pathname])),(g.replace?i.replace:i.push)(S,g.state,g)},[a,i,d,c,n])}k.createContext(null);function Tr(n,{relative:a}={}){let{matches:i}=k.useContext(la),{pathname:r}=Vn(),c=JSON.stringify(Uf(i));return k.useMemo(()=>To(n,JSON.parse(c),r,a==="path"),[n,c,r,a])}function nS(n,a){return cy(n,a)}function cy(n,a,i){var N;rt(is(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=k.useContext(yn),{matches:c}=k.useContext(la),d=c[c.length-1],p=d?d.params:{},y=d?d.pathname:"/",_=d?d.pathnameBase:"/",g=d&&d.route;{let T=g&&g.path||"";uy(y,!g||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${y}" (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 S=Vn(),x;if(a){let T=typeof a=="string"?ei(a):a;rt(_==="/"||((N=T.pathname)==null?void 0:N.startsWith(_)),`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 "${_}" but pathname "${T.pathname}" was given in the \`location\` prop.`),x=T}else x=S;let w=x.pathname||"/",$=w;if(_!=="/"){let T=_.replace(/^\//,"").split("/");$="/"+w.replace(/^\//,"").split("/").slice(T.length).join("/")}let j=i&&i.state.matches.length?i.state.matches.map(T=>Object.assign(T,{route:i.manifest[T.route.id]||T.route})):Jg(n,{pathname:$});Mn(g||j!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Mn(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 R=rS(j&&j.map(T=>Object.assign({},T,{params:Object.assign({},p,T.params),pathname:Yn([_,r.encodeLocation?r.encodeLocation(T.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?_:Yn([_,r.encodeLocation?r.encodeLocation(T.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),c,i);return a&&R?k.createElement(Nr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...x},navigationType:"POP"}},R):R}function aS(){let n=fS(),a=I0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},p=null;return console.error("Error handled by React Router default ErrorBoundary:",n),p=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:d},"ErrorBoundary")," or"," ",k.createElement("code",{style:d},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},a),i?k.createElement("pre",{style:c},i):null,p)}var lS=k.createElement(aS,null),oy=class extends k.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 i=W0(n.digest);i&&(n=i)}let a=n!==void 0?k.createElement(la.Provider,{value:this.props.routeContext},k.createElement(Hf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?k.createElement(iS,{error:n},a):a}};oy.contextType=ay;var af=new WeakMap;function iS({children:n,error:a}){let{basename:i}=k.useContext(yn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let r=P0(a.digest);if(r){let c=af.get(a);if(c)throw c;let d=ty(r.location,i);if(ey&&!af.get(a))if(d.isExternal||r.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw af.set(a,p),p}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function sS({routeContext:n,match:a,children:i}){let r=k.useContext(ls);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),k.createElement(la.Provider,{value:n},i)}function rS(n,a=[],i){let r=i==null?void 0:i.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let c=n,d=r==null?void 0:r.errors;if(d!=null){let S=c.findIndex(x=>x.route.id&&(d==null?void 0:d[x.route.id])!==void 0);rt(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,S+1))}let p=!1,y=-1;if(i&&r){p=r.renderFallback;for(let S=0;S=0?c=c.slice(0,y+1):c=[c[0]];break}}}}let _=i==null?void 0:i.onError,g=r&&_?(S,x)=>{var w,$;_(S,{location:r.location,params:(($=(w=r.matches)==null?void 0:w[0])==null?void 0:$.params)??{},pattern:K0(r.matches),errorInfo:x})}:void 0;return c.reduceRight((S,x,w)=>{let $,j=!1,R=null,N=null;r&&($=d&&x.route.id?d[x.route.id]:void 0,R=x.route.errorElement||lS,p&&(y<0&&w===0?(uy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,N=null):y===w&&(j=!0,N=x.route.hydrateFallbackElement||null)));let T=a.concat(c.slice(0,w+1)),Q=()=>{let K;return $?K=R:j?K=N:x.route.Component?K=k.createElement(x.route.Component,null):x.route.element?K=x.route.element:K=S,k.createElement(sS,{match:x,routeContext:{outlet:S,matches:T,isDataRoute:r!=null},children:K})};return r&&(x.route.ErrorBoundary||x.route.errorElement||w===0)?k.createElement(oy,{location:r.location,revalidation:r.revalidation,component:R,error:$,children:Q(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:g}):Q()},null)}function Yf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cS(n){let a=k.useContext(ls);return rt(a,Yf(n)),a}function oS(n){let a=k.useContext(Do);return rt(a,Yf(n)),a}function uS(n){let a=k.useContext(la);return rt(a,Yf(n)),a}function If(n){let a=uS(n),i=a.matches[a.matches.length-1];return rt(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function dS(){return If("useRouteId")}function fS(){var r;let n=k.useContext(Hf),a=oS("useRouteError"),i=If("useRouteError");return n!==void 0?n:(r=a.errors)==null?void 0:r[i]}function mS(){let{router:n}=cS("useNavigate"),a=If("useNavigate"),i=k.useRef(!1);return ry(()=>{i.current=!0}),k.useCallback(async(c,d={})=>{Mn(i.current,sy),i.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:a,...d}))},[n,a])}var Wh={};function uy(n,a,i){!a&&!Wh[n]&&(Wh[n]=!0,Mn(!1,i))}k.memo(pS);function pS({routes:n,manifest:a,future:i,state:r,isStatic:c,onError:d}){return cy(n,void 0,{manifest:a,state:r,isStatic:c,onError:d})}function _S({to:n,replace:a,state:i,relative:r}){rt(is()," may be used only in the context of a component.");let{static:c}=k.useContext(yn);Mn(!c," 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:d}=k.useContext(la),{pathname:p}=Vn(),y=Gf(),_=To(n,Uf(d),p,r==="path"),g=JSON.stringify(_);return k.useEffect(()=>{y(JSON.parse(g),{replace:a,state:i,relative:r})},[y,g,r,a,i]),null}function bf(n){rt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function hS({basename:n="/",children:a=null,location:i,navigationType:r="POP",navigator:c,static:d=!1,useTransitions:p}){rt(!is(),"You cannot render a inside another . You should never have more than one in your app.");let y=n.replace(/^\/*/,"/"),_=k.useMemo(()=>({basename:y,navigator:c,static:d,useTransitions:p,future:{}}),[y,c,d,p]);typeof i=="string"&&(i=ei(i));let{pathname:g="/",search:S="",hash:x="",state:w=null,key:$="default",mask:j}=i,R=k.useMemo(()=>{let N=Na(g,y);return N==null?null:{location:{pathname:N,search:S,hash:x,state:w,key:$,mask:j},navigationType:r}},[y,g,S,x,w,$,r,j]);return Mn(R!=null,` is not able to match the URL "${g}${S}${x}" because it does not start with the basename, so the won't render anything.`),R==null?null:k.createElement(yn.Provider,{value:_},k.createElement(Nr.Provider,{children:a,value:R}))}function gS({children:n,location:a}){return nS(Sf(n),a)}function Sf(n,a=[]){let i=[];return k.Children.forEach(n,(r,c)=>{if(!k.isValidElement(r))return;let d=[...a,c];if(r.type===k.Fragment){i.push.apply(i,Sf(r.props.children,d));return}rt(r.type===bf,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),rt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let p={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(p.children=Sf(r.props.children,d)),i.push(p)}),i}var fo="get",mo="application/x-www-form-urlencoded";function Ro(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function yS(n){return Ro(n)&&n.tagName.toLowerCase()==="button"}function vS(n){return Ro(n)&&n.tagName.toLowerCase()==="form"}function bS(n){return Ro(n)&&n.tagName.toLowerCase()==="input"}function SS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function xS(n,a){return n.button===0&&(!a||a==="_self")&&!SS(n)}var so=null;function kS(){if(so===null)try{new FormData(document.createElement("form"),0),so=!1}catch{so=!0}return so}var wS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function lf(n){return n!=null&&!wS.has(n)?(Mn(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${mo}"`),null):n}function jS(n,a){let i,r,c,d,p;if(vS(n)){let y=n.getAttribute("action");r=y?Na(y,a):null,i=n.getAttribute("method")||fo,c=lf(n.getAttribute("enctype"))||mo,d=new FormData(n)}else if(yS(n)||bS(n)&&(n.type==="submit"||n.type==="image")){let y=n.form;if(y==null)throw new Error('Cannot submit a