(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=s(o);fetch(o.href,f)}})();function ab(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var td={exports:{}},zs={};/** * @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 Up;function lb(){if(Up)return zs;Up=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var _ in o)_!=="key"&&(f[_]=o[_])}else f=o;return o=f.ref,{$$typeof:n,type:r,key:h,ref:o!==void 0?o:null,props:f}}return zs.Fragment=l,zs.jsx=s,zs.jsxs=s,zs}var Bp;function ib(){return Bp||(Bp=1,td.exports=lb()),td.exports}var u=ib(),nd={exports:{}},ge={};/** * @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 Hp;function sb(){if(Hp)return ge;Hp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),w=Symbol.iterator;function q(E){return E===null||typeof E!="object"?null:(E=w&&E[w]||E["@@iterator"],typeof E=="function"?E:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,z={};function U(E,G,J){this.props=E,this.context=G,this.refs=z,this.updater=J||C}U.prototype.isReactComponent={},U.prototype.setState=function(E,G){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,G,"setState")},U.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function K(){}K.prototype=U.prototype;function M(E,G,J){this.props=E,this.context=G,this.refs=z,this.updater=J||C}var W=M.prototype=new K;W.constructor=M,O(W,U.prototype),W.isPureReactComponent=!0;var ee=Array.isArray;function he(){}var Z={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function ae(E,G,J){var P=J.ref;return{$$typeof:n,type:E,key:G,ref:P!==void 0?P:null,props:J}}function be(E,G){return ae(E.type,G,E.props)}function He(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function ze(E){var G={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return G[J]})}var V=/\/+/g;function re(E,G){return typeof E=="object"&&E!==null&&E.key!=null?ze(""+E.key):G.toString(36)}function B(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(he,he):(E.status="pending",E.then(function(G){E.status==="pending"&&(E.status="fulfilled",E.value=G)},function(G){E.status==="pending"&&(E.status="rejected",E.reason=G)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function N(E,G,J,P,de){var ye=typeof E;(ye==="undefined"||ye==="boolean")&&(E=null);var I=!1;if(E===null)I=!0;else switch(ye){case"bigint":case"string":case"number":I=!0;break;case"object":switch(E.$$typeof){case n:case l:I=!0;break;case b:return I=E._init,N(I(E._payload),G,J,P,de)}}if(I)return de=de(E),I=P===""?"."+re(E,0):P,ee(de)?(J="",I!=null&&(J=I.replace(V,"$&/")+"/"),N(de,G,J,"",function($e){return $e})):de!=null&&(He(de)&&(de=be(de,J+(de.key==null||E&&E.key===de.key?"":(""+de.key).replace(V,"$&/")+"/")+I)),G.push(de)),1;I=0;var te=P===""?".":P+":";if(ee(E))for(var Me=0;Me>>1,Se=N[me];if(0>>1;meo(J,le))Po(de,J)?(N[me]=de,N[P]=le,me=P):(N[me]=J,N[G]=le,me=G);else if(Po(de,le))N[me]=de,N[P]=le,me=P;else break e}}return X}function o(N,X){var le=N.sortIndex-X.sortIndex;return le!==0?le:N.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,_=h.now();n.unstable_now=function(){return h.now()-_}}var p=[],g=[],b=1,x=null,w=3,q=!1,C=!1,O=!1,z=!1,U=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function W(N){for(var X=s(g);X!==null;){if(X.callback===null)r(g);else if(X.startTime<=N)r(g),X.sortIndex=X.expirationTime,l(p,X);else break;X=s(g)}}function ee(N){if(O=!1,W(N),!C)if(s(p)!==null)C=!0,he||(he=!0,ze());else{var X=s(g);X!==null&&B(ee,X.startTime-N)}}var he=!1,Z=-1,ie=5,ae=-1;function be(){return z?!0:!(n.unstable_now()-aeN&&be());){var me=x.callback;if(typeof me=="function"){x.callback=null,w=x.priorityLevel;var Se=me(x.expirationTime<=N);if(N=n.unstable_now(),typeof Se=="function"){x.callback=Se,W(N),X=!0;break t}x===s(p)&&r(p),W(N)}else r(p);x=s(p)}if(x!==null)X=!0;else{var E=s(g);E!==null&&B(ee,E.startTime-N),X=!1}}break e}finally{x=null,w=le,q=!1}X=void 0}}finally{X?ze():he=!1}}}var ze;if(typeof M=="function")ze=function(){M(He)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,re=V.port2;V.port1.onmessage=He,ze=function(){re.postMessage(null)}}else ze=function(){U(He,0)};function B(N,X){Z=U(function(){N(n.unstable_now())},X)}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(N){N.callback=null},n.unstable_forceFrameRate=function(N){0>N||125me?(N.sortIndex=le,l(g,N),s(p)===null&&N===s(g)&&(O?(K(Z),Z=-1):O=!0,B(ee,le-me))):(N.sortIndex=Se,l(p,N),C||q||(C=!0,he||(he=!0,ze()))),N},n.unstable_shouldYield=be,n.unstable_wrapCallback=function(N){var X=w;return function(){var le=w;w=X;try{return N.apply(this,arguments)}finally{w=le}}}})(id)),id}var Qp;function ub(){return Qp||(Qp=1,ld.exports=cb()),ld.exports}var sd={exports:{}},Tt={};/** * @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 Kp;function ob(){if(Kp)return Tt;Kp=1;var n=Ld();function l(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),sd.exports=ob(),sd.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 Vp;function fb(){if(Vp)return Ms;Vp=1;var n=ub(),l=Ld(),s=db();function r(e){var t="https://react.dev/errors/"+e;if(1Se||(e.current=me[Se],me[Se]=null,Se--)}function J(e,t){Se++,me[Se]=e.current,e.current=t}var P=E(null),de=E(null),ye=E(null),I=E(null);function te(e,t){switch(J(ye,t),J(de,e),J(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?cp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=cp(t),e=up(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(P),J(P,e)}function Me(){G(P),G(de),G(ye)}function $e(e){e.memoizedState!==null&&J(I,e);var t=P.current,a=up(t,e.type);t!==a&&(J(de,e),J(P,a))}function xe(e){de.current===e&&(G(P),G(de)),I.current===e&&(G(I),Ts._currentValue=le)}var Nt,vt;function Ce(e){if(Nt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Nt=t&&t[1]||"",vt=-1)":-1c||k[i]!==R[c]){var H=` `+k[i].replace(" at new "," at ");return e.displayName&&H.includes("")&&(H=H.replace("",e.displayName)),H}while(1<=i&&0<=c);break}}}finally{at=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ce(a):""}function Ni(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce("Lazy");case 13:return e.child!==t&&t!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return Kn(e.type,!1);case 11:return Kn(e.type.render,!1);case 1:return Kn(e.type,!0);case 31:return Ce("Activity");default:return""}}function Rl(e){try{var t="",a=null;do t+=Ni(e,a),a=e,e=e.return;while(e);return t}catch(i){return` Error generating stack: `+i.message+` `+i.stack}}var Di=Object.prototype.hasOwnProperty,Ri=n.unstable_scheduleCallback,St=n.unstable_cancelCallback,Ps=n.unstable_shouldYield,we=n.unstable_requestPaint,gt=n.unstable_now,ln=n.unstable_getCurrentPriorityLevel,sn=n.unstable_ImmediatePriority,al=n.unstable_UserBlockingPriority,$t=n.unstable_NormalPriority,Dt=n.unstable_LowPriority,ll=n.unstable_IdlePriority,Xn=n.log,il=n.unstable_setDisableYieldValue,Vn=null,Ve=null;function Dn(e){if(typeof Xn=="function"&&il(e),Ve&&typeof Ve.setStrictMode=="function")try{Ve.setStrictMode(Vn,e)}catch{}}var Ct=Math.clz32?Math.clz32:zi,_a=Math.log,Wc=Math.LN2;function zi(e){return e>>>=0,e===0?32:31-(_a(e)/Wc|0)|0}var zl=256,Ml=262144,$l=4194304;function Zn(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 Ot(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var c=0,d=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~d,i!==0?c=Zn(i):(m&=y,m!==0?c=Zn(m):a||(a=y&~e,a!==0&&(c=Zn(a))))):(y=i&~d,y!==0?c=Zn(y):m!==0?c=Zn(m):a||(a=i&~e,a!==0&&(c=Zn(a)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:c}function Ue(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Te(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 Ol(){var e=$l;return $l<<=1,($l&62914560)===0&&($l=4194304),e}function er(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uf(e,t,a,i,c,d){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,k=e.expirationTimes,R=e.hiddenUpdates;for(a=m&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ir=/[\n"\\]/g;function Lt(e){return e.replace(ir,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Hi(e,t,a,i,c,d,m,y){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Gi(e,m,qt(t)):a!=null?Gi(e,m,qt(a)):i!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+qt(y):e.removeAttribute("name")}function sr(e,t,a,i,c,d,m,y){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Ui(e);return}a=a!=null?""+qt(a):"",t=t!=null?""+qt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=y?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Ui(e)}function Gi(e,t,a){t==="number"&&sl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ja(e,t,a,i){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yl=!1;if(cn)try{var Ca={};Object.defineProperty(Ca,"passive",{get:function(){Yl=!0}}),window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{Yl=!1}var v=null,F=null,ue=null;function Re(){if(ue)return ue;var e,t=F,a=t.length,i,c="value"in v?v.value:v.textContent,d=c.length;for(e=0;e=Ji),pf=" ",gf=!1;function _f(e,t){switch(e){case"keyup":return wy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ql=!1;function Ay(e,t){switch(e){case"compositionend":return yf(t);case"keypress":return t.which!==32?null:(gf=!0,pf);case"textInput":return e=t.data,e===pf&&gf?null:e;default:return null}}function Cy(e,t){if(Ql)return e==="compositionend"||!su&&_f(e,t)?(e=Re(),ue=F=v=null,Ql=!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:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ef(a)}}function Cf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=sl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=sl(e.document)}return t}function uu(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 Oy=cn&&"documentMode"in document&&11>=document.documentMode,Kl=null,ou=null,es=null,du=!1;function Nf(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;du||Kl==null||Kl!==sl(i)||(i=Kl,"selectionStart"in i&&uu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),es&&Pi(es,i)||(es=i,i=ec(ou,"onSelect"),0>=m,c-=m,Un=1<<32-Ct(t)+c|a<ve?(Ae=se,se=null):Ae=se.sibling;var Le=$(T,se,D[ve],Y);if(Le===null){se===null&&(se=Ae);break}e&&se&&Le.alternate===null&&t(T,se),A=d(Le,A,ve),qe===null?ce=Le:qe.sibling=Le,qe=Le,se=Ae}if(ve===D.length)return a(T,se),Ne&&Fn(T,ve),ce;if(se===null){for(;veve?(Ae=se,se=null):Ae=se.sibling;var Ja=$(T,se,Le.value,Y);if(Ja===null){se===null&&(se=Ae);break}e&&se&&Ja.alternate===null&&t(T,se),A=d(Ja,A,ve),qe===null?ce=Ja:qe.sibling=Ja,qe=Ja,se=Ae}if(Le.done)return a(T,se),Ne&&Fn(T,ve),ce;if(se===null){for(;!Le.done;ve++,Le=D.next())Le=Q(T,Le.value,Y),Le!==null&&(A=d(Le,A,ve),qe===null?ce=Le:qe.sibling=Le,qe=Le);return Ne&&Fn(T,ve),ce}for(se=i(se);!Le.done;ve++,Le=D.next())Le=L(se,T,ve,Le.value,Y),Le!==null&&(e&&Le.alternate!==null&&se.delete(Le.key===null?ve:Le.key),A=d(Le,A,ve),qe===null?ce=Le:qe.sibling=Le,qe=Le);return e&&se.forEach(function(nb){return t(T,nb)}),Ne&&Fn(T,ve),ce}function Xe(T,A,D,Y){if(typeof D=="object"&&D!==null&&D.type===O&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case q:e:{for(var ce=D.key;A!==null;){if(A.key===ce){if(ce=D.type,ce===O){if(A.tag===7){a(T,A.sibling),Y=c(A,D.props.children),Y.return=T,T=Y;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ie&&gl(ce)===A.type){a(T,A.sibling),Y=c(A,D.props),ss(Y,D),Y.return=T,T=Y;break e}a(T,A);break}else t(T,A);A=A.sibling}D.type===O?(Y=dl(D.props.children,T.mode,Y,D.key),Y.return=T,T=Y):(Y=_r(D.type,D.key,D.props,null,T.mode,Y),ss(Y,D),Y.return=T,T=Y)}return m(T);case C:e:{for(ce=D.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){a(T,A.sibling),Y=c(A,D.children||[]),Y.return=T,T=Y;break e}else{a(T,A);break}else t(T,A);A=A.sibling}Y=yu(D,T.mode,Y),Y.return=T,T=Y}return m(T);case ie:return D=gl(D),Xe(T,A,D,Y)}if(B(D))return ne(T,A,D,Y);if(ze(D)){if(ce=ze(D),typeof ce!="function")throw Error(r(150));return D=ce.call(D),fe(T,A,D,Y)}if(typeof D.then=="function")return Xe(T,A,kr(D),Y);if(D.$$typeof===M)return Xe(T,A,br(T,D),Y);wr(T,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(a(T,A.sibling),Y=c(A,D),Y.return=T,T=Y):(a(T,A),Y=_u(D,T.mode,Y),Y.return=T,T=Y),m(T)):a(T,A)}return function(T,A,D,Y){try{is=0;var ce=Xe(T,A,D,Y);return ni=null,ce}catch(se){if(se===ti||se===xr)throw se;var qe=It(29,se,null,T.mode);return qe.lanes=Y,qe.return=T,qe}finally{}}}var yl=Pf(!0),em=Pf(!1),za=!1;function Nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Du(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 Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $a(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Be&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=gr(e),qf(e,null,a),t}return pr(e,i,t,a),gr(e)}function rs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,pe(e,a)}}function Ru(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var c=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?c=d=m:d=d.next=m,a=a.next}while(a!==null);d===null?c=d=t:d=d.next=t}else c=d=t;a={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var zu=!1;function cs(){if(zu){var e=ei;if(e!==null)throw e}}function us(e,t,a,i){zu=!1;var c=e.updateQueue;za=!1;var d=c.firstBaseUpdate,m=c.lastBaseUpdate,y=c.shared.pending;if(y!==null){c.shared.pending=null;var k=y,R=k.next;k.next=null,m===null?d=R:m.next=R,m=k;var H=e.alternate;H!==null&&(H=H.updateQueue,y=H.lastBaseUpdate,y!==m&&(y===null?H.firstBaseUpdate=R:y.next=R,H.lastBaseUpdate=k))}if(d!==null){var Q=c.baseState;m=0,H=R=k=null,y=d;do{var $=y.lane&-536870913,L=$!==y.lane;if(L?(Ee&$)===$:(i&$)===$){$!==0&&$===Pl&&(zu=!0),H!==null&&(H=H.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ne=e,fe=y;$=t;var Xe=a;switch(fe.tag){case 1:if(ne=fe.payload,typeof ne=="function"){Q=ne.call(Xe,Q,$);break e}Q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=fe.payload,$=typeof ne=="function"?ne.call(Xe,Q,$):ne,$==null)break e;Q=x({},Q,$);break e;case 2:za=!0}}$=y.callback,$!==null&&(e.flags|=64,L&&(e.flags|=8192),L=c.callbacks,L===null?c.callbacks=[$]:L.push($))}else L={lane:$,tag:y.tag,payload:y.payload,callback:y.callback,next:null},H===null?(R=H=L,k=Q):H=H.next=L,m|=$;if(y=y.next,y===null){if(y=c.shared.pending,y===null)break;L=y,y=L.next,L.next=null,c.lastBaseUpdate=L,c.shared.pending=null}}while(!0);H===null&&(k=Q),c.baseState=k,c.firstBaseUpdate=R,c.lastBaseUpdate=H,d===null&&(c.shared.lanes=0),Ba|=m,e.lanes=m,e.memoizedState=Q}}function tm(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function nm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ed?d:8;var m=N.T,y={};N.T=y,Wu(e,!1,t,a);try{var k=c(),R=N.S;if(R!==null&&R(y,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var H=Ky(k,i);fs(e,t,H,en(e))}else fs(e,t,i,en(e))}catch(Q){fs(e,t,{then:function(){},status:"rejected",reason:Q},en())}finally{X.p=d,m!==null&&y.types!==null&&(m.types=y.types),N.T=m}}function Fy(){}function Ju(e,t,a,i){if(e.tag!==5)throw Error(r(476));var c=Mm(e).queue;zm(e,c,t,le,a===null?Fy:function(){return $m(e),a(i)})}function Mm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:le},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $m(e){var t=Mm(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},en())}function Fu(){return jt(Ts)}function Om(){return ut().memoizedState}function qm(){return ut().memoizedState}function Wy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=en();e=Ma(a);var i=$a(t,e,a);i!==null&&(Yt(i,t,a),rs(i,t,a)),t={cache:Eu()},e.payload=t;return}t=t.return}}function Py(e,t,a){var i=en();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},$r(e)?Um(t,a):(a=pu(e,t,a,i),a!==null&&(Yt(a,e,i),Bm(a,t,i)))}function Lm(e,t,a){var i=en();fs(e,t,a,i)}function fs(e,t,a,i){var c={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if($r(e))Um(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var m=t.lastRenderedState,y=d(m,a);if(c.hasEagerState=!0,c.eagerState=y,Zt(y,m))return pr(e,t,c,0),Ie===null&&hr(),!1}catch{}finally{}if(a=pu(e,t,c,i),a!==null)return Yt(a,e,i),Bm(a,t,i),!0}return!1}function Wu(e,t,a,i){if(i={lane:2,revertLane:Do(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},$r(e)){if(t)throw Error(r(479))}else t=pu(e,a,i,2),t!==null&&Yt(t,e,2)}function $r(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Um(e,t){li=Cr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Bm(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,pe(e,a)}}var ms={readContext:jt,use:Dr,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};ms.useEffectEvent=lt;var Hm={readContext:jt,use:Dr,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:km,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,zr(4194308,4,Cm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return zr(4194308,4,e,t)},useInsertionEffect:function(e,t){zr(4,2,e,t)},useMemo:function(e,t){var a=Rt();t=t===void 0?null:t;var i=e();if(vl){Dn(!0);try{e()}finally{Dn(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Rt();if(a!==void 0){var c=a(t);if(vl){Dn(!0);try{a(t)}finally{Dn(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=Py.bind(null,_e,e),[i.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ku(e);var t=e.queue,a=Lm.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Zu,useDeferredValue:function(e,t){var a=Rt();return Iu(a,e,t)},useTransition:function(){var e=Ku(!1);return e=zm.bind(null,_e,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=_e,c=Rt();if(Ne){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Ie===null)throw Error(r(349));(Ee&127)!==0||cm(i,t,a)}c.memoizedState=a;var d={value:a,getSnapshot:t};return c.queue=d,km(om.bind(null,i,d,e),[e]),i.flags|=2048,si(9,{destroy:void 0},um.bind(null,i,d,a,t),null),a},useId:function(){var e=Rt(),t=Ie.identifierPrefix;if(Ne){var a=Bn,i=Un;a=(i&~(1<<32-Ct(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Tr++,0<\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?m.createElement(c,{is:i.is}):m.createElement(c)}}d[_t]=t,d[Ze]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)d.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=d;e:switch(wt(d,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&aa(t)}}return Pe(t),mo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&aa(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=ye.current,Fl(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,c=xt,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[_t]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||sp(e.nodeValue,a)),e||Da(t,!0)}else e=tc(e).createTextNode(i),e[_t]=t,t.stateNode=e}return Pe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=Fl(t),a!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[_t]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else a=xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ft(t),t):(Ft(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Pe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Fl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[_t]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),c=!1}else c=xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Ft(t),t):(Ft(t),null)}return Ft(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==c&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Br(t,t.updateQueue),Pe(t),null);case 4:return Me(),e===null&&$o(t.stateNode.containerInfo),Pe(t),null;case 10:return Pn(t.type),Pe(t),null;case 19:if(G(ct),i=t.memoizedState,i===null)return Pe(t),null;if(c=(t.flags&128)!==0,d=i.rendering,d===null)if(c)ps(i,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Ar(e),d!==null){for(t.flags|=128,ps(i,!1),e=d.updateQueue,t.updateQueue=e,Br(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Lf(a,e),a=a.sibling;return J(ct,ct.current&1|2),Ne&&Fn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&>()>Kr&&(t.flags|=128,c=!0,ps(i,!1),t.lanes=4194304)}else{if(!c)if(e=Ar(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Br(t,e),ps(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ne)return Pe(t),null}else 2*gt()-i.renderingStartTime>Kr&&a!==536870912&&(t.flags|=128,c=!0,ps(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=gt(),e.sibling=null,a=ct.current,J(ct,c?a&1|2:a&1),Ne&&Fn(t,i.treeForkCount),e):(Pe(t),null);case 22:case 23:return Ft(t),$u(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),a=t.updateQueue,a!==null&&Br(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&G(pl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(ft),Pe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function lv(e,t){switch(bu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(ft),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(Ft(t),t.alternate===null)throw Error(r(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(ct),null;case 4:return Me(),null;case 10:return Pn(t.type),null;case 22:case 23:return Ft(t),$u(),e!==null&&G(pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(ft),null;case 25:return null;default:return null}}function dh(e,t){switch(bu(t),t.tag){case 3:Pn(ft),Me();break;case 26:case 27:case 5:xe(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&Ft(t);break;case 13:Ft(t);break;case 19:G(ct);break;case 10:Pn(t.type);break;case 22:case 23:Ft(t),$u(),e!==null&&G(pl);break;case 24:Pn(ft)}}function gs(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){i=void 0;var d=a.create,m=a.inst;i=d(),m.destroy=i}a=a.next}while(a!==c)}}catch(y){Ye(t,t.return,y)}}function La(e,t,a){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var d=c.next;i=d;do{if((i.tag&e)===e){var m=i.inst,y=m.destroy;if(y!==void 0){m.destroy=void 0,c=t;var k=a,R=y;try{R()}catch(H){Ye(c,k,H)}}}i=i.next}while(i!==d)}}catch(H){Ye(t,t.return,H)}}function fh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{nm(t,a)}catch(i){Ye(e,e.return,i)}}}function mh(e,t,a){a.props=bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ye(e,t,i)}}function _s(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(c){Ye(e,t,c)}}function Hn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(c){Ye(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Ye(e,t,c)}else a.current=null}function hh(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(c){Ye(e,e.return,c)}}function ho(e,t,a){try{var i=e.stateNode;Ev(i,e.type,a,t),i[Ze]=t}catch(c){Ye(e,e.return,c)}}function ph(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function po(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ph(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&&Ka(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 go(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Kt));else if(i!==4&&(i===27&&Ka(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(go(e,t,a),e=e.sibling;e!==null;)go(e,t,a),e=e.sibling}function Hr(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Ka(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hr(e,t,a),e=e.sibling;e!==null;)Hr(e,t,a),e=e.sibling}function gh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);wt(t,i,a),t[_t]=e,t[Ze]=a}catch(d){Ye(e,e.return,d)}}var la=!1,pt=!1,_o=!1,_h=typeof WeakSet=="function"?WeakSet:Set,bt=null;function iv(e,t){if(e=e.containerInfo,Lo=cc,e=Tf(e),uu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var c=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var m=0,y=-1,k=-1,R=0,H=0,Q=e,$=null;t:for(;;){for(var L;Q!==a||c!==0&&Q.nodeType!==3||(y=m+c),Q!==d||i!==0&&Q.nodeType!==3||(k=m+i),Q.nodeType===3&&(m+=Q.nodeValue.length),(L=Q.firstChild)!==null;)$=Q,Q=L;for(;;){if(Q===e)break t;if($===a&&++R===c&&(y=m),$===d&&++H===i&&(k=m),(L=Q.nextSibling)!==null)break;Q=$,$=Q.parentNode}Q=L}a=y===-1||k===-1?null:{start:y,end:k}}else a=null}a=a||{start:0,end:0}}else a=null;for(Uo={focusedElem:e,selectionRange:a},cc=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,d=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(a=0;a title"))),wt(d,i,a),d[_t]=e,st(d),i=d;break e;case"link":var m=jp("link","href",c).get(i+(a.href||""));if(m){for(var y=0;yXe&&(m=Xe,Xe=fe,fe=m);var T=Af(y,fe),A=Af(y,Xe);if(T&&A&&(L.rangeCount!==1||L.anchorNode!==T.node||L.anchorOffset!==T.offset||L.focusNode!==A.node||L.focusOffset!==A.offset)){var D=Q.createRange();D.setStart(T.node,T.offset),L.removeAllRanges(),fe>Xe?(L.addRange(D),L.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),L.addRange(D))}}}}for(Q=[],L=y;L=L.parentNode;)L.nodeType===1&&Q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;ya?32:a,N.T=null,a=ko,ko=null;var d=Ga,m=ua;if(yt=0,di=Ga=null,ua=0,(Be&6)!==0)throw Error(r(331));var y=Be;if(Be|=4,Ch(d.current),wh(d,d.current,m,a),Be=y,js(0,!1),Ve&&typeof Ve.onPostCommitFiberRoot=="function")try{Ve.onPostCommitFiberRoot(Vn,d)}catch{}return!0}finally{X.p=c,N.T=i,Xh(e,t)}}function Zh(e,t,a){t=on(a,t),t=no(e.stateNode,t,2),e=$a(e,t,2),e!==null&&(rn(e,2),Gn(e))}function Ye(e,t,a){if(e.tag===3)Zh(e,e,a);else for(;t!==null;){if(t.tag===3){Zh(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ha===null||!Ha.has(i))){e=on(a,e),a=Im(2),i=$a(t,a,2),i!==null&&(Jm(a,i,t,e),rn(i,2),Gn(i));break}}t=t.return}}function Co(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new cv;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(a)||(bo=!0,c.add(a),e=mv.bind(null,e,t,a),t.then(e,e))}function mv(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ie===e&&(Ee&a)===a&&(it===4||it===3&&(Ee&62914560)===Ee&&300>gt()-Qr?(Be&2)===0&&fi(e,0):So|=a,oi===Ee&&(oi=0)),Gn(e)}function Ih(e,t){t===0&&(t=Ol()),e=ol(e,t),e!==null&&(rn(e,t),Gn(e))}function hv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ih(e,a)}function pv(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),Ih(e,a)}function gv(e,t){return Ri(e,t)}var Fr=null,hi=null,To=!1,Wr=!1,No=!1,Qa=0;function Gn(e){e!==hi&&e.next===null&&(hi===null?Fr=hi=e:hi=hi.next=e),Wr=!0,To||(To=!0,yv())}function js(e,t){if(!No&&Wr){No=!0;do for(var a=!1,i=Fr;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var d=0;else{var m=i.suspendedLanes,y=i.pingedLanes;d=(1<<31-Ct(42|e)+1)-1,d&=c&~(m&~y),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,Ph(i,d))}else d=Ee,d=Ot(i,i===Ie?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||Ue(i,d)||(a=!0,Ph(i,d));i=i.next}while(a);No=!1}}function _v(){Jh()}function Jh(){Wr=To=!1;var e=0;Qa!==0&&Cv()&&(e=Qa);for(var t=gt(),a=null,i=Fr;i!==null;){var c=i.next,d=Fh(i,t);d===0?(i.next=null,a===null?Fr=c:a.next=c,c===null&&(hi=a)):(a=i,(e!==0||(d&3)!==0)&&(Wr=!0)),i=c}yt!==0&&yt!==5||js(e),Qa!==0&&(Qa=0)}function Fh(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0y)break;var H=k.transferSize,Q=k.initiatorType;H&&rp(Q)&&(k=k.responseEnd,m+=H*(k"u"?null:document;function vp(e,t,a){var i=pi;if(i&&typeof t=="string"&&t){var c=Lt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),yp.has(c)||(yp.add(c),e={rel:e,crossOrigin:a,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),wt(t,"link",e),st(t),i.head.appendChild(t)))}}function qv(e){oa.D(e),vp("dns-prefetch",e,null)}function Lv(e,t){oa.C(e,t),vp("preconnect",e,t)}function Uv(e,t,a){oa.L(e,t,a);var i=pi;if(i&&e&&t){var c='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+Lt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+Lt(a.imageSizes)+'"]')):c+='[href="'+Lt(e)+'"]';var d=c;switch(t){case"style":d=gi(e);break;case"script":d=_i(e)}gn.has(d)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),gn.set(d,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(As(d))||t==="script"&&i.querySelector(Cs(d))||(t=i.createElement("link"),wt(t,"link",e),st(t),i.head.appendChild(t)))}}function Bv(e,t){oa.m(e,t);var a=pi;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Lt(i)+'"][href="'+Lt(e)+'"]',d=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=_i(e)}if(!gn.has(d)&&(e=x({rel:"modulepreload",href:e},t),gn.set(d,e),a.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Cs(d)))return}i=a.createElement("link"),wt(i,"link",e),st(i),a.head.appendChild(i)}}}function Hv(e,t,a){oa.S(e,t,a);var i=pi;if(i&&e){var c=$n(i).hoistableStyles,d=gi(e);t=t||"default";var m=c.get(d);if(!m){var y={loading:0,preload:null};if(m=i.querySelector(As(d)))y.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=gn.get(d))&&Xo(e,a);var k=m=i.createElement("link");st(k),wt(k,"link",e),k._p=new Promise(function(R,H){k.onload=R,k.onerror=H}),k.addEventListener("load",function(){y.loading|=1}),k.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ac(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:y},c.set(d,m)}}}function Gv(e,t){oa.X(e,t);var a=pi;if(a&&e){var i=$n(a).hoistableScripts,c=_i(e),d=i.get(c);d||(d=a.querySelector(Cs(c)),d||(e=x({src:e,async:!0},t),(t=gn.get(c))&&Vo(e,t),d=a.createElement("script"),st(d),wt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function Yv(e,t){oa.M(e,t);var a=pi;if(a&&e){var i=$n(a).hoistableScripts,c=_i(e),d=i.get(c);d||(d=a.querySelector(Cs(c)),d||(e=x({src:e,async:!0,type:"module"},t),(t=gn.get(c))&&Vo(e,t),d=a.createElement("script"),st(d),wt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function bp(e,t,a,i){var c=(c=ye.current)?nc(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=gi(a.href),a=$n(c).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=gi(a.href);var d=$n(c).hoistableStyles,m=d.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,m),(d=c.querySelector(As(e)))&&!d._p&&(m.instance=d,m.state.loading=5),gn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},gn.set(e,a),d||Qv(c,e,a,m.state))),t&&i===null)throw Error(r(528,""));return m}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_i(a),a=$n(c).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function gi(e){return'href="'+Lt(e)+'"'}function As(e){return'link[rel="stylesheet"]['+e+"]"}function Sp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Qv(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),wt(t,"link",a),st(t),e.head.appendChild(t))}function _i(e){return'[src="'+Lt(e)+'"]'}function Cs(e){return"script[async]"+e}function xp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Lt(a.href)+'"]');if(i)return t.instance=i,st(i),i;var c=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),st(i),wt(i,"style",c),ac(i,a.precedence,e),t.instance=i;case"stylesheet":c=gi(a.href);var d=e.querySelector(As(c));if(d)return t.state.loading|=4,t.instance=d,st(d),d;i=Sp(a),(c=gn.get(c))&&Xo(i,c),d=(e.ownerDocument||e).createElement("link"),st(d);var m=d;return m._p=new Promise(function(y,k){m.onload=y,m.onerror=k}),wt(d,"link",i),t.state.loading|=4,ac(d,a.precedence,e),t.instance=d;case"script":return d=_i(a.src),(c=e.querySelector(Cs(d)))?(t.instance=c,st(c),c):(i=a,(c=gn.get(d))&&(i=x({},a),Vo(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),st(c),wt(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,ac(i,a.precedence,e));return t.instance}function ac(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,d=c,m=0;m title"):null)}function Kv(e,t,a){if(a===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 wp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Xv(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=gi(i.href),d=t.querySelector(As(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ic.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,st(d);return}d=t.ownerDocument||t,i=Sp(i),(c=gn.get(c))&&Xo(i,c),d=d.createElement("link"),st(d);var m=d;m._p=new Promise(function(y,k){m.onload=y,m.onerror=k}),wt(d,"link",i),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ic.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Zo=0;function Vv(e,t){return e.stylesheets&&e.count===0&&rc(e,e.stylesheets),0Zo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function ic(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sc=null;function rc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sc=new Map,t.forEach(Zv,e),sc=null,ic.call(e))}function Zv(e,t){if(!(t.state.loading&4)){var a=sc.get(e);if(a)var i=a.get(null);else{a=new Map,sc.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),ad.exports=fb(),ad.exports}var hb=mb();/** * 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 Ip="popstate";function Jp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function pb(n={}){function l(o,f){let{pathname:h="/",search:_="",hash:p=""}=Tl(o.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Sd("",{pathname:h,search:_,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(o,f){let h=o.document.querySelector("base"),_="";if(h&&h.getAttribute("href")){let p=o.location.href,g=p.indexOf("#");_=g===-1?p:p.slice(0,g)}return _+"#"+(typeof f=="string"?f:Gs(f))}function r(o,f){_n(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return _b(l,s,r,n)}function nt(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function _n(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function gb(){return Math.random().toString(36).substring(2,10)}function Fp(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Sd(n,l,s=null,r,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Tl(l):l,state:s,key:l&&l.key||r||gb(),mask:o}}function Gs({pathname:n="/",search:l="",hash:s=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Tl(n){let l={};if(n){let s=n.indexOf("#");s>=0&&(l.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(l.search=n.substring(r),n=n.substring(0,r)),n&&(l.pathname=n)}return l}function _b(n,l,s,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,h=o.history,_="POP",p=null,g=b();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function b(){return(h.state||{idx:null}).idx}function x(){_="POP";let z=b(),U=z==null?null:z-g;g=z,p&&p({action:_,location:O.location,delta:U})}function w(z,U){_="PUSH";let K=Jp(z)?z:Sd(O.location,z,U);s&&s(K,z),g=b()+1;let M=Fp(K,g),W=O.createHref(K.mask||K);try{h.pushState(M,"",W)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;o.location.assign(W)}f&&p&&p({action:_,location:O.location,delta:1})}function q(z,U){_="REPLACE";let K=Jp(z)?z:Sd(O.location,z,U);s&&s(K,z),g=b();let M=Fp(K,g),W=O.createHref(K.mask||K);h.replaceState(M,"",W),f&&p&&p({action:_,location:O.location,delta:0})}function C(z){return yb(o,z)}let O={get action(){return _},get location(){return n(o,h)},listen(z){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(Ip,x),p=z,()=>{o.removeEventListener(Ip,x),p=null}},createHref(z){return l(o,z)},createURL:C,encodeLocation(z){let U=C(z);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:w,replace:q,go(z){return h.go(z)}};return O}function yb(n,l,s=!1){let r="http://localhost";n&&(r=n.location.origin!=="null"?n.location.origin:n.location.href),nt(r,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:Gs(l);return o=o.replace(/ $/,"%20"),!s&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Qg(n,l,s="/"){return vb(n,l,s,!1)}function vb(n,l,s,r,o){let f=typeof l=="string"?Tl(l):l,h=ma(f.pathname||"/",s);if(h==null)return null;let _=bb(n),p=null,g=Rb(h);for(let b=0;p==null&&b<_.length;++b)p=Nb(_[b],g,r);return p}function bb(n){let l=Kg(n);return Sb(l),l}function Kg(n,l=[],s=[],r="",o=!1){let f=(h,_,p=o,g)=>{let b={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:_,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&p)return;nt(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let x=Cn([r,b.relativePath]),w=s.concat(b);h.children&&h.children.length>0&&(nt(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Kg(h.children,l,w,x,p)),!(h.path==null&&!h.index)&&l.push({path:x,score:Cb(x,h.index),routesMeta:w})};return n.forEach((h,_)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,_);else for(let g of Xg(h.path))f(h,_,!0,g)}),l}function Xg(n){let l=n.split("/");if(l.length===0)return[];let[s,...r]=l,o=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let h=Xg(r.join("/")),_=[];return _.push(...h.map(p=>p===""?f:[f,p].join("/"))),o&&_.push(...h),_.map(p=>n.startsWith("/")&&p===""?"/":p)}function Sb(n){n.sort((l,s)=>l.score!==s.score?s.score-l.score:Tb(l.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var xb=/^:[\w-]+$/,jb=3,kb=2,wb=1,Eb=10,Ab=-2,Wp=n=>n==="*";function Cb(n,l){let s=n.split("/"),r=s.length;return s.some(Wp)&&(r+=Ab),l&&(r+=kb),s.filter(o=>!Wp(o)).reduce((o,f)=>o+(xb.test(f)?jb:f===""?wb:Eb),r)}function Tb(n,l){return n.length===l.length&&n.slice(0,-1).every((r,o)=>r===l[o])?n[n.length-1]-l[l.length-1]:0}function Nb(n,l,s=!1){let{routesMeta:r}=n,o={},f="/",h=[];for(let _=0;_{if(b==="*"){let C=_[w]||"";h=f.slice(0,f.length-C.length).replace(/(.)\/+$/,"$1")}const q=_[w];return x&&!q?g[b]=void 0:g[b]=(q||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:n}}function Db(n,l=!1,s=!0){_n(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=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,_,p,g,b)=>{if(r.push({paramName:_,isOptional:p!=null}),p){let x=b.charAt(g+h.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,l?void 0:"i"),r]}function Rb(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return _n(!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 (${l}).`),n}}function ma(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let s=l.endsWith("/")?l.length-1:l.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}var zb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Mb(n,l="/"){let{pathname:s,search:r="",hash:o=""}=typeof n=="string"?Tl(n):n,f;return s?(s=Vg(s),s.startsWith("/")?f=Pp(s.substring(1),"/"):f=Pp(s,l)):f=l,{pathname:f,search:qb(r),hash:Lb(o)}}function Pp(n,l){let s=Nc(l).split("/");return n.split("/").forEach(o=>{o===".."?s.length>1&&s.pop():o!=="."&&s.push(o)}),s.length>1?s.join("/"):"/"}function rd(n,l,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function $b(n){return n.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function Ud(n){let l=$b(n);return l.map((s,r)=>r===l.length-1?s.pathname:s.pathnameBase)}function Bc(n,l,s,r=!1){let o;typeof n=="string"?o=Tl(n):(o={...n},nt(!o.pathname||!o.pathname.includes("?"),rd("?","pathname","search",o)),nt(!o.pathname||!o.pathname.includes("#"),rd("#","pathname","hash",o)),nt(!o.search||!o.search.includes("#"),rd("#","search","hash",o)));let f=n===""||o.pathname==="",h=f?"/":o.pathname,_;if(h==null)_=s;else{let x=l.length-1;if(!r&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),x-=1;o.pathname=w.join("/")}_=x>=0?l[x]:"/"}let p=Mb(o,_),g=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(g||b)&&(p.pathname+="/"),p}var Vg=n=>n.replace(/\/\/+/g,"/"),Cn=n=>Vg(n.join("/")),Nc=n=>n.replace(/\/+$/,""),Ob=n=>Nc(n).replace(/^\/*/,"/"),qb=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Lb=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Ub=class{constructor(n,l,s,r=!1){this.status=n,this.statusText=l||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Bb(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Hb(n){let l=n.map(s=>s.route.path).filter(Boolean);return Cn(l)||"/"}var Zg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ig(n,l){let s=n;if(typeof s!="string"||!zb.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,o=!1;if(Zg)try{let f=new URL(window.location.href),h=s.startsWith("//")?new URL(f.protocol+s):new URL(s),_=ma(h.pathname,l);h.origin===f.origin&&_!=null?s=_+h.search+h.hash:o=!0}catch{_n(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Jg=["POST","PUT","PATCH","DELETE"];new Set(Jg);var Gb=["GET",...Jg];new Set(Gb);var wi=S.createContext(null);wi.displayName="DataRouter";var Hc=S.createContext(null);Hc.displayName="DataRouterState";var Fg=S.createContext(!1);function Yb(){return S.useContext(Fg)}var Wg=S.createContext({isTransitioning:!1});Wg.displayName="ViewTransition";var Qb=S.createContext(new Map);Qb.displayName="Fetchers";var Kb=S.createContext(null);Kb.displayName="Await";var nn=S.createContext(null);nn.displayName="Navigation";var Xs=S.createContext(null);Xs.displayName="Location";var Qn=S.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var Bd=S.createContext(null);Bd.displayName="RouteError";var Pg="REACT_ROUTER_ERROR",Xb="REDIRECT",Vb="ROUTE_ERROR_RESPONSE";function Zb(n){if(n.startsWith(`${Pg}:${Xb}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function Ib(n){if(n.startsWith(`${Pg}:${Vb}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new Ub(l.status,l.statusText,l.data)}catch{}}function Jb(n,{relative:l}={}){nt(Ei(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:r}=S.useContext(nn),{hash:o,pathname:f,search:h}=Vs(n,{relative:l}),_=f;return s!=="/"&&(_=f==="/"?s:Cn([s,f])),r.createHref({pathname:_,search:h,hash:o})}function Ei(){return S.useContext(Xs)!=null}function Nn(){return nt(Ei(),"useLocation() may be used only in the context of a component."),S.useContext(Xs).location}var e_="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function t_(n){S.useContext(nn).static||S.useLayoutEffect(n)}function Hd(){let{isDataRoute:n}=S.useContext(Qn);return n?u0():Fb()}function Fb(){nt(Ei(),"useNavigate() may be used only in the context of a component.");let n=S.useContext(wi),{basename:l,navigator:s}=S.useContext(nn),{matches:r}=S.useContext(Qn),{pathname:o}=Nn(),f=JSON.stringify(Ud(r)),h=S.useRef(!1);return t_(()=>{h.current=!0}),S.useCallback((p,g={})=>{if(_n(h.current,e_),!h.current)return;if(typeof p=="number"){s.go(p);return}let b=Bc(p,JSON.parse(f),o,g.relative==="path");n==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:Cn([l,b.pathname])),(g.replace?s.replace:s.push)(b,g.state,g)},[l,s,f,o,n])}S.createContext(null);function Vs(n,{relative:l}={}){let{matches:s}=S.useContext(Qn),{pathname:r}=Nn(),o=JSON.stringify(Ud(s));return S.useMemo(()=>Bc(n,JSON.parse(o),r,l==="path"),[n,o,r,l])}function Wb(n,l){return n_(n,l)}function n_(n,l,s){var z;nt(Ei(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=S.useContext(nn),{matches:o}=S.useContext(Qn),f=o[o.length-1],h=f?f.params:{},_=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let U=g&&g.path||"";l_(_,!g||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${_}" (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 b=Nn(),x;if(l){let U=typeof l=="string"?Tl(l):l;nt(p==="/"||((z=U.pathname)==null?void 0:z.startsWith(p)),`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 "${p}" but pathname "${U.pathname}" was given in the \`location\` prop.`),x=U}else x=b;let w=x.pathname||"/",q=w;if(p!=="/"){let U=p.replace(/^\//,"").split("/");q="/"+w.replace(/^\//,"").split("/").slice(U.length).join("/")}let C=s&&s.state.matches.length?s.state.matches.map(U=>Object.assign(U,{route:s.manifest[U.route.id]||U.route})):Qg(n,{pathname:q});_n(g||C!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),_n(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.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 O=a0(C&&C.map(U=>Object.assign({},U,{params:Object.assign({},h,U.params),pathname:Cn([p,r.encodeLocation?r.encodeLocation(U.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?p:Cn([p,r.encodeLocation?r.encodeLocation(U.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathnameBase])})),o,s);return l&&O?S.createElement(Xs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...x},navigationType:"POP"}},O):O}function Pb(){let n=c0(),l=Bb(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},l),s?S.createElement("pre",{style:o},s):null,h)}var e0=S.createElement(Pb,null),a_=class extends S.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,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):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 s=Ib(n.digest);s&&(n=s)}let l=n!==void 0?S.createElement(Qn.Provider,{value:this.props.routeContext},S.createElement(Bd.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?S.createElement(t0,{error:n},l):l}};a_.contextType=Fg;var cd=new WeakMap;function t0({children:n,error:l}){let{basename:s}=S.useContext(nn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let r=Zb(l.digest);if(r){let o=cd.get(l);if(o)throw o;let f=Ig(r.location,s);if(Zg&&!cd.get(l))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw cd.set(l,h),h}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function n0({routeContext:n,match:l,children:s}){let r=S.useContext(wi);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),S.createElement(Qn.Provider,{value:n},s)}function a0(n,l=[],s){let r=s==null?void 0:s.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let o=n,f=r==null?void 0:r.errors;if(f!=null){let b=o.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);nt(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let h=!1,_=-1;if(s&&r){h=r.renderFallback;for(let b=0;b=0?o=o.slice(0,_+1):o=[o[0]];break}}}}let p=s==null?void 0:s.onError,g=r&&p?(b,x)=>{var w,q;p(b,{location:r.location,params:((q=(w=r.matches)==null?void 0:w[0])==null?void 0:q.params)??{},pattern:Hb(r.matches),errorInfo:x})}:void 0;return o.reduceRight((b,x,w)=>{let q,C=!1,O=null,z=null;r&&(q=f&&x.route.id?f[x.route.id]:void 0,O=x.route.errorElement||e0,h&&(_<0&&w===0?(l_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,z=null):_===w&&(C=!0,z=x.route.hydrateFallbackElement||null)));let U=l.concat(o.slice(0,w+1)),K=()=>{let M;return q?M=O:C?M=z:x.route.Component?M=S.createElement(x.route.Component,null):x.route.element?M=x.route.element:M=b,S.createElement(n0,{match:x,routeContext:{outlet:b,matches:U,isDataRoute:r!=null},children:M})};return r&&(x.route.ErrorBoundary||x.route.errorElement||w===0)?S.createElement(a_,{location:r.location,revalidation:r.revalidation,component:O,error:q,children:K(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:g}):K()},null)}function Gd(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l0(n){let l=S.useContext(wi);return nt(l,Gd(n)),l}function i0(n){let l=S.useContext(Hc);return nt(l,Gd(n)),l}function s0(n){let l=S.useContext(Qn);return nt(l,Gd(n)),l}function Yd(n){let l=s0(n),s=l.matches[l.matches.length-1];return nt(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function r0(){return Yd("useRouteId")}function c0(){var r;let n=S.useContext(Bd),l=i0("useRouteError"),s=Yd("useRouteError");return n!==void 0?n:(r=l.errors)==null?void 0:r[s]}function u0(){let{router:n}=l0("useNavigate"),l=Yd("useNavigate"),s=S.useRef(!1);return t_(()=>{s.current=!0}),S.useCallback(async(o,f={})=>{_n(s.current,e_),s.current&&(typeof o=="number"?await n.navigate(o):await n.navigate(o,{fromRouteId:l,...f}))},[n,l])}var eg={};function l_(n,l,s){!l&&!eg[n]&&(eg[n]=!0,_n(!1,s))}S.memo(o0);function o0({routes:n,manifest:l,future:s,state:r,isStatic:o,onError:f}){return n_(n,void 0,{manifest:l,state:r,isStatic:o,onError:f})}function d0({to:n,replace:l,state:s,relative:r}){nt(Ei()," may be used only in the context of a component.");let{static:o}=S.useContext(nn);_n(!o," 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:f}=S.useContext(Qn),{pathname:h}=Nn(),_=Hd(),p=Bc(n,Ud(f),h,r==="path"),g=JSON.stringify(p);return S.useEffect(()=>{_(JSON.parse(g),{replace:l,state:s,relative:r})},[_,g,r,l,s]),null}function xd(n){nt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function f0({basename:n="/",children:l=null,location:s,navigationType:r="POP",navigator:o,static:f=!1,useTransitions:h}){nt(!Ei(),"You cannot render a inside another . You should never have more than one in your app.");let _=n.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:_,navigator:o,static:f,useTransitions:h,future:{}}),[_,o,f,h]);typeof s=="string"&&(s=Tl(s));let{pathname:g="/",search:b="",hash:x="",state:w=null,key:q="default",mask:C}=s,O=S.useMemo(()=>{let z=ma(g,_);return z==null?null:{location:{pathname:z,search:b,hash:x,state:w,key:q,mask:C},navigationType:r}},[_,g,b,x,w,q,r,C]);return _n(O!=null,` is not able to match the URL "${g}${b}${x}" because it does not start with the basename, so the won't render anything.`),O==null?null:S.createElement(nn.Provider,{value:p},S.createElement(Xs.Provider,{children:l,value:O}))}function m0({children:n,location:l}){return Wb(jd(n),l)}function jd(n,l=[]){let s=[];return S.Children.forEach(n,(r,o)=>{if(!S.isValidElement(r))return;let f=[...l,o];if(r.type===S.Fragment){s.push.apply(s,jd(r.props.children,f));return}nt(r.type===xd,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),nt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.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&&(h.children=jd(r.props.children,f)),s.push(h)}),s}var xc="get",jc="application/x-www-form-urlencoded";function Gc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function h0(n){return Gc(n)&&n.tagName.toLowerCase()==="button"}function p0(n){return Gc(n)&&n.tagName.toLowerCase()==="form"}function g0(n){return Gc(n)&&n.tagName.toLowerCase()==="input"}function _0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function y0(n,l){return n.button===0&&(!l||l==="_self")&&!_0(n)}var pc=null;function v0(){if(pc===null)try{new FormData(document.createElement("form"),0),pc=!1}catch{pc=!0}return pc}var b0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ud(n){return n!=null&&!b0.has(n)?(_n(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${jc}"`),null):n}function S0(n,l){let s,r,o,f,h;if(p0(n)){let _=n.getAttribute("action");r=_?ma(_,l):null,s=n.getAttribute("method")||xc,o=ud(n.getAttribute("enctype"))||jc,f=new FormData(n)}else if(h0(n)||g0(n)&&(n.type==="submit"||n.type==="image")){let _=n.form;if(_==null)throw new Error('Cannot submit a