const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OrbitControls-BJ-UXxdt.js","assets/three.module--MGUDD-H.js","assets/AdminApp-rjb7pnqZ.js","assets/api-B8GGCEeo.js","assets/AdminApp-DlZ4aJzc.css","assets/SetupApp-DVMPnxpG.js"])))=>i.map(i=>d[i]); (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const h of u.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();const Cz="modulepreload",Sz=function(t){return"/"+t},jd={},n8=function(n,a,i){let o=Promise.resolve();if(a&&a.length>0){let g=function(b){return Promise.all(b.map(p=>Promise.resolve(p).then(z=>({status:"fulfilled",value:z}),z=>({status:"rejected",reason:z}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");o=g(a.map(b=>{if(b=Sz(b),b in jd)return;jd[b]=!0;const p=b.endsWith(".css"),z=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${b}"]${z}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":Cz,p||(y.as="script"),y.crossOrigin="",y.href=b,m&&y.setAttribute("nonce",m),document.head.appendChild(y),p)return new Promise((w,A)=>{y.addEventListener("load",w),y.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${b}`)))})}))}function u(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return o.then(h=>{for(const m of h||[])m.status==="rejected"&&u(m.reason);return n().catch(u)})};function om(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r9={exports:{}},Ee={};var Vd;function Az(){if(Vd)return Ee;Vd=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(i,o,u){var h=null;if(u!==void 0&&(h=""+u),o.key!==void 0&&(h=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:t,type:i,key:h,ref:o!==void 0?o:null,props:u}}return Ee.Fragment=n,Ee.jsx=a,Ee.jsxs=a,Ee}var Bd;function Hz(){return Bd||(Bd=1,r9.exports=Az()),r9.exports}var r=Hz(),l9={exports:{}},Y1={};var kd;function Lz(){if(kd)return Y1;kd=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),y=Symbol.for("react.view_transition"),w=Symbol.iterator;function A(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,V={};function L(T,q,Z){this.props=T,this.context=q,this.refs=V,this.updater=Z||H}L.prototype.isReactComponent={},L.prototype.setState=function(T,q){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,q,"setState")},L.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function S(){}S.prototype=L.prototype;function j(T,q,Z){this.props=T,this.context=q,this.refs=V,this.updater=Z||H}var k=j.prototype=new S;k.constructor=j,M(k,L.prototype),k.isPureReactComponent=!0;var E=Array.isArray;function F(){}var N={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function O(T,q,Z){var r1=Z.ref;return{$$typeof:t,type:T,key:q,ref:r1!==void 0?r1:null,props:Z}}function D(T,q){return O(T.type,q,T.props)}function U(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function a1(T){var q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Z){return q[Z]})}var n1=/\/+/g;function $(T,q){return typeof T=="object"&&T!==null&&T.key!=null?a1(""+T.key):q.toString(36)}function P(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(F,F):(T.status="pending",T.then(function(q){T.status==="pending"&&(T.status="fulfilled",T.value=q)},function(q){T.status==="pending"&&(T.status="rejected",T.reason=q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function W(T,q,Z,r1,v1){var C1=typeof T;(C1==="undefined"||C1==="boolean")&&(T=null);var H1=!1;if(T===null)H1=!0;else switch(C1){case"bigint":case"string":case"number":H1=!0;break;case"object":switch(T.$$typeof){case t:case n:H1=!0;break;case p:return H1=T._init,W(H1(T._payload),q,Z,r1,v1)}}if(H1)return v1=v1(T),H1=r1===""?"."+$(T,0):r1,E(v1)?(Z="",H1!=null&&(Z=H1.replace(n1,"$&/")+"/"),W(v1,q,Z,"",function(D1){return D1})):v1!=null&&(U(v1)&&(v1=D(v1,Z+(v1.key==null||T&&T.key===v1.key?"":(""+v1.key).replace(n1,"$&/")+"/")+H1)),q.push(v1)),1;H1=0;var G=r1===""?".":r1+":";if(E(T))for(var p1=0;p1>>1,b1=P[o1];if(0>>1;o1o(A1,J))To(q,A1)?(P[o1]=q,P[T]=J,o1=T):(P[o1]=A1,P[h1]=J,o1=h1);else if(To(q,J))P[o1]=q,P[T]=J,o1=T;else break t}}return W}function o(P,W){var J=P.sortIndex-W.sortIndex;return J!==0?J:P.id-W.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var h=Date,m=h.now();t.unstable_now=function(){return h.now()-m}}var g=[],b=[],p=1,z=null,y=3,w=!1,A=!1,H=!1,M=!1,V=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function j(P){for(var W=a(b);W!==null;){if(W.callback===null)i(b);else if(W.startTime<=P)i(b),W.sortIndex=W.expirationTime,n(g,W);else break;W=a(b)}}function k(P){if(H=!1,j(P),!A)if(a(g)!==null)A=!0,E||(E=!0,U());else{var W=a(b);W!==null&&$(k,W.startTime-P)}}var E=!1,F=-1,N=5,B=-1;function O(){return M?!0:!(t.unstable_now()-BP&&O());){var o1=z.callback;if(typeof o1=="function"){z.callback=null,y=z.priorityLevel;var b1=o1(z.expirationTime<=P);if(P=t.unstable_now(),typeof b1=="function"){z.callback=b1,j(P),W=!0;break e}z===a(g)&&i(g),j(P)}else i(g);z=a(g)}if(z!==null)W=!0;else{var g1=a(b);g1!==null&&$(k,g1.startTime-P),W=!1}}break t}finally{z=null,y=J,w=!1}W=void 0}}finally{W?U():E=!1}}}var U;if(typeof S=="function")U=function(){S(D)};else if(typeof MessageChannel<"u"){var a1=new MessageChannel,n1=a1.port2;a1.port1.onmessage=D,U=function(){n1.postMessage(null)}}else U=function(){V(D,0)};function $(P,W){F=V(function(){P(t.unstable_now())},W)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(P){P.callback=null},t.unstable_forceFrameRate=function(P){0>P||125o1?(P.sortIndex=J,n(b,P),a(g)===null&&P===a(b)&&(H?(L(F),F=-1):H=!0,$(k,J-o1))):(P.sortIndex=b1,n(g,P),A||w||(A=!0,E||(E=!0,U()))),P},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(P){var W=y;return function(){var J=y;y=W;try{return P.apply(this,arguments)}finally{y=J}}}})(o9)),o9}var Ed;function jz(){return Ed||(Ed=1,s9.exports=Nz()),s9.exports}var u9={exports:{}},a4={};var Td;function Vz(){if(Td)return a4;Td=1;var t=Wr();function n(p){var z="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),u9.exports=Vz(),u9.exports}var Od;function Bz(){if(Od)return Te;Od=1;var t=jz(),n=Wr(),a=um();function i(e){var c="https://react.dev/errors/"+e;if(1F1||(e.current=K1[F1],K1[F1]=null,F1--)}function N1(e,c){F1++,K1[F1]=e.current,e.current=c}var w1=y1(null),E1=y1(null),I1=y1(null),x1=y1(null);function f1(e,c){switch(N1(I1,c),N1(E1,e),N1(w1,null),c.nodeType){case 9:case 11:e=(e=c.documentElement)&&(e=e.namespaceURI)?Ou(e):0;break;default:if(e=c.tagName,c=c.namespaceURI)c=Ou(c),e=_u(c,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}m1(w1),N1(w1,e)}function i1(){m1(w1),m1(E1),m1(I1)}function z1(e){var c=e.memoizedState;c!==null&&(rt._currentValue=c.memoizedState,N1(x1,e)),c=w1.current;var l=_u(c,e.type);c!==l&&(N1(E1,e),N1(w1,l))}function S1(e){E1.current===e&&(m1(w1),m1(E1)),x1.current===e&&(m1(x1),rt._currentValue=D1)}var B1,G1;function Z1(e){if(B1===void 0)try{throw Error()}catch(l){var c=l.stack.trim().match(/\n( *(at )?)/);B1=c&&c[1]||"",G1=-1)":-1f||_[s]!==Q[f]){var l1=` `+_[s].replace(" at new "," at ");return e.displayName&&l1.includes("")&&(l1=l1.replace("",e.displayName)),l1}while(1<=s&&0<=f);break}}}finally{e1=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Z1(l):""}function O1(e,c){switch(e.tag){case 26:case 27:case 5:return Z1(e.type);case 16:return Z1("Lazy");case 13:return e.child!==c&&c!==null?Z1("Suspense Fallback"):Z1("Suspense");case 19:return Z1("SuspenseList");case 0:case 15:return V1(e.type,!1);case 11:return V1(e.type.render,!1);case 1:return V1(e.type,!0);case 31:return Z1("Activity");case 30:return Z1("ViewTransition");default:return""}}function s1(e){try{var c="",l=null;do c+=O1(e,l),l=e,e=e.return;while(e);return c}catch(s){return` Error generating stack: `+s.message+` `+s.stack}}var L1=Object.prototype.hasOwnProperty,M1=t.unstable_scheduleCallback,g2=t.unstable_cancelCallback,G2=t.unstable_shouldYield,D4=t.unstable_requestPaint,E2=t.unstable_now,C4=t.unstable_getCurrentPriorityLevel,v4=t.unstable_ImmediatePriority,L8=t.unstable_UserBlockingPriority,U1=t.unstable_NormalPriority,M2=t.unstable_LowPriority,x2=t.unstable_IdlePriority,r2=t.log,b2=t.unstable_setDisableYieldValue,s4=null,I2=null;function S4(e){if(typeof r2=="function"&&b2(e),I2&&typeof I2.setStrictMode=="function")try{I2.setStrictMode(s4,e)}catch{}}var s2=Math.clz32?Math.clz32:Tg,T0=Math.log,Eg=Math.LN2;function Tg(e){return e>>>=0,e===0?32:31-(T0(e)/Eg|0)|0}var N8=256,j8=262144,V8=4194304;function D0(e){var c=e&42;if(c!==0)return c;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&-e;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 B8(e,c,l){var s=e.pendingLanes;if(s===0)return 0;var f=0,x=e.suspendedLanes,C=e.pingedLanes;e=e.warmLanes;var R=s&134217727;return R!==0?(s=R&~x,s!==0?f=D0(s):(C&=R,C!==0?f=D0(C):l||(l=R&~e,l!==0&&(f=D0(l))))):(R=s&~x,R!==0?f=D0(R):C!==0?f=D0(C):l||(l=s&~e,l!==0&&(f=D0(l)))),f===0?0:c!==0&&c!==f&&(c&x)===0&&(x=f&-f,l=c&-c,x>=l||x===32&&(l&4194048)!==0)?c:f}function It(e,c){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&c)===0}function ui(e,c){(c&8)!==0&&(c|=c&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=c;0l;l++)c.push(e);return c}function $t(e,c){e.pendingLanes|=c,c!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Og(e,c,l,s,f,x){var C=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var R=e.entanglements,_=e.expirationTimes,Q=e.hiddenUpdates;for(l=C&~l;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Un=!1;if(F3)try{var Kt={};Object.defineProperty(Kt,"passive",{get:function(){Un=!0}}),window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{Un=!1}var J3=null,Pn=null,D8=null;function Ri(){if(D8)return D8;var e,c=Pn,l=c.length,s,f="value"in J3?J3.value:J3.textContent,x=f.length;for(e=0;e=Wt),_i=" ",qi=!1;function Ui(e,c){switch(e){case"keyup":return yx.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pi(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var H6=!1;function Mx(e,c){switch(e){case"compositionend":return Pi(c);case"keypress":return c.which!==32?null:(qi=!0,_i);case"textInput":return e=c.data,e===_i&&qi?null:e;default:return null}}function Cx(e,c){if(H6)return e==="compositionend"||!Yn&&Ui(e,c)?(e=Ri(),D8=Pn=J3=null,H6=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Qi(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wi(e,c){var l=Qi(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=c&&s>=c)return{node:l,offset:c-e};e=s}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Qi(l)}}function Ji(e,c){return e&&c?e===c?!0:e&&e.nodeType===3?!1:c&&c.nodeType===3?Ji(e,c.parentNode):"contains"in e?e.contains(c):e.compareDocumentPosition?!!(e.compareDocumentPosition(c)&16):!1:!1}function ts(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var c=Qn(e.document);c instanceof e.HTMLIFrameElement;){try{var l=typeof c.contentWindow.location.href=="string"}catch{l=!1}if(l)e=c.contentWindow;else break;c=Qn(e.document)}return c}function Wn(e){var c=e&&e.nodeName&&e.nodeName.toLowerCase();return c&&(c==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||c==="textarea"||e.contentEditable==="true")}var Bx=F3&&"documentMode"in document&&11>=document.documentMode,L6=null,Jn=null,ne=null,tc=!1;function es(e,c,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;tc||L6==null||L6!==Qn(s)||(s=L6,"selectionStart"in s&&Wn(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}),ne&&ee(ne,s)||(ne=s,s=P5(Jn,"onSelect"),0>=C,f-=C,g3=1<<32-s2(c)+f|l<$1?(_2=q1,q1=null):_2=q1.sibling;var a2=Y(X,q1,t1[$1],u1);if(a2===null){q1===null&&(q1=_2);break}e&&q1&&a2.alternate===null&&c(X,q1),I=x(a2,I,$1),n2===null?R1=a2:n2.sibling=a2,n2=a2,q1=_2}if($1===t1.length)return l(X,q1),W1&&O3(X,$1),R1;if(q1===null){for(;$1$1?(_2=q1,q1=null):_2=q1.sibling;var C0=Y(X,q1,a2.value,u1);if(C0===null){q1===null&&(q1=_2);break}e&&q1&&C0.alternate===null&&c(X,q1),I=x(C0,I,$1),n2===null?R1=C0:n2.sibling=C0,n2=C0,q1=_2}if(a2.done)return l(X,q1),W1&&O3(X,$1),R1;if(q1===null){for(;!a2.done;$1++,a2=t1.next())a2=d1(X,a2.value,u1),a2!==null&&(I=x(a2,I,$1),n2===null?R1=a2:n2.sibling=a2,n2=a2);return W1&&O3(X,$1),R1}for(q1=s(q1);!a2.done;$1++,a2=t1.next())a2=c1(q1,X,$1,a2.value,u1),a2!==null&&(e&&(_2=a2.alternate,_2!==null&&q1.delete(_2.key===null?$1:_2.key)),I=x(a2,I,$1),n2===null?R1=a2:n2.sibling=a2,n2=a2);return e&&q1.forEach(function(Mz){return c(X,Mz)}),W1&&O3(X,$1),R1}function Q1(X,I,t1,u1){if(typeof t1=="object"&&t1!==null&&t1.type===D&&t1.key===null&&t1.props.ref===void 0&&(t1=t1.props.children),typeof t1=="object"&&t1!==null){switch(t1.$$typeof){case B:t:{for(var R1=t1.key;I!==null;){if(I.key===R1){if(R1=t1.type,R1===D){if(I.tag===7){l(X,I.sibling),u1=f(I,t1.props.children),r0(u1,t1),u1.return=X,X=u1;break t}}else if(I.elementType===R1||typeof R1=="object"&&R1!==null&&R1.$$typeof===b1&&Q0(R1)===I.type){l(X,I.sibling),u1=f(I,t1.props),r0(u1,t1),u1.return=X,X=u1;break t}l(X,I);break}else c(X,I);I=I.sibling}t1.type===D?(u1=I0(t1.props.children,X.mode,u1,t1.key),r0(u1,t1),u1.return=X,X=u1):(u1=Y8(t1.type,t1.key,t1.props,null,X.mode,u1),r0(u1,t1),u1.return=X,X=u1)}return C(X);case O:t:{for(R1=t1.key;I!==null;){if(I.key===R1)if(I.tag===4&&I.stateNode.containerInfo===t1.containerInfo&&I.stateNode.implementation===t1.implementation){l(X,I.sibling),u1=f(I,t1.children||[]),u1.return=X,X=u1;break t}else{l(X,I);break}else c(X,I);I=I.sibling}u1=ic(t1,X.mode,u1),u1.return=X,X=u1}return C(X);case b1:return t1=Q0(t1),Q1(X,I,t1,u1)}if(H1(t1))return j1(X,I,t1,u1);if(r1(t1)){if(R1=r1(t1),typeof R1!="function")throw Error(i(150));return t1=R1.call(t1),T1(X,I,t1,u1)}if(typeof t1.then=="function")return Q1(X,I,a5(t1),u1);if(t1.$$typeof===$)return Q1(X,I,t5(X,t1),u1);r5(X,t1)}return typeof t1=="string"&&t1!==""||typeof t1=="number"||typeof t1=="bigint"?(t1=""+t1,I!==null&&I.tag===6?(l(X,I.sibling),u1=f(I,t1),u1.return=X,X=u1):(l(X,I),u1=lc(t1,X.mode,u1),u1.return=X,X=u1),C(X)):l(X,I)}return function(X,I,t1,u1){try{se=0;var R1=Q1(X,I,t1,u1);return T6=null,R1}catch(q1){if(q1===E6||q1===n5)throw q1;var n2=g4(29,q1,null,X.mode);return n2.lanes=u1,n2.return=X,n2}}}var J0=Ss(!0),As=Ss(!1),l0=!1;function gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(e,c){e=e.updateQueue,c.updateQueue===e&&(c.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function i0(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function s0(e,c,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(o2&2)!==0){var f=s.pending;return f===null?c.next=c:(c.next=f.next,f.next=c),s.pending=c,c=G8(e),os(e,null,l),c}return Z8(e,s,c,l),G8(e)}function oe(e,c,l){if(c=c.updateQueue,c!==null&&(c=c.shared,(l&4194048)!==0)){var s=c.lanes;s&=e.pendingLanes,l|=s,c.lanes=l,fi(e,l)}}function bc(e,c){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,x=null;if(l=l.firstBaseUpdate,l!==null){do{var C={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};x===null?f=x=C:x=x.next=C,l=l.next}while(l!==null);x===null?f=x=c:x=x.next=c}else f=x=c;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:x,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=c:e.next=c,l.lastBaseUpdate=c}var zc=!1;function ue(){if(zc){var e=F6;if(e!==null)throw e}}function de(e,c,l,s){zc=!1;var f=e.updateQueue;l0=!1;var x=f.firstBaseUpdate,C=f.lastBaseUpdate,R=f.shared.pending;if(R!==null){f.shared.pending=null;var _=R,Q=_.next;_.next=null,C===null?x=Q:C.next=Q,C=_;var l1=e.alternate;l1!==null&&(l1=l1.updateQueue,R=l1.lastBaseUpdate,R!==C&&(R===null?l1.firstBaseUpdate=Q:R.next=Q,l1.lastBaseUpdate=_))}if(x!==null){var d1=f.baseState;C=0,l1=Q=_=null,R=x;do{var Y=R.lane&-536870913,c1=Y!==R.lane;if(c1?(e2&Y)===Y:(s&Y)===Y){Y!==0&&Y===K0&&(zc=!0),l1!==null&&(l1=l1.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});t:{var j1=e,T1=R;Y=c;var Q1=l;switch(T1.tag){case 1:if(j1=T1.payload,typeof j1=="function"){d1=j1.call(Q1,d1,Y);break t}d1=j1;break t;case 3:j1.flags=j1.flags&-65537|128;case 0:if(j1=T1.payload,Y=typeof j1=="function"?j1.call(Q1,d1,Y):j1,Y==null)break t;d1=F({},d1,Y);break t;case 2:l0=!0}}Y=R.callback,Y!==null&&(e.flags|=64,c1&&(e.flags|=8192),c1=f.callbacks,c1===null?f.callbacks=[Y]:c1.push(Y))}else c1={lane:Y,tag:R.tag,payload:R.payload,callback:R.callback,next:null},l1===null?(Q=l1=c1,_=d1):l1=l1.next=c1,C|=Y;if(R=R.next,R===null){if(R=f.shared.pending,R===null)break;c1=R,R=c1.next,c1.next=null,f.lastBaseUpdate=c1,f.shared.pending=null}}while(!0);l1===null&&(_=d1),f.baseState=_,f.firstBaseUpdate=Q,f.lastBaseUpdate=l1,x===null&&(f.shared.lanes=0),v0|=C,e.lanes=C,e.memoizedState=d1}}function Hs(e,c){if(typeof e!="function")throw Error(i(191,e));e.call(c)}function Ls(e,c){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ex?x:8;var C=G.T,R={};R.types=C!==null?C.types:null,G.T=R,_c(e,!1,c,l);try{var _=f(),Q=G.S;if(Q!==null&&Q(R,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var l1=Px(_,s);ve(e,c,l1,B4(e))}else ve(e,c,s,B4(e))}catch(d1){ve(e,c,{then:function(){},status:"rejected",reason:d1},B4())}finally{p1.p=x,C!==null&&R.types!==null&&(C.types=R.types),G.T=C}}function Kx(){}function Dc(e,c,l,s){if(e.tag!==5)throw Error(i(476));var f=lo(e).queue;ro(e,f,c,D1,l===null?Kx:function(){return io(e),l(s)})}function lo(e){var c=e.memoizedState;if(c!==null)return c;c={memoizedState:D1,baseState:D1,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:P3,lastRenderedState:D1},next:null};var l={};return c.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:P3,lastRenderedState:l},next:null},e.memoizedState=c,e=e.alternate,e!==null&&(e.memoizedState=c),c}function io(e){var c=lo(e);c.next===null&&(c=e.alternate.memoizedState),ve(e,c.next.queue,{},B4())}function Oc(){return J2(rt)}function so(){return k2().memoizedState}function oo(){return k2().memoizedState}function Xx(e){for(var c=e.return;c!==null;){switch(c.tag){case 24:case 3:var l=B4();e=i0(l);var s=s0(c,e,l);s!==null&&(y4(s,c,l),oe(s,c,l)),c={cache:fc()},e.payload=c;return}c=c.return}}function Qx(e,c,l){var s=B4();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},v5(e)?ho(c,l):(l=ac(e,c,l,s),l!==null&&(y4(l,e,s),fo(l,c,s)))}function uo(e,c,l){var s=B4();ve(e,c,l,s)}function ve(e,c,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(v5(e))ho(c,f);else{var x=e.alternate;if(e.lanes===0&&(x===null||x.lanes===0)&&(x=c.lastRenderedReducer,x!==null))try{var C=c.lastRenderedState,R=x(C,l);if(f.hasEagerState=!0,f.eagerState=R,H4(R,C))return Z8(e,c,f,0),p2===null&&$8(),!1}catch{}if(l=ac(e,c,f,s),l!==null)return y4(l,e,s),fo(l,c,s),!0}return!1}function _c(e,c,l,s){if(s={lane:2,revertLane:ja(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},v5(e)){if(c)throw Error(i(479))}else c=ac(e,l,s,2),c!==null&&y4(c,e,2)}function v5(e){var c=e.alternate;return e===X1||c!==null&&c===X1}function ho(e,c){D6=s5=!0;var l=e.pending;l===null?c.next=c:(c.next=l.next,l.next=c),e.pending=c}function fo(e,c,l){if((l&4194048)!==0){var s=c.lanes;s&=e.pendingLanes,l|=s,c.lanes=l,fi(e,l)}}var p5={readContext:J2,use:d5,useCallback:j2,useContext:j2,useEffect:j2,useImperativeHandle:j2,useLayoutEffect:j2,useInsertionEffect:j2,useMemo:j2,useReducer:j2,useRef:j2,useState:j2,useDebugValue:j2,useDeferredValue:j2,useTransition:j2,useSyncExternalStore:j2,useId:j2,useHostTransitionStatus:j2,useFormState:j2,useActionState:j2,useOptimistic:j2,useMemoCache:j2,useCacheRefresh:j2,useEffectEvent:j2},mo={readContext:J2,use:d5,useCallback:function(e,c){return u4().memoizedState=[e,c===void 0?null:c],e},useContext:J2,useEffect:Xs,useImperativeHandle:function(e,c,l){l=l!=null?l.concat([e]):null,f5(4194308,4,to.bind(null,c,e),l)},useLayoutEffect:function(e,c){return f5(4194308,4,e,c)},useInsertionEffect:function(e,c){f5(4,2,e,c)},useMemo:function(e,c){var l=u4();c=c===void 0?null:c;var s=e();if(t6){S4(!0);try{e()}finally{S4(!1)}}return l.memoizedState=[s,c],s},useReducer:function(e,c,l){var s=u4();if(l!==void 0){var f=l(c);if(t6){S4(!0);try{l(c)}finally{S4(!1)}}}else f=c;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=Qx.bind(null,X1,e),[s.memoizedState,e]},useRef:function(e){var c=u4();return e={current:e},c.memoizedState=e},useState:function(e){e=kc(e);var c=e.queue,l=uo.bind(null,X1,c);return c.dispatch=l,[e.memoizedState,l]},useDebugValue:Ec,useDeferredValue:function(e,c){var l=u4();return Tc(l,e,c)},useTransition:function(){var e=kc(!1);return e=ro.bind(null,X1,e.queue,!0,!1),u4().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,c,l){var s=X1,f=u4();if(W1){if(l===void 0)throw Error(i(407));l=l()}else{if(l=c(),p2===null)throw Error(i(349));(e2&127)!==0||Rs(s,c,l)}f.memoizedState=l;var x={value:l,getSnapshot:c};return f.queue=x,Xs(Es.bind(null,s,x,e),[e]),s.flags|=2048,_6(9,{destroy:void 0},Fs.bind(null,s,x,l,c),null),l},useId:function(){var e=u4(),c=p2.identifierPrefix;if(W1){var l=x3,s=g3;l=(s&~(1<<32-s2(s)-1)).toString(32)+l,c="_"+c+"R_"+l,l=o5++,0<\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof s.is=="string"?C.createElement("select",{is:s.is}):C.createElement("select"),s.multiple?x.multiple=!0:s.size&&(x.size=s.size);break;default:x=typeof s.is=="string"?C.createElement(f,{is:s.is}):C.createElement(f)}}x[W2]=c,x[p4]=s;t:for(C=c.child;C!==null;){if(C.tag===5||C.tag===6)x.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===c)break t;for(;C.sibling===null;){if(C.return===null||C.return===c)break t;C=C.return}C.sibling.return=C.return,C=C.sibling}c.stateNode=x;t:switch(c4(x,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&$3(c)}}return y2(c),c.subtreeFlags&=-33554433,Jc(c,c.type,e===null?null:e.memoizedProps,c.pendingProps,l),null;case 6:if(e&&c.stateNode!=null)e.memoizedProps!==s&&$3(c);else{if(typeof s!="string"&&c.stateNode===null)throw Error(i(166));if(e=I1.current,R6(c)){if(e=c.stateNode,l=c.memoizedProps,s=null,f=K2,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[W2]=c,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Tu(e.nodeValue,l)),e||c0(c,!0)}else e=Le(e).createTextNode(s),e[W2]=c,c.stateNode=e}return y2(c),null;case 31:if(l=c.memoizedState,e===null||e.memoizedState!==null){if(s=R6(c),l!==null){if(e===null){if(!s)throw Error(i(318));if(e=c.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[W2]=c}else $0(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;y2(c),e=!1}else l=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return c.flags&256?(L4(c),c):(L4(c),null);if((c.flags&128)!==0)throw Error(i(558))}return y2(c),null;case 13:if(s=c.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=R6(c),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(i(318));if(f=c.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[W2]=c}else $0(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;y2(c),f=!1}else f=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return c.flags&256?(L4(c),c):(L4(c),null)}return L4(c),(c.flags&128)!==0?(c.lanes=l,c):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=c.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),x=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(x=s.memoizedState.cachePool.pool),x!==f&&(s.flags|=2048)),l!==e&&l&&(c.child.flags|=8192),w5(c,c.updateQueue),y2(c),null);case 4:return i1(),e===null&&Ra(c.stateNode.containerInfo),c.flags|=67108864,y2(c),null;case 10:return q3(c.type),y2(c),null;case 19:if(Cc(c),s=c.memoizedState,s===null)return y2(c),null;if(f=(c.flags&128)!==0,x=s.rendering,x===null)if(f)ge(s,!1);else{if(V2!==0||e!==null&&(e.flags&128)!==0)for(e=c.child;e!==null;){if(x=i5(e),x!==null){for(c.flags|=128,ge(s,!1),e=x.updateQueue,c.updateQueue=e,w5(c,e),c.subtreeFlags=0,e=l,l=c.child;l!==null;)us(l,e),l=l.sibling;return he(c,e4.current&1|2),W1&&O3(c,s.treeForkCount),c.child}e=e.sibling}s.tail!==null&&E2()>R5&&(c.flags|=128,f=!0,ge(s,!1),c.lanes=4194304)}else{if(!f)if(e=i5(x),e!==null){if(c.flags|=128,f=!0,e=e.updateQueue,c.updateQueue=e,w5(c,e),ge(s,!0),s.tail===null&&s.tailMode!=="collapsed"&&s.tailMode!=="visible"&&!x.alternate&&!W1)return y2(c),null}else 2*E2()-s.renderingStartTime>R5&&l!==536870912&&(c.flags|=128,f=!0,ge(s,!1),c.lanes=4194304);s.isBackwards?(x.sibling=c.child,c.child=x):(e=s.last,e!==null?e.sibling=x:c.child=x,s.last=x)}if(s.tail!==null){e=s.tail;t:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break t}l=l.sibling}l=!0}return s.rendering=e,s.tail=e.sibling,s.renderingStartTime=E2(),e.sibling=null,x=e4.current,x=f?x&1|2:x&1,s.tailMode==="visible"||s.tailMode==="collapsed"||!l||W1?he(c,x):(l=x,N1(t4,c),N1(e4,l),r4===null&&(r4=c)),W1&&O3(c,s.treeForkCount),e}return y2(c),null;case 22:case 23:return L4(c),wc(),s=c.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(c.flags|=8192):s&&(c.flags|=8192),s?(l&536870912)!==0&&(c.flags&128)===0&&(y2(c),c.subtreeFlags&6&&(c.flags|=8192)):y2(c),l=c.updateQueue,l!==null&&w5(c,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(s=c.memoizedState.cachePool.pool),s!==l&&(c.flags|=2048),e!==null&&m1(X0),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),c.memoizedState.cache!==l&&(c.flags|=2048),q3(T2),y2(c),null;case 25:return null;case 30:return c.flags|=33554432,y2(c),null}throw Error(i(156,c.tag))}function ab(e,c){switch(sc(c),c.tag){case 1:return e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 3:return q3(T2),i1(),e=c.flags,(e&65536)!==0&&(e&128)===0?(c.flags=e&-65537|128,c):null;case 26:case 27:case 5:return S1(c),null;case 31:if(c.memoizedState!==null){if(L4(c),c.alternate===null)throw Error(i(340));$0()}return e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 13:if(L4(c),e=c.memoizedState,e!==null&&e.dehydrated!==null){if(c.alternate===null)throw Error(i(340));$0()}return e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 19:return Cc(c),e=c.flags,e&65536?(c.flags=e&-65537|128,e=c.memoizedState,e!==null&&(e.rendering=null,e.tail=null),c.flags|=4,c):null;case 4:return i1(),null;case 10:return q3(c.type),null;case 22:case 23:return L4(c),wc(),e!==null&&m1(X0),e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 24:return q3(T2),null;case 25:return null;default:return null}}function Oo(e,c){switch(sc(c),c.tag){case 3:q3(T2),i1();break;case 26:case 27:case 5:S1(c);break;case 4:i1();break;case 31:c.memoizedState!==null&&L4(c);break;case 13:L4(c);break;case 19:Cc(c);break;case 10:q3(c.type);break;case 22:case 23:L4(c),wc(),e!==null&&m1(X0);break;case 24:q3(T2)}}function xe(e,c){try{var l=c.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&e)===e){s=void 0;var x=l.create,C=l.inst;s=x(),C.destroy=s}l=l.next}while(l!==f)}}catch(R){h2(c,c.return,R)}}function h0(e,c,l){try{var s=c.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var x=f.next;s=x;do{if((s.tag&e)===e){var C=s.inst,R=C.destroy;if(R!==void 0){C.destroy=void 0,f=c;var _=l,Q=R;try{Q()}catch(l1){h2(f,_,l1)}}}s=s.next}while(s!==x)}}catch(l1){h2(c,c.return,l1)}}function _o(e){var c=e.updateQueue;if(c!==null){var l=e.stateNode;try{Ls(c,l)}catch(s){h2(e,e.return,s)}}}function qo(e,c,l){l.props=e6(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){h2(e,c,s)}}function b3(e,c){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:var f=e.stateNode,x=E3(e.memoizedProps,f);(f.ref===null||f.ref.name!==x)&&(f.ref=Yu(x)),s=f.ref;break;case 7:if(e.stateNode===null){var C=new k4(e);z(e.child,!1,Yb,C,void 0,void 0),e.stateNode=C}s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(R){h2(e,c,R)}}function n4(e,c){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){h2(e,c,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){h2(e,c,f)}else l.current=null}function M5(e,c){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&c!==null)for(var l=0;l title"))),c4(s,c,l),s[W2]=e,Y2(s),c=s;break t;case"link":if(x=dd("link","href",f).get(c+(l.href||""))){for(C=0;CQ1&&(C=Q1,Q1=T1,T1=C);var X=Wi(R,T1),I=Wi(R,Q1);if(X&&I&&(c1.rangeCount!==1||c1.anchorNode!==X.node||c1.anchorOffset!==X.offset||c1.focusNode!==I.node||c1.focusOffset!==I.offset)){var t1=d1.createRange();t1.setStart(X.node,X.offset),c1.removeAllRanges(),T1>Q1?(c1.addRange(t1),c1.extend(I.node,I.offset)):(t1.setEnd(I.node,I.offset),c1.addRange(t1))}}}}for(d1=[],c1=R;c1=c1.parentNode;)c1.nodeType===1&&d1.push({element:c1,left:c1.scrollLeft,top:c1.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;Rl?32:l,G.T=null,l=za,za=null;var x=r3,C=S3;if(H2=0,r6=r3=null,S3=0,(o2&6)!==0)throw Error(i(331));var R=o2;if(o2|=4,uu(x.current),iu(x,x.current,C,l),o2=R,Se(0,!1),I2&&typeof I2.onPostCommitFiberRoot=="function")try{I2.onPostCommitFiberRoot(s4,x)}catch{}return!0}finally{p1.p=f,G.T=s,Su(e,c)}}function Au(e,c,l){c=q4(l,c),c=Pc(e.stateNode,c,2),e=s0(e,c,2),e!==null&&($t(e,2),A3(e))}function h2(e,c,l){if(e.tag===3)Au(e,e,l);else for(;c!==null;){if(c.tag===3){Au(c,e,l);break}else if(c.tag===1){var s=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(p0===null||!p0.has(s))){e=q4(l,e),l=wo(2),s=s0(c,l,2),s!==null&&(Mo(l,s,c,e),$t(s,2),A3(s));break}}c=c.return}}function Ha(e,c,l){var s=e.pingCache;if(s===null){s=e.pingCache=new sb;var f=new Set;s.set(c,f)}else f=s.get(c),f===void 0&&(f=new Set,s.set(c,f));f.has(l)||(ga=!0,f.add(l),e=pb.bind(null,e,c,l),c.then(e,e))}function pb(e,c,l){var s=e.pingCache;s!==null&&s.delete(c),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,p2===e&&(e2&l)===l&&((V2===4||V2===3&&(e2&62914560)===e2&&300>E2()-k5)&&(o2&2)===0?Q6(e,0):B5|=l,Z6===e2&&(Z6=0)),A3(e)}function Hu(e,c){c===0&&(c=di()),e=P0(e,c),e!==null&&($t(e,c),A3(e))}function gb(e){var c=e.memoizedState,l=0;c!==null&&(l=c.retryLane),Hu(e,l)}function xb(e,c){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(c),Hu(e,l)}function bb(e,c){return M1(e,c)}var J6=null,tt=null,La=!1,q5=!1,Na=!1,x0=0;function A3(e){e!==tt&&e.next===null&&(tt===null?J6=tt=e:tt=tt.next=e),q5=!0,La||(La=!0,yb())}function Se(e,c){if(!Na&&q5){Na=!0;do for(var l=!1,s=J6;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var x=0;else{var C=s.suspendedLanes,R=s.pingedLanes;x=(1<<31-s2(42|e)+1)-1,x&=f&~(C&~R),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(l=!0,Vu(s,x))}else x=e2,x=B8(s,s===p2?x:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(x&3)===0||It(s,x)||(l=!0,Vu(s,x));s=s.next}while(l);Na=!1}}function zb(){Lu()}function Lu(){q5=La=!1;var e=0;x0!==0&&Bb()&&(e=x0);for(var c=E2(),l=null,s=J6;s!==null;){var f=s.next,x=Nu(s,c);x===0?(s.next=null,l===null?J6=f:l.next=f,f===null&&(tt=l)):(l=s,(e!==0||(x&3)!==0)&&(q5=!0)),s=f}H2!==0&&H2!==5||Se(e),x0!==0&&(x0=0)}function Nu(e,c){for(var l=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,x=e.pendingLanes&-62914561;0R)break;var l1=_.transferSize,d1=_.initiatorType;l1&&Du(d1)&&(_=_.responseEnd,C+=l1*(_Z5){T1.length=j1;break}t1=new Promise(Db.bind(t1)),T1.push(t1)}}}if(0"u"?null:document;function id(e,c,l){var s=nt;if(s&&typeof c=="string"&&c){var f=O4(c);f='link[rel="'+e+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),ld.has(f)||(ld.add(f),e={rel:e,crossOrigin:l,href:c},s.querySelector(f)===null&&(c=s.createElement("link"),c4(c,"link",e),Y2(c),s.head.appendChild(c)))}}function cz(e){G3.D(e),id("dns-prefetch",e,null)}function az(e,c){G3.C(e,c),id("preconnect",e,c)}function rz(e,c,l){G3.L(e,c,l);var s=nt;if(s&&e&&c){var f='link[rel="preload"][as="'+O4(c)+'"]';c==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+O4(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+O4(l.imageSizes)+'"]')):f+='[href="'+O4(e)+'"]';var x=f;switch(c){case"style":x=ct(e);break;case"script":x=at(e)}if(!(G4.has(x)||(e=F({rel:"preload",href:c==="image"&&l&&l.imageSrcSet?void 0:e,as:c},l),G4.set(x,e),s.querySelector(f)!==null||c==="style"&&s.querySelector(je(x))||c==="script"&&s.querySelector(Ve(x))))){var C=s.createElement("link");c4(C,"link",e),c==="style"&&(C[k8]=!0,C.onload=C.onerror=function(){bi(C)}),Y2(C),s.head.appendChild(C)}}}function lz(e,c){G3.m(e,c);var l=nt;if(l&&e){var s=c&&typeof c.as=="string"?c.as:"script",f='link[rel="modulepreload"][as="'+O4(s)+'"][href="'+O4(e)+'"]',x=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=at(e)}if(!G4.has(x)&&(e=F({rel:"modulepreload",href:e},c),G4.set(x,e),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ve(x)))return}s=l.createElement("link"),c4(s,"link",e),Y2(s),l.head.appendChild(s)}}}function iz(e,c,l){G3.S(e,c,l);var s=nt;if(s&&e){var f=y6(s).hoistableStyles,x=ct(e);c=c||"default";var C=f.get(x);if(!C){var R={loading:0,preload:null};if(C=s.querySelector(je(x)))R.loading=5;else{e=F({rel:"stylesheet",href:e,"data-precedence":c},l),(l=G4.get(x))&&Xa(e,l);var _=C=s.createElement("link");Y2(_),c4(_,"link",e),_._p=new Promise(function(Q,l1){_.onload=Q,_.onerror=l1}),_.addEventListener("load",function(){R.loading|=1}),_.addEventListener("error",function(){R.loading|=2}),R.loading|=4,I5(C,c,s)}C={type:"stylesheet",instance:C,count:1,state:R},f.set(x,C)}}}function sz(e,c){G3.X(e,c);var l=nt;if(l&&e){var s=y6(l).hoistableScripts,f=at(e),x=s.get(f);x||(x=l.querySelector(Ve(f)),x||(e=F({src:e,async:!0},c),(c=G4.get(f))&&Qa(e,c),x=l.createElement("script"),Y2(x),c4(x,"link",e),l.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},s.set(f,x))}}function oz(e,c){G3.M(e,c);var l=nt;if(l&&e){var s=y6(l).hoistableScripts,f=at(e),x=s.get(f);x||(x=l.querySelector(Ve(f)),x||(e=F({src:e,async:!0,type:"module"},c),(c=G4.get(f))&&Qa(e,c),x=l.createElement("script"),Y2(x),c4(x,"link",e),l.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},s.set(f,x))}}function sd(e,c,l,s){var f=(f=I1.current)?Ne(f):null;if(!f)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=ct(l.href),c=y6(f).hoistableStyles,s=c.get(l),s||(s={type:"style",instance:null,count:0,state:null},c.set(l,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ct(l.href);var x=y6(f).hoistableStyles,C=x.get(e);if(C||(f=f.ownerDocument||f,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(e,C),(x=f.querySelector(je(e)))?x._p||(C.instance=x,C.state.loading=5):(x=G4.get(e),x||(x={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},G4.set(e,x)),uz(f,e,x,C.state))),c&&s===null)throw Error(i(528,""));return C}if(c&&s!==null)throw Error(i(529,""));return null;case"script":return c=l.async,l=l.src,typeof l=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(l=at(l),c=y6(f).hoistableScripts,s=c.get(l),s||(s={type:"script",instance:null,count:0,state:null},c.set(l,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ct(e){return'href="'+O4(e)+'"'}function je(e){return'link[rel="stylesheet"]['+e+"]"}function od(e){return F({},e,{"data-precedence":e.precedence,precedence:null})}function uz(e,c,l,s){if(c=e.querySelector('link[rel="preload"][as="style"]['+c+"]")){if(c[k8]!==!0){s.loading=1;return}}else c=e.createElement("link"),c[k8]=!0,c.onload=c.onerror=bi.bind(null,c),c4(c,"link",l),Y2(c),e.head.appendChild(c);s.preload=c,c.addEventListener("load",function(){return s.loading|=1}),c.addEventListener("error",function(){return s.loading|=2})}function at(e){return'[src="'+O4(e)+'"]'}function Ve(e){return"script[async]"+e}function ud(e,c,l){if(c.count++,c.instance===null)switch(c.type){case"style":var s=e.querySelector('style[data-href~="'+O4(l.href)+'"]');if(s)return c.instance=s,Y2(s),s;var f=F({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Y2(s),c4(s,"style",f),I5(s,l.precedence,e),c.instance=s;case"stylesheet":f=ct(l.href);var x=e.querySelector(je(f));if(x)return c.state.loading|=4,c.instance=x,Y2(x),x;s=od(l),(f=G4.get(f))&&Xa(s,f),x=(e.ownerDocument||e).createElement("link"),Y2(x);var C=x;return C._p=new Promise(function(R,_){C.onload=R,C.onerror=_}),c4(x,"link",s),c.state.loading|=4,I5(x,l.precedence,e),c.instance=x;case"script":return x=at(l.src),(f=e.querySelector(Ve(x)))?(c.instance=f,Y2(f),f):(s=l,(f=G4.get(x))&&(s=F({},l),Qa(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),Y2(f),c4(f,"link",s),e.head.appendChild(f),c.instance=f);case"void":return null;default:throw Error(i(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(s=c.instance,c.state.loading|=4,I5(s,l.precedence,e));return c.instance}function I5(e,c,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,x=f,C=0;C title"):null)}function dz(e,c,l){if(l===1||c.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;return c.rel==="stylesheet"?(e=c.disabled,typeof c.precedence=="string"&&e==null):!0;case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function hd(e,c){return e==="img"&&c.src!=null&&c.src!==""&&c.onLoad==null&&c.loading!=="lazy"}function fd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function md(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function vd(e,c){typeof c.decode=="function"&&(e.imgCount++,c.complete||(e.imgBytes+=md(c),e.suspenseyImages.push(c)),e=mz.bind(e),c.decode().then(e,e))}function hz(e,c,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=ct(s.href),x=c.querySelector(je(f));if(x){c=x._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(e.count++,e=Be.bind(e),c.then(e,e)),l.state.loading|=4,l.instance=x,Y2(x);return}x=c.ownerDocument||c,s=od(s),(f=G4.get(f))&&Xa(s,f),x=x.createElement("link"),Y2(x);var C=x;C._p=new Promise(function(R,_){C.onload=R,C.onerror=_}),c4(x,"link",s),l.instance=x}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,c),(c=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Be.bind(e),c.addEventListener("load",l),c.addEventListener("error",l))}}var Z5=0;function fz(e,c){return e.stylesheets&&e.count===0&&Y5(e,e.stylesheets),0Z5?50:800)+c);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function pd(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Y5(e,e.stylesheets);else if(e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}}}function Be(){this.count--,pd(this)}function mz(){this.imgCount--,pd(this)}var G5=null;function Y5(e,c){e.stylesheets=null,e.unsuspend!==null&&(e.count++,G5=new Map,c.forEach(vz,e),G5=null,Be.call(e))}function vz(e,c){if(!(c.state.loading&4)){var l=G5.get(e);if(l)var s=l.get(null);else{l=new Map,G5.set(e,l);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),i9.exports=Bz(),i9.exports}var Rz=kz();var Jr=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,dm=/^[\\/]{2}/;function Fz(t,n){return n+t.replace(/\\/g,"/")}var qd="popstate";function Ud(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function Ez(t={}){function n(i,o){let u=o.state?.masked,{pathname:h,search:m,hash:g}=u||i.location;return sr("",{pathname:h,search:m,hash:g},o.state&&o.state.usr||null,o.state&&o.state.key||"default",u?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function a(i,o){return typeof o=="string"?o:f6(o)}return Dz(n,a,null,t)}function A2(t,n){if(t===!1||t===null||typeof t>"u")throw new Error(n)}function J4(t,n){if(!t){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Tz(){return Math.random().toString(36).substring(2,10)}function Pd(t,n){return{usr:t.state,key:t.key,idx:n,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function sr(t,n,a=null,i,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof n=="string"?Bt(n):n,state:a,key:n&&n.key||i||Tz(),mask:o}}function f6({pathname:t="/",search:n="",hash:a=""}){return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function Bt(t){let n={};if(t){let a=t.indexOf("#");a>=0&&(n.hash=t.substring(a),t=t.substring(0,a));let i=t.indexOf("?");i>=0&&(n.search=t.substring(i),t=t.substring(0,i)),t&&(n.pathname=t)}return n}function Dz(t,n,a,i={}){let{window:o=document.defaultView,v5Compat:u=!1}=i,h=o.history,m="POP",g=null,b=p();b==null&&(b=0,h.replaceState({...h.state,idx:b},""));function p(){return(h.state||{idx:null}).idx}function z(){m="POP";let M=p(),V=M==null?null:M-b;b=M,g&&g({action:m,location:H.location,delta:V})}function y(M,V){m="PUSH";let L=Ud(M)?M:sr(H.location,M,V);b=p()+1;let S=Pd(L,b),j=H.createHref(L.mask||L);try{h.pushState(S,"",j)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(j)}u&&g&&g({action:m,location:H.location,delta:1})}function w(M,V){m="REPLACE";let L=Ud(M)?M:sr(H.location,M,V);b=p();let S=Pd(L,b),j=H.createHref(L.mask||L);h.replaceState(S,"",j),u&&g&&g({action:m,location:H.location,delta:0})}function A(M){return Oz(o,M)}let H={get action(){return m},get location(){return t(o,h)},listen(M){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(qd,z),g=M,()=>{o.removeEventListener(qd,z),g=null}},createHref(M){return n(o,M)},createURL:A,encodeLocation(M){let V=A(M);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:y,replace:w,go(M){return h.go(M)}};return H}function Oz(t,n,a=!1){let i="http://localhost";t&&(i=t.location.origin!=="null"?t.location.origin:t.location.href),A2(i,"No window.location.(origin|href) available to create URL");let o=typeof n=="string"?n:f6(n);return o=o.replace(/ $/,"%20"),!a&&dm.test(o)&&(o=i+o),new URL(o,i)}function hm(t,n,a="/"){return _z(t,n,a,!1)}function _z(t,n,a,i,o){let u=typeof n=="string"?Bt(n):n,h=X3(u.pathname||"/",a);if(h==null)return null;let m=qz(t),g=null,b=Wz(h);for(let p=0;g==null&&p{let p={relativePath:b===void 0?h.path||"":b,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(i)&&g)return;A2(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length)}let z=d3([i,p.relativePath]),y=a.concat(p);h.children&&h.children.length>0&&(A2(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${z}".`),fm(h.children,n,y,z,g)),!(h.path==null&&!h.index)&&n.push({path:z,score:Kz(z,h.index),routesMeta:y.map((w,A)=>{let[H,M]=pm(w.relativePath,w.caseSensitive,A===y.length-1);return{...w,matcher:H,compiledParams:M}})})};return t.forEach((h,m)=>{if(h.path===""||!h.path?.includes("?"))u(h,m);else for(let g of mm(h.path))u(h,m,!0,g)}),n}function mm(t){let n=t.split("/");if(n.length===0)return[];let[a,...i]=n,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(i.length===0)return o?[u,""]:[u];let h=mm(i.join("/")),m=[];return m.push(...h.map(g=>g===""?u:[u,g].join("/"))),o&&m.push(...h),m.map(g=>t.startsWith("/")&&g===""?"/":g)}function Uz(t){t.sort((n,a)=>n.score!==a.score?a.score-n.score:Xz(n.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var Pz=/^:[\w-]+$/,Iz=3,$z=2,Zz=1,Gz=10,Yz=-2,Id=t=>t==="*";function Kz(t,n){let a=t.split("/"),i=a.length;return a.some(Id)&&(i+=Yz),n&&(i+=$z),a.filter(o=>!Id(o)).reduce((o,u)=>o+(Pz.test(u)?Iz:u===""?Zz:Gz),i)}function Xz(t,n){return t.length===n.length&&t.slice(0,-1).every((i,o)=>i===n[o])?t[t.length-1]-n[n.length-1]:0}function Qz(t,n,a=!1){let{routesMeta:i}=t,o={},u="/",h=[];for(let m=0;m{if(p==="*"){let A=m[y]||"";h=Ht(u.slice(0,u.length-A.length),1)}const w=m[y];return z&&!w?b[p]=void 0:b[p]=(w||"").replace(/%2F/g,"/"),b},{}),pathname:u,pathnameBase:h,pattern:t}}function pm(t,n=!1,a=!0){J4(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,g,b,p)=>{if(i.push({paramName:m,isOptional:g!=null}),g){let z=p.charAt(b+h.length);return z&&z!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(i.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),i]}function Wz(t){try{return t.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return J4(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),t}}function X3(t,n){if(n==="/")return t;if(!t.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,i=t.charAt(a);return i&&i!=="/"?null:t.slice(a)||"/"}function Jz(t,n="/"){let{pathname:a,search:i="",hash:o=""}=typeof t=="string"?Bt(t):t,u;return a?(a=gm(a),a.startsWith("/")||a.startsWith("\\")?u=$d(a.substring(1),"/"):u=$d(a,n)):u=n,{pathname:u,search:ny(i),hash:cy(o)}}function $d(t,n){let a=Ht(n).split("/");return t.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function d9(t,n,a,i){return`Cannot include a '${t}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function ty(t){return t.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function tl(t){let n=ty(t);return n.map((a,i)=>i===n.length-1?a.pathname:a.pathnameBase)}function on(t,n,a,i=!1){let o;typeof t=="string"?o=Bt(t):(o={...t},A2(!o.pathname||!o.pathname.includes("?"),d9("?","pathname","search",o)),A2(!o.pathname||!o.pathname.includes("#"),d9("#","pathname","hash",o)),A2(!o.search||!o.search.includes("#"),d9("#","search","hash",o)));let u=t===""||o.pathname==="",h=u?"/":o.pathname,m;if(h==null)m=a;else{let z=n.length-1;if(!i&&h.startsWith("..")){let y=h.split("/");for(;y[0]==="..";)y.shift(),z-=1;o.pathname=y.join("/")}m=z>=0?n[z]:"/"}let g=Jz(o,m),b=h&&h!=="/"&&h.endsWith("/"),p=(u||h===".")&&a.endsWith("/");return!g.pathname.endsWith("/")&&(b||p)&&(g.pathname+="/"),g}var gm=t=>t.replace(/[\\/]{2,}/g,"/"),d3=t=>gm(t.join("/"));function Ht(t,n=0){let a=t.length;for(;a>n&&t.charCodeAt(a-1)===47;)a--;return a===t.length?t:t.slice(0,a)}var ey=t=>Ht(t).replace(/^\/*/,"/"),ny=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,cy=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,ay=class{constructor(t,n,a,i=!1){this.status=t,this.statusText=n||"",this.internal=i,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function ry(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function ly(t){let n=t.map(a=>a.route.path).filter(Boolean);return d3(n)||"/"}var xm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function bm(t,n){let a=t;if(typeof a!="string"||!Jr.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let i=a,o=!1;if(xm)try{let u=new URL(window.location.href),h=dm.test(a)?new URL(Fz(a,u.protocol)):new URL(a),m=X3(h.pathname,n);h.origin===u.origin&&m!=null?a=m+h.search+h.hash:o=!0}catch{J4(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:o,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Zd=new URL("http://localhost");function el(t){if(t.createURL)return t.createURL("/");try{return new URL(t.createHref("/"),Zd)}catch{return Zd}}function h9(t,n){return t.origin===n.origin&&(t.origin!=="null"||t.protocol===n.protocol&&t.host===n.host)}function iy(t,n){if(t.startsWith("//"))return!0;let a=n.protocol.toLowerCase();return t.toLowerCase().startsWith(a)?n.host===""||t.slice(a.length).startsWith("//"):!1}function nl(t,n,a,i){let o=null;try{o=t==null?null:new URL(t,a)}catch{}let u=new URL(n,a),h=o!=null&&!h9(o,a),m=!h9(u,a);if(i==="reject"){if(h||m)throw new Error("External navigation is not allowed")}else if(m&&(o==null||!iy(t,o)||!h9(o,u)))throw new Error("External navigation is not allowed")}var zm=["POST","PUT","PATCH","DELETE"];new Set(zm);var sy=["GET",...zm];new Set(sy);var oy=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function uy(t){try{return oy.includes(new URL(t).protocol)}catch{return!1}}var kt=v.createContext(null);kt.displayName="DataRouter";var un=v.createContext(null);un.displayName="DataRouterState";var ym=v.createContext(!1);function dy(){return v.useContext(ym)}var wm=v.createContext({isTransitioning:!1});wm.displayName="ViewTransition";var hy=v.createContext(new Map);hy.displayName="Fetchers";var fy=v.createContext(null);fy.displayName="Await";var T4=v.createContext(null);T4.displayName="Navigation";var p8=v.createContext(null);p8.displayName="Location";var B3=v.createContext({outlet:null,matches:[],isDataRoute:!1});B3.displayName="Route";var cl=v.createContext(null);cl.displayName="RouteError";var Mm="REACT_ROUTER_ERROR",my="REDIRECT",vy="ROUTE_ERROR_RESPONSE";function py(t){if(t.startsWith(`${Mm}:${my}:{`))try{let n=JSON.parse(t.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function gy(t){if(t.startsWith(`${Mm}:${vy}:{`))try{let n=JSON.parse(t.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new ay(n.status,n.statusText,n.data)}catch{}}function xy(t,{relative:n}={}){A2(Rt(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:i}=v.useContext(T4),{hash:o,pathname:u,search:h}=x8(t,{relative:n}),m=u;return a!=="/"&&(m=u==="/"?a:d3([a,u])),i.createHref({pathname:m,search:h,hash:o})}function Rt(){return v.useContext(p8)!=null}function f3(){return A2(Rt(),"useLocation() may be used only in the context of a component."),v.useContext(p8).location}var Cm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Sm(t){v.useContext(T4).static||v.useLayoutEffect(t)}function g8(){let{isDataRoute:t}=v.useContext(B3);return t?Vy():by()}function by(){A2(Rt(),"useNavigate() may be used only in the context of a component.");let t=v.useContext(kt),{basename:n,navigator:a}=v.useContext(T4),{matches:i}=v.useContext(B3),{pathname:o}=f3(),u=JSON.stringify(tl(i)),h=v.useRef(!1);return Sm(()=>{h.current=!0}),v.useCallback((g,b={})=>{if(J4(h.current,Cm),!h.current)return;if(typeof g=="number"){a.go(g);return}let p=on(g,JSON.parse(u),o,b.relative==="path");t==null&&n!=="/"&&(p.pathname=p.pathname==="/"?n:d3([n,p.pathname])),nl(typeof g=="string"?g:f6(g),a.createHref(p),el(a),"reject"),(b.replace?a.replace:a.push)(p,b.state,b)},[n,a,u,o,t])}v.createContext(null);function x8(t,{relative:n}={}){let{matches:a}=v.useContext(B3),{pathname:i}=f3(),o=JSON.stringify(tl(a));return v.useMemo(()=>on(t,JSON.parse(o),i,n==="path"),[t,o,i,n])}function zy(t,n){return Am(t,n)}function Am(t,n,a){A2(Rt(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=v.useContext(T4),{matches:o}=v.useContext(B3),u=o[o.length-1],h=u?u.params:{},m=u?u.pathname:"/",g=u?u.pathnameBase:"/",b=u&&u.route;{let M=b&&b.path||"";Lm(m,!b||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${m}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let p=f3(),z;if(n){let M=typeof n=="string"?Bt(n):n;A2(g==="/"||M.pathname?.startsWith(g),`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 "${g}" but pathname "${M.pathname}" was given in the \`location\` prop.`),z=M}else z=p;let y=z.pathname||"/",w=y;if(g!=="/"){let M=g.replace(/^\//,"").split("/");w="/"+y.replace(/^\//,"").split("/").slice(M.length).join("/")}let A=a&&a.state.matches.length?a.state.matches.map(M=>Object.assign(M,{route:a.manifest[M.route.id]||M.route})):hm(t,{pathname:w});J4(b||A!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),J4(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 "${z.pathname}${z.search}${z.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 H=Sy(A&&A.map(M=>Object.assign({},M,{params:Object.assign({},h,M.params),pathname:d3([g,i.encodeLocation?i.encodeLocation(M.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?g:d3([g,i.encodeLocation?i.encodeLocation(M.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),o,a);return n&&H?v.createElement(p8.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...z},navigationType:"POP"}},H):H}function yy(){let t=jy(),n=ry(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},h=null;return console.error("Error handled by React Router default ErrorBoundary:",t),h=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:u},"ErrorBoundary")," or"," ",v.createElement("code",{style:u},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},n),a?v.createElement("pre",{style:o},a):null,h)}var wy=v.createElement(yy,null),Hm=class extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){this.props.onError?this.props.onError(t,n):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const a=gy(t.digest);a&&(t=a)}let n=t!==void 0?v.createElement(B3.Provider,{value:this.props.routeContext},v.createElement(cl.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?v.createElement(My,{error:t},n):n}};Hm.contextType=ym;var f9=new WeakMap;function My({children:t,error:n}){let{basename:a,navigator:i}=v.useContext(T4);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let o=py(n.digest);if(o){let u=f9.get(n);if(u)throw u;let h=bm(o.location,a),m=h.absoluteURL||h.to;if(nl(o.location,m,el(i),"allow-explicit"),uy(m))throw new Error("Invalid redirect location");if(xm&&!f9.get(n))if(h.isExternal||o.reloadDocument)window.location.href=m;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw f9.set(n,g),g}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m}`})}}return t}function Cy({routeContext:t,match:n,children:a}){let i=v.useContext(kt);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(B3.Provider,{value:t},a)}function Sy(t,n=[],a){let i=a?.state;if(t==null){if(!i)return null;if(i.errors)t=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)t=i.matches;else return null}let o=t,u=i?.errors;if(u!=null){let p=o.findIndex(z=>z.route.id&&u?.[z.route.id]!==void 0);A2(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let h=!1,m=-1;if(a&&i){h=i.renderFallback;for(let p=0;p=0?o=o.slice(0,m+1):o=[o[0]];break}}}}let g=a?.onError,b=i&&g?(p,z)=>{g(p,{location:i.location,params:i.matches?.[0]?.params??{},pattern:ly(i.matches),errorInfo:z})}:void 0;return o.reduceRight((p,z,y)=>{let w,A=!1,H=null,M=null;i&&(w=u&&z.route.id?u[z.route.id]:void 0,H=z.route.errorElement||wy,h&&(m<0&&y===0?(Lm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,M=null):m===y&&(A=!0,M=z.route.hydrateFallbackElement||null)));let V=n.concat(o.slice(0,y+1)),L=()=>{let S;return w?S=H:A?S=M:z.route.Component?S=v.createElement(z.route.Component,null):z.route.element?S=z.route.element:S=p,v.createElement(Cy,{match:z,routeContext:{outlet:p,matches:V,isDataRoute:i!=null},children:S})};return i&&(z.route.ErrorBoundary||z.route.errorElement||y===0)?v.createElement(Hm,{location:i.location,revalidation:i.revalidation,component:H,error:w,children:L(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:b}):L()},null)}function al(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ay(t){let n=v.useContext(kt);return A2(n,al(t)),n}function Hy(t){let n=v.useContext(un);return A2(n,al(t)),n}function Ly(t){let n=v.useContext(B3);return A2(n,al(t)),n}function rl(t){let n=Ly(t),a=n.matches[n.matches.length-1];return A2(a.route.id,`${t} can only be used on routes that contain a unique "id"`),a.route.id}function Ny(){return rl("useRouteId")}function jy(){let t=v.useContext(cl),n=Hy("useRouteError"),a=rl("useRouteError");return t!==void 0?t:n.errors?.[a]}function Vy(){let{router:t}=Ay("useNavigate"),n=rl("useNavigate"),a=v.useRef(!1);return Sm(()=>{a.current=!0}),v.useCallback(async(o,u={})=>{J4(a.current,Cm),a.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:n,...u}))},[t,n])}var Gd={};function Lm(t,n,a){!n&&!Gd[t]&&(Gd[t]=!0,J4(!1,a))}v.memo(By);function By({routes:t,manifest:n,future:a,state:i,isStatic:o,onError:u}){return Am(t,void 0,{manifest:n,state:i,isStatic:o,onError:u})}function ky({to:t,replace:n,state:a,relative:i}){A2(Rt()," may be used only in the context of a component.");let{static:o,navigator:u}=v.useContext(T4);J4(!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:h}=v.useContext(B3),{pathname:m}=f3(),g=g8(),b=on(t,tl(h),m,i==="path");nl(typeof t=="string"?t:f6(t),u.createHref(b),el(u),"reject");let p=JSON.stringify(b);return v.useEffect(()=>{g(JSON.parse(p),{replace:n,state:a,relative:i})},[g,p,i,n,a]),null}function Q4(t){A2(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Ry({basename:t="/",children:n=null,location:a,navigationType:i="POP",navigator:o,static:u=!1,useTransitions:h}){A2(!Rt(),"You cannot render a inside another . You should never have more than one in your app.");let m=t.replace(/^\/*/,"/"),g=v.useMemo(()=>({basename:m,navigator:o,static:u,useTransitions:h,future:{}}),[m,o,u,h]);typeof a=="string"&&(a=Bt(a));let{pathname:b="/",search:p="",hash:z="",state:y=null,key:w="default",mask:A}=a,H=v.useMemo(()=>{let M=X3(b,m);return M==null?null:{location:{pathname:M,search:p,hash:z,state:y,key:w,mask:A},navigationType:i}},[m,b,p,z,y,w,i,A]);return J4(H!=null,` is not able to match the URL "${b}${p}${z}" because it does not start with the basename, so the won't render anything.`),H==null?null:v.createElement(T4.Provider,{value:g},v.createElement(p8.Provider,{children:n,value:H}))}function Fy({children:t,location:n}){return zy(or(t),n)}function or(t,n=[]){let a=[];return v.Children.forEach(t,(i,o)=>{if(!v.isValidElement(i))return;let u=[...n,o];if(i.type===v.Fragment){a.push.apply(a,or(i.props.children,u));return}A2(i.type===Q4,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),A2(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(h.children=or(i.props.children,u)),a.push(h)}),a}var L7="get",N7="application/x-www-form-urlencoded";function dn(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Ey(t){return dn(t)&&t.tagName.toLowerCase()==="button"}function Ty(t){return dn(t)&&t.tagName.toLowerCase()==="form"}function Dy(t){return dn(t)&&t.tagName.toLowerCase()==="input"}function Oy(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function _y(t,n){return t.button===0&&(!n||n==="_self")&&!Oy(t)}function ur(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((n,a)=>{let i=t[a];return n.concat(Array.isArray(i)?i.map(o=>[a,o]):[[a,i]])},[]))}function qy(t,n){let a=ur(t);return n&&n.forEach((i,o)=>{a.has(o)||n.getAll(o).forEach(u=>{a.append(o,u)})}),a}var e7=null;function Uy(){if(e7===null)try{new FormData(document.createElement("form"),0),e7=!1}catch{e7=!0}return e7}var Py=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function m9(t){return t!=null&&!Py.has(t)?(J4(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${N7}"`),null):t}function Iy(t,n){let a,i,o,u,h;if(Ty(t)){let m=t.getAttribute("action");i=m?X3(m,n):null,a=t.getAttribute("method")||L7,o=m9(t.getAttribute("enctype"))||N7,u=new FormData(t)}else if(Ey(t)||Dy(t)&&(t.type==="submit"||t.type==="image")){let m=t.form;if(m==null)throw new Error('Cannot submit a