const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/firebase-CjPmcjJo.js","assets/index.esm-ca2v9-iu.js","assets/index.esm-CIVL9pKL.js"])))=>i.map(i=>d[i]); function EJ(e,t){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function PJ(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var wj={exports:{}},Hm={};/** * @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 Ok;function kJ(){if(Ok)return Hm;Ok=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,i){var l=null;if(i!==void 0&&(l=""+i),s.key!==void 0&&(l=""+s.key),"key"in s){i={};for(var c in s)c!=="key"&&(i[c]=s[c])}else i=s;return s=i.ref,{$$typeof:e,type:n,key:l,ref:s!==void 0?s:null,props:i}}return Hm.Fragment=t,Hm.jsx=r,Hm.jsxs=r,Hm}var Ek;function Z$(){return Ek||(Ek=1,wj.exports=kJ()),wj.exports}var a=Z$(),jj={exports:{}},hr={};/** * @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 Pk;function MJ(){if(Pk)return hr;Pk=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),p=Symbol.iterator;function v(Y){return Y===null||typeof Y!="object"?null:(Y=p&&Y[p]||Y["@@iterator"],typeof Y=="function"?Y:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,N={};function S(Y,I,q){this.props=Y,this.context=I,this.refs=N,this.updater=q||b}S.prototype.isReactComponent={},S.prototype.setState=function(Y,I){if(typeof Y!="object"&&typeof Y!="function"&&Y!=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,Y,I,"setState")},S.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};function A(){}A.prototype=S.prototype;function D(Y,I,q){this.props=Y,this.context=I,this.refs=N,this.updater=q||b}var M=D.prototype=new A;M.constructor=D,j(M,S.prototype),M.isPureReactComponent=!0;var E=Array.isArray;function k(){}var T={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function P(Y,I,q){var W=q.ref;return{$$typeof:e,type:Y,key:I,ref:W!==void 0?W:null,props:q}}function R(Y,I){return P(Y.type,I,Y.props)}function L(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function B(Y){var I={"=":"=0",":":"=2"};return"$"+Y.replace(/[=:]/g,function(q){return I[q]})}var G=/\/+/g;function X(Y,I){return typeof Y=="object"&&Y!==null&&Y.key!=null?B(""+Y.key):I.toString(36)}function ie(Y){switch(Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason;default:switch(typeof Y.status=="string"?Y.then(k,k):(Y.status="pending",Y.then(function(I){Y.status==="pending"&&(Y.status="fulfilled",Y.value=I)},function(I){Y.status==="pending"&&(Y.status="rejected",Y.reason=I)})),Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason}}throw Y}function z(Y,I,q,W,F){var J=typeof Y;(J==="undefined"||J==="boolean")&&(Y=null);var ne=!1;if(Y===null)ne=!0;else switch(J){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(Y.$$typeof){case e:case t:ne=!0;break;case h:return ne=Y._init,z(ne(Y._payload),I,q,W,F)}}if(ne)return F=F(Y),ne=W===""?"."+X(Y,0):W,E(F)?(q="",ne!=null&&(q=ne.replace(G,"$&/")+"/"),z(F,I,q,"",function(oe){return oe})):F!=null&&(L(F)&&(F=R(F,q+(F.key==null||Y&&Y.key===F.key?"":(""+F.key).replace(G,"$&/")+"/")+ne)),I.push(F)),1;ne=0;var se=W===""?".":W+":";if(E(Y))for(var ue=0;ue>>1,K=z[re];if(0>>1;res(q,Q))Ws(F,q)?(z[re]=F,z[W]=Q,re=W):(z[re]=q,z[I]=Q,re=I);else if(Ws(F,Q))z[re]=F,z[W]=Q,re=W;else break e}}return V}function s(z,V){var Q=z.sortIndex-V.sortIndex;return Q!==0?Q:z.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],h=1,m=null,p=3,v=!1,b=!1,j=!1,N=!1,S=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function M(z){for(var V=r(f);V!==null;){if(V.callback===null)n(f);else if(V.startTime<=z)n(f),V.sortIndex=V.expirationTime,t(d,V);else break;V=r(f)}}function E(z){if(j=!1,M(z),!b)if(r(d)!==null)b=!0,k||(k=!0,B());else{var V=r(f);V!==null&&ie(E,V.startTime-z)}}var k=!1,T=-1,O=5,P=-1;function R(){return N?!0:!(e.unstable_now()-Pz&&R());){var re=m.callback;if(typeof re=="function"){m.callback=null,p=m.priorityLevel;var K=re(m.expirationTime<=z);if(z=e.unstable_now(),typeof K=="function"){m.callback=K,M(z),V=!0;break t}m===r(d)&&n(d),M(z)}else n(d);m=r(d)}if(m!==null)V=!0;else{var Y=r(f);Y!==null&&ie(E,Y.startTime-z),V=!1}}break e}finally{m=null,p=Q,v=!1}V=void 0}}finally{V?B():k=!1}}}var B;if(typeof D=="function")B=function(){D(L)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,X=G.port2;G.port1.onmessage=L,B=function(){X.postMessage(null)}}else B=function(){S(L,0)};function ie(z,V){T=S(function(){z(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125re?(z.sortIndex=Q,t(f,z),r(d)===null&&z===r(f)&&(j?(A(T),T=-1):j=!0,ie(E,Q-re))):(z.sortIndex=K,t(d,z),b||v||(b=!0,k||(k=!0,B()))),z},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(z){var V=p;return function(){var Q=p;p=V;try{return z.apply(this,arguments)}finally{p=Q}}}})(_j)),_j}var Rk;function FJ(){return Rk||(Rk=1,Sj.exports=LJ()),Sj.exports}var Aj={exports:{}},ns={};/** * @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 Ik;function BJ(){if(Ik)return ns;Ik=1;var e=_s();function t(d){var f="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Aj.exports=BJ(),Aj.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 Fk;function UJ(){if(Fk)return Ym;Fk=1;var e=FJ(),t=_s(),r=J$();function n(o){var u="https://react.dev/errors/"+o;if(1K||(o.current=re[K],re[K]=null,K--)}function q(o,u){K++,re[K]=o.current,o.current=u}var W=Y(null),F=Y(null),J=Y(null),ne=Y(null);function se(o,u){switch(q(J,u),q(F,o),q(W,null),u.nodeType){case 9:case 11:o=(o=u.documentElement)&&(o=o.namespaceURI)?JP(o):0;break;default:if(o=u.tagName,u=u.namespaceURI)u=JP(u),o=ek(u,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}I(W),q(W,o)}function ue(){I(W),I(F),I(J)}function oe(o){o.memoizedState!==null&&q(ne,o);var u=W.current,x=ek(u,o.type);u!==x&&(q(F,o),q(W,x))}function _e(o){F.current===o&&(I(W),I(F)),ne.current===o&&(I(ne),zm._currentValue=Q)}var ge,je;function Ee(o){if(ge===void 0)try{throw Error()}catch(x){var u=x.stack.trim().match(/\n( *(at )?)/);ge=u&&u[1]||"",je=-1)":-1_||pe[w]!==Be[_]){var Ze=` `+pe[w].replace(" at new "," at ");return o.displayName&&Ze.includes("")&&(Ze=Ze.replace("",o.displayName)),Ze}while(1<=w&&0<=_);break}}}finally{qe=!1,Error.prepareStackTrace=x}return(x=o?o.displayName||o.name:"")?Ee(x):""}function fe(o,u){switch(o.tag){case 26:case 27:case 5:return Ee(o.type);case 16:return Ee("Lazy");case 13:return o.child!==u&&u!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return Ve(o.type,!1);case 11:return Ve(o.type.render,!1);case 1:return Ve(o.type,!0);case 31:return Ee("Activity");default:return""}}function Le(o){try{var u="",x=null;do u+=fe(o,x),x=o,o=o.return;while(o);return u}catch(w){return` Error generating stack: `+w.message+` `+w.stack}}var Qe=Object.prototype.hasOwnProperty,vt=e.unstable_scheduleCallback,gt=e.unstable_cancelCallback,Ct=e.unstable_shouldYield,pt=e.unstable_requestPaint,Nt=e.unstable_now,Pe=e.unstable_getCurrentPriorityLevel,Te=e.unstable_ImmediatePriority,Ne=e.unstable_UserBlockingPriority,ut=e.unstable_NormalPriority,zt=e.unstable_LowPriority,rr=e.unstable_IdlePriority,wr=e.log,Tr=e.unstable_setDisableYieldValue,Xt=null,or=null;function Cr(o){if(typeof wr=="function"&&Tr(o),or&&typeof or.setStrictMode=="function")try{or.setStrictMode(Xt,o)}catch{}}var cr=Math.clz32?Math.clz32:sr,ra=Math.log,Br=Math.LN2;function sr(o){return o>>>=0,o===0?32:31-(ra(o)/Br|0)|0}var Wt=256,Gt=262144,fr=4194304;function Vt(o){var u=o&42;if(u!==0)return u;switch(o&-o){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 o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function ye(o,u,x){var w=o.pendingLanes;if(w===0)return 0;var _=0,C=o.suspendedLanes,U=o.pingedLanes;o=o.warmLanes;var ae=w&134217727;return ae!==0?(w=ae&~C,w!==0?_=Vt(w):(U&=ae,U!==0?_=Vt(U):x||(x=ae&~o,x!==0&&(_=Vt(x))))):(ae=w&~C,ae!==0?_=Vt(ae):U!==0?_=Vt(U):x||(x=w&~o,x!==0&&(_=Vt(x)))),_===0?0:u!==0&&u!==_&&(u&C)===0&&(C=_&-_,x=u&-u,C>=x||C===32&&(x&4194048)!==0)?u:_}function Ye(o,u){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&u)===0}function Tt(o,u){switch(o){case 1:case 2:case 4:case 8:case 64:return u+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 u+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 Bt(){var o=fr;return fr<<=1,(fr&62914560)===0&&(fr=4194304),o}function Re(o){for(var u=[],x=0;31>x;x++)u.push(o);return u}function We(o,u){o.pendingLanes|=u,u!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function xt(o,u,x,w,_,C){var U=o.pendingLanes;o.pendingLanes=x,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=x,o.entangledLanes&=x,o.errorRecoveryDisabledLanes&=x,o.shellSuspendCounter=0;var ae=o.entanglements,pe=o.expirationTimes,Be=o.hiddenUpdates;for(x=U&~x;0"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var gs=/[\n"\\]/g;function ma(o){return o.replace(gs,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Ks(o,u,x,w,_,C,U,ae){o.name="",U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?o.type=U:o.removeAttribute("type"),u!=null?U==="number"?(u===0&&o.value===""||o.value!=u)&&(o.value=""+Jt(u)):o.value!==""+Jt(u)&&(o.value=""+Jt(u)):U!=="submit"&&U!=="reset"||o.removeAttribute("value"),u!=null?Cs(o,U,Jt(u)):x!=null?Cs(o,U,Jt(x)):w!=null&&o.removeAttribute("value"),_==null&&C!=null&&(o.defaultChecked=!!C),_!=null&&(o.checked=_&&typeof _!="function"&&typeof _!="symbol"),ae!=null&&typeof ae!="function"&&typeof ae!="symbol"&&typeof ae!="boolean"?o.name=""+Jt(ae):o.removeAttribute("name")}function pi(o,u,x,w,_,C,U,ae){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(o.type=C),u!=null||x!=null){if(!(C!=="submit"&&C!=="reset"||u!=null)){Mt(o);return}x=x!=null?""+Jt(x):"",u=u!=null?""+Jt(u):x,ae||u===o.value||(o.value=u),o.defaultValue=u}w=w??_,w=typeof w!="function"&&typeof w!="symbol"&&!!w,o.checked=ae?o.checked:!!w,o.defaultChecked=!!w,U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"&&(o.name=U),Mt(o)}function Cs(o,u,x){u==="number"&&_a(o.ownerDocument)===o||o.defaultValue===""+x||(o.defaultValue=""+x)}function as(o,u,x,w){if(o=o.options,u){u={};for(var _=0;_"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lr=!1;if(Et)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){lr=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{lr=!1}var La=null,qi=null,yi=null;function dl(){if(yi)return yi;var o,u=qi,x=u.length,w,_="value"in La?La.value:La.textContent,C=_.length;for(o=0;o=Gl),Bd=" ",Ud=!1;function zd(o,u){switch(o){case"keyup":return tm.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $d(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ml=!1;function am(o,u){switch(o){case"compositionend":return $d(u);case"keypress":return u.which!==32?null:(Ud=!0,Bd);case"textInput":return o=u.data,o===Bd&&Ud?null:o;default:return null}}function nm(o,u){if(ml)return o==="compositionend"||!uu&&zd(o,u)?(o=dl(),yi=qi=La=null,ml=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1=u)return{node:x,offset:u-o};o=w}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=Xd(x)}}function Zd(o,u){return o&&u?o===u?!0:o&&o.nodeType===3?!1:u&&u.nodeType===3?Zd(o,u.parentNode):"contains"in o?o.contains(u):o.compareDocumentPosition?!!(o.compareDocumentPosition(u)&16):!1:!1}function Jd(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var u=_a(o.document);u instanceof o.HTMLIFrameElement;){try{var x=typeof u.contentWindow.location.href=="string"}catch{x=!1}if(x)o=u.contentWindow;else break;u=_a(o.document)}return u}function hu(o){var u=o&&o.nodeName&&o.nodeName.toLowerCase();return u&&(u==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||u==="textarea"||o.contentEditable==="true")}var fm=Et&&"documentMode"in document&&11>=document.documentMode,xl=null,mu=null,Ql=null,xu=!1;function ef(o,u,x){var w=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;xu||xl==null||xl!==_a(w)||(w=xl,"selectionStart"in w&&hu(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),Ql&&Xl(Ql,w)||(Ql=w,w=Mg(mu,"onSelect"),0>=U,_-=U,pl=1<<32-cr(u)+_|x<<_|w,vl=C+o}else pl=1<br?(Mr=Yt,Yt=null):Mr=Yt.sibling;var zr=Ue(Ce,Yt,Fe[br],Je);if(zr===null){Yt===null&&(Yt=Mr);break}o&&Yt&&zr.alternate===null&&u(Ce,Yt),we=C(zr,we,br),Ur===null?Qt=zr:Ur.sibling=zr,Ur=zr,Yt=Mr}if(br===Fe.length)return x(Ce,Yt),Ir&&Jl(Ce,br),Qt;if(Yt===null){for(;brbr?(Mr=Yt,Yt=null):Mr=Yt.sibling;var Ac=Ue(Ce,Yt,zr.value,Je);if(Ac===null){Yt===null&&(Yt=Mr);break}o&&Yt&&Ac.alternate===null&&u(Ce,Yt),we=C(Ac,we,br),Ur===null?Qt=Ac:Ur.sibling=Ac,Ur=Ac,Yt=Mr}if(zr.done)return x(Ce,Yt),Ir&&Jl(Ce,br),Qt;if(Yt===null){for(;!zr.done;br++,zr=Fe.next())zr=tt(Ce,zr.value,Je),zr!==null&&(we=C(zr,we,br),Ur===null?Qt=zr:Ur.sibling=zr,Ur=zr);return Ir&&Jl(Ce,br),Qt}for(Yt=w(Yt);!zr.done;br++,zr=Fe.next())zr=Ge(Yt,Ce,br,zr.value,Je),zr!==null&&(o&&zr.alternate!==null&&Yt.delete(zr.key===null?br:zr.key),we=C(zr,we,br),Ur===null?Qt=zr:Ur.sibling=zr,Ur=zr);return o&&Yt.forEach(function(OJ){return u(Ce,OJ)}),Ir&&Jl(Ce,br),Qt}function la(Ce,we,Fe,Je){if(typeof Fe=="object"&&Fe!==null&&Fe.type===j&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case v:e:{for(var Qt=Fe.key;we!==null;){if(we.key===Qt){if(Qt=Fe.type,Qt===j){if(we.tag===7){x(Ce,we.sibling),Je=_(we,Fe.props.children),Je.return=Ce,Ce=Je;break e}}else if(we.elementType===Qt||typeof Qt=="object"&&Qt!==null&&Qt.$$typeof===O&&Nu(Qt)===we.type){x(Ce,we.sibling),Je=_(we,Fe.props),vm(Je,Fe),Je.return=Ce,Ce=Je;break e}x(Ce,we);break}else u(Ce,we);we=we.sibling}Fe.type===j?(Je=vu(Fe.props.children,Ce.mode,Je,Fe.key),Je.return=Ce,Ce=Je):(Je=Qx(Fe.type,Fe.key,Fe.props,null,Ce.mode,Je),vm(Je,Fe),Je.return=Ce,Ce=Je)}return U(Ce);case b:e:{for(Qt=Fe.key;we!==null;){if(we.key===Qt)if(we.tag===4&&we.stateNode.containerInfo===Fe.containerInfo&&we.stateNode.implementation===Fe.implementation){x(Ce,we.sibling),Je=_(we,Fe.children||[]),Je.return=Ce,Ce=Je;break e}else{x(Ce,we);break}else u(Ce,we);we=we.sibling}Je=B1(Fe,Ce.mode,Je),Je.return=Ce,Ce=Je}return U(Ce);case O:return Fe=Nu(Fe),la(Ce,we,Fe,Je)}if(ie(Fe))return Lt(Ce,we,Fe,Je);if(B(Fe)){if(Qt=B(Fe),typeof Qt!="function")throw Error(n(150));return Fe=Qt.call(Fe),tr(Ce,we,Fe,Je)}if(typeof Fe.then=="function")return la(Ce,we,ng(Fe),Je);if(Fe.$$typeof===D)return la(Ce,we,eg(Ce,Fe),Je);sg(Ce,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint"?(Fe=""+Fe,we!==null&&we.tag===6?(x(Ce,we.sibling),Je=_(we,Fe),Je.return=Ce,Ce=Je):(x(Ce,we),Je=F1(Fe,Ce.mode,Je),Je.return=Ce,Ce=Je),U(Ce)):x(Ce,we)}return function(Ce,we,Fe,Je){try{pm=0;var Qt=la(Ce,we,Fe,Je);return ff=null,Qt}catch(Yt){if(Yt===df||Yt===rg)throw Yt;var Ur=Zs(29,Yt,null,Ce.mode);return Ur.lanes=Je,Ur.return=Ce,Ur}finally{}}}var _u=WE(!0),HE=WE(!1),cc=!1;function Q1(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Z1(o,u){o=o.updateQueue,u.updateQueue===o&&(u.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function uc(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function dc(o,u,x){var w=o.updateQueue;if(w===null)return null;if(w=w.shared,(Wr&2)!==0){var _=w.pending;return _===null?u.next=u:(u.next=_.next,_.next=u),w.pending=u,u=Xx(o),TE(o,null,x),u}return Kx(o,w,u,x),Xx(o)}function ym(o,u,x){if(u=u.updateQueue,u!==null&&(u=u.shared,(x&4194048)!==0)){var w=u.lanes;w&=o.pendingLanes,x|=w,u.lanes=x,ve(o,x)}}function J1(o,u){var x=o.updateQueue,w=o.alternate;if(w!==null&&(w=w.updateQueue,x===w)){var _=null,C=null;if(x=x.firstBaseUpdate,x!==null){do{var U={lane:x.lane,tag:x.tag,payload:x.payload,callback:null,next:null};C===null?_=C=U:C=C.next=U,x=x.next}while(x!==null);C===null?_=C=u:C=C.next=u}else _=C=u;x={baseState:w.baseState,firstBaseUpdate:_,lastBaseUpdate:C,shared:w.shared,callbacks:w.callbacks},o.updateQueue=x;return}o=x.lastBaseUpdate,o===null?x.firstBaseUpdate=u:o.next=u,x.lastBaseUpdate=u}var ew=!1;function bm(){if(ew){var o=uf;if(o!==null)throw o}}function wm(o,u,x,w){ew=!1;var _=o.updateQueue;cc=!1;var C=_.firstBaseUpdate,U=_.lastBaseUpdate,ae=_.shared.pending;if(ae!==null){_.shared.pending=null;var pe=ae,Be=pe.next;pe.next=null,U===null?C=Be:U.next=Be,U=pe;var Ze=o.alternate;Ze!==null&&(Ze=Ze.updateQueue,ae=Ze.lastBaseUpdate,ae!==U&&(ae===null?Ze.firstBaseUpdate=Be:ae.next=Be,Ze.lastBaseUpdate=pe))}if(C!==null){var tt=_.baseState;U=0,Ze=Be=pe=null,ae=C;do{var Ue=ae.lane&-536870913,Ge=Ue!==ae.lane;if(Ge?(kr&Ue)===Ue:(w&Ue)===Ue){Ue!==0&&Ue===cf&&(ew=!0),Ze!==null&&(Ze=Ze.next={lane:0,tag:ae.tag,payload:ae.payload,callback:null,next:null});e:{var Lt=o,tr=ae;Ue=u;var la=x;switch(tr.tag){case 1:if(Lt=tr.payload,typeof Lt=="function"){tt=Lt.call(la,tt,Ue);break e}tt=Lt;break e;case 3:Lt.flags=Lt.flags&-65537|128;case 0:if(Lt=tr.payload,Ue=typeof Lt=="function"?Lt.call(la,tt,Ue):Lt,Ue==null)break e;tt=m({},tt,Ue);break e;case 2:cc=!0}}Ue=ae.callback,Ue!==null&&(o.flags|=64,Ge&&(o.flags|=8192),Ge=_.callbacks,Ge===null?_.callbacks=[Ue]:Ge.push(Ue))}else Ge={lane:Ue,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null},Ze===null?(Be=Ze=Ge,pe=tt):Ze=Ze.next=Ge,U|=Ue;if(ae=ae.next,ae===null){if(ae=_.shared.pending,ae===null)break;Ge=ae,ae=Ge.next,Ge.next=null,_.lastBaseUpdate=Ge,_.shared.pending=null}}while(!0);Ze===null&&(pe=tt),_.baseState=pe,_.firstBaseUpdate=Be,_.lastBaseUpdate=Ze,C===null&&(_.shared.lanes=0),gc|=U,o.lanes=U,o.memoizedState=tt}}function YE(o,u){if(typeof o!="function")throw Error(n(191,o));o.call(u)}function GE(o,u){var x=o.callbacks;if(x!==null)for(o.callbacks=null,o=0;oC?C:8;var U=z.T,ae={};z.T=ae,yw(o,!1,u,x);try{var pe=_(),Be=z.S;if(Be!==null&&Be(ae,pe),pe!==null&&typeof pe=="object"&&typeof pe.then=="function"){var Ze=yZ(pe,w);Sm(o,u,Ze,ai(o))}else Sm(o,u,w,ai(o))}catch(tt){Sm(o,u,{then:function(){},status:"rejected",reason:tt},ai())}finally{V.p=C,U!==null&&ae.types!==null&&(U.types=ae.types),z.T=U}}function _Z(){}function pw(o,u,x,w){if(o.tag!==5)throw Error(n(476));var _=_5(o).queue;S5(o,_,u,Q,x===null?_Z:function(){return A5(o),x(w)})}function _5(o){var u=o.memoizedState;if(u!==null)return u;u={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:Q},next:null};var x={};return u.next={memoizedState:x,baseState:x,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:x},next:null},o.memoizedState=u,o=o.alternate,o!==null&&(o.memoizedState=u),u}function A5(o){var u=_5(o);u.next===null&&(u=o.alternate.memoizedState),Sm(o,u.next.queue,{},ai())}function vw(){return Hn(zm)}function D5(){return Xa().memoizedState}function T5(){return Xa().memoizedState}function AZ(o){for(var u=o.return;u!==null;){switch(u.tag){case 24:case 3:var x=ai();o=uc(x);var w=dc(u,o,x);w!==null&&(Fs(w,u,x),ym(w,u,x)),u={cache:G1()},o.payload=u;return}u=u.return}}function DZ(o,u,x){var w=ai();x={lane:w,revertLane:0,gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},xg(o)?O5(u,x):(x=I1(o,u,x,w),x!==null&&(Fs(x,o,w),E5(x,u,w)))}function C5(o,u,x){var w=ai();Sm(o,u,x,w)}function Sm(o,u,x,w){var _={lane:w,revertLane:0,gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null};if(xg(o))O5(u,_);else{var C=o.alternate;if(o.lanes===0&&(C===null||C.lanes===0)&&(C=u.lastRenderedReducer,C!==null))try{var U=u.lastRenderedState,ae=C(U,x);if(_.hasEagerState=!0,_.eagerState=ae,qn(ae,U))return Kx(o,u,_,0),fa===null&&Vx(),!1}catch{}finally{}if(x=I1(o,u,_,w),x!==null)return Fs(x,o,w),E5(x,u,w),!0}return!1}function yw(o,u,x,w){if(w={lane:2,revertLane:Qw(),gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null},xg(o)){if(u)throw Error(n(479))}else u=I1(o,x,w,2),u!==null&&Fs(u,o,2)}function xg(o){var u=o.alternate;return o===xr||u!==null&&u===xr}function O5(o,u){mf=og=!0;var x=o.pending;x===null?u.next=u:(u.next=x.next,x.next=u),o.pending=u}function E5(o,u,x){if((x&4194048)!==0){var w=u.lanes;w&=o.pendingLanes,x|=w,u.lanes=x,ve(o,x)}}var _m={readContext:Hn,use:dg,useCallback:Ba,useContext:Ba,useEffect:Ba,useImperativeHandle:Ba,useLayoutEffect:Ba,useInsertionEffect:Ba,useMemo:Ba,useReducer:Ba,useRef:Ba,useState:Ba,useDebugValue:Ba,useDeferredValue:Ba,useTransition:Ba,useSyncExternalStore:Ba,useId:Ba,useHostTransitionStatus:Ba,useFormState:Ba,useActionState:Ba,useOptimistic:Ba,useMemoCache:Ba,useCacheRefresh:Ba};_m.useEffectEvent=Ba;var P5={readContext:Hn,use:dg,useCallback:function(o,u){return ps().memoizedState=[o,u===void 0?null:u],o},useContext:Hn,useEffect:x5,useImperativeHandle:function(o,u,x){x=x!=null?x.concat([o]):null,hg(4194308,4,y5.bind(null,u,o),x)},useLayoutEffect:function(o,u){return hg(4194308,4,o,u)},useInsertionEffect:function(o,u){hg(4,2,o,u)},useMemo:function(o,u){var x=ps();u=u===void 0?null:u;var w=o();if(Au){Cr(!0);try{o()}finally{Cr(!1)}}return x.memoizedState=[w,u],w},useReducer:function(o,u,x){var w=ps();if(x!==void 0){var _=x(u);if(Au){Cr(!0);try{x(u)}finally{Cr(!1)}}}else _=u;return w.memoizedState=w.baseState=_,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:_},w.queue=o,o=o.dispatch=DZ.bind(null,xr,o),[w.memoizedState,o]},useRef:function(o){var u=ps();return o={current:o},u.memoizedState=o},useState:function(o){o=fw(o);var u=o.queue,x=C5.bind(null,xr,u);return u.dispatch=x,[o.memoizedState,x]},useDebugValue:xw,useDeferredValue:function(o,u){var x=ps();return gw(x,o,u)},useTransition:function(){var o=fw(!1);return o=S5.bind(null,xr,o.queue,!0,!1),ps().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,u,x){var w=xr,_=ps();if(Ir){if(x===void 0)throw Error(n(407));x=x()}else{if(x=u(),fa===null)throw Error(n(349));(kr&127)!==0||JE(w,u,x)}_.memoizedState=x;var C={value:x,getSnapshot:u};return _.queue=C,x5(t5.bind(null,w,C,o),[o]),w.flags|=2048,gf(9,{destroy:void 0},e5.bind(null,w,C,x,u),null),x},useId:function(){var o=ps(),u=fa.identifierPrefix;if(Ir){var x=vl,w=pl;x=(w&~(1<<32-cr(w)-1)).toString(32)+x,u="_"+u+"R_"+x,x=cg++,0<\/script>",C=C.removeChild(C.firstChild);break;case"select":C=typeof w.is=="string"?U.createElement("select",{is:w.is}):U.createElement("select"),w.multiple?C.multiple=!0:w.size&&(C.size=w.size);break;default:C=typeof w.is=="string"?U.createElement(_,{is:w.is}):U.createElement(_)}}C[le]=u,C[de]=w;e:for(U=u.child;U!==null;){if(U.tag===5||U.tag===6)C.appendChild(U.stateNode);else if(U.tag!==4&&U.tag!==27&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===u)break e;for(;U.sibling===null;){if(U.return===null||U.return===u)break e;U=U.return}U.sibling.return=U.return,U=U.sibling}u.stateNode=C;e:switch(Gn(C,_,w),_){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}w&&so(u)}}return ba(u),kw(u,u.type,o===null?null:o.memoizedProps,u.pendingProps,x),null;case 6:if(o&&u.stateNode!=null)o.memoizedProps!==w&&so(u);else{if(typeof w!="string"&&u.stateNode===null)throw Error(n(166));if(o=J.current,lf(u)){if(o=u.stateNode,x=u.memoizedProps,w=null,_=Wn,_!==null)switch(_.tag){case 27:case 5:w=_.memoizedProps}o[le]=u,o=!!(o.nodeValue===x||w!==null&&w.suppressHydrationWarning===!0||QP(o.nodeValue,x)),o||lc(u,!0)}else o=Rg(o).createTextNode(w),o[le]=u,u.stateNode=o}return ba(u),null;case 31:if(x=u.memoizedState,o===null||o.memoizedState!==null){if(w=lf(u),x!==null){if(o===null){if(!w)throw Error(n(318));if(o=u.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(557));o[le]=u}else yu(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;ba(u),o=!1}else x=q1(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=x),o=!0;if(!o)return u.flags&256?(ei(u),u):(ei(u),null);if((u.flags&128)!==0)throw Error(n(558))}return ba(u),null;case 13:if(w=u.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(_=lf(u),w!==null&&w.dehydrated!==null){if(o===null){if(!_)throw Error(n(318));if(_=u.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(n(317));_[le]=u}else yu(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;ba(u),_=!1}else _=q1(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=_),_=!0;if(!_)return u.flags&256?(ei(u),u):(ei(u),null)}return ei(u),(u.flags&128)!==0?(u.lanes=x,u):(x=w!==null,o=o!==null&&o.memoizedState!==null,x&&(w=u.child,_=null,w.alternate!==null&&w.alternate.memoizedState!==null&&w.alternate.memoizedState.cachePool!==null&&(_=w.alternate.memoizedState.cachePool.pool),C=null,w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(C=w.memoizedState.cachePool.pool),C!==_&&(w.flags|=2048)),x!==o&&x&&(u.child.flags|=8192),bg(u,u.updateQueue),ba(u),null);case 4:return ue(),o===null&&tj(u.stateNode.containerInfo),ba(u),null;case 10:return to(u.type),ba(u),null;case 19:if(I(Ka),w=u.memoizedState,w===null)return ba(u),null;if(_=(u.flags&128)!==0,C=w.rendering,C===null)if(_)Dm(w,!1);else{if(Ua!==0||o!==null&&(o.flags&128)!==0)for(o=u.child;o!==null;){if(C=lg(o),C!==null){for(u.flags|=128,Dm(w,!1),o=C.updateQueue,u.updateQueue=o,bg(u,o),u.subtreeFlags=0,o=x,x=u.child;x!==null;)CE(x,o),x=x.sibling;return q(Ka,Ka.current&1|2),Ir&&Jl(u,w.treeForkCount),u.child}o=o.sibling}w.tail!==null&&Nt()>_g&&(u.flags|=128,_=!0,Dm(w,!1),u.lanes=4194304)}else{if(!_)if(o=lg(C),o!==null){if(u.flags|=128,_=!0,o=o.updateQueue,u.updateQueue=o,bg(u,o),Dm(w,!0),w.tail===null&&w.tailMode==="hidden"&&!C.alternate&&!Ir)return ba(u),null}else 2*Nt()-w.renderingStartTime>_g&&x!==536870912&&(u.flags|=128,_=!0,Dm(w,!1),u.lanes=4194304);w.isBackwards?(C.sibling=u.child,u.child=C):(o=w.last,o!==null?o.sibling=C:u.child=C,w.last=C)}return w.tail!==null?(o=w.tail,w.rendering=o,w.tail=o.sibling,w.renderingStartTime=Nt(),o.sibling=null,x=Ka.current,q(Ka,_?x&1|2:x&1),Ir&&Jl(u,w.treeForkCount),o):(ba(u),null);case 22:case 23:return ei(u),rw(),w=u.memoizedState!==null,o!==null?o.memoizedState!==null!==w&&(u.flags|=8192):w&&(u.flags|=8192),w?(x&536870912)!==0&&(u.flags&128)===0&&(ba(u),u.subtreeFlags&6&&(u.flags|=8192)):ba(u),x=u.updateQueue,x!==null&&bg(u,x.retryQueue),x=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(x=o.memoizedState.cachePool.pool),w=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(w=u.memoizedState.cachePool.pool),w!==x&&(u.flags|=2048),o!==null&&I(ju),null;case 24:return x=null,o!==null&&(x=o.memoizedState.cache),u.memoizedState.cache!==x&&(u.flags|=2048),to(tn),ba(u),null;case 25:return null;case 30:return null}throw Error(n(156,u.tag))}function PZ(o,u){switch(z1(u),u.tag){case 1:return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 3:return to(tn),ue(),o=u.flags,(o&65536)!==0&&(o&128)===0?(u.flags=o&-65537|128,u):null;case 26:case 27:case 5:return _e(u),null;case 31:if(u.memoizedState!==null){if(ei(u),u.alternate===null)throw Error(n(340));yu()}return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 13:if(ei(u),o=u.memoizedState,o!==null&&o.dehydrated!==null){if(u.alternate===null)throw Error(n(340));yu()}return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 19:return I(Ka),null;case 4:return ue(),null;case 10:return to(u.type),null;case 22:case 23:return ei(u),rw(),o!==null&&I(ju),o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 24:return to(tn),null;case 25:return null;default:return null}}function rP(o,u){switch(z1(u),u.tag){case 3:to(tn),ue();break;case 26:case 27:case 5:_e(u);break;case 4:ue();break;case 31:u.memoizedState!==null&&ei(u);break;case 13:ei(u);break;case 19:I(Ka);break;case 10:to(u.type);break;case 22:case 23:ei(u),rw(),o!==null&&I(ju);break;case 24:to(tn)}}function Tm(o,u){try{var x=u.updateQueue,w=x!==null?x.lastEffect:null;if(w!==null){var _=w.next;x=_;do{if((x.tag&o)===o){w=void 0;var C=x.create,U=x.inst;w=C(),U.destroy=w}x=x.next}while(x!==_)}}catch(ae){Xr(u,u.return,ae)}}function mc(o,u,x){try{var w=u.updateQueue,_=w!==null?w.lastEffect:null;if(_!==null){var C=_.next;w=C;do{if((w.tag&o)===o){var U=w.inst,ae=U.destroy;if(ae!==void 0){U.destroy=void 0,_=u;var pe=x,Be=ae;try{Be()}catch(Ze){Xr(_,pe,Ze)}}}w=w.next}while(w!==C)}}catch(Ze){Xr(u,u.return,Ze)}}function aP(o){var u=o.updateQueue;if(u!==null){var x=o.stateNode;try{GE(u,x)}catch(w){Xr(o,o.return,w)}}}function nP(o,u,x){x.props=Du(o.type,o.memoizedProps),x.state=o.memoizedState;try{x.componentWillUnmount()}catch(w){Xr(o,u,w)}}function Cm(o,u){try{var x=o.ref;if(x!==null){switch(o.tag){case 26:case 27:case 5:var w=o.stateNode;break;case 30:w=o.stateNode;break;default:w=o.stateNode}typeof x=="function"?o.refCleanup=x(w):x.current=w}}catch(_){Xr(o,u,_)}}function yl(o,u){var x=o.ref,w=o.refCleanup;if(x!==null)if(typeof w=="function")try{w()}catch(_){Xr(o,u,_)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof x=="function")try{x(null)}catch(_){Xr(o,u,_)}else x.current=null}function sP(o){var u=o.type,x=o.memoizedProps,w=o.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":x.autoFocus&&w.focus();break e;case"img":x.src?w.src=x.src:x.srcSet&&(w.srcset=x.srcSet)}}catch(_){Xr(o,o.return,_)}}function Mw(o,u,x){try{var w=o.stateNode;eJ(w,o.type,x,u),w[de]=u}catch(_){Xr(o,o.return,_)}}function iP(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&wc(o.type)||o.tag===4}function Rw(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||iP(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&wc(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Iw(o,u,x){var w=o.tag;if(w===5||w===6)o=o.stateNode,u?(x.nodeType===9?x.body:x.nodeName==="HTML"?x.ownerDocument.body:x).insertBefore(o,u):(u=x.nodeType===9?x.body:x.nodeName==="HTML"?x.ownerDocument.body:x,u.appendChild(o),x=x._reactRootContainer,x!=null||u.onclick!==null||(u.onclick=Va));else if(w!==4&&(w===27&&wc(o.type)&&(x=o.stateNode,u=null),o=o.child,o!==null))for(Iw(o,u,x),o=o.sibling;o!==null;)Iw(o,u,x),o=o.sibling}function wg(o,u,x){var w=o.tag;if(w===5||w===6)o=o.stateNode,u?x.insertBefore(o,u):x.appendChild(o);else if(w!==4&&(w===27&&wc(o.type)&&(x=o.stateNode),o=o.child,o!==null))for(wg(o,u,x),o=o.sibling;o!==null;)wg(o,u,x),o=o.sibling}function lP(o){var u=o.stateNode,x=o.memoizedProps;try{for(var w=o.type,_=u.attributes;_.length;)u.removeAttributeNode(_[0]);Gn(u,w,x),u[le]=o,u[de]=x}catch(C){Xr(o,o.return,C)}}var io=!1,nn=!1,Lw=!1,oP=typeof WeakSet=="function"?WeakSet:Set,Dn=null;function kZ(o,u){if(o=o.containerInfo,nj=$g,o=Jd(o),hu(o)){if("selectionStart"in o)var x={start:o.selectionStart,end:o.selectionEnd};else e:{x=(x=o.ownerDocument)&&x.defaultView||window;var w=x.getSelection&&x.getSelection();if(w&&w.rangeCount!==0){x=w.anchorNode;var _=w.anchorOffset,C=w.focusNode;w=w.focusOffset;try{x.nodeType,C.nodeType}catch{x=null;break e}var U=0,ae=-1,pe=-1,Be=0,Ze=0,tt=o,Ue=null;t:for(;;){for(var Ge;tt!==x||_!==0&&tt.nodeType!==3||(ae=U+_),tt!==C||w!==0&&tt.nodeType!==3||(pe=U+w),tt.nodeType===3&&(U+=tt.nodeValue.length),(Ge=tt.firstChild)!==null;)Ue=tt,tt=Ge;for(;;){if(tt===o)break t;if(Ue===x&&++Be===_&&(ae=U),Ue===C&&++Ze===w&&(pe=U),(Ge=tt.nextSibling)!==null)break;tt=Ue,Ue=tt.parentNode}tt=Ge}x=ae===-1||pe===-1?null:{start:ae,end:pe}}else x=null}x=x||{start:0,end:0}}else x=null;for(sj={focusedElem:o,selectionRange:x},$g=!1,Dn=u;Dn!==null;)if(u=Dn,o=u.child,(u.subtreeFlags&1028)!==0&&o!==null)o.return=u,Dn=o;else for(;Dn!==null;){switch(u=Dn,C=u.alternate,o=u.flags,u.tag){case 0:if((o&4)!==0&&(o=u.updateQueue,o=o!==null?o.events:null,o!==null))for(x=0;x title"))),Gn(C,w,x),C[le]=o,At(C),w=C;break e;case"link":var U=mk("link","href",_).get(w+(x.href||""));if(U){for(var ae=0;aela&&(U=la,la=tr,tr=U);var Ce=Qd(ae,tr),we=Qd(ae,la);if(Ce&&we&&(Ge.rangeCount!==1||Ge.anchorNode!==Ce.node||Ge.anchorOffset!==Ce.offset||Ge.focusNode!==we.node||Ge.focusOffset!==we.offset)){var Fe=tt.createRange();Fe.setStart(Ce.node,Ce.offset),Ge.removeAllRanges(),tr>la?(Ge.addRange(Fe),Ge.extend(we.node,we.offset)):(Fe.setEnd(we.node,we.offset),Ge.addRange(Fe))}}}}for(tt=[],Ge=ae;Ge=Ge.parentNode;)Ge.nodeType===1&&tt.push({element:Ge,left:Ge.scrollLeft,top:Ge.scrollTop});for(typeof ae.focus=="function"&&ae.focus(),ae=0;aex?32:x,z.T=null,x=Ww,Ww=null;var C=vc,U=fo;if(xn=0,wf=vc=null,fo=0,(Wr&6)!==0)throw Error(n(331));var ae=Wr;if(Wr|=4,yP(C.current),gP(C,C.current,U,x),Wr=ae,Rm(0,!1),or&&typeof or.onPostCommitFiberRoot=="function")try{or.onPostCommitFiberRoot(Xt,C)}catch{}return!0}finally{V.p=_,z.T=w,LP(o,u)}}function BP(o,u,x){u=wi(x,u),u=Nw(o.stateNode,u,2),o=dc(o,u,2),o!==null&&(We(o,2),bl(o))}function Xr(o,u,x){if(o.tag===3)BP(o,o,x);else for(;u!==null;){if(u.tag===3){BP(u,o,x);break}else if(u.tag===1){var w=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(pc===null||!pc.has(w))){o=wi(x,o),x=U5(2),w=dc(u,x,2),w!==null&&(z5(x,w,u,o),We(w,2),bl(w));break}}u=u.return}}function Vw(o,u,x){var w=o.pingCache;if(w===null){w=o.pingCache=new IZ;var _=new Set;w.set(u,_)}else _=w.get(u),_===void 0&&(_=new Set,w.set(u,_));_.has(x)||(Uw=!0,_.add(x),o=zZ.bind(null,o,u,x),u.then(o,o))}function zZ(o,u,x){var w=o.pingCache;w!==null&&w.delete(u),o.pingedLanes|=o.suspendedLanes&x,o.warmLanes&=~x,fa===o&&(kr&x)===x&&(Ua===4||Ua===3&&(kr&62914560)===kr&&300>Nt()-Sg?(Wr&2)===0&&jf(o,0):zw|=x,bf===kr&&(bf=0)),bl(o)}function UP(o,u){u===0&&(u=Bt()),o=pu(o,u),o!==null&&(We(o,u),bl(o))}function $Z(o){var u=o.memoizedState,x=0;u!==null&&(x=u.retryLane),UP(o,x)}function qZ(o,u){var x=0;switch(o.tag){case 31:case 13:var w=o.stateNode,_=o.memoizedState;_!==null&&(x=_.retryLane);break;case 19:w=o.stateNode;break;case 22:w=o.stateNode._retryCache;break;default:throw Error(n(314))}w!==null&&w.delete(u),UP(o,x)}function WZ(o,u){return vt(o,u)}var Eg=null,Sf=null,Kw=!1,Pg=!1,Xw=!1,bc=0;function bl(o){o!==Sf&&o.next===null&&(Sf===null?Eg=Sf=o:Sf=Sf.next=o),Pg=!0,Kw||(Kw=!0,YZ())}function Rm(o,u){if(!Xw&&Pg){Xw=!0;do for(var x=!1,w=Eg;w!==null;){if(o!==0){var _=w.pendingLanes;if(_===0)var C=0;else{var U=w.suspendedLanes,ae=w.pingedLanes;C=(1<<31-cr(42|o)+1)-1,C&=_&~(U&~ae),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(x=!0,WP(w,C))}else C=kr,C=ye(w,w===fa?C:0,w.cancelPendingCommit!==null||w.timeoutHandle!==-1),(C&3)===0||Ye(w,C)||(x=!0,WP(w,C));w=w.next}while(x);Xw=!1}}function HZ(){zP()}function zP(){Pg=Kw=!1;var o=0;bc!==0&&rJ()&&(o=bc);for(var u=Nt(),x=null,w=Eg;w!==null;){var _=w.next,C=$P(w,u);C===0?(w.next=null,x===null?Eg=_:x.next=_,_===null&&(Sf=x)):(x=w,(o!==0||(C&3)!==0)&&(Pg=!0)),w=_}xn!==0&&xn!==5||Rm(o),bc!==0&&(bc=0)}function $P(o,u){for(var x=o.suspendedLanes,w=o.pingedLanes,_=o.expirationTimes,C=o.pendingLanes&-62914561;0ae)break;var Ze=pe.transferSize,tt=pe.initiatorType;Ze&&ZP(tt)&&(pe=pe.responseEnd,U+=Ze*(pe"u"?null:document;function uk(o,u,x){var w=_f;if(w&&typeof u=="string"&&u){var _=ma(u);_='link[rel="'+o+'"][href="'+_+'"]',typeof x=="string"&&(_+='[crossorigin="'+x+'"]'),ck.has(_)||(ck.add(_),o={rel:o,crossOrigin:x,href:u},w.querySelector(_)===null&&(u=w.createElement("link"),Gn(u,"link",o),At(u),w.head.appendChild(u)))}}function dJ(o){ho.D(o),uk("dns-prefetch",o,null)}function fJ(o,u){ho.C(o,u),uk("preconnect",o,u)}function hJ(o,u,x){ho.L(o,u,x);var w=_f;if(w&&o&&u){var _='link[rel="preload"][as="'+ma(u)+'"]';u==="image"&&x&&x.imageSrcSet?(_+='[imagesrcset="'+ma(x.imageSrcSet)+'"]',typeof x.imageSizes=="string"&&(_+='[imagesizes="'+ma(x.imageSizes)+'"]')):_+='[href="'+ma(o)+'"]';var C=_;switch(u){case"style":C=Af(o);break;case"script":C=Df(o)}Di.has(C)||(o=m({rel:"preload",href:u==="image"&&x&&x.imageSrcSet?void 0:o,as:u},x),Di.set(C,o),w.querySelector(_)!==null||u==="style"&&w.querySelector(Bm(C))||u==="script"&&w.querySelector(Um(C))||(u=w.createElement("link"),Gn(u,"link",o),At(u),w.head.appendChild(u)))}}function mJ(o,u){ho.m(o,u);var x=_f;if(x&&o){var w=u&&typeof u.as=="string"?u.as:"script",_='link[rel="modulepreload"][as="'+ma(w)+'"][href="'+ma(o)+'"]',C=_;switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=Df(o)}if(!Di.has(C)&&(o=m({rel:"modulepreload",href:o},u),Di.set(C,o),x.querySelector(_)===null)){switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(x.querySelector(Um(C)))return}w=x.createElement("link"),Gn(w,"link",o),At(w),x.head.appendChild(w)}}}function xJ(o,u,x){ho.S(o,u,x);var w=_f;if(w&&o){var _=mt(w).hoistableStyles,C=Af(o);u=u||"default";var U=_.get(C);if(!U){var ae={loading:0,preload:null};if(U=w.querySelector(Bm(C)))ae.loading=5;else{o=m({rel:"stylesheet",href:o,"data-precedence":u},x),(x=Di.get(C))&&fj(o,x);var pe=U=w.createElement("link");At(pe),Gn(pe,"link",o),pe._p=new Promise(function(Be,Ze){pe.onload=Be,pe.onerror=Ze}),pe.addEventListener("load",function(){ae.loading|=1}),pe.addEventListener("error",function(){ae.loading|=2}),ae.loading|=4,Lg(U,u,w)}U={type:"stylesheet",instance:U,count:1,state:ae},_.set(C,U)}}}function gJ(o,u){ho.X(o,u);var x=_f;if(x&&o){var w=mt(x).hoistableScripts,_=Df(o),C=w.get(_);C||(C=x.querySelector(Um(_)),C||(o=m({src:o,async:!0},u),(u=Di.get(_))&&hj(o,u),C=x.createElement("script"),At(C),Gn(C,"link",o),x.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},w.set(_,C))}}function pJ(o,u){ho.M(o,u);var x=_f;if(x&&o){var w=mt(x).hoistableScripts,_=Df(o),C=w.get(_);C||(C=x.querySelector(Um(_)),C||(o=m({src:o,async:!0,type:"module"},u),(u=Di.get(_))&&hj(o,u),C=x.createElement("script"),At(C),Gn(C,"link",o),x.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},w.set(_,C))}}function dk(o,u,x,w){var _=(_=J.current)?Ig(_):null;if(!_)throw Error(n(446));switch(o){case"meta":case"title":return null;case"style":return typeof x.precedence=="string"&&typeof x.href=="string"?(u=Af(x.href),x=mt(_).hoistableStyles,w=x.get(u),w||(w={type:"style",instance:null,count:0,state:null},x.set(u,w)),w):{type:"void",instance:null,count:0,state:null};case"link":if(x.rel==="stylesheet"&&typeof x.href=="string"&&typeof x.precedence=="string"){o=Af(x.href);var C=mt(_).hoistableStyles,U=C.get(o);if(U||(_=_.ownerDocument||_,U={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(o,U),(C=_.querySelector(Bm(o)))&&!C._p&&(U.instance=C,U.state.loading=5),Di.has(o)||(x={rel:"preload",as:"style",href:x.href,crossOrigin:x.crossOrigin,integrity:x.integrity,media:x.media,hrefLang:x.hrefLang,referrerPolicy:x.referrerPolicy},Di.set(o,x),C||vJ(_,o,x,U.state))),u&&w===null)throw Error(n(528,""));return U}if(u&&w!==null)throw Error(n(529,""));return null;case"script":return u=x.async,x=x.src,typeof x=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=Df(x),x=mt(_).hoistableScripts,w=x.get(u),w||(w={type:"script",instance:null,count:0,state:null},x.set(u,w)),w):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,o))}}function Af(o){return'href="'+ma(o)+'"'}function Bm(o){return'link[rel="stylesheet"]['+o+"]"}function fk(o){return m({},o,{"data-precedence":o.precedence,precedence:null})}function vJ(o,u,x,w){o.querySelector('link[rel="preload"][as="style"]['+u+"]")?w.loading=1:(u=o.createElement("link"),w.preload=u,u.addEventListener("load",function(){return w.loading|=1}),u.addEventListener("error",function(){return w.loading|=2}),Gn(u,"link",x),At(u),o.head.appendChild(u))}function Df(o){return'[src="'+ma(o)+'"]'}function Um(o){return"script[async]"+o}function hk(o,u,x){if(u.count++,u.instance===null)switch(u.type){case"style":var w=o.querySelector('style[data-href~="'+ma(x.href)+'"]');if(w)return u.instance=w,At(w),w;var _=m({},x,{"data-href":x.href,"data-precedence":x.precedence,href:null,precedence:null});return w=(o.ownerDocument||o).createElement("style"),At(w),Gn(w,"style",_),Lg(w,x.precedence,o),u.instance=w;case"stylesheet":_=Af(x.href);var C=o.querySelector(Bm(_));if(C)return u.state.loading|=4,u.instance=C,At(C),C;w=fk(x),(_=Di.get(_))&&fj(w,_),C=(o.ownerDocument||o).createElement("link"),At(C);var U=C;return U._p=new Promise(function(ae,pe){U.onload=ae,U.onerror=pe}),Gn(C,"link",w),u.state.loading|=4,Lg(C,x.precedence,o),u.instance=C;case"script":return C=Df(x.src),(_=o.querySelector(Um(C)))?(u.instance=_,At(_),_):(w=x,(_=Di.get(C))&&(w=m({},x),hj(w,_)),o=o.ownerDocument||o,_=o.createElement("script"),At(_),Gn(_,"link",w),o.head.appendChild(_),u.instance=_);case"void":return null;default:throw Error(n(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(w=u.instance,u.state.loading|=4,Lg(w,x.precedence,o));return u.instance}function Lg(o,u,x){for(var w=x.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=w.length?w[w.length-1]:null,C=_,U=0;U title"):null)}function yJ(o,u,x){if(x===1||u.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return o=u.disabled,typeof u.precedence=="string"&&o==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function gk(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function bJ(o,u,x,w){if(x.type==="stylesheet"&&(typeof w.media!="string"||matchMedia(w.media).matches!==!1)&&(x.state.loading&4)===0){if(x.instance===null){var _=Af(w.href),C=u.querySelector(Bm(_));if(C){u=C._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(o.count++,o=Bg.bind(o),u.then(o,o)),x.state.loading|=4,x.instance=C,At(C);return}C=u.ownerDocument||u,w=fk(w),(_=Di.get(_))&&fj(w,_),C=C.createElement("link"),At(C);var U=C;U._p=new Promise(function(ae,pe){U.onload=ae,U.onerror=pe}),Gn(C,"link",w),x.instance=C}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(x,u),(u=x.state.preload)&&(x.state.loading&3)===0&&(o.count++,x=Bg.bind(o),u.addEventListener("load",x),u.addEventListener("error",x))}}var mj=0;function wJ(o,u){return o.stylesheets&&o.count===0&&zg(o,o.stylesheets),0mj?50:800)+u);return o.unsuspend=x,function(){o.unsuspend=null,clearTimeout(w),clearTimeout(_)}}:null}function Bg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zg(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Ug=null;function zg(o,u){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Ug=new Map,u.forEach(jJ,o),Ug=null,Bg.call(o))}function jJ(o,u){if(!(u.state.loading&4)){var x=Ug.get(o);if(x)var w=x.get(null);else{x=new Map,Ug.set(o,x);for(var _=o.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<_.length;C++){var U=_[C];(U.nodeName==="LINK"||U.getAttribute("media")!=="not all")&&(x.set(U.dataset.precedence,U),w=U)}w&&x.set(null,w)}_=u.instance,U=_.getAttribute("data-precedence"),C=x.get(U)||w,C===w&&x.set(null,_),x.set(U,_),this.count++,w=Bg.bind(this),_.addEventListener("load",w),_.addEventListener("error",w),C?C.parentNode.insertBefore(_,C.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(_,o.firstChild)),u.state.loading|=4}}var zm={$$typeof:D,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function NJ(o,u,x,w,_,C,U,ae,pe){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=w,this.onUncaughtError=_,this.onCaughtError=C,this.onRecoverableError=U,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=pe,this.incompleteTransitions=new Map}function pk(o,u,x,w,_,C,U,ae,pe,Be,Ze,tt){return o=new NJ(o,u,x,U,pe,Be,Ze,tt,ae),u=1,C===!0&&(u|=24),C=Zs(3,null,null,u),o.current=C,C.stateNode=o,u=G1(),u.refCount++,o.pooledCache=u,u.refCount++,C.memoizedState={element:w,isDehydrated:x,cache:u},Q1(C),o}function vk(o){return o?(o=af,o):af}function yk(o,u,x,w,_,C){_=vk(_),w.context===null?w.context=_:w.pendingContext=_,w=uc(u),w.payload={element:x},C=C===void 0?null:C,C!==null&&(w.callback=C),x=dc(o,w,u),x!==null&&(Fs(x,o,u),ym(x,o,u))}function bk(o,u){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var x=o.retryLane;o.retryLane=x!==0&&x"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Nj.exports=UJ(),Nj.exports}var $J=zJ();/** * react-router v7.9.4 * * 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 Uk="popstate";function qJ(e={}){function t(n,s){let{pathname:i,search:l,hash:c}=n.location;return UD("",{pathname:i,search:l,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:F0(s)}return HJ(t,r,null,e)}function Ca(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Fi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WJ(){return Math.random().toString(36).substring(2,10)}function zk(e,t){return{usr:e.state,key:e.key,idx:t}}function UD(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?bh(t):t,state:r,key:t&&t.key||n||WJ()}}function F0({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function bh(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function HJ(e,t,r,n={}){let{window:s=document.defaultView,v5Compat:i=!1}=n,l=s.history,c="POP",d=null,f=h();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function h(){return(l.state||{idx:null}).idx}function m(){c="POP";let N=h(),S=N==null?null:N-f;f=N,d&&d({action:c,location:j.location,delta:S})}function p(N,S){c="PUSH";let A=UD(j.location,N,S);f=h()+1;let D=zk(A,f),M=j.createHref(A);try{l.pushState(D,"",M)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(M)}i&&d&&d({action:c,location:j.location,delta:1})}function v(N,S){c="REPLACE";let A=UD(j.location,N,S);f=h();let D=zk(A,f),M=j.createHref(A);l.replaceState(D,"",M),i&&d&&d({action:c,location:j.location,delta:0})}function b(N){return YJ(N)}let j={get action(){return c},get location(){return e(s,l)},listen(N){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(Uk,m),d=N,()=>{s.removeEventListener(Uk,m),d=null}},createHref(N){return t(s,N)},createURL:b,encodeLocation(N){let S=b(N);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:p,replace:v,go(N){return l.go(N)}};return j}function YJ(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ca(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:F0(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function eq(e,t,r="/"){return GJ(e,t,r,!1)}function GJ(e,t,r,n){let s=typeof t=="string"?bh(t):t,i=Mo(s.pathname||"/",r);if(i==null)return null;let l=tq(e);VJ(l);let c=null;for(let d=0;c==null&&d{let h={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(n)&&d)return;Ca(h.relativePath.startsWith(n),`Absolute route path "${h.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(n.length)}let m=Do([n,h.relativePath]),p=r.concat(h);l.children&&l.children.length>0&&(Ca(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),tq(l.children,t,p,m,d)),!(l.path==null&&!l.index)&&t.push({path:m,score:tee(m,l.index),routesMeta:p})};return e.forEach((l,c)=>{if(l.path===""||!l.path?.includes("?"))i(l,c);else for(let d of rq(l.path))i(l,c,!0,d)}),t}function rq(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let l=rq(n.join("/")),c=[];return c.push(...l.map(d=>d===""?i:[i,d].join("/"))),s&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function VJ(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ree(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var KJ=/^:[\w-]+$/,XJ=3,QJ=2,ZJ=1,JJ=10,eee=-2,$k=e=>e==="*";function tee(e,t){let r=e.split("/"),n=r.length;return r.some($k)&&(n+=eee),t&&(n+=QJ),r.filter(s=>!$k(s)).reduce((s,i)=>s+(KJ.test(i)?XJ:i===""?ZJ:JJ),n)}function ree(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function aee(e,t,r=!1){let{routesMeta:n}=e,s={},i="/",l=[];for(let c=0;c{if(h==="*"){let b=c[p]||"";l=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const v=c[p];return m&&!v?f[h]=void 0:f[h]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:l,pattern:e}}function nee(e,t=!1,r=!0){Fi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(n.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function see(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Mo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function iee(e,t="/"){let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?bh(e):e;return{pathname:r?r.startsWith("/")?r:lee(r,t):t,search:uee(n),hash:dee(s)}}function lee(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Dj(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function oee(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function hC(e){let t=oee(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function mC(e,t,r,n=!1){let s;typeof e=="string"?s=bh(e):(s={...e},Ca(!s.pathname||!s.pathname.includes("?"),Dj("?","pathname","search",s)),Ca(!s.pathname||!s.pathname.includes("#"),Dj("#","pathname","hash",s)),Ca(!s.search||!s.search.includes("#"),Dj("#","search","hash",s)));let i=e===""||s.pathname==="",l=i?"/":s.pathname,c;if(l==null)c=r;else{let m=t.length-1;if(!n&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),m-=1;s.pathname=p.join("/")}c=m>=0?t[m]:"/"}let d=iee(s,c),f=l&&l!=="/"&&l.endsWith("/"),h=(i||l===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(f||h)&&(d.pathname+="/"),d}var Do=e=>e.join("/").replace(/\/\/+/g,"/"),cee=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uee=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dee=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fee(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var aq=["POST","PUT","PATCH","DELETE"];new Set(aq);var hee=["GET",...aq];new Set(hee);var wh=y.createContext(null);wh.displayName="DataRouter";var ab=y.createContext(null);ab.displayName="DataRouterState";y.createContext(!1);var nq=y.createContext({isTransitioning:!1});nq.displayName="ViewTransition";var mee=y.createContext(new Map);mee.displayName="Fetchers";var xee=y.createContext(null);xee.displayName="Await";var il=y.createContext(null);il.displayName="Navigation";var cx=y.createContext(null);cx.displayName="Location";var ll=y.createContext({outlet:null,matches:[],isDataRoute:!1});ll.displayName="Route";var xC=y.createContext(null);xC.displayName="RouteError";function gee(e,{relative:t}={}){Ca(jh(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=y.useContext(il),{hash:s,pathname:i,search:l}=ux(e,{relative:t}),c=i;return r!=="/"&&(c=i==="/"?r:Do([r,i])),n.createHref({pathname:c,search:l,hash:s})}function jh(){return y.useContext(cx)!=null}function Gs(){return Ca(jh(),"useLocation() may be used only in the context of a component."),y.useContext(cx).location}var sq="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function iq(e){y.useContext(il).static||y.useLayoutEffect(e)}function Pt(){let{isDataRoute:e}=y.useContext(ll);return e?Cee():pee()}function pee(){Ca(jh(),"useNavigate() may be used only in the context of a component.");let e=y.useContext(wh),{basename:t,navigator:r}=y.useContext(il),{matches:n}=y.useContext(ll),{pathname:s}=Gs(),i=JSON.stringify(hC(n)),l=y.useRef(!1);return iq(()=>{l.current=!0}),y.useCallback((d,f={})=>{if(Fi(l.current,sq),!l.current)return;if(typeof d=="number"){r.go(d);return}let h=mC(d,JSON.parse(i),s,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Do([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,i,s,e])}y.createContext(null);function nb(){let{matches:e}=y.useContext(ll),t=e[e.length-1];return t?t.params:{}}function ux(e,{relative:t}={}){let{matches:r}=y.useContext(ll),{pathname:n}=Gs(),s=JSON.stringify(hC(r));return y.useMemo(()=>mC(e,JSON.parse(s),n,t==="path"),[e,s,n,t])}function vee(e,t){return lq(e,t)}function lq(e,t,r,n,s){Ca(jh(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=y.useContext(il),{matches:l}=y.useContext(ll),c=l[l.length-1],d=c?c.params:{},f=c?c.pathname:"/",h=c?c.pathnameBase:"/",m=c&&c.route;{let A=m&&m.path||"";oq(f,!m||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${f}" (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 p=Gs(),v;if(t){let A=typeof t=="string"?bh(t):t;Ca(h==="/"||A.pathname?.startsWith(h),`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 "${h}" but pathname "${A.pathname}" was given in the \`location\` prop.`),v=A}else v=p;let b=v.pathname||"/",j=b;if(h!=="/"){let A=h.replace(/^\//,"").split("/");j="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let N=eq(e,{pathname:j});Fi(m||N!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Fi(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 S=Nee(N&&N.map(A=>Object.assign({},A,{params:Object.assign({},d,A.params),pathname:Do([h,i.encodeLocation?i.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?h:Do([h,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),l,r,n,s);return t&&S?y.createElement(cx.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},S):S}function yee(){let e=Tee(),t=fee(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:i},"ErrorBoundary")," or"," ",y.createElement("code",{style:i},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),r?y.createElement("pre",{style:s},r):null,l)}var bee=y.createElement(yee,null),wee=class extends y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?y.createElement(ll.Provider,{value:this.props.routeContext},y.createElement(xC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function jee({routeContext:e,match:t,children:r}){let n=y.useContext(wh);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),y.createElement(ll.Provider,{value:e},r)}function Nee(e,t=[],r=null,n=null,s=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=r?.errors;if(l!=null){let f=i.findIndex(h=>h.route.id&&l?.[h.route.id]!==void 0);Ca(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,d=-1;if(r)for(let f=0;f=0?i=i.slice(0,d+1):i=[i[0]];break}}}return i.reduceRight((f,h,m)=>{let p,v=!1,b=null,j=null;r&&(p=l&&h.route.id?l[h.route.id]:void 0,b=h.route.errorElement||bee,c&&(d<0&&m===0?(oq("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,j=null):d===m&&(v=!0,j=h.route.hydrateFallbackElement||null)));let N=t.concat(i.slice(0,m+1)),S=()=>{let A;return p?A=b:v?A=j:h.route.Component?A=y.createElement(h.route.Component,null):h.route.element?A=h.route.element:A=f,y.createElement(jee,{match:h,routeContext:{outlet:f,matches:N,isDataRoute:r!=null},children:A})};return r&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?y.createElement(wee,{location:r.location,revalidation:r.revalidation,component:b,error:p,children:S(),routeContext:{outlet:null,matches:N,isDataRoute:!0},unstable_onError:n}):S()},null)}function gC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function See(e){let t=y.useContext(wh);return Ca(t,gC(e)),t}function _ee(e){let t=y.useContext(ab);return Ca(t,gC(e)),t}function Aee(e){let t=y.useContext(ll);return Ca(t,gC(e)),t}function pC(e){let t=Aee(e),r=t.matches[t.matches.length-1];return Ca(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Dee(){return pC("useRouteId")}function Tee(){let e=y.useContext(xC),t=_ee("useRouteError"),r=pC("useRouteError");return e!==void 0?e:t.errors?.[r]}function Cee(){let{router:e}=See("useNavigate"),t=pC("useNavigate"),r=y.useRef(!1);return iq(()=>{r.current=!0}),y.useCallback(async(s,i={})=>{Fi(r.current,sq),r.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...i}))},[e,t])}var qk={};function oq(e,t,r){!t&&!qk[e]&&(qk[e]=!0,Fi(!1,r))}y.memo(Oee);function Oee({routes:e,future:t,state:r,unstable_onError:n}){return lq(e,void 0,r,n,t)}function To({to:e,replace:t,state:r,relative:n}){Ca(jh()," may be used only in the context of a component.");let{static:s}=y.useContext(il);Fi(!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:i}=y.useContext(ll),{pathname:l}=Gs(),c=Pt(),d=mC(e,hC(i),l,n==="path"),f=JSON.stringify(d);return y.useEffect(()=>{c(JSON.parse(f),{replace:t,state:r,relative:n})},[c,f,n,t,r]),null}function kt(e){Ca(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Eee({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:s,static:i=!1}){Ca(!jh(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:l,navigator:s,static:i,future:{}}),[l,s,i]);typeof r=="string"&&(r=bh(r));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:p="default"}=r,v=y.useMemo(()=>{let b=Mo(d,l);return b==null?null:{location:{pathname:b,search:f,hash:h,state:m,key:p},navigationType:n}},[l,d,f,h,m,p,n]);return Fi(v!=null,` is not able to match the URL "${d}${f}${h}" because it does not start with the basename, so the won't render anything.`),v==null?null:y.createElement(il.Provider,{value:c},y.createElement(cx.Provider,{children:t,value:v}))}function Pee({children:e,location:t}){return vee(zD(e),t)}function zD(e,t=[]){let r=[];return y.Children.forEach(e,(n,s)=>{if(!y.isValidElement(n))return;let i=[...t,s];if(n.type===y.Fragment){r.push.apply(r,zD(n.props.children,i));return}Ca(n.type===kt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),Ca(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=zD(n.props.children,i)),r.push(l)}),r}var Nv="get",Sv="application/x-www-form-urlencoded";function sb(e){return e!=null&&typeof e.tagName=="string"}function kee(e){return sb(e)&&e.tagName.toLowerCase()==="button"}function Mee(e){return sb(e)&&e.tagName.toLowerCase()==="form"}function Ree(e){return sb(e)&&e.tagName.toLowerCase()==="input"}function Iee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Lee(e,t){return e.button===0&&(!t||t==="_self")&&!Iee(e)}function $D(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function Fee(e,t){let r=$D(e);return t&&t.forEach((n,s)=>{r.has(s)||t.getAll(s).forEach(i=>{r.append(s,i)})}),r}var Kg=null;function Bee(){if(Kg===null)try{new FormData(document.createElement("form"),0),Kg=!1}catch{Kg=!0}return Kg}var Uee=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tj(e){return e!=null&&!Uee.has(e)?(Fi(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Sv}"`),null):e}function zee(e,t){let r,n,s,i,l;if(Mee(e)){let c=e.getAttribute("action");n=c?Mo(c,t):null,r=e.getAttribute("method")||Nv,s=Tj(e.getAttribute("enctype"))||Sv,i=new FormData(e)}else if(kee(e)||Ree(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a