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 n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function l(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();const cg="modulepreload",ag=function(t){return"/"+t},Zo={},Xa=function(n,r,l){let s=Promise.resolve();if(r&&r.length>0){let v=function(x){return Promise.all(x.map(p=>Promise.resolve(p).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");s=v(r.map(x=>{if(x=ag(x),x in Zo)return;Zo[x]=!0;const p=x.endsWith(".css"),b=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${x}"]${b}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":cg,p||(y.as="script"),y.crossOrigin="",y.href=x,m&&y.setAttribute("nonce",m),document.head.appendChild(y),p)return new Promise((w,S)=>{y.addEventListener("load",w),y.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${x}`)))})}))}function o(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return s.then(h=>{for(const m of h||[])m.status==="rejected"&&o(m.reason);return n().catch(o)})};function Ch(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qc={exports:{}},ie={};var Go;function rg(){if(Go)return ie;Go=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(l,s,o){var h=null;if(o!==void 0&&(h=""+o),s.key!==void 0&&(h=""+s.key),"key"in s){o={};for(var m in s)m!=="key"&&(o[m]=s[m])}else o=s;return s=o.ref,{$$typeof:t,type:l,key:h,ref:s!==void 0?s:null,props:o}}return ie.Fragment=n,ie.jsx=r,ie.jsxs=r,ie}var Yo;function lg(){return Yo||(Yo=1,Qc.exports=rg()),Qc.exports}var a=lg(),Wc={exports:{}},X1={};var Ko;function ig(){if(Ko)return X1;Ko=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),y=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=y&&O[y]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,M={};function V(O,P,e1){this.props=O,this.context=P,this.refs=M,this.updater=e1||S}V.prototype.isReactComponent={},V.prototype.setState=function(O,P){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,P,"setState")},V.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function A(){}A.prototype=V.prototype;function C(O,P,e1){this.props=O,this.context=P,this.refs=M,this.updater=e1||S}var N=C.prototype=new A;N.constructor=C,H(N,V.prototype),N.isPureReactComponent=!0;var k=Array.isArray;function E(){}var F={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function B(O,P,e1){var W=e1.ref;return{$$typeof:t,type:O,key:P,ref:W!==void 0?W:null,props:e1}}function D(O,P){return B(O.type,P,O.props)}function T(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function q(O){var P={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(e1){return P[e1]})}var J=/\/+/g;function t1(O,P){return typeof O=="object"&&O!==null&&O.key!=null?q(""+O.key):P.toString(36)}function Z(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(E,E):(O.status="pending",O.then(function(P){O.status==="pending"&&(O.status="fulfilled",O.value=P)},function(P){O.status==="pending"&&(O.status="rejected",O.reason=P)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function _(O,P,e1,W,Y){var K=typeof O;(K==="undefined"||K==="boolean")&&(O=null);var o1=!1;if(O===null)o1=!0;else switch(K){case"bigint":case"string":case"number":o1=!0;break;case"object":switch(O.$$typeof){case t:case n:o1=!0;break;case p:return o1=O._init,_(o1(O._payload),P,e1,W,Y)}}if(o1)return Y=Y(O),o1=W===""?"."+t1(O,0):W,k(Y)?(e1="",o1!=null&&(e1=o1.replace(J,"$&/")+"/"),_(Y,P,e1,"",function(j1){return j1})):Y!=null&&(T(Y)&&(Y=D(Y,e1+(Y.key==null||O&&O.key===Y.key?"":(""+Y.key).replace(J,"$&/")+"/")+o1)),P.push(Y)),1;o1=0;var y1=W===""?".":W+":";if(k(O))for(var C1=0;C1>>1,p1=_[s1];if(0>>1;s1s(e1,Q))Ws(Y,e1)?(_[s1]=Y,_[W]=Q,s1=W):(_[s1]=e1,_[P]=Q,s1=P);else if(Ws(Y,Q))_[s1]=Y,_[W]=Q,s1=W;else break t}}return I}function s(_,I){var Q=_.sortIndex-I.sortIndex;return Q!==0?Q:_.id-I.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var h=Date,m=h.now();t.unstable_now=function(){return h.now()-m}}var v=[],x=[],p=1,b=null,y=3,w=!1,S=!1,H=!1,M=!1,V=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function N(_){for(var I=r(x);I!==null;){if(I.callback===null)l(x);else if(I.startTime<=_)l(x),I.sortIndex=I.expirationTime,n(v,I);else break;I=r(x)}}function k(_){if(H=!1,N(_),!S)if(r(v)!==null)S=!0,E||(E=!0,q());else{var I=r(x);I!==null&&Z(k,I.startTime-_)}}var E=!1,F=-1,j=5,B=-1;function D(){return M?!0:!(t.unstable_now()-B_&&D());){var s1=b.callback;if(typeof s1=="function"){b.callback=null,y=b.priorityLevel;var p1=s1(b.expirationTime<=_);if(_=t.unstable_now(),typeof p1=="function"){b.callback=p1,N(_),I=!0;break e}b===r(v)&&l(v),N(_)}else l(v);b=r(v)}if(b!==null)I=!0;else{var O=r(x);O!==null&&Z(k,O.startTime-_),I=!1}}break t}finally{b=null,y=Q,w=!1}I=void 0}}finally{I?q():E=!1}}}var q;if(typeof C=="function")q=function(){C(T)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,t1=J.port2;J.port1.onmessage=T,q=function(){t1.postMessage(null)}}else q=function(){V(T,0)};function Z(_,I){F=V(function(){_(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(_){_.callback=null},t.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<_?Math.floor(1e3/_):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_next=function(_){switch(y){case 1:case 2:case 3:var I=3;break;default:I=y}var Q=y;y=I;try{return _()}finally{y=Q}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var Q=y;y=_;try{return I()}finally{y=Q}},t.unstable_scheduleCallback=function(_,I,Q){var s1=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0s1?(_.sortIndex=Q,n(x,_),r(v)===null&&_===r(x)&&(H?(A(F),F=-1):H=!0,Z(k,Q-s1))):(_.sortIndex=p1,n(v,_),S||w||(S=!0,E||(E=!0,q()))),_},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(_){var I=y;return function(){var Q=y;y=I;try{return _.apply(this,arguments)}finally{y=Q}}}})(ea)),ea}var Wo;function og(){return Wo||(Wo=1,ta.exports=sg()),ta.exports}var na={exports:{}},c4={};var Jo;function ug(){if(Jo)return c4;Jo=1;var t=P9();function n(v){var x="https://react.dev/errors/"+v;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),na.exports=ug(),na.exports}var eu;function dg(){if(eu)return se;eu=1;var t=og(),n=P9(),r=Sh();function l(e){var c="https://react.dev/errors/"+e;if(1p1||(e.current=s1[p1],s1[p1]=null,p1--)}function e1(e,c){p1++,s1[p1]=e.current,e.current=c}var W=O(null),Y=O(null),K=O(null),o1=O(null);function y1(e,c){switch(e1(K,c),e1(Y,e),e1(W,null),c.nodeType){case 9:case 11:e=(e=c.documentElement)&&(e=e.namespaceURI)?vo(e):0;break;default:if(e=c.tagName,c=c.namespaceURI)c=vo(c),e=po(c,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}P(W),e1(W,e)}function C1(){P(W),P(Y),P(K)}function j1(e){e.memoizedState!==null&&e1(o1,e);var c=W.current,i=po(c,e.type);c!==i&&(e1(Y,e),e1(W,i))}function u1(e){Y.current===e&&(P(W),P(Y)),o1.current===e&&(P(o1),ce._currentValue=Q)}var L1,q1;function I1(e){if(L1===void 0)try{throw Error()}catch(i){var c=i.stack.trim().match(/\n( *(at )?)/);L1=c&&c[1]||"",q1=-1)":-1g||U[d]!==a1[g]){var d1=` `+U[d].replace(" at new "," at ");return e.displayName&&d1.includes("")&&(d1=d1.replace("",e.displayName)),d1}while(1<=d&&0<=g);break}}}finally{B1=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?I1(i):""}function g1(e,c){switch(e.tag){case 26:case 27:case 5:return I1(e.type);case 16:return I1("Lazy");case 13:return e.child!==c&&c!==null?I1("Suspense Fallback"):I1("Suspense");case 19:return I1("SuspenseList");case 0:case 15:return w1(e.type,!1);case 11:return w1(e.type.render,!1);case 1:return w1(e.type,!0);case 31:return I1("Activity");default:return""}}function k1(e){try{var c="",i=null;do c+=g1(e,i),i=e,e=e.return;while(e);return c}catch(d){return` Error generating stack: `+d.message+` `+d.stack}}var M1=Object.prototype.hasOwnProperty,V1=t.unstable_scheduleCallback,Y1=t.unstable_cancelCallback,x1=t.unstable_shouldYield,m1=t.unstable_requestPaint,r1=t.unstable_now,b1=t.unstable_getCurrentPriorityLevel,z1=t.unstable_ImmediatePriority,H1=t.unstable_UserBlockingPriority,G1=t.unstable_NormalPriority,W1=t.unstable_LowPriority,n1=t.unstable_IdlePriority,A1=t.log,O1=t.unstable_setDisableYieldValue,K1=null,R1=null;function E1(e){if(typeof A1=="function"&&O1(e),R1&&typeof R1.setStrictMode=="function")try{R1.setStrictMode(K1,e)}catch{}}var i2=Math.clz32?Math.clz32:$1,v1=Math.log,_1=Math.LN2;function $1(e){return e>>>=0,e===0?32:31-(v1(e)/_1|0)|0}var V2=256,G2=262144,X0=4194304;function T1(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&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 v2(e,c,i){var d=e.pendingLanes;if(d===0)return 0;var g=0,z=e.suspendedLanes,L=e.pingedLanes;e=e.warmLanes;var R=d&134217727;return R!==0?(d=R&~z,d!==0?g=T1(d):(L&=R,L!==0?g=T1(L):i||(i=R&~e,i!==0&&(g=T1(i))))):(R=d&~z,R!==0?g=T1(R):L!==0?g=T1(L):i||(i=d&~e,i!==0&&(g=T1(i)))),g===0?0:c!==0&&c!==g&&(c&z)===0&&(z=g&-g,i=c&-c,z>=i||z===32&&(i&4194048)!==0)?c:g}function h2(e,c){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&c)===0}function l2(e,c){switch(e){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 b2(){var e=X0;return X0<<=1,(X0&62914560)===0&&(X0=4194304),e}function g4(e){for(var c=[],i=0;31>i;i++)c.push(e);return c}function I4(e,c){e.pendingLanes|=c,c!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Q0(e,c,i,d,g,z){var L=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 R=e.entanglements,U=e.expirationTimes,a1=e.hiddenUpdates;for(i=L&~i;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Qv=/[\n"\\]/g;function j4(e){return e.replace(Qv,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function I7(e,c,i,d,g,z,L,R){e.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?e.type=L:e.removeAttribute("type"),c!=null?L==="number"?(c===0&&e.value===""||e.value!=c)&&(e.value=""+L4(c)):e.value!==""+L4(c)&&(e.value=""+L4(c)):L!=="submit"&&L!=="reset"||e.removeAttribute("value"),c!=null?$7(e,L,L4(c)):i!=null?$7(e,L,L4(i)):d!=null&&e.removeAttribute("value"),g==null&&z!=null&&(e.defaultChecked=!!z),g!=null&&(e.checked=g&&typeof g!="function"&&typeof g!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+L4(R):e.removeAttribute("name")}function sl(e,c,i,d,g,z,L,R){if(z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(e.type=z),c!=null||i!=null){if(!(z!=="submit"&&z!=="reset"||c!=null)){P7(e);return}i=i!=null?""+L4(i):"",c=c!=null?""+L4(c):i,R||c===e.value||(e.value=c),e.defaultValue=c}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,e.checked=R?e.checked:!!d,e.defaultChecked=!!d,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(e.name=L),P7(e)}function $7(e,c,i){c==="number"&&t8(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function c6(e,c,i,d){if(e=e.options,c){c={};for(var g=0;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),X7=!1;if(p3)try{var yt={};Object.defineProperty(yt,"passive",{get:function(){X7=!0}}),window.addEventListener("test",yt,yt),window.removeEventListener("test",yt,yt)}catch{X7=!1}var q3=null,Q7=null,n8=null;function vl(){if(n8)return n8;var e,c=Q7,i=c.length,d,g="value"in q3?q3.value:q3.textContent,z=g.length;for(e=0;e=Ct),yl=" ",wl=!1;function Ml(e,c){switch(e){case"keyup":return Sp.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cl(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var i6=!1;function Hp(e,c){switch(e){case"compositionend":return Cl(c);case"keypress":return c.which!==32?null:(wl=!0,yl);case"textInput":return e=c.data,e===yl&&wl?null:e;default:return null}}function Lp(e,c){if(i6)return e==="compositionend"||!nn&&Ml(e,c)?(e=vl(),n8=Q7=q3=null,i6=!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=c)return{node:i,offset:c-e};e=d}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Bl(i)}}function Fl(e,c){return e&&c?e===c?!0:e&&e.nodeType===3?!1:c&&c.nodeType===3?Fl(e,c.parentNode):"contains"in e?e.contains(c):e.compareDocumentPosition?!!(e.compareDocumentPosition(c)&16):!1:!1}function Rl(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var c=t8(e.document);c instanceof e.HTMLIFrameElement;){try{var i=typeof c.contentWindow.location.href=="string"}catch{i=!1}if(i)e=c.contentWindow;else break;c=t8(e.document)}return c}function rn(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 Ep=p3&&"documentMode"in document&&11>=document.documentMode,s6=null,ln=null,Lt=null,sn=!1;function El(e,c,i){var d=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;sn||s6==null||s6!==t8(d)||(d=s6,"selectionStart"in d&&rn(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Lt&&Ht(Lt,d)||(Lt=d,d=K8(ln,"onSelect"),0>=L,g-=L,n3=1<<32-i2(c)+g|i<J1?(a2=F1,F1=null):a2=F1.sibling;var o2=l1(X,F1,c1[J1],h1);if(o2===null){F1===null&&(F1=a2);break}e&&F1&&o2.alternate===null&&c(X,F1),$=z(o2,$,J1),s2===null?U1=o2:s2.sibling=o2,s2=o2,F1=a2}if(J1===c1.length)return i(X,F1),r2&&g3(X,J1),U1;if(F1===null){for(;J1J1?(a2=F1,F1=null):a2=F1.sibling;var o0=l1(X,F1,o2.value,h1);if(o0===null){F1===null&&(F1=a2);break}e&&F1&&o0.alternate===null&&c(X,F1),$=z(o0,$,J1),s2===null?U1=o0:s2.sibling=o0,s2=o0,F1=a2}if(o2.done)return i(X,F1),r2&&g3(X,J1),U1;if(F1===null){for(;!o2.done;J1++,o2=c1.next())o2=f1(X,o2.value,h1),o2!==null&&($=z(o2,$,J1),s2===null?U1=o2:s2.sibling=o2,s2=o2);return r2&&g3(X,J1),U1}for(F1=d(F1);!o2.done;J1++,o2=c1.next())o2=i1(F1,X,J1,o2.value,h1),o2!==null&&(e&&o2.alternate!==null&&F1.delete(o2.key===null?J1:o2.key),$=z(o2,$,J1),s2===null?U1=o2:s2.sibling=o2,s2=o2);return e&&F1.forEach(function(ng){return c(X,ng)}),r2&&g3(X,J1),U1}function g2(X,$,c1,h1){if(typeof c1=="object"&&c1!==null&&c1.type===H&&c1.key===null&&(c1=c1.props.children),typeof c1=="object"&&c1!==null){switch(c1.$$typeof){case w:t:{for(var U1=c1.key;$!==null;){if($.key===U1){if(U1=c1.type,U1===H){if($.tag===7){i(X,$.sibling),h1=g($,c1.props.children),h1.return=X,X=h1;break t}}else if($.elementType===U1||typeof U1=="object"&&U1!==null&&U1.$$typeof===j&&N0(U1)===$.type){i(X,$.sibling),h1=g($,c1.props),Ft(h1,c1),h1.return=X,X=h1;break t}i(X,$);break}else c(X,$);$=$.sibling}c1.type===H?(h1=S0(c1.props.children,X.mode,h1,c1.key),h1.return=X,X=h1):(h1=h8(c1.type,c1.key,c1.props,null,X.mode,h1),Ft(h1,c1),h1.return=X,X=h1)}return L(X);case S:t:{for(U1=c1.key;$!==null;){if($.key===U1)if($.tag===4&&$.stateNode.containerInfo===c1.containerInfo&&$.stateNode.implementation===c1.implementation){i(X,$.sibling),h1=g($,c1.children||[]),h1.return=X,X=h1;break t}else{i(X,$);break}else c(X,$);$=$.sibling}h1=vn(c1,X.mode,h1),h1.return=X,X=h1}return L(X);case j:return c1=N0(c1),g2(X,$,c1,h1)}if(Z(c1))return N1(X,$,c1,h1);if(q(c1)){if(U1=q(c1),typeof U1!="function")throw Error(l(150));return c1=U1.call(c1),Z1(X,$,c1,h1)}if(typeof c1.then=="function")return g2(X,$,b8(c1),h1);if(c1.$$typeof===C)return g2(X,$,v8(X,c1),h1);z8(X,c1)}return typeof c1=="string"&&c1!==""||typeof c1=="number"||typeof c1=="bigint"?(c1=""+c1,$!==null&&$.tag===6?(i(X,$.sibling),h1=g($,c1),h1.return=X,X=h1):(i(X,$),h1=fn(c1,X.mode,h1),h1.return=X,X=h1),L(X)):i(X,$)}return function(X,$,c1,h1){try{kt=0;var U1=g2(X,$,c1,h1);return b6=null,U1}catch(F1){if(F1===g6||F1===x8)throw F1;var s2=z4(29,F1,null,X.mode);return s2.lanes=h1,s2.return=X,s2}finally{}}}var B0=ri(!0),li=ri(!1),Z3=!1;function Hn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ln(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 G3(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Y3(e,c,i){var d=e.updateQueue;if(d===null)return null;if(d=d.shared,(d2&2)!==0){var g=d.pending;return g===null?c.next=c:(c.next=g.next,g.next=c),d.pending=c,c=d8(e),Pl(e,null,i),c}return u8(e,d,c,i),d8(e)}function Rt(e,c,i){if(c=c.updateQueue,c!==null&&(c=c.shared,(i&4194048)!==0)){var d=c.lanes;d&=e.pendingLanes,i|=d,c.lanes=i,O3(e,i)}}function jn(e,c){var i=e.updateQueue,d=e.alternate;if(d!==null&&(d=d.updateQueue,i===d)){var g=null,z=null;if(i=i.firstBaseUpdate,i!==null){do{var L={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};z===null?g=z=L:z=z.next=L,i=i.next}while(i!==null);z===null?g=z=c:z=z.next=c}else g=z=c;i={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:z,shared:d.shared,callbacks:d.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=c:e.next=c,i.lastBaseUpdate=c}var Nn=!1;function Et(){if(Nn){var e=x6;if(e!==null)throw e}}function Tt(e,c,i,d){Nn=!1;var g=e.updateQueue;Z3=!1;var z=g.firstBaseUpdate,L=g.lastBaseUpdate,R=g.shared.pending;if(R!==null){g.shared.pending=null;var U=R,a1=U.next;U.next=null,L===null?z=a1:L.next=a1,L=U;var d1=e.alternate;d1!==null&&(d1=d1.updateQueue,R=d1.lastBaseUpdate,R!==L&&(R===null?d1.firstBaseUpdate=a1:R.next=a1,d1.lastBaseUpdate=U))}if(z!==null){var f1=g.baseState;L=0,d1=a1=U=null,R=z;do{var l1=R.lane&-536870913,i1=l1!==R.lane;if(i1?(c2&l1)===l1:(d&l1)===l1){l1!==0&&l1===p6&&(Nn=!0),d1!==null&&(d1=d1.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});t:{var N1=e,Z1=R;l1=c;var g2=i;switch(Z1.tag){case 1:if(N1=Z1.payload,typeof N1=="function"){f1=N1.call(g2,f1,l1);break t}f1=N1;break t;case 3:N1.flags=N1.flags&-65537|128;case 0:if(N1=Z1.payload,l1=typeof N1=="function"?N1.call(g2,f1,l1):N1,l1==null)break t;f1=b({},f1,l1);break t;case 2:Z3=!0}}l1=R.callback,l1!==null&&(e.flags|=64,i1&&(e.flags|=8192),i1=g.callbacks,i1===null?g.callbacks=[l1]:i1.push(l1))}else i1={lane:l1,tag:R.tag,payload:R.payload,callback:R.callback,next:null},d1===null?(a1=d1=i1,U=f1):d1=d1.next=i1,L|=l1;if(R=R.next,R===null){if(R=g.shared.pending,R===null)break;i1=R,R=i1.next,i1.next=null,g.lastBaseUpdate=i1,g.shared.pending=null}}while(!0);d1===null&&(U=f1),g.baseState=U,g.firstBaseUpdate=a1,g.lastBaseUpdate=d1,z===null&&(g.shared.lanes=0),J3|=L,e.lanes=L,e.memoizedState=f1}}function ii(e,c){if(typeof e!="function")throw Error(l(191,e));e.call(c)}function si(e,c){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;ez?z:8;var L=_.T,R={};_.T=R,Kn(e,!1,c,i);try{var U=g(),a1=_.S;if(a1!==null&&a1(R,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var d1=$p(U,d);_t(e,c,d1,S4(e))}else _t(e,c,d,S4(e))}catch(f1){_t(e,c,{then:function(){},status:"rejected",reason:f1},S4())}finally{I.p=z,L!==null&&R.types!==null&&(L.types=R.types),_.T=L}}function Qp(){}function Gn(e,c,i,d){if(e.tag!==5)throw Error(l(476));var g=_i(e).queue;Oi(e,g,c,Q,i===null?Qp:function(){return qi(e),i(d)})}function _i(e){var c=e.memoizedState;if(c!==null)return c;c={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:w3,lastRenderedState:Q},next:null};var i={};return c.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:w3,lastRenderedState:i},next:null},e.memoizedState=c,e=e.alternate,e!==null&&(e.memoizedState=c),c}function qi(e){var c=_i(e);c.next===null&&(c=e.alternate.memoizedState),_t(e,c.next.queue,{},S4())}function Yn(){return t4(ce)}function Ui(){return E2().memoizedState}function Pi(){return E2().memoizedState}function Wp(e){for(var c=e.return;c!==null;){switch(c.tag){case 24:case 3:var i=S4();e=G3(i);var d=Y3(c,e,i);d!==null&&(v4(d,c,i),Rt(d,c,i)),c={cache:Mn()},e.payload=c;return}c=c.return}}function Jp(e,c,i){var d=S4();i={lane:d,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},N8(e)?$i(c,i):(i=hn(e,c,i,d),i!==null&&(v4(i,e,d),Zi(i,c,d)))}function Ii(e,c,i){var d=S4();_t(e,c,i,d)}function _t(e,c,i,d){var g={lane:d,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(N8(e))$i(c,g);else{var z=e.alternate;if(e.lanes===0&&(z===null||z.lanes===0)&&(z=c.lastRenderedReducer,z!==null))try{var L=c.lastRenderedState,R=z(L,i);if(g.hasEagerState=!0,g.eagerState=R,b4(R,L))return u8(e,c,g,0),z2===null&&o8(),!1}catch{}finally{}if(i=hn(e,c,g,d),i!==null)return v4(i,e,d),Zi(i,c,d),!0}return!1}function Kn(e,c,i,d){if(d={lane:2,revertLane:Hc(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},N8(e)){if(c)throw Error(l(479))}else c=hn(e,i,d,2),c!==null&&v4(c,e,2)}function N8(e){var c=e.alternate;return e===Q1||c!==null&&c===Q1}function $i(e,c){y6=M8=!0;var i=e.pending;i===null?c.next=c:(c.next=i.next,i.next=c),e.pending=c}function Zi(e,c,i){if((i&4194048)!==0){var d=c.lanes;d&=e.pendingLanes,i|=d,c.lanes=i,O3(e,i)}}var qt={readContext:t4,use:A8,useCallback:B2,useContext:B2,useEffect:B2,useImperativeHandle:B2,useLayoutEffect:B2,useInsertionEffect:B2,useMemo:B2,useReducer:B2,useRef:B2,useState:B2,useDebugValue:B2,useDeferredValue:B2,useTransition:B2,useSyncExternalStore:B2,useId:B2,useHostTransitionStatus:B2,useFormState:B2,useActionState:B2,useOptimistic:B2,useMemoCache:B2,useCacheRefresh:B2};qt.useEffectEvent=B2;var Gi={readContext:t4,use:A8,useCallback:function(e,c){return l4().memoizedState=[e,c===void 0?null:c],e},useContext:t4,useEffect:Ni,useImperativeHandle:function(e,c,i){i=i!=null?i.concat([e]):null,L8(4194308,4,Fi.bind(null,c,e),i)},useLayoutEffect:function(e,c){return L8(4194308,4,e,c)},useInsertionEffect:function(e,c){L8(4,2,e,c)},useMemo:function(e,c){var i=l4();c=c===void 0?null:c;var d=e();if(k0){E1(!0);try{e()}finally{E1(!1)}}return i.memoizedState=[d,c],d},useReducer:function(e,c,i){var d=l4();if(i!==void 0){var g=i(c);if(k0){E1(!0);try{i(c)}finally{E1(!1)}}}else g=c;return d.memoizedState=d.baseState=g,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:g},d.queue=e,e=e.dispatch=Jp.bind(null,Q1,e),[d.memoizedState,e]},useRef:function(e){var c=l4();return e={current:e},c.memoizedState=e},useState:function(e){e=Un(e);var c=e.queue,i=Ii.bind(null,Q1,c);return c.dispatch=i,[e.memoizedState,i]},useDebugValue:$n,useDeferredValue:function(e,c){var i=l4();return Zn(i,e,c)},useTransition:function(){var e=Un(!1);return e=Oi.bind(null,Q1,e.queue,!0,!1),l4().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,c,i){var d=Q1,g=l4();if(r2){if(i===void 0)throw Error(l(407));i=i()}else{if(i=c(),z2===null)throw Error(l(349));(c2&127)!==0||fi(d,c,i)}g.memoizedState=i;var z={value:i,getSnapshot:c};return g.queue=z,Ni(pi.bind(null,d,z,e),[e]),d.flags|=2048,M6(9,{destroy:void 0},vi.bind(null,d,z,i,c),null),i},useId:function(){var e=l4(),c=z2.identifierPrefix;if(r2){var i=c3,d=n3;i=(d&~(1<<32-i2(d)-1)).toString(32)+i,c="_"+c+"R_"+i,i=C8++,0<\/script>",z=z.removeChild(z.firstChild);break;case"select":z=typeof d.is=="string"?L.createElement("select",{is:d.is}):L.createElement("select"),d.multiple?z.multiple=!0:d.size&&(z.size=d.size);break;default:z=typeof d.is=="string"?L.createElement(g,{is:d.is}):L.createElement(g)}}z[W2]=c,z[o4]=d;t:for(L=c.child;L!==null;){if(L.tag===5||L.tag===6)z.appendChild(L.stateNode);else if(L.tag!==4&&L.tag!==27&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===c)break t;for(;L.sibling===null;){if(L.return===null||L.return===c)break t;L=L.return}L.sibling.return=L.return,L=L.sibling}c.stateNode=z;t:switch(n4(z,g,d),g){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break t;case"img":d=!0;break t;default:d=!1}d&&C3(c)}}return S2(c),oc(c,c.type,e===null?null:e.memoizedProps,c.pendingProps,i),null;case 6:if(e&&c.stateNode!=null)e.memoizedProps!==d&&C3(c);else{if(typeof d!="string"&&c.stateNode===null)throw Error(l(166));if(e=K.current,f6(c)){if(e=c.stateNode,i=c.memoizedProps,d=null,g=J2,g!==null)switch(g.tag){case 27:case 5:d=g.memoizedProps}e[W2]=c,e=!!(e.nodeValue===i||d!==null&&d.suppressHydrationWarning===!0||mo(e.nodeValue,i)),e||I3(c,!0)}else e=X8(e).createTextNode(d),e[W2]=c,c.stateNode=e}return S2(c),null;case 31:if(i=c.memoizedState,e===null||e.memoizedState!==null){if(d=f6(c),i!==null){if(e===null){if(!d)throw Error(l(318));if(e=c.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[W2]=c}else A0(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;S2(c),e=!1}else i=bn(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return c.flags&256?(w4(c),c):(w4(c),null);if((c.flags&128)!==0)throw Error(l(558))}return S2(c),null;case 13:if(d=c.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(g=f6(c),d!==null&&d.dehydrated!==null){if(e===null){if(!g)throw Error(l(318));if(g=c.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(l(317));g[W2]=c}else A0(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;S2(c),g=!1}else g=bn(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=g),g=!0;if(!g)return c.flags&256?(w4(c),c):(w4(c),null)}return w4(c),(c.flags&128)!==0?(c.lanes=i,c):(i=d!==null,e=e!==null&&e.memoizedState!==null,i&&(d=c.child,g=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(g=d.alternate.memoizedState.cachePool.pool),z=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(z=d.memoizedState.cachePool.pool),z!==g&&(d.flags|=2048)),i!==e&&i&&(c.child.flags|=8192),R8(c,c.updateQueue),S2(c),null);case 4:return C1(),e===null&&Vc(c.stateNode.containerInfo),S2(c),null;case 10:return z3(c.type),S2(c),null;case 19:if(P(R2),d=c.memoizedState,d===null)return S2(c),null;if(g=(c.flags&128)!==0,z=d.rendering,z===null)if(g)Pt(d,!1);else{if(k2!==0||e!==null&&(e.flags&128)!==0)for(e=c.child;e!==null;){if(z=w8(e),z!==null){for(c.flags|=128,Pt(d,!1),e=z.updateQueue,c.updateQueue=e,R8(c,e),c.subtreeFlags=0,e=i,i=c.child;i!==null;)Il(i,e),i=i.sibling;return e1(R2,R2.current&1|2),r2&&g3(c,d.treeForkCount),c.child}e=e.sibling}d.tail!==null&&r1()>_8&&(c.flags|=128,g=!0,Pt(d,!1),c.lanes=4194304)}else{if(!g)if(e=w8(z),e!==null){if(c.flags|=128,g=!0,e=e.updateQueue,c.updateQueue=e,R8(c,e),Pt(d,!0),d.tail===null&&d.tailMode==="hidden"&&!z.alternate&&!r2)return S2(c),null}else 2*r1()-d.renderingStartTime>_8&&i!==536870912&&(c.flags|=128,g=!0,Pt(d,!1),c.lanes=4194304);d.isBackwards?(z.sibling=c.child,c.child=z):(e=d.last,e!==null?e.sibling=z:c.child=z,d.last=z)}return d.tail!==null?(e=d.tail,d.rendering=e,d.tail=e.sibling,d.renderingStartTime=r1(),e.sibling=null,i=R2.current,e1(R2,g?i&1|2:i&1),r2&&g3(c,d.treeForkCount),e):(S2(c),null);case 22:case 23:return w4(c),Bn(),d=c.memoizedState!==null,e!==null?e.memoizedState!==null!==d&&(c.flags|=8192):d&&(c.flags|=8192),d?(i&536870912)!==0&&(c.flags&128)===0&&(S2(c),c.subtreeFlags&6&&(c.flags|=8192)):S2(c),i=c.updateQueue,i!==null&&R8(c,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),d=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(d=c.memoizedState.cachePool.pool),d!==i&&(c.flags|=2048),e!==null&&P(j0),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),c.memoizedState.cache!==i&&(c.flags|=2048),z3(_2),S2(c),null;case 25:return null;case 30:return null}throw Error(l(156,c.tag))}function ax(e,c){switch(xn(c),c.tag){case 1:return e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 3:return z3(_2),C1(),e=c.flags,(e&65536)!==0&&(e&128)===0?(c.flags=e&-65537|128,c):null;case 26:case 27:case 5:return u1(c),null;case 31:if(c.memoizedState!==null){if(w4(c),c.alternate===null)throw Error(l(340));A0()}return e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 13:if(w4(c),e=c.memoizedState,e!==null&&e.dehydrated!==null){if(c.alternate===null)throw Error(l(340));A0()}return e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 19:return P(R2),null;case 4:return C1(),null;case 10:return z3(c.type),null;case 22:case 23:return w4(c),Bn(),e!==null&&P(j0),e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 24:return z3(_2),null;case 25:return null;default:return null}}function xs(e,c){switch(xn(c),c.tag){case 3:z3(_2),C1();break;case 26:case 27:case 5:u1(c);break;case 4:C1();break;case 31:c.memoizedState!==null&&w4(c);break;case 13:w4(c);break;case 19:P(R2);break;case 10:z3(c.type);break;case 22:case 23:w4(c),Bn(),e!==null&&P(j0);break;case 24:z3(_2)}}function It(e,c){try{var i=c.updateQueue,d=i!==null?i.lastEffect:null;if(d!==null){var g=d.next;i=g;do{if((i.tag&e)===e){d=void 0;var z=i.create,L=i.inst;d=z(),L.destroy=d}i=i.next}while(i!==g)}}catch(R){f2(c,c.return,R)}}function Q3(e,c,i){try{var d=c.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var z=g.next;d=z;do{if((d.tag&e)===e){var L=d.inst,R=L.destroy;if(R!==void 0){L.destroy=void 0,g=c;var U=i,a1=R;try{a1()}catch(d1){f2(g,U,d1)}}}d=d.next}while(d!==z)}}catch(d1){f2(c,c.return,d1)}}function gs(e){var c=e.updateQueue;if(c!==null){var i=e.stateNode;try{si(c,i)}catch(d){f2(e,e.return,d)}}}function bs(e,c,i){i.props=F0(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(d){f2(e,c,d)}}function $t(e,c){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var d=e.stateNode;break;case 30:d=e.stateNode;break;default:d=e.stateNode}typeof i=="function"?e.refCleanup=i(d):i.current=d}}catch(g){f2(e,c,g)}}function a3(e,c){var i=e.ref,d=e.refCleanup;if(i!==null)if(typeof d=="function")try{d()}catch(g){f2(e,c,g)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(g){f2(e,c,g)}else i.current=null}function zs(e){var c=e.type,i=e.memoizedProps,d=e.stateNode;try{t:switch(c){case"button":case"input":case"select":case"textarea":i.autoFocus&&d.focus();break t;case"img":i.src?d.src=i.src:i.srcSet&&(d.srcset=i.srcSet)}}catch(g){f2(e,e.return,g)}}function uc(e,c,i){try{var d=e.stateNode;Ax(d,e.type,i,c),d[o4]=c}catch(g){f2(e,e.return,g)}}function ys(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&a0(e.type)||e.tag===4}function dc(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||ys(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&&a0(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 hc(e,c,i){var d=e.tag;if(d===5||d===6)e=e.stateNode,c?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,c):(c=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.appendChild(e),i=i._reactRootContainer,i!=null||c.onclick!==null||(c.onclick=v3));else if(d!==4&&(d===27&&a0(e.type)&&(i=e.stateNode,c=null),e=e.child,e!==null))for(hc(e,c,i),e=e.sibling;e!==null;)hc(e,c,i),e=e.sibling}function E8(e,c,i){var d=e.tag;if(d===5||d===6)e=e.stateNode,c?i.insertBefore(e,c):i.appendChild(e);else if(d!==4&&(d===27&&a0(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(E8(e,c,i),e=e.sibling;e!==null;)E8(e,c,i),e=e.sibling}function ws(e){var c=e.stateNode,i=e.memoizedProps;try{for(var d=e.type,g=c.attributes;g.length;)c.removeAttributeNode(g[0]);n4(c,d,i),c[W2]=e,c[o4]=i}catch(z){f2(e,e.return,z)}}var S3=!1,P2=!1,mc=!1,Ms=typeof WeakSet=="function"?WeakSet:Set,X2=null;function rx(e,c){if(e=e.containerInfo,Fc=c5,e=Rl(e),rn(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else t:{i=(i=e.ownerDocument)&&i.defaultView||window;var d=i.getSelection&&i.getSelection();if(d&&d.rangeCount!==0){i=d.anchorNode;var g=d.anchorOffset,z=d.focusNode;d=d.focusOffset;try{i.nodeType,z.nodeType}catch{i=null;break t}var L=0,R=-1,U=-1,a1=0,d1=0,f1=e,l1=null;e:for(;;){for(var i1;f1!==i||g!==0&&f1.nodeType!==3||(R=L+g),f1!==z||d!==0&&f1.nodeType!==3||(U=L+d),f1.nodeType===3&&(L+=f1.nodeValue.length),(i1=f1.firstChild)!==null;)l1=f1,f1=i1;for(;;){if(f1===e)break e;if(l1===i&&++a1===g&&(R=L),l1===z&&++d1===d&&(U=L),(i1=f1.nextSibling)!==null)break;f1=l1,l1=f1.parentNode}f1=i1}i=R===-1||U===-1?null:{start:R,end:U}}else i=null}i=i||{start:0,end:0}}else i=null;for(Rc={focusedElem:e,selectionRange:i},c5=!1,X2=c;X2!==null;)if(c=X2,e=c.child,(c.subtreeFlags&1028)!==0&&e!==null)e.return=c,X2=e;else for(;X2!==null;){switch(c=X2,z=c.alternate,e=c.flags,c.tag){case 0:if((e&4)!==0&&(e=c.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i title"))),n4(z,d,i),z[W2]=e,K2(z),d=z;break t;case"link":var L=No("link","href",g).get(d+(i.href||""));if(L){for(var R=0;Rg2&&(L=g2,g2=Z1,Z1=L);var X=kl(R,Z1),$=kl(R,g2);if(X&&$&&(i1.rangeCount!==1||i1.anchorNode!==X.node||i1.anchorOffset!==X.offset||i1.focusNode!==$.node||i1.focusOffset!==$.offset)){var c1=f1.createRange();c1.setStart(X.node,X.offset),i1.removeAllRanges(),Z1>g2?(i1.addRange(c1),i1.extend($.node,$.offset)):(c1.setEnd($.node,$.offset),i1.addRange(c1))}}}}for(f1=[],i1=R;i1=i1.parentNode;)i1.nodeType===1&&f1.push({element:i1,left:i1.scrollLeft,top:i1.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;Ri?32:i,_.T=null,i=zc,zc=null;var z=e0,L=N3;if(Y2=0,L6=e0=null,N3=0,(d2&6)!==0)throw Error(l(331));var R=d2;if(d2|=4,Fs(z.current),Vs(z,z.current,L,i),d2=R,Qt(0,!1),R1&&typeof R1.onPostCommitFiberRoot=="function")try{R1.onPostCommitFiberRoot(K1,z)}catch{}return!0}finally{I.p=g,_.T=d,Ws(e,c)}}function to(e,c,i){c=V4(i,c),c=Jn(e.stateNode,c,2),e=Y3(e,c,2),e!==null&&(I4(e,2),r3(e))}function f2(e,c,i){if(e.tag===3)to(e,e,i);else for(;c!==null;){if(c.tag===3){to(c,e,i);break}else if(c.tag===1){var d=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(t0===null||!t0.has(d))){e=V4(i,e),i=es(2),d=Y3(c,i,2),d!==null&&(ns(i,d,c,e),I4(d,2),r3(d));break}}c=c.return}}function Cc(e,c,i){var d=e.pingCache;if(d===null){d=e.pingCache=new sx;var g=new Set;d.set(c,g)}else g=d.get(c),g===void 0&&(g=new Set,d.set(c,g));g.has(i)||(pc=!0,g.add(i),e=mx.bind(null,e,c,i),c.then(e,e))}function mx(e,c,i){var d=e.pingCache;d!==null&&d.delete(c),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,z2===e&&(c2&i)===i&&(k2===4||k2===3&&(c2&62914560)===c2&&300>r1()-O8?(d2&2)===0&&j6(e,0):xc|=i,H6===c2&&(H6=0)),r3(e)}function eo(e,c){c===0&&(c=b2()),e=C0(e,c),e!==null&&(I4(e,c),r3(e))}function fx(e){var c=e.memoizedState,i=0;c!==null&&(i=c.retryLane),eo(e,i)}function vx(e,c){var i=0;switch(e.tag){case 31:case 13:var d=e.stateNode,g=e.memoizedState;g!==null&&(i=g.retryLane);break;case 19:d=e.stateNode;break;case 22:d=e.stateNode._retryCache;break;default:throw Error(l(314))}d!==null&&d.delete(c),eo(e,i)}function px(e,c){return V1(e,c)}var Z8=null,V6=null,Sc=!1,G8=!1,Ac=!1,c0=0;function r3(e){e!==V6&&e.next===null&&(V6===null?Z8=V6=e:V6=V6.next=e),G8=!0,Sc||(Sc=!0,gx())}function Qt(e,c){if(!Ac&&G8){Ac=!0;do for(var i=!1,d=Z8;d!==null;){if(e!==0){var g=d.pendingLanes;if(g===0)var z=0;else{var L=d.suspendedLanes,R=d.pingedLanes;z=(1<<31-i2(42|e)+1)-1,z&=g&~(L&~R),z=z&201326741?z&201326741|1:z?z|2:0}z!==0&&(i=!0,ro(d,z))}else z=c2,z=v2(d,d===z2?z:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(z&3)===0||h2(d,z)||(i=!0,ro(d,z));d=d.next}while(i);Ac=!1}}function xx(){no()}function no(){G8=Sc=!1;var e=0;c0!==0&&Lx()&&(e=c0);for(var c=r1(),i=null,d=Z8;d!==null;){var g=d.next,z=co(d,c);z===0?(d.next=null,i===null?Z8=g:i.next=g,g===null&&(V6=i)):(i=d,(e!==0||(z&3)!==0)&&(G8=!0)),d=g}Y2!==0&&Y2!==5||Qt(e),c0!==0&&(c0=0)}function co(e,c){for(var i=e.suspendedLanes,d=e.pingedLanes,g=e.expirationTimes,z=e.pendingLanes&-62914561;0R)break;var d1=U.transferSize,f1=U.initiatorType;d1&&fo(f1)&&(U=U.responseEnd,L+=d1*(U"u"?null:document;function Ao(e,c,i){var d=B6;if(d&&typeof c=="string"&&c){var g=j4(c);g='link[rel="'+e+'"][href="'+g+'"]',typeof i=="string"&&(g+='[crossorigin="'+i+'"]'),So.has(g)||(So.add(g),e={rel:e,crossOrigin:i,href:c},d.querySelector(g)===null&&(c=d.createElement("link"),n4(c,"link",e),K2(c),d.head.appendChild(c)))}}function Tx(e){V3.D(e),Ao("dns-prefetch",e,null)}function Dx(e,c){V3.C(e,c),Ao("preconnect",e,c)}function Ox(e,c,i){V3.L(e,c,i);var d=B6;if(d&&e&&c){var g='link[rel="preload"][as="'+j4(c)+'"]';c==="image"&&i&&i.imageSrcSet?(g+='[imagesrcset="'+j4(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(g+='[imagesizes="'+j4(i.imageSizes)+'"]')):g+='[href="'+j4(e)+'"]';var z=g;switch(c){case"style":z=k6(e);break;case"script":z=F6(e)}T4.has(z)||(e=b({rel:"preload",href:c==="image"&&i&&i.imageSrcSet?void 0:e,as:c},i),T4.set(z,e),d.querySelector(g)!==null||c==="style"&&d.querySelector(ee(z))||c==="script"&&d.querySelector(ne(z))||(c=d.createElement("link"),n4(c,"link",e),K2(c),d.head.appendChild(c)))}}function _x(e,c){V3.m(e,c);var i=B6;if(i&&e){var d=c&&typeof c.as=="string"?c.as:"script",g='link[rel="modulepreload"][as="'+j4(d)+'"][href="'+j4(e)+'"]',z=g;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":z=F6(e)}if(!T4.has(z)&&(e=b({rel:"modulepreload",href:e},c),T4.set(z,e),i.querySelector(g)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ne(z)))return}d=i.createElement("link"),n4(d,"link",e),K2(d),i.head.appendChild(d)}}}function qx(e,c,i){V3.S(e,c,i);var d=B6;if(d&&e){var g=e6(d).hoistableStyles,z=k6(e);c=c||"default";var L=g.get(z);if(!L){var R={loading:0,preload:null};if(L=d.querySelector(ee(z)))R.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":c},i),(i=T4.get(z))&&Uc(e,i);var U=L=d.createElement("link");K2(U),n4(U,"link",e),U._p=new Promise(function(a1,d1){U.onload=a1,U.onerror=d1}),U.addEventListener("load",function(){R.loading|=1}),U.addEventListener("error",function(){R.loading|=2}),R.loading|=4,W8(L,c,d)}L={type:"stylesheet",instance:L,count:1,state:R},g.set(z,L)}}}function Ux(e,c){V3.X(e,c);var i=B6;if(i&&e){var d=e6(i).hoistableScripts,g=F6(e),z=d.get(g);z||(z=i.querySelector(ne(g)),z||(e=b({src:e,async:!0},c),(c=T4.get(g))&&Pc(e,c),z=i.createElement("script"),K2(z),n4(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},d.set(g,z))}}function Px(e,c){V3.M(e,c);var i=B6;if(i&&e){var d=e6(i).hoistableScripts,g=F6(e),z=d.get(g);z||(z=i.querySelector(ne(g)),z||(e=b({src:e,async:!0,type:"module"},c),(c=T4.get(g))&&Pc(e,c),z=i.createElement("script"),K2(z),n4(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},d.set(g,z))}}function Ho(e,c,i,d){var g=(g=K.current)?Q8(g):null;if(!g)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(c=k6(i.href),i=e6(g).hoistableStyles,d=i.get(c),d||(d={type:"style",instance:null,count:0,state:null},i.set(c,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=k6(i.href);var z=e6(g).hoistableStyles,L=z.get(e);if(L||(g=g.ownerDocument||g,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},z.set(e,L),(z=g.querySelector(ee(e)))&&!z._p&&(L.instance=z,L.state.loading=5),T4.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},T4.set(e,i),z||Ix(g,e,i,L.state))),c&&d===null)throw Error(l(528,""));return L}if(c&&d!==null)throw Error(l(529,""));return null;case"script":return c=i.async,i=i.src,typeof i=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=F6(i),i=e6(g).hoistableScripts,d=i.get(c),d||(d={type:"script",instance:null,count:0,state:null},i.set(c,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function k6(e){return'href="'+j4(e)+'"'}function ee(e){return'link[rel="stylesheet"]['+e+"]"}function Lo(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Ix(e,c,i,d){e.querySelector('link[rel="preload"][as="style"]['+c+"]")?d.loading=1:(c=e.createElement("link"),d.preload=c,c.addEventListener("load",function(){return d.loading|=1}),c.addEventListener("error",function(){return d.loading|=2}),n4(c,"link",i),K2(c),e.head.appendChild(c))}function F6(e){return'[src="'+j4(e)+'"]'}function ne(e){return"script[async]"+e}function jo(e,c,i){if(c.count++,c.instance===null)switch(c.type){case"style":var d=e.querySelector('style[data-href~="'+j4(i.href)+'"]');if(d)return c.instance=d,K2(d),d;var g=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return d=(e.ownerDocument||e).createElement("style"),K2(d),n4(d,"style",g),W8(d,i.precedence,e),c.instance=d;case"stylesheet":g=k6(i.href);var z=e.querySelector(ee(g));if(z)return c.state.loading|=4,c.instance=z,K2(z),z;d=Lo(i),(g=T4.get(g))&&Uc(d,g),z=(e.ownerDocument||e).createElement("link"),K2(z);var L=z;return L._p=new Promise(function(R,U){L.onload=R,L.onerror=U}),n4(z,"link",d),c.state.loading|=4,W8(z,i.precedence,e),c.instance=z;case"script":return z=F6(i.src),(g=e.querySelector(ne(z)))?(c.instance=g,K2(g),g):(d=i,(g=T4.get(z))&&(d=b({},i),Pc(d,g)),e=e.ownerDocument||e,g=e.createElement("script"),K2(g),n4(g,"link",d),e.head.appendChild(g),c.instance=g);case"void":return null;default:throw Error(l(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(d=c.instance,c.state.loading|=4,W8(d,i.precedence,e));return c.instance}function W8(e,c,i){for(var d=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=d.length?d[d.length-1]:null,z=g,L=0;L title"):null)}function $x(e,c,i){if(i===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;switch(c.rel){case"stylesheet":return e=c.disabled,typeof c.precedence=="string"&&e==null;default:return!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 Bo(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Zx(e,c,i,d){if(i.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var g=k6(d.href),z=c.querySelector(ee(g));if(z){c=z._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(e.count++,e=t5.bind(e),c.then(e,e)),i.state.loading|=4,i.instance=z,K2(z);return}z=c.ownerDocument||c,d=Lo(d),(g=T4.get(g))&&Uc(d,g),z=z.createElement("link"),K2(z);var L=z;L._p=new Promise(function(R,U){L.onload=R,L.onerror=U}),n4(z,"link",d),i.instance=z}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,c),(c=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=t5.bind(e),c.addEventListener("load",i),c.addEventListener("error",i))}}var Ic=0;function Gx(e,c){return e.stylesheets&&e.count===0&&n5(e,e.stylesheets),0Ic?50:800)+c);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(d),clearTimeout(g)}}:null}function t5(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)n5(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var e5=null;function n5(e,c){e.stylesheets=null,e.unsuspend!==null&&(e.count++,e5=new Map,c.forEach(Yx,e),e5=null,t5.call(e))}function Yx(e,c){if(!(c.state.loading&4)){var i=e5.get(e);if(i)var d=i.get(null);else{i=new Map,e5.set(e,i);for(var g=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(n){console.error(n)}}return t(),Jc.exports=dg(),Jc.exports}var mg=hg();var cu="popstate";function fg(t={}){function n(l,s){let{pathname:o,search:h,hash:m}=l.location;return Qa("",{pathname:o,search:h,hash:m},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(l,s){return typeof s=="string"?s:Le(s)}return pg(n,r,null,t)}function j2(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 vg(){return Math.random().toString(36).substring(2,10)}function au(t,n){return{usr:t.state,key:t.key,idx:n}}function Qa(t,n,r=null,l){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof n=="string"?rt(n):n,state:r,key:n&&n.key||l||vg()}}function Le({pathname:t="/",search:n="",hash:r=""}){return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function rt(t){let n={};if(t){let r=t.indexOf("#");r>=0&&(n.hash=t.substring(r),t=t.substring(0,r));let l=t.indexOf("?");l>=0&&(n.search=t.substring(l),t=t.substring(0,l)),t&&(n.pathname=t)}return n}function pg(t,n,r,l={}){let{window:s=document.defaultView,v5Compat:o=!1}=l,h=s.history,m="POP",v=null,x=p();x==null&&(x=0,h.replaceState({...h.state,idx:x},""));function p(){return(h.state||{idx:null}).idx}function b(){m="POP";let M=p(),V=M==null?null:M-x;x=M,v&&v({action:m,location:H.location,delta:V})}function y(M,V){m="PUSH";let A=Qa(H.location,M,V);x=p()+1;let C=au(A,x),N=H.createHref(A);try{h.pushState(C,"",N)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(N)}o&&v&&v({action:m,location:H.location,delta:1})}function w(M,V){m="REPLACE";let A=Qa(H.location,M,V);x=p();let C=au(A,x),N=H.createHref(A);h.replaceState(C,"",N),o&&v&&v({action:m,location:H.location,delta:0})}function S(M){return xg(M)}let H={get action(){return m},get location(){return t(s,h)},listen(M){if(v)throw new Error("A history only accepts one active listener");return s.addEventListener(cu,b),v=M,()=>{s.removeEventListener(cu,b),v=null}},createHref(M){return n(s,M)},createURL:S,encodeLocation(M){let V=S(M);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:y,replace:w,go(M){return h.go(M)}};return H}function xg(t,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),j2(r,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:Le(t);return l=l.replace(/ $/,"%20"),!n&&l.startsWith("//")&&(l=r+l),new URL(l,r)}function Ah(t,n,r="/"){return gg(t,n,r,!1)}function gg(t,n,r,l){let s=typeof n=="string"?rt(n):n,o=R3(s.pathname||"/",r);if(o==null)return null;let h=Hh(t);bg(h);let m=null;for(let v=0;m==null&&v{let p={relativePath:x===void 0?h.path||"":x,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(l)&&v)return;j2(p.relativePath.startsWith(l),`Absolute route path "${p.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(l.length)}let b=F3([l,p.relativePath]),y=r.concat(p);h.children&&h.children.length>0&&(j2(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Hh(h.children,n,y,b,v)),!(h.path==null&&!h.index)&&n.push({path:b,score:Ag(b,h.index),routesMeta:y})};return t.forEach((h,m)=>{if(h.path===""||!h.path?.includes("?"))o(h,m);else for(let v of Lh(h.path))o(h,m,!0,v)}),n}function Lh(t){let n=t.split("/");if(n.length===0)return[];let[r,...l]=n,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(l.length===0)return s?[o,""]:[o];let h=Lh(l.join("/")),m=[];return m.push(...h.map(v=>v===""?o:[o,v].join("/"))),s&&m.push(...h),m.map(v=>t.startsWith("/")&&v===""?"/":v)}function bg(t){t.sort((n,r)=>n.score!==r.score?r.score-n.score:Hg(n.routesMeta.map(l=>l.childrenIndex),r.routesMeta.map(l=>l.childrenIndex)))}var zg=/^:[\w-]+$/,yg=3,wg=2,Mg=1,Cg=10,Sg=-2,ru=t=>t==="*";function Ag(t,n){let r=t.split("/"),l=r.length;return r.some(ru)&&(l+=Sg),n&&(l+=wg),r.filter(s=>!ru(s)).reduce((s,o)=>s+(zg.test(o)?yg:o===""?Mg:Cg),l)}function Hg(t,n){return t.length===n.length&&t.slice(0,-1).every((l,s)=>l===n[s])?t[t.length-1]-n[n.length-1]:0}function Lg(t,n,r=!1){let{routesMeta:l}=t,s={},o="/",h=[];for(let m=0;m{if(p==="*"){let S=m[y]||"";h=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const w=m[y];return b&&!w?x[p]=void 0:x[p]=(w||"").replace(/%2F/g,"/"),x},{}),pathname:o,pathnameBase:h,pattern:t}}function jg(t,n=!1,r=!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 l=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,v)=>(l.push({paramName:m,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(l.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),l]}function Ng(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 R3(t,n){if(n==="/")return t;if(!t.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,l=t.charAt(r);return l&&l!=="/"?null:t.slice(r)||"/"}var Vg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bg=t=>Vg.test(t);function kg(t,n="/"){let{pathname:r,search:l="",hash:s=""}=typeof t=="string"?rt(t):t,o;if(r)if(Bg(r))o=r;else{if(r.includes("//")){let h=r;r=r.replace(/\/\/+/g,"/"),J4(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${r}`)}r.startsWith("/")?o=lu(r.substring(1),"/"):o=lu(r,n)}else o=n;return{pathname:o,search:Eg(l),hash:Tg(s)}}function lu(t,n){let r=n.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function ca(t,n,r,l){return`Cannot include a '${t}' character in a manually specified \`to.${n}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Fg(t){return t.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function jh(t){let n=Fg(t);return n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase)}function Nh(t,n,r,l=!1){let s;typeof t=="string"?s=rt(t):(s={...t},j2(!s.pathname||!s.pathname.includes("?"),ca("?","pathname","search",s)),j2(!s.pathname||!s.pathname.includes("#"),ca("#","pathname","hash",s)),j2(!s.search||!s.search.includes("#"),ca("#","search","hash",s)));let o=t===""||s.pathname==="",h=o?"/":s.pathname,m;if(h==null)m=r;else{let b=n.length-1;if(!l&&h.startsWith("..")){let y=h.split("/");for(;y[0]==="..";)y.shift(),b-=1;s.pathname=y.join("/")}m=b>=0?n[b]:"/"}let v=kg(s,m),x=h&&h!=="/"&&h.endsWith("/"),p=(o||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(x||p)&&(v.pathname+="/"),v}var F3=t=>t.join("/").replace(/\/\/+/g,"/"),Rg=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Eg=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Tg=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Dg(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 Vh=["POST","PUT","PATCH","DELETE"];new Set(Vh);var Og=["GET",...Vh];new Set(Og);var lt=f.createContext(null);lt.displayName="DataRouter";var g7=f.createContext(null);g7.displayName="DataRouterState";f.createContext(!1);var Bh=f.createContext({isTransitioning:!1});Bh.displayName="ViewTransition";var _g=f.createContext(new Map);_g.displayName="Fetchers";var qg=f.createContext(null);qg.displayName="Await";var h3=f.createContext(null);h3.displayName="Navigation";var Ue=f.createContext(null);Ue.displayName="Location";var T3=f.createContext({outlet:null,matches:[],isDataRoute:!1});T3.displayName="Route";var I9=f.createContext(null);I9.displayName="RouteError";function Ug(t,{relative:n}={}){j2(Pe(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:l}=f.useContext(h3),{hash:s,pathname:o,search:h}=Ie(t,{relative:n}),m=o;return r!=="/"&&(m=o==="/"?r:F3([r,o])),l.createHref({pathname:m,search:h,hash:s})}function Pe(){return f.useContext(Ue)!=null}function Z0(){return j2(Pe(),"useLocation() may be used only in the context of a component."),f.useContext(Ue).location}var kh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fh(t){f.useContext(h3).static||f.useLayoutEffect(t)}function $9(){let{isDataRoute:t}=f.useContext(T3);return t?eb():Pg()}function Pg(){j2(Pe(),"useNavigate() may be used only in the context of a component.");let t=f.useContext(lt),{basename:n,navigator:r}=f.useContext(h3),{matches:l}=f.useContext(T3),{pathname:s}=Z0(),o=JSON.stringify(jh(l)),h=f.useRef(!1);return Fh(()=>{h.current=!0}),f.useCallback((v,x={})=>{if(J4(h.current,kh),!h.current)return;if(typeof v=="number"){r.go(v);return}let p=Nh(v,JSON.parse(o),s,x.relative==="path");t==null&&n!=="/"&&(p.pathname=p.pathname==="/"?n:F3([n,p.pathname])),(x.replace?r.replace:r.push)(p,x.state,x)},[n,r,o,s,t])}f.createContext(null);function Ie(t,{relative:n}={}){let{matches:r}=f.useContext(T3),{pathname:l}=Z0(),s=JSON.stringify(jh(r));return f.useMemo(()=>Nh(t,JSON.parse(s),l,n==="path"),[t,s,l,n])}function Ig(t,n){return Rh(t,n)}function Rh(t,n,r,l,s){j2(Pe(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=f.useContext(h3),{matches:h}=f.useContext(T3),m=h[h.length-1],v=m?m.params:{},x=m?m.pathname:"/",p=m?m.pathnameBase:"/",b=m&&m.route;{let A=b&&b.path||"";Eh(x,!b||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${x}" (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=Z0(),w;if(n){let A=typeof n=="string"?rt(n):n;j2(p==="/"||A.pathname?.startsWith(p),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${A.pathname}" was given in the \`location\` prop.`),w=A}else w=y;let S=w.pathname||"/",H=S;if(p!=="/"){let A=p.replace(/^\//,"").split("/");H="/"+S.replace(/^\//,"").split("/").slice(A.length).join("/")}let M=Ah(t,{pathname:H});J4(b||M!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),J4(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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=Kg(M&&M.map(A=>Object.assign({},A,{params:Object.assign({},v,A.params),pathname:F3([p,o.encodeLocation?o.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:F3([p,o.encodeLocation?o.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),h,r,l,s);return n&&V?f.createElement(Ue.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},V):V}function $g(){let t=tb(),n=Dg(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:l},o={padding:"2px 4px",backgroundColor:l},h=null;return console.error("Error handled by React Router default ErrorBoundary:",t),h=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:o},"ErrorBoundary")," or"," ",f.createElement("code",{style:o},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},n),r?f.createElement("pre",{style:s},r):null,h)}var Zg=f.createElement($g,null),Gg=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,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(){return this.state.error!==void 0?f.createElement(T3.Provider,{value:this.props.routeContext},f.createElement(I9.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Yg({routeContext:t,match:n,children:r}){let l=f.useContext(lt);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(T3.Provider,{value:t},r)}function Kg(t,n=[],r=null,l=null,s=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,h=r?.errors;if(h!=null){let p=o.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);j2(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let m=!1,v=-1;if(r)for(let p=0;p=0?o=o.slice(0,v+1):o=[o[0]];break}}}let x=r&&l?(p,b)=>{l(p,{location:r.location,params:r.matches?.[0]?.params??{},errorInfo:b})}:void 0;return o.reduceRight((p,b,y)=>{let w,S=!1,H=null,M=null;r&&(w=h&&b.route.id?h[b.route.id]:void 0,H=b.route.errorElement||Zg,m&&(v<0&&y===0?(Eh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,M=null):v===y&&(S=!0,M=b.route.hydrateFallbackElement||null)));let V=n.concat(o.slice(0,y+1)),A=()=>{let C;return w?C=H:S?C=M:b.route.Component?C=f.createElement(b.route.Component,null):b.route.element?C=b.route.element:C=p,f.createElement(Yg,{match:b,routeContext:{outlet:p,matches:V,isDataRoute:r!=null},children:C})};return r&&(b.route.ErrorBoundary||b.route.errorElement||y===0)?f.createElement(Gg,{location:r.location,revalidation:r.revalidation,component:H,error:w,children:A(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:x}):A()},null)}function Z9(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xg(t){let n=f.useContext(lt);return j2(n,Z9(t)),n}function Qg(t){let n=f.useContext(g7);return j2(n,Z9(t)),n}function Wg(t){let n=f.useContext(T3);return j2(n,Z9(t)),n}function G9(t){let n=Wg(t),r=n.matches[n.matches.length-1];return j2(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Jg(){return G9("useRouteId")}function tb(){let t=f.useContext(I9),n=Qg("useRouteError"),r=G9("useRouteError");return t!==void 0?t:n.errors?.[r]}function eb(){let{router:t}=Xg("useNavigate"),n=G9("useNavigate"),r=f.useRef(!1);return Fh(()=>{r.current=!0}),f.useCallback(async(s,o={})=>{J4(r.current,kh),r.current&&(typeof s=="number"?t.navigate(s):await t.navigate(s,{fromRouteId:n,...o}))},[t,n])}var iu={};function Eh(t,n,r){!n&&!iu[t]&&(iu[t]=!0,J4(!1,r))}f.memo(nb);function nb({routes:t,future:n,state:r,unstable_onError:l}){return Rh(t,void 0,r,l,n)}function l3(t){j2(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function cb({basename:t="/",children:n=null,location:r,navigationType:l="POP",navigator:s,static:o=!1}){j2(!Pe(),"You cannot render a inside another . You should never have more than one in your app.");let h=t.replace(/^\/*/,"/"),m=f.useMemo(()=>({basename:h,navigator:s,static:o,future:{}}),[h,s,o]);typeof r=="string"&&(r=rt(r));let{pathname:v="/",search:x="",hash:p="",state:b=null,key:y="default"}=r,w=f.useMemo(()=>{let S=R3(v,h);return S==null?null:{location:{pathname:S,search:x,hash:p,state:b,key:y},navigationType:l}},[h,v,x,p,b,y,l]);return J4(w!=null,` is not able to match the URL "${v}${x}${p}" because it does not start with the basename, so the won't render anything.`),w==null?null:f.createElement(h3.Provider,{value:m},f.createElement(Ue.Provider,{children:n,value:w}))}function ab({children:t,location:n}){return Ig(Wa(t),n)}function Wa(t,n=[]){let r=[];return f.Children.forEach(t,(l,s)=>{if(!f.isValidElement(l))return;let o=[...n,s];if(l.type===f.Fragment){r.push.apply(r,Wa(l.props.children,o));return}j2(l.type===l3,`[${typeof l.type=="string"?l.type:l.type.name}] is not a component. All component children of must be a or `),j2(!l.props.index||!l.props.children,"An index route cannot have child routes.");let h={id:l.props.id||o.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&&(h.children=Wa(l.props.children,o)),r.push(h)}),r}var T5="get",D5="application/x-www-form-urlencoded";function b7(t){return t!=null&&typeof t.tagName=="string"}function rb(t){return b7(t)&&t.tagName.toLowerCase()==="button"}function lb(t){return b7(t)&&t.tagName.toLowerCase()==="form"}function ib(t){return b7(t)&&t.tagName.toLowerCase()==="input"}function sb(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function ob(t,n){return t.button===0&&(!n||n==="_self")&&!sb(t)}var u5=null;function ub(){if(u5===null)try{new FormData(document.createElement("form"),0),u5=!1}catch{u5=!0}return u5}var db=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function aa(t){return t!=null&&!db.has(t)?(J4(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${D5}"`),null):t}function hb(t,n){let r,l,s,o,h;if(lb(t)){let m=t.getAttribute("action");l=m?R3(m,n):null,r=t.getAttribute("method")||T5,s=aa(t.getAttribute("enctype"))||D5,o=new FormData(t)}else if(rb(t)||ib(t)&&(t.type==="submit"||t.type==="image")){let m=t.form;if(m==null)throw new Error('Cannot submit a