const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OrbitControls-BJ-UXxdt.js","assets/three.module--MGUDD-H.js"])))=>i.map(i=>d[i]); (function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function n(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 l(o){if(o.ep)return;o.ep=!0;const u=n(o);fetch(o.href,u)}})();const mp="modulepreload",vp=function(t){return"/"+t},$s={},va=function(c,n,l){let o=Promise.resolve();if(n&&n.length>0){let v=function(g){return Promise.all(g.map(x=>Promise.resolve(x).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");o=v(n.map(g=>{if(g=vp(g),g in $s)return;$s[g]=!0;const x=g.endsWith(".css"),b=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const y=document.createElement("link");if(y.rel=x?"stylesheet":mp,x||(y.as="script"),y.crossOrigin="",y.href=g,m&&y.setAttribute("nonce",m),document.head.appendChild(y),x)return new Promise((M,H)=>{y.addEventListener("load",M),y.addEventListener("error",()=>H(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return o.then(d=>{for(const m of d||[])m.status==="rejected"&&u(m.reason);return c().catch(u)})};function pp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Cc={exports:{}},P8={};var Zs;function xp(){if(Zs)return P8;Zs=1;var t=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function n(l,o,u){var d=null;if(u!==void 0&&(d=""+u),o.key!==void 0&&(d=""+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:l,key:d,ref:o!==void 0?o:null,props:u}}return P8.Fragment=c,P8.jsx=n,P8.jsxs=n,P8}var Gs;function gp(){return Gs||(Gs=1,Cc.exports=xp()),Cc.exports}var r=gp(),Sc={exports:{}},P1={};var Ys;function zp(){if(Ys)return P1;Ys=1;var t=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),y=Symbol.iterator;function M(q){return q===null||typeof q!="object"?null:(q=y&&q[y]||q["@@iterator"],typeof q=="function"?q:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,w={};function V(q,G,i1){this.props=q,this.context=G,this.refs=w,this.updater=i1||H}V.prototype.isReactComponent={},V.prototype.setState=function(q,G){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,G,"setState")},V.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function C(){}C.prototype=V.prototype;function S(q,G,i1){this.props=q,this.context=G,this.refs=w,this.updater=i1||H}var B=S.prototype=new C;B.constructor=S,L(B,V.prototype),B.isPureReactComponent=!0;var E=Array.isArray;function F(){}var R={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function N(q,G,i1){var X=i1.ref;return{$$typeof:t,type:q,key:G,ref:X!==void 0?X:null,props:i1}}function O(q,G){return N(q.type,G,q.props)}function D(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function U(q){var G={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(i1){return G[i1]})}var W=/\/+/g;function K(q,G){return typeof q=="object"&&q!==null&&q.key!=null?U(""+q.key):G.toString(36)}function P(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(F,F):(q.status="pending",q.then(function(G){q.status==="pending"&&(q.status="fulfilled",q.value=G)},function(G){q.status==="pending"&&(q.status="rejected",q.reason=G)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function T(q,G,i1,X,a1){var s1=typeof q;(s1==="undefined"||s1==="boolean")&&(q=null);var e1=!1;if(q===null)e1=!0;else switch(s1){case"bigint":case"string":case"number":e1=!0;break;case"object":switch(q.$$typeof){case t:case c:e1=!0;break;case x:return e1=q._init,T(e1(q._payload),G,i1,X,a1)}}if(e1)return a1=a1(q),e1=X===""?"."+K(q,0):X,E(a1)?(i1="",e1!=null&&(i1=e1.replace(W,"$&/")+"/"),T(a1,G,i1,"",function(B1){return B1})):a1!=null&&(D(a1)&&(a1=O(a1,i1+(a1.key==null||q&&q.key===a1.key?"":(""+a1.key).replace(W,"$&/")+"/")+e1)),G.push(a1)),1;e1=0;var y1=X===""?".":X+":";if(E(q))for(var z1=0;z1>>1,v1=T[n1];if(0>>1;n1o(i1,$))Xo(a1,i1)?(T[n1]=a1,T[X]=$,n1=X):(T[n1]=i1,T[G]=$,n1=G);else if(Xo(a1,$))T[n1]=a1,T[X]=$,n1=X;else break t}}return I}function o(T,I){var $=T.sortIndex-I.sortIndex;return $!==0?$:T.id-I.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 d=Date,m=d.now();t.unstable_now=function(){return d.now()-m}}var v=[],g=[],x=1,b=null,y=3,M=!1,H=!1,L=!1,w=!1,V=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function B(T){for(var I=n(g);I!==null;){if(I.callback===null)l(g);else if(I.startTime<=T)l(g),I.sortIndex=I.expirationTime,c(v,I);else break;I=n(g)}}function E(T){if(L=!1,B(T),!H)if(n(v)!==null)H=!0,F||(F=!0,U());else{var I=n(g);I!==null&&P(E,I.startTime-T)}}var F=!1,R=-1,j=5,N=-1;function O(){return w?!0:!(t.unstable_now()-NT&&O());){var n1=b.callback;if(typeof n1=="function"){b.callback=null,y=b.priorityLevel;var v1=n1(b.expirationTime<=T);if(T=t.unstable_now(),typeof v1=="function"){b.callback=v1,B(T),I=!0;break e}b===n(v)&&l(v),B(T)}else l(v);b=n(v)}if(b!==null)I=!0;else{var q=n(g);q!==null&&P(E,q.startTime-T),I=!1}}break t}finally{b=null,y=$,M=!1}I=void 0}}finally{I?U():F=!1}}}var U;if(typeof S=="function")U=function(){S(D)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,K=W.port2;W.port1.onmessage=D,U=function(){K.postMessage(null)}}else U=function(){V(D,0)};function P(T,I){R=V(function(){T(t.unstable_now())},I)}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(T){T.callback=null},t.unstable_forceFrameRate=function(T){0>T||125n1?(T.sortIndex=$,c(g,T),n(v)===null&&T===n(g)&&(L?(C(R),R=-1):L=!0,P(E,$-n1))):(T.sortIndex=v1,c(v,T),H||M||(H=!0,F||(F=!0,U()))),T},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(T){var I=y;return function(){var $=y;y=I;try{return T.apply(this,arguments)}finally{y=$}}}})(Lc)),Lc}var Xs;function yp(){return Xs||(Xs=1,Hc.exports=bp()),Hc.exports}var Vc={exports:{}},t4={};var Ws;function Mp(){if(Ws)return t4;Ws=1;var t=en();function c(v){var g="https://react.dev/errors/"+v;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(c){console.error(c)}}return t(),Vc.exports=Mp(),Vc.exports}var to;function wp(){if(to)return $8;to=1;var t=yp(),c=en(),n=nh();function l(e){var a="https://react.dev/errors/"+e;if(1v1||(e.current=n1[v1],n1[v1]=null,v1--)}function i1(e,a){v1++,n1[v1]=e.current,e.current=a}var X=q(null),a1=q(null),s1=q(null),e1=q(null);function y1(e,a){switch(i1(s1,a),i1(a1,e),i1(X,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?ms(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=ms(a),e=vs(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(X),i1(X,e)}function z1(){G(X),G(a1),G(s1)}function B1(e){e.memoizedState!==null&&i1(e1,e);var a=X.current,i=vs(a,e.type);a!==i&&(i1(a1,e),i1(X,i))}function x1(e){a1.current===e&&(G(X),G(a1)),e1.current===e&&(G(e1),_8._currentValue=$)}var w1,I1;function R1(e){if(w1===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);w1=a&&a[1]||"",I1=-1)":-1p||_[h]!==t1[p]){var u1=` `+_[h].replace(" at new "," at ");return e.displayName&&u1.includes("")&&(u1=u1.replace("",e.displayName)),u1}while(1<=h&&0<=p);break}}}finally{h2=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?R1(i):""}function V1(e,a){switch(e.tag){case 26:case 27:case 5:return R1(e.type);case 16:return R1("Lazy");case 13:return e.child!==a&&a!==null?R1("Suspense Fallback"):R1("Suspense");case 19:return R1("SuspenseList");case 0:case 15:return j1(e.type,!1);case 11:return j1(e.type.render,!1);case 1:return j1(e.type,!0);case 31:return R1("Activity");default:return""}}function G1(e){try{var a="",i=null;do a+=V1(e,i),i=e,e=e.return;while(e);return a}catch(h){return` Error generating stack: `+h.message+` `+h.stack}}var Y1=Object.prototype.hasOwnProperty,S1=t.unstable_scheduleCallback,U1=t.unstable_cancelCallback,p1=t.unstable_shouldYield,A1=t.unstable_requestPaint,r1=t.unstable_now,b1=t.unstable_getCurrentPriorityLevel,g1=t.unstable_ImmediatePriority,C1=t.unstable_UserBlockingPriority,$1=t.unstable_NormalPriority,o1=t.unstable_LowPriority,d1=t.unstable_IdlePriority,F1=t.log,J1=t.unstable_setDisableYieldValue,g2=null,H1=null;function H2(e){if(typeof F1=="function"&&J1(e),H1&&typeof H1.setStrictMode=="function")try{H1.setStrictMode(g2,e)}catch{}}var L2=Math.clz32?Math.clz32:q1,m1=Math.log,D1=Math.LN2;function q1(e){return e>>>=0,e===0?32:31-(m1(e)/D1|0)|0}var Z2=256,Y4=262144,U6=4194304;function k1(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function d2(e,a,i){var h=e.pendingLanes;if(h===0)return 0;var p=0,z=e.suspendedLanes,A=e.pingedLanes;e=e.warmLanes;var k=h&134217727;return k!==0?(h=k&~z,h!==0?p=k1(h):(A&=k,A!==0?p=k1(A):i||(i=k&~e,i!==0&&(p=k1(i))))):(k=h&~z,k!==0?p=k1(k):A!==0?p=k1(A):i||(i=h&~e,i!==0&&(p=k1(i)))),p===0?0:a!==0&&a!==p&&(a&z)===0&&(z=p&-p,i=a&-a,z>=i||z===32&&(i&4194048)!==0)?a:p}function s2(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function a2(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 p2(){var e=U6;return U6<<=1,(U6&62914560)===0&&(U6=4194304),e}function d4(e){for(var a=[],i=0;31>i;i++)a.push(e);return a}function q4(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function I6(e,a,i,h,p,z){var A=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var k=e.entanglements,_=e.expirationTimes,t1=e.hiddenUpdates;for(i=A&~i;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var sm=/[\n"\\]/g;function y4(e){return e.replace(sm,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function g7(e,a,i,h,p,z,A,k){e.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.type=A:e.removeAttribute("type"),a!=null?A==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+b4(a)):e.value!==""+b4(a)&&(e.value=""+b4(a)):A!=="submit"&&A!=="reset"||e.removeAttribute("value"),a!=null?z7(e,A,b4(a)):i!=null?z7(e,A,b4(i)):h!=null&&e.removeAttribute("value"),p==null&&z!=null&&(e.defaultChecked=!!z),p!=null&&(e.checked=p&&typeof p!="function"&&typeof p!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?e.name=""+b4(k):e.removeAttribute("name")}function sr(e,a,i,h,p,z,A,k){if(z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(e.type=z),a!=null||i!=null){if(!(z!=="submit"&&z!=="reset"||a!=null)){x7(e);return}i=i!=null?""+b4(i):"",a=a!=null?""+b4(a):i,k||a===e.value||(e.value=a),e.defaultValue=a}h=h??p,h=typeof h!="function"&&typeof h!="symbol"&&!!h,e.checked=k?e.checked:!!h,e.defaultChecked=!!h,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(e.name=A),x7(e)}function z7(e,a,i){a==="number"&&Et(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function K6(e,a,i,h){if(e=e.options,a){a={};for(var p=0;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C7=!1;if(r3)try{var n8={};Object.defineProperty(n8,"passive",{get:function(){C7=!0}}),window.addEventListener("test",n8,n8),window.removeEventListener("test",n8,n8)}catch{C7=!1}var B3=null,S7=null,qt=null;function vr(){if(qt)return qt;var e,a=S7,i=a.length,h,p="value"in B3?B3.value:B3.textContent,z=p.length;for(e=0;e=i8),yr=" ",Mr=!1;function wr(e,a){switch(e){case"keyup":return Em.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var J6=!1;function qm(e,a){switch(e){case"compositionend":return Cr(a);case"keypress":return a.which!==32?null:(Mr=!0,yr);case"textInput":return e=a.data,e===yr&&Mr?null:e;default:return null}}function Dm(e,a){if(J6)return e==="compositionend"||!B7&&wr(e,a)?(e=vr(),qt=S7=B3=null,J6=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:i,offset:a-e};e=h}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Nr(i)}}function Fr(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Fr(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Rr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=Et(e.document);a instanceof e.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)e=a.contentWindow;else break;a=Et(e.document)}return a}function k7(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var Gm=r3&&"documentMode"in document&&11>=document.documentMode,t0=null,F7=null,h8=null,R7=!1;function Er(e,a,i){var h=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;R7||t0==null||t0!==Et(h)||(h=t0,"selectionStart"in h&&k7(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),h8&&u8(h8,h)||(h8=h,h=j5(F7,"onSelect"),0>=A,p-=A,K4=1<<32-L2(a)+p|i<K1?(e2=N1,N1=null):e2=N1.sibling;var r2=c1(Y,N1,J[K1],h1);if(r2===null){N1===null&&(N1=e2);break}e&&N1&&r2.alternate===null&&a(Y,N1),Z=z(r2,Z,K1),n2===null?E1=r2:n2.sibling=r2,n2=r2,N1=e2}if(K1===J.length)return i(Y,N1),c2&&i3(Y,K1),E1;if(N1===null){for(;K1K1?(e2=N1,N1=null):e2=N1.sibling;var W3=c1(Y,N1,r2.value,h1);if(W3===null){N1===null&&(N1=e2);break}e&&N1&&W3.alternate===null&&a(Y,N1),Z=z(W3,Z,K1),n2===null?E1=W3:n2.sibling=W3,n2=W3,N1=e2}if(r2.done)return i(Y,N1),c2&&i3(Y,K1),E1;if(N1===null){for(;!r2.done;K1++,r2=J.next())r2=f1(Y,r2.value,h1),r2!==null&&(Z=z(r2,Z,K1),n2===null?E1=r2:n2.sibling=r2,n2=r2);return c2&&i3(Y,K1),E1}for(N1=h(N1);!r2.done;K1++,r2=J.next())r2=l1(N1,Y,K1,r2.value,h1),r2!==null&&(e&&r2.alternate!==null&&N1.delete(r2.key===null?K1:r2.key),Z=z(r2,Z,K1),n2===null?E1=r2:n2.sibling=r2,n2=r2);return e&&N1.forEach(function(fp){return a(Y,fp)}),c2&&i3(Y,K1),E1}function v2(Y,Z,J,h1){if(typeof J=="object"&&J!==null&&J.type===L&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case M:t:{for(var E1=J.key;Z!==null;){if(Z.key===E1){if(E1=J.type,E1===L){if(Z.tag===7){i(Y,Z.sibling),h1=p(Z,J.props.children),h1.return=Y,Y=h1;break t}}else if(Z.elementType===E1||typeof E1=="object"&&E1!==null&&E1.$$typeof===j&&x6(E1)===Z.type){i(Y,Z.sibling),h1=p(Z,J.props),x8(h1,J),h1.return=Y,Y=h1;break t}i(Y,Z);break}else a(Y,Z);Z=Z.sibling}J.type===L?(h1=d6(J.props.children,Y.mode,h1,J.key),h1.return=Y,Y=h1):(h1=Yt(J.type,J.key,J.props,null,Y.mode,h1),x8(h1,J),h1.return=Y,Y=h1)}return A(Y);case H:t:{for(E1=J.key;Z!==null;){if(Z.key===E1)if(Z.tag===4&&Z.stateNode.containerInfo===J.containerInfo&&Z.stateNode.implementation===J.implementation){i(Y,Z.sibling),h1=p(Z,J.children||[]),h1.return=Y,Y=h1;break t}else{i(Y,Z);break}else a(Y,Z);Z=Z.sibling}h1=U7(J,Y.mode,h1),h1.return=Y,Y=h1}return A(Y);case j:return J=x6(J),v2(Y,Z,J,h1)}if(P(J))return L1(Y,Z,J,h1);if(U(J)){if(E1=U(J),typeof E1!="function")throw Error(l(150));return J=E1.call(J),_1(Y,Z,J,h1)}if(typeof J.then=="function")return v2(Y,Z,e5(J),h1);if(J.$$typeof===S)return v2(Y,Z,Xt(Y,J),h1);c5(Y,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,Z!==null&&Z.tag===6?(i(Y,Z.sibling),h1=p(Z,J),h1.return=Y,Y=h1):(i(Y,Z),h1=O7(J,Y.mode,h1),h1.return=Y,Y=h1),A(Y)):i(Y,Z)}return function(Y,Z,J,h1){try{p8=0;var E1=v2(Y,Z,J,h1);return h0=null,E1}catch(N1){if(N1===u0||N1===Jt)throw N1;var n2=m4(29,N1,null,Y.mode);return n2.lanes=h1,n2.return=Y,n2}finally{}}}var z6=rl(!0),ll=rl(!1),R3=!1;function t9(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function e9(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function E3(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function T3(e,a,i){var h=e.updateQueue;if(h===null)return null;if(h=h.shared,(i2&2)!==0){var p=h.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),h.pending=a,a=Gt(e),Ir(e,null,i),a}return Zt(e,h,a,i),Gt(e)}function g8(e,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var h=a.lanes;h&=e.pendingLanes,i|=h,a.lanes=i,L3(e,i)}}function c9(e,a){var i=e.updateQueue,h=e.alternate;if(h!==null&&(h=h.updateQueue,i===h)){var p=null,z=null;if(i=i.firstBaseUpdate,i!==null){do{var A={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};z===null?p=z=A:z=z.next=A,i=i.next}while(i!==null);z===null?p=z=a:z=z.next=a}else p=z=a;i={baseState:h.baseState,firstBaseUpdate:p,lastBaseUpdate:z,shared:h.shared,callbacks:h.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=a:e.next=a,i.lastBaseUpdate=a}var a9=!1;function z8(){if(a9){var e=o0;if(e!==null)throw e}}function b8(e,a,i,h){a9=!1;var p=e.updateQueue;R3=!1;var z=p.firstBaseUpdate,A=p.lastBaseUpdate,k=p.shared.pending;if(k!==null){p.shared.pending=null;var _=k,t1=_.next;_.next=null,A===null?z=t1:A.next=t1,A=_;var u1=e.alternate;u1!==null&&(u1=u1.updateQueue,k=u1.lastBaseUpdate,k!==A&&(k===null?u1.firstBaseUpdate=t1:k.next=t1,u1.lastBaseUpdate=_))}if(z!==null){var f1=p.baseState;A=0,u1=t1=_=null,k=z;do{var c1=k.lane&-536870913,l1=c1!==k.lane;if(l1?(t2&c1)===c1:(h&c1)===c1){c1!==0&&c1===s0&&(a9=!0),u1!==null&&(u1=u1.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});t:{var L1=e,_1=k;c1=a;var v2=i;switch(_1.tag){case 1:if(L1=_1.payload,typeof L1=="function"){f1=L1.call(v2,f1,c1);break t}f1=L1;break t;case 3:L1.flags=L1.flags&-65537|128;case 0:if(L1=_1.payload,c1=typeof L1=="function"?L1.call(v2,f1,c1):L1,c1==null)break t;f1=b({},f1,c1);break t;case 2:R3=!0}}c1=k.callback,c1!==null&&(e.flags|=64,l1&&(e.flags|=8192),l1=p.callbacks,l1===null?p.callbacks=[c1]:l1.push(c1))}else l1={lane:c1,tag:k.tag,payload:k.payload,callback:k.callback,next:null},u1===null?(t1=u1=l1,_=f1):u1=u1.next=l1,A|=c1;if(k=k.next,k===null){if(k=p.shared.pending,k===null)break;l1=k,k=l1.next,l1.next=null,p.lastBaseUpdate=l1,p.shared.pending=null}}while(!0);u1===null&&(_=f1),p.baseState=_,p.firstBaseUpdate=t1,p.lastBaseUpdate=u1,z===null&&(p.shared.lanes=0),U3|=A,e.lanes=A,e.memoizedState=f1}}function il(e,a){if(typeof e!="function")throw Error(l(191,e));e.call(a)}function sl(e,a){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;ez?z:8;var A=T.T,k={};T.T=k,M9(e,!1,a,i);try{var _=p(),t1=T.S;if(t1!==null&&t1(k,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var u1=cv(_,h);w8(e,a,u1,z4(e))}else w8(e,a,h,z4(e))}catch(f1){w8(e,a,{then:function(){},status:"rejected",reason:f1},z4())}finally{I.p=z,A!==null&&k.types!==null&&(A.types=k.types),T.T=A}}function sv(){}function b9(e,a,i,h){if(e.tag!==5)throw Error(l(476));var p=_l(e).queue;Dl(e,p,a,$,i===null?sv:function(){return Ol(e),i(h)})}function _l(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:h3,lastRenderedState:$},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:h3,lastRenderedState:i},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function Ol(e){var a=_l(e);a.next===null&&(a=e.alternate.memoizedState),w8(e,a.next.queue,{},z4())}function y9(){return X2(_8)}function Ul(){return N2().memoizedState}function Il(){return N2().memoizedState}function ov(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var i=z4();e=E3(i);var h=T3(a,e,i);h!==null&&(u4(h,a,i),g8(h,a,i)),a={cache:Q7()},e.payload=a;return}a=a.return}}function uv(e,a,i){var h=z4();i={lane:h,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},d5(e)?$l(a,i):(i=D7(e,a,i,h),i!==null&&(u4(i,e,h),Zl(i,a,h)))}function Pl(e,a,i){var h=z4();w8(e,a,i,h)}function w8(e,a,i,h){var p={lane:h,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(d5(e))$l(a,p);else{var z=e.alternate;if(e.lanes===0&&(z===null||z.lanes===0)&&(z=a.lastRenderedReducer,z!==null))try{var A=a.lastRenderedState,k=z(A,i);if(p.hasEagerState=!0,p.eagerState=k,f4(k,A))return Zt(e,a,p,0),x2===null&&$t(),!1}catch{}finally{}if(i=D7(e,a,p,h),i!==null)return u4(i,e,h),Zl(i,a,h),!0}return!1}function M9(e,a,i,h){if(h={lane:2,revertLane:tc(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},d5(e)){if(a)throw Error(l(479))}else a=D7(e,i,h,2),a!==null&&u4(a,e,2)}function d5(e){var a=e.alternate;return e===Z1||a!==null&&a===Z1}function $l(e,a){f0=r5=!0;var i=e.pending;i===null?a.next=a:(a.next=i.next,i.next=a),e.pending=a}function Zl(e,a,i){if((i&4194048)!==0){var h=a.lanes;h&=e.pendingLanes,i|=h,a.lanes=i,L3(e,i)}}var C8={readContext:X2,use:s5,useCallback:V2,useContext:V2,useEffect:V2,useImperativeHandle:V2,useLayoutEffect:V2,useInsertionEffect:V2,useMemo:V2,useReducer:V2,useRef:V2,useState:V2,useDebugValue:V2,useDeferredValue:V2,useTransition:V2,useSyncExternalStore:V2,useId:V2,useHostTransitionStatus:V2,useFormState:V2,useActionState:V2,useOptimistic:V2,useMemoCache:V2,useCacheRefresh:V2};C8.useEffectEvent=V2;var Gl={readContext:X2,use:s5,useCallback:function(e,a){return a4().memoizedState=[e,a===void 0?null:a],e},useContext:X2,useEffect:Bl,useImperativeHandle:function(e,a,i){i=i!=null?i.concat([e]):null,u5(4194308,4,Fl.bind(null,a,e),i)},useLayoutEffect:function(e,a){return u5(4194308,4,e,a)},useInsertionEffect:function(e,a){u5(4,2,e,a)},useMemo:function(e,a){var i=a4();a=a===void 0?null:a;var h=e();if(b6){H2(!0);try{e()}finally{H2(!1)}}return i.memoizedState=[h,a],h},useReducer:function(e,a,i){var h=a4();if(i!==void 0){var p=i(a);if(b6){H2(!0);try{i(a)}finally{H2(!1)}}}else p=a;return h.memoizedState=h.baseState=p,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:p},h.queue=e,e=e.dispatch=uv.bind(null,Z1,e),[h.memoizedState,e]},useRef:function(e){var a=a4();return e={current:e},a.memoizedState=e},useState:function(e){e=v9(e);var a=e.queue,i=Pl.bind(null,Z1,a);return a.dispatch=i,[e.memoizedState,i]},useDebugValue:g9,useDeferredValue:function(e,a){var i=a4();return z9(i,e,a)},useTransition:function(){var e=v9(!1);return e=Dl.bind(null,Z1,e.queue,!0,!1),a4().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,i){var h=Z1,p=a4();if(c2){if(i===void 0)throw Error(l(407));i=i()}else{if(i=a(),x2===null)throw Error(l(349));(t2&127)!==0||ml(h,a,i)}p.memoizedState=i;var z={value:i,getSnapshot:a};return p.queue=z,Bl(pl.bind(null,h,z,e),[e]),h.flags|=2048,v0(9,{destroy:void 0},vl.bind(null,h,z,i,a),null),i},useId:function(){var e=a4(),a=x2.identifierPrefix;if(c2){var i=Q4,h=K4;i=(h&~(1<<32-L2(h)-1)).toString(32)+i,a="_"+a+"R_"+i,i=l5++,0<\/script>",z=z.removeChild(z.firstChild);break;case"select":z=typeof h.is=="string"?A.createElement("select",{is:h.is}):A.createElement("select"),h.multiple?z.multiple=!0:h.size&&(z.size=h.size);break;default:z=typeof h.is=="string"?A.createElement(p,{is:h.is}):A.createElement(p)}}z[K2]=a,z[n4]=h;t:for(A=a.child;A!==null;){if(A.tag===5||A.tag===6)z.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===a)break t;for(;A.sibling===null;){if(A.return===null||A.return===a)break t;A=A.return}A.sibling.return=A.return,A=A.sibling}a.stateNode=z;t:switch(J2(z,p,h),p){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break t;case"img":h=!0;break t;default:h=!1}h&&f3(a)}}return M2(a),E9(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,i),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==h&&f3(a);else{if(typeof h!="string"&&a.stateNode===null)throw Error(l(166));if(e=s1.current,l0(a)){if(e=a.stateNode,i=a.memoizedProps,h=null,p=Q2,p!==null)switch(p.tag){case 27:case 5:h=p.memoizedProps}e[K2]=a,e=!!(e.nodeValue===i||h!==null&&h.suppressHydrationWarning===!0||ds(e.nodeValue,i)),e||k3(a,!0)}else e=N5(e).createTextNode(h),e[K2]=a,a.stateNode=e}return M2(a),null;case 31:if(i=a.memoizedState,e===null||e.memoizedState!==null){if(h=l0(a),i!==null){if(e===null){if(!h)throw Error(l(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[K2]=a}else f6(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;M2(a),e=!1}else i=Z7(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return a.flags&256?(p4(a),a):(p4(a),null);if((a.flags&128)!==0)throw Error(l(558))}return M2(a),null;case 13:if(h=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(p=l0(a),h!==null&&h.dehydrated!==null){if(e===null){if(!p)throw Error(l(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(l(317));p[K2]=a}else f6(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;M2(a),p=!1}else p=Z7(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(p4(a),a):(p4(a),null)}return p4(a),(a.flags&128)!==0?(a.lanes=i,a):(i=h!==null,e=e!==null&&e.memoizedState!==null,i&&(h=a.child,p=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(p=h.alternate.memoizedState.cachePool.pool),z=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(z=h.memoizedState.cachePool.pool),z!==p&&(h.flags|=2048)),i!==e&&i&&(a.child.flags|=8192),x5(a,a.updateQueue),M2(a),null);case 4:return z1(),e===null&&nc(a.stateNode.containerInfo),M2(a),null;case 10:return o3(a.type),M2(a),null;case 19:if(G(j2),h=a.memoizedState,h===null)return M2(a),null;if(p=(a.flags&128)!==0,z=h.rendering,z===null)if(p)A8(h,!1);else{if(B2!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(z=n5(e),z!==null){for(a.flags|=128,A8(h,!1),e=z.updateQueue,a.updateQueue=e,x5(a,e),a.subtreeFlags=0,e=i,i=a.child;i!==null;)Pr(i,e),i=i.sibling;return i1(j2,j2.current&1|2),c2&&i3(a,h.treeForkCount),a.child}e=e.sibling}h.tail!==null&&r1()>M5&&(a.flags|=128,p=!0,A8(h,!1),a.lanes=4194304)}else{if(!p)if(e=n5(z),e!==null){if(a.flags|=128,p=!0,e=e.updateQueue,a.updateQueue=e,x5(a,e),A8(h,!0),h.tail===null&&h.tailMode==="hidden"&&!z.alternate&&!c2)return M2(a),null}else 2*r1()-h.renderingStartTime>M5&&i!==536870912&&(a.flags|=128,p=!0,A8(h,!1),a.lanes=4194304);h.isBackwards?(z.sibling=a.child,a.child=z):(e=h.last,e!==null?e.sibling=z:a.child=z,h.last=z)}return h.tail!==null?(e=h.tail,h.rendering=e,h.tail=e.sibling,h.renderingStartTime=r1(),e.sibling=null,i=j2.current,i1(j2,p?i&1|2:i&1),c2&&i3(a,h.treeForkCount),e):(M2(a),null);case 22:case 23:return p4(a),r9(),h=a.memoizedState!==null,e!==null?e.memoizedState!==null!==h&&(a.flags|=8192):h&&(a.flags|=8192),h?(i&536870912)!==0&&(a.flags&128)===0&&(M2(a),a.subtreeFlags&6&&(a.flags|=8192)):M2(a),i=a.updateQueue,i!==null&&x5(a,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==i&&(a.flags|=2048),e!==null&&G(p6),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),o3(T2),M2(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function vv(e,a){switch(P7(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return o3(T2),z1(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return x1(a),null;case 31:if(a.memoizedState!==null){if(p4(a),a.alternate===null)throw Error(l(340));f6()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(p4(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(l(340));f6()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return G(j2),null;case 4:return z1(),null;case 10:return o3(a.type),null;case 22:case 23:return p4(a),r9(),e!==null&&G(p6),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return o3(T2),null;case 25:return null;default:return null}}function xi(e,a){switch(P7(a),a.tag){case 3:o3(T2),z1();break;case 26:case 27:case 5:x1(a);break;case 4:z1();break;case 31:a.memoizedState!==null&&p4(a);break;case 13:p4(a);break;case 19:G(j2);break;case 10:o3(a.type);break;case 22:case 23:p4(a),r9(),e!==null&&G(p6);break;case 24:o3(T2)}}function H8(e,a){try{var i=a.updateQueue,h=i!==null?i.lastEffect:null;if(h!==null){var p=h.next;i=p;do{if((i.tag&e)===e){h=void 0;var z=i.create,A=i.inst;h=z(),A.destroy=h}i=i.next}while(i!==p)}}catch(k){u2(a,a.return,k)}}function _3(e,a,i){try{var h=a.updateQueue,p=h!==null?h.lastEffect:null;if(p!==null){var z=p.next;h=z;do{if((h.tag&e)===e){var A=h.inst,k=A.destroy;if(k!==void 0){A.destroy=void 0,p=a;var _=i,t1=k;try{t1()}catch(u1){u2(p,_,u1)}}}h=h.next}while(h!==z)}}catch(u1){u2(a,a.return,u1)}}function gi(e){var a=e.updateQueue;if(a!==null){var i=e.stateNode;try{sl(a,i)}catch(h){u2(e,e.return,h)}}}function zi(e,a,i){i.props=y6(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(h){u2(e,a,h)}}function L8(e,a){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var h=e.stateNode;break;case 30:h=e.stateNode;break;default:h=e.stateNode}typeof i=="function"?e.refCleanup=i(h):i.current=h}}catch(p){u2(e,a,p)}}function X4(e,a){var i=e.ref,h=e.refCleanup;if(i!==null)if(typeof h=="function")try{h()}catch(p){u2(e,a,p)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(p){u2(e,a,p)}else i.current=null}function bi(e){var a=e.type,i=e.memoizedProps,h=e.stateNode;try{t:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&h.focus();break t;case"img":i.src?h.src=i.src:i.srcSet&&(h.srcset=i.srcSet)}}catch(p){u2(e,e.return,p)}}function T9(e,a,i){try{var h=e.stateNode;Tv(h,e.type,i,a),h[n4]=a}catch(p){u2(e,e.return,p)}}function yi(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&G3(e.type)||e.tag===4}function q9(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||yi(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&G3(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function D9(e,a,i){var h=e.tag;if(h===5||h===6)e=e.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(e),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=n3));else if(h!==4&&(h===27&&G3(e.type)&&(i=e.stateNode,a=null),e=e.child,e!==null))for(D9(e,a,i),e=e.sibling;e!==null;)D9(e,a,i),e=e.sibling}function g5(e,a,i){var h=e.tag;if(h===5||h===6)e=e.stateNode,a?i.insertBefore(e,a):i.appendChild(e);else if(h!==4&&(h===27&&G3(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(g5(e,a,i),e=e.sibling;e!==null;)g5(e,a,i),e=e.sibling}function Mi(e){var a=e.stateNode,i=e.memoizedProps;try{for(var h=e.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);J2(a,h,i),a[K2]=e,a[n4]=i}catch(z){u2(e,e.return,z)}}var m3=!1,_2=!1,_9=!1,wi=typeof WeakSet=="function"?WeakSet:Set,Y2=null;function pv(e,a){if(e=e.containerInfo,ic=D5,e=Rr(e),k7(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else t:{i=(i=e.ownerDocument)&&i.defaultView||window;var h=i.getSelection&&i.getSelection();if(h&&h.rangeCount!==0){i=h.anchorNode;var p=h.anchorOffset,z=h.focusNode;h=h.focusOffset;try{i.nodeType,z.nodeType}catch{i=null;break t}var A=0,k=-1,_=-1,t1=0,u1=0,f1=e,c1=null;e:for(;;){for(var l1;f1!==i||p!==0&&f1.nodeType!==3||(k=A+p),f1!==z||h!==0&&f1.nodeType!==3||(_=A+h),f1.nodeType===3&&(A+=f1.nodeValue.length),(l1=f1.firstChild)!==null;)c1=f1,f1=l1;for(;;){if(f1===e)break e;if(c1===i&&++t1===p&&(k=A),c1===z&&++u1===h&&(_=A),(l1=f1.nextSibling)!==null)break;f1=c1,c1=f1.parentNode}f1=l1}i=k===-1||_===-1?null:{start:k,end:_}}else i=null}i=i||{start:0,end:0}}else i=null;for(sc={focusedElem:e,selectionRange:i},D5=!1,Y2=a;Y2!==null;)if(a=Y2,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,Y2=e;else for(;Y2!==null;){switch(a=Y2,z=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i title"))),J2(z,h,i),z[K2]=e,G2(z),h=z;break t;case"link":var A=Vs("link","href",p).get(h+(i.href||""));if(A){for(var k=0;kv2&&(A=v2,v2=_1,_1=A);var Y=kr(k,_1),Z=kr(k,v2);if(Y&&Z&&(l1.rangeCount!==1||l1.anchorNode!==Y.node||l1.anchorOffset!==Y.offset||l1.focusNode!==Z.node||l1.focusOffset!==Z.offset)){var J=f1.createRange();J.setStart(Y.node,Y.offset),l1.removeAllRanges(),_1>v2?(l1.addRange(J),l1.extend(Z.node,Z.offset)):(J.setEnd(Z.node,Z.offset),l1.addRange(J))}}}}for(f1=[],l1=k;l1=l1.parentNode;)l1.nodeType===1&&f1.push({element:l1,left:l1.scrollLeft,top:l1.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;ki?32:i,T.T=null,i=G9,G9=null;var z=P3,A=z3;if($2=0,b0=P3=null,z3=0,(i2&6)!==0)throw Error(l(331));var k=i2;if(i2|=4,Fi(z.current),ji(z,z.current,A,i),i2=k,F8(0,!1),H1&&typeof H1.onPostCommitFiberRoot=="function")try{H1.onPostCommitFiberRoot(g2,z)}catch{}return!0}finally{I.p=p,T.T=h,Wi(e,a)}}function ts(e,a,i){a=w4(i,a),a=A9(e.stateNode,a,2),e=T3(e,a,2),e!==null&&(q4(e,2),W4(e))}function u2(e,a,i){if(e.tag===3)ts(e,e,i);else for(;a!==null;){if(a.tag===3){ts(a,e,i);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(I3===null||!I3.has(h))){e=w4(i,e),i=ei(2),h=T3(a,i,2),h!==null&&(ci(i,h,a,e),q4(h,2),W4(h));break}}a=a.return}}function X9(e,a,i){var h=e.pingCache;if(h===null){h=e.pingCache=new zv;var p=new Set;h.set(a,p)}else p=h.get(a),p===void 0&&(p=new Set,h.set(a,p));p.has(i)||(I9=!0,p.add(i),e=Cv.bind(null,e,a,i),a.then(e,e))}function Cv(e,a,i){var h=e.pingCache;h!==null&&h.delete(a),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,x2===e&&(t2&i)===i&&(B2===4||B2===3&&(t2&62914560)===t2&&300>r1()-y5?(i2&2)===0&&y0(e,0):P9|=i,z0===t2&&(z0=0)),W4(e)}function es(e,a){a===0&&(a=p2()),e=h6(e,a),e!==null&&(q4(e,a),W4(e))}function Sv(e){var a=e.memoizedState,i=0;a!==null&&(i=a.retryLane),es(e,i)}function Av(e,a){var i=0;switch(e.tag){case 31:case 13:var h=e.stateNode,p=e.memoizedState;p!==null&&(i=p.retryLane);break;case 19:h=e.stateNode;break;case 22:h=e.stateNode._retryCache;break;default:throw Error(l(314))}h!==null&&h.delete(a),es(e,i)}function Hv(e,a){return S1(e,a)}var L5=null,w0=null,W9=!1,V5=!1,J9=!1,Z3=0;function W4(e){e!==w0&&e.next===null&&(w0===null?L5=w0=e:w0=w0.next=e),V5=!0,W9||(W9=!0,Vv())}function F8(e,a){if(!J9&&V5){J9=!0;do for(var i=!1,h=L5;h!==null;){if(e!==0){var p=h.pendingLanes;if(p===0)var z=0;else{var A=h.suspendedLanes,k=h.pingedLanes;z=(1<<31-L2(42|e)+1)-1,z&=p&~(A&~k),z=z&201326741?z&201326741|1:z?z|2:0}z!==0&&(i=!0,rs(h,z))}else z=t2,z=d2(h,h===x2?z:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(z&3)===0||s2(h,z)||(i=!0,rs(h,z));h=h.next}while(i);J9=!1}}function Lv(){cs()}function cs(){V5=W9=!1;var e=0;Z3!==0&&Dv()&&(e=Z3);for(var a=r1(),i=null,h=L5;h!==null;){var p=h.next,z=as(h,a);z===0?(h.next=null,i===null?L5=p:i.next=p,p===null&&(w0=i)):(i=h,(e!==0||(z&3)!==0)&&(V5=!0)),h=p}$2!==0&&$2!==5||F8(e),Z3!==0&&(Z3=0)}function as(e,a){for(var i=e.suspendedLanes,h=e.pingedLanes,p=e.expirationTimes,z=e.pendingLanes&-62914561;0k)break;var u1=_.transferSize,f1=_.initiatorType;u1&&fs(f1)&&(_=_.responseEnd,A+=u1*(_"u"?null:document;function Ss(e,a,i){var h=C0;if(h&&typeof a=="string"&&a){var p=y4(a);p='link[rel="'+e+'"][href="'+p+'"]',typeof i=="string"&&(p+='[crossorigin="'+i+'"]'),Cs.has(p)||(Cs.add(p),e={rel:e,crossOrigin:i,href:a},h.querySelector(p)===null&&(a=h.createElement("link"),J2(a,"link",e),G2(a),h.head.appendChild(a)))}}function Yv(e){b3.D(e),Ss("dns-prefetch",e,null)}function Kv(e,a){b3.C(e,a),Ss("preconnect",e,a)}function Qv(e,a,i){b3.L(e,a,i);var h=C0;if(h&&e&&a){var p='link[rel="preload"][as="'+y4(a)+'"]';a==="image"&&i&&i.imageSrcSet?(p+='[imagesrcset="'+y4(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(p+='[imagesizes="'+y4(i.imageSizes)+'"]')):p+='[href="'+y4(e)+'"]';var z=p;switch(a){case"style":z=S0(e);break;case"script":z=A0(e)}V4.has(z)||(e=b({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:e,as:a},i),V4.set(z,e),h.querySelector(p)!==null||a==="style"&&h.querySelector(q8(z))||a==="script"&&h.querySelector(D8(z))||(a=h.createElement("link"),J2(a,"link",e),G2(a),h.head.appendChild(a)))}}function Xv(e,a){b3.m(e,a);var i=C0;if(i&&e){var h=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+y4(h)+'"][href="'+y4(e)+'"]',z=p;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":z=A0(e)}if(!V4.has(z)&&(e=b({rel:"modulepreload",href:e},a),V4.set(z,e),i.querySelector(p)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(D8(z)))return}h=i.createElement("link"),J2(h,"link",e),G2(h),i.head.appendChild(h)}}}function Wv(e,a,i){b3.S(e,a,i);var h=C0;if(h&&e){var p=G6(h).hoistableStyles,z=S0(e);a=a||"default";var A=p.get(z);if(!A){var k={loading:0,preload:null};if(A=h.querySelector(q8(z)))k.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":a},i),(i=V4.get(z))&&vc(e,i);var _=A=h.createElement("link");G2(_),J2(_,"link",e),_._p=new Promise(function(t1,u1){_.onload=t1,_.onerror=u1}),_.addEventListener("load",function(){k.loading|=1}),_.addEventListener("error",function(){k.loading|=2}),k.loading|=4,F5(A,a,h)}A={type:"stylesheet",instance:A,count:1,state:k},p.set(z,A)}}}function Jv(e,a){b3.X(e,a);var i=C0;if(i&&e){var h=G6(i).hoistableScripts,p=A0(e),z=h.get(p);z||(z=i.querySelector(D8(p)),z||(e=b({src:e,async:!0},a),(a=V4.get(p))&&pc(e,a),z=i.createElement("script"),G2(z),J2(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},h.set(p,z))}}function tp(e,a){b3.M(e,a);var i=C0;if(i&&e){var h=G6(i).hoistableScripts,p=A0(e),z=h.get(p);z||(z=i.querySelector(D8(p)),z||(e=b({src:e,async:!0,type:"module"},a),(a=V4.get(p))&&pc(e,a),z=i.createElement("script"),G2(z),J2(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},h.set(p,z))}}function As(e,a,i,h){var p=(p=s1.current)?k5(p):null;if(!p)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=S0(i.href),i=G6(p).hoistableStyles,h=i.get(a),h||(h={type:"style",instance:null,count:0,state:null},i.set(a,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=S0(i.href);var z=G6(p).hoistableStyles,A=z.get(e);if(A||(p=p.ownerDocument||p,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},z.set(e,A),(z=p.querySelector(q8(e)))&&!z._p&&(A.instance=z,A.state.loading=5),V4.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},V4.set(e,i),z||ep(p,e,i,A.state))),a&&h===null)throw Error(l(528,""));return A}if(a&&h!==null)throw Error(l(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=A0(i),i=G6(p).hoistableScripts,h=i.get(a),h||(h={type:"script",instance:null,count:0,state:null},i.set(a,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function S0(e){return'href="'+y4(e)+'"'}function q8(e){return'link[rel="stylesheet"]['+e+"]"}function Hs(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function ep(e,a,i,h){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?h.loading=1:(a=e.createElement("link"),h.preload=a,a.addEventListener("load",function(){return h.loading|=1}),a.addEventListener("error",function(){return h.loading|=2}),J2(a,"link",i),G2(a),e.head.appendChild(a))}function A0(e){return'[src="'+y4(e)+'"]'}function D8(e){return"script[async]"+e}function Ls(e,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var h=e.querySelector('style[data-href~="'+y4(i.href)+'"]');if(h)return a.instance=h,G2(h),h;var p=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return h=(e.ownerDocument||e).createElement("style"),G2(h),J2(h,"style",p),F5(h,i.precedence,e),a.instance=h;case"stylesheet":p=S0(i.href);var z=e.querySelector(q8(p));if(z)return a.state.loading|=4,a.instance=z,G2(z),z;h=Hs(i),(p=V4.get(p))&&vc(h,p),z=(e.ownerDocument||e).createElement("link"),G2(z);var A=z;return A._p=new Promise(function(k,_){A.onload=k,A.onerror=_}),J2(z,"link",h),a.state.loading|=4,F5(z,i.precedence,e),a.instance=z;case"script":return z=A0(i.src),(p=e.querySelector(D8(z)))?(a.instance=p,G2(p),p):(h=i,(p=V4.get(z))&&(h=b({},i),pc(h,p)),e=e.ownerDocument||e,p=e.createElement("script"),G2(p),J2(p,"link",h),e.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(l(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(h=a.instance,a.state.loading|=4,F5(h,i.precedence,e));return a.instance}function F5(e,a,i){for(var h=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=h.length?h[h.length-1]:null,z=p,A=0;A title"):null)}function cp(e,a,i){if(i===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function js(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ap(e,a,i,h){if(i.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var p=S0(h.href),z=a.querySelector(q8(p));if(z){a=z._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=E5.bind(e),a.then(e,e)),i.state.loading|=4,i.instance=z,G2(z);return}z=a.ownerDocument||a,h=Hs(h),(p=V4.get(p))&&vc(h,p),z=z.createElement("link"),G2(z);var A=z;A._p=new Promise(function(k,_){A.onload=k,A.onerror=_}),J2(z,"link",h),i.instance=z}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=E5.bind(e),a.addEventListener("load",i),a.addEventListener("error",i))}}var xc=0;function np(e,a){return e.stylesheets&&e.count===0&&q5(e,e.stylesheets),0xc?50:800)+a);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(h),clearTimeout(p)}}:null}function E5(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)q5(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var T5=null;function q5(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,T5=new Map,a.forEach(rp,e),T5=null,E5.call(e))}function rp(e,a){if(!(a.state.loading&4)){var i=T5.get(e);if(i)var h=i.get(null);else{i=new Map,T5.set(e,i);for(var p=e.querySelectorAll("link[data-precedence],style[data-precedence]"),z=0;z"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(c){console.error(c)}}return t(),Ac.exports=wp(),Ac.exports}var Sp=Cp();var co="popstate";function Ap(t={}){function c(l,o){let{pathname:u,search:d,hash:m}=l.location;return pa("",{pathname:u,search:d,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(l,o){return typeof o=="string"?o:ut(o)}return Lp(c,n,null,t)}function S2(t,c){if(t===!1||t===null||typeof t>"u")throw new Error(c)}function Z4(t,c){if(!t){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Hp(){return Math.random().toString(36).substring(2,10)}function ao(t,c){return{usr:t.state,key:t.key,idx:c}}function pa(t,c,n=null,l){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof c=="string"?K0(c):c,state:n,key:c&&c.key||l||Hp()}}function ut({pathname:t="/",search:c="",hash:n=""}){return c&&c!=="?"&&(t+=c.charAt(0)==="?"?c:"?"+c),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function K0(t){let c={};if(t){let n=t.indexOf("#");n>=0&&(c.hash=t.substring(n),t=t.substring(0,n));let l=t.indexOf("?");l>=0&&(c.search=t.substring(l),t=t.substring(0,l)),t&&(c.pathname=t)}return c}function Lp(t,c,n,l={}){let{window:o=document.defaultView,v5Compat:u=!1}=l,d=o.history,m="POP",v=null,g=x();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function x(){return(d.state||{idx:null}).idx}function b(){m="POP";let w=x(),V=w==null?null:w-g;g=w,v&&v({action:m,location:L.location,delta:V})}function y(w,V){m="PUSH";let C=pa(L.location,w,V);g=x()+1;let S=ao(C,g),B=L.createHref(C);try{d.pushState(S,"",B)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(B)}u&&v&&v({action:m,location:L.location,delta:1})}function M(w,V){m="REPLACE";let C=pa(L.location,w,V);g=x();let S=ao(C,g),B=L.createHref(C);d.replaceState(S,"",B),u&&v&&v({action:m,location:L.location,delta:0})}function H(w){return Vp(w)}let L={get action(){return m},get location(){return t(o,d)},listen(w){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(co,b),v=w,()=>{o.removeEventListener(co,b),v=null}},createHref(w){return c(o,w)},createURL:H,encodeLocation(w){let V=H(w);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:y,replace:M,go(w){return d.go(w)}};return L}function Vp(t,c=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),S2(n,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:ut(t);return l=l.replace(/ $/,"%20"),!c&&l.startsWith("//")&&(l=n+l),new URL(l,n)}function rh(t,c,n="/"){return Bp(t,c,n,!1)}function Bp(t,c,n,l){let o=typeof c=="string"?K0(c):c,u=A3(o.pathname||"/",n);if(u==null)return null;let d=lh(t);jp(d);let m=null;for(let v=0;m==null&&v{let x={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(l)&&v)return;S2(x.relativePath.startsWith(l),`Absolute route path "${x.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(l.length)}let b=S3([l,x.relativePath]),y=n.concat(x);d.children&&d.children.length>0&&(S2(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),lh(d.children,c,y,b,v)),!(d.path==null&&!d.index)&&c.push({path:b,score:qp(b,d.index),routesMeta:y})};return t.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))u(d,m);else for(let v of ih(d.path))u(d,m,!0,v)}),c}function ih(t){let c=t.split("/");if(c.length===0)return[];let[n,...l]=c,o=n.endsWith("?"),u=n.replace(/\?$/,"");if(l.length===0)return o?[u,""]:[u];let d=ih(l.join("/")),m=[];return m.push(...d.map(v=>v===""?u:[u,v].join("/"))),o&&m.push(...d),m.map(v=>t.startsWith("/")&&v===""?"/":v)}function jp(t){t.sort((c,n)=>c.score!==n.score?n.score-c.score:Dp(c.routesMeta.map(l=>l.childrenIndex),n.routesMeta.map(l=>l.childrenIndex)))}var Np=/^:[\w-]+$/,kp=3,Fp=2,Rp=1,Ep=10,Tp=-2,no=t=>t==="*";function qp(t,c){let n=t.split("/"),l=n.length;return n.some(no)&&(l+=Tp),c&&(l+=Fp),n.filter(o=>!no(o)).reduce((o,u)=>o+(Np.test(u)?kp:u===""?Rp:Ep),l)}function Dp(t,c){return t.length===c.length&&t.slice(0,-1).every((l,o)=>l===c[o])?t[t.length-1]-c[c.length-1]:0}function _p(t,c,n=!1){let{routesMeta:l}=t,o={},u="/",d=[];for(let m=0;m{if(x==="*"){let H=m[y]||"";d=u.slice(0,u.length-H.length).replace(/(.)\/+$/,"$1")}const M=m[y];return b&&!M?g[x]=void 0:g[x]=(M||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:d,pattern:t}}function Op(t,c=!1,n=!0){Z4(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 l=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,v)=>(l.push({paramName:m,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(l.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,c?void 0:"i"),l]}function Up(t){try{return t.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return Z4(!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 (${c}).`),t}}function A3(t,c){if(c==="/")return t;if(!t.toLowerCase().startsWith(c.toLowerCase()))return null;let n=c.endsWith("/")?c.length-1:c.length,l=t.charAt(n);return l&&l!=="/"?null:t.slice(n)||"/"}var Ip=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pp=t=>Ip.test(t);function $p(t,c="/"){let{pathname:n,search:l="",hash:o=""}=typeof t=="string"?K0(t):t,u;if(n)if(Pp(n))u=n;else{if(n.includes("//")){let d=n;n=n.replace(/\/\/+/g,"/"),Z4(!1,`Pathnames cannot have embedded double slashes - normalizing ${d} -> ${n}`)}n.startsWith("/")?u=ro(n.substring(1),"/"):u=ro(n,c)}else u=c;return{pathname:u,search:Yp(l),hash:Kp(o)}}function ro(t,c){let n=c.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Bc(t,c,n,l){return`Cannot include a '${t}' character in a manually specified \`to.${c}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Zp(t){return t.filter((c,n)=>n===0||c.route.path&&c.route.path.length>0)}function sh(t){let c=Zp(t);return c.map((n,l)=>l===c.length-1?n.pathname:n.pathnameBase)}function oh(t,c,n,l=!1){let o;typeof t=="string"?o=K0(t):(o={...t},S2(!o.pathname||!o.pathname.includes("?"),Bc("?","pathname","search",o)),S2(!o.pathname||!o.pathname.includes("#"),Bc("#","pathname","hash",o)),S2(!o.search||!o.search.includes("#"),Bc("#","search","hash",o)));let u=t===""||o.pathname==="",d=u?"/":o.pathname,m;if(d==null)m=n;else{let b=c.length-1;if(!l&&d.startsWith("..")){let y=d.split("/");for(;y[0]==="..";)y.shift(),b-=1;o.pathname=y.join("/")}m=b>=0?c[b]:"/"}let v=$p(o,m),g=d&&d!=="/"&&d.endsWith("/"),x=(u||d===".")&&n.endsWith("/");return!v.pathname.endsWith("/")&&(g||x)&&(v.pathname+="/"),v}var S3=t=>t.join("/").replace(/\/\/+/g,"/"),Gp=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Yp=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Kp=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Qp(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var uh=["POST","PUT","PATCH","DELETE"];new Set(uh);var Xp=["GET",...uh];new Set(Xp);var Q0=f.createContext(null);Q0.displayName="DataRouter";var Ke=f.createContext(null);Ke.displayName="DataRouterState";f.createContext(!1);var hh=f.createContext({isTransitioning:!1});hh.displayName="ViewTransition";var Wp=f.createContext(new Map);Wp.displayName="Fetchers";var Jp=f.createContext(null);Jp.displayName="Await";var e3=f.createContext(null);e3.displayName="Navigation";var wt=f.createContext(null);wt.displayName="Location";var H3=f.createContext({outlet:null,matches:[],isDataRoute:!1});H3.displayName="Route";var cn=f.createContext(null);cn.displayName="RouteError";function tx(t,{relative:c}={}){S2(Ct(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:l}=f.useContext(e3),{hash:o,pathname:u,search:d}=St(t,{relative:c}),m=u;return n!=="/"&&(m=u==="/"?n:S3([n,u])),l.createHref({pathname:m,search:d,hash:o})}function Ct(){return f.useContext(wt)!=null}function R6(){return S2(Ct(),"useLocation() may be used only in the context of a component."),f.useContext(wt).location}var dh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fh(t){f.useContext(e3).static||f.useLayoutEffect(t)}function an(){let{isDataRoute:t}=f.useContext(H3);return t?fx():ex()}function ex(){S2(Ct(),"useNavigate() may be used only in the context of a component.");let t=f.useContext(Q0),{basename:c,navigator:n}=f.useContext(e3),{matches:l}=f.useContext(H3),{pathname:o}=R6(),u=JSON.stringify(sh(l)),d=f.useRef(!1);return fh(()=>{d.current=!0}),f.useCallback((v,g={})=>{if(Z4(d.current,dh),!d.current)return;if(typeof v=="number"){n.go(v);return}let x=oh(v,JSON.parse(u),o,g.relative==="path");t==null&&c!=="/"&&(x.pathname=x.pathname==="/"?c:S3([c,x.pathname])),(g.replace?n.replace:n.push)(x,g.state,g)},[c,n,u,o,t])}f.createContext(null);function St(t,{relative:c}={}){let{matches:n}=f.useContext(H3),{pathname:l}=R6(),o=JSON.stringify(sh(n));return f.useMemo(()=>oh(t,JSON.parse(o),l,c==="path"),[t,o,l,c])}function cx(t,c){return mh(t,c)}function mh(t,c,n,l,o){S2(Ct(),"useRoutes() may be used only in the context of a component.");let{navigator:u}=f.useContext(e3),{matches:d}=f.useContext(H3),m=d[d.length-1],v=m?m.params:{},g=m?m.pathname:"/",x=m?m.pathnameBase:"/",b=m&&m.route;{let C=b&&b.path||"";vh(g,!b||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (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 y=R6(),M;if(c){let C=typeof c=="string"?K0(c):c;S2(x==="/"||C.pathname?.startsWith(x),`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 "${x}" but pathname "${C.pathname}" was given in the \`location\` prop.`),M=C}else M=y;let H=M.pathname||"/",L=H;if(x!=="/"){let C=x.replace(/^\//,"").split("/");L="/"+H.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=rh(t,{pathname:L});Z4(b||w!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Z4(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.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 V=ix(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},v,C.params),pathname:S3([x,u.encodeLocation?u.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?x:S3([x,u.encodeLocation?u.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),d,n,l,o);return c&&V?f.createElement(wt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},V):V}function ax(){let t=dx(),c=Qp(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},u={padding:"2px 4px",backgroundColor:l},d=null;return console.error("Error handled by React Router default ErrorBoundary:",t),d=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:u},"ErrorBoundary")," or"," ",f.createElement("code",{style:u},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},c),n?f.createElement("pre",{style:o},n):null,d)}var nx=f.createElement(ax,null),rx=class extends f.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,c){return c.location!==t.location||c.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:c.error,location:c.location,revalidation:t.revalidation||c.revalidation}}componentDidCatch(t,c){this.props.onError?this.props.onError(t,c):console.error("React Router caught the following error during render",t)}render(){return this.state.error!==void 0?f.createElement(H3.Provider,{value:this.props.routeContext},f.createElement(cn.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function lx({routeContext:t,match:c,children:n}){let l=f.useContext(Q0);return l&&l.static&&l.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=c.route.id),f.createElement(H3.Provider,{value:t},n)}function ix(t,c=[],n=null,l=null,o=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(c.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,d=n?.errors;if(d!=null){let x=u.findIndex(b=>b.route.id&&d?.[b.route.id]!==void 0);S2(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let m=!1,v=-1;if(n)for(let x=0;x=0?u=u.slice(0,v+1):u=[u[0]];break}}}let g=n&&l?(x,b)=>{l(x,{location:n.location,params:n.matches?.[0]?.params??{},errorInfo:b})}:void 0;return u.reduceRight((x,b,y)=>{let M,H=!1,L=null,w=null;n&&(M=d&&b.route.id?d[b.route.id]:void 0,L=b.route.errorElement||nx,m&&(v<0&&y===0?(vh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,w=null):v===y&&(H=!0,w=b.route.hydrateFallbackElement||null)));let V=c.concat(u.slice(0,y+1)),C=()=>{let S;return M?S=L:H?S=w:b.route.Component?S=f.createElement(b.route.Component,null):b.route.element?S=b.route.element:S=x,f.createElement(lx,{match:b,routeContext:{outlet:x,matches:V,isDataRoute:n!=null},children:S})};return n&&(b.route.ErrorBoundary||b.route.errorElement||y===0)?f.createElement(rx,{location:n.location,revalidation:n.revalidation,component:L,error:M,children:C(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:g}):C()},null)}function nn(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sx(t){let c=f.useContext(Q0);return S2(c,nn(t)),c}function ox(t){let c=f.useContext(Ke);return S2(c,nn(t)),c}function ux(t){let c=f.useContext(H3);return S2(c,nn(t)),c}function rn(t){let c=ux(t),n=c.matches[c.matches.length-1];return S2(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function hx(){return rn("useRouteId")}function dx(){let t=f.useContext(cn),c=ox("useRouteError"),n=rn("useRouteError");return t!==void 0?t:c.errors?.[n]}function fx(){let{router:t}=sx("useNavigate"),c=rn("useNavigate"),n=f.useRef(!1);return fh(()=>{n.current=!0}),f.useCallback(async(o,u={})=>{Z4(n.current,dh),n.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:c,...u}))},[t,c])}var lo={};function vh(t,c,n){!c&&!lo[t]&&(lo[t]=!0,Z4(!1,n))}f.memo(mx);function mx({routes:t,future:c,state:n,unstable_onError:l}){return mh(t,void 0,n,l,c)}function y3(t){S2(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function vx({basename:t="/",children:c=null,location:n,navigationType:l="POP",navigator:o,static:u=!1}){S2(!Ct(),"You cannot render a inside another . You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),m=f.useMemo(()=>({basename:d,navigator:o,static:u,future:{}}),[d,o,u]);typeof n=="string"&&(n=K0(n));let{pathname:v="/",search:g="",hash:x="",state:b=null,key:y="default"}=n,M=f.useMemo(()=>{let H=A3(v,d);return H==null?null:{location:{pathname:H,search:g,hash:x,state:b,key:y},navigationType:l}},[d,v,g,x,b,y,l]);return Z4(M!=null,` is not able to match the URL "${v}${g}${x}" because it does not start with the basename, so the won't render anything.`),M==null?null:f.createElement(e3.Provider,{value:m},f.createElement(wt.Provider,{children:c,value:M}))}function px({children:t,location:c}){return cx(xa(t),c)}function xa(t,c=[]){let n=[];return f.Children.forEach(t,(l,o)=>{if(!f.isValidElement(l))return;let u=[...c,o];if(l.type===f.Fragment){n.push.apply(n,xa(l.props.children,u));return}S2(l.type===y3,`[${typeof l.type=="string"?l.type:l.type.name}] is not a component. All component children of must be a or `),S2(!l.props.index||!l.props.children,"An index route cannot have child routes.");let d={id:l.props.id||u.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(d.children=xa(l.props.children,u)),n.push(d)}),n}var xe="get",ge="application/x-www-form-urlencoded";function Qe(t){return t!=null&&typeof t.tagName=="string"}function xx(t){return Qe(t)&&t.tagName.toLowerCase()==="button"}function gx(t){return Qe(t)&&t.tagName.toLowerCase()==="form"}function zx(t){return Qe(t)&&t.tagName.toLowerCase()==="input"}function bx(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function yx(t,c){return t.button===0&&(!c||c==="_self")&&!bx(t)}var Z5=null;function Mx(){if(Z5===null)try{new FormData(document.createElement("form"),0),Z5=!1}catch{Z5=!0}return Z5}var wx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jc(t){return t!=null&&!wx.has(t)?(Z4(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ge}"`),null):t}function Cx(t,c){let n,l,o,u,d;if(gx(t)){let m=t.getAttribute("action");l=m?A3(m,c):null,n=t.getAttribute("method")||xe,o=jc(t.getAttribute("enctype"))||ge,u=new FormData(t)}else if(xx(t)||zx(t)&&(t.type==="submit"||t.type==="image")){let m=t.form;if(m==null)throw new Error('Cannot submit a