(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))c(m);new MutationObserver(m=>{for(const p of m)if(p.type==="childList")for(const _ of p.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&c(_)}).observe(document,{childList:!0,subtree:!0});function r(m){const p={};return m.integrity&&(p.integrity=m.integrity),m.referrerPolicy&&(p.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?p.credentials="include":m.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function c(m){if(m.ep)return;m.ep=!0;const p=r(m);fetch(m.href,p)}})();function zp(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var bf={exports:{}},go={};/** * @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 Gm;function wv(){if(Gm)return go;Gm=1;var f=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(c,m,p){var _=null;if(p!==void 0&&(_=""+p),m.key!==void 0&&(_=""+m.key),"key"in m){p={};for(var z in m)z!=="key"&&(p[z]=m[z])}else p=m;return m=p.ref,{$$typeof:f,type:c,key:_,ref:m!==void 0?m:null,props:p}}return go.Fragment=u,go.jsx=r,go.jsxs=r,go}var Vm;function zv(){return Vm||(Vm=1,bf.exports=wv()),bf.exports}var b=zv(),Sf={exports:{}},Lt={};/** * @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 Xm;function Tv(){if(Xm)return Lt;Xm=1;var f=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),_=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),O=Symbol.iterator;function H(N){return N===null||typeof N!="object"?null:(N=O&&N[O]||N["@@iterator"],typeof N=="function"?N:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,V={};function et(N,X,$){this.props=N,this.context=X,this.refs=V,this.updater=$||A}et.prototype.isReactComponent={},et.prototype.setState=function(N,X){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,X,"setState")},et.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function U(){}U.prototype=et.prototype;function k(N,X,$){this.props=N,this.context=X,this.refs=V,this.updater=$||A}var F=k.prototype=new U;F.constructor=k,B(F,et.prototype),F.isPureReactComponent=!0;var mt=Array.isArray;function ht(){}var ft={H:null,A:null,T:null,S:null},pt=Object.prototype.hasOwnProperty;function zt(N,X,$){var lt=$.ref;return{$$typeof:f,type:N,key:X,ref:lt!==void 0?lt:null,props:$}}function Dt(N,X){return zt(N.type,X,N.props)}function vt(N){return typeof N=="object"&&N!==null&&N.$$typeof===f}function wt(N){var X={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function($){return X[$]})}var ce=/\/+/g;function Rt(N,X){return typeof N=="object"&&N!==null&&N.key!=null?wt(""+N.key):X.toString(36)}function Zt(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(ht,ht):(N.status="pending",N.then(function(X){N.status==="pending"&&(N.status="fulfilled",N.value=X)},function(X){N.status==="pending"&&(N.status="rejected",N.reason=X)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,X,$,lt,ot){var rt=typeof N;(rt==="undefined"||rt==="boolean")&&(N=null);var at=!1;if(N===null)at=!0;else switch(rt){case"bigint":case"string":case"number":at=!0;break;case"object":switch(N.$$typeof){case f:case u:at=!0;break;case T:return at=N._init,D(at(N._payload),X,$,lt,ot)}}if(at)return ot=ot(N),at=lt===""?"."+Rt(N,0):lt,mt(ot)?($="",at!=null&&($=at.replace(ce,"$&/")+"/"),D(ot,X,$,"",function(we){return we})):ot!=null&&(vt(ot)&&(ot=Dt(ot,$+(ot.key==null||N&&N.key===ot.key?"":(""+ot.key).replace(ce,"$&/")+"/")+at)),X.push(ot)),1;at=0;var Ot=lt===""?".":lt+":";if(mt(N))for(var Yt=0;Yt>>1,st=D[ut];if(0>>1;utm($,I))ltm(ot,$)?(D[ut]=ot,D[lt]=I,ut=lt):(D[ut]=$,D[X]=I,ut=X);else if(ltm(ot,I))D[ut]=ot,D[lt]=I,ut=lt;else break t}}return q}function m(D,q){var I=D.sortIndex-q.sortIndex;return I!==0?I:D.id-q.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;f.unstable_now=function(){return p.now()}}else{var _=Date,z=_.now();f.unstable_now=function(){return _.now()-z}}var y=[],x=[],T=1,E=null,O=3,H=!1,A=!1,B=!1,V=!1,et=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function F(D){for(var q=r(x);q!==null;){if(q.callback===null)c(x);else if(q.startTime<=D)c(x),q.sortIndex=q.expirationTime,u(y,q);else break;q=r(x)}}function mt(D){if(B=!1,F(D),!A)if(r(y)!==null)A=!0,ht||(ht=!0,wt());else{var q=r(x);q!==null&&Zt(mt,q.startTime-D)}}var ht=!1,ft=-1,pt=5,zt=-1;function Dt(){return V?!0:!(f.unstable_now()-ztD&&Dt());){var ut=E.callback;if(typeof ut=="function"){E.callback=null,O=E.priorityLevel;var st=ut(E.expirationTime<=D);if(D=f.unstable_now(),typeof st=="function"){E.callback=st,F(D),q=!0;break e}E===r(y)&&c(y),F(D)}else c(y);E=r(y)}if(E!==null)q=!0;else{var N=r(x);N!==null&&Zt(mt,N.startTime-D),q=!1}}break t}finally{E=null,O=I,H=!1}q=void 0}}finally{q?wt():ht=!1}}}var wt;if(typeof k=="function")wt=function(){k(vt)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Rt=ce.port2;ce.port1.onmessage=vt,wt=function(){Rt.postMessage(null)}}else wt=function(){et(vt,0)};function Zt(D,q){ft=et(function(){D(f.unstable_now())},q)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(D){D.callback=null},f.unstable_forceFrameRate=function(D){0>D||125ut?(D.sortIndex=I,u(x,D),r(y)===null&&D===r(x)&&(B?(U(ft),ft=-1):B=!0,Zt(mt,I-ut))):(D.sortIndex=st,u(y,D),A||H||(A=!0,ht||(ht=!0,wt()))),D},f.unstable_shouldYield=Dt,f.unstable_wrapCallback=function(D){var q=O;return function(){var I=O;O=q;try{return D.apply(this,arguments)}finally{O=I}}}})(Tf)),Tf}var Jm;function Lv(){return Jm||(Jm=1,zf.exports=Ev()),zf.exports}var Ef={exports:{}},He={};/** * @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 Fm;function Cv(){if(Fm)return He;Fm=1;var f=Hf();function u(y){var x="https://react.dev/errors/"+y;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(u){console.error(u)}}return f(),Ef.exports=Cv(),Ef.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 Wm;function Nv(){if(Wm)return vo;Wm=1;var f=Lv(),u=Hf(),r=Tp();function c(t){var e="https://react.dev/errors/"+t;if(1st||(t.current=ut[st],ut[st]=null,st--)}function $(t,e){st++,ut[st]=t.current,t.current=e}var lt=N(null),ot=N(null),rt=N(null),at=N(null);function Ot(t,e){switch($(rt,e),$(ot,t),$(lt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?dm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=dm(e),t=mm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}X(lt),$(lt,t)}function Yt(){X(lt),X(ot),X(rt)}function we(t){t.memoizedState!==null&&$(at,t);var e=lt.current,i=mm(e,t.type);e!==i&&($(ot,t),$(lt,i))}function an(t){ot.current===t&&(X(lt),X(ot)),at.current===t&&(X(at),fo._currentValue=I)}var si,us;function li(t){if(si===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);si=e&&e[1]||"",us=-1)":-1o||R[s]!==G[o]){var W=` `+R[s].replace(" at new "," at ");return t.displayName&&W.includes("")&&(W=W.replace("",t.displayName)),W}while(1<=s&&0<=o);break}}}finally{cs=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?li(i):""}function ul(t,e){switch(t.tag){case 26:case 27:case 5:return li(t.type);case 16:return li("Lazy");case 13:return t.child!==e&&e!==null?li("Suspense Fallback"):li("Suspense");case 19:return li("SuspenseList");case 0:case 15:return fs(t.type,!1);case 11:return fs(t.type.render,!1);case 1:return fs(t.type,!0);case 31:return li("Activity");default:return""}}function ya(t){try{var e="",i=null;do e+=ul(t,i),i=t,t=t.return;while(t);return e}catch(s){return` Error generating stack: `+s.message+` `+s.stack}}var cl=Object.prototype.hasOwnProperty,hs=f.unstable_scheduleCallback,xa=f.unstable_cancelCallback,Co=f.unstable_shouldYield,No=f.unstable_requestPaint,Pe=f.unstable_now,Su=f.unstable_getCurrentPriorityLevel,ds=f.unstable_ImmediatePriority,fl=f.unstable_UserBlockingPriority,ba=f.unstable_NormalPriority,wu=f.unstable_LowPriority,hl=f.unstable_IdlePriority,Oo=f.log,zu=f.unstable_setDisableYieldValue,ji=null,Me=null;function Ln(t){if(typeof Oo=="function"&&zu(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(ji,t)}catch{}}var ke=Math.clz32?Math.clz32:Eu,Sa=Math.log,Tu=Math.LN2;function Eu(t){return t>>>=0,t===0?32:31-(Sa(t)/Tu|0)|0}var wa=256,za=262144,Ta=4194304;function oi(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ms(t,e,i){var s=t.pendingLanes;if(s===0)return 0;var o=0,h=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var w=s&134217727;return w!==0?(s=w&~h,s!==0?o=oi(s):(v&=w,v!==0?o=oi(v):i||(i=w&~t,i!==0&&(o=oi(i))))):(w=s&~h,w!==0?o=oi(w):v!==0?o=oi(v):i||(i=s&~t,i!==0&&(o=oi(i)))),o===0?0:e!==0&&e!==o&&(e&h)===0&&(h=o&-o,i=e&-e,h>=i||h===32&&(i&4194048)!==0)?e:o}function Ea(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Lu(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Mo(){var t=Ta;return Ta<<=1,(Ta&62914560)===0&&(Ta=4194304),t}function dl(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function ri(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Cu(t,e,i,s,o,h){var v=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var w=t.entanglements,R=t.expirationTimes,G=t.hiddenUpdates;for(i=v&~i;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ps=/[\n"\\]/g;function ae(t){return t.replace(ps,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function xl(t,e,i,s,o,h,v,w){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),e!=null?v==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),e!=null?Nn(t,v,ze(e)):i!=null?Nn(t,v,ze(i)):s!=null&&t.removeAttribute("value"),o==null&&h!=null&&(t.defaultChecked=!!h),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.name=""+ze(w):t.removeAttribute("name")}function Oa(t,e,i,s,o,h,v,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.type=h),e!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||e!=null)){Et(t);return}i=i!=null?""+ze(i):"",e=e!=null?""+ze(e):i,w||e===t.value||(t.value=e),t.defaultValue=e}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=w?t.checked:!!s,t.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),Et(t)}function Nn(t,e,i){e==="number"&&Hi(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function ne(t,e,i,s){if(t=t.options,e){e={};for(var o=0;o"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ra=!1;if(ln)try{var on={};Object.defineProperty(on,"passive",{get:function(){Ra=!0}}),window.addEventListener("test",on,on),window.removeEventListener("test",on,on)}catch{Ra=!1}var gn=null,mi=null,fe=null;function Yn(){if(fe)return fe;var t,e=mi,i=e.length,s,o="value"in gn?gn.value:gn.textContent,h=o.length;for(t=0;t=Gi),ws=" ",Jo=!1;function Fo(t,e){switch(t){case"keyup":return Qe.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Al(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vi=!1;function rn(t,e){switch(t){case"compositionend":return Al(e);case"keypress":return e.which!==32?null:(Jo=!0,ws);case"textInput":return t=e.data,t===ws&&Jo?null:t;default:return null}}function Xi(t,e){if(Vi)return t==="compositionend"||!bs&&Fo(t,e)?(t=Yn(),fe=mi=gn=null,Vi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:i,offset:e-t};t=s}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Ts(i)}}function Es(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Es(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ya(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Hi(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=Hi(t.document)}return e}function Vn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Ls=ln&&"documentMode"in document&&11>=document.documentMode,Xn=null,Cs=null,Ga=null,Fi=!1;function er(t,e,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Fi||Xn==null||Xn!==Hi(s)||(s=Xn,"selectionStart"in s&&Vn(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ga&&Ji(Ga,s)||(Ga=s,s=kr(Cs,"onSelect"),0>=v,o-=v,nt=1<<32-ke(e)+o|i<At?(qt=gt,gt=null):qt=gt.sibling;var Kt=Q(Z,gt,Y[At],tt);if(Kt===null){gt===null&&(gt=qt);break}t&>&&Kt.alternate===null&&e(Z,gt),j=h(Kt,j,At),Xt===null?xt=Kt:Xt.sibling=Kt,Xt=Kt,gt=qt}if(At===Y.length)return i(Z,gt),Bt&&yt(Z,At),xt;if(gt===null){for(;AtAt?(qt=gt,gt=null):qt=gt.sibling;var _a=Q(Z,gt,Kt.value,tt);if(_a===null){gt===null&&(gt=qt);break}t&>&&_a.alternate===null&&e(Z,gt),j=h(_a,j,At),Xt===null?xt=_a:Xt.sibling=_a,Xt=_a,gt=qt}if(Kt.done)return i(Z,gt),Bt&&yt(Z,At),xt;if(gt===null){for(;!Kt.done;At++,Kt=Y.next())Kt=it(Z,Kt.value,tt),Kt!==null&&(j=h(Kt,j,At),Xt===null?xt=Kt:Xt.sibling=Kt,Xt=Kt);return Bt&&yt(Z,At),xt}for(gt=s(gt);!Kt.done;At++,Kt=Y.next())Kt=J(gt,Z,At,Kt.value,tt),Kt!==null&&(t&&Kt.alternate!==null&>.delete(Kt.key===null?At:Kt.key),j=h(Kt,j,At),Xt===null?xt=Kt:Xt.sibling=Kt,Xt=Kt);return t&>.forEach(function(Sv){return e(Z,Sv)}),Bt&&yt(Z,At),xt}function ee(Z,j,Y,tt){if(typeof Y=="object"&&Y!==null&&Y.type===B&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case H:t:{for(var xt=Y.key;j!==null;){if(j.key===xt){if(xt=Y.type,xt===B){if(j.tag===7){i(Z,j.sibling),tt=o(j,Y.props.children),tt.return=Z,Z=tt;break t}}else if(j.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===pt&&es(xt)===j.type){i(Z,j.sibling),tt=o(j,Y.props),ql(tt,Y),tt.return=Z,Z=tt;break t}i(Z,j);break}else e(Z,j);j=j.sibling}Y.type===B?(tt=vi(Y.props.children,Z.mode,tt,Y.key),tt.return=Z,Z=tt):(tt=Fa(Y.type,Y.key,Y.props,null,Z.mode,tt),ql(tt,Y),tt.return=Z,Z=tt)}return v(Z);case A:t:{for(xt=Y.key;j!==null;){if(j.key===xt)if(j.tag===4&&j.stateNode.containerInfo===Y.containerInfo&&j.stateNode.implementation===Y.implementation){i(Z,j.sibling),tt=o(j,Y.children||[]),tt.return=Z,Z=tt;break t}else{i(Z,j);break}else e(Z,j);j=j.sibling}tt=Bl(Y,Z.mode,tt),tt.return=Z,Z=tt}return v(Z);case pt:return Y=es(Y),ee(Z,j,Y,tt)}if(Zt(Y))return dt(Z,j,Y,tt);if(wt(Y)){if(xt=wt(Y),typeof xt!="function")throw Error(c(150));return Y=xt.call(Y),bt(Z,j,Y,tt)}if(typeof Y.then=="function")return ee(Z,j,fr(Y),tt);if(Y.$$typeof===k)return ee(Z,j,or(Z,Y),tt);hr(Z,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,j!==null&&j.tag===6?(i(Z,j.sibling),tt=o(j,Y),tt.return=Z,Z=tt):(i(Z,j),tt=As(Y,Z.mode,tt),tt.return=Z,Z=tt),v(Z)):i(Z,j)}return function(Z,j,Y,tt){try{kl=0;var xt=ee(Z,j,Y,tt);return Hs=null,xt}catch(gt){if(gt===Us||gt===ur)throw gt;var Xt=Ue(29,gt,null,Z.mode);return Xt.lanes=tt,Xt.return=Z,Xt}finally{}}}var is=ah(!0),sh=ah(!1),ea=!1;function Fu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Iu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function na(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ia(t,e,i){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Qt&2)!==0){var o=s.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),s.pending=e,e=Ja(t),$i(t,null,i),e}return Jn(t,s,e,i),Ja(t)}function Yl(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,i|=s,e.lanes=i,Ro(t,i)}}function Wu(t,e){var i=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var o=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?o=h=v:h=h.next=v,i=i.next}while(i!==null);h===null?o=h=e:h=h.next=e}else o=h=e;i={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:h,shared:s.shared,callbacks:s.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var $u=!1;function Gl(){if($u){var t=Bs;if(t!==null)throw t}}function Vl(t,e,i,s){$u=!1;var o=t.updateQueue;ea=!1;var h=o.firstBaseUpdate,v=o.lastBaseUpdate,w=o.shared.pending;if(w!==null){o.shared.pending=null;var R=w,G=R.next;R.next=null,v===null?h=G:v.next=G,v=R;var W=t.alternate;W!==null&&(W=W.updateQueue,w=W.lastBaseUpdate,w!==v&&(w===null?W.firstBaseUpdate=G:w.next=G,W.lastBaseUpdate=R))}if(h!==null){var it=o.baseState;v=0,W=G=R=null,w=h;do{var Q=w.lane&-536870913,J=Q!==w.lane;if(J?(kt&Q)===Q:(s&Q)===Q){Q!==0&&Q===js&&($u=!0),W!==null&&(W=W.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});t:{var dt=t,bt=w;Q=e;var ee=i;switch(bt.tag){case 1:if(dt=bt.payload,typeof dt=="function"){it=dt.call(ee,it,Q);break t}it=dt;break t;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=bt.payload,Q=typeof dt=="function"?dt.call(ee,it,Q):dt,Q==null)break t;it=E({},it,Q);break t;case 2:ea=!0}}Q=w.callback,Q!==null&&(t.flags|=64,J&&(t.flags|=8192),J=o.callbacks,J===null?o.callbacks=[Q]:J.push(Q))}else J={lane:Q,tag:w.tag,payload:w.payload,callback:w.callback,next:null},W===null?(G=W=J,R=it):W=W.next=J,v|=Q;if(w=w.next,w===null){if(w=o.shared.pending,w===null)break;J=w,w=J.next,J.next=null,o.lastBaseUpdate=J,o.shared.pending=null}}while(!0);W===null&&(R=it),o.baseState=R,o.firstBaseUpdate=G,o.lastBaseUpdate=W,h===null&&(o.shared.lanes=0),ra|=v,t.lanes=v,t.memoizedState=it}}function lh(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function oh(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;th?h:8;var v=D.T,w={};D.T=w,_c(t,!1,e,i);try{var R=o(),G=D.S;if(G!==null&&G(w,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var W=fg(R,s);Ql(t,e,W,dn(t))}else Ql(t,e,s,dn(t))}catch(it){Ql(t,e,{then:function(){},status:"rejected",reason:it},dn())}finally{q.p=h,v!==null&&w.types!==null&&(v.types=w.types),D.T=v}}function vg(){}function gc(t,e,i,s){if(t.tag!==5)throw Error(c(476));var o=Zh(t).queue;Hh(t,o,e,I,i===null?vg:function(){return Ph(t),i(s)})}function Zh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:I},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ph(t){var e=Zh(t);e.next===null&&(e=t.alternate.memoizedState),Ql(t,e.next.queue,{},dn())}function vc(){return Re(fo)}function kh(){return ge().memoizedState}function qh(){return ge().memoizedState}function _g(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=dn();t=na(i);var s=ia(e,t,i);s!==null&&(nn(s,e,i),Yl(s,e,i)),e={cache:Xu()},t.payload=e;return}e=e.return}}function yg(t,e,i){var s=dn();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Sr(t)?Gh(e,i):(i=Rl(t,e,i,s),i!==null&&(nn(i,t,s),Vh(i,e,s)))}function Yh(t,e,i){var s=dn();Ql(t,e,i,s)}function Ql(t,e,i,s){var o={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Sr(t))Gh(e,o);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=e.lastRenderedReducer,h!==null))try{var v=e.lastRenderedState,w=h(v,i);if(o.hasEagerState=!0,o.eagerState=w,Ce(w,v))return Jn(t,e,o,0),ie===null&&Qa(),!1}catch{}finally{}if(i=Rl(t,e,o,s),i!==null)return nn(i,t,s),Vh(i,e,s),!0}return!1}function _c(t,e,i,s){if(s={lane:2,revertLane:Fc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Sr(t)){if(e)throw Error(c(479))}else e=Rl(t,i,s,2),e!==null&&nn(e,t,2)}function Sr(t){var e=t.alternate;return t===Ct||e!==null&&e===Ct}function Gh(t,e){Ps=pr=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function Vh(t,e,i){if((i&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,i|=s,e.lanes=i,Ro(t,i)}}var Jl={readContext:Re,use:_r,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useLayoutEffect:de,useInsertionEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useSyncExternalStore:de,useId:de,useHostTransitionStatus:de,useFormState:de,useActionState:de,useOptimistic:de,useMemoCache:de,useCacheRefresh:de};Jl.useEffectEvent=de;var Xh={readContext:Re,use:_r,useCallback:function(t,e){return Ge().memoizedState=[t,e===void 0?null:e],t},useContext:Re,useEffect:Nh,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,xr(4194308,4,Rh.bind(null,e,t),i)},useLayoutEffect:function(t,e){return xr(4194308,4,t,e)},useInsertionEffect:function(t,e){xr(4,2,t,e)},useMemo:function(t,e){var i=Ge();e=e===void 0?null:e;var s=t();if(as){Ln(!0);try{t()}finally{Ln(!1)}}return i.memoizedState=[s,e],s},useReducer:function(t,e,i){var s=Ge();if(i!==void 0){var o=i(e);if(as){Ln(!0);try{i(e)}finally{Ln(!1)}}}else o=e;return s.memoizedState=s.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},s.queue=t,t=t.dispatch=yg.bind(null,Ct,t),[s.memoizedState,t]},useRef:function(t){var e=Ge();return t={current:t},e.memoizedState=t},useState:function(t){t=fc(t);var e=t.queue,i=Yh.bind(null,Ct,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:mc,useDeferredValue:function(t,e){var i=Ge();return pc(i,t,e)},useTransition:function(){var t=fc(!1);return t=Hh.bind(null,Ct,t.queue,!0,!1),Ge().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var s=Ct,o=Ge();if(Bt){if(i===void 0)throw Error(c(407));i=i()}else{if(i=e(),ie===null)throw Error(c(349));(kt&127)!==0||dh(s,e,i)}o.memoizedState=i;var h={value:i,getSnapshot:e};return o.queue=h,Nh(ph.bind(null,s,h,t),[t]),s.flags|=2048,qs(9,{destroy:void 0},mh.bind(null,s,h,i,e),null),i},useId:function(){var t=Ge(),e=ie.identifierPrefix;if(Bt){var i=ct,s=nt;i=(s&~(1<<32-ke(s)-1)).toString(32)+i,e="_"+e+"R_"+i,i=gr++,0<\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?h.multiple=!0:s.size&&(h.size=s.size);break;default:h=typeof s.is=="string"?v.createElement(o,{is:s.is}):v.createElement(o)}}h[ve]=e,h[Le]=s;t:for(v=e.child;v!==null;){if(v.tag===5||v.tag===6)h.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break t;for(;v.sibling===null;){if(v.return===null||v.return===e)break t;v=v.return}v.sibling.return=v.return,v=v.sibling}e.stateNode=h;t:switch(je(h,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&wi(e)}}return se(e),Ac(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&wi(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(c(166));if(t=rt.current,Dn(e)){if(t=e.stateNode,i=e.memoizedProps,s=null,o=Gt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}t[ve]=e,t=!!(t.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||fm(t.nodeValue,i)),t||In(e,!0)}else t=qr(t).createTextNode(s),t[ve]=e,e.stateNode=t}return se(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(s=Dn(e),i!==null){if(t===null){if(!s)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[ve]=e}else _i(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;se(e),t=!1}else i=Hl(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(cn(e),e):(cn(e),null);if((e.flags&128)!==0)throw Error(c(558))}return se(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Dn(e),s!==null&&s.dehydrated!==null){if(t===null){if(!o)throw Error(c(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(c(317));o[ve]=e}else _i(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;se(e),o=!1}else o=Hl(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(cn(e),e):(cn(e),null)}return cn(e),(e.flags&128)!==0?(e.lanes=i,e):(i=s!==null,t=t!==null&&t.memoizedState!==null,i&&(s=e.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==o&&(s.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),Lr(e,e.updateQueue),se(e),null);case 4:return Yt(),t===null&&tf(e.stateNode.containerInfo),se(e),null;case 10:return yi(e.type),se(e),null;case 19:if(X(pe),s=e.memoizedState,s===null)return se(e),null;if(o=(e.flags&128)!==0,h=s.rendering,h===null)if(o)Il(s,!1);else{if(me!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(h=mr(t),h!==null){for(e.flags|=128,Il(s,!1),t=h.updateQueue,e.updateQueue=t,Lr(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)Dl(i,t),i=i.sibling;return $(pe,pe.current&1|2),Bt&&yt(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&Pe()>Ar&&(e.flags|=128,o=!0,Il(s,!1),e.lanes=4194304)}else{if(!o)if(t=mr(h),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Lr(e,t),Il(s,!0),s.tail===null&&s.tailMode==="hidden"&&!h.alternate&&!Bt)return se(e),null}else 2*Pe()-s.renderingStartTime>Ar&&i!==536870912&&(e.flags|=128,o=!0,Il(s,!1),e.lanes=4194304);s.isBackwards?(h.sibling=e.child,e.child=h):(t=s.last,t!==null?t.sibling=h:e.child=h,s.last=h)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Pe(),t.sibling=null,i=pe.current,$(pe,o?i&1|2:i&1),Bt&&yt(e,s.treeForkCount),t):(se(e),null);case 22:case 23:return cn(e),ec(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?(i&536870912)!==0&&(e.flags&128)===0&&(se(e),e.subtreeFlags&6&&(e.flags|=8192)):se(e),i=e.updateQueue,i!==null&&Lr(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==i&&(e.flags|=2048),t!==null&&X(ts),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),yi(ye),se(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function zg(t,e){switch(he(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return yi(ye),Yt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return an(e),null;case 31:if(e.memoizedState!==null){if(cn(e),e.alternate===null)throw Error(c(340));_i()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(cn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));_i()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return X(pe),null;case 4:return Yt(),null;case 10:return yi(e.type),null;case 22:case 23:return cn(e),ec(),t!==null&&X(ts),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return yi(ye),null;case 25:return null;default:return null}}function gd(t,e){switch(he(e),e.tag){case 3:yi(ye),Yt();break;case 26:case 27:case 5:an(e);break;case 4:Yt();break;case 31:e.memoizedState!==null&&cn(e);break;case 13:cn(e);break;case 19:X(pe);break;case 10:yi(e.type);break;case 22:case 23:cn(e),ec(),t!==null&&X(ts);break;case 24:yi(ye)}}function Wl(t,e){try{var i=e.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var o=s.next;i=o;do{if((i.tag&t)===t){s=void 0;var h=i.create,v=i.inst;s=h(),v.destroy=s}i=i.next}while(i!==o)}}catch(w){It(e,e.return,w)}}function la(t,e,i){try{var s=e.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var h=o.next;s=h;do{if((s.tag&t)===t){var v=s.inst,w=v.destroy;if(w!==void 0){v.destroy=void 0,o=e;var R=i,G=w;try{G()}catch(W){It(o,R,W)}}}s=s.next}while(s!==h)}}catch(W){It(e,e.return,W)}}function vd(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{oh(e,i)}catch(s){It(t,t.return,s)}}}function _d(t,e,i){i.props=ss(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(s){It(t,e,s)}}function $l(t,e){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof i=="function"?t.refCleanup=i(s):i.current=s}}catch(o){It(t,e,o)}}function $n(t,e){var i=t.ref,s=t.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(o){It(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(o){It(t,e,o)}else i.current=null}function yd(t){var e=t.type,i=t.memoizedProps,s=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break t;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(o){It(t,t.return,o)}}function Rc(t,e,i){try{var s=t.stateNode;Xg(s,t.type,i,e),s[Le]=e}catch(o){It(t,t.return,o)}}function xd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&da(t.type)||t.tag===4}function Dc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||xd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&da(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jc(t,e,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=Ke));else if(s!==4&&(s===27&&da(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(jc(t,e,i),t=t.sibling;t!==null;)jc(t,e,i),t=t.sibling}function Cr(t,e,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(s!==4&&(s===27&&da(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Cr(t,e,i),t=t.sibling;t!==null;)Cr(t,e,i),t=t.sibling}function bd(t){var e=t.stateNode,i=t.memoizedProps;try{for(var s=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);je(e,s,i),e[ve]=t,e[Le]=i}catch(h){It(t,t.return,h)}}var zi=!1,Se=!1,Bc=!1,Sd=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function Tg(t,e){if(t=t.containerInfo,af=Jr,t=Ya(t),Vn(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var o=s.anchorOffset,h=s.focusNode;s=s.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break t}var v=0,w=-1,R=-1,G=0,W=0,it=t,Q=null;e:for(;;){for(var J;it!==i||o!==0&&it.nodeType!==3||(w=v+o),it!==h||s!==0&&it.nodeType!==3||(R=v+s),it.nodeType===3&&(v+=it.nodeValue.length),(J=it.firstChild)!==null;)Q=it,it=J;for(;;){if(it===t)break e;if(Q===i&&++G===o&&(w=v),Q===h&&++W===s&&(R=v),(J=it.nextSibling)!==null)break;it=Q,Q=it.parentNode}it=J}i=w===-1||R===-1?null:{start:w,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(sf={focusedElem:t,selectionRange:i},Jr=!1,Oe=e;Oe!==null;)if(e=Oe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Oe=t;else for(;Oe!==null;){switch(e=Oe,h=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i title"))),je(h,s,i),h[ve]=t,_e(h),s=h;break t;case"link":var v=Cm("link","href",o).get(s+(i.href||""));if(v){for(var w=0;wee&&(v=ee,ee=bt,bt=v);var Z=qa(w,bt),j=qa(w,ee);if(Z&&j&&(J.rangeCount!==1||J.anchorNode!==Z.node||J.anchorOffset!==Z.offset||J.focusNode!==j.node||J.focusOffset!==j.offset)){var Y=it.createRange();Y.setStart(Z.node,Z.offset),J.removeAllRanges(),bt>ee?(J.addRange(Y),J.extend(j.node,j.offset)):(Y.setEnd(j.node,j.offset),J.addRange(Y))}}}}for(it=[],J=w;J=J.parentNode;)J.nodeType===1&&it.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;wi?32:i,D.T=null,i=Yc,Yc=null;var h=ca,v=Ni;if(Ee=0,Ks=ca=null,Ni=0,(Qt&6)!==0)throw Error(c(331));var w=Qt;if(Qt|=4,Rd(h.current),Od(h,h.current,v,i),Qt=w,so(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(ji,h)}catch{}return!0}finally{q.p=o,D.T=s,Id(t,e)}}function $d(t,e,i){e=a(i,e),e=Sc(t.stateNode,e,2),t=ia(t,e,2),t!==null&&(ri(t,2),ti(t))}function It(t,e,i){if(t.tag===3)$d(t,t,i);else for(;e!==null;){if(e.tag===3){$d(e,t,i);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ua===null||!ua.has(s))){t=a(i,t),i=td(2),s=ia(e,i,2),s!==null&&(ed(i,s,e,t),ri(s,2),ti(s));break}}e=e.return}}function Kc(t,e,i){var s=t.pingCache;if(s===null){s=t.pingCache=new Cg;var o=new Set;s.set(e,o)}else o=s.get(e),o===void 0&&(o=new Set,s.set(e,o));o.has(i)||(Zc=!0,o.add(i),t=Rg.bind(null,t,e,i),e.then(t,t))}function Rg(t,e,i){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,ie===t&&(kt&i)===i&&(me===4||me===3&&(kt&62914560)===kt&&300>Pe()-Mr?(Qt&2)===0&&Qs(t,0):Pc|=i,Xs===kt&&(Xs=0)),ti(t)}function tm(t,e){e===0&&(e=Mo()),t=bn(t,e),t!==null&&(ri(t,e),ti(t))}function Dg(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),tm(t,i)}function jg(t,e){var i=0;switch(t.tag){case 31:case 13:var s=t.stateNode,o=t.memoizedState;o!==null&&(i=o.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(c(314))}s!==null&&s.delete(e),tm(t,i)}function Bg(t,e){return hs(t,e)}var Hr=null,Fs=null,Qc=!1,Zr=!1,Jc=!1,ha=0;function ti(t){t!==Fs&&t.next===null&&(Fs===null?Hr=Fs=t:Fs=Fs.next=t),Zr=!0,Qc||(Qc=!0,Hg())}function so(t,e){if(!Jc&&Zr){Jc=!0;do for(var i=!1,s=Hr;s!==null;){if(t!==0){var o=s.pendingLanes;if(o===0)var h=0;else{var v=s.suspendedLanes,w=s.pingedLanes;h=(1<<31-ke(42|t)+1)-1,h&=o&~(v&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,am(s,h))}else h=kt,h=ms(s,s===ie?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(h&3)===0||Ea(s,h)||(i=!0,am(s,h));s=s.next}while(i);Jc=!1}}function Ug(){em()}function em(){Zr=Qc=!1;var t=0;ha!==0&&Qg()&&(t=ha);for(var e=Pe(),i=null,s=Hr;s!==null;){var o=s.next,h=nm(s,e);h===0?(s.next=null,i===null?Hr=o:i.next=o,o===null&&(Fs=i)):(i=s,(t!==0||(h&3)!==0)&&(Zr=!0)),s=o}Ee!==0&&Ee!==5||so(t),ha!==0&&(ha=0)}function nm(t,e){for(var i=t.suspendedLanes,s=t.pingedLanes,o=t.expirationTimes,h=t.pendingLanes&-62914561;0w)break;var W=R.transferSize,it=R.initiatorType;W&&hm(it)&&(R=R.responseEnd,v+=W*(R"u"?null:document;function zm(t,e,i){var s=Is;if(s&&typeof e=="string"&&e){var o=ae(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),wm.has(o)||(wm.add(o),t={rel:t,crossOrigin:i,href:e},s.querySelector(o)===null&&(e=s.createElement("link"),je(e,"link",t),_e(e),s.head.appendChild(e)))}}function iv(t){Oi.D(t),zm("dns-prefetch",t,null)}function av(t,e){Oi.C(t,e),zm("preconnect",t,e)}function sv(t,e,i){Oi.L(t,e,i);var s=Is;if(s&&t&&e){var o='link[rel="preload"][as="'+ae(e)+'"]';e==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+ae(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+ae(i.imageSizes)+'"]')):o+='[href="'+ae(t)+'"]';var h=o;switch(e){case"style":h=Ws(t);break;case"script":h=$s(t)}Tn.has(h)||(t=E({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),Tn.set(h,t),s.querySelector(o)!==null||e==="style"&&s.querySelector(uo(h))||e==="script"&&s.querySelector(co(h))||(e=s.createElement("link"),je(e,"link",t),_e(e),s.head.appendChild(e)))}}function lv(t,e){Oi.m(t,e);var i=Is;if(i&&t){var s=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+ae(s)+'"][href="'+ae(t)+'"]',h=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=$s(t)}if(!Tn.has(h)&&(t=E({rel:"modulepreload",href:t},e),Tn.set(h,t),i.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(co(h)))return}s=i.createElement("link"),je(s,"link",t),_e(s),i.head.appendChild(s)}}}function ov(t,e,i){Oi.S(t,e,i);var s=Is;if(s&&t){var o=Ui(s).hoistableStyles,h=Ws(t);e=e||"default";var v=o.get(h);if(!v){var w={loading:0,preload:null};if(v=s.querySelector(uo(h)))w.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":e},i),(i=Tn.get(h))&&hf(t,i);var R=v=s.createElement("link");_e(R),je(R,"link",t),R._p=new Promise(function(G,W){R.onload=G,R.onerror=W}),R.addEventListener("load",function(){w.loading|=1}),R.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Gr(v,e,s)}v={type:"stylesheet",instance:v,count:1,state:w},o.set(h,v)}}}function rv(t,e){Oi.X(t,e);var i=Is;if(i&&t){var s=Ui(i).hoistableScripts,o=$s(t),h=s.get(o);h||(h=i.querySelector(co(o)),h||(t=E({src:t,async:!0},e),(e=Tn.get(o))&&df(t,e),h=i.createElement("script"),_e(h),je(h,"link",t),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(o,h))}}function uv(t,e){Oi.M(t,e);var i=Is;if(i&&t){var s=Ui(i).hoistableScripts,o=$s(t),h=s.get(o);h||(h=i.querySelector(co(o)),h||(t=E({src:t,async:!0,type:"module"},e),(e=Tn.get(o))&&df(t,e),h=i.createElement("script"),_e(h),je(h,"link",t),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(o,h))}}function Tm(t,e,i,s){var o=(o=rt.current)?Yr(o):null;if(!o)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Ws(i.href),i=Ui(o).hoistableStyles,s=i.get(e),s||(s={type:"style",instance:null,count:0,state:null},i.set(e,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ws(i.href);var h=Ui(o).hoistableStyles,v=h.get(t);if(v||(o=o.ownerDocument||o,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,v),(h=o.querySelector(uo(t)))&&!h._p&&(v.instance=h,v.state.loading=5),Tn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Tn.set(t,i),h||cv(o,t,i,v.state))),e&&s===null)throw Error(c(528,""));return v}if(e&&s!==null)throw Error(c(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=$s(i),i=Ui(o).hoistableScripts,s=i.get(e),s||(s={type:"script",instance:null,count:0,state:null},i.set(e,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Ws(t){return'href="'+ae(t)+'"'}function uo(t){return'link[rel="stylesheet"]['+t+"]"}function Em(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function cv(t,e,i,s){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?s.loading=1:(e=t.createElement("link"),s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2}),je(e,"link",i),_e(e),t.head.appendChild(e))}function $s(t){return'[src="'+ae(t)+'"]'}function co(t){return"script[async]"+t}function Lm(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+ae(i.href)+'"]');if(s)return e.instance=s,_e(s),s;var o=E({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),_e(s),je(s,"style",o),Gr(s,i.precedence,t),e.instance=s;case"stylesheet":o=Ws(i.href);var h=t.querySelector(uo(o));if(h)return e.state.loading|=4,e.instance=h,_e(h),h;s=Em(i),(o=Tn.get(o))&&hf(s,o),h=(t.ownerDocument||t).createElement("link"),_e(h);var v=h;return v._p=new Promise(function(w,R){v.onload=w,v.onerror=R}),je(h,"link",s),e.state.loading|=4,Gr(h,i.precedence,t),e.instance=h;case"script":return h=$s(i.src),(o=t.querySelector(co(h)))?(e.instance=o,_e(o),o):(s=i,(o=Tn.get(h))&&(s=E({},i),df(s,o)),t=t.ownerDocument||t,o=t.createElement("script"),_e(o),je(o,"link",s),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(s=e.instance,e.state.loading|=4,Gr(s,i.precedence,t));return e.instance}function Gr(t,e,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,h=o,v=0;v title"):null)}function fv(t,e,i){if(i===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Om(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function hv(t,e,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var o=Ws(s.href),h=e.querySelector(uo(o));if(h){e=h._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Xr.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=h,_e(h);return}h=e.ownerDocument||e,s=Em(s),(o=Tn.get(o))&&hf(s,o),h=h.createElement("link"),_e(h);var v=h;v._p=new Promise(function(w,R){v.onload=w,v.onerror=R}),je(h,"link",s),i.instance=h}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Xr.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var mf=0;function dv(t,e){return t.stylesheets&&t.count===0&&Qr(t,t.stylesheets),0mf?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function Xr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Kr=null;function Qr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Kr=new Map,e.forEach(mv,t),Kr=null,Xr.call(t))}function mv(t,e){if(!(e.state.loading&4)){var i=Kr.get(t);if(i)var s=i.get(null);else{i=new Map,Kr.set(t,i);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(u){console.error(u)}}return f(),wf.exports=Nv(),wf.exports}var Mv=Ov();/** * react-router v7.13.1 * * 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 tp="popstate";function ep(f){return typeof f=="object"&&f!=null&&"pathname"in f&&"search"in f&&"hash"in f&&"state"in f&&"key"in f}function Av(f={}){function u(c,m){var x;let p=(x=m.state)==null?void 0:x.masked,{pathname:_,search:z,hash:y}=p||c.location;return Af("",{pathname:_,search:z,hash:y},m.state&&m.state.usr||null,m.state&&m.state.key||"default",p?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function r(c,m){return typeof m=="string"?m:zo(m)}return Dv(u,r,null,f)}function re(f,u){if(f===!1||f===null||typeof f>"u")throw new Error(u)}function Hn(f,u){if(!f){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Rv(){return Math.random().toString(36).substring(2,10)}function np(f,u){return{usr:f.state,key:f.key,idx:u,masked:f.unstable_mask?{pathname:f.pathname,search:f.search,hash:f.hash}:void 0}}function Af(f,u,r=null,c,m){return{pathname:typeof f=="string"?f:f.pathname,search:"",hash:"",...typeof u=="string"?sl(u):u,state:r,key:u&&u.key||c||Rv(),unstable_mask:m}}function zo({pathname:f="/",search:u="",hash:r=""}){return u&&u!=="?"&&(f+=u.charAt(0)==="?"?u:"?"+u),r&&r!=="#"&&(f+=r.charAt(0)==="#"?r:"#"+r),f}function sl(f){let u={};if(f){let r=f.indexOf("#");r>=0&&(u.hash=f.substring(r),f=f.substring(0,r));let c=f.indexOf("?");c>=0&&(u.search=f.substring(c),f=f.substring(0,c)),f&&(u.pathname=f)}return u}function Dv(f,u,r,c={}){let{window:m=document.defaultView,v5Compat:p=!1}=c,_=m.history,z="POP",y=null,x=T();x==null&&(x=0,_.replaceState({..._.state,idx:x},""));function T(){return(_.state||{idx:null}).idx}function E(){z="POP";let V=T(),et=V==null?null:V-x;x=V,y&&y({action:z,location:B.location,delta:et})}function O(V,et){z="PUSH";let U=ep(V)?V:Af(B.location,V,et);x=T()+1;let k=np(U,x),F=B.createHref(U.unstable_mask||U);try{_.pushState(k,"",F)}catch(mt){if(mt instanceof DOMException&&mt.name==="DataCloneError")throw mt;m.location.assign(F)}p&&y&&y({action:z,location:B.location,delta:1})}function H(V,et){z="REPLACE";let U=ep(V)?V:Af(B.location,V,et);x=T();let k=np(U,x),F=B.createHref(U.unstable_mask||U);_.replaceState(k,"",F),p&&y&&y({action:z,location:B.location,delta:0})}function A(V){return jv(V)}let B={get action(){return z},get location(){return f(m,_)},listen(V){if(y)throw new Error("A history only accepts one active listener");return m.addEventListener(tp,E),y=V,()=>{m.removeEventListener(tp,E),y=null}},createHref(V){return u(m,V)},createURL:A,encodeLocation(V){let et=A(V);return{pathname:et.pathname,search:et.search,hash:et.hash}},push:O,replace:H,go(V){return _.go(V)}};return B}function jv(f,u=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),re(r,"No window.location.(origin|href) available to create URL");let c=typeof f=="string"?f:zo(f);return c=c.replace(/ $/,"%20"),!u&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Ep(f,u,r="/"){return Bv(f,u,r,!1)}function Bv(f,u,r,c){let m=typeof u=="string"?sl(u):u,p=Ri(m.pathname||"/",r);if(p==null)return null;let _=Lp(f);Uv(_);let z=null;for(let y=0;z==null&&y<_.length;++y){let x=Qv(p);z=Xv(_[y],x,c)}return z}function Lp(f,u=[],r=[],c="",m=!1){let p=(_,z,y=m,x)=>{let T={relativePath:x===void 0?_.path||"":x,caseSensitive:_.caseSensitive===!0,childrenIndex:z,route:_};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(c)&&y)return;re(T.relativePath.startsWith(c),`Absolute route path "${T.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(c.length)}let E=ii([c,T.relativePath]),O=r.concat(T);_.children&&_.children.length>0&&(re(_.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),Lp(_.children,u,O,E,y)),!(_.path==null&&!_.index)&&u.push({path:E,score:Gv(E,_.index),routesMeta:O})};return f.forEach((_,z)=>{var y;if(_.path===""||!((y=_.path)!=null&&y.includes("?")))p(_,z);else for(let x of Cp(_.path))p(_,z,!0,x)}),u}function Cp(f){let u=f.split("/");if(u.length===0)return[];let[r,...c]=u,m=r.endsWith("?"),p=r.replace(/\?$/,"");if(c.length===0)return m?[p,""]:[p];let _=Cp(c.join("/")),z=[];return z.push(..._.map(y=>y===""?p:[p,y].join("/"))),m&&z.push(..._),z.map(y=>f.startsWith("/")&&y===""?"/":y)}function Uv(f){f.sort((u,r)=>u.score!==r.score?r.score-u.score:Vv(u.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var Hv=/^:[\w-]+$/,Zv=3,Pv=2,kv=1,qv=10,Yv=-2,ip=f=>f==="*";function Gv(f,u){let r=f.split("/"),c=r.length;return r.some(ip)&&(c+=Yv),u&&(c+=Pv),r.filter(m=>!ip(m)).reduce((m,p)=>m+(Hv.test(p)?Zv:p===""?kv:qv),c)}function Vv(f,u){return f.length===u.length&&f.slice(0,-1).every((c,m)=>c===u[m])?f[f.length-1]-u[u.length-1]:0}function Xv(f,u,r=!1){let{routesMeta:c}=f,m={},p="/",_=[];for(let z=0;z{if(T==="*"){let A=z[O]||"";_=p.slice(0,p.length-A.length).replace(/(.)\/+$/,"$1")}const H=z[O];return E&&!H?x[T]=void 0:x[T]=(H||"").replace(/%2F/g,"/"),x},{}),pathname:p,pathnameBase:_,pattern:f}}function Kv(f,u=!1,r=!0){Hn(f==="*"||!f.endsWith("*")||f.endsWith("/*"),`Route path "${f}" will be treated as if it were "${f.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${f.replace(/\*$/,"/*")}".`);let c=[],m="^"+f.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(_,z,y,x,T)=>{if(c.push({paramName:z,isOptional:y!=null}),y){let E=T.charAt(x+_.length);return E&&E!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return f.endsWith("*")?(c.push({paramName:"*"}),m+=f==="*"||f==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?m+="\\/*$":f!==""&&f!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,u?void 0:"i"),c]}function Qv(f){try{return f.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Hn(!1,`The URL path "${f}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),f}}function Ri(f,u){if(u==="/")return f;if(!f.toLowerCase().startsWith(u.toLowerCase()))return null;let r=u.endsWith("/")?u.length-1:u.length,c=f.charAt(r);return c&&c!=="/"?null:f.slice(r)||"/"}var Jv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Fv(f,u="/"){let{pathname:r,search:c="",hash:m=""}=typeof f=="string"?sl(f):f,p;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?p=ap(r.substring(1),"/"):p=ap(r,u)):p=u,{pathname:p,search:$v(c),hash:t_(m)}}function ap(f,u){let r=u.replace(/\/+$/,"").split("/");return f.split("/").forEach(m=>{m===".."?r.length>1&&r.pop():m!=="."&&r.push(m)}),r.length>1?r.join("/"):"/"}function Lf(f,u,r,c){return`Cannot include a '${f}' character in a manually specified \`to.${u}\` field [${JSON.stringify(c)}]. 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 Iv(f){return f.filter((u,r)=>r===0||u.route.path&&u.route.path.length>0)}function Zf(f){let u=Iv(f);return u.map((r,c)=>c===u.length-1?r.pathname:r.pathnameBase)}function du(f,u,r,c=!1){let m;typeof f=="string"?m=sl(f):(m={...f},re(!m.pathname||!m.pathname.includes("?"),Lf("?","pathname","search",m)),re(!m.pathname||!m.pathname.includes("#"),Lf("#","pathname","hash",m)),re(!m.search||!m.search.includes("#"),Lf("#","search","hash",m)));let p=f===""||m.pathname==="",_=p?"/":m.pathname,z;if(_==null)z=r;else{let E=u.length-1;if(!c&&_.startsWith("..")){let O=_.split("/");for(;O[0]==="..";)O.shift(),E-=1;m.pathname=O.join("/")}z=E>=0?u[E]:"/"}let y=Fv(m,z),x=_&&_!=="/"&&_.endsWith("/"),T=(p||_===".")&&r.endsWith("/");return!y.pathname.endsWith("/")&&(x||T)&&(y.pathname+="/"),y}var ii=f=>f.join("/").replace(/\/\/+/g,"/"),Wv=f=>f.replace(/\/+$/,"").replace(/^\/*/,"/"),$v=f=>!f||f==="?"?"":f.startsWith("?")?f:"?"+f,t_=f=>!f||f==="#"?"":f.startsWith("#")?f:"#"+f,e_=class{constructor(f,u,r,c=!1){this.status=f,this.statusText=u||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function n_(f){return f!=null&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.internal=="boolean"&&"data"in f}function i_(f){return f.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Np=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Op(f,u){let r=f;if(typeof r!="string"||!Jv.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,m=!1;if(Np)try{let p=new URL(window.location.href),_=r.startsWith("//")?new URL(p.protocol+r):new URL(r),z=Ri(_.pathname,u);_.origin===p.origin&&z!=null?r=z+_.search+_.hash:m=!0}catch{Hn(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:m,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Mp=["POST","PUT","PATCH","DELETE"];new Set(Mp);var a_=["GET",...Mp];new Set(a_);var ll=C.createContext(null);ll.displayName="DataRouter";var mu=C.createContext(null);mu.displayName="DataRouterState";var s_=C.createContext(!1),Ap=C.createContext({isTransitioning:!1});Ap.displayName="ViewTransition";var l_=C.createContext(new Map);l_.displayName="Fetchers";var o_=C.createContext(null);o_.displayName="Await";var mn=C.createContext(null);mn.displayName="Navigation";var Eo=C.createContext(null);Eo.displayName="Location";var ai=C.createContext({outlet:null,matches:[],isDataRoute:!1});ai.displayName="Route";var Pf=C.createContext(null);Pf.displayName="RouteError";var Rp="REACT_ROUTER_ERROR",r_="REDIRECT",u_="ROUTE_ERROR_RESPONSE";function c_(f){if(f.startsWith(`${Rp}:${r_}:{`))try{let u=JSON.parse(f.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function f_(f){if(f.startsWith(`${Rp}:${u_}:{`))try{let u=JSON.parse(f.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new e_(u.status,u.statusText,u.data)}catch{}}function h_(f,{relative:u}={}){re(ol(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:c}=C.useContext(mn),{hash:m,pathname:p,search:_}=Lo(f,{relative:u}),z=p;return r!=="/"&&(z=p==="/"?r:ii([r,p])),c.createHref({pathname:z,search:_,hash:m})}function ol(){return C.useContext(Eo)!=null}function Di(){return re(ol(),"useLocation() may be used only in the context of a component."),C.useContext(Eo).location}var Dp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function jp(f){C.useContext(mn).static||C.useLayoutEffect(f)}function pu(){let{isDataRoute:f}=C.useContext(ai);return f?T_():d_()}function d_(){re(ol(),"useNavigate() may be used only in the context of a component.");let f=C.useContext(ll),{basename:u,navigator:r}=C.useContext(mn),{matches:c}=C.useContext(ai),{pathname:m}=Di(),p=JSON.stringify(Zf(c)),_=C.useRef(!1);return jp(()=>{_.current=!0}),C.useCallback((y,x={})=>{if(Hn(_.current,Dp),!_.current)return;if(typeof y=="number"){r.go(y);return}let T=du(y,JSON.parse(p),m,x.relative==="path");f==null&&u!=="/"&&(T.pathname=T.pathname==="/"?u:ii([u,T.pathname])),(x.replace?r.replace:r.push)(T,x.state,x)},[u,r,p,m,f])}C.createContext(null);function Lo(f,{relative:u}={}){let{matches:r}=C.useContext(ai),{pathname:c}=Di(),m=JSON.stringify(Zf(r));return C.useMemo(()=>du(f,JSON.parse(m),c,u==="path"),[f,m,c,u])}function m_(f,u){return Bp(f,u)}function Bp(f,u,r){var V;re(ol(),"useRoutes() may be used only in the context of a component.");let{navigator:c}=C.useContext(mn),{matches:m}=C.useContext(ai),p=m[m.length-1],_=p?p.params:{},z=p?p.pathname:"/",y=p?p.pathnameBase:"/",x=p&&p.route;{let et=x&&x.path||"";Hp(z,!x||et.endsWith("*")||et.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${z}" (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 T=Di(),E;if(u){let et=typeof u=="string"?sl(u):u;re(y==="/"||((V=et.pathname)==null?void 0:V.startsWith(y)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${et.pathname}" was given in the \`location\` prop.`),E=et}else E=T;let O=E.pathname||"/",H=O;if(y!=="/"){let et=y.replace(/^\//,"").split("/");H="/"+O.replace(/^\//,"").split("/").slice(et.length).join("/")}let A=Ep(f,{pathname:H});Hn(x||A!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Hn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.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 B=y_(A&&A.map(et=>Object.assign({},et,{params:Object.assign({},_,et.params),pathname:ii([y,c.encodeLocation?c.encodeLocation(et.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:et.pathname]),pathnameBase:et.pathnameBase==="/"?y:ii([y,c.encodeLocation?c.encodeLocation(et.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:et.pathnameBase])})),m,r);return u&&B?C.createElement(Eo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...E},navigationType:"POP"}},B):B}function p_(){let f=z_(),u=n_(f)?`${f.status} ${f.statusText}`:f instanceof Error?f.message:JSON.stringify(f),r=f instanceof Error?f.stack:null,c="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:c},p={padding:"2px 4px",backgroundColor:c},_=null;return console.error("Error handled by React Router default ErrorBoundary:",f),_=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:p},"ErrorBoundary")," or"," ",C.createElement("code",{style:p},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},u),r?C.createElement("pre",{style:m},r):null,_)}var g_=C.createElement(p_,null),Up=class extends C.Component{constructor(f){super(f),this.state={location:f.location,revalidation:f.revalidation,error:f.error}}static getDerivedStateFromError(f){return{error:f}}static getDerivedStateFromProps(f,u){return u.location!==f.location||u.revalidation!=="idle"&&f.revalidation==="idle"?{error:f.error,location:f.location,revalidation:f.revalidation}:{error:f.error!==void 0?f.error:u.error,location:u.location,revalidation:f.revalidation||u.revalidation}}componentDidCatch(f,u){this.props.onError?this.props.onError(f,u):console.error("React Router caught the following error during render",f)}render(){let f=this.state.error;if(this.context&&typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){const r=f_(f.digest);r&&(f=r)}let u=f!==void 0?C.createElement(ai.Provider,{value:this.props.routeContext},C.createElement(Pf.Provider,{value:f,children:this.props.component})):this.props.children;return this.context?C.createElement(v_,{error:f},u):u}};Up.contextType=s_;var Cf=new WeakMap;function v_({children:f,error:u}){let{basename:r}=C.useContext(mn);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let c=c_(u.digest);if(c){let m=Cf.get(u);if(m)throw m;let p=Op(c.location,r);if(Np&&!Cf.get(u))if(p.isExternal||c.reloadDocument)window.location.href=p.absoluteURL||p.to;else{const _=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:c.replace}));throw Cf.set(u,_),_}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return f}function __({routeContext:f,match:u,children:r}){let c=C.useContext(ll);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),C.createElement(ai.Provider,{value:f},r)}function y_(f,u=[],r){let c=r==null?void 0:r.state;if(f==null){if(!c)return null;if(c.errors)f=c.matches;else if(u.length===0&&!c.initialized&&c.matches.length>0)f=c.matches;else return null}let m=f,p=c==null?void 0:c.errors;if(p!=null){let T=m.findIndex(E=>E.route.id&&(p==null?void 0:p[E.route.id])!==void 0);re(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),m=m.slice(0,Math.min(m.length,T+1))}let _=!1,z=-1;if(r&&c){_=c.renderFallback;for(let T=0;T=0?m=m.slice(0,z+1):m=[m[0]];break}}}}let y=r==null?void 0:r.onError,x=c&&y?(T,E)=>{var O,H;y(T,{location:c.location,params:((H=(O=c.matches)==null?void 0:O[0])==null?void 0:H.params)??{},unstable_pattern:i_(c.matches),errorInfo:E})}:void 0;return m.reduceRight((T,E,O)=>{let H,A=!1,B=null,V=null;c&&(H=p&&E.route.id?p[E.route.id]:void 0,B=E.route.errorElement||g_,_&&(z<0&&O===0?(Hp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,V=null):z===O&&(A=!0,V=E.route.hydrateFallbackElement||null)));let et=u.concat(m.slice(0,O+1)),U=()=>{let k;return H?k=B:A?k=V:E.route.Component?k=C.createElement(E.route.Component,null):E.route.element?k=E.route.element:k=T,C.createElement(__,{match:E,routeContext:{outlet:T,matches:et,isDataRoute:c!=null},children:k})};return c&&(E.route.ErrorBoundary||E.route.errorElement||O===0)?C.createElement(Up,{location:c.location,revalidation:c.revalidation,component:B,error:H,children:U(),routeContext:{outlet:null,matches:et,isDataRoute:!0},onError:x}):U()},null)}function kf(f){return`${f} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function x_(f){let u=C.useContext(ll);return re(u,kf(f)),u}function b_(f){let u=C.useContext(mu);return re(u,kf(f)),u}function S_(f){let u=C.useContext(ai);return re(u,kf(f)),u}function qf(f){let u=S_(f),r=u.matches[u.matches.length-1];return re(r.route.id,`${f} can only be used on routes that contain a unique "id"`),r.route.id}function w_(){return qf("useRouteId")}function z_(){var c;let f=C.useContext(Pf),u=b_("useRouteError"),r=qf("useRouteError");return f!==void 0?f:(c=u.errors)==null?void 0:c[r]}function T_(){let{router:f}=x_("useNavigate"),u=qf("useNavigate"),r=C.useRef(!1);return jp(()=>{r.current=!0}),C.useCallback(async(m,p={})=>{Hn(r.current,Dp),r.current&&(typeof m=="number"?await f.navigate(m):await f.navigate(m,{fromRouteId:u,...p}))},[f,u])}var sp={};function Hp(f,u,r){!u&&!sp[f]&&(sp[f]=!0,Hn(!1,r))}C.memo(E_);function E_({routes:f,future:u,state:r,isStatic:c,onError:m}){return Bp(f,void 0,{state:r,isStatic:c,onError:m})}function Zp({to:f,replace:u,state:r,relative:c}){re(ol()," may be used only in the context of a component.");let{static:m}=C.useContext(mn);Hn(!m," 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:p}=C.useContext(ai),{pathname:_}=Di(),z=pu(),y=du(f,Zf(p),_,c==="path"),x=JSON.stringify(y);return C.useEffect(()=>{z(JSON.parse(x),{replace:u,state:r,relative:c})},[z,x,c,u,r]),null}function Mi(f){re(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function L_({basename:f="/",children:u=null,location:r,navigationType:c="POP",navigator:m,static:p=!1,unstable_useTransitions:_}){re(!ol(),"You cannot render a inside another . You should never have more than one in your app.");let z=f.replace(/^\/*/,"/"),y=C.useMemo(()=>({basename:z,navigator:m,static:p,unstable_useTransitions:_,future:{}}),[z,m,p,_]);typeof r=="string"&&(r=sl(r));let{pathname:x="/",search:T="",hash:E="",state:O=null,key:H="default",unstable_mask:A}=r,B=C.useMemo(()=>{let V=Ri(x,z);return V==null?null:{location:{pathname:V,search:T,hash:E,state:O,key:H,unstable_mask:A},navigationType:c}},[z,x,T,E,O,H,c,A]);return Hn(B!=null,` is not able to match the URL "${x}${T}${E}" because it does not start with the basename, so the won't render anything.`),B==null?null:C.createElement(mn.Provider,{value:y},C.createElement(Eo.Provider,{children:u,value:B}))}function lp({children:f,location:u}){return m_(Rf(f),u)}function Rf(f,u=[]){let r=[];return C.Children.forEach(f,(c,m)=>{if(!C.isValidElement(c))return;let p=[...u,m];if(c.type===C.Fragment){r.push.apply(r,Rf(c.props.children,p));return}re(c.type===Mi,`[${typeof c.type=="string"?c.type:c.type.name}] is not a component. All component children of must be a or `),re(!c.props.index||!c.props.children,"An index route cannot have child routes.");let _={id:c.props.id||p.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(_.children=Rf(c.props.children,p)),r.push(_)}),r}var su="get",lu="application/x-www-form-urlencoded";function gu(f){return typeof HTMLElement<"u"&&f instanceof HTMLElement}function C_(f){return gu(f)&&f.tagName.toLowerCase()==="button"}function N_(f){return gu(f)&&f.tagName.toLowerCase()==="form"}function O_(f){return gu(f)&&f.tagName.toLowerCase()==="input"}function M_(f){return!!(f.metaKey||f.altKey||f.ctrlKey||f.shiftKey)}function A_(f,u){return f.button===0&&(!u||u==="_self")&&!M_(f)}var nu=null;function R_(){if(nu===null)try{new FormData(document.createElement("form"),0),nu=!1}catch{nu=!0}return nu}var D_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Nf(f){return f!=null&&!D_.has(f)?(Hn(!1,`"${f}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${lu}"`),null):f}function j_(f,u){let r,c,m,p,_;if(N_(f)){let z=f.getAttribute("action");c=z?Ri(z,u):null,r=f.getAttribute("method")||su,m=Nf(f.getAttribute("enctype"))||lu,p=new FormData(f)}else if(C_(f)||O_(f)&&(f.type==="submit"||f.type==="image")){let z=f.form;if(z==null)throw new Error('Cannot submit a