const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ChatWindow-lwjqN6kN.js","assets/table-DdrZJRfd.js","assets/html2canvas.esm-DXEQVQnt.js","assets/check-5AXNRX8s.js","assets/ErDiagramModal-C2Ny26b4.js","assets/ErDiagramModal-BZV40eAE.css","assets/workforceData-BSBrxG-8.js","assets/loader-circle-D78si645.js","assets/database-78qJKe4n.js","assets/WorkforceBuilder-DxOIYxof.js","assets/DataConnectorsView-DqmzS_kM.js","assets/localStorageService-GJD9U3Rq.js","assets/funnel-kA_0Pc5H.js","assets/zohoPeopleService-CpvF4myI.js","assets/ViewBuilder-C4HJdyDU.js","assets/trending-down-Y7zNnyuE.js","assets/ScatterChart-CjqErmUv.js","assets/circle-check-big-eHaBaaQK.js","assets/ControlTower-C4vcEoYg.js","assets/SchemaManagement-DytRLLCO.js","assets/schemaManagementService-CoaRIT30.js","assets/BankScheduler-b4yv5PR3.js","assets/play-CMKxYcys.js","assets/Scheduler-DNXATkpS.js","assets/circle-x-BmB4UEXC.js","assets/ResetPassword-BTx2Cap_.js"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var my=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g5={exports:{}},fg={};var zT;function WV(){if(zT)return fg;zT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:n,key:o,ref:a!==void 0?a:null,props:i}}return fg.Fragment=t,fg.jsx=r,fg.jsxs=r,fg}var HT;function VV(){return HT||(HT=1,g5.exports=WV()),g5.exports}var s=VV(),x5={exports:{}},$r={};var qT;function GV(){if(qT)return $r;qT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),x=Symbol.iterator;function g(ce){return ce===null||typeof ce!="object"?null:(ce=x&&ce[x]||ce["@@iterator"],typeof ce=="function"?ce:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function N(ce,D,V){this.props=ce,this.context=D,this.refs=b,this.updater=V||w}N.prototype.isReactComponent={},N.prototype.setState=function(ce,D){if(typeof ce!="object"&&typeof ce!="function"&&ce!=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,ce,D,"setState")},N.prototype.forceUpdate=function(ce){this.updater.enqueueForceUpdate(this,ce,"forceUpdate")};function A(){}A.prototype=N.prototype;function j(ce,D,V){this.props=ce,this.context=D,this.refs=b,this.updater=V||w}var k=j.prototype=new A;k.constructor=j,y(k,N.prototype),k.isPureReactComponent=!0;var T=Array.isArray;function E(){}var O={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function P(ce,D,V){var q=V.ref;return{$$typeof:e,type:ce,key:D,ref:q!==void 0?q:null,props:V}}function U(ce,D){return P(ce.type,D,ce.props)}function M(ce){return typeof ce=="object"&&ce!==null&&ce.$$typeof===e}function F(ce){var D={"=":"=0",":":"=2"};return"$"+ce.replace(/[=:]/g,function(V){return D[V]})}var H=/\/+/g;function te(ce,D){return typeof ce=="object"&&ce!==null&&ce.key!=null?F(""+ce.key):D.toString(36)}function ie(ce){switch(ce.status){case"fulfilled":return ce.value;case"rejected":throw ce.reason;default:switch(typeof ce.status=="string"?ce.then(E,E):(ce.status="pending",ce.then(function(D){ce.status==="pending"&&(ce.status="fulfilled",ce.value=D)},function(D){ce.status==="pending"&&(ce.status="rejected",ce.reason=D)})),ce.status){case"fulfilled":return ce.value;case"rejected":throw ce.reason}}throw ce}function G(ce,D,V,q,X){var ne=typeof ce;(ne==="undefined"||ne==="boolean")&&(ce=null);var ye=!1;if(ce===null)ye=!0;else switch(ne){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(ce.$$typeof){case e:case t:ye=!0;break;case h:return ye=ce._init,G(ye(ce._payload),D,V,q,X)}}if(ye)return X=X(ce),ye=q===""?"."+te(ce,0):q,T(X)?(V="",ye!=null&&(V=ye.replace(H,"$&/")+"/"),G(X,D,V,"",function(ve){return ve})):X!=null&&(M(X)&&(X=U(X,V+(X.key==null||ce&&ce.key===X.key?"":(""+X.key).replace(H,"$&/")+"/")+ye)),D.push(X)),1;ye=0;var xe=q===""?".":q+":";if(T(ce))for(var Y=0;Y>>1,ke=G[le];if(0>>1;lea(V,se))qa(X,V)?(G[le]=X,G[q]=se,le=q):(G[le]=V,G[D]=se,le=D);else if(qa(X,se))G[le]=X,G[q]=se,le=q;else break e}}return ee}function a(G,ee){var se=G.sortIndex-ee.sortIndex;return se!==0?se:G.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],d=[],h=1,m=null,x=3,g=!1,w=!1,y=!1,b=!1,N=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function k(G){for(var ee=r(d);ee!==null;){if(ee.callback===null)n(d);else if(ee.startTime<=G)n(d),ee.sortIndex=ee.expirationTime,t(u,ee);else break;ee=r(d)}}function T(G){if(y=!1,k(G),!w)if(r(u)!==null)w=!0,E||(E=!0,F());else{var ee=r(d);ee!==null&&ie(T,ee.startTime-G)}}var E=!1,O=-1,I=5,P=-1;function U(){return b?!0:!(e.unstable_now()-PG&&U());){var le=m.callback;if(typeof le=="function"){m.callback=null,x=m.priorityLevel;var ke=le(m.expirationTime<=G);if(G=e.unstable_now(),typeof ke=="function"){m.callback=ke,k(G),ee=!0;break t}m===r(u)&&n(u),k(G)}else n(u);m=r(u)}if(m!==null)ee=!0;else{var ce=r(d);ce!==null&&ie(T,ce.startTime-G),ee=!1}}break e}finally{m=null,x=se,g=!1}ee=void 0}}finally{ee?F():E=!1}}}var F;if(typeof j=="function")F=function(){j(M)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,te=H.port2;H.port1.onmessage=M,F=function(){te.postMessage(null)}}else F=function(){N(M,0)};function ie(G,ee){O=N(function(){G(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_forceFrameRate=function(G){0>G||125le?(G.sortIndex=se,t(d,G),r(u)===null&&G===r(d)&&(y?(A(O),O=-1):y=!0,ie(T,se-le))):(G.sortIndex=ke,t(u,G),w||g||(w=!0,E||(E=!0,F()))),G},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(G){var ee=x;return function(){var se=x;x=ee;try{return G.apply(this,arguments)}finally{x=se}}}})(b5)),b5}var GT;function KV(){return GT||(GT=1,v5.exports=YV()),v5.exports}var w5={exports:{}},As={};var YT;function XV(){if(YT)return As;YT=1;var e=OA();function t(u){var d="https://react.dev/errors/"+u;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),w5.exports=XV(),w5.exports}var XT;function ZV(){if(XT)return hg;XT=1;var e=KV(),t=OA(),r=HI();function n(c){var f="https://react.dev/errors/"+c;if(1ke||(c.current=le[ke],le[ke]=null,ke--)}function V(c,f){ke++,le[ke]=c.current,c.current=f}var q=ce(null),X=ce(null),ne=ce(null),ye=ce(null);function xe(c,f){switch(V(ne,f),V(X,c),V(q,null),f.nodeType){case 9:case 11:c=(c=f.documentElement)&&(c=c.namespaceURI)?dT(c):0;break;default:if(c=f.tagName,f=f.namespaceURI)f=dT(f),c=fT(f,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}D(q),V(q,c)}function Y(){D(q),D(X),D(ne)}function ve(c){c.memoizedState!==null&&V(ye,c);var f=q.current,p=fT(f,c.type);f!==p&&(V(X,c),V(q,p))}function we(c){X.current===c&&(D(q),D(X)),ye.current===c&&(D(ye),lg._currentValue=se)}var me,We;function Me(c){if(me===void 0)try{throw Error()}catch(p){var f=p.stack.trim().match(/\n( *(at )?)/);me=f&&f[1]||"",We=-1)":-1_||Le[v]!==it[_]){var ht=` `+Le[v].replace(" at new "," at ");return c.displayName&&ht.includes("")&&(ht=ht.replace("",c.displayName)),ht}while(1<=v&&0<=_);break}}}finally{fe=!1,Error.prepareStackTrace=p}return(p=c?c.displayName||c.name:"")?Me(p):""}function He(c,f){switch(c.tag){case 26:case 27:case 5:return Me(c.type);case 16:return Me("Lazy");case 13:return c.child!==f&&f!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return Te(c.type,!1);case 11:return Te(c.type.render,!1);case 1:return Te(c.type,!0);case 31:return Me("Activity");default:return""}}function je(c){try{var f="",p=null;do f+=He(c,p),p=c,c=c.return;while(c);return f}catch(v){return` Error generating stack: `+v.message+` `+v.stack}}var $e=Object.prototype.hasOwnProperty,ot=e.unstable_scheduleCallback,Nt=e.unstable_cancelCallback,tt=e.unstable_shouldYield,At=e.unstable_requestPaint,Dt=e.unstable_now,Zt=e.unstable_getCurrentPriorityLevel,Ut=e.unstable_ImmediatePriority,Bt=e.unstable_UserBlockingPriority,Kt=e.unstable_NormalPriority,$t=e.unstable_LowPriority,Wt=e.unstable_IdlePriority,zt=e.log,un=e.unstable_setDisableYieldValue,_r=null,ir=null;function lr(c){if(typeof zt=="function"&&un(c),ir&&typeof ir.setStrictMode=="function")try{ir.setStrictMode(_r,c)}catch{}}var Sr=Math.clz32?Math.clz32:Vt,sr=Math.log,Er=Math.LN2;function Vt(c){return c>>>=0,c===0?32:31-(sr(c)/Er|0)|0}var hr=256,Vr=262144,jr=4194304;function Ht(c){var f=c&42;if(f!==0)return f;switch(c&-c){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 c&261888;case 262144:case 524288:case 1048576:case 2097152:return c&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return c&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return c}}function vr(c,f,p){var v=c.pendingLanes;if(v===0)return 0;var _=0,R=c.suspendedLanes,Q=c.pingedLanes;c=c.warmLanes;var be=v&134217727;return be!==0?(v=be&~R,v!==0?_=Ht(v):(Q&=be,Q!==0?_=Ht(Q):p||(p=be&~c,p!==0&&(_=Ht(p))))):(be=v&~R,be!==0?_=Ht(be):Q!==0?_=Ht(Q):p||(p=v&~c,p!==0&&(_=Ht(p)))),_===0?0:f!==0&&f!==_&&(f&R)===0&&(R=_&-_,p=f&-f,R>=p||R===32&&(p&4194048)!==0)?f:_}function mn(c,f){return(c.pendingLanes&~(c.suspendedLanes&~c.pingedLanes)&f)===0}function zn(c,f){switch(c){case 1:case 2:case 4:case 8:case 64:return f+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 f+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 ni(){var c=jr;return jr<<=1,(jr&62914560)===0&&(jr=4194304),c}function Va(c){for(var f=[],p=0;31>p;p++)f.push(c);return f}function rr(c,f){c.pendingLanes|=f,f!==268435456&&(c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0)}function ai(c,f,p,v,_,R){var Q=c.pendingLanes;c.pendingLanes=p,c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0,c.expiredLanes&=p,c.entangledLanes&=p,c.errorRecoveryDisabledLanes&=p,c.shellSuspendCounter=0;var be=c.entanglements,Le=c.expirationTimes,it=c.hiddenUpdates;for(p=Q&~p;0"u")return null;try{return c.activeElement||c.body}catch{return c.body}}var Oa=/[\n"\\]/g;function ba(c){return c.replace(Oa,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function Tc(c,f,p,v,_,R,Q,be){c.name="",Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"?c.type=Q:c.removeAttribute("type"),f!=null?Q==="number"?(f===0&&c.value===""||c.value!=f)&&(c.value=""+Ir(f)):c.value!==""+Ir(f)&&(c.value=""+Ir(f)):Q!=="submit"&&Q!=="reset"||c.removeAttribute("value"),f!=null?Nu(c,Q,Ir(f)):p!=null?Nu(c,Q,Ir(p)):v!=null&&c.removeAttribute("value"),_==null&&R!=null&&(c.defaultChecked=!!R),_!=null&&(c.checked=_&&typeof _!="function"&&typeof _!="symbol"),be!=null&&typeof be!="function"&&typeof be!="symbol"&&typeof be!="boolean"?c.name=""+Ir(be):c.removeAttribute("name")}function Dd(c,f,p,v,_,R,Q,be){if(R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(c.type=R),f!=null||p!=null){if(!(R!=="submit"&&R!=="reset"||f!=null)){rs(c);return}p=p!=null?""+Ir(p):"",f=f!=null?""+Ir(f):p,be||f===c.value||(c.value=f),c.defaultValue=f}v=v??_,v=typeof v!="function"&&typeof v!="symbol"&&!!v,c.checked=be?c.checked:!!v,c.defaultChecked=!!v,Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"&&(c.name=Q),rs(c)}function Nu(c,f,p){f==="number"&&bi(c.ownerDocument)===c||c.defaultValue===""+p||(c.defaultValue=""+p)}function wi(c,f,p,v){if(c=c.options,f){f={};for(var _=0;_"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=!1;if(Ga)try{var Ul={};Object.defineProperty(Ul,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{Tu=!1}var ns=null,zl=null,to=null;function Id(){if(to)return to;var c,f=zl,p=f.length,v,_="value"in ns?ns.value:ns.textContent,R=_.length;for(c=0;c=Do),si=" ",Cc=!1;function Oc(c,f){switch(c){case"keyup":return Ro.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fd(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var cl=!1;function ss(c,f){switch(c){case"compositionend":return Fd(f);case"keypress":return f.which!==32?null:(Cc=!0,si);case"textInput":return c=f.data,c===si&&Cc?null:c;default:return null}}function Wl(c,f){if(cl)return c==="compositionend"||!so&&Oc(c,f)?(c=Id(),to=zl=ns=null,cl=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1=f)return{node:p,offset:f-c};c=v}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=zd(p)}}function Kl(c,f){return c&&f?c===f?!0:c&&c.nodeType===3?!1:f&&f.nodeType===3?Kl(c,f.parentNode):"contains"in c?c.contains(f):c.compareDocumentPosition?!!(c.compareDocumentPosition(f)&16):!1:!1}function Xl(c){c=c!=null&&c.ownerDocument!=null&&c.ownerDocument.defaultView!=null?c.ownerDocument.defaultView:window;for(var f=bi(c.document);f instanceof c.HTMLIFrameElement;){try{var p=typeof f.contentWindow.location.href=="string"}catch{p=!1}if(p)c=f.contentWindow;else break;f=bi(c.document)}return f}function ml(c){var f=c&&c.nodeName&&c.nodeName.toLowerCase();return f&&(f==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||f==="textarea"||c.contentEditable==="true")}var Ou=Ga&&"documentMode"in document&&11>=document.documentMode,Ws=null,Zl=null,$i=null,oo=!1;function pn(c,f,p){var v=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;oo||Ws==null||Ws!==bi(v)||(v=Ws,"selectionStart"in v&&ml(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),$i&&Yl($i,v)||($i=v,v=Q1(Zl,"onSelect"),0>=Q,_-=Q,mo=1<<32-Sr(f)+_|p<<_|v,po=R+c}else mo=1<Wr?(sn=cr,cr=null):sn=cr.sibling;var bn=st(Ze,cr,at[Wr],yt);if(bn===null){cr===null&&(cr=sn);break}c&&cr&&bn.alternate===null&&f(Ze,cr),ze=R(bn,ze,Wr),vn===null?Nr=bn:vn.sibling=bn,vn=bn,cr=sn}if(Wr===at.length)return p(Ze,cr),Qr&&Gs(Ze,Wr),Nr;if(cr===null){for(;WrWr?(sn=cr,cr=null):sn=cr.sibling;var hf=st(Ze,cr,bn.value,yt);if(hf===null){cr===null&&(cr=sn);break}c&&cr&&hf.alternate===null&&f(Ze,cr),ze=R(hf,ze,Wr),vn===null?Nr=hf:vn.sibling=hf,vn=hf,cr=sn}if(bn.done)return p(Ze,cr),Qr&&Gs(Ze,Wr),Nr;if(cr===null){for(;!bn.done;Wr++,bn=at.next())bn=vt(Ze,bn.value,yt),bn!==null&&(ze=R(bn,ze,Wr),vn===null?Nr=bn:vn.sibling=bn,vn=bn);return Qr&&Gs(Ze,Wr),Nr}for(cr=v(cr);!bn.done;Wr++,bn=at.next())bn=lt(cr,Ze,Wr,bn.value,yt),bn!==null&&(c&&bn.alternate!==null&&cr.delete(bn.key===null?Wr:bn.key),ze=R(bn,ze,Wr),vn===null?Nr=bn:vn.sibling=bn,vn=bn);return c&&cr.forEach(function(qV){return f(Ze,qV)}),Qr&&Gs(Ze,Wr),Nr}function Kn(Ze,ze,at,yt){if(typeof at=="object"&&at!==null&&at.type===y&&at.key===null&&(at=at.props.children),typeof at=="object"&&at!==null){switch(at.$$typeof){case g:e:{for(var Nr=at.key;ze!==null;){if(ze.key===Nr){if(Nr=at.type,Nr===y){if(ze.tag===7){p(Ze,ze.sibling),yt=_(ze,at.props.children),yt.return=Ze,Ze=yt;break e}}else if(ze.elementType===Nr||typeof Nr=="object"&&Nr!==null&&Nr.$$typeof===I&&Qe(Nr)===ze.type){p(Ze,ze.sibling),yt=_(ze,at.props),Rr(yt,at),yt.return=Ze,Ze=yt;break e}p(Ze,ze);break}else f(Ze,ze);ze=ze.sibling}at.type===y?(yt=Rc(at.props.children,Ze.mode,yt,at.key),yt.return=Ze,Ze=yt):(yt=qd(at.type,at.key,at.props,null,Ze.mode,yt),Rr(yt,at),yt.return=Ze,Ze=yt)}return Q(Ze);case w:e:{for(Nr=at.key;ze!==null;){if(ze.key===Nr)if(ze.tag===4&&ze.stateNode.containerInfo===at.containerInfo&&ze.stateNode.implementation===at.implementation){p(Ze,ze.sibling),yt=_(ze,at.children||[]),yt.return=Ze,Ze=yt;break e}else{p(Ze,ze);break}else f(Ze,ze);ze=ze.sibling}yt=Wd(at,Ze.mode,yt),yt.return=Ze,Ze=yt}return Q(Ze);case I:return at=Qe(at),Kn(Ze,ze,at,yt)}if(ie(at))return tr(Ze,ze,at,yt);if(F(at)){if(Nr=F(at),typeof Nr!="function")throw Error(n(150));return at=Nr.call(at),Tr(Ze,ze,at,yt)}if(typeof at.then=="function")return Kn(Ze,ze,Gt(at),yt);if(at.$$typeof===j)return Kn(Ze,ze,w0(Ze,at),yt);Qt(Ze,at)}return typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint"?(at=""+at,ze!==null&&ze.tag===6?(p(Ze,ze.sibling),yt=_(ze,at),yt.return=Ze,Ze=yt):(p(Ze,ze),yt=ih(at,Ze.mode,yt),yt.return=Ze,Ze=yt),Q(Ze)):p(Ze,ze)}return function(Ze,ze,at,yt){try{nr=0;var Nr=Kn(Ze,ze,at,yt);return bt=null,Nr}catch(cr){if(cr===Ue||cr===Ae)throw cr;var vn=zi(29,cr,null,Ze.mode);return vn.lanes=yt,vn.return=Ze,vn}}}var ea=Xr(!0),Br=Xr(!1),Yt=!1;function Ft(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function da(c,f){c=c.updateQueue,f.updateQueue===c&&(f.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,callbacks:null})}function Ar(c){return{lane:c,tag:0,payload:null,callback:null,next:null}}function zr(c,f,p){var v=c.updateQueue;if(v===null)return null;if(v=v.shared,(An&2)!==0){var _=v.pending;return _===null?f.next=f:(f.next=_.next,_.next=f),v.pending=f,f=Ui(c),nh(c,null,p),f}return rh(c,v,f,p),Ui(c)}function jn(c,f,p){if(f=f.updateQueue,f!==null&&(f=f.shared,(p&4194048)!==0)){var v=f.lanes;v&=c.pendingLanes,p|=v,f.lanes=p,En(c,p)}}function Ka(c,f){var p=c.updateQueue,v=c.alternate;if(v!==null&&(v=v.updateQueue,p===v)){var _=null,R=null;if(p=p.firstBaseUpdate,p!==null){do{var Q={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};R===null?_=R=Q:R=R.next=Q,p=p.next}while(p!==null);R===null?_=R=f:R=R.next=f}else _=R=f;p={baseState:v.baseState,firstBaseUpdate:_,lastBaseUpdate:R,shared:v.shared,callbacks:v.callbacks},c.updateQueue=p;return}c=p.lastBaseUpdate,c===null?p.firstBaseUpdate=f:c.next=f,p.lastBaseUpdate=f}var Ti=!1;function Vn(){if(Ti){var c=C;if(c!==null)throw c}}function Ma(c,f,p,v){Ti=!1;var _=c.updateQueue;Yt=!1;var R=_.firstBaseUpdate,Q=_.lastBaseUpdate,be=_.shared.pending;if(be!==null){_.shared.pending=null;var Le=be,it=Le.next;Le.next=null,Q===null?R=it:Q.next=it,Q=Le;var ht=c.alternate;ht!==null&&(ht=ht.updateQueue,be=ht.lastBaseUpdate,be!==Q&&(be===null?ht.firstBaseUpdate=it:be.next=it,ht.lastBaseUpdate=Le))}if(R!==null){var vt=_.baseState;Q=0,ht=it=Le=null,be=R;do{var st=be.lane&-536870913,lt=st!==be.lane;if(lt?(an&st)===st:(v&st)===st){st!==0&&st===S&&(Ti=!0),ht!==null&&(ht=ht.next={lane:0,tag:be.tag,payload:be.payload,callback:null,next:null});e:{var tr=c,Tr=be;st=f;var Kn=p;switch(Tr.tag){case 1:if(tr=Tr.payload,typeof tr=="function"){vt=tr.call(Kn,vt,st);break e}vt=tr;break e;case 3:tr.flags=tr.flags&-65537|128;case 0:if(tr=Tr.payload,st=typeof tr=="function"?tr.call(Kn,vt,st):tr,st==null)break e;vt=m({},vt,st);break e;case 2:Yt=!0}}st=be.callback,st!==null&&(c.flags|=64,lt&&(c.flags|=8192),lt=_.callbacks,lt===null?_.callbacks=[st]:lt.push(st))}else lt={lane:st,tag:be.tag,payload:be.payload,callback:be.callback,next:null},ht===null?(it=ht=lt,Le=vt):ht=ht.next=lt,Q|=st;if(be=be.next,be===null){if(be=_.shared.pending,be===null)break;lt=be,be=lt.next,lt.next=null,_.lastBaseUpdate=lt,_.shared.pending=null}}while(!0);ht===null&&(Le=vt),_.baseState=Le,_.firstBaseUpdate=it,_.lastBaseUpdate=ht,R===null&&(_.shared.lanes=0),rf|=Q,c.lanes=Q,c.memoizedState=vt}}function Hi(c,f){if(typeof c!="function")throw Error(n(191,c));c.call(f)}function Ia(c,f){var p=c.callbacks;if(p!==null)for(c.callbacks=null,c=0;cR?R:8;var Q=G.T,be={};G.T=be,mw(c,!1,f,p);try{var Le=_(),it=G.S;if(it!==null&&it(be,Le),Le!==null&&typeof Le=="object"&&typeof Le.then=="function"){var ht=de(Le,v);Wp(c,f,ht,Uo(c))}else Wp(c,f,v,Uo(c))}catch(vt){Wp(c,f,{then:function(){},status:"rejected",reason:vt},Uo())}finally{ee.p=R,Q!==null&&be.types!==null&&(Q.types=be.types),G.T=Q}}function BW(){}function fw(c,f,p,v){if(c.tag!==5)throw Error(n(476));var _=IE(c).queue;ME(c,_,f,se,p===null?BW:function(){return FE(c),p(v)})}function IE(c){var f=c.memoizedState;if(f!==null)return f;f={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:se},next:null};var p={};return f.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:p},next:null},c.memoizedState=f,c=c.alternate,c!==null&&(c.memoizedState=f),f}function FE(c){var f=IE(c);f.next===null&&(f=c.alternate.memoizedState),Wp(c,f.next.queue,{},Uo())}function hw(){return Ei(lg)}function BE(){return Sa().memoizedState}function $E(){return Sa().memoizedState}function $W(c){for(var f=c.return;f!==null;){switch(f.tag){case 24:case 3:var p=Uo();c=Ar(p);var v=zr(f,c,p);v!==null&&(No(v,f,p),jn(v,f,p)),f={cache:Kd()},c.payload=f;return}f=f.return}}function UW(c,f,p){var v=Uo();p={lane:v,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},D1(c)?zE(f,p):(p=f0(c,f,p,v),p!==null&&(No(p,c,v),HE(p,f,v)))}function UE(c,f,p){var v=Uo();Wp(c,f,p,v)}function Wp(c,f,p,v){var _={lane:v,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(D1(c))zE(f,_);else{var R=c.alternate;if(c.lanes===0&&(R===null||R.lanes===0)&&(R=f.lastRenderedReducer,R!==null))try{var Q=f.lastRenderedState,be=R(Q,p);if(_.hasEagerState=!0,_.eagerState=be,ji(be,Q))return rh(c,f,_,0),ta===null&&th(),!1}catch{}if(p=f0(c,f,_,v),p!==null)return No(p,c,v),HE(p,f,v),!0}return!1}function mw(c,f,p,v){if(v={lane:2,revertLane:Vw(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},D1(c)){if(f)throw Error(n(479))}else f=f0(c,p,v,2),f!==null&&No(f,c,2)}function D1(c){var f=c.alternate;return c===xr||f!==null&&f===xr}function zE(c,f){xo=ks=!0;var p=c.pending;p===null?f.next=f:(f.next=p.next,p.next=f),c.pending=f}function HE(c,f,p){if((p&4194048)!==0){var v=f.lanes;v&=c.pendingLanes,p|=v,f.lanes=p,En(c,p)}}var Vp={readContext:Ei,use:Xd,useCallback:Gn,useContext:Gn,useEffect:Gn,useImperativeHandle:Gn,useLayoutEffect:Gn,useInsertionEffect:Gn,useMemo:Gn,useReducer:Gn,useRef:Gn,useState:Gn,useDebugValue:Gn,useDeferredValue:Gn,useTransition:Gn,useSyncExternalStore:Gn,useId:Gn,useHostTransitionStatus:Gn,useFormState:Gn,useActionState:Gn,useOptimistic:Gn,useMemoCache:Gn,useCacheRefresh:Gn};Vp.useEffectEvent=Gn;var qE={readContext:Ei,use:Xd,useCallback:function(c,f){return oi().memoizedState=[c,f===void 0?null:f],c},useContext:Ei,useEffect:_E,useImperativeHandle:function(c,f,p){p=p!=null?p.concat([c]):null,Jd(4194308,4,OE.bind(null,f,c),p)},useLayoutEffect:function(c,f){return Jd(4194308,4,c,f)},useInsertionEffect:function(c,f){Jd(4,2,c,f)},useMemo:function(c,f){var p=oi();f=f===void 0?null:f;var v=c();if(cs){lr(!0);try{c()}finally{lr(!1)}}return p.memoizedState=[v,f],v},useReducer:function(c,f,p){var v=oi();if(p!==void 0){var _=p(f);if(cs){lr(!0);try{p(f)}finally{lr(!1)}}}else _=f;return v.memoizedState=v.baseState=_,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:_},v.queue=c,c=c.dispatch=UW.bind(null,xr,c),[v.memoizedState,c]},useRef:function(c){var f=oi();return c={current:c},f.memoizedState=c},useState:function(c){c=Hc(c);var f=c.queue,p=UE.bind(null,xr,f);return f.dispatch=p,[c.memoizedState,p]},useDebugValue:uw,useDeferredValue:function(c,f){var p=oi();return dw(p,c,f)},useTransition:function(){var c=Hc(!1);return c=ME.bind(null,xr,c.queue,!0,!1),oi().memoizedState=c,[!1,c]},useSyncExternalStore:function(c,f,p){var v=xr,_=oi();if(Qr){if(p===void 0)throw Error(n(407));p=p()}else{if(p=f(),ta===null)throw Error(n(349));(an&127)!==0||tc(v,f,p)}_.memoizedState=p;var R={value:p,getSnapshot:f};return _.queue=R,_E(zp.bind(null,v,R,c),[c]),v.flags|=2048,$u(9,{destroy:void 0},Up.bind(null,v,R,p,f),null),p},useId:function(){var c=oi(),f=ta.identifierPrefix;if(Qr){var p=po,v=mo;p=(v&~(1<<32-Sr(v)-1)).toString(32)+p,f="_"+f+"R_"+p,p=$a++,0<\/script>",R=R.removeChild(R.firstChild);break;case"select":R=typeof v.is=="string"?Q.createElement("select",{is:v.is}):Q.createElement("select"),v.multiple?R.multiple=!0:v.size&&(R.size=v.size);break;default:R=typeof v.is=="string"?Q.createElement(_,{is:v.is}):Q.createElement(_)}}R[ae]=f,R[oe]=v;e:for(Q=f.child;Q!==null;){if(Q.tag===5||Q.tag===6)R.appendChild(Q.stateNode);else if(Q.tag!==4&&Q.tag!==27&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===f)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===f)break e;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}f.stateNode=R;e:switch(ds(R,_,v),_){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&zu(f)}}return ma(f),Ew(f,f.type,c===null?null:c.memoizedProps,f.pendingProps,p),null;case 6:if(c&&f.stateNode!=null)c.memoizedProps!==v&&zu(f);else{if(typeof v!="string"&&f.stateNode===null)throw Error(n(166));if(c=ne.current,_i(f)){if(c=f.stateNode,p=f.memoizedProps,v=null,_=Ai,_!==null)switch(_.tag){case 27:case 5:v=_.memoizedProps}c[ae]=f,c=!!(c.nodeValue===p||v!==null&&v.suppressHydrationWarning===!0||cT(c.nodeValue,p)),c||Lc(f,!0)}else c=ey(c).createTextNode(v),c[ae]=f,f.stateNode=c}return ma(f),null;case 31:if(p=f.memoizedState,c===null||c.memoizedState!==null){if(v=_i(f),p!==null){if(c===null){if(!v)throw Error(n(318));if(c=f.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(n(557));c[ae]=f}else Mu(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;ma(f),c=!1}else p=Mp(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=p),c=!0;if(!c)return f.flags&256?(Rn(f),f):(Rn(f),null);if((f.flags&128)!==0)throw Error(n(558))}return ma(f),null;case 13:if(v=f.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(_=_i(f),v!==null&&v.dehydrated!==null){if(c===null){if(!_)throw Error(n(318));if(_=f.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(n(317));_[ae]=f}else Mu(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;ma(f),_=!1}else _=Mp(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=_),_=!0;if(!_)return f.flags&256?(Rn(f),f):(Rn(f),null)}return Rn(f),(f.flags&128)!==0?(f.lanes=p,f):(p=v!==null,c=c!==null&&c.memoizedState!==null,p&&(v=f.child,_=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(_=v.alternate.memoizedState.cachePool.pool),R=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(R=v.memoizedState.cachePool.pool),R!==_&&(v.flags|=2048)),p!==c&&p&&(f.child.flags|=8192),B1(f,f.updateQueue),ma(f),null);case 4:return Y(),c===null&&Xw(f.stateNode.containerInfo),ma(f),null;case 10:return go(f.type),ma(f),null;case 19:if(D(cn),v=f.memoizedState,v===null)return ma(f),null;if(_=(f.flags&128)!==0,R=v.rendering,R===null)if(_)Yp(v,!1);else{if(Ua!==0||c!==null&&(c.flags&128)!==0)for(c=f.child;c!==null;){if(R=qi(c),R!==null){for(f.flags|=128,Yp(v,!1),c=R.updateQueue,f.updateQueue=c,B1(f,c),f.subtreeFlags=0,c=p,p=f.child;p!==null;)ah(p,c),p=p.sibling;return V(cn,cn.current&1|2),Qr&&Gs(f,v.treeForkCount),f.child}c=c.sibling}v.tail!==null&&Dt()>q1&&(f.flags|=128,_=!0,Yp(v,!1),f.lanes=4194304)}else{if(!_)if(c=qi(R),c!==null){if(f.flags|=128,_=!0,c=c.updateQueue,f.updateQueue=c,B1(f,c),Yp(v,!0),v.tail===null&&v.tailMode==="hidden"&&!R.alternate&&!Qr)return ma(f),null}else 2*Dt()-v.renderingStartTime>q1&&p!==536870912&&(f.flags|=128,_=!0,Yp(v,!1),f.lanes=4194304);v.isBackwards?(R.sibling=f.child,f.child=R):(c=v.last,c!==null?c.sibling=R:f.child=R,v.last=R)}return v.tail!==null?(c=v.tail,v.rendering=c,v.tail=c.sibling,v.renderingStartTime=Dt(),c.sibling=null,p=cn.current,V(cn,_?p&1|2:p&1),Qr&&Gs(f,v.treeForkCount),c):(ma(f),null);case 22:case 23:return Rn(f),Xa(),v=f.memoizedState!==null,c!==null?c.memoizedState!==null!==v&&(f.flags|=8192):v&&(f.flags|=8192),v?(p&536870912)!==0&&(f.flags&128)===0&&(ma(f),f.subtreeFlags&6&&(f.flags|=8192)):ma(f),p=f.updateQueue,p!==null&&B1(f,p.retryQueue),p=null,c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool),v=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==p&&(f.flags|=2048),c!==null&&D(ge),null;case 24:return p=null,c!==null&&(p=c.memoizedState.cache),f.memoizedState.cache!==p&&(f.flags|=2048),go(Da),ma(f),null;case 25:return null;case 30:return null}throw Error(n(156,f.tag))}function VW(c,f){switch(y0(f),f.tag){case 1:return c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 3:return go(Da),Y(),c=f.flags,(c&65536)!==0&&(c&128)===0?(f.flags=c&-65537|128,f):null;case 26:case 27:case 5:return we(f),null;case 31:if(f.memoizedState!==null){if(Rn(f),f.alternate===null)throw Error(n(340));Mu()}return c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 13:if(Rn(f),c=f.memoizedState,c!==null&&c.dehydrated!==null){if(f.alternate===null)throw Error(n(340));Mu()}return c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 19:return D(cn),null;case 4:return Y(),null;case 10:return go(f.type),null;case 22:case 23:return Rn(f),Xa(),c!==null&&D(ge),c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 24:return go(Da),null;case 25:return null;default:return null}}function m6(c,f){switch(y0(f),f.tag){case 3:go(Da),Y();break;case 26:case 27:case 5:we(f);break;case 4:Y();break;case 31:f.memoizedState!==null&&Rn(f);break;case 13:Rn(f);break;case 19:D(cn);break;case 10:go(f.type);break;case 22:case 23:Rn(f),Xa(),c!==null&&D(ge);break;case 24:go(Da)}}function Kp(c,f){try{var p=f.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var _=v.next;p=_;do{if((p.tag&c)===c){v=void 0;var R=p.create,Q=p.inst;v=R(),Q.destroy=v}p=p.next}while(p!==_)}}catch(be){Ln(f,f.return,be)}}function ef(c,f,p){try{var v=f.updateQueue,_=v!==null?v.lastEffect:null;if(_!==null){var R=_.next;v=R;do{if((v.tag&c)===c){var Q=v.inst,be=Q.destroy;if(be!==void 0){Q.destroy=void 0,_=f;var Le=p,it=be;try{it()}catch(ht){Ln(_,Le,ht)}}}v=v.next}while(v!==R)}}catch(ht){Ln(f,f.return,ht)}}function p6(c){var f=c.updateQueue;if(f!==null){var p=c.stateNode;try{Ia(f,p)}catch(v){Ln(c,c.return,v)}}}function g6(c,f,p){p.props=dh(c.type,c.memoizedProps),p.state=c.memoizedState;try{p.componentWillUnmount()}catch(v){Ln(c,f,v)}}function Xp(c,f){try{var p=c.ref;if(p!==null){switch(c.tag){case 26:case 27:case 5:var v=c.stateNode;break;case 30:v=c.stateNode;break;default:v=c.stateNode}typeof p=="function"?c.refCleanup=p(v):p.current=v}}catch(_){Ln(c,f,_)}}function qc(c,f){var p=c.ref,v=c.refCleanup;if(p!==null)if(typeof v=="function")try{v()}catch(_){Ln(c,f,_)}finally{c.refCleanup=null,c=c.alternate,c!=null&&(c.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(_){Ln(c,f,_)}else p.current=null}function x6(c){var f=c.type,p=c.memoizedProps,v=c.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":p.autoFocus&&v.focus();break e;case"img":p.src?v.src=p.src:p.srcSet&&(v.srcset=p.srcSet)}}catch(_){Ln(c,c.return,_)}}function Tw(c,f,p){try{var v=c.stateNode;mV(v,c.type,p,f),v[oe]=f}catch(_){Ln(c,c.return,_)}}function y6(c){return c.tag===5||c.tag===3||c.tag===26||c.tag===27&&lf(c.type)||c.tag===4}function Cw(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||y6(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.tag===27&&lf(c.type)||c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function Ow(c,f,p){var v=c.tag;if(v===5||v===6)c=c.stateNode,f?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(c,f):(f=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,f.appendChild(c),p=p._reactRootContainer,p!=null||f.onclick!==null||(f.onclick=$s));else if(v!==4&&(v===27&&lf(c.type)&&(p=c.stateNode,f=null),c=c.child,c!==null))for(Ow(c,f,p),c=c.sibling;c!==null;)Ow(c,f,p),c=c.sibling}function $1(c,f,p){var v=c.tag;if(v===5||v===6)c=c.stateNode,f?p.insertBefore(c,f):p.appendChild(c);else if(v!==4&&(v===27&&lf(c.type)&&(p=c.stateNode),c=c.child,c!==null))for($1(c,f,p),c=c.sibling;c!==null;)$1(c,f,p),c=c.sibling}function v6(c){var f=c.stateNode,p=c.memoizedProps;try{for(var v=c.type,_=f.attributes;_.length;)f.removeAttributeNode(_[0]);ds(f,v,p),f[ae]=c,f[oe]=p}catch(R){Ln(c,c.return,R)}}var Hu=!1,ci=!1,Pw=!1,b6=typeof WeakSet=="function"?WeakSet:Set,Wi=null;function GW(c,f){if(c=c.containerInfo,Qw=oy,c=Xl(c),ml(c)){if("selectionStart"in c)var p={start:c.selectionStart,end:c.selectionEnd};else e:{p=(p=c.ownerDocument)&&p.defaultView||window;var v=p.getSelection&&p.getSelection();if(v&&v.rangeCount!==0){p=v.anchorNode;var _=v.anchorOffset,R=v.focusNode;v=v.focusOffset;try{p.nodeType,R.nodeType}catch{p=null;break e}var Q=0,be=-1,Le=-1,it=0,ht=0,vt=c,st=null;t:for(;;){for(var lt;vt!==p||_!==0&&vt.nodeType!==3||(be=Q+_),vt!==R||v!==0&&vt.nodeType!==3||(Le=Q+v),vt.nodeType===3&&(Q+=vt.nodeValue.length),(lt=vt.firstChild)!==null;)st=vt,vt=lt;for(;;){if(vt===c)break t;if(st===p&&++it===_&&(be=Q),st===R&&++ht===v&&(Le=Q),(lt=vt.nextSibling)!==null)break;vt=st,st=vt.parentNode}vt=lt}p=be===-1||Le===-1?null:{start:be,end:Le}}else p=null}p=p||{start:0,end:0}}else p=null;for(e5={focusedElem:c,selectionRange:p},oy=!1,Wi=f;Wi!==null;)if(f=Wi,c=f.child,(f.subtreeFlags&1028)!==0&&c!==null)c.return=f,Wi=c;else for(;Wi!==null;){switch(f=Wi,R=f.alternate,c=f.flags,f.tag){case 0:if((c&4)!==0&&(c=f.updateQueue,c=c!==null?c.events:null,c!==null))for(p=0;p title"))),ds(R,v,p),R[ae]=c,qt(R),v=R;break e;case"link":var Q=AT("link","href",_).get(v+(p.href||""));if(Q){for(var be=0;beKn&&(Q=Kn,Kn=Tr,Tr=Q);var Ze=Hd(be,Tr),ze=Hd(be,Kn);if(Ze&&ze&&(lt.rangeCount!==1||lt.anchorNode!==Ze.node||lt.anchorOffset!==Ze.offset||lt.focusNode!==ze.node||lt.focusOffset!==ze.offset)){var at=vt.createRange();at.setStart(Ze.node,Ze.offset),lt.removeAllRanges(),Tr>Kn?(lt.addRange(at),lt.extend(ze.node,ze.offset)):(at.setEnd(ze.node,ze.offset),lt.addRange(at))}}}}for(vt=[],lt=be;lt=lt.parentNode;)lt.nodeType===1&&vt.push({element:lt,left:lt.scrollLeft,top:lt.scrollTop});for(typeof be.focus=="function"&&be.focus(),be=0;bep?32:p,G.T=null,p=Bw,Bw=null;var R=af,Q=Yu;if(Ci=0,M0=af=null,Yu=0,(An&6)!==0)throw Error(n(331));var be=An;if(An|=4,O6(R.current),E6(R,R.current,Q,p),An=be,rg(0,!1),ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(_r,R)}catch{}return!0}finally{ee.p=_,G.T=v,K6(c,f)}}function Z6(c,f,p){f=uo(p,f),f=yw(c.stateNode,f,2),c=zr(c,f,2),c!==null&&(rr(c,2),Wc(c))}function Ln(c,f,p){if(c.tag===3)Z6(c,c,p);else for(;f!==null;){if(f.tag===3){Z6(f,c,p);break}else if(f.tag===1){var v=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(nf===null||!nf.has(v))){c=uo(p,c),p=JE(2),v=zr(f,p,2),v!==null&&(QE(p,v,f,c),rr(v,2),Wc(v));break}}f=f.return}}function Hw(c,f,p){var v=c.pingCache;if(v===null){v=c.pingCache=new XW;var _=new Set;v.set(f,_)}else _=v.get(f),_===void 0&&(_=new Set,v.set(f,_));_.has(p)||(Lw=!0,_.add(p),c=tV.bind(null,c,f,p),f.then(c,c))}function tV(c,f,p){var v=c.pingCache;v!==null&&v.delete(f),c.pingedLanes|=c.suspendedLanes&p,c.warmLanes&=~p,ta===c&&(an&p)===p&&(Ua===4||Ua===3&&(an&62914560)===an&&300>Dt()-H1?(An&2)===0&&I0(c,0):Mw|=p,L0===an&&(L0=0)),Wc(c)}function J6(c,f){f===0&&(f=ni()),c=Jl(c,f),c!==null&&(rr(c,f),Wc(c))}function rV(c){var f=c.memoizedState,p=0;f!==null&&(p=f.retryLane),J6(c,p)}function nV(c,f){var p=0;switch(c.tag){case 31:case 13:var v=c.stateNode,_=c.memoizedState;_!==null&&(p=_.retryLane);break;case 19:v=c.stateNode;break;case 22:v=c.stateNode._retryCache;break;default:throw Error(n(314))}v!==null&&v.delete(f),J6(c,p)}function aV(c,f){return ot(c,f)}var X1=null,B0=null,qw=!1,Z1=!1,Ww=!1,of=0;function Wc(c){c!==B0&&c.next===null&&(B0===null?X1=B0=c:B0=B0.next=c),Z1=!0,qw||(qw=!0,sV())}function rg(c,f){if(!Ww&&Z1){Ww=!0;do for(var p=!1,v=X1;v!==null;){if(c!==0){var _=v.pendingLanes;if(_===0)var R=0;else{var Q=v.suspendedLanes,be=v.pingedLanes;R=(1<<31-Sr(42|c)+1)-1,R&=_&~(Q&~be),R=R&201326741?R&201326741|1:R?R|2:0}R!==0&&(p=!0,rT(v,R))}else R=an,R=vr(v,v===ta?R:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(R&3)===0||mn(v,R)||(p=!0,rT(v,R));v=v.next}while(p);Ww=!1}}function iV(){Q6()}function Q6(){Z1=qw=!1;var c=0;of!==0&&gV()&&(c=of);for(var f=Dt(),p=null,v=X1;v!==null;){var _=v.next,R=eT(v,f);R===0?(v.next=null,p===null?X1=_:p.next=_,_===null&&(B0=p)):(p=v,(c!==0||(R&3)!==0)&&(Z1=!0)),v=_}Ci!==0&&Ci!==5||rg(c),of!==0&&(of=0)}function eT(c,f){for(var p=c.suspendedLanes,v=c.pingedLanes,_=c.expirationTimes,R=c.pendingLanes&-62914561;0be)break;var ht=Le.transferSize,vt=Le.initiatorType;ht&&uT(vt)&&(Le=Le.responseEnd,Q+=ht*(Le"u"?null:document;function NT(c,f,p){var v=$0;if(v&&typeof f=="string"&&f){var _=ba(f);_='link[rel="'+c+'"][href="'+_+'"]',typeof p=="string"&&(_+='[crossorigin="'+p+'"]'),wT.has(_)||(wT.add(_),c={rel:c,crossOrigin:p,href:f},v.querySelector(_)===null&&(f=v.createElement("link"),ds(f,"link",c),qt(f),v.head.appendChild(f)))}}function kV(c){Ku.D(c),NT("dns-prefetch",c,null)}function AV(c,f){Ku.C(c,f),NT("preconnect",c,f)}function _V(c,f,p){Ku.L(c,f,p);var v=$0;if(v&&c&&f){var _='link[rel="preload"][as="'+ba(f)+'"]';f==="image"&&p&&p.imageSrcSet?(_+='[imagesrcset="'+ba(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(_+='[imagesizes="'+ba(p.imageSizes)+'"]')):_+='[href="'+ba(c)+'"]';var R=_;switch(f){case"style":R=U0(c);break;case"script":R=z0(c)}bl.has(R)||(c=m({rel:"preload",href:f==="image"&&p&&p.imageSrcSet?void 0:c,as:f},p),bl.set(R,c),v.querySelector(_)!==null||f==="style"&&v.querySelector(sg(R))||f==="script"&&v.querySelector(og(R))||(f=v.createElement("link"),ds(f,"link",c),qt(f),v.head.appendChild(f)))}}function EV(c,f){Ku.m(c,f);var p=$0;if(p&&c){var v=f&&typeof f.as=="string"?f.as:"script",_='link[rel="modulepreload"][as="'+ba(v)+'"][href="'+ba(c)+'"]',R=_;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":R=z0(c)}if(!bl.has(R)&&(c=m({rel:"modulepreload",href:c},f),bl.set(R,c),p.querySelector(_)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(og(R)))return}v=p.createElement("link"),ds(v,"link",c),qt(v),p.head.appendChild(v)}}}function TV(c,f,p){Ku.S(c,f,p);var v=$0;if(v&&c){var _=Ct(v).hoistableStyles,R=U0(c);f=f||"default";var Q=_.get(R);if(!Q){var be={loading:0,preload:null};if(Q=v.querySelector(sg(R)))be.loading=5;else{c=m({rel:"stylesheet",href:c,"data-precedence":f},p),(p=bl.get(R))&&o5(c,p);var Le=Q=v.createElement("link");qt(Le),ds(Le,"link",c),Le._p=new Promise(function(it,ht){Le.onload=it,Le.onerror=ht}),Le.addEventListener("load",function(){be.loading|=1}),Le.addEventListener("error",function(){be.loading|=2}),be.loading|=4,ry(Q,f,v)}Q={type:"stylesheet",instance:Q,count:1,state:be},_.set(R,Q)}}}function CV(c,f){Ku.X(c,f);var p=$0;if(p&&c){var v=Ct(p).hoistableScripts,_=z0(c),R=v.get(_);R||(R=p.querySelector(og(_)),R||(c=m({src:c,async:!0},f),(f=bl.get(_))&&l5(c,f),R=p.createElement("script"),qt(R),ds(R,"link",c),p.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},v.set(_,R))}}function OV(c,f){Ku.M(c,f);var p=$0;if(p&&c){var v=Ct(p).hoistableScripts,_=z0(c),R=v.get(_);R||(R=p.querySelector(og(_)),R||(c=m({src:c,async:!0,type:"module"},f),(f=bl.get(_))&&l5(c,f),R=p.createElement("script"),qt(R),ds(R,"link",c),p.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},v.set(_,R))}}function ST(c,f,p,v){var _=(_=ne.current)?ty(_):null;if(!_)throw Error(n(446));switch(c){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(f=U0(p.href),p=Ct(_).hoistableStyles,v=p.get(f),v||(v={type:"style",instance:null,count:0,state:null},p.set(f,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){c=U0(p.href);var R=Ct(_).hoistableStyles,Q=R.get(c);if(Q||(_=_.ownerDocument||_,Q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(c,Q),(R=_.querySelector(sg(c)))&&!R._p&&(Q.instance=R,Q.state.loading=5),bl.has(c)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},bl.set(c,p),R||PV(_,c,p,Q.state))),f&&v===null)throw Error(n(528,""));return Q}if(f&&v!==null)throw Error(n(529,""));return null;case"script":return f=p.async,p=p.src,typeof p=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=z0(p),p=Ct(_).hoistableScripts,v=p.get(f),v||(v={type:"script",instance:null,count:0,state:null},p.set(f,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,c))}}function U0(c){return'href="'+ba(c)+'"'}function sg(c){return'link[rel="stylesheet"]['+c+"]"}function jT(c){return m({},c,{"data-precedence":c.precedence,precedence:null})}function PV(c,f,p,v){c.querySelector('link[rel="preload"][as="style"]['+f+"]")?v.loading=1:(f=c.createElement("link"),v.preload=f,f.addEventListener("load",function(){return v.loading|=1}),f.addEventListener("error",function(){return v.loading|=2}),ds(f,"link",p),qt(f),c.head.appendChild(f))}function z0(c){return'[src="'+ba(c)+'"]'}function og(c){return"script[async]"+c}function kT(c,f,p){if(f.count++,f.instance===null)switch(f.type){case"style":var v=c.querySelector('style[data-href~="'+ba(p.href)+'"]');if(v)return f.instance=v,qt(v),v;var _=m({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return v=(c.ownerDocument||c).createElement("style"),qt(v),ds(v,"style",_),ry(v,p.precedence,c),f.instance=v;case"stylesheet":_=U0(p.href);var R=c.querySelector(sg(_));if(R)return f.state.loading|=4,f.instance=R,qt(R),R;v=jT(p),(_=bl.get(_))&&o5(v,_),R=(c.ownerDocument||c).createElement("link"),qt(R);var Q=R;return Q._p=new Promise(function(be,Le){Q.onload=be,Q.onerror=Le}),ds(R,"link",v),f.state.loading|=4,ry(R,p.precedence,c),f.instance=R;case"script":return R=z0(p.src),(_=c.querySelector(og(R)))?(f.instance=_,qt(_),_):(v=p,(_=bl.get(R))&&(v=m({},p),l5(v,_)),c=c.ownerDocument||c,_=c.createElement("script"),qt(_),ds(_,"link",v),c.head.appendChild(_),f.instance=_);case"void":return null;default:throw Error(n(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(v=f.instance,f.state.loading|=4,ry(v,p.precedence,c));return f.instance}function ry(c,f,p){for(var v=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=v.length?v[v.length-1]:null,R=_,Q=0;Q title"):null)}function RV(c,f,p){if(p===1||f.itemProp!=null)return!1;switch(c){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;return f.rel==="stylesheet"?(c=f.disabled,typeof f.precedence=="string"&&c==null):!0;case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function ET(c){return!(c.type==="stylesheet"&&(c.state.loading&3)===0)}function DV(c,f,p,v){if(p.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(p.state.loading&4)===0){if(p.instance===null){var _=U0(v.href),R=f.querySelector(sg(_));if(R){f=R._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(c.count++,c=ay.bind(c),f.then(c,c)),p.state.loading|=4,p.instance=R,qt(R);return}R=f.ownerDocument||f,v=jT(v),(_=bl.get(_))&&o5(v,_),R=R.createElement("link"),qt(R);var Q=R;Q._p=new Promise(function(be,Le){Q.onload=be,Q.onerror=Le}),ds(R,"link",v),p.instance=R}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(p,f),(f=p.state.preload)&&(p.state.loading&3)===0&&(c.count++,p=ay.bind(c),f.addEventListener("load",p),f.addEventListener("error",p))}}var c5=0;function LV(c,f){return c.stylesheets&&c.count===0&&sy(c,c.stylesheets),0c5?50:800)+f);return c.unsuspend=p,function(){c.unsuspend=null,clearTimeout(v),clearTimeout(_)}}:null}function ay(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)sy(this,this.stylesheets);else if(this.unsuspend){var c=this.unsuspend;this.unsuspend=null,c()}}}var iy=null;function sy(c,f){c.stylesheets=null,c.unsuspend!==null&&(c.count++,iy=new Map,f.forEach(MV,c),iy=null,ay.call(c))}function MV(c,f){if(!(f.state.loading&4)){var p=iy.get(c);if(p)var v=p.get(null);else{p=new Map,iy.set(c,p);for(var _=c.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<_.length;R++){var Q=_[R];(Q.nodeName==="LINK"||Q.getAttribute("media")!=="not all")&&(p.set(Q.dataset.precedence,Q),v=Q)}v&&p.set(null,v)}_=f.instance,Q=_.getAttribute("data-precedence"),R=p.get(Q)||v,R===v&&p.set(null,_),p.set(Q,_),this.count++,v=ay.bind(this),_.addEventListener("load",v),_.addEventListener("error",v),R?R.parentNode.insertBefore(_,R.nextSibling):(c=c.nodeType===9?c.head:c,c.insertBefore(_,c.firstChild)),f.state.loading|=4}}var lg={$$typeof:j,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function IV(c,f,p,v,_,R,Q,be,Le){this.tag=1,this.containerInfo=c,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Va(0),this.hiddenUpdates=Va(null),this.identifierPrefix=v,this.onUncaughtError=_,this.onCaughtError=R,this.onRecoverableError=Q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Le,this.incompleteTransitions=new Map}function TT(c,f,p,v,_,R,Q,be,Le,it,ht,vt){return c=new IV(c,f,p,Q,Le,it,ht,vt,be),f=1,R===!0&&(f|=24),R=zi(3,null,null,f),c.current=R,R.stateNode=c,f=Kd(),f.refCount++,c.pooledCache=f,f.refCount++,R.memoizedState={element:v,isDehydrated:p,cache:f},Ft(R),c}function CT(c){return c?(c=ki,c):ki}function OT(c,f,p,v,_,R){_=CT(_),v.context===null?v.context=_:v.pendingContext=_,v=Ar(f),v.payload={element:p},R=R===void 0?null:R,R!==null&&(v.callback=R),p=zr(c,v,f),p!==null&&(No(p,c,f),jn(p,c,f))}function PT(c,f){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var p=c.retryLane;c.retryLane=p!==0&&p"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),y5.exports=ZV(),y5.exports}var QV=JV();const eG="modulepreload",tG=function(e){return"/"+e},JT={},Ls=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let u=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");a=u(r.map(d=>{if(d=tG(d),d in JT)return;JT[d]=!0;const h=d.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const x=document.createElement("link");if(x.rel=h?"stylesheet":eG,h||(x.as="script"),x.crossOrigin="",x.href=d,l&&x.setAttribute("nonce",l),document.head.appendChild(x),h)return new Promise((g,w)=>{x.addEventListener("load",g),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return a.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})};var QT="popstate";function eC(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function rG(e={}){function t(n,a){let i=a.state?.masked,{pathname:o,search:l,hash:u}=i||n.location;return Nj("",{pathname:o,search:l,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,a){return typeof a=="string"?a:ax(a)}return aG(t,r,null,e)}function Ta(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nG(){return Math.random().toString(36).substring(2,10)}function tC(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Nj(e,t,r=null,n,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?fp(t):t,state:r,key:t&&t.key||n||nG(),unstable_mask:a}}function ax({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function fp(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function aG(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,l="POP",u=null,d=h();d==null&&(d=0,o.replaceState({...o.state,idx:d},""));function h(){return(o.state||{idx:null}).idx}function m(){l="POP";let b=h(),N=b==null?null:b-d;d=b,u&&u({action:l,location:y.location,delta:N})}function x(b,N){l="PUSH";let A=eC(b)?b:Nj(y.location,b,N);d=h()+1;let j=tC(A,d),k=y.createHref(A.unstable_mask||A);try{o.pushState(j,"",k)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;a.location.assign(k)}i&&u&&u({action:l,location:y.location,delta:1})}function g(b,N){l="REPLACE";let A=eC(b)?b:Nj(y.location,b,N);d=h();let j=tC(A,d),k=y.createHref(A.unstable_mask||A);o.replaceState(j,"",k),i&&u&&u({action:l,location:y.location,delta:0})}function w(b){return iG(b)}let y={get action(){return l},get location(){return e(a,o)},listen(b){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(QT,m),u=b,()=>{a.removeEventListener(QT,m),u=null}},createHref(b){return t(a,b)},createURL:w,encodeLocation(b){let N=w(b);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:x,replace:g,go(b){return o.go(b)}};return y}function iG(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ta(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:ax(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function qI(e,t,r="/"){return sG(e,t,r,!1)}function sG(e,t,r,n){let a=typeof t=="string"?fp(t):t,i=xd(a.pathname||"/",r);if(i==null)return null;let o=WI(e);oG(o);let l=null;for(let u=0;l==null&&u{let h={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(n)&&u)return;Ta(h.relativePath.startsWith(n),`Absolute route path "${h.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(n.length)}let m=ou([n,h.relativePath]),x=r.concat(h);o.children&&o.children.length>0&&(Ta(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),WI(o.children,t,x,m,u)),!(o.path==null&&!o.index)&&t.push({path:m,score:mG(m,o.index),routesMeta:x})};return e.forEach((o,l)=>{if(o.path===""||!o.path?.includes("?"))i(o,l);else for(let u of VI(o.path))i(o,l,!0,u)}),t}function VI(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=VI(n.join("/")),l=[];return l.push(...o.map(u=>u===""?i:[i,u].join("/"))),a&&l.push(...o),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function oG(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:pG(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var lG=/^:[\w-]+$/,cG=3,uG=2,dG=1,fG=10,hG=-2,rC=e=>e==="*";function mG(e,t){let r=e.split("/"),n=r.length;return r.some(rC)&&(n+=hG),t&&(n+=uG),r.filter(a=>!rC(a)).reduce((a,i)=>a+(lG.test(i)?cG:i===""?dG:fG),n)}function pG(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function gG(e,t,r=!1){let{routesMeta:n}=e,a={},i="/",o=[];for(let l=0;l{if(h==="*"){let w=l[x]||"";o=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const g=l[x];return m&&!g?d[h]=void 0:d[h]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function xG(e,t=!1,r=!0){Dl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,u,d,h)=>{if(n.push({paramName:l,isOptional:u!=null}),u){let m=h.charAt(d+o.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function yG(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dl(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function xd(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var vG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function bG(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?fp(e):e,i;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?i=nC(r.substring(1),"/"):i=nC(r,t)):i=t,{pathname:i,search:SG(n),hash:jG(a)}}function nC(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function N5(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. 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 wG(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function PA(e){let t=wG(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function n2(e,t,r,n=!1){let a;typeof e=="string"?a=fp(e):(a={...e},Ta(!a.pathname||!a.pathname.includes("?"),N5("?","pathname","search",a)),Ta(!a.pathname||!a.pathname.includes("#"),N5("#","pathname","hash",a)),Ta(!a.search||!a.search.includes("#"),N5("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=r;else{let m=t.length-1;if(!n&&o.startsWith("..")){let x=o.split("/");for(;x[0]==="..";)x.shift(),m-=1;a.pathname=x.join("/")}l=m>=0?t[m]:"/"}let u=bG(a,l),d=o&&o!=="/"&&o.endsWith("/"),h=(i||o===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(d||h)&&(u.pathname+="/"),u}var ou=e=>e.join("/").replace(/\/\/+/g,"/"),NG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,kG=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function AG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function _G(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var GI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function YI(e,t){let r=e;if(typeof r!="string"||!vG.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(GI)try{let i=new URL(window.location.href),o=r.startsWith("//")?new URL(i.protocol+r):new URL(r),l=xd(o.pathname,t);o.origin===i.origin&&l!=null?r=l+o.search+o.hash:a=!0}catch{Dl(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var KI=["POST","PUT","PATCH","DELETE"];new Set(KI);var EG=["GET",...KI];new Set(EG);var hp=L.createContext(null);hp.displayName="DataRouter";var a2=L.createContext(null);a2.displayName="DataRouterState";var TG=L.createContext(!1),XI=L.createContext({isTransitioning:!1});XI.displayName="ViewTransition";var CG=L.createContext(new Map);CG.displayName="Fetchers";var OG=L.createContext(null);OG.displayName="Await";var nl=L.createContext(null);nl.displayName="Navigation";var Jx=L.createContext(null);Jx.displayName="Location";var mu=L.createContext({outlet:null,matches:[],isDataRoute:!1});mu.displayName="Route";var RA=L.createContext(null);RA.displayName="RouteError";var ZI="REACT_ROUTER_ERROR",PG="REDIRECT",RG="ROUTE_ERROR_RESPONSE";function DG(e){if(e.startsWith(`${ZI}:${PG}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function LG(e){if(e.startsWith(`${ZI}:${RG}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new kG(t.status,t.statusText,t.data)}catch{}}function MG(e,{relative:t}={}){Ta(mp(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=L.useContext(nl),{hash:a,pathname:i,search:o}=Qx(e,{relative:t}),l=i;return r!=="/"&&(l=i==="/"?r:ou([r,i])),n.createHref({pathname:l,search:o,hash:a})}function mp(){return L.useContext(Jx)!=null}function kc(){return Ta(mp(),"useLocation() may be used only in the context of a component."),L.useContext(Jx).location}var JI="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function QI(e){L.useContext(nl).static||L.useLayoutEffect(e)}function pp(){let{isDataRoute:e}=L.useContext(mu);return e?KG():IG()}function IG(){Ta(mp(),"useNavigate() may be used only in the context of a component.");let e=L.useContext(hp),{basename:t,navigator:r}=L.useContext(nl),{matches:n}=L.useContext(mu),{pathname:a}=kc(),i=JSON.stringify(PA(n)),o=L.useRef(!1);return QI(()=>{o.current=!0}),L.useCallback((u,d={})=>{if(Dl(o.current,JI),!o.current)return;if(typeof u=="number"){r.go(u);return}let h=n2(u,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ou([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,i,a,e])}L.createContext(null);function Qx(e,{relative:t}={}){let{matches:r}=L.useContext(mu),{pathname:n}=kc(),a=JSON.stringify(PA(r));return L.useMemo(()=>n2(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function FG(e,t){return eF(e,t)}function eF(e,t,r){Ta(mp(),"useRoutes() may be used only in the context of a component.");let{navigator:n}=L.useContext(nl),{matches:a}=L.useContext(mu),i=a[a.length-1],o=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",d=i&&i.route;{let b=d&&d.path||"";rF(l,!d||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (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 h=kc(),m;if(t){let b=typeof t=="string"?fp(t):t;Ta(u==="/"||b.pathname?.startsWith(u),`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 "${u}" but pathname "${b.pathname}" was given in the \`location\` prop.`),m=b}else m=h;let x=m.pathname||"/",g=x;if(u!=="/"){let b=u.replace(/^\//,"").split("/");g="/"+x.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=qI(e,{pathname:g});Dl(d||w!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Dl(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 y=HG(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:ou([u,n.encodeLocation?n.encodeLocation(b.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?u:ou([u,n.encodeLocation?n.encodeLocation(b.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),a,r);return t&&y?L.createElement(Jx.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...m},navigationType:"POP"}},y):y}function BG(){let e=YG(),t=AG(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=L.createElement(L.Fragment,null,L.createElement("p",null,"💿 Hey developer 👋"),L.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",L.createElement("code",{style:i},"ErrorBoundary")," or"," ",L.createElement("code",{style:i},"errorElement")," prop on your route.")),L.createElement(L.Fragment,null,L.createElement("h2",null,"Unexpected Application Error!"),L.createElement("h3",{style:{fontStyle:"italic"}},t),r?L.createElement("pre",{style:a},r):null,o)}var $G=L.createElement(BG,null),tF=class extends L.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=LG(e.digest);r&&(e=r)}let t=e!==void 0?L.createElement(mu.Provider,{value:this.props.routeContext},L.createElement(RA.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?L.createElement(UG,{error:e},t):t}};tF.contextType=TG;var S5=new WeakMap;function UG({children:e,error:t}){let{basename:r}=L.useContext(nl);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=DG(t.digest);if(n){let a=S5.get(t);if(a)throw a;let i=YI(n.location,r);if(GI&&!S5.get(t))if(i.isExternal||n.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:n.replace}));throw S5.set(t,o),o}return L.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function zG({routeContext:e,match:t,children:r}){let n=L.useContext(hp);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),L.createElement(mu.Provider,{value:e},r)}function HG(e,t=[],r){let n=r?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,i=n?.errors;if(i!=null){let h=a.findIndex(m=>m.route.id&&i?.[m.route.id]!==void 0);Ta(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,h+1))}let o=!1,l=-1;if(r&&n){o=n.renderFallback;for(let h=0;h=0?a=a.slice(0,l+1):a=[a[0]];break}}}}let u=r?.onError,d=n&&u?(h,m)=>{u(h,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:_G(n.matches),errorInfo:m})}:void 0;return a.reduceRight((h,m,x)=>{let g,w=!1,y=null,b=null;n&&(g=i&&m.route.id?i[m.route.id]:void 0,y=m.route.errorElement||$G,o&&(l<0&&x===0?(rF("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,b=null):l===x&&(w=!0,b=m.route.hydrateFallbackElement||null)));let N=t.concat(a.slice(0,x+1)),A=()=>{let j;return g?j=y:w?j=b:m.route.Component?j=L.createElement(m.route.Component,null):m.route.element?j=m.route.element:j=h,L.createElement(zG,{match:m,routeContext:{outlet:h,matches:N,isDataRoute:n!=null},children:j})};return n&&(m.route.ErrorBoundary||m.route.errorElement||x===0)?L.createElement(tF,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:A(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:d}):A()},null)}function DA(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qG(e){let t=L.useContext(hp);return Ta(t,DA(e)),t}function WG(e){let t=L.useContext(a2);return Ta(t,DA(e)),t}function VG(e){let t=L.useContext(mu);return Ta(t,DA(e)),t}function LA(e){let t=VG(e),r=t.matches[t.matches.length-1];return Ta(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function GG(){return LA("useRouteId")}function YG(){let e=L.useContext(RA),t=WG("useRouteError"),r=LA("useRouteError");return e!==void 0?e:t.errors?.[r]}function KG(){let{router:e}=qG("useNavigate"),t=LA("useNavigate"),r=L.useRef(!1);return QI(()=>{r.current=!0}),L.useCallback(async(a,i={})=>{Dl(r.current,JI),r.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var aC={};function rF(e,t,r){!t&&!aC[e]&&(aC[e]=!0,Dl(!1,r))}L.memo(XG);function XG({routes:e,future:t,state:r,isStatic:n,onError:a}){return eF(e,void 0,{state:r,isStatic:n,onError:a})}function j5({to:e,replace:t,state:r,relative:n}){Ta(mp()," may be used only in the context of a component.");let{static:a}=L.useContext(nl);Dl(!a," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:i}=L.useContext(mu),{pathname:o}=kc(),l=pp(),u=n2(e,PA(i),o,n==="path"),d=JSON.stringify(u);return L.useEffect(()=>{l(JSON.parse(d),{replace:t,state:r,relative:n})},[l,d,n,t,r]),null}function On(e){Ta(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function ZG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:i=!1,unstable_useTransitions:o}){Ta(!mp(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=L.useMemo(()=>({basename:l,navigator:a,static:i,unstable_useTransitions:o,future:{}}),[l,a,i,o]);typeof r=="string"&&(r=fp(r));let{pathname:d="/",search:h="",hash:m="",state:x=null,key:g="default",unstable_mask:w}=r,y=L.useMemo(()=>{let b=xd(d,l);return b==null?null:{location:{pathname:b,search:h,hash:m,state:x,key:g,unstable_mask:w},navigationType:n}},[l,d,h,m,x,g,n,w]);return Dl(y!=null,` is not able to match the URL "${d}${h}${m}" because it does not start with the basename, so the won't render anything.`),y==null?null:L.createElement(nl.Provider,{value:u},L.createElement(Jx.Provider,{children:t,value:y}))}function iC({children:e,location:t}){return FG(Sj(e),t)}function Sj(e,t=[]){let r=[];return L.Children.forEach(e,(n,a)=>{if(!L.isValidElement(n))return;let i=[...t,a];if(n.type===L.Fragment){r.push.apply(r,Sj(n.props.children,i));return}Ta(n.type===On,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),Ta(!n.props.index||!n.props.children,"An index route cannot have child routes.");let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Sj(n.props.children,i)),r.push(o)}),r}var rv="get",nv="application/x-www-form-urlencoded";function i2(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function JG(e){return i2(e)&&e.tagName.toLowerCase()==="button"}function QG(e){return i2(e)&&e.tagName.toLowerCase()==="form"}function eY(e){return i2(e)&&e.tagName.toLowerCase()==="input"}function tY(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rY(e,t){return e.button===0&&(!t||t==="_self")&&!tY(e)}function jj(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function nY(e,t){let r=jj(e);return t&&t.forEach((n,a)=>{r.has(a)||t.getAll(a).forEach(i=>{r.append(a,i)})}),r}var py=null;function aY(){if(py===null)try{new FormData(document.createElement("form"),0),py=!1}catch{py=!0}return py}var iY=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function k5(e){return e!=null&&!iY.has(e)?(Dl(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${nv}"`),null):e}function sY(e,t){let r,n,a,i,o;if(QG(e)){let l=e.getAttribute("action");n=l?xd(l,t):null,r=e.getAttribute("method")||rv,a=k5(e.getAttribute("enctype"))||nv,i=new FormData(e)}else if(JG(e)||eY(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a