@c4a/server-cli 0.4.11 → 0.4.12-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +795 -3402
- package/package.json +1 -1
- package/serve.js +3223 -4193
- package/web/assets/index--UyZtsHr.js +238 -0
- package/web/assets/index-15FuETM5.js +238 -0
- package/web/assets/index-1O90ZcBt.js +238 -0
- package/web/assets/index-2ZaXHlEm.js +12 -0
- package/web/assets/index-5SgaIe6K.js +238 -0
- package/web/assets/index-69TE-Dt9.js +238 -0
- package/web/assets/index-6qWMAJjW.js +12 -0
- package/web/assets/index-8bavzcKH.js +238 -0
- package/web/assets/index-B2JcVRax.js +238 -0
- package/web/assets/index-B3a1j3cz.js +238 -0
- package/web/assets/index-B6EqO_Cg.js +12 -0
- package/web/assets/index-B7OJ5sV_.js +238 -0
- package/web/assets/index-B9YWtkC-.js +12 -0
- package/web/assets/index-BD162a_1.js +238 -0
- package/web/assets/index-BF50bkqY.css +1 -0
- package/web/assets/index-BPMcNaXa.css +1 -0
- package/web/assets/index-BPlwhwPb.css +1 -0
- package/web/assets/index-BW9aouHt.js +238 -0
- package/web/assets/index-BbZvxZvZ.css +1 -0
- package/web/assets/index-BkYFml7g.css +1 -0
- package/web/assets/index-Bnn0CunM.js +238 -0
- package/web/assets/index-BosC7CbW.css +1 -0
- package/web/assets/index-BrJa-9jA.css +1 -0
- package/web/assets/index-C63Z-8cw.js +238 -0
- package/web/assets/index-C6ydhyiL.js +238 -0
- package/web/assets/index-CAXoXe3-.css +1 -0
- package/web/assets/index-CDG7D9Wo.css +1 -0
- package/web/assets/index-CNruo9jb.js +238 -0
- package/web/assets/index-CUGq5bZG.js +12 -0
- package/web/assets/index-CVB_F0xd.js +238 -0
- package/web/assets/index-CVct6UjO.css +1 -0
- package/web/assets/index-CX2QKHgP.js +12 -0
- package/web/assets/index-Cok56quU.css +1 -0
- package/web/assets/index-Ct-X2M8U.js +12 -0
- package/web/assets/index-CtnVCeI7.css +1 -0
- package/web/assets/index-Cu6ttPtz.js +12 -0
- package/web/assets/index-CvTLDILA.css +1 -0
- package/web/assets/index-D0x9zuj2.js +238 -0
- package/web/assets/index-D12WsS4E.js +238 -0
- package/web/assets/index-D3-qG0Hp.js +238 -0
- package/web/assets/index-D3UsEQTE.css +1 -0
- package/web/assets/index-D5WvCk3U.js +238 -0
- package/web/assets/index-D6QqUdMz.css +1 -0
- package/web/assets/index-D7EkgIsu.js +12 -0
- package/web/assets/index-DB_YWOXK.js +12 -0
- package/web/assets/index-DBaysFVi.css +1 -0
- package/web/assets/index-DGYdHfUt.js +238 -0
- package/web/assets/index-DIzfj2PR.css +1 -0
- package/web/assets/index-DJiYLRIW.css +1 -0
- package/web/assets/index-DQcztEye.js +238 -0
- package/web/assets/index-DSnxWXVs.css +1 -0
- package/web/assets/index-DX1UQEJF.css +1 -0
- package/web/assets/index-DgtV8nwc.js +238 -0
- package/web/assets/index-DqdyIshw.js +12 -0
- package/web/assets/index-DyF2kEj9.js +238 -0
- package/web/assets/index-H6Rs5Fbq.js +12 -0
- package/web/assets/index-O5LI2GNV.js +238 -0
- package/web/assets/index-SnFvyzm_.css +1 -0
- package/web/assets/index-bnfl0N-T.css +1 -0
- package/web/assets/index-cMgxghVE.css +1 -0
- package/web/assets/index-dDuVahj-.js +12 -0
- package/web/assets/index-fG23cf-l.js +238 -0
- package/web/assets/index-it-5oMch.css +1 -0
- package/web/assets/index-yq497d-W.js +12 -0
- package/web/index.html +2 -2
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
function XR(s,o){for(var l=0;l<o.length;l++){const c=o[l];if(typeof c!="string"&&!Array.isArray(c)){for(const u in c)if(u!=="default"&&!(u in s)){const f=Object.getOwnPropertyDescriptor(c,u);f&&Object.defineProperty(s,u,f.get?f:{enumerable:!0,get:()=>c[u]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))c(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function l(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(u){if(u.ep)return;u.ep=!0;const f=l(u);fetch(u.href,f)}})();function QR(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var wg={exports:{}},wf={},Eg={exports:{}},Fc={exports:{}};Fc.exports;var O1;function ZR(){return O1||(O1=1,(function(s,o){(function(){function l(w,M){Object.defineProperty(f.prototype,w,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",M[0],M[1])}})}function c(w){return w===null||typeof w!="object"?null:(w=ss&&w[ss]||w["@@iterator"],typeof w=="function"?w:null)}function u(w,M){w=(w=w.constructor)&&(w.displayName||w.name)||"ReactClass";var ne=w+"."+M;Rt[ne]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",M,w),Rt[ne]=!0)}function f(w,M,ne){this.props=w,this.context=M,this.refs=qe,this.updater=ne||Se}function h(){}function g(w,M,ne){this.props=w,this.context=M,this.refs=qe,this.updater=ne||Se}function b(){}function v(w){return""+w}function D(w){try{v(w);var M=!1}catch{M=!0}if(M){M=console;var ne=M.error,ce=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return ne.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ce),v(w)}}function x(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===No?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case q:return"Fragment";case Ue:return"Profiler";case ge:return"StrictMode";case ct:return"Suspense";case ta:return"SuspenseList";case xe:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case ve:return"Portal";case mt:return w.displayName||"Context";case Re:return(w._context.displayName||"Context")+".Consumer";case Mt:var M=w.render;return w=w.displayName,w||(w=M.displayName||M.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case Ft:return M=w.displayName||null,M!==null?M:x(w.type)||"Memo";case Ja:M=w._payload,w=w._init;try{return x(w(M))}catch{}}return null}function N(w){if(w===q)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===Ja)return"<...>";try{var M=x(w);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function R(){var w=we.A;return w===null?null:w.getOwner()}function T(){return Error("react-stack-top-frame")}function B(w){if(hn.call(w,"key")){var M=Object.getOwnPropertyDescriptor(w,"key").get;if(M&&M.isReactWarning)return!1}return w.key!==void 0}function L(w,M){function ne(){Hn||(Hn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",M))}ne.isReactWarning=!0,Object.defineProperty(w,"key",{get:ne,configurable:!0})}function Z(){var w=x(this.type);return gn[w]||(gn[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}function J(w,M,ne,ce,Ee,Be){var Ce=ne.ref;return w={$$typeof:W,type:w,key:M,props:ne,_owner:ce},(Ce!==void 0?Ce:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:Z}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ee}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function te(w,M){return M=J(w.type,M,w.props,w._owner,w._debugStack,w._debugTask),w._store&&(M._store.validated=w._store.validated),M}function ue(w){re(w)?w._store&&(w._store.validated=1):typeof w=="object"&&w!==null&&w.$$typeof===Ja&&(w._payload.status==="fulfilled"?re(w._payload.value)&&w._payload.value._store&&(w._payload.value._store.validated=1):w._store&&(w._store.validated=1))}function re(w){return typeof w=="object"&&w!==null&&w.$$typeof===W}function me(w){var M={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(ne){return M[ne]})}function fe(w,M){return typeof w=="object"&&w!==null&&w.key!=null?(D(w.key),me(""+w.key)):M.toString(36)}function _(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(b,b):(w.status="pending",w.then(function(M){w.status==="pending"&&(w.status="fulfilled",w.value=M)},function(M){w.status==="pending"&&(w.status="rejected",w.reason=M)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function Q(w,M,ne,ce,Ee){var Be=typeof w;(Be==="undefined"||Be==="boolean")&&(w=null);var Ce=!1;if(w===null)Ce=!0;else switch(Be){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(w.$$typeof){case W:case ve:Ce=!0;break;case Ja:return Ce=w._init,Q(Ce(w._payload),M,ne,ce,Ee)}}if(Ce){Ce=w,Ee=Ee(Ce);var nt=ce===""?"."+fe(Ce,0):ce;return wt(Ee)?(ne="",nt!=null&&(ne=nt.replace($a,"$&/")+"/"),Q(Ee,M,ne,"",function(oa){return oa})):Ee!=null&&(re(Ee)&&(Ee.key!=null&&(Ce&&Ce.key===Ee.key||D(Ee.key)),ne=te(Ee,ne+(Ee.key==null||Ce&&Ce.key===Ee.key?"":(""+Ee.key).replace($a,"$&/")+"/")+nt),ce!==""&&Ce!=null&&re(Ce)&&Ce.key==null&&Ce._store&&!Ce._store.validated&&(ne._store.validated=2),Ee=ne),M.push(Ee)),1}if(Ce=0,nt=ce===""?".":ce+":",wt(w))for(var Ge=0;Ge<w.length;Ge++)ce=w[Ge],Be=nt+fe(ce,Ge),Ce+=Q(ce,M,ne,Be,Ee);else if(Ge=c(w),typeof Ge=="function")for(Ge===w.entries&&(bn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bn=!0),w=Ge.call(w),Ge=0;!(ce=w.next()).done;)ce=ce.value,Be=nt+fe(ce,Ge++),Ce+=Q(ce,M,ne,Be,Ee);else if(Be==="object"){if(typeof w.then=="function")return Q(_(w),M,ne,ce,Ee);throw M=String(w),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function H(w,M,ne){if(w==null)return w;var ce=[],Ee=0;return Q(w,ce,"","",function(Be){return M.call(ne,Be,Ee++)}),ce}function $(w){if(w._status===-1){var M=w._ioInfo;M!=null&&(M.start=M.end=performance.now()),M=w._result;var ne=M();if(ne.then(function(Ee){if(w._status===0||w._status===-1){w._status=1,w._result=Ee;var Be=w._ioInfo;Be!=null&&(Be.end=performance.now()),ne.status===void 0&&(ne.status="fulfilled",ne.value=Ee)}},function(Ee){if(w._status===0||w._status===-1){w._status=2,w._result=Ee;var Be=w._ioInfo;Be!=null&&(Be.end=performance.now()),ne.status===void 0&&(ne.status="rejected",ne.reason=Ee)}}),M=w._ioInfo,M!=null){M.value=ne;var ce=ne.displayName;typeof ce=="string"&&(M.name=ce)}w._status===-1&&(w._status=0,w._result=ne)}if(w._status===1)return M=w._result,M===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
+
|
|
3
|
+
Your code should look like:
|
|
4
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
+
|
|
6
|
+
Did you accidentally put curly braces around the import?`,M),"default"in M||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
|
+
|
|
8
|
+
Your code should look like:
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,M),M.default;throw w._result}function P(){var w=we.H;return w===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
+
2. You might be breaking the Rules of Hooks
|
|
12
|
+
3. You might have more than one copy of React in the same app
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),w}function X(){we.asyncTransitions--}function ae(w){if(Hs===null)try{var M=("require"+Math.random()).slice(0,7);Hs=(s&&s[M]).call(s,"timers").setImmediate}catch{Hs=function(ce){wo===!1&&(wo=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ee=new MessageChannel;Ee.port1.onmessage=ce,Ee.port2.postMessage(void 0)}}return Hs(w)}function Ne(w){return 1<w.length&&typeof AggregateError=="function"?new AggregateError(w):w[0]}function ee(w,M){M!==yn-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),yn=M}function ie(w,M,ne){var ce=we.actQueue;if(ce!==null)if(ce.length!==0)try{he(ce),ae(function(){return ie(w,M,ne)});return}catch(Ee){we.thrownErrors.push(Ee)}else we.actQueue=null;0<we.thrownErrors.length?(ce=Ne(we.thrownErrors),we.thrownErrors.length=0,ne(ce)):M(w)}function he(w){if(!ya){ya=!0;var M=0;try{for(;M<w.length;M++){var ne=w[M];do{we.didUsePromise=!1;var ce=ne(!1);if(ce!==null){if(we.didUsePromise){w[M]=ne,w.splice(0,M);return}ne=ce}else break}while(!0)}w.length=0}catch(Ee){w.splice(0,M+1),we.thrownErrors.push(Ee)}finally{ya=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var W=Symbol.for("react.transitional.element"),ve=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),Re=Symbol.for("react.consumer"),mt=Symbol.for("react.context"),Mt=Symbol.for("react.forward_ref"),ct=Symbol.for("react.suspense"),ta=Symbol.for("react.suspense_list"),Ft=Symbol.for("react.memo"),Ja=Symbol.for("react.lazy"),xe=Symbol.for("react.activity"),ss=Symbol.iterator,Rt={},Se={isMounted:function(){return!1},enqueueForceUpdate:function(w){u(w,"forceUpdate")},enqueueReplaceState:function(w){u(w,"replaceState")},enqueueSetState:function(w){u(w,"setState")}},Je=Object.assign,qe={};Object.freeze(qe),f.prototype.isReactComponent={},f.prototype.setState=function(w,M){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,M,"setState")},f.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};var ft={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for($n in ft)ft.hasOwnProperty($n)&&l($n,ft[$n]);h.prototype=f.prototype,ft=g.prototype=new h,ft.constructor=g,Je(ft,f.prototype),ft.isPureReactComponent=!0;var wt=Array.isArray,No=Symbol.for("react.client.reference"),we={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},hn=Object.prototype.hasOwnProperty,_a=console.createTask?console.createTask:function(){return null};ft={react_stack_bottom_frame:function(w){return w()}};var Hn,os,gn={},Bn=ft.react_stack_bottom_frame.bind(ft,T)(),So=_a(N(T)),bn=!1,$a=/\/+/g,Ca=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},wo=!1,Hs=null,yn=0,Bs=!1,ya=!1,$s=typeof queueMicrotask=="function"?function(w){queueMicrotask(function(){return queueMicrotask(w)})}:ae;ft=Object.freeze({__proto__:null,c:function(w){return P().useMemoCache(w)}});var $n={map:H,forEach:function(w,M,ne){H(w,function(){M.apply(this,arguments)},ne)},count:function(w){var M=0;return H(w,function(){M++}),M},toArray:function(w){return H(w,function(M){return M})||[]},only:function(w){if(!re(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};o.Activity=xe,o.Children=$n,o.Component=f,o.Fragment=q,o.Profiler=Ue,o.PureComponent=g,o.StrictMode=ge,o.Suspense=ct,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=we,o.__COMPILER_RUNTIME=ft,o.act=function(w){var M=we.actQueue,ne=yn;yn++;var ce=we.actQueue=M!==null?M:[],Ee=!1;try{var Be=w()}catch(Ge){we.thrownErrors.push(Ge)}if(0<we.thrownErrors.length)throw ee(M,ne),w=Ne(we.thrownErrors),we.thrownErrors.length=0,w;if(Be!==null&&typeof Be=="object"&&typeof Be.then=="function"){var Ce=Be;return $s(function(){Ee||Bs||(Bs=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ge,oa){Ee=!0,Ce.then(function(ka){if(ee(M,ne),ne===0){try{he(ce),ae(function(){return ie(ka,Ge,oa)})}catch(qs){we.thrownErrors.push(qs)}if(0<we.thrownErrors.length){var Ys=Ne(we.thrownErrors);we.thrownErrors.length=0,oa(Ys)}}else Ge(ka)},function(ka){ee(M,ne),0<we.thrownErrors.length&&(ka=Ne(we.thrownErrors),we.thrownErrors.length=0),oa(ka)})}}}var nt=Be;if(ee(M,ne),ne===0&&(he(ce),ce.length!==0&&$s(function(){Ee||Bs||(Bs=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),we.actQueue=null),0<we.thrownErrors.length)throw w=Ne(we.thrownErrors),we.thrownErrors.length=0,w;return{then:function(Ge,oa){Ee=!0,ne===0?(we.actQueue=ce,ae(function(){return ie(nt,Ge,oa)})):Ge(nt)}}},o.cache=function(w){return function(){return w.apply(null,arguments)}},o.cacheSignal=function(){return null},o.captureOwnerStack=function(){var w=we.getCurrentStack;return w===null?null:w()},o.cloneElement=function(w,M,ne){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ce=Je({},w.props),Ee=w.key,Be=w._owner;if(M!=null){var Ce;e:{if(hn.call(M,"ref")&&(Ce=Object.getOwnPropertyDescriptor(M,"ref").get)&&Ce.isReactWarning){Ce=!1;break e}Ce=M.ref!==void 0}Ce&&(Be=R()),B(M)&&(D(M.key),Ee=""+M.key);for(nt in M)!hn.call(M,nt)||nt==="key"||nt==="__self"||nt==="__source"||nt==="ref"&&M.ref===void 0||(ce[nt]=M[nt])}var nt=arguments.length-2;if(nt===1)ce.children=ne;else if(1<nt){Ce=Array(nt);for(var Ge=0;Ge<nt;Ge++)Ce[Ge]=arguments[Ge+2];ce.children=Ce}for(ce=J(w.type,Ee,ce,Be,w._debugStack,w._debugTask),Ee=2;Ee<arguments.length;Ee++)ue(arguments[Ee]);return ce},o.createContext=function(w){return w={$$typeof:mt,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:Re,_context:w},w._currentRenderer=null,w._currentRenderer2=null,w},o.createElement=function(w,M,ne){for(var ce=2;ce<arguments.length;ce++)ue(arguments[ce]);ce={};var Ee=null;if(M!=null)for(Ge in os||!("__self"in M)||"key"in M||(os=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),B(M)&&(D(M.key),Ee=""+M.key),M)hn.call(M,Ge)&&Ge!=="key"&&Ge!=="__self"&&Ge!=="__source"&&(ce[Ge]=M[Ge]);var Be=arguments.length-2;if(Be===1)ce.children=ne;else if(1<Be){for(var Ce=Array(Be),nt=0;nt<Be;nt++)Ce[nt]=arguments[nt+2];Object.freeze&&Object.freeze(Ce),ce.children=Ce}if(w&&w.defaultProps)for(Ge in Be=w.defaultProps,Be)ce[Ge]===void 0&&(ce[Ge]=Be[Ge]);Ee&&L(ce,typeof w=="function"?w.displayName||w.name||"Unknown":w);var Ge=1e4>we.recentlyCreatedOwnerStacks++;return J(w,Ee,ce,R(),Ge?Error("react-stack-top-frame"):Bn,Ge?_a(N(w)):So)},o.createRef=function(){var w={current:null};return Object.seal(w),w},o.forwardRef=function(w){w!=null&&w.$$typeof===Ft?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof w!="function"?console.error("forwardRef requires a render function but was given %s.",w===null?"null":typeof w):w.length!==0&&w.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",w.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),w!=null&&w.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var M={$$typeof:Mt,render:w},ne;return Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return ne},set:function(ce){ne=ce,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ce}),w.displayName=ce)}}),M},o.isValidElement=re,o.lazy=function(w){w={_status:-1,_result:w};var M={$$typeof:Ja,_payload:w,_init:$},ne={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return w._ioInfo=ne,M._debugInfo=[{awaited:ne}],M},o.memo=function(w,M){w==null&&console.error("memo: The first argument must be a component. Instead received: %s",w===null?"null":typeof w),M={$$typeof:Ft,type:w,compare:M===void 0?null:M};var ne;return Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return ne},set:function(ce){ne=ce,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ce}),w.displayName=ce)}}),M},o.startTransition=function(w){var M=we.T,ne={};ne._updatedFibers=new Set,we.T=ne;try{var ce=w(),Ee=we.S;Ee!==null&&Ee(ne,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&(we.asyncTransitions++,ce.then(X,X),ce.then(b,Ca))}catch(Be){Ca(Be)}finally{M===null&&ne._updatedFibers&&(w=ne._updatedFibers.size,ne._updatedFibers.clear(),10<w&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),M!==null&&ne.types!==null&&(M.types!==null&&M.types!==ne.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),M.types=ne.types),we.T=M}},o.unstable_useCacheRefresh=function(){return P().useCacheRefresh()},o.use=function(w){return P().use(w)},o.useActionState=function(w,M,ne){return P().useActionState(w,M,ne)},o.useCallback=function(w,M){return P().useCallback(w,M)},o.useContext=function(w){var M=P();return w.$$typeof===Re&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),M.useContext(w)},o.useDebugValue=function(w,M){return P().useDebugValue(w,M)},o.useDeferredValue=function(w,M){return P().useDeferredValue(w,M)},o.useEffect=function(w,M){return w==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),P().useEffect(w,M)},o.useEffectEvent=function(w){return P().useEffectEvent(w)},o.useId=function(){return P().useId()},o.useImperativeHandle=function(w,M,ne){return P().useImperativeHandle(w,M,ne)},o.useInsertionEffect=function(w,M){return w==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),P().useInsertionEffect(w,M)},o.useLayoutEffect=function(w,M){return w==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),P().useLayoutEffect(w,M)},o.useMemo=function(w,M){return P().useMemo(w,M)},o.useOptimistic=function(w,M){return P().useOptimistic(w,M)},o.useReducer=function(w,M,ne){return P().useReducer(w,M,ne)},o.useRef=function(w){return P().useRef(w)},o.useState=function(w){return P().useState(w)},o.useSyncExternalStore=function(w,M,ne){return P().useSyncExternalStore(w,M,ne)},o.useTransition=function(){return P().useTransition()},o.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Fc,Fc.exports)),Fc.exports}var A1;function nu(){return A1||(A1=1,Eg.exports=ZR()),Eg.exports}var V1;function PR(){if(V1)return wf;V1=1;return(function(){function s(q){if(q==null)return null;if(typeof q=="function")return q.$$typeof===$?null:q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case L:return"Fragment";case J:return"Profiler";case Z:return"StrictMode";case me:return"Suspense";case fe:return"SuspenseList";case H:return"Activity"}if(typeof q=="object")switch(typeof q.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),q.$$typeof){case B:return"Portal";case ue:return q.displayName||"Context";case te:return(q._context.displayName||"Context")+".Consumer";case re:var ge=q.render;return q=q.displayName,q||(q=ge.displayName||ge.name||"",q=q!==""?"ForwardRef("+q+")":"ForwardRef"),q;case _:return ge=q.displayName||null,ge!==null?ge:s(q.type)||"Memo";case Q:ge=q._payload,q=q._init;try{return s(q(ge))}catch{}}return null}function o(q){return""+q}function l(q){try{o(q);var ge=!1}catch{ge=!0}if(ge){ge=console;var Ue=ge.error,Re=typeof Symbol=="function"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||"Object";return Ue.call(ge,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Re),o(q)}}function c(q){if(q===L)return"<>";if(typeof q=="object"&&q!==null&&q.$$typeof===Q)return"<...>";try{var ge=s(q);return ge?"<"+ge+">":"<...>"}catch{return"<...>"}}function u(){var q=P.A;return q===null?null:q.getOwner()}function f(){return Error("react-stack-top-frame")}function h(q){if(X.call(q,"key")){var ge=Object.getOwnPropertyDescriptor(q,"key").get;if(ge&&ge.isReactWarning)return!1}return q.key!==void 0}function g(q,ge){function Ue(){ee||(ee=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ge))}Ue.isReactWarning=!0,Object.defineProperty(q,"key",{get:Ue,configurable:!0})}function b(){var q=s(this.type);return ie[q]||(ie[q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),q=this.props.ref,q!==void 0?q:null}function v(q,ge,Ue,Re,mt,Mt){var ct=Ue.ref;return q={$$typeof:T,type:q,key:ge,props:Ue,_owner:Re},(ct!==void 0?ct:null)!==null?Object.defineProperty(q,"ref",{enumerable:!1,get:b}):Object.defineProperty(q,"ref",{enumerable:!1,value:null}),q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:mt}),Object.defineProperty(q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Mt}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function D(q,ge,Ue,Re,mt,Mt){var ct=ge.children;if(ct!==void 0)if(Re)if(ae(ct)){for(Re=0;Re<ct.length;Re++)x(ct[Re]);Object.freeze&&Object.freeze(ct)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(ct);if(X.call(ge,"key")){ct=s(q);var ta=Object.keys(ge).filter(function(Ja){return Ja!=="key"});Re=0<ta.length?"{key: someKey, "+ta.join(": ..., ")+": ...}":"{key: someKey}",ve[ct+Re]||(ta=0<ta.length?"{"+ta.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
14
|
+
let props = %s;
|
|
15
|
+
<%s {...props} />
|
|
16
|
+
React keys must be passed directly to JSX without using spread:
|
|
17
|
+
let props = %s;
|
|
18
|
+
<%s key={someKey} {...props} />`,Re,ct,ta,ct),ve[ct+Re]=!0)}if(ct=null,Ue!==void 0&&(l(Ue),ct=""+Ue),h(ge)&&(l(ge.key),ct=""+ge.key),"key"in ge){Ue={};for(var Ft in ge)Ft!=="key"&&(Ue[Ft]=ge[Ft])}else Ue=ge;return ct&&g(Ue,typeof q=="function"?q.displayName||q.name||"Unknown":q),v(q,ct,Ue,u(),mt,Mt)}function x(q){N(q)?q._store&&(q._store.validated=1):typeof q=="object"&&q!==null&&q.$$typeof===Q&&(q._payload.status==="fulfilled"?N(q._payload.value)&&q._payload.value._store&&(q._payload.value._store.validated=1):q._store&&(q._store.validated=1))}function N(q){return typeof q=="object"&&q!==null&&q.$$typeof===T}var R=nu(),T=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),ue=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),P=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,ae=Array.isArray,Ne=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(q){return q()}};var ee,ie={},he=R.react_stack_bottom_frame.bind(R,f)(),W=Ne(c(f)),ve={};wf.Fragment=L,wf.jsxDEV=function(q,ge,Ue,Re){var mt=1e4>P.recentlyCreatedOwnerStacks++;return D(q,ge,Ue,Re,mt?Error("react-stack-top-frame"):he,mt?Ne(c(q)):W)}})(),wf}var M1;function JR(){return M1||(M1=1,wg.exports=PR()),wg.exports}var m=JR();const Ie=s=>typeof s=="string",Bc=()=>{let s,o;const l=new Promise((c,u)=>{s=c,o=u});return l.resolve=s,l.reject=o,l},z1=s=>s==null?"":""+s,KR=(s,o,l)=>{s.forEach(c=>{o[c]&&(l[c]=o[c])})},WR=/###/g,L1=s=>s&&s.indexOf("###")>-1?s.replace(WR,"."):s,H1=s=>!s||Ie(s),Zc=(s,o,l)=>{const c=Ie(o)?o.split("."):o;let u=0;for(;u<c.length-1;){if(H1(s))return{};const f=L1(c[u]);!s[f]&&l&&(s[f]=new l),Object.prototype.hasOwnProperty.call(s,f)?s=s[f]:s={},++u}return H1(s)?{}:{obj:s,k:L1(c[u])}},B1=(s,o,l)=>{const{obj:c,k:u}=Zc(s,o,Object);if(c!==void 0||o.length===1){c[u]=l;return}let f=o[o.length-1],h=o.slice(0,o.length-1),g=Zc(s,h,Object);for(;g.obj===void 0&&h.length;)f=`${h[h.length-1]}.${f}`,h=h.slice(0,h.length-1),g=Zc(s,h,Object),g?.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=l},e_=(s,o,l,c)=>{const{obj:u,k:f}=Zc(s,o,Object);u[f]=u[f]||[],u[f].push(l)},Af=(s,o)=>{const{obj:l,k:c}=Zc(s,o);if(l&&Object.prototype.hasOwnProperty.call(l,c))return l[c]},t_=(s,o,l)=>{const c=Af(s,l);return c!==void 0?c:Af(o,l)},lw=(s,o,l)=>{for(const c in o)c!=="__proto__"&&c!=="constructor"&&(c in s?Ie(s[c])||s[c]instanceof String||Ie(o[c])||o[c]instanceof String?l&&(s[c]=o[c]):lw(s[c],o[c],l):s[c]=o[c]);return s},Wr=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var a_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const n_=s=>Ie(s)?s.replace(/[&<>"'\/]/g,o=>a_[o]):s;class s_{constructor(o){this.capacity=o,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(o){const l=this.regExpMap.get(o);if(l!==void 0)return l;const c=new RegExp(o);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(o,c),this.regExpQueue.push(o),c}}const o_=[" ",",","?","!",";"],r_=new s_(20),i_=(s,o,l)=>{o=o||"",l=l||"";const c=o_.filter(h=>o.indexOf(h)<0&&l.indexOf(h)<0);if(c.length===0)return!0;const u=r_.getRegExp(`(${c.map(h=>h==="?"?"\\?":h).join("|")})`);let f=!u.test(s);if(!f){const h=s.indexOf(l);h>0&&!u.test(s.substring(0,h))&&(f=!0)}return f},Yg=(s,o,l=".")=>{if(!s)return;if(s[o])return Object.prototype.hasOwnProperty.call(s,o)?s[o]:void 0;const c=o.split(l);let u=s;for(let f=0;f<c.length;){if(!u||typeof u!="object")return;let h,g="";for(let b=f;b<c.length;++b)if(b!==f&&(g+=l),g+=c[b],h=u[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&b<c.length-1)continue;f+=b-f+1;break}u=h}return u},Kc=s=>s?.replace("_","-"),l_={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,o){console?.[s]?.apply?.(console,o)}};class Vf{constructor(o,l={}){this.init(o,l)}init(o,l={}){this.prefix=l.prefix||"i18next:",this.logger=o||l_,this.options=l,this.debug=l.debug}log(...o){return this.forward(o,"log","",!0)}warn(...o){return this.forward(o,"warn","",!0)}error(...o){return this.forward(o,"error","")}deprecate(...o){return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(o,l,c,u){return u&&!this.debug?null:(Ie(o[0])&&(o[0]=`${c}${this.prefix} ${o[0]}`),this.logger[l](o))}create(o){return new Vf(this.logger,{prefix:`${this.prefix}:${o}:`,...this.options})}clone(o){return o=o||this.options,o.prefix=o.prefix||this.prefix,new Vf(this.logger,o)}}var Ms=new Vf;class Hf{constructor(){this.observers={}}on(o,l){return o.split(" ").forEach(c=>{this.observers[c]||(this.observers[c]=new Map);const u=this.observers[c].get(l)||0;this.observers[c].set(l,u+1)}),this}off(o,l){if(this.observers[o]){if(!l){delete this.observers[o];return}this.observers[o].delete(l)}}emit(o,...l){this.observers[o]&&Array.from(this.observers[o].entries()).forEach(([u,f])=>{for(let h=0;h<f;h++)u(...l)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([u,f])=>{for(let h=0;h<f;h++)u.apply(u,[o,...l])})}}class $1 extends Hf{constructor(o,l={ns:["translation"],defaultNS:"translation"}){super(),this.data=o||{},this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}removeNamespaces(o){const l=this.options.ns.indexOf(o);l>-1&&this.options.ns.splice(l,1)}getResource(o,l,c,u={}){const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,h=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;o.indexOf(".")>-1?g=o.split("."):(g=[o,l],c&&(Array.isArray(c)?g.push(...c):Ie(c)&&f?g.push(...c.split(f)):g.push(c)));const b=Af(this.data,g);return!b&&!l&&!c&&o.indexOf(".")>-1&&(o=g[0],l=g[1],c=g.slice(2).join(".")),b||!h||!Ie(c)?b:Yg(this.data?.[o]?.[l],c,f)}addResource(o,l,c,u,f={silent:!1}){const h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[o,l];c&&(g=g.concat(h?c.split(h):c)),o.indexOf(".")>-1&&(g=o.split("."),u=l,l=g[1]),this.addNamespaces(l),B1(this.data,g,u),f.silent||this.emit("added",o,l,c,u)}addResources(o,l,c,u={silent:!1}){for(const f in c)(Ie(c[f])||Array.isArray(c[f]))&&this.addResource(o,l,f,c[f],{silent:!0});u.silent||this.emit("added",o,l,c)}addResourceBundle(o,l,c,u,f,h={silent:!1,skipCopy:!1}){let g=[o,l];o.indexOf(".")>-1&&(g=o.split("."),u=c,c=l,l=g[1]),this.addNamespaces(l);let b=Af(this.data,g)||{};h.skipCopy||(c=JSON.parse(JSON.stringify(c))),u?lw(b,c,f):b={...b,...c},B1(this.data,g,b),h.silent||this.emit("added",o,l,c)}removeResourceBundle(o,l){this.hasResourceBundle(o,l)&&delete this.data[o][l],this.removeNamespaces(l),this.emit("removed",o,l)}hasResourceBundle(o,l){return this.getResource(o,l)!==void 0}getResourceBundle(o,l){return l||(l=this.options.defaultNS),this.getResource(o,l)}getDataByLanguage(o){return this.data[o]}hasLanguageSomeTranslations(o){const l=this.getDataByLanguage(o);return!!(l&&Object.keys(l)||[]).find(u=>l[u]&&Object.keys(l[u]).length>0)}toJSON(){return this.data}}var cw={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,o,l,c,u){return s.forEach(f=>{o=this.processors[f]?.process(o,l,c,u)??o}),o}};const uw=Symbol("i18next/PATH_KEY");function c_(){const s=[],o=Object.create(null);let l;return o.get=(c,u)=>(l?.revoke?.(),u===uw?s:(s.push(u),l=Proxy.revocable(c,o),l.proxy)),Proxy.revocable(Object.create(null),o).proxy}function qg(s,o){const{[uw]:l}=s(c_());return l.join(o?.keySeparator??".")}const Y1={},Dg=s=>!Ie(s)&&typeof s!="boolean"&&typeof s!="number";class Mf extends Hf{constructor(o,l={}){super(),KR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ms.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o,l={interpolation:{}}){const c={...l};if(o==null)return!1;const u=this.resolve(o,c);if(u?.res===void 0)return!1;const f=Dg(u.res);return!(c.returnObjects===!1&&f)}extractFromKey(o,l){let c=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let f=l.ns||this.options.defaultNS||[];const h=c&&o.indexOf(c)>-1,g=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!i_(o,c,u);if(h&&!g){const b=o.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:o,namespaces:Ie(f)?[f]:f};const v=o.split(c);(c!==u||c===u&&this.options.ns.indexOf(v[0])>-1)&&(f=v.shift()),o=v.join(u)}return{key:o,namespaces:Ie(f)?[f]:f}}translate(o,l,c){let u=typeof l=="object"?{...l}:l;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof u=="object"&&(u={...u}),u||(u={}),o==null)return"";typeof o=="function"&&(o=qg(o,{...this.options,...u})),Array.isArray(o)||(o=[String(o)]);const f=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,h=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:g,namespaces:b}=this.extractFromKey(o[o.length-1],u),v=b[b.length-1];let D=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;D===void 0&&(D=":");const x=u.lng||this.language,N=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x?.toLowerCase()==="cimode")return N?f?{res:`${v}${D}${g}`,usedKey:g,exactUsedKey:g,usedLng:x,usedNS:v,usedParams:this.getUsedParamsDetails(u)}:`${v}${D}${g}`:f?{res:g,usedKey:g,exactUsedKey:g,usedLng:x,usedNS:v,usedParams:this.getUsedParamsDetails(u)}:g;const R=this.resolve(o,u);let T=R?.res;const B=R?.usedKey||g,L=R?.exactUsedKey||g,Z=["[object Number]","[object Function]","[object RegExp]"],J=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,te=!this.i18nFormat||this.i18nFormat.handleAsObject,ue=u.count!==void 0&&!Ie(u.count),re=Mf.hasDefaultValue(u),me=ue?this.pluralResolver.getSuffix(x,u.count,u):"",fe=u.ordinal&&ue?this.pluralResolver.getSuffix(x,u.count,{ordinal:!1}):"",_=ue&&!u.ordinal&&u.count===0,Q=_&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${me}`]||u[`defaultValue${fe}`]||u.defaultValue;let H=T;te&&!T&&re&&(H=Q);const $=Dg(H),P=Object.prototype.toString.apply(H);if(te&&H&&$&&Z.indexOf(P)<0&&!(Ie(J)&&Array.isArray(H))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const X=this.options.returnedObjectHandler?this.options.returnedObjectHandler(B,H,{...u,ns:b}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(R.res=X,R.usedParams=this.getUsedParamsDetails(u),R):X}if(h){const X=Array.isArray(H),ae=X?[]:{},Ne=X?L:B;for(const ee in H)if(Object.prototype.hasOwnProperty.call(H,ee)){const ie=`${Ne}${h}${ee}`;re&&!T?ae[ee]=this.translate(ie,{...u,defaultValue:Dg(Q)?Q[ee]:void 0,joinArrays:!1,ns:b}):ae[ee]=this.translate(ie,{...u,joinArrays:!1,ns:b}),ae[ee]===ie&&(ae[ee]=H[ee])}T=ae}}else if(te&&Ie(J)&&Array.isArray(T))T=T.join(J),T&&(T=this.extendTranslation(T,o,u,c));else{let X=!1,ae=!1;!this.isValidLookup(T)&&re&&(X=!0,T=Q),this.isValidLookup(T)||(ae=!0,T=g);const ee=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ae?void 0:T,ie=re&&Q!==T&&this.options.updateMissing;if(ae||X||ie){if(this.logger.log(ie?"updateKey":"missingKey",x,v,g,ie?Q:T),h){const q=this.resolve(g,{...u,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let he=[];const W=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&W&&W[0])for(let q=0;q<W.length;q++)he.push(W[q]);else this.options.saveMissingTo==="all"?he=this.languageUtils.toResolveHierarchy(u.lng||this.language):he.push(u.lng||this.language);const ve=(q,ge,Ue)=>{const Re=re&&Ue!==T?Ue:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(q,v,ge,Re,ie,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(q,v,ge,Re,ie,u),this.emit("missingKey",q,v,ge,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ue?he.forEach(q=>{const ge=this.pluralResolver.getSuffixes(q,u);_&&u[`defaultValue${this.options.pluralSeparator}zero`]&&ge.indexOf(`${this.options.pluralSeparator}zero`)<0&&ge.push(`${this.options.pluralSeparator}zero`),ge.forEach(Ue=>{ve([q],g+Ue,u[`defaultValue${Ue}`]||Q)})}):ve(he,g,Q))}T=this.extendTranslation(T,o,u,R,c),ae&&T===g&&this.options.appendNamespaceToMissingKey&&(T=`${v}${D}${g}`),(ae||X)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}${D}${g}`:g,X?T:void 0,u))}return f?(R.res=T,R.usedParams=this.getUsedParamsDetails(u),R):T}extendTranslation(o,l,c,u,f){if(this.i18nFormat?.parse)o=this.i18nFormat.parse(o,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init({...c,interpolation:{...this.options.interpolation,...c.interpolation}});const b=Ie(o)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(b){const x=o.match(this.interpolator.nestingRegexp);v=x&&x.length}let D=c.replace&&!Ie(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(D={...this.options.interpolation.defaultVariables,...D}),o=this.interpolator.interpolate(o,D,c.lng||this.language||u.usedLng,c),b){const x=o.match(this.interpolator.nestingRegexp),N=x&&x.length;v<N&&(c.nest=!1)}!c.lng&&u&&u.res&&(c.lng=this.language||u.usedLng),c.nest!==!1&&(o=this.interpolator.nest(o,(...x)=>f?.[0]===x[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${l[0]}`),null):this.translate(...x,l),c)),c.interpolation&&this.interpolator.reset()}const h=c.postProcess||this.options.postProcess,g=Ie(h)?[h]:h;return o!=null&&g?.length&&c.applyPostProcessor!==!1&&(o=cw.handle(g,o,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),o}resolve(o,l={}){let c,u,f,h,g;return Ie(o)&&(o=[o]),o.forEach(b=>{if(this.isValidLookup(c))return;const v=this.extractFromKey(b,l),D=v.key;u=D;let x=v.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const N=l.count!==void 0&&!Ie(l.count),R=N&&!l.ordinal&&l.count===0,T=l.context!==void 0&&(Ie(l.context)||typeof l.context=="number")&&l.context!=="",B=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);x.forEach(L=>{this.isValidLookup(c)||(g=L,!Y1[`${B[0]}-${L}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(g)&&(Y1[`${B[0]}-${L}`]=!0,this.logger.warn(`key "${u}" for languages "${B.join(", ")}" won't get resolved as namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),B.forEach(Z=>{if(this.isValidLookup(c))return;h=Z;const J=[D];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(J,D,Z,L,l);else{let ue;N&&(ue=this.pluralResolver.getSuffix(Z,l.count,l));const re=`${this.options.pluralSeparator}zero`,me=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(N&&(l.ordinal&&ue.indexOf(me)===0&&J.push(D+ue.replace(me,this.options.pluralSeparator)),J.push(D+ue),R&&J.push(D+re)),T){const fe=`${D}${this.options.contextSeparator||"_"}${l.context}`;J.push(fe),N&&(l.ordinal&&ue.indexOf(me)===0&&J.push(fe+ue.replace(me,this.options.pluralSeparator)),J.push(fe+ue),R&&J.push(fe+re))}}let te;for(;te=J.pop();)this.isValidLookup(c)||(f=te,c=this.getResource(Z,L,te,l))}))})}),{res:c,usedKey:u,exactUsedKey:f,usedLng:h,usedNS:g}}isValidLookup(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}getResource(o,l,c,u={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(o,l,c,u):this.resourceStore.getResource(o,l,c,u)}getUsedParamsDetails(o={}){const l=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=o.replace&&!Ie(o.replace);let u=c?o.replace:o;if(c&&typeof o.count<"u"&&(u.count=o.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!c){u={...u};for(const f of l)delete u[f]}return u}static hasDefaultValue(o){const l="defaultValue";for(const c in o)if(Object.prototype.hasOwnProperty.call(o,c)&&l===c.substring(0,l.length)&&o[c]!==void 0)return!0;return!1}}class q1{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ms.create("languageUtils")}getScriptPartFromCode(o){if(o=Kc(o),!o||o.indexOf("-")<0)return null;const l=o.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(o){if(o=Kc(o),!o||o.indexOf("-")<0)return o;const l=o.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(o){if(Ie(o)&&o.indexOf("-")>-1){let l;try{l=Intl.getCanonicalLocales(o)[0]}catch{}return l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l||(this.options.lowerCaseLng?o.toLowerCase():o)}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}isSupportedCode(o){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}getBestMatchFromCodes(o){if(!o)return null;let l;return o.forEach(c=>{if(l)return;const u=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(u))&&(l=u)}),!l&&this.options.supportedLngs&&o.forEach(c=>{if(l)return;const u=this.getScriptPartFromCode(c);if(this.isSupportedCode(u))return l=u;const f=this.getLanguagePartFromCode(c);if(this.isSupportedCode(f))return l=f;l=this.options.supportedLngs.find(h=>{if(h===f)return h;if(!(h.indexOf("-")<0&&f.indexOf("-")<0)&&(h.indexOf("-")>0&&f.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===f||h.indexOf(f)===0&&f.length>1))return h})}),l||(l=this.getFallbackCodes(this.options.fallbackLng)[0]),l}getFallbackCodes(o,l){if(!o)return[];if(typeof o=="function"&&(o=o(l)),Ie(o)&&(o=[o]),Array.isArray(o))return o;if(!l)return o.default||[];let c=o[l];return c||(c=o[this.getScriptPartFromCode(l)]),c||(c=o[this.formatLanguageCode(l)]),c||(c=o[this.getLanguagePartFromCode(l)]),c||(c=o.default),c||[]}toResolveHierarchy(o,l){const c=this.getFallbackCodes((l===!1?[]:l)||this.options.fallbackLng||[],o),u=[],f=h=>{h&&(this.isSupportedCode(h)?u.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return Ie(o)&&(o.indexOf("-")>-1||o.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(o)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(o)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(o))):Ie(o)&&f(this.formatLanguageCode(o)),c.forEach(h=>{u.indexOf(h)<0&&f(this.formatLanguageCode(h))}),u}}const G1={zero:0,one:1,two:2,few:3,many:4,other:5},I1={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class u_{constructor(o,l={}){this.languageUtils=o,this.options=l,this.logger=Ms.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(o,l={}){const c=Kc(o==="dev"?"en":o),u=l.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:c,type:u});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let h;try{h=new Intl.PluralRules(c,{type:u})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),I1;if(!o.match(/-|_/))return I1;const b=this.languageUtils.getLanguagePartFromCode(o);h=this.getRule(b,l)}return this.pluralRulesCache[f]=h,h}needsPlural(o,l={}){let c=this.getRule(o,l);return c||(c=this.getRule("dev",l)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(o,l,c={}){return this.getSuffixes(o,c).map(u=>`${l}${u}`)}getSuffixes(o,l={}){let c=this.getRule(o,l);return c||(c=this.getRule("dev",l)),c?c.resolvedOptions().pluralCategories.sort((u,f)=>G1[u]-G1[f]).map(u=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(o,l,c={}){const u=this.getRule(o,c);return u?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${u.select(l)}`:(this.logger.warn(`no plural rule found for: ${o}`),this.getSuffix("dev",l,c))}}const F1=(s,o,l,c=".",u=!0)=>{let f=t_(s,o,l);return!f&&u&&Ie(l)&&(f=Yg(s,l,c),f===void 0&&(f=Yg(o,l,c))),f},Rg=s=>s.replace(/\$/g,"$$$$");class X1{constructor(o={}){this.logger=Ms.create("interpolator"),this.options=o,this.format=o?.interpolation?.format||(l=>l),this.init(o)}init(o={}){o.interpolation||(o.interpolation={escapeValue:!0});const{escape:l,escapeValue:c,useRawValueToEscape:u,prefix:f,prefixEscaped:h,suffix:g,suffixEscaped:b,formatSeparator:v,unescapeSuffix:D,unescapePrefix:x,nestingPrefix:N,nestingPrefixEscaped:R,nestingSuffix:T,nestingSuffixEscaped:B,nestingOptionsSeparator:L,maxReplaces:Z,alwaysFormat:J}=o.interpolation;this.escape=l!==void 0?l:n_,this.escapeValue=c!==void 0?c:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=f?Wr(f):h||"{{",this.suffix=g?Wr(g):b||"}}",this.formatSeparator=v||",",this.unescapePrefix=D?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":D||"",this.nestingPrefix=N?Wr(N):R||Wr("$t("),this.nestingSuffix=T?Wr(T):B||Wr(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=Z||1e3,this.alwaysFormat=J!==void 0?J:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const o=(l,c)=>l?.source===c?(l.lastIndex=0,l):new RegExp(c,"g");this.regexp=o(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=o(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=o(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(o,l,c,u){let f,h,g;const b=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},v=R=>{if(R.indexOf(this.formatSeparator)<0){const Z=F1(l,b,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Z,void 0,c,{...u,...l,interpolationkey:R}):Z}const T=R.split(this.formatSeparator),B=T.shift().trim(),L=T.join(this.formatSeparator).trim();return this.format(F1(l,b,B,this.options.keySeparator,this.options.ignoreJSONStructure),L,c,{...u,...l,interpolationkey:B})};this.resetRegExp();const D=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,x=u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>Rg(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?Rg(this.escape(R)):Rg(R)}].forEach(R=>{for(g=0;f=R.regex.exec(o);){const T=f[1].trim();if(h=v(T),h===void 0)if(typeof D=="function"){const L=D(o,f,u);h=Ie(L)?L:""}else if(u&&Object.prototype.hasOwnProperty.call(u,T))h="";else if(x){h=f[0];continue}else this.logger.warn(`missed to pass in variable ${T} for interpolating ${o}`),h="";else!Ie(h)&&!this.useRawValueToEscape&&(h=z1(h));const B=R.safeValue(h);if(o=o.replace(f[0],B),x?(R.regex.lastIndex+=h.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),o}nest(o,l,c={}){let u,f,h;const g=(b,v)=>{const D=this.nestingOptionsSeparator;if(b.indexOf(D)<0)return b;const x=b.split(new RegExp(`${Wr(D)}[ ]*{`));let N=`{${x[1]}`;b=x[0],N=this.interpolate(N,h);const R=N.match(/'/g),T=N.match(/"/g);((R?.length??0)%2===0&&!T||(T?.length??0)%2!==0)&&(N=N.replace(/'/g,'"'));try{h=JSON.parse(N),v&&(h={...v,...h})}catch(B){return this.logger.warn(`failed parsing options string in nesting for key ${b}`,B),`${b}${D}${N}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,b};for(;u=this.nestingRegexp.exec(o);){let b=[];h={...c},h=h.replace&&!Ie(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const v=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(v!==-1&&(b=u[1].slice(v).split(this.formatSeparator).map(D=>D.trim()).filter(Boolean),u[1]=u[1].slice(0,v)),f=l(g.call(this,u[1].trim(),h),h),f&&u[0]===o&&!Ie(f))return f;Ie(f)||(f=z1(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${o}`),f=""),b.length&&(f=b.reduce((D,x)=>this.format(D,x,c.lng,{...c,interpolationkey:u[1].trim()}),f.trim())),o=o.replace(u[0],f),this.regexp.lastIndex=0}return o}}const d_=s=>{let o=s.toLowerCase().trim();const l={};if(s.indexOf("(")>-1){const c=s.split("(");o=c[0].toLowerCase().trim();const u=c[1].substring(0,c[1].length-1);o==="currency"&&u.indexOf(":")<0?l.currency||(l.currency=u.trim()):o==="relativetime"&&u.indexOf(":")<0?l.range||(l.range=u.trim()):u.split(";").forEach(h=>{if(h){const[g,...b]=h.split(":"),v=b.join(":").trim().replace(/^'+|'+$/g,""),D=g.trim();l[D]||(l[D]=v),v==="false"&&(l[D]=!1),v==="true"&&(l[D]=!0),isNaN(v)||(l[D]=parseInt(v,10))}})}return{formatName:o,formatOptions:l}},Q1=s=>{const o={};return(l,c,u)=>{let f=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(f={...f,[u.interpolationkey]:void 0});const h=c+JSON.stringify(f);let g=o[h];return g||(g=s(Kc(c),u),o[h]=g),g(l)}},f_=s=>(o,l,c)=>s(Kc(l),c)(o);class m_{constructor(o={}){this.logger=Ms.create("formatter"),this.options=o,this.init(o)}init(o,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const c=l.cacheInBuiltFormats?Q1:f_;this.formats={number:c((u,f)=>{const h=new Intl.NumberFormat(u,{...f});return g=>h.format(g)}),currency:c((u,f)=>{const h=new Intl.NumberFormat(u,{...f,style:"currency"});return g=>h.format(g)}),datetime:c((u,f)=>{const h=new Intl.DateTimeFormat(u,{...f});return g=>h.format(g)}),relativetime:c((u,f)=>{const h=new Intl.RelativeTimeFormat(u,{...f});return g=>h.format(g,f.range||"day")}),list:c((u,f)=>{const h=new Intl.ListFormat(u,{...f});return g=>h.format(g)})}}add(o,l){this.formats[o.toLowerCase().trim()]=l}addCached(o,l){this.formats[o.toLowerCase().trim()]=Q1(l)}format(o,l,c,u={}){const f=l.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(g=>g.indexOf(")")>-1)){const g=f.findIndex(b=>b.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,b)=>{const{formatName:v,formatOptions:D}=d_(b);if(this.formats[v]){let x=g;try{const N=u?.formatParams?.[u.interpolationkey]||{},R=N.locale||N.lng||u.locale||u.lng||c;x=this.formats[v](g,R,{...D,...u,...N})}catch(N){this.logger.warn(N)}return x}else this.logger.warn(`there was no format function for ${v}`);return g},o)}}const p_=(s,o)=>{s.pending[o]!==void 0&&(delete s.pending[o],s.pendingCount--)};class h_ extends Hf{constructor(o,l,c,u={}){super(),this.backend=o,this.store=l,this.services=c,this.languageUtils=c.languageUtils,this.options=u,this.logger=Ms.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,u.backend,u)}queueLoad(o,l,c,u){const f={},h={},g={},b={};return o.forEach(v=>{let D=!0;l.forEach(x=>{const N=`${v}|${x}`;!c.reload&&this.store.hasResourceBundle(v,x)?this.state[N]=2:this.state[N]<0||(this.state[N]===1?h[N]===void 0&&(h[N]=!0):(this.state[N]=1,D=!1,h[N]===void 0&&(h[N]=!0),f[N]===void 0&&(f[N]=!0),b[x]===void 0&&(b[x]=!0)))}),D||(g[v]=!0)}),(Object.keys(f).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(h),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(b)}}loaded(o,l,c){const u=o.split("|"),f=u[0],h=u[1];l&&this.emit("failedLoading",f,h,l),!l&&c&&this.store.addResourceBundle(f,h,c,void 0,void 0,{skipCopy:!0}),this.state[o]=l?-1:2,l&&c&&(this.state[o]=0);const g={};this.queue.forEach(b=>{e_(b.loaded,[f],h),p_(b,o),l&&b.errors.push(l),b.pendingCount===0&&!b.done&&(Object.keys(b.loaded).forEach(v=>{g[v]||(g[v]={});const D=b.loaded[v];D.length&&D.forEach(x=>{g[v][x]===void 0&&(g[v][x]=!0)})}),b.done=!0,b.errors.length?b.callback(b.errors):b.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(b=>!b.done)}read(o,l,c,u=0,f=this.retryTimeout,h){if(!o.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:l,fcName:c,tried:u,wait:f,callback:h});return}this.readingCalls++;const g=(v,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(v&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,o,l,c,u+1,f*2,h)},f);return}h(v,D)},b=this.backend[c].bind(this.backend);if(b.length===2){try{const v=b(o,l);v&&typeof v.then=="function"?v.then(D=>g(null,D)).catch(g):g(null,v)}catch(v){g(v)}return}return b(o,l,g)}prepareLoading(o,l,c={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();Ie(o)&&(o=this.languageUtils.toResolveHierarchy(o)),Ie(l)&&(l=[l]);const f=this.queueLoad(o,l,c,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(h=>{this.loadOne(h)})}load(o,l,c){this.prepareLoading(o,l,{},c)}reload(o,l,c){this.prepareLoading(o,l,{reload:!0},c)}loadOne(o,l=""){const c=o.split("|"),u=c[0],f=c[1];this.read(u,f,"read",void 0,void 0,(h,g)=>{h&&this.logger.warn(`${l}loading namespace ${f} for language ${u} failed`,h),!h&&g&&this.logger.log(`${l}loaded namespace ${f} for language ${u}`,g),this.loaded(o,h,g)})}saveMissing(o,l,c,u,f,h={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(l)){this.logger.warn(`did not save key "${c}" as the namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if(this.backend?.create){const b={...h,isUpdate:f},v=this.backend.create.bind(this.backend);if(v.length<6)try{let D;v.length===5?D=v(o,l,c,u,b):D=v(o,l,c,u),D&&typeof D.then=="function"?D.then(x=>g(null,x)).catch(g):g(null,D)}catch(D){g(D)}else v(o,l,c,u,g,b)}!o||!o[0]||this.store.addResource(o[0],l,c,u)}}}const _g=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let o={};if(typeof s[1]=="object"&&(o=s[1]),Ie(s[1])&&(o.defaultValue=s[1]),Ie(s[2])&&(o.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const l=s[3]||s[2];Object.keys(l).forEach(c=>{o[c]=l[c]})}return o},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Z1=s=>(Ie(s.ns)&&(s.ns=[s.ns]),Ie(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),Ie(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs?.indexOf?.("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),typeof s.initImmediate=="boolean"&&(s.initAsync=s.initImmediate),s),Ef=()=>{},g_=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(l=>{typeof s[l]=="function"&&(s[l]=s[l].bind(s))})},dw="__i18next_supportNoticeShown",b_=()=>typeof globalThis<"u"&&!!globalThis[dw],y_=()=>{typeof globalThis<"u"&&(globalThis[dw]=!0)},v_=s=>!!(s?.modules?.backend?.name?.indexOf("Locize")>0||s?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||s?.options?.backend?.backends&&s.options.backend.backends.some(o=>o?.name?.indexOf("Locize")>0||o?.constructor?.name?.indexOf("Locize")>0)||s?.options?.backend?.projectId||s?.options?.backend?.backendOptions&&s.options.backend.backendOptions.some(o=>o?.projectId));class Pc extends Hf{constructor(o={},l){if(super(),this.options=Z1(o),this.services={},this.logger=Ms,this.modules={external:[]},g_(this),l&&!this.isInitialized&&!o.isClone){if(!this.options.initAsync)return this.init(o,l),this;setTimeout(()=>{this.init(o,l)},0)}}init(o={},l){this.isInitializing=!0,typeof o=="function"&&(l=o,o={}),o.defaultNS==null&&o.ns&&(Ie(o.ns)?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const c=_g();this.options={...c,...this.options,...Z1(o)},this.options.interpolation={...c.interpolation,...this.options.interpolation},o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!v_(this)&&!b_()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),y_());const u=v=>v?typeof v=="function"?new v:v:null;if(!this.options.isClone){this.modules.logger?Ms.init(u(this.modules.logger),this.options):Ms.init(null,this.options);let v;this.modules.formatter?v=this.modules.formatter:v=m_;const D=new q1(this.options);this.store=new $1(this.options.resources,this.options);const x=this.services;x.logger=Ms,x.resourceStore=this.store,x.languageUtils=D,x.pluralResolver=new u_(D,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),v&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(x.formatter=u(v),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new X1(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new h_(u(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(R,...T)=>{this.emit(R,...T)}),this.modules.languageDetector&&(x.languageDetector=u(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=u(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Mf(this.services,this.options),this.translator.on("*",(R,...T)=>{this.emit(R,...T)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,l||(l=Ef),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.length>0&&v[0]!=="dev"&&(this.options.lng=v[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(v=>{this[v]=(...D)=>this.store[v](...D)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(v=>{this[v]=(...D)=>(this.store[v](...D),this)});const g=Bc(),b=()=>{const v=(D,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(x),l(D,x)};if(this.languages&&!this.isInitialized)return v(null,this.t.bind(this));this.changeLanguage(this.options.lng,v)};return this.options.resources||!this.options.initAsync?b():setTimeout(b,0),g}loadResources(o,l=Ef){let c=l;const u=Ie(o)?o:this.language;if(typeof o=="function"&&(c=o),!this.options.resources||this.options.partialBundledLanguages){if(u?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const f=[],h=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(v=>{v!=="cimode"&&f.indexOf(v)<0&&f.push(v)})};u?h(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>h(b)),this.options.preload?.forEach?.(g=>h(g)),this.services.backendConnector.load(f,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(g)})}else c(null)}reloadResources(o,l,c){const u=Bc();return typeof o=="function"&&(c=o,o=void 0),typeof l=="function"&&(c=l,l=void 0),o||(o=this.languages),l||(l=this.options.ns),c||(c=Ef),this.services.backendConnector.reload(o,l,f=>{u.resolve(),c(f)}),u}use(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&cw.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}setResolvedLanguage(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1)){for(let l=0;l<this.languages.length;l++){const c=this.languages[l];if(!(["cimode","dev"].indexOf(c)>-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}!this.resolvedLanguage&&this.languages.indexOf(o)<0&&this.store.hasLanguageSomeTranslations(o)&&(this.resolvedLanguage=o,this.languages.unshift(o))}}changeLanguage(o,l){this.isLanguageChangingTo=o;const c=Bc();this.emit("languageChanging",o);const u=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},f=(g,b)=>{b?this.isLanguageChangingTo===o&&(u(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,c.resolve((...v)=>this.t(...v)),l&&l(g,(...v)=>this.t(...v))},h=g=>{!o&&!g&&this.services.languageDetector&&(g=[]);const b=Ie(g)?g:g&&g[0],v=this.store.hasLanguageSomeTranslations(b)?b:this.services.languageUtils.getBestMatchFromCodes(Ie(g)?[g]:g);v&&(this.language||u(v),this.translator.language||this.translator.changeLanguage(v),this.services.languageDetector?.cacheUserLanguage?.(v)),this.loadResources(v,D=>{f(D,v)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(o),c}getFixedT(o,l,c){const u=(f,h,...g)=>{let b;typeof h!="object"?b=this.options.overloadTranslationOptionHandler([f,h].concat(g)):b={...h},b.lng=b.lng||u.lng,b.lngs=b.lngs||u.lngs,b.ns=b.ns||u.ns,b.keyPrefix!==""&&(b.keyPrefix=b.keyPrefix||c||u.keyPrefix);const v=this.options.keySeparator||".";let D;return b.keyPrefix&&Array.isArray(f)?D=f.map(x=>(typeof x=="function"&&(x=qg(x,{...this.options,...h})),`${b.keyPrefix}${v}${x}`)):(typeof f=="function"&&(f=qg(f,{...this.options,...h})),D=b.keyPrefix?`${b.keyPrefix}${v}${f}`:f),this.t(D,b)};return Ie(o)?u.lng=o:u.lngs=o,u.ns=l,u.keyPrefix=c,u}t(...o){return this.translator?.translate(...o)}exists(...o){return this.translator?.exists(...o)}setDefaultNamespace(o){this.options.defaultNS=o}hasLoadedNamespace(o,l={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=l.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const h=(g,b)=>{const v=this.services.backendConnector.state[`${g}|${b}`];return v===-1||v===0||v===2};if(l.precheck){const g=l.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(c,o)&&(!u||h(f,o)))}loadNamespaces(o,l){const c=Bc();return this.options.ns?(Ie(o)&&(o=[o]),o.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{c.resolve(),l&&l(u)}),c):(l&&l(),Promise.resolve())}loadLanguages(o,l){const c=Bc();Ie(o)&&(o=[o]);const u=this.options.preload||[],f=o.filter(h=>u.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return f.length?(this.options.preload=u.concat(f),this.loadResources(h=>{c.resolve(),l&&l(h)}),c):(l&&l(),Promise.resolve())}dir(o){if(o||(o=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!o)return"rtl";try{const u=new Intl.Locale(o);if(u&&u.getTextInfo){const f=u.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const l=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=this.services?.languageUtils||new q1(_g());return o.toLowerCase().indexOf("-latn")>1?"ltr":l.indexOf(c.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(o={},l){const c=new Pc(o,l);return c.createInstance=Pc.createInstance,c}cloneInstance(o={},l=Ef){const c=o.forkResourceStore;c&&delete o.forkResourceStore;const u={...this.options,...o,isClone:!0},f=new Pc(u);if((o.debug!==void 0||o.prefix!==void 0)&&(f.logger=f.logger.clone(o)),["store","services","language"].forEach(g=>{f[g]=this[g]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},c){const g=Object.keys(this.store.data).reduce((b,v)=>(b[v]={...this.store.data[v]},b[v]=Object.keys(b[v]).reduce((D,x)=>(D[x]={...b[v][x]},D),b[v]),b),{});f.store=new $1(g,u),f.services.resourceStore=f.store}if(o.interpolation){const b={..._g().interpolation,...this.options.interpolation,...o.interpolation},v={...u,interpolation:b};f.services.interpolator=new X1(v)}return f.translator=new Mf(f.services,u),f.translator.on("*",(g,...b)=>{f.emit(g,...b)}),f.init(u,l),f.translator.options=u,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ba=Pc.createInstance();Ba.createInstance;Ba.dir;Ba.init;Ba.loadResources;Ba.reloadResources;Ba.use;Ba.changeLanguage;Ba.getFixedT;Ba.t;Ba.exists;Ba.setDefaultNamespace;Ba.hasLoadedNamespace;Ba.loadNamespaces;Ba.loadLanguages;var E=nu();const rl=QR(E),x_=XR({__proto__:null,default:rl},[E]),N_=(s,o,l,c)=>{const u=[l,{code:o,...c||{}}];if(s?.services?.logger?.forward)return s.services.logger.forward(u,"warn","react-i18next::",!0);ti(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),s?.services?.logger?.warn?s.services.logger.warn(...u):console?.warn&&console.warn(...u)},P1={},fw=(s,o,l,c)=>{ti(l)&&P1[l]||(ti(l)&&(P1[l]=new Date),N_(s,o,l,c))},mw=(s,o)=>()=>{if(s.isInitialized)o();else{const l=()=>{setTimeout(()=>{s.off("initialized",l)},0),o()};s.on("initialized",l)}},Gg=(s,o,l)=>{s.loadNamespaces(o,mw(s,l))},J1=(s,o,l,c)=>{if(ti(l)&&(l=[l]),s.options.preload&&s.options.preload.indexOf(o)>-1)return Gg(s,l,c);l.forEach(u=>{s.options.ns.indexOf(u)<0&&s.options.ns.push(u)}),s.loadLanguages(o,mw(s,c))},S_=(s,o,l={})=>!o.languages||!o.languages.length?(fw(o,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:o.languages}),!0):o.hasLoadedNamespace(s,{lng:l.lng,precheck:(c,u)=>{if(l.bindI18n&&l.bindI18n.indexOf("languageChanging")>-1&&c.services.backendConnector.backend&&c.isLanguageChangingTo&&!u(c.isLanguageChangingTo,s))return!1}}),ti=s=>typeof s=="string",w_=s=>typeof s=="object"&&s!==null,E_=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,D_={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},R_=s=>D_[s],__=s=>s.replace(E_,R_);let Ig={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:__,transDefaultProps:void 0};const C_=(s={})=>{Ig={...Ig,...s}},k_=()=>Ig;let pw;const U_=s=>{pw=s},T_=()=>pw,j_={type:"3rdParty",init(s){C_(s.options.react),U_(s)}},O_=E.createContext();class A_{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Cg={exports:{}},kg={},K1;function V_(){if(K1)return kg;K1=1;return(function(){function s(R,T){return R===T&&(R!==0||1/R===1/T)||R!==R&&T!==T}function o(R,T){D||u.startTransition===void 0||(D=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var B=T();if(!x){var L=T();f(B,L)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),x=!0)}L=h({inst:{value:B,getSnapshot:T}});var Z=L[0].inst,J=L[1];return b(function(){Z.value=B,Z.getSnapshot=T,l(Z)&&J({inst:Z})},[R,B,T]),g(function(){return l(Z)&&J({inst:Z}),R(function(){l(Z)&&J({inst:Z})})},[R]),v(B),B}function l(R){var T=R.getSnapshot;R=R.value;try{var B=T();return!f(R,B)}catch{return!0}}function c(R,T){return T()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=nu(),f=typeof Object.is=="function"?Object.is:s,h=u.useState,g=u.useEffect,b=u.useLayoutEffect,v=u.useDebugValue,D=!1,x=!1,N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;kg.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:N,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),kg}var W1;function M_(){return W1||(W1=1,Cg.exports=V_()),Cg.exports}var z_=M_();const L_=(s,o)=>ti(o)?o:w_(o)&&ti(o.defaultValue)?o.defaultValue:Array.isArray(s)?s[s.length-1]:s,H_={t:L_,ready:!1},B_=()=>()=>{},He=(s,o={})=>{const{i18n:l}=o,{i18n:c,defaultNS:u}=E.useContext(O_)||{},f=l||c||T_();f&&!f.reportNamespaces&&(f.reportNamespaces=new A_),f||fw(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=E.useMemo(()=>({...k_(),...f?.options?.react,...o}),[f,o]),{useSuspense:g,keyPrefix:b}=h,v=u||f?.options?.defaultNS,D=ti(v)?[v]:v||["translation"],x=E.useMemo(()=>D,D);f?.reportNamespaces?.addUsedNamespaces?.(x);const N=E.useRef(0),R=E.useCallback(Q=>{if(!f)return B_;const{bindI18n:H,bindI18nStore:$}=h,P=()=>{N.current+=1,Q()};return H&&f.on(H,P),$&&f.store.on($,P),()=>{H&&H.split(" ").forEach(X=>f.off(X,P)),$&&$.split(" ").forEach(X=>f.store.off(X,P))}},[f,h]),T=E.useRef(),B=E.useCallback(()=>{if(!f)return H_;const Q=!!(f.isInitialized||f.initializedStoreOnce)&&x.every(Ne=>S_(Ne,f,h)),H=o.lng||f.language,$=N.current,P=T.current;if(P&&P.ready===Q&&P.lng===H&&P.keyPrefix===b&&P.revision===$)return P;const ae={t:f.getFixedT(H,h.nsMode==="fallback"?x:x[0],b),ready:Q,lng:H,keyPrefix:b,revision:$};return T.current=ae,ae},[f,x,b,h,o.lng]),[L,Z]=E.useState(0),{t:J,ready:te}=z_.useSyncExternalStore(R,B,B);E.useEffect(()=>{if(f&&!te&&!g){const Q=()=>Z(H=>H+1);o.lng?J1(f,o.lng,x,Q):Gg(f,x,Q)}},[f,o.lng,x,te,g,L]);const ue=f||{},re=E.useRef(null),me=E.useRef(),fe=Q=>{const H=Object.getOwnPropertyDescriptors(Q);H.__original&&delete H.__original;const $=Object.create(Object.getPrototypeOf(Q),H);if(!Object.prototype.hasOwnProperty.call($,"__original"))try{Object.defineProperty($,"__original",{value:Q,writable:!1,enumerable:!1,configurable:!1})}catch{}return $},_=E.useMemo(()=>{const Q=ue,H=Q?.language;let $=Q;Q&&(re.current&&re.current.__original===Q?me.current!==H?($=fe(Q),re.current=$,me.current=H):$=re.current:($=fe(Q),re.current=$,me.current=H));const P=[J,$,te];return P.t=J,P.i18n=$,P.ready=te,P},[J,ue,te,ue.resolvedLanguage,ue.language,ue.languages]);if(f&&g&&!te)throw new Promise(Q=>{const H=()=>Q();o.lng?J1(f,o.lng,x,H):Gg(f,x,H)});return _},{slice:$_,forEach:Y_}=[];function q_(s){return Y_.call($_.call(arguments,1),o=>{if(o)for(const l in o)s[l]===void 0&&(s[l]=o[l])}),s}function G_(s){return typeof s!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(l=>l.test(s))}const eS=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,I_=function(s,o){const c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},u=encodeURIComponent(o);let f=`${s}=${u}`;if(c.maxAge>0){const h=c.maxAge-0;if(Number.isNaN(h))throw new Error("maxAge should be a Number");f+=`; Max-Age=${Math.floor(h)}`}if(c.domain){if(!eS.test(c.domain))throw new TypeError("option domain is invalid");f+=`; Domain=${c.domain}`}if(c.path){if(!eS.test(c.path))throw new TypeError("option path is invalid");f+=`; Path=${c.path}`}if(c.expires){if(typeof c.expires.toUTCString!="function")throw new TypeError("option expires is invalid");f+=`; Expires=${c.expires.toUTCString()}`}if(c.httpOnly&&(f+="; HttpOnly"),c.secure&&(f+="; Secure"),c.sameSite)switch(typeof c.sameSite=="string"?c.sameSite.toLowerCase():c.sameSite){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c.partitioned&&(f+="; Partitioned"),f},tS={create(s,o,l,c){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};l&&(u.expires=new Date,u.expires.setTime(u.expires.getTime()+l*60*1e3)),c&&(u.domain=c),document.cookie=I_(s,o,u)},read(s){const o=`${s}=`,l=document.cookie.split(";");for(let c=0;c<l.length;c++){let u=l[c];for(;u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(o)===0)return u.substring(o.length,u.length)}return null},remove(s,o){this.create(s,"",-1,o)}};var F_={name:"cookie",lookup(s){let{lookupCookie:o}=s;if(o&&typeof document<"u")return tS.read(o)||void 0},cacheUserLanguage(s,o){let{lookupCookie:l,cookieMinutes:c,cookieDomain:u,cookieOptions:f}=o;l&&typeof document<"u"&&tS.create(l,s,c,u,f)}},X_={name:"querystring",lookup(s){let{lookupQuerystring:o}=s,l;if(typeof window<"u"){let{search:c}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(c=window.location.hash.substring(window.location.hash.indexOf("?")));const f=c.substring(1).split("&");for(let h=0;h<f.length;h++){const g=f[h].indexOf("=");g>0&&f[h].substring(0,g)===o&&(l=f[h].substring(g+1))}}return l}},Q_={name:"hash",lookup(s){let{lookupHash:o,lookupFromHashIndex:l}=s,c;if(typeof window<"u"){const{hash:u}=window.location;if(u&&u.length>2){const f=u.substring(1);if(o){const h=f.split("&");for(let g=0;g<h.length;g++){const b=h[g].indexOf("=");b>0&&h[g].substring(0,b)===o&&(c=h[g].substring(b+1))}}if(c)return c;if(!c&&l>-1){const h=u.match(/\/([a-zA-Z-]*)/g);return Array.isArray(h)?h[typeof l=="number"?l:0]?.replace("/",""):void 0}}}return c}};let nl=null;const aS=()=>{if(nl!==null)return nl;try{if(nl=typeof window<"u"&&window.localStorage!==null,!nl)return!1;const s="i18next.translate.boo";window.localStorage.setItem(s,"foo"),window.localStorage.removeItem(s)}catch{nl=!1}return nl};var Z_={name:"localStorage",lookup(s){let{lookupLocalStorage:o}=s;if(o&&aS())return window.localStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupLocalStorage:l}=o;l&&aS()&&window.localStorage.setItem(l,s)}};let sl=null;const nS=()=>{if(sl!==null)return sl;try{if(sl=typeof window<"u"&&window.sessionStorage!==null,!sl)return!1;const s="i18next.translate.boo";window.sessionStorage.setItem(s,"foo"),window.sessionStorage.removeItem(s)}catch{sl=!1}return sl};var P_={name:"sessionStorage",lookup(s){let{lookupSessionStorage:o}=s;if(o&&nS())return window.sessionStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupSessionStorage:l}=o;l&&nS()&&window.sessionStorage.setItem(l,s)}},J_={name:"navigator",lookup(s){const o=[];if(typeof navigator<"u"){const{languages:l,userLanguage:c,language:u}=navigator;if(l)for(let f=0;f<l.length;f++)o.push(l[f]);c&&o.push(c),u&&o.push(u)}return o.length>0?o:void 0}},K_={name:"htmlTag",lookup(s){let{htmlTag:o}=s,l;const c=o||(typeof document<"u"?document.documentElement:null);return c&&typeof c.getAttribute=="function"&&(l=c.getAttribute("lang")),l}},W_={name:"path",lookup(s){let{lookupFromPathIndex:o}=s;if(typeof window>"u")return;const l=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof o=="number"?o:0]?.replace("/",""):void 0}},eC={name:"subdomain",lookup(s){let{lookupFromSubdomainIndex:o}=s;const l=typeof o=="number"?o+1:1,c=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(c)return c[l]}};let hw=!1;try{document.cookie,hw=!0}catch{}const gw=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];hw||gw.splice(1,1);const tC=()=>({order:gw,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:s=>s});class bw{constructor(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(o,l)}init(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=o,this.options=q_(l,this.options||{},tC()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=u=>u.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=c,this.addDetector(F_),this.addDetector(X_),this.addDetector(Z_),this.addDetector(P_),this.addDetector(J_),this.addDetector(K_),this.addDetector(W_),this.addDetector(eC),this.addDetector(Q_)}addDetector(o){return this.detectors[o.name]=o,this}detect(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,l=[];return o.forEach(c=>{if(this.detectors[c]){let u=this.detectors[c].lookup(this.options);u&&typeof u=="string"&&(u=[u]),u&&(l=l.concat(u))}}),l=l.filter(c=>c!=null&&!G_(c)).map(c=>this.options.convertDetectedLanguage(c)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null}cacheUserLanguage(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;l&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(o)>-1||l.forEach(c=>{this.detectors[c]&&this.detectors[c].cacheUserLanguage(o,this.options)}))}}bw.type="languageDetector";const aC={"nav.home":"Home","nav.studio":"Studio","nav.docs":"Docs","nav.login":"Login","nav.logout":"Logout","header.status.connected":"Connected","header.status.disconnected":"Disconnected","header.status.reconnecting":"Reconnecting","footer.copyright":"GitHub · @Context4AI {{year}}. All rights reserved.","footer.tagline":"Knowledge Factory","footer.theme.dark":"Dark","footer.theme.light":"Light","footer.theme.system":"System","studio.sidebar.sources":"Sources","studio.sidebar.modeling":"Modeling","studio.sidebar.brain":"Brain","studio.sidebar.discovery":"Discovery","studio.sidebar.sharing":"Sharing","studio.sidebar.collaboration":"Collaboration","studio.sidebar.settings":"Settings","placeholder.coming":"Coming in {{version}}","page.login.title":"Login","page.login.description":"Authentication and user management.","page.docs.title":"Docs","page.docs.description":"Public documentation portal.","page.sources.title":"Sources","page.sources.description":"Add code repositories, documents, and other input materials for your brain to index.","page.modeling.title":"Modeling","page.modeling.description":"Model indexed content with AI — only what stands up to scrutiny gets written to the knowledge graph.","page.brain.title":"Brain","page.brain.description":"All modeled knowledge lives here — browse, search, analyze, and use it anytime.","page.discovery.title":"Discovery","page.discovery.description":"Explore knowledge curated by others and add what's useful to your own brain.","page.sharing.title":"Sharing","page.sharing.description":"Package and export knowledge from your brain for others and AI to use directly.","page.collaboration.title":"Collaboration","page.collaboration.description":"Stay in sync with other brains — get notified on updates, no manual transfer needed.","page.settings.title":"Settings","page.settings.description":"Manage workspace members and configuration.","page.code_setup.title":"Code Setup","page.code_setup.description":"Repository selection and configuration for code modeling.","page.code_compile.title":"Code Compile","page.code_compile.description":"Compilation progress tracking for code modeling.","page.code_review.title":"Code Review","page.code_review.description":"Review and approve modeling results.","page.code_result.title":"Code Result","page.code_result.description":"View final modeling results and generated knowledge graph.","home.hero.title":"Context For AI","home.hero.description":"Transform code repositories and business documents into structured knowledge graphs.","home.hero.cta.studio":"Enter Studio","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"The page you're looking for doesn't exist.","notfound.back":"Back to Home","sources.menu.add_client":"Add Client","sources.menu.online":"online","sources.menu.offline":"offline","sources.library.default_cloud_name":"Personal Cloud","sources.library.rename":"Rename","sources.library.rename_placeholder":"Enter library name","sources.header.daemon_status":"{{online}}/{{total}} online","sources.header.all_offline":"All offline","sources.actions.new_folder":"New Folder","sources.folder.name_placeholder":"Enter folder name","sources.actions.import_repo":"Import Repository","sources.actions.rename":"Rename","sources.actions.move_to":"Move to...","sources.actions.delete":"Delete","sources.filter.all":"All","sources.filter.indexed":"Indexed","sources.filter.not_indexed":"Not Indexed","sources.status.none":"None","sources.status.indexed":"Indexed","sources.status.stale":"Stale","sources.type.code":"Code","sources.type.doc":"Document","sources.empty.cloud.title":"Your personal knowledge input zone","sources.empty.cloud.description":"Create folders to organize your documents and materials. These are visible only to you and will serve as the foundation for building your digital brain.","sources.empty.daemon.title":"Connect your local code assets","sources.empty.daemon.description":"Import local code repositories. The system will automatically extract code structures and technical documents, transforming them into structured knowledge.","sources.empty.indexed.title":"Knowledge not yet indexed","sources.empty.indexed.description":"Select sources and complete indexing. They will be transformed into structured summaries, providing material for your future speculations.","sources.empty.folder.title":"This folder is empty","sources.empty.folder.daemon_description":"You can add or edit documents locally, and they will appear here after the next sync.","sources.safety.notice.repo":"In local mode, your code has absolute privacy. Source code never leaves your computer. The system only extracts structured summaries for knowledge modeling (function signatures, dependencies, etc.).","sources.safety.notice.dir":"The system extracts document content and summaries for knowledge modeling. Although unsafe text is filtered, please ensure sensitive data is not included in indexing or modeling.","sources.import.title":"Import Repository","sources.import.step.select":"Select Repository","sources.import.step.version":"Version Selection","sources.import.step.confirm":"Confirm Import","sources.import.daemon_offline":"Client {{name}} is not connected. Please start the local Daemon and connect to the server before importing.","sources.import.view_guide":"View Connection Guide","sources.import.select_root":"Select repository root directory","sources.import.current_path":"Current path","sources.import.not_git":"This directory is not a Git repository. Please select a directory containing .git.","sources.import.branch":"Branch","sources.import.commit":"Commit","sources.import.branch_warning":"Currently based on {{branch}} branch HEAD","sources.import.uncommitted_warning":"Uncommitted changes will not be collected","sources.import.recognized":"Recognized {{packages}} packages and {{docs}} documents","sources.import.no_packages":"No package structure detected. Will be imported as a single-package repository.","sources.import.confirm_heading":"About to import the following repository to {{name}}:","sources.import.packages":"Packages","sources.import.documents":"Documents","sources.import.importing":"Importing...","sources.import.success":"Import complete","sources.add_client.title":"Connect Local Knowledge Source","sources.add_client.description":"Start a client (Daemon) on your local computer to mount local code repositories as input material into your digital brain.","sources.add_client.step1":"Install Daemon","sources.add_client.step2":"Start Daemon","sources.add_client.step3":"Wait for connection","sources.add_client.step3_desc":"This page will update automatically once connected.","sources.add_client.waiting":"Waiting for client connection...","sources.add_client.detected":"New client detected","sources.add_client.machine_name":"Machine ID","sources.add_client.os":"Operating system","sources.add_client.daemon_version":"Daemon version","sources.add_client.client_name":"Client name","sources.add_client.confirm":"Confirm Add","sources.add_client.reconnected":"Client {{name}} has reconnected","sources.add_client.go_to":"Go to {{name}}","sources.detail.tab.original":"Original","sources.detail.tab.overview":"Overview","sources.detail.tab.digest":"Digest","sources.detail.tab.modeling":"Modeling Result","sources.detail.digest_placeholder":"Structured summary will be available here after indexing is complete.","sources.detail.modeling_placeholder":"Knowledge entities derived from this source will appear here after modeling in the speculation zone.","sources.detail.type":"Type","sources.detail.origin":"Origin","sources.detail.origin.upload":"Upload","sources.detail.origin.local":"Local file","sources.detail.path":"Path","sources.detail.status":"Status","sources.detail.repo":"Repository","sources.detail.branch":"Branch","sources.detail.commit":"Commit","sources.detail.tech_stack":"Tech stack","sources.detail.original_code_placeholder":"Package overview will be available after indexing.","sources.detail.original_doc_placeholder":"Document content will be available after upload.","sources.detail.dependencies":"Dependencies","sources.delete.confirm_title":"Confirm Delete","sources.delete.resource":"Are you sure you want to delete {{name}}?","sources.delete.resource_impact":"The following data will be permanently deleted: original content, structured digest (if any).","sources.delete.session_warning":"If your personal speculation zone is using this source, related candidate speculations will be affected.","sources.delete.entity_safe":"Formal knowledge already merged into the brain will not be affected.","sources.delete.folder":"Are you sure you want to delete folder {{name}}?","sources.delete.folder_impact":"All resources inside will be recursively deleted: {{folders}} sub-folders, {{sources}} sources.","sources.delete.folder_impact_generic":"All sub-folders and resources inside will be recursively deleted.","sources.delete.irreversible":"This action cannot be undone.","sources.delete.repo":"Are you sure you want to remove repository {{name}} from {{library}}?","sources.delete.repo_impact":"Will delete: {{packages}} package index records, {{docs}} document index records.","sources.delete.repo_impact_generic":"All package and document index records will be deleted.","sources.delete.local_safe":"Local files will not be affected.","sources.delete.client":"Are you sure you want to delete client {{name}}?","sources.delete.client_impact":"All imported repository records and related index data under this client will be deleted.","sources.delete.client_reregister":"This client will need to re-register on next connection.","sources.error.name_conflict":'An item named "{{name}}" already exists in this directory.',"sources.move.current":"Current","sources.move.target":"Move to","sources.breadcrumb.sources":"Sources","common.cancel":"Cancel","common.confirm":"Confirm","common.back":"Back","common.next":"Next","common.previous":"Previous","common.items":"{{count}} items","common.loading":"Loading...","sources.import.no_entries":"No entries found","sources.import.allowed_dirs":"Client authorized directories","sources.import.allowed_dirs_tooltip_restrict":"Restrict to specific directories:","sources.import.allowed_dirs_tooltip_all":"Or allow all directories (default):","sources.import.wildcard_home":"Home","sources.import.wildcard_path_placeholder":"Enter a directory path…","sources.import.wildcard_go":"Go","sources.import.wildcard_goto":"Go to","sources.import.wildcard_go_title":"Go to Directory","sources.import.wildcard_path_not_found":"Path does not exist on the remote machine","sources.import.already_imported":"Imported","sources.import.dir_title":"Import Directory","sources.import.dir_step.select":"Select Directory","sources.import.dir_step.scan":"Scan","sources.import.dir_step.confirm":"Confirm Import","sources.import.dir_confirm_heading":"About to import the following directory to {{name}}:","sources.import.dir_name":"Directory Name","sources.import.dir_path":"Directory Path","sources.import.dir_files":"Files","sources.import.dir_subdirs":"Subdirectories","sources.import.dir_git_repos":"Git Repositories","sources.import.dir_git_hint":"Git repositories inside the directory will not be expanded for indexing. Import them separately if needed.","sources.import.dir_scanning":"Scanning directory contents...","sources.import.dir_scan_complete":"Scan complete","sources.import.dir_scan_error":"Failed to scan directory","sources.import.dir_scan_retry":"Retry","sources.import.dir_code_packages":"Code Packages","sources.import.dir_doc_files":"Documents","sources.import.dir_total_files":"Total Files","sources.import.dir_total_dirs":"Directories","sources.import.dir_git_skip_hint":"{{count}} Git repo(s) will be skipped. Import them via 'Import Repository'.","sources.actions.upload":"Upload","sources.actions.upload_md":"Markdown Document","sources.actions.add":"Add","sources.actions.add_folder":"Folder","sources.actions.add_web":"Web Page","sources.actions.add_feishu":"Feishu Document","sources.actions.import_dir":"Import Directory","sources.actions.import_repo_url":"Import Repository","sources.upgrade.title":"Feature Upgrading","sources.upgrade.description":"This feature will be available in version 0.5.x. Stay tuned."},nC={"nav.home":"首页","nav.studio":"工作台","nav.docs":"文档","nav.login":"登录","nav.logout":"退出登录","header.status.connected":"已连接","header.status.disconnected":"已断开","header.status.reconnecting":"重连中","footer.copyright":"GitHub · @Context4AI {{year}}. 版权所有 ","footer.tagline":"知识工厂","footer.theme.dark":"暗色","footer.theme.light":"亮色","footer.theme.system":"跟随系统","studio.sidebar.sources":"知识索引","studio.sidebar.modeling":"知识建模","studio.sidebar.brain":"知识大脑","studio.sidebar.discovery":"发现知识","studio.sidebar.sharing":"分享知识","studio.sidebar.collaboration":"知识协同","studio.sidebar.settings":"设置","placeholder.coming":"计划在 {{version}} 版本实现","page.login.title":"登录","page.login.description":"身份验证与用户管理。","page.docs.title":"文档","page.docs.description":"公开文档门户。","page.sources.title":"知识索引","page.sources.description":"添加代码仓库、文档等输入材料,让大脑完成初步索引。","page.modeling.title":"知识建模","page.modeling.description":"和 AI 一起对索引内容建模,只有经得起推敲的才写入知识图谱。","page.brain.title":"知识大脑","page.brain.description":"建模完成的全部知识都在这里——浏览、搜索、分析,随时调用。","page.discovery.title":"发现知识","page.discovery.description":"看看别人整理好的知识,发现有用的一键补充到自己的大脑。","page.sharing.title":"分享知识","page.sharing.description":"把大脑中的知识打包输出,让别人和 AI 都能直接使用。","page.collaboration.title":"知识协同","page.collaboration.description":"和其他大脑保持同步,知识更新时自动通知,不用手动搬运。","page.settings.title":"设置","page.settings.description":"管理大脑的成员和配置。","page.code_setup.title":"代码设置","page.code_setup.description":"代码建模的仓库选择与配置。","page.code_compile.title":"代码编译","page.code_compile.description":"代码建模的编译进度追踪。","page.code_review.title":"代码审查","page.code_review.description":"审查并确认建模结果。","page.code_result.title":"代码结果","page.code_result.description":"查看最终建模结果与生成的知识图谱。","home.hero.title":"Context For AI","home.hero.description":"将代码仓库和业务文档转化为结构化知识图谱。","home.hero.cta.studio":"进入工作台","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"您访问的页面不存在。","notfound.back":"返回首页","sources.menu.add_client":"添加客户端","sources.menu.online":"在线","sources.menu.offline":"离线","sources.library.default_cloud_name":"个人云","sources.library.rename":"重命名","sources.library.rename_placeholder":"输入名称","sources.header.daemon_status":"{{online}}/{{total}} 在线","sources.header.all_offline":"全部离线","sources.actions.new_folder":"新文件夹","sources.folder.name_placeholder":"输入文件夹名称","sources.actions.import_repo":"导入仓库","sources.actions.rename":"重命名","sources.actions.move_to":"移动到...","sources.actions.delete":"删除","sources.filter.all":"全部","sources.filter.indexed":"已索引","sources.filter.not_indexed":"未索引","sources.status.none":"未索引","sources.status.indexed":"已索引","sources.status.stale":"索引过期","sources.type.code":"代码","sources.type.doc":"文档","sources.empty.cloud.title":"这里是你专属的知识输入区","sources.empty.cloud.description":"创建文件夹来整理你的文档和材料。这些内容仅你个人可见,将成为后续推演、构建数字大脑的基础。","sources.empty.daemon.title":"连接你的本地代码资产","sources.empty.daemon.description":"导入本地代码仓库,系统会自动提取代码结构与技术文档,将其转化为结构化知识。","sources.empty.indexed.title":"这些知识尚未被索引","sources.empty.indexed.description":"选择资源并完成索引后,它们将转化为结构化摘要,为你后续的推演提供素材。","sources.empty.folder.title":"当前文件夹还没有内容","sources.empty.folder.daemon_description":"你可以在本地进行文档新增、编辑后查看。","sources.safety.notice.repo":"在本地模式下,你的代码保有绝对隐私,源代码永远不会离开你的电脑,系统仅提取用于知识建模的结构化摘要(函数签名、依赖关系等)。","sources.safety.notice.dir":"系统会提取用于知识建模的文档内容及摘要,尽管会过滤不安全的文本内容,但请确保敏感数据不要参与索引及建模。","sources.import.title":"导入代码仓库","sources.import.step.select":"选择仓库","sources.import.step.version":"版本选择","sources.import.step.confirm":"确认导入","sources.import.daemon_offline":"客户端 {{name}} 未连接,请先启动本地 Daemon 并连接到服务器后再导入仓库。","sources.import.view_guide":"查看连接指引","sources.import.select_root":"选择仓库根目录","sources.import.current_path":"当前路径","sources.import.not_git":"该目录不是 Git 仓库,请选择包含 .git 的目录。","sources.import.branch":"分支","sources.import.commit":"提交","sources.import.branch_warning":"当前基于 {{branch}} 分支的 HEAD","sources.import.uncommitted_warning":"未提交的修改不会被采集","sources.import.recognized":"已识别 {{packages}} 个包和 {{docs}} 篇文档","sources.import.no_packages":"未识别到包结构,将作为单包仓库导入。","sources.import.confirm_heading":"即将导入以下仓库到 {{name}}:","sources.import.packages":"包数","sources.import.documents":"文档","sources.import.importing":"导入中...","sources.import.success":"导入完成","sources.add_client.title":"接入本地知识源","sources.add_client.description":"在本地计算机上启动客户端 (Daemon),即可将本地代码仓库作为输入材料,挂载到你的数字大脑中。","sources.add_client.step1":"安装 Daemon","sources.add_client.step2":"启动 Daemon","sources.add_client.step3":"等待连接","sources.add_client.step3_desc":"连接成功后,本页面将自动更新。","sources.add_client.waiting":"等待客户端连接...","sources.add_client.detected":"检测到新的本地客户端","sources.add_client.machine_name":"机器标识","sources.add_client.os":"操作系统","sources.add_client.daemon_version":"Daemon 版本","sources.add_client.client_name":"客户端名称","sources.add_client.confirm":"确认添加","sources.add_client.reconnected":"客户端 {{name}} 已重新连接","sources.add_client.go_to":"前往 {{name}}","sources.detail.tab.original":"原文","sources.detail.tab.overview":"概览","sources.detail.tab.digest":"摘要","sources.detail.tab.modeling":"建模结果","sources.detail.digest_placeholder":"完成索引后,即可在此查看结构化摘要。","sources.detail.modeling_placeholder":"在推演区完成建模后,此处将展示由该源产生的知识实体。","sources.detail.type":"类型","sources.detail.origin":"来源","sources.detail.origin.upload":"直接上传","sources.detail.origin.local":"本地文件","sources.detail.path":"路径","sources.detail.status":"状态","sources.detail.repo":"仓库","sources.detail.branch":"分支","sources.detail.commit":"提交","sources.detail.tech_stack":"技术栈","sources.detail.original_code_placeholder":"完成索引后即可查看包概览。","sources.detail.original_doc_placeholder":"文档内容将在上传后展示。","sources.detail.dependencies":"依赖","sources.delete.confirm_title":"确认删除","sources.delete.resource":"确定要删除 {{name}}?","sources.delete.resource_impact":"以下数据将被永久删除:原文内容、结构化摘要(如有)。","sources.delete.session_warning":"如果你的个人推演区正在使用此知识源,相关的候选推演将受到影响。","sources.delete.entity_safe":"已汇入大脑的正式知识不受影响。","sources.delete.folder":"确定要删除文件夹 {{name}}?","sources.delete.folder_impact":"文件夹内的所有资源将被递归删除:{{folders}} 个子文件夹、{{sources}} 个知识源。","sources.delete.folder_impact_generic":"文件夹内的所有子文件夹和知识源将被递归删除。","sources.delete.irreversible":"此操作不可撤销。","sources.delete.repo":"确定要从 {{library}} 中移除仓库 {{name}}?","sources.delete.repo_impact":"将删除:{{packages}} 个包的索引记录、{{docs}} 篇文档的索引记录。","sources.delete.repo_impact_generic":"所有包和文档的索引记录将被删除。","sources.delete.local_safe":"本地文件不受影响。","sources.delete.client":"确定要删除客户端 {{name}}?","sources.delete.client_impact":"该客户端下的所有已导入仓库记录和相关索引数据将被删除。","sources.delete.client_reregister":"该客户端下次连接时将触发重新注册。","sources.error.name_conflict":'该目录下已存在同名项"{{name}}"。',"sources.move.current":"当前位置","sources.move.target":"移动到","sources.breadcrumb.sources":"知识索引","common.cancel":"取消","common.confirm":"确认","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.items":"{{count}} 项","common.loading":"加载中...","sources.import.no_entries":"未找到任何条目","sources.import.allowed_dirs":"客户端授权目录","sources.import.allowed_dirs_tooltip_restrict":"通过参数设定有权限的目录:","sources.import.allowed_dirs_tooltip_all":"或默认允许全部目录:","sources.import.wildcard_home":"主目录","sources.import.wildcard_path_placeholder":"输入目录路径…","sources.import.wildcard_go":"前往","sources.import.wildcard_goto":"前往","sources.import.wildcard_go_title":"前往目录","sources.import.wildcard_path_not_found":"该路径在远程机器上不存在","sources.import.already_imported":"已导入","sources.import.dir_title":"导入目录","sources.import.dir_step.select":"选择目录","sources.import.dir_step.scan":"扫描","sources.import.dir_step.confirm":"确认导入","sources.import.dir_confirm_heading":"即将导入以下目录到 {{name}}:","sources.import.dir_name":"目录名","sources.import.dir_path":"目录路径","sources.import.dir_files":"文件数","sources.import.dir_subdirs":"子目录数","sources.import.dir_git_repos":"Git 仓库","sources.import.dir_git_hint":"目录内的 Git 仓库不会被展开索引,如需索引请单独导入仓库。","sources.import.dir_scanning":"正在扫描目录内容...","sources.import.dir_scan_complete":"扫描完成","sources.import.dir_scan_error":"目录扫描失败","sources.import.dir_scan_retry":"重试","sources.import.dir_code_packages":"代码包","sources.import.dir_doc_files":"文档","sources.import.dir_total_files":"文件总数","sources.import.dir_total_dirs":"目录","sources.import.dir_git_skip_hint":"{{count}} 个 Git 仓库将被跳过,请通过「导入仓库」单独导入。","sources.actions.upload":"上传","sources.actions.upload_md":"Markdown 文档","sources.actions.add":"新增","sources.actions.add_folder":"文件夹","sources.actions.add_web":"网页","sources.actions.add_feishu":"飞书文档","sources.actions.import_dir":"导入目录","sources.actions.import_repo_url":"导入仓库","sources.upgrade.title":"功能升级中","sources.upgrade.description":"此功能将在 0.5.x 版本中推出,敬请期待。"};Ba.use(bw).use(j_).init({resources:{en:{translation:aC},zh:{translation:nC}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var Ug={exports:{}},$c={},Tg={exports:{}},jg={},sS;function sC(){return sS||(sS=1,(function(s){(function(){function o(){if(re=!1,Q){var ee=s.unstable_now();P=ee;var ie=!0;try{e:{te=!1,ue&&(ue=!1,fe(H),H=-1),J=!0;var he=Z;try{t:{for(h(ee),L=c(R);L!==null&&!(L.expirationTime>ee&&b());){var W=L.callback;if(typeof W=="function"){L.callback=null,Z=L.priorityLevel;var ve=W(L.expirationTime<=ee);if(ee=s.unstable_now(),typeof ve=="function"){L.callback=ve,h(ee),ie=!0;break t}L===c(R)&&u(R),h(ee)}else u(R);L=c(R)}if(L!==null)ie=!0;else{var q=c(T);q!==null&&v(g,q.startTime-ee),ie=!1}}break e}finally{L=null,Z=he,J=!1}ie=void 0}}finally{ie?X():Q=!1}}}function l(ee,ie){var he=ee.length;ee.push(ie);e:for(;0<he;){var W=he-1>>>1,ve=ee[W];if(0<f(ve,ie))ee[W]=ie,ee[he]=ve,he=W;else break e}}function c(ee){return ee.length===0?null:ee[0]}function u(ee){if(ee.length===0)return null;var ie=ee[0],he=ee.pop();if(he!==ie){ee[0]=he;e:for(var W=0,ve=ee.length,q=ve>>>1;W<q;){var ge=2*(W+1)-1,Ue=ee[ge],Re=ge+1,mt=ee[Re];if(0>f(Ue,he))Re<ve&&0>f(mt,Ue)?(ee[W]=mt,ee[Re]=he,W=Re):(ee[W]=Ue,ee[ge]=he,W=ge);else if(Re<ve&&0>f(mt,he))ee[W]=mt,ee[Re]=he,W=Re;else break e}}return ie}function f(ee,ie){var he=ee.sortIndex-ie.sortIndex;return he!==0?he:ee.id-ie.id}function h(ee){for(var ie=c(T);ie!==null;){if(ie.callback===null)u(T);else if(ie.startTime<=ee)u(T),ie.sortIndex=ie.expirationTime,l(R,ie);else break;ie=c(T)}}function g(ee){if(ue=!1,h(ee),!te)if(c(R)!==null)te=!0,Q||(Q=!0,X());else{var ie=c(T);ie!==null&&v(g,ie.startTime-ee)}}function b(){return re?!0:!(s.unstable_now()-P<$)}function v(ee,ie){H=me(function(){ee(s.unstable_now())},ie)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var D=performance;s.unstable_now=function(){return D.now()}}else{var x=Date,N=x.now();s.unstable_now=function(){return x.now()-N}}var R=[],T=[],B=1,L=null,Z=3,J=!1,te=!1,ue=!1,re=!1,me=typeof setTimeout=="function"?setTimeout:null,fe=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null,Q=!1,H=-1,$=5,P=-1;if(typeof _=="function")var X=function(){_(o)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,Ne=ae.port2;ae.port1.onmessage=o,X=function(){Ne.postMessage(null)}}else X=function(){me(o,0)};s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(ee){ee.callback=null},s.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<ee?Math.floor(1e3/ee):5},s.unstable_getCurrentPriorityLevel=function(){return Z},s.unstable_next=function(ee){switch(Z){case 1:case 2:case 3:var ie=3;break;default:ie=Z}var he=Z;Z=ie;try{return ee()}finally{Z=he}},s.unstable_requestPaint=function(){re=!0},s.unstable_runWithPriority=function(ee,ie){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var he=Z;Z=ee;try{return ie()}finally{Z=he}},s.unstable_scheduleCallback=function(ee,ie,he){var W=s.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?W+he:W):he=W,ee){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=he+ve,ee={id:B++,callback:ie,priorityLevel:ee,startTime:he,expirationTime:ve,sortIndex:-1},he>W?(ee.sortIndex=he,l(T,ee),c(R)===null&&ee===c(T)&&(ue?(fe(H),H=-1):ue=!0,v(g,he-W))):(ee.sortIndex=ve,l(R,ee),te||J||(te=!0,Q||(Q=!0,X()))),ee},s.unstable_shouldYield=b,s.unstable_wrapCallback=function(ee){var ie=Z;return function(){var he=Z;Z=ie;try{return ee.apply(this,arguments)}finally{Z=he}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(jg)),jg}var oS;function oC(){return oS||(oS=1,Tg.exports=sC()),Tg.exports}var Og={exports:{}},wa={},rS;function rC(){if(rS)return wa;rS=1;return(function(){function s(){}function o(x){return""+x}function l(x,N,R){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{o(T);var B=!1}catch{B=!0}return B&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object"),o(T)),{$$typeof:v,key:T==null?null:""+T,children:x,containerInfo:N,implementation:R}}function c(x,N){if(x==="font")return"";if(typeof N=="string")return N==="use-credentials"?N:""}function u(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":'something with type "'+typeof x+'"'}function f(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":typeof x=="string"?JSON.stringify(x):typeof x=="number"?"`"+x+"`":'something with type "'+typeof x+'"'}function h(){var x=D.H;return x===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
19
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
20
|
+
2. You might be breaking the Rules of Hooks
|
|
21
|
+
3. You might have more than one copy of React in the same app
|
|
22
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),x}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=nu(),b={d:{f:s,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},v=Symbol.for("react.portal"),D=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),wa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,wa.createPortal=function(x,N){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!N||N.nodeType!==1&&N.nodeType!==9&&N.nodeType!==11)throw Error("Target container is not a DOM element.");return l(x,N,null,R)},wa.flushSync=function(x){var N=D.T,R=b.p;try{if(D.T=null,b.p=2,x)return x()}finally{D.T=N,b.p=R,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},wa.preconnect=function(x,N){typeof x=="string"&&x?N!=null&&typeof N!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",f(N)):N!=null&&typeof N.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",u(N.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(x)),typeof x=="string"&&(N?(N=N.crossOrigin,N=typeof N=="string"?N==="use-credentials"?N:"":void 0):N=null,b.d.C(x,N))},wa.prefetchDNS=function(x){if(typeof x!="string"||!x)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(x));else if(1<arguments.length){var N=arguments[1];typeof N=="object"&&N.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(N)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(N))}typeof x=="string"&&b.d.D(x)},wa.preinit=function(x,N){if(typeof x=="string"&&x?N==null||typeof N!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",f(N)):N.as!=="style"&&N.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',f(N.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(x)),typeof x=="string"&&N&&typeof N.as=="string"){var R=N.as,T=c(R,N.crossOrigin),B=typeof N.integrity=="string"?N.integrity:void 0,L=typeof N.fetchPriority=="string"?N.fetchPriority:void 0;R==="style"?b.d.S(x,typeof N.precedence=="string"?N.precedence:void 0,{crossOrigin:T,integrity:B,fetchPriority:L}):R==="script"&&b.d.X(x,{crossOrigin:T,integrity:B,fetchPriority:L,nonce:typeof N.nonce=="string"?N.nonce:void 0})}},wa.preinitModule=function(x,N){var R="";typeof x=="string"&&x||(R+=" The `href` argument encountered was "+u(x)+"."),N!==void 0&&typeof N!="object"?R+=" The `options` argument encountered was "+u(N)+".":N&&"as"in N&&N.as!=="script"&&(R+=" The `as` option encountered was "+f(N.as)+"."),R?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",R):(R=N&&typeof N.as=="string"?N.as:"script",R)==="script"||(R=f(R),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',R,x)),typeof x=="string"&&(typeof N=="object"&&N!==null?(N.as==null||N.as==="script")&&(R=c(N.as,N.crossOrigin),b.d.M(x,{crossOrigin:R,integrity:typeof N.integrity=="string"?N.integrity:void 0,nonce:typeof N.nonce=="string"?N.nonce:void 0})):N==null&&b.d.M(x))},wa.preload=function(x,N){var R="";if(typeof x=="string"&&x||(R+=" The `href` argument encountered was "+u(x)+"."),N==null||typeof N!="object"?R+=" The `options` argument encountered was "+u(N)+".":typeof N.as=="string"&&N.as||(R+=" The `as` option encountered was "+u(N.as)+"."),R&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',R),typeof x=="string"&&typeof N=="object"&&N!==null&&typeof N.as=="string"){R=N.as;var T=c(R,N.crossOrigin);b.d.L(x,R,{crossOrigin:T,integrity:typeof N.integrity=="string"?N.integrity:void 0,nonce:typeof N.nonce=="string"?N.nonce:void 0,type:typeof N.type=="string"?N.type:void 0,fetchPriority:typeof N.fetchPriority=="string"?N.fetchPriority:void 0,referrerPolicy:typeof N.referrerPolicy=="string"?N.referrerPolicy:void 0,imageSrcSet:typeof N.imageSrcSet=="string"?N.imageSrcSet:void 0,imageSizes:typeof N.imageSizes=="string"?N.imageSizes:void 0,media:typeof N.media=="string"?N.media:void 0})}},wa.preloadModule=function(x,N){var R="";typeof x=="string"&&x||(R+=" The `href` argument encountered was "+u(x)+"."),N!==void 0&&typeof N!="object"?R+=" The `options` argument encountered was "+u(N)+".":N&&"as"in N&&typeof N.as!="string"&&(R+=" The `as` option encountered was "+u(N.as)+"."),R&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',R),typeof x=="string"&&(N?(R=c(N.as,N.crossOrigin),b.d.m(x,{as:typeof N.as=="string"&&N.as!=="script"?N.as:void 0,crossOrigin:R,integrity:typeof N.integrity=="string"?N.integrity:void 0})):b.d.m(x))},wa.requestFormReset=function(x){b.d.r(x)},wa.unstable_batchedUpdates=function(x,N){return x(N)},wa.useFormState=function(x,N,R){return h().useFormState(x,N,R)},wa.useFormStatus=function(){return h().useHostTransitionStatus()},wa.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),wa}var iS;function iC(){return iS||(iS=1,Og.exports=rC()),Og.exports}var lS;function lC(){if(lS)return $c;lS=1;return(function(){function s(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function o(e,t,a,n){if(a>=t.length)return n;var r=t[a],i=aa(e)?e.slice():We({},e);return i[r]=o(e[r],t,a+1,n),i}function l(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var n=0;n<a.length-1;n++)if(t[n]!==a[n]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,n){var r=t[n],i=aa(e)?e.slice():We({},e);return n+1===t.length?(i[a[n]]=i[r],aa(i)?i.splice(r,1):delete i[r]):i[r]=c(e[r],t,a,n+1),i}function u(e,t,a){var n=t[a],r=aa(e)?e.slice():We({},e);return a+1===t.length?(aa(r)?r.splice(n,1):delete r[n],r):(r[n]=u(e[n],t,a+1),r)}function f(){return!1}function h(){return null}function g(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function b(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function v(){}function D(){}function x(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function N(e,t,a,n){return new AE(e,t,a,n)}function R(e,t){e.context===Io&&(Yp(e.current,2,t,e,null,null),pi())}function T(e,t){if(En!==null){var a=t.staleFamilies;t=t.updatedFamilies,Vl(),Hb(e.current,t,a),pi()}}function B(e){En=e}function L(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Z(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function J(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function te(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ue(e){if(Z(e)!==e)throw Error("Unable to find node on an unmounted component.")}function re(e){var t=e.alternate;if(!t){if(t=Z(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var i=r.alternate;if(i===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===a)return ue(r),e;if(i===n)return ue(r),t;i=i.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==n.return)a=r,n=i;else{for(var d=!1,p=r.child;p;){if(p===a){d=!0,a=r,n=i;break}if(p===n){d=!0,n=r,a=i;break}p=p.sibling}if(!d){for(p=i.child;p;){if(p===a){d=!0,a=i,n=r;break}if(p===n){d=!0,n=i,a=r;break}p=p.sibling}if(!d)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==n)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function me(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=me(e),t!==null)return t;e=e.sibling}return null}function fe(e){return e===null||typeof e!="object"?null:(e=F0&&e[F0]||e["@@iterator"],typeof e=="function"?e:null)}function _(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===aD?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ni:return"Fragment";case Zp:return"Profiler";case gd:return"StrictMode";case Jp:return"Suspense";case Kp:return"SuspenseList";case Wp:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case xi:return"Portal";case Rs:return e.displayName||"Context";case Pp:return(e._context.displayName||"Context")+".Consumer";case Il:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bd:return t=e.displayName||null,t!==null?t:_(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return _(e(t))}catch{}}return null}function Q(e){return typeof e.tag=="number"?H(e):typeof e.name=="string"?e.name:null}function H(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _(t);case 8:return t===gd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return H(e.return)}return null}function $(e){return{current:e}}function P(e,t){0>Ws?console.error("Unexpected pop."):(t!==th[Ws]&&console.error("Unexpected Fiber popped."),e.current=eh[Ws],eh[Ws]=null,th[Ws]=null,Ws--)}function X(e,t,a){Ws++,eh[Ws]=e.current,th[Ws]=a,e.current=t}function ae(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Ne(e,t){X(Ho,t,e),X(Fl,e,e),X(Lo,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?g0(t):ho;break;default:if(a=t.tagName,t=t.namespaceURI)t=g0(t),t=b0(t,a);else switch(a){case"svg":t=tl;break;case"math":t=gf;break;default:t=ho}}a=a.toLowerCase(),a=du(null,a),a={context:t,ancestorInfo:a},P(Lo,e),X(Lo,a,e)}function ee(e){P(Lo,e),P(Fl,e),P(Ho,e)}function ie(){return ae(Lo.current)}function he(e){e.memoizedState!==null&&X(yd,e,e);var t=ae(Lo.current),a=e.type,n=b0(t.context,a);a=du(t.ancestorInfo,a),n={context:n,ancestorInfo:a},t!==n&&(X(Fl,e,e),X(Lo,n,e))}function W(e){Fl.current===e&&(P(Lo,e),P(Fl,e)),yd.current===e&&(P(yd,e),zc._currentValue=Kr)}function ve(){}function q(){if(Xl===0){X0=console.log,Q0=console.info,Z0=console.warn,P0=console.error,J0=console.group,K0=console.groupCollapsed,W0=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Xl++}function ge(){if(Xl--,Xl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:We({},e,{value:X0}),info:We({},e,{value:Q0}),warn:We({},e,{value:Z0}),error:We({},e,{value:P0}),group:We({},e,{value:J0}),groupCollapsed:We({},e,{value:K0}),groupEnd:We({},e,{value:W0})})}0>Xl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ue(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
23
|
+
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
24
|
+
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
25
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Re(e){if(ah===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ah=t&&t[1]||"",ex=-1<a.stack.indexOf(`
|
|
26
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
+
`+ah+e+ex}function mt(e,t){if(!e||nh)return"";var a=sh.get(e);if(a!==void 0)return a;nh=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=F.H,F.H=null,q();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(de){var Y=de}Reflect.construct(e,[],U)}else{try{U.call()}catch(de){Y=de}e.call(U.prototype)}}else{try{throw Error()}catch(de){Y=de}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(de){if(de&&Y&&typeof de.stack=="string")return[de.stack,Y.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),p=d[0],y=d[1];if(p&&y){var S=p.split(`
|
|
28
|
+
`),A=y.split(`
|
|
29
|
+
`);for(d=i=0;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;for(;d<A.length&&!A[d].includes("DetermineComponentFrameRoot");)d++;if(i===S.length||d===A.length)for(i=S.length-1,d=A.length-1;1<=i&&0<=d&&S[i]!==A[d];)d--;for(;1<=i&&0<=d;i--,d--)if(S[i]!==A[d]){if(i!==1||d!==1)do if(i--,d--,0>d||S[i]!==A[d]){var V=`
|
|
30
|
+
`+S[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),typeof e=="function"&&sh.set(e,V),V}while(1<=i&&0<=d);break}}}finally{nh=!1,F.H=n,ge(),Error.prepareStackTrace=a}return S=(S=e?e.displayName||e.name:"")?Re(S):"",typeof e=="function"&&sh.set(e,S),S}function Mt(e,t){switch(e.tag){case 26:case 27:case 5:return Re(e.type);case 16:return Re("Lazy");case 13:return e.child!==t&&t!==null?Re("Suspense Fallback"):Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return mt(e.type,!1);case 11:return mt(e.type.render,!1);case 1:return mt(e.type,!0);case 31:return Re("Activity");default:return""}}function ct(e){try{var t="",a=null;do{t+=Mt(e,a);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var i=n[r];if(typeof i.name=="string"){var d=t;e:{var p=i.name,y=i.env,S=i.debugLocation;if(S!=null){var A=Ue(S),V=A.lastIndexOf(`
|
|
31
|
+
`),U=V===-1?A:A.slice(V+1);if(U.indexOf(p)!==-1){var Y=`
|
|
32
|
+
`+U;break e}}Y=Re(p+(y?" ["+y+"]":""))}t=d+Y}}a=e,e=e.return}while(e);return t}catch(de){return`
|
|
33
|
+
Error generating stack: `+de.message+`
|
|
34
|
+
`+de.stack}}function ta(e){return(e=e?e.displayName||e.name:"")?Re(e):""}function Ft(){if(rn===null)return null;var e=rn._debugOwner;return e!=null?Q(e):null}function Ja(){if(rn===null)return"";var e=rn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Re(e.type);break;case 13:t+=Re("Suspense");break;case 19:t+=Re("SuspenseList");break;case 31:t+=Re("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=ta(e.type));break;case 11:e._debugOwner||t!==""||(t+=ta(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var n=a._debugStack;if(e&&n){var r=Ue(n);r!==""&&(t+=`
|
|
35
|
+
`+r)}}else if(e.debugStack!=null){var i=e.debugStack;(e=e.owner)&&i&&(t+=`
|
|
36
|
+
`+Ue(i))}else break;var d=t}catch(p){d=`
|
|
37
|
+
Error generating stack: `+p.message+`
|
|
38
|
+
`+p.stack}return d}function xe(e,t,a,n,r,i,d){var p=rn;ss(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,n,r,i,d)):t(a,n,r,i,d)}finally{ss(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ss(e){F.getCurrentStack=e===null?null:Ja,_s=!1,rn=e}function Rt(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Se(e){try{return Je(e),!1}catch{return!0}}function Je(e){return""+e}function qe(e,t){if(Se(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Rt(e)),Je(e)}function ft(e,t){if(Se(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Rt(e)),Je(e)}function wt(e){if(Se(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Rt(e)),Je(e)}function No(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{wi=t.inject(e),Na=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function we(e){if(typeof cD=="function"&&uD(e),Na&&typeof Na.setStrictMode=="function")try{Na.setStrictMode(wi,e)}catch(t){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",t))}}function hn(e){return e>>>=0,e===0?32:31-(dD(e)/fD|0)|0}function _a(e){var t=e&42;if(t!==0)return t;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 console.error("Should have found matching lanes. This is a bug in React."),e}}function Hn(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var p=n&134217727;return p!==0?(n=p&~i,n!==0?r=_a(n):(d&=p,d!==0?r=_a(d):a||(a=p&~e,a!==0&&(r=_a(a))))):(p=n&~i,p!==0?r=_a(p):d!==0?r=_a(d):a||(a=n&~e,a!==0&&(r=_a(a)))),r===0?0:t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:r}function os(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function gn(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function Bn(){var e=Nd;return Nd<<=1,(Nd&62914560)===0&&(Nd=4194304),e}function So(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function bn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $a(e,t,a,n,r,i){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,y=e.expirationTimes,S=e.hiddenUpdates;for(a=d&~a;0<a;){var A=31-ja(a),V=1<<A;p[A]=0,y[A]=-1;var U=S[A];if(U!==null)for(S[A]=null,A=0;A<U.length;A++){var Y=U[A];Y!==null&&(Y.lane&=-536870913)}a&=~V}n!==0&&Ca(e,n,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(d&~t))}function Ca(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-ja(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function wo(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-ja(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function Hs(e,t){var a=t&-t;return a=(a&42)!==0?1:yn(a),(a&(e.suspendedLanes|t))!==0?0:a}function yn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bs(e,t,a){if(ks)for(e=e.pendingUpdatersLaneMap;0<a;){var n=31-ja(a),r=1<<n;e[n].add(t),a&=~r}}function ya(e,t){if(ks)for(var a=e.pendingUpdatersLaneMap,n=e.memoizedUpdaters;0<t;){var r=31-ja(t);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(i){var d=i.alternate;d!==null&&n.has(d)||n.add(i)}),r.clear()),t&=~e}}function $s(e){return e&=-e,Nn<e?Us<e?(e&134217727)!==0?eo:Sd:Us:Nn}function $n(){var e=bt.p;return e!==0?e:(e=window.event,e===void 0?eo:H0(e.type))}function w(e,t){var a=bt.p;try{return bt.p=e,t()}finally{bt.p=a}}function M(e){delete e[ga],delete e[Oa],delete e[ch],delete e[mD],delete e[pD]}function ne(e){var t=e[ga];if(t)return t;for(var a=e.parentNode;a;){if(t=a[$o]||a[ga]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=D0(e);e!==null;){if(a=e[ga])return a;e=D0(e)}return t}e=a,a=e.parentNode}return null}function ce(e){if(e=e[ga]||e[$o]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ee(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Be(e){var t=e[tx];return t||(t=e[tx]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ce(e){e[Ql]=!0}function nt(e,t){Ge(e,t),Ge(e+"Capture",t)}function Ge(e,t){kr[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),kr[e]=t;var a=e.toLowerCase();for(uh[a]=e,e==="onDoubleClick"&&(uh.ondblclick=e),e=0;e<t.length;e++)ax.add(t[e])}function oa(e,t){hD[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ka(e){return Zn.call(sx,e)?!0:Zn.call(nx,e)?!1:gD.test(e)?sx[e]=!0:(nx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Ys(e,t,a){if(ka(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=e.getAttribute(t),e===""&&a===!0?!0:(qe(a,t),e===""+a?a:e)}}function qs(e,t,a){if(ka(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}qe(a,t),e.setAttribute(t,""+a)}}function si(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}qe(a,t),e.setAttribute(t,""+a)}}function Yn(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}qe(n,a),e.setAttributeNS(t,a,""+n)}}function k(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return wt(e),e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function I(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){wt(d),a=""+d,i.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){wt(d),a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oe(e){if(!e._valueTracker){var t=z(e)?"checked":"value";e._valueTracker=I(e,t,""+e[t])}}function le(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=z(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function ke(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function be(e){return e.replace(bD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function je(e,t){t.checked===void 0||t.defaultChecked===void 0||rx||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ft()||"A component",t.type),rx=!0),t.value===void 0||t.defaultValue===void 0||ox||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ft()||"A component",t.type),ox=!0)}function De(e,t,a,n,r,i,d,p){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?(qe(d,"type"),e.type=d):e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+k(t)):e.value!==""+k(t)&&(e.value=""+k(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Ve(e,d,k(t)):a!=null?Ve(e,d,k(a)):n!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?(qe(p,"name"),e.name=""+k(p)):e.removeAttribute("name")}function Me(e,t,a,n,r,i,d,p){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(qe(i,"type"),e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){oe(e);return}a=a!=null?""+k(a):"",t=t!=null?""+k(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=p?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(qe(d,"name"),e.name=d),oe(e)}function Ve(e,t,a){t==="number"&&ke(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Te(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Qp.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||lx||(lx=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||cx||(cx=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||ix||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ix=!0)}function pt(){var e=Ft();return e?`
|
|
39
|
+
|
|
40
|
+
Check the render method of \``+e+"`.":""}function et(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+k(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function _t(e,t){for(e=0;e<dx.length;e++){var a=dx[e];if(t[a]!=null){var n=aa(t[a]);t.multiple&&!n?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,pt()):!t.multiple&&n&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,pt())}}t.value===void 0||t.defaultValue===void 0||ux||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),ux=!0)}function Yt(e,t){t.value===void 0||t.defaultValue===void 0||fx||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Ft()||"A component"),fx=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ra(e,t,a){if(t!=null&&(t=""+k(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+k(a):""}function ht(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(aa(n)){if(1<n.length)throw Error("<textarea> can only have at most one child.");n=n[0]}a=n}a==null&&(a=""),t=a}a=k(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),oe(e)}function Ua(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ua(e.children[0],t):e}function qt(e){return" "+" ".repeat(e)}function vn(e){return"+ "+" ".repeat(e)}function va(e){return"- "+" ".repeat(e)}function Ka(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Gs(e,t){return mx.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function rs(e,t,a){var n=120-2*a;if(t===null)return vn(a)+Gs(e,n)+`
|
|
41
|
+
`;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>n-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),vn(a)+Gs(e,n)+`
|
|
42
|
+
`+va(a)+Gs(t,n)+`
|
|
43
|
+
`}return qt(a)+Gs(e,n)+`
|
|
44
|
+
`}function qn(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function is(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(aa(e))return"[...]";if(e.$$typeof===Ds)return(t=_(e.type))?"<"+t+">":"<...>";var a=qn(e);if(a==="Object"){a="",t-=2;for(var n in e)if(e.hasOwnProperty(n)){var r=JSON.stringify(n);if(r!=='"'+n+'"'&&(n=r),t-=n.length-2,r=is(e[n],15>t?t:15),t-=r.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+n+":"+r}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Gn(e,t){return typeof e!="string"||mx.test(e)?"{"+is(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function ot(e,t,a){var n=120-a.length-e.length,r=[],i;for(i in t)if(t.hasOwnProperty(i)&&i!=="children"){var d=Gn(t[i],120-a.length-i.length-1);n-=i.length+d.length+2,r.push(i+"="+d)}return r.length===0?a+"<"+e+`>
|
|
45
|
+
`:0<n?a+"<"+e+" "+r.join(" ")+`>
|
|
46
|
+
`:a+"<"+e+`
|
|
47
|
+
`+a+" "+r.join(`
|
|
48
|
+
`+a+" ")+`
|
|
49
|
+
`+a+`>
|
|
50
|
+
`}function ia(e,t,a){var n="",r=We({},t),i;for(i in e)if(e.hasOwnProperty(i)){delete r[i];var d=120-2*a-i.length-2,p=is(e[i],d);t.hasOwnProperty(i)?(d=is(t[i],d),n+=vn(a)+i+": "+p+`
|
|
51
|
+
`,n+=va(a)+i+": "+d+`
|
|
52
|
+
`):n+=vn(a)+i+": "+p+`
|
|
53
|
+
`}for(var y in r)r.hasOwnProperty(y)&&(e=is(r[y],120-2*a-y.length-2),n+=va(a)+y+": "+e+`
|
|
54
|
+
`);return n}function Eo(e,t,a,n){var r="",i=new Map;for(S in a)a.hasOwnProperty(S)&&i.set(S.toLowerCase(),S);if(i.size===1&&i.has("children"))r+=ot(e,t,qt(n));else{for(var d in t)if(t.hasOwnProperty(d)&&d!=="children"){var p=120-2*(n+1)-d.length-1,y=i.get(d.toLowerCase());if(y!==void 0){i.delete(d.toLowerCase());var S=t[d];y=a[y];var A=Gn(S,p);p=Gn(y,p),typeof S=="object"&&S!==null&&typeof y=="object"&&y!==null&&qn(S)==="Object"&&qn(y)==="Object"&&(2<Object.keys(S).length||2<Object.keys(y).length||-1<A.indexOf("...")||-1<p.indexOf("..."))?r+=qt(n+1)+d+`={{
|
|
55
|
+
`+ia(S,y,n+2)+qt(n+1)+`}}
|
|
56
|
+
`:(r+=vn(n+1)+d+"="+A+`
|
|
57
|
+
`,r+=va(n+1)+d+"="+p+`
|
|
58
|
+
`)}else r+=qt(n+1)+d+"="+Gn(t[d],p)+`
|
|
59
|
+
`}i.forEach(function(V){if(V!=="children"){var U=120-2*(n+1)-V.length-1;r+=va(n+1)+V+"="+Gn(a[V],U)+`
|
|
60
|
+
`}}),r=r===""?qt(n)+"<"+e+`>
|
|
61
|
+
`:qt(n)+"<"+e+`
|
|
62
|
+
`+r+qt(n)+`>
|
|
63
|
+
`}return e=a.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(i="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(i=""+t),r+=rs(i,""+e,n+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+rs(""+t,null,n+1):r+rs(""+t,void 0,n+1)),r}function ls(e,t){var a=Ka(e);if(a===null){for(a="",e=e.child;e;)a+=ls(e,t),e=e.sibling;return a}return qt(t)+"<"+a+`>
|
|
64
|
+
`}function Ct(e,t){var a=Ua(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return qt(t)+`...
|
|
65
|
+
`+Ct(a,t+1);a="";var n=e.fiber._debugInfo;if(n)for(var r=0;r<n.length;r++){var i=n[r].name;typeof i=="string"&&(a+=qt(t)+"<"+i+`>
|
|
66
|
+
`,t++)}if(n="",r=e.fiber.pendingProps,e.fiber.tag===6)n=rs(r,e.serverProps,t),t++;else if(i=Ka(e.fiber),i!==null)if(e.serverProps===void 0){n=t;var d=120-2*n-i.length-2,p="";for(S in r)if(r.hasOwnProperty(S)&&S!=="children"){var y=Gn(r[S],15);if(d-=S.length+y.length+2,0>d){p+=" ...";break}p+=" "+S+"="+y}n=qt(n)+"<"+i+p+`>
|
|
67
|
+
`,t++}else e.serverProps===null?(n=ot(i,r,vn(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(n=Eo(i,r,e.serverProps,t),t++);var S="";for(r=e.fiber.child,i=0;r&&i<e.children.length;)d=e.children[i],d.fiber===r?(S+=Ct(d,t),i++):S+=ls(r,t),r=r.sibling;for(r&&0<e.children.length&&(S+=qt(t)+`...
|
|
68
|
+
`),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)i=r[e],S=typeof i=="string"?S+(va(t)+Gs(i,120-2*t)+`
|
|
69
|
+
`):S+ot(i.type,i.props,va(t));return a+n+S}function Do(e){try{return`
|
|
70
|
+
|
|
71
|
+
`+Ct(e,0)}catch{return""}}function fl(e,t,a){for(var n=t,r=null,i=0;n;)n===e&&(i=0),r={fiber:n,children:r!==null?[r]:[],serverProps:n===t?a:n===e?null:void 0,serverTail:[],distanceFromLeaf:i},i++,n=n.return;return r!==null?Do(r).replaceAll(/^[+-]/gm,">"):""}function du(e,t){var a=We({},e||hx),n={tag:t};return px.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),vD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),yD.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=n,t==="form"&&(a.formTag=n),t==="a"&&(a.aTagInScope=n),t==="button"&&(a.buttonTagInScope=n),t==="nobr"&&(a.nobrTagInScope=n),t==="p"&&(a.pTagInButtonScope=n),t==="li"&&(a.listItemTagAutoclosing=n),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=n),t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=n),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function db(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return xD.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function pE(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function fb(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Zf(e,t){t=t||hx;var a=t.current;if(t=(a=db(e,a&&a.tag,t.implicitRootScope)?null:a)?null:pE(e,t),t=a||t,!t)return!0;var n=t.tag;if(t=String(!!a)+"|"+e+"|"+n,wd[t])return!1;wd[t]=!0;var r=(t=rn)?fb(t.return,n):null,i=t!==null&&r!==null?fl(r,t,null):"",d="<"+e+">";return a?(a="",n==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
72
|
+
This will cause a hydration error.%s`,d,n,a,i)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
73
|
+
This will cause a hydration error.%s`,d,n,i),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||xe(r,function(){console.error(`<%s> cannot contain a nested %s.
|
|
74
|
+
See this log for the ancestor stack trace.`,n,d)})),!1}function fu(e,t,a){if(a||db("#text",t,!1))return!0;if(a="#text|"+t,wd[a])return!1;wd[a]=!0;var n=(a=rn)?fb(a,t):null;return a=a!==null&&n!==null?fl(n,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
75
|
+
This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
76
|
+
This will cause a hydration error.%s`,t,a),!1}function ml(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function hE(e){return e.replace(wD,function(t,a){return a.toUpperCase()})}function mb(e,t,a){var n=t.indexOf("--")===0;n||(-1<t.indexOf("-")?Ei.hasOwnProperty(t)&&Ei[t]||(Ei[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,hE(t.replace(SD,"ms-")))):ND.test(t)?Ei.hasOwnProperty(t)&&Ei[t]||(Ei[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!yx.test(a)||fh.hasOwnProperty(a)&&fh[a]||(fh[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(yx,""))),typeof a=="number"&&(isNaN(a)?vx||(vx=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||xx||(xx=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Nx.has(t)?t==="float"?e.cssFloat=a:(ft(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function pb(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var n={};if(a){for(var r in a)if(a.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var i=dh[r]||[r],d=0;d<i.length;d++)n[i[d]]=r}for(var p in t)if(t.hasOwnProperty(p)&&(!a||a[p]!==t[p]))for(r=dh[p]||[p],i=0;i<r.length;i++)n[r[i]]=p;p={};for(var y in t)for(r=dh[y]||[y],i=0;i<r.length;i++)p[r[i]]=y;y={};for(var S in n)if(r=n[S],(i=p[S])&&r!==i&&(d=r+","+i,!y[d])){y[d]=!0,d=console;var A=t[r];d.error.call(d,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",A==null||typeof A=="boolean"||A===""?"Removing":"Updating",r,i)}}for(var V in a)!a.hasOwnProperty(V)||t!=null&&t.hasOwnProperty(V)||(V.indexOf("--")===0?e.setProperty(V,""):V==="float"?e.cssFloat="":e[V]="");for(var U in t)S=t[U],t.hasOwnProperty(U)&&a[U]!==S&&mb(e,U,S)}else for(n in t)t.hasOwnProperty(n)&&mb(e,n,t[n])}function pl(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function hb(e){return ED.get(e)||e}function gE(e,t){if(Zn.call(Ri,t)&&Ri[t])return!0;if(RD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=Sx.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ri[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ri[t]=!0}if(DD.test(t)){if(e=t.toLowerCase(),e=Sx.hasOwnProperty(e)?e:null,e==null)return Ri[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ri[t]=!0)}return!0}function bE(e,t){var a=[],n;for(n in t)gE(e,n)||a.push(n);t=a.map(function(r){return"`"+r+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function yE(e,t,a,n){if(Zn.call(Aa,t)&&Aa[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Aa[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(n!=null){if(e=n.possibleRegistrationNames,n.registrationNameDependencies.hasOwnProperty(t))return!0;if(n=e.hasOwnProperty(r)?e[r]:null,n!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,n),Aa[t]=!0;if(Ex.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Aa[t]=!0}else if(Ex.test(t))return _D.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Aa[t]=!0;if(CD.test(t)||kD.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Aa[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Aa[t]=!0;if(r==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Aa[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Aa[t]=!0;if(Dd.hasOwnProperty(r)){if(r=Dd[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),Aa[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),Aa[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),Aa[t]=!0)}case"function":case"symbol":return Aa[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),Aa[t]=!0}}return!0}function vE(e,t,a){var n=[],r;for(r in t)yE(e,r,t[r],a)||n.push(r);t=n.map(function(i){return"`"+i+"`"}).join(", "),n.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<n.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function hl(e){return UD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Is(){}function Pf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function gb(e){var t=ce(e);if(t&&(e=t.stateNode)){var a=e[Oa]||null;e:switch(e=t.stateNode,t.type){case"input":if(De(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(qe(t,"name"),a=a.querySelectorAll('input[name="'+be(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[Oa]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");De(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&le(n)}break e;case"textarea":ra(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&et(e,!!a.multiple,t,!1)}}}function bb(e,t,a){if(mh)return e(t,a);mh=!0;try{var n=e(t);return n}finally{if(mh=!1,(_i!==null||Ci!==null)&&(pi(),_i&&(t=_i,e=Ci,Ci=_i=null,gb(t),e)))for(t=0;t<e.length;t++)gb(e[t])}}function gl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[Oa]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function yb(){if(Rd)return Rd;var e,t=hh,a=t.length,n,r="value"in Yo?Yo.value:Yo.textContent,i=r.length;for(e=0;e<a&&t[e]===r[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===r[i-n];n++);return Rd=r.slice(e,1<n?1-n:void 0)}function mu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pu(){return!0}function vb(){return!1}function Ya(e){function t(a,n,r,i,d){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(i):i[p]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?pu:vb,this.isPropagationStopped=vb,this}return We(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=pu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=pu)},persist:function(){},isPersistent:pu}),t}function xE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qD[e])?!!t[e]:!1}function Jf(){return xE}function xb(e,t){switch(e){case"keyup":return tR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Cx;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function NE(e,t){switch(e){case"compositionend":return Nb(t);case"keypress":return t.which!==Ux?null:(jx=!0,Tx);case"textInput":return e=t.data,e===Tx&&jx?null:e;default:return null}}function SE(e,t){if(ki)return e==="compositionend"||!vh&&xb(e,t)?(e=yb(),Rd=hh=Yo=null,ki=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kx&&t.locale!=="ko"?null:t.data;default:return null}}function Sb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nR[e.type]:t==="textarea"}function wE(e){if(!Ts)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function wb(e,t,a,n){_i?Ci?Ci.push(n):Ci=[n]:_i=n,t=rd(t,"onChange"),0<t.length&&(a=new _d("onChange","change",null,a,n),e.push({event:a,listeners:t}))}function EE(e){o0(e,0)}function hu(e){var t=Ee(e);if(le(t))return e}function Eb(e,t){if(e==="change")return t}function Db(){ec&&(ec.detachEvent("onpropertychange",Rb),tc=ec=null)}function Rb(e){if(e.propertyName==="value"&&hu(tc)){var t=[];wb(t,tc,e,Pf(e)),bb(EE,t)}}function DE(e,t,a){e==="focusin"?(Db(),ec=t,tc=a,ec.attachEvent("onpropertychange",Rb)):e==="focusout"&&Db()}function RE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hu(tc)}function _E(e,t){if(e==="click")return hu(t)}function CE(e,t){if(e==="input"||e==="change")return hu(t)}function kE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function bl(e,t){if(Va(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!Zn.call(t,r)||!Va(e[r],t[r]))return!1}return!0}function _b(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cb(e,t){var a=_b(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=_b(a)}}function kb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ub(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ke(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ke(e.document)}return t}function Kf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Tb(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Nh||Ui==null||Ui!==ke(n)||(n=Ui,"selectionStart"in n&&Kf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ac&&bl(ac,n)||(ac=n,n=rd(xh,"onSelect"),0<n.length&&(t=new _d("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Ui)))}function hr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function gr(e){if(Sh[e])return Sh[e];if(!Ti[e])return e;var t=Ti[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ax)return Sh[e]=t[a];return e}function In(e,t){Hx.set(e,t),nt(t,[e])}function UE(e){for(var t=kd,a=0;a<e.length;a++){var n=e[a];if(typeof n=="object"&&n!==null)if(aa(n)&&n.length===2&&typeof n[0]=="string"){if(t!==kd&&t!==_h)return Dh;t=_h}else return Dh;else{if(typeof n=="function"||typeof n=="string"&&50<n.length||t!==kd&&t!==Rh)return Dh;t=Rh}}return t}function Wf(e,t,a,n){for(var r in e)Zn.call(e,r)&&r[0]!=="_"&&cs(r,e[r],t,a,n)}function cs(e,t,a,n,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ds){var i=_(t.type)||"…",d=t.key;t=t.props;var p=Object.keys(t),y=p.length;if(d==null&&y===0){t="<"+i+" />";break}if(3>n||y===1&&p[0]==="children"&&d==null){t="<"+i+" … />";break}a.push([r+" ".repeat(n)+e,"<"+i]),d!==null&&cs("key",d,a,n+1,r),e=!1;for(var S in t)S==="children"?t.children!=null&&(!aa(t.children)||0<t.children.length)&&(e=!0):Zn.call(t,S)&&S[0]!=="_"&&cs(S,t[S],a,n+1,r);a.push(["",e?">…</"+i+">":"/>"]);return}if(i=Object.prototype.toString.call(t),i=i.slice(8,i.length-1),i==="Array"){if(S=UE(t),S===Rh||S===kd){t=JSON.stringify(t);break}else if(S===_h){for(a.push([r+" ".repeat(n)+e,""]),e=0;e<t.length;e++)i=t[e],cs(i[0],i[1],a,n+1,r);return}}if(i==="Promise"){if(t.status==="fulfilled"){if(i=a.length,cs(e,t.value,a,n,r),a.length>i){a=a[i],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(i=a.length,cs(e,t.reason,a,n,r),a.length>i)){a=a[i],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(n)+e,"Promise"]);return}i==="Object"&&(S=Object.getPrototypeOf(t))&&typeof S.constructor=="function"&&(i=S.constructor.name),a.push([r+" ".repeat(n)+e,i==="Object"?3>n?"":"…":i]),3>n&&Wf(t,a,n+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===uR?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([r+" ".repeat(n)+e,t])}function jb(e,t,a,n){var r=!0;for(d in e)d in t||(a.push([Ud+" ".repeat(n)+d,"…"]),r=!1);for(var i in t)if(i in e){var d=e[i],p=t[i];if(d!==p){if(n===0&&i==="children")r=" ".repeat(n)+i,a.push([Ud+r,"…"],[Td+r,"…"]);else{if(!(3<=n)){if(typeof d=="object"&&typeof p=="object"&&d!==null&&p!==null&&d.$$typeof===p.$$typeof)if(p.$$typeof===Ds){if(d.type===p.type&&d.key===p.key){d=_(p.type)||"…",r=" ".repeat(n)+i,d="<"+d+" … />",a.push([Ud+r,d],[Td+r,d]),r=!1;continue}}else{var y=Object.prototype.toString.call(d),S=Object.prototype.toString.call(p);if(y===S&&(S==="[object Object]"||S==="[object Array]")){y=[Yx+" ".repeat(n)+i,S==="[object Array]"?"Array":""],a.push(y),S=a.length,jb(d,p,a,n+1)?S===a.length&&(y[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof d=="function"&&typeof p=="function"&&d.name===p.name&&d.length===p.length&&(y=Function.prototype.toString.call(d),S=Function.prototype.toString.call(p),y===S)){d=p.name===""?"() => {}":p.name+"() {}",a.push([Yx+" ".repeat(n)+i,d+" Referentially unequal function closure. Consider memoization."]);continue}}cs(i,d,a,n,Ud),cs(i,p,a,n,Td)}r=!1}}else a.push([Td+" ".repeat(n)+i,"…"]),r=!1;return r}function Fn(e){ut=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function us(e,t,a,n){kt&&(Go.start=t,Go.end=a,to.color="warning",to.tooltipText=n,to.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,n,Go)):performance.measure(n,Go))}function gu(e,t,a){us(e,t,a,"Reconnect")}function bu(e,t,a,n,r){var i=H(e);if(i!==null&&kt){var d=e.alternate,p=e.actualDuration;if(d===null||d.child!==e.child)for(var y=e.child;y!==null;y=y.sibling)p-=y.actualDuration;n=.5>p?n?"tertiary-light":"primary-light":10>p?n?"tertiary":"primary":100>p?n?"tertiary-dark":"primary-dark":"error";var S=e.memoizedProps;p=e._debugTask,S!==null&&d!==null&&d.memoizedProps!==S?(y=[dR],S=jb(d.memoizedProps,S,y,0),1<y.length&&(S&&!qo&&(d.lanes&r)===0&&100<e.actualDuration?(qo=!0,y[0]=fR,to.color="warning",to.tooltipText=qx):(to.color=n,to.tooltipText=i),to.properties=y,Go.start=t,Go.end=a,p!=null?p.run(performance.measure.bind(performance,""+i,Go)):performance.measure(""+i,Go))):p!=null?p.run(console.timeStamp.bind(console,i,t,a,Sn,void 0,n)):console.timeStamp(i,t,a,Sn,void 0,n)}}function em(e,t,a,n){if(kt){var r=H(e);if(r!==null){for(var i=null,d=[],p=0;p<n.length;p++){var y=n[p];i==null&&y.source!==null&&(i=y.source._debugTask),y=y.value,d.push(["Error",typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y)])}e.key!==null&&cs("key",e.key,d,0,""),e.memoizedProps!==null&&Wf(e.memoizedProps,d,0,""),i==null&&(i=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Sn,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:d}}},i?i.run(performance.measure.bind(performance,""+r,e)):performance.measure(""+r,e)}}}function ds(e,t,a,n,r){if(r!==null){if(kt){var i=H(e);if(i!==null){n=[];for(var d=0;d<r.length;d++){var p=r[d].value;n.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e.key!==null&&cs("key",e.key,n,0,""),e.memoizedProps!==null&&Wf(e.memoizedProps,n,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Sn,tooltipText:"A lifecycle or effect errored",properties:n}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+i,t)):performance.measure(""+i,t)}}}else i=H(e),i!==null&&kt&&(r=1>n?"secondary-light":100>n?"secondary":500>n?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,i,t,a,Sn,void 0,r)):console.timeStamp(i,t,a,Sn,void 0,r))}function TE(e,t,a,n){if(kt&&!(t<=e)){var r=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",n?n.run(console.timeStamp.bind(console,a,e,t,ut,it,r)):console.timeStamp(a,e,t,ut,it,r)}}function Ob(e,t,a,n){!kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Prewarm",e,t,ut,it,a)):console.timeStamp("Prewarm",e,t,ut,it,a))}function Ab(e,t,a,n){!kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Suspended",e,t,ut,it,a)):console.timeStamp("Suspended",e,t,ut,it,a))}function jE(e,t,a,n,r,i){if(kt&&!(t<=e)){a=[];for(var d=0;d<n.length;d++){var p=n[d].value;a.push(["Recoverable Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:ut,trackGroup:it,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},i?i.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function tm(e,t,a,n){!kt||t<=e||(n?n.run(console.timeStamp.bind(console,"Errored",e,t,ut,it,"error")):console.timeStamp("Errored",e,t,ut,it,"error"))}function OE(e,t,a,n){!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a,e,t,ut,it,"secondary-light")):console.timeStamp(a,e,t,ut,it,"secondary-light"))}function Vb(e,t,a,n,r){if(kt&&!(t<=e)){for(var i=[],d=0;d<a.length;d++){var p=a[d].value;i.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"error",track:ut,trackGroup:it,tooltipText:n?"Remaining Effects Errored":"Commit Errored",properties:i}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function am(e,t,a){!kt||t<=e||console.timeStamp("Animating",e,t,ut,it,"secondary-dark")}function yu(){for(var e=ji,t=Ch=ji=0;t<e;){var a=wn[t];wn[t++]=null;var n=wn[t];wn[t++]=null;var r=wn[t];wn[t++]=null;var i=wn[t];if(wn[t++]=null,n!==null&&r!==null){var d=n.pending;d===null?r.next=r:(r.next=d.next,d.next=r),n.pending=r}i!==0&&Mb(a,r,i)}}function vu(e,t,a,n){wn[ji++]=e,wn[ji++]=t,wn[ji++]=a,wn[ji++]=n,Ch|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function nm(e,t,a,n){return vu(e,t,a,n),xu(e)}function xa(e,t){return vu(e,null,null,t),xu(e)}function Mb(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,i=e.return;i!==null;)i.childLanes|=a,n=i.alternate,n!==null&&(n.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&nc||(r=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,r&&t!==null&&(r=31-ja(a),e=i.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),i):null}function xu(e){if(Uc>CR)throw Fr=Uc=0,Tc=ig=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Fr>kR&&(Fr=0,Tc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Kv(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&Kv(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function br(e){if(En===null)return e;var t=En(e);return t===void 0?e:t.current}function sm(e){if(En===null)return e;var t=En(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=br(e.render),e.render!==t)?(t={$$typeof:Il,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function zb(e,t){if(En===null)return!1;var a=e.elementType;t=t.type;var n=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(n=!0);break;case 0:(typeof t=="function"||r===on)&&(n=!0);break;case 11:(r===Il||r===on)&&(n=!0);break;case 14:case 15:(r===bd||r===on)&&(n=!0);break;default:return!1}return!!(n&&(e=En(a),e!==void 0&&e===En(t)))}function Lb(e){En!==null&&typeof WeakSet=="function"&&(Oi===null&&(Oi=new WeakSet),Oi.add(e))}function Hb(e,t,a){do{var n=e,r=n.alternate,i=n.child,d=n.sibling,p=n.tag;n=n.type;var y=null;switch(p){case 0:case 15:case 1:y=n;break;case 11:y=n.render}if(En===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(n=!1,y!==null&&(y=En(y),y!==void 0&&(a.has(y)?n=!0:t.has(y)&&(p===1?n=!0:S=!0))),Oi!==null&&(Oi.has(e)||r!==null&&Oi.has(r))&&(n=!0),n&&(e._debugNeedsRemount=!0),(n||S)&&(r=xa(e,2),r!==null&&zt(r,e,2)),i===null||n||Hb(i,t,a),d===null)break;e=d}while(!0)}function AE(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Gx||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function om(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fs(e,t){var a=e.alternate;switch(a===null?(a=N(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=br(e.type);break;case 1:a.type=br(e.type);break;case 11:a.type=sm(e.type)}return a}function Bb(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function rm(e,t,a,n,r,i){var d=0,p=e;if(typeof e=="function")om(e)&&(d=1),p=br(p);else if(typeof e=="string")d=ie(),d=q4(e,a,d)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Wp:return t=N(31,a,t,r),t.elementType=Wp,t.lanes=i,t;case Ni:return yr(a.children,r,i,t);case gd:d=8,r|=Sa,r|=Pn;break;case Zp:return e=a,n=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=N(12,e,t,n|Xe),t.elementType=Zp,t.lanes=i,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Jp:return t=N(13,a,t,r),t.elementType=Jp,t.lanes=i,t;case Kp:return t=N(19,a,t,r),t.elementType=Kp,t.lanes=i,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rs:d=10;break e;case Pp:d=9;break e;case Il:d=11,p=sm(p);break e;case bd:d=14;break e;case on:d=16,p=null;break e}p="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":aa(e)?a="array":e!==void 0&&e.$$typeof===Ds?(a="<"+(_(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(d=n?Q(n):null)&&(p+=`
|
|
77
|
+
|
|
78
|
+
Check the render method of \``+d+"`."),d=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+p)),p=null}return t=N(d,a,t,r),t.elementType=e,t.type=p,t.lanes=i,t._debugOwner=n,t}function Nu(e,t,a){return t=rm(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function yr(e,t,a,n){return e=N(7,e,n,t),e.lanes=a,e}function im(e,t,a){return e=N(6,e,null,t),e.lanes=a,e}function $b(e){var t=N(18,null,null,Le);return t.stateNode=e,t}function lm(e,t,a){return t=N(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wa(e,t){if(typeof e=="object"&&e!==null){var a=kh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ct(t)},kh.set(e,t),t)}return{value:e,source:t,stack:ct(t)}}function Xs(e,t){Ro(),Ai[Vi++]=sc,Ai[Vi++]=jd,jd=e,sc=t}function Yb(e,t,a){Ro(),Dn[Rn++]=no,Dn[Rn++]=so,Dn[Rn++]=Tr,Tr=e;var n=no;e=so;var r=32-ja(n)-1;n&=~(1<<r),a+=1;var i=32-ja(t)+r;if(30<i){var d=r-r%5;i=(n&(1<<d)-1).toString(32),n>>=d,r-=d,no=1<<32-ja(t)+r|a<<r|n,so=i+e}else no=1<<i|a<<r|n,so=e}function cm(e){Ro(),e.return!==null&&(Xs(e,1),Yb(e,1,0))}function um(e){for(;e===jd;)jd=Ai[--Vi],Ai[Vi]=null,sc=Ai[--Vi],Ai[Vi]=null;for(;e===Tr;)Tr=Dn[--Rn],Dn[Rn]=null,so=Dn[--Rn],Dn[Rn]=null,no=Dn[--Rn],Dn[Rn]=null}function qb(){return Ro(),Tr!==null?{id:no,overflow:so}:null}function Gb(e,t){Ro(),Dn[Rn++]=no,Dn[Rn++]=so,Dn[Rn++]=Tr,no=t.id,so=t.overflow,Tr=e}function Ro(){st||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function vr(e,t){if(e.return===null){if(ln===null)ln={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(ln.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");ln.distanceFromLeaf>t&&(ln.distanceFromLeaf=t)}return ln}var a=vr(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function Ib(){st&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Su(e,t){js||(e=vr(e,0),e.serverProps=null,t!==null&&(t=w0(t),e.serverTail.push(t)))}function _o(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",n=ln;throw n!==null&&(ln=null,a=Do(n)),yl(Wa(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
79
|
+
|
|
80
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
81
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
82
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
83
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
84
|
+
- Invalid HTML tag nesting.
|
|
85
|
+
|
|
86
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
87
|
+
|
|
88
|
+
https://react.dev/link/hydration-mismatch`+a),e)),Uh}function Fb(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ga]=e,t[Oa]=n,Up(a,n),a){case"dialog":rt("cancel",t),rt("close",t);break;case"iframe":case"object":case"embed":rt("load",t);break;case"video":case"audio":for(a=0;a<jc.length;a++)rt(jc[a],t);break;case"source":rt("error",t);break;case"img":case"image":case"link":rt("error",t),rt("load",t);break;case"details":rt("toggle",t);break;case"input":oa("input",n),rt("invalid",t),je(t,n),Me(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"option":Te(t,n);break;case"select":oa("select",n),rt("invalid",t),_t(t,n);break;case"textarea":oa("textarea",n),rt("invalid",t),Yt(t,n),ht(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||c0(t.textContent,a)?(n.popover!=null&&(rt("beforetoggle",t),rt("toggle",t)),n.onScroll!=null&&rt("scroll",t),n.onScrollEnd!=null&&rt("scrollend",t),n.onClick!=null&&(t.onclick=Is),t=!0):t=!1,t||_o(e,!0)}function Xb(e){for(ba=e.return;ba;)switch(ba.tag){case 5:case 31:case 13:_n=!1;return;case 27:case 3:_n=!0;return;default:ba=ba.return}}function oi(e){if(e!==ba)return!1;if(!st)return Xb(e),st=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Vp(e.type,e.memoizedProps)),a=!a),a&&Ut){for(a=Ut;a;){var n=vr(e,0),r=w0(a);n.serverTail.push(r),a=r.type==="Suspense"?Hp(a):sn(a.nextSibling)}_o(e)}if(Xb(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Ut=Hp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Ut=Hp(e)}else t===27?(t=Ut,zo(e.type)?(e=vg,vg=null,Ut=e):Ut=t):Ut=ba?sn(e.stateNode.nextSibling):null;return!0}function xr(){Ut=ba=null,js=st=!1}function dm(){var e=Fo;return e!==null&&(Ha===null?Ha=e:Ha.push.apply(Ha,e),Fo=null),e}function yl(e){Fo===null?Fo=[e]:Fo.push(e)}function fm(){var e=ln;if(e!==null){ln=null;for(var t=Do(e);0<e.children.length;)e=e.children[0];xe(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
89
|
+
|
|
90
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
91
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
92
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
93
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
94
|
+
- Invalid HTML tag nesting.
|
|
95
|
+
|
|
96
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
97
|
+
|
|
98
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function wu(){Mi=Od=null,zi=!1}function Co(e,t,a){X(Th,t._currentValue,e),t._currentValue=a,X(jh,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Fx&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Fx}function Qs(e,t){e._currentValue=Th.current;var a=jh.current;P(jh,t),e._currentRenderer=a,P(Th,t)}function mm(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function pm(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var i=r.dependencies;if(i!==null){var d=r.child;i=i.firstContext;e:for(;i!==null;){var p=i;i=r;for(var y=0;y<t.length;y++)if(p.context===t[y]){i.lanes|=a,p=i.alternate,p!==null&&(p.lanes|=a),mm(i.return,a,e),n||(d=null);break e}i=p.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");d.lanes|=a,i=d.alternate,i!==null&&(i.lanes|=a),mm(d,a,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function ri(e,t,a,n){e=null;for(var r=t,i=!1;r!==null;){if(!i){if((r.flags&524288)!==0)i=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error("Should have a current fiber. This is a bug in React.");if(d=d.memoizedProps,d!==null){var p=r.type;Va(r.pendingProps.value,d.value)||(e!==null?e.push(p):e=[p])}}else if(r===yd.current){if(d=r.alternate,d===null)throw Error("Should have a current fiber. This is a bug in React.");d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(zc):e=[zc])}r=r.return}e!==null&&pm(t,e,a,n),t.flags|=262144}function Eu(e){for(e=e.firstContext;e!==null;){if(!Va(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Nr(e){Od=e,Mi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return zi&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Qb(Od,e)}function Du(e,t){return Od===null&&Nr(e),Qb(e,t)}function Qb(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Mi===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Mi=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Mi=Mi.next=t;return a}function hm(){return{controller:new hR,data:new Map,refCount:0}}function Sr(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function vl(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&gR(bR,function(){e.controller.abort()})}function fs(e,t,a){(e&127)!==0?0>Os&&(Os=Zt(),rc=Ad(t),Oh=t,a!=null&&(Ah=H(a)),(dt&(sa|dn))!==fa&&(Lt=!0,Qo=oc),e=Bl(),t=Hl(),e!==Li||t!==ic?Li=-1.1:t!==null&&(Qo=oc),Ar=e,ic=t):(e&4194048)!==0&&0>Cn&&(Cn=Zt(),lc=Ad(t),Xx=t,a!=null&&(Qx=H(a)),0>lo)&&(e=Bl(),t=Hl(),(e!==Po||t!==Vr)&&(Po=-1.1),Zo=e,Vr=t)}function VE(e){if(0>Os){Os=Zt(),rc=e._debugTask!=null?e._debugTask:null,(dt&(sa|dn))!==fa&&(Qo=oc);var t=Bl(),a=Hl();t!==Li||a!==ic?Li=-1.1:a!==null&&(Qo=oc),Ar=t,ic=a}0>Cn&&(Cn=Zt(),lc=e._debugTask!=null?e._debugTask:null,0>lo)&&(e=Bl(),t=Hl(),(e!==Po||t!==Vr)&&(Po=-1.1),Zo=e,Vr=t)}function Zs(){var e=jr;return jr=0,e}function Ru(e){var t=jr;return jr=e,t}function xl(e){var t=jr;return jr+=e,t}function _u(){ze=Ae=-1.1}function en(){var e=Ae;return Ae=-1.1,e}function tn(e){0<=e&&(Ae=e)}function ms(){var e=At;return At=-0,e}function ps(e){0<=e&&(At=e)}function hs(){var e=Ot;return Ot=null,e}function gs(){var e=Lt;return Lt=!1,e}function gm(e){Ma=Zt(),0>e.actualStartTime&&(e.actualStartTime=Ma)}function bm(e){if(0<=Ma){var t=Zt()-Ma;e.actualDuration+=t,e.selfBaseDuration=t,Ma=-1}}function Zb(e){if(0<=Ma){var t=Zt()-Ma;e.actualDuration+=t,Ma=-1}}function bs(){if(0<=Ma){var e=Zt(),t=e-Ma;Ma=-1,jr+=t,At+=t,ze=e}}function Pb(e){Ot===null&&(Ot=[]),Ot.push(e),ro===null&&(ro=[]),ro.push(e)}function ys(){Ma=Zt(),0>Ae&&(Ae=Ma)}function Nl(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function ME(e,t){if(uc===null){var a=uc=[];Mh=0,Mr=Rp(),Hi={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Mh++,t.then(Jb,Jb),t}function Jb(){if(--Mh===0&&(-1<Cn||(lo=-1.1),uc!==null)){Hi!==null&&(Hi.status="fulfilled");var e=uc;uc=null,Mr=0,Hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zE(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}function ym(){var e=zr.current;return e!==null?e:St.pooledCache}function Cu(e,t){t===null?X(zr,zr.current,e):X(zr,t.pool,e)}function Kb(){var e=ym();return e===null?null:{parent:Qt._currentValue,pool:e}}function Wb(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function ey(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ty(e,t,a){F.actQueue!==null&&(F.didUsePromise=!0);var n=e.thenables;if(a=n[a],a===void 0?n.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Is,Is),t=a),t._debugInfo===void 0){e=performance.now(),n=t.displayName;var r={name:typeof n=="string"?n:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:r}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){r.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ny(e),e;default:if(typeof t.status=="string")t.then(Is,Is);else{if(e=St,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=i}},function(i){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ny(e),e}throw Hr=t,bc=!0,Bi}}function ko(e){try{return SR(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Hr=t,bc=!0,Bi):t}}function ay(){if(Hr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Hr;return Hr=null,bc=!1,e}function ny(e){if(e===Bi||e===Yd)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ma(e){var t=Qe;return e!=null&&(Qe=t===null?e:t.concat(e)),t}function vm(){var e=Qe;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function ku(e,t,a){for(var n=Object.keys(e.props),r=0;r<n.length;r++){var i=n[r];if(i!=="children"&&i!=="key"){t===null&&(t=Nu(e,a.mode,0),t._debugInfo=Qe,t.return=a),xe(t,function(d){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d)},i);break}}}function Uu(e){var t=yc;return yc+=1,$i===null&&($i=Wb()),ty($i,e,t)}function Sl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sy(e,t){throw t.$$typeof===eD?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
99
|
+
- Multiple copies of the "react" package is used.
|
|
100
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
101
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Tu(e,t){var a=vm();a!==null?a.run(sy.bind(null,e,t)):sy(e,t)}function oy(e,t){var a=H(e)||"Component";pN[a]||(pN[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
102
|
+
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
103
|
+
<%s>{%s}</%s>`,t,t,a,t,a))}function ju(e,t){var a=vm();a!==null?a.run(oy.bind(null,e,t)):oy(e,t)}function ry(e,t){var a=H(e)||"Component";hN[a]||(hN[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
104
|
+
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
105
|
+
<%s>%s</%s>`,a,t,a))}function Ou(e,t){var a=vm();a!==null?a.run(ry.bind(null,e,t)):ry(e,t)}function iy(e){function t(C,j){if(e){var O=C.deletions;O===null?(C.deletions=[j],C.flags|=16):O.push(j)}}function a(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function n(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function r(C,j){return C=Fs(C,j),C.index=0,C.sibling=null,C}function i(C,j,O){return C.index=O,e?(O=C.alternate,O!==null?(O=O.index,O<j?(C.flags|=67108866,j):O):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function d(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,j,O,K){return j===null||j.tag!==6?(j=im(O,C.mode,K),j.return=C,j._debugOwner=C,j._debugTask=C._debugTask,j._debugInfo=Qe,j):(j=r(j,O),j.return=C,j._debugInfo=Qe,j)}function y(C,j,O,K){var pe=O.type;return pe===Ni?(j=A(C,j,O.props.children,K,O.key),ku(O,j,C),j):j!==null&&(j.elementType===pe||zb(j,O)||typeof pe=="object"&&pe!==null&&pe.$$typeof===on&&ko(pe)===j.type)?(j=r(j,O.props),Sl(j,O),j.return=C,j._debugOwner=O._owner,j._debugInfo=Qe,j):(j=Nu(O,C.mode,K),Sl(j,O),j.return=C,j._debugInfo=Qe,j)}function S(C,j,O,K){return j===null||j.tag!==4||j.stateNode.containerInfo!==O.containerInfo||j.stateNode.implementation!==O.implementation?(j=lm(O,C.mode,K),j.return=C,j._debugInfo=Qe,j):(j=r(j,O.children||[]),j.return=C,j._debugInfo=Qe,j)}function A(C,j,O,K,pe){return j===null||j.tag!==7?(j=yr(O,C.mode,K,pe),j.return=C,j._debugOwner=C,j._debugTask=C._debugTask,j._debugInfo=Qe,j):(j=r(j,O),j.return=C,j._debugInfo=Qe,j)}function V(C,j,O){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=im(""+j,C.mode,O),j.return=C,j._debugOwner=C,j._debugTask=C._debugTask,j._debugInfo=Qe,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ds:return O=Nu(j,C.mode,O),Sl(O,j),O.return=C,C=ma(j._debugInfo),O._debugInfo=Qe,Qe=C,O;case xi:return j=lm(j,C.mode,O),j.return=C,j._debugInfo=Qe,j;case on:var K=ma(j._debugInfo);return j=ko(j),C=V(C,j,O),Qe=K,C}if(aa(j)||fe(j))return O=yr(j,C.mode,O,null),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,C=ma(j._debugInfo),O._debugInfo=Qe,Qe=C,O;if(typeof j.then=="function")return K=ma(j._debugInfo),C=V(C,Uu(j),O),Qe=K,C;if(j.$$typeof===Rs)return V(C,Du(C,j),O);Tu(C,j)}return typeof j=="function"&&ju(C,j),typeof j=="symbol"&&Ou(C,j),null}function U(C,j,O,K){var pe=j!==null?j.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return pe!==null?null:p(C,j,""+O,K);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Ds:return O.key===pe?(pe=ma(O._debugInfo),C=y(C,j,O,K),Qe=pe,C):null;case xi:return O.key===pe?S(C,j,O,K):null;case on:return pe=ma(O._debugInfo),O=ko(O),C=U(C,j,O,K),Qe=pe,C}if(aa(O)||fe(O))return pe!==null?null:(pe=ma(O._debugInfo),C=A(C,j,O,K,null),Qe=pe,C);if(typeof O.then=="function")return pe=ma(O._debugInfo),C=U(C,j,Uu(O),K),Qe=pe,C;if(O.$$typeof===Rs)return U(C,j,Du(C,O),K);Tu(C,O)}return typeof O=="function"&&ju(C,O),typeof O=="symbol"&&Ou(C,O),null}function Y(C,j,O,K,pe){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return C=C.get(O)||null,p(j,C,""+K,pe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case Ds:return O=C.get(K.key===null?O:K.key)||null,C=ma(K._debugInfo),j=y(j,O,K,pe),Qe=C,j;case xi:return C=C.get(K.key===null?O:K.key)||null,S(j,C,K,pe);case on:var Ye=ma(K._debugInfo);return K=ko(K),j=Y(C,j,O,K,pe),Qe=Ye,j}if(aa(K)||fe(K))return O=C.get(O)||null,C=ma(K._debugInfo),j=A(j,O,K,pe,null),Qe=C,j;if(typeof K.then=="function")return Ye=ma(K._debugInfo),j=Y(C,j,O,Uu(K),pe),Qe=Ye,j;if(K.$$typeof===Rs)return Y(C,j,O,Du(j,K),pe);Tu(j,K)}return typeof K=="function"&&ju(j,K),typeof K=="symbol"&&Ou(j,K),null}function de(C,j,O,K){if(typeof O!="object"||O===null)return K;switch(O.$$typeof){case Ds:case xi:D(C,j,O);var pe=O.key;if(typeof pe!="string")break;if(K===null){K=new Set,K.add(pe);break}if(!K.has(pe)){K.add(pe);break}xe(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",pe)});break;case on:O=ko(O),de(C,j,O,K)}return K}function ye(C,j,O,K){for(var pe=null,Ye=null,Oe=null,_e=j,Fe=j=0,Tt=null;_e!==null&&Fe<O.length;Fe++){_e.index>Fe?(Tt=_e,_e=null):Tt=_e.sibling;var It=U(C,_e,O[Fe],K);if(It===null){_e===null&&(_e=Tt);break}pe=de(C,It,O[Fe],pe),e&&_e&&It.alternate===null&&t(C,_e),j=i(It,j,Fe),Oe===null?Ye=It:Oe.sibling=It,Oe=It,_e=Tt}if(Fe===O.length)return a(C,_e),st&&Xs(C,Fe),Ye;if(_e===null){for(;Fe<O.length;Fe++)_e=V(C,O[Fe],K),_e!==null&&(pe=de(C,_e,O[Fe],pe),j=i(_e,j,Fe),Oe===null?Ye=_e:Oe.sibling=_e,Oe=_e);return st&&Xs(C,Fe),Ye}for(_e=n(_e);Fe<O.length;Fe++)Tt=Y(_e,C,Fe,O[Fe],K),Tt!==null&&(pe=de(C,Tt,O[Fe],pe),e&&Tt.alternate!==null&&_e.delete(Tt.key===null?Fe:Tt.key),j=i(Tt,j,Fe),Oe===null?Ye=Tt:Oe.sibling=Tt,Oe=Tt);return e&&_e.forEach(function(bo){return t(C,bo)}),st&&Xs(C,Fe),Ye}function Dt(C,j,O,K){if(O==null)throw Error("An iterable object provided no iterator.");for(var pe=null,Ye=null,Oe=j,_e=j=0,Fe=null,Tt=null,It=O.next();Oe!==null&&!It.done;_e++,It=O.next()){Oe.index>_e?(Fe=Oe,Oe=null):Fe=Oe.sibling;var bo=U(C,Oe,It.value,K);if(bo===null){Oe===null&&(Oe=Fe);break}Tt=de(C,bo,It.value,Tt),e&&Oe&&bo.alternate===null&&t(C,Oe),j=i(bo,j,_e),Ye===null?pe=bo:Ye.sibling=bo,Ye=bo,Oe=Fe}if(It.done)return a(C,Oe),st&&Xs(C,_e),pe;if(Oe===null){for(;!It.done;_e++,It=O.next())Oe=V(C,It.value,K),Oe!==null&&(Tt=de(C,Oe,It.value,Tt),j=i(Oe,j,_e),Ye===null?pe=Oe:Ye.sibling=Oe,Ye=Oe);return st&&Xs(C,_e),pe}for(Oe=n(Oe);!It.done;_e++,It=O.next())Fe=Y(Oe,C,_e,It.value,K),Fe!==null&&(Tt=de(C,Fe,It.value,Tt),e&&Fe.alternate!==null&&Oe.delete(Fe.key===null?_e:Fe.key),j=i(Fe,j,_e),Ye===null?pe=Fe:Ye.sibling=Fe,Ye=Fe);return e&&Oe.forEach(function(FR){return t(C,FR)}),st&&Xs(C,_e),pe}function lt(C,j,O,K){if(typeof O=="object"&&O!==null&&O.type===Ni&&O.key===null&&(ku(O,null,C),O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Ds:var pe=ma(O._debugInfo);e:{for(var Ye=O.key;j!==null;){if(j.key===Ye){if(Ye=O.type,Ye===Ni){if(j.tag===7){a(C,j.sibling),K=r(j,O.props.children),K.return=C,K._debugOwner=O._owner,K._debugInfo=Qe,ku(O,K,C),C=K;break e}}else if(j.elementType===Ye||zb(j,O)||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===on&&ko(Ye)===j.type){a(C,j.sibling),K=r(j,O.props),Sl(K,O),K.return=C,K._debugOwner=O._owner,K._debugInfo=Qe,C=K;break e}a(C,j);break}else t(C,j);j=j.sibling}O.type===Ni?(K=yr(O.props.children,C.mode,K,O.key),K.return=C,K._debugOwner=C,K._debugTask=C._debugTask,K._debugInfo=Qe,ku(O,K,C),C=K):(K=Nu(O,C.mode,K),Sl(K,O),K.return=C,K._debugInfo=Qe,C=K)}return C=d(C),Qe=pe,C;case xi:e:{for(pe=O,O=pe.key;j!==null;){if(j.key===O)if(j.tag===4&&j.stateNode.containerInfo===pe.containerInfo&&j.stateNode.implementation===pe.implementation){a(C,j.sibling),K=r(j,pe.children||[]),K.return=C,C=K;break e}else{a(C,j);break}else t(C,j);j=j.sibling}K=lm(pe,C.mode,K),K.return=C,C=K}return d(C);case on:return pe=ma(O._debugInfo),O=ko(O),C=lt(C,j,O,K),Qe=pe,C}if(aa(O))return pe=ma(O._debugInfo),C=ye(C,j,O,K),Qe=pe,C;if(fe(O)){if(pe=ma(O._debugInfo),Ye=fe(O),typeof Ye!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Oe=Ye.call(O);return Oe===O?(C.tag!==0||Object.prototype.toString.call(C.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Oe)!=="[object Generator]")&&(fN||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),fN=!0):O.entries!==Ye||Bh||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Bh=!0),C=Dt(C,j,Oe,K),Qe=pe,C}if(typeof O.then=="function")return pe=ma(O._debugInfo),C=lt(C,j,Uu(O),K),Qe=pe,C;if(O.$$typeof===Rs)return lt(C,j,Du(C,O),K);Tu(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(pe=""+O,j!==null&&j.tag===6?(a(C,j.sibling),K=r(j,pe),K.return=C,C=K):(a(C,j),K=im(pe,C.mode,K),K.return=C,K._debugOwner=C,K._debugTask=C._debugTask,K._debugInfo=Qe,C=K),d(C)):(typeof O=="function"&&ju(C,O),typeof O=="symbol"&&Ou(C,O),a(C,j))}return function(C,j,O,K){var pe=Qe;Qe=null;try{yc=0;var Ye=lt(C,j,O,K);return $i=null,Ye}catch(Tt){if(Tt===Bi||Tt===Yd)throw Tt;var Oe=N(29,Tt,null,C.mode);Oe.lanes=K,Oe.return=C;var _e=Oe._debugInfo=Qe;if(Oe._debugOwner=C._debugOwner,Oe._debugTask=C._debugTask,_e!=null){for(var Fe=_e.length-1;0<=Fe;Fe--)if(typeof _e[Fe].stack=="string"){Oe._debugOwner=_e[Fe],Oe._debugTask=_e[Fe].debugTask;break}}return Oe}finally{Qe=pe}}}function ly(e,t){var a=aa(e);return e=!a&&typeof fe(e)=="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function xm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Uo(e){return{lane:e,tag:bN,payload:null,callback:null,next:null}}function To(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Yh===n&&!xN){var r=H(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
106
|
+
|
|
107
|
+
Please update the following component: %s`,r),xN=!0}return(dt&sa)!==fa?(r=n.pending,r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=xu(e),Mb(e,null,a),t):(vu(e,n,t,a),xu(e))}function wl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,wo(e,a)}}function Au(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?r=i=d:i=i.next=d,a=a.next}while(a!==null);i===null?r=i=t:i=i.next=t}else r=i=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function El(){if(qh){var e=Hi;if(e!==null)throw e}}function Dl(e,t,a,n){qh=!1;var r=e.updateQueue;Jo=!1,Yh=r.shared;var i=r.firstBaseUpdate,d=r.lastBaseUpdate,p=r.shared.pending;if(p!==null){r.shared.pending=null;var y=p,S=y.next;y.next=null,d===null?i=S:d.next=S,d=y;var A=e.alternate;A!==null&&(A=A.updateQueue,p=A.lastBaseUpdate,p!==d&&(p===null?A.firstBaseUpdate=S:p.next=S,A.lastBaseUpdate=y))}if(i!==null){var V=r.baseState;d=0,A=S=y=null,p=i;do{var U=p.lane&-536870913,Y=U!==p.lane;if(Y?(Ze&U)===U:(n&U)===U){U!==0&&U===Mr&&(qh=!0),A!==null&&(A=A.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{U=e;var de=p,ye=t,Dt=a;switch(de.tag){case yN:if(de=de.payload,typeof de=="function"){zi=!0;var lt=de.call(Dt,V,ye);if(U.mode&Sa){we(!0);try{de.call(Dt,V,ye)}finally{we(!1)}}zi=!1,V=lt;break e}V=de;break e;case $h:U.flags=U.flags&-65537|128;case bN:if(lt=de.payload,typeof lt=="function"){if(zi=!0,de=lt.call(Dt,V,ye),U.mode&Sa){we(!0);try{lt.call(Dt,V,ye)}finally{we(!1)}}zi=!1}else de=lt;if(de==null)break e;V=We({},V,de);break e;case vN:Jo=!0}}U=p.callback,U!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=r.callbacks,Y===null?r.callbacks=[U]:Y.push(U))}else Y={lane:U,tag:p.tag,payload:p.payload,callback:p.callback,next:null},A===null?(S=A=Y,y=V):A=A.next=Y,d|=U;if(p=p.next,p===null){if(p=r.shared.pending,p===null)break;Y=p,p=Y.next,Y.next=null,r.lastBaseUpdate=Y,r.shared.pending=null}}while(!0);A===null&&(y=V),r.baseState=y,r.firstBaseUpdate=S,r.lastBaseUpdate=A,i===null&&(r.shared.lanes=0),er|=d,e.lanes=d,e.memoizedState=V}Yh=null}function cy(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function LE(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)cy(a[e],t)}function uy(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)cy(a[e],t)}function dy(e,t){var a=Vs;X(Gd,a,e),X(Yi,t,e),Vs=a|t.baseLanes}function Sm(e){X(Gd,Vs,e),X(Yi,Yi.current,e)}function wm(e){Vs=Gd.current,P(Yi,e),P(Gd,e)}function jo(e){var t=e.alternate;X(Gt,Gt.current&qi,e),X(cn,e,e),kn===null&&(t===null||Yi.current!==null||t.memoizedState!==null)&&(kn=e)}function Em(e){X(Gt,Gt.current,e),X(cn,e,e),kn===null&&(kn=e)}function fy(e){e.tag===22?(X(Gt,Gt.current,e),X(cn,e,e),kn===null&&(kn=e)):Oo(e)}function Oo(e){X(Gt,Gt.current,e),X(cn,cn.current,e)}function an(e){P(cn,e),kn===e&&(kn=null),P(Gt,e)}function Vu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||zp(a)||Lp(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ke(){var e=G;Tn===null?Tn=[e]:Tn.push(e)}function se(){var e=G;if(Tn!==null&&(fo++,Tn[fo]!==e)){var t=H($e);if(!NN.has(t)&&(NN.add(t),Tn!==null)){for(var a="",n=0;n<=fo;n++){var r=Tn[n],i=n===fo?e:r;for(r=n+1+". "+r;30>r.length;)r+=" ";r+=i+`
|
|
108
|
+
`,a+=r}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
109
|
+
|
|
110
|
+
Previous render Next render
|
|
111
|
+
------------------------------------------------------
|
|
112
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
113
|
+
`,t,a)}}}function ii(e){e==null||aa(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",G,typeof e)}function Mu(){var e=H($e);wN.has(e)||(wN.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Ht(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
114
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
115
|
+
2. You might be breaking the Rules of Hooks
|
|
116
|
+
3. You might have more than one copy of React in the same app
|
|
117
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Dm(e,t){if(Nc)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",G),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
118
|
+
|
|
119
|
+
Previous: %s
|
|
120
|
+
Incoming: %s`,G,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Va(e[a],t[a]))return!1;return!0}function Rm(e,t,a,n,r,i){co=i,$e=t,Tn=e!==null?e._debugHookTypes:null,fo=-1,Nc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(i=H($e),Gh.has(i)||(Gh.add(i),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",i===null?"An unknown Component":"<"+i+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e!==null&&e.memoizedState!==null?Fh:Tn!==null?EN:Ih,$r=i=(t.mode&Sa)!==Le;var d=zh(a,n,r);if($r=!1,Ii&&(d=_m(t,a,n,r)),i){we(!0);try{d=_m(t,a,n,r)}finally{we(!1)}}return my(e,t),d}function my(e,t){t._debugHookTypes=Tn,t.dependencies===null?uo!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:uo}):t.dependencies._debugThenableState=uo,F.H=Sc;var a=Nt!==null&&Nt.next!==null;if(co=0,Tn=G=Pt=Nt=$e=null,fo=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Fd=!1,xc=0,uo=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Jt||(e=e.dependencies,e!==null&&Eu(e)&&(Jt=!0)),bc?(bc=!1,e=!0):e=!1,e&&(t=H(t)||"Unknown",SN.has(t)||Gh.has(t)||(SN.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function _m(e,t,a,n){$e=e;var r=0;do{if(Ii&&(uo=null),xc=0,Ii=!1,r>=ER)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,Nc=!1,Pt=Nt=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}fo=-1,F.H=DN,i=zh(t,a,n)}while(Ii);return i}function HE(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?Rl(t):t,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&($e.flags|=1024),t}function Cm(){var e=Xd!==0;return Xd=0,e}function km(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Pn)!==Le?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Um(e){if(Fd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fd=!1}co=0,Tn=Pt=Nt=$e=null,fo=-1,G=null,Ii=!1,xc=Xd=0,uo=null}function Ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?$e.memoizedState=Pt=e:Pt=Pt.next=e,Pt}function yt(){if(Nt===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var t=Pt===null?$e.memoizedState:Pt.next;if(t!==null)Pt=t,Nt=e;else{if(e===null)throw $e.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Nt=e,e={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},Pt===null?$e.memoizedState=Pt=e:Pt=Pt.next=e}return Pt}function zu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(e){var t=xc;return xc+=1,uo===null&&(uo=Wb()),e=ty(uo,e,t),t=$e,(Pt===null?t.memoizedState:Pt.next)===null&&(t=t.alternate,F.H=t!==null&&t.memoizedState!==null?Fh:Ih),e}function Ao(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rl(e);if(e.$$typeof===Rs)return jt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function wr(e){var t=null,a=$e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=$e.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=zu(),$e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Nc)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=tD;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Xn(e,t){return typeof t=="function"?t(e):t}function Tm(e,t,a){var n=Ta();if(a!==void 0){var r=a(t);if($r){we(!0);try{a(t)}finally{we(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=GE.bind(null,$e,e),[n.memoizedState,e]}function li(e){var t=yt();return jm(t,Nt,e)}function jm(e,t,a){var n=e.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=a;var r=e.baseQueue,i=n.pending;if(i!==null){if(r!==null){var d=r.next;r.next=i.next,i.next=d}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=i,n.pending=null}if(i=e.baseState,r===null)e.memoizedState=i;else{t=r.next;var p=d=null,y=null,S=t,A=!1;do{var V=S.lane&-536870913;if(V!==S.lane?(Ze&V)===V:(co&V)===V){var U=S.revertLane;if(U===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),V===Mr&&(A=!0);else if((co&U)===U){S=S.next,U===Mr&&(A=!0);continue}else V={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},y===null?(p=y=V,d=i):y=y.next=V,$e.lanes|=U,er|=U;V=S.action,$r&&a(i,V),i=S.hasEagerState?S.eagerState:a(i,V)}else U={lane:V,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},y===null?(p=y=U,d=i):y=y.next=U,$e.lanes|=V,er|=V;S=S.next}while(S!==null&&S!==t);if(y===null?d=i:y.next=p,!Va(i,e.memoizedState)&&(Jt=!0,A&&(a=Hi,a!==null)))throw a;e.memoizedState=i,e.baseState=d,e.baseQueue=y,n.lastRenderedState=i}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function _l(e){var t=yt(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,i=t.memoizedState;if(r!==null){a.pending=null;var d=r=r.next;do i=e(i,d.action),d=d.next;while(d!==r);Va(i,t.memoizedState)||(Jt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,n]}function Om(e,t,a){var n=$e,r=Ta();if(st){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var i=a();Gi||i===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Gi=!0)}else{if(i=t(),Gi||(a=t(),Va(i,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Gi=!0)),St===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ze&127)!==0||py(n,t,i)}return r.memoizedState=i,a={value:i,getSnapshot:t},r.queue=a,$u(gy.bind(null,n,a,e),[e]),n.flags|=2048,ui(Un|La,{destroy:void 0},hy.bind(null,n,a,i,t),null),i}function Lu(e,t,a){var n=$e,r=yt(),i=st;if(i){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Gi){var d=t();Va(a,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Gi=!0)}(d=!Va((Nt||r).memoizedState,a))&&(r.memoizedState=a,Jt=!0),r=r.queue;var p=gy.bind(null,n,r,e);if(qa(2048,La,p,[e]),r.getSnapshot!==t||d||Pt!==null&&Pt.memoizedState.tag&Un){if(n.flags|=2048,ui(Un|La,{destroy:void 0},hy.bind(null,n,r,a,t),null),St===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i||(co&127)!==0||py(n,t,a)}return a}function py(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=$e.updateQueue,t===null?(t=zu(),$e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function hy(e,t,a,n){t.value=a,t.getSnapshot=n,by(t)&&yy(e)}function gy(e,t,a){return a(function(){by(t)&&(fs(2,"updateSyncExternalStore()",e),yy(e))})}function by(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Va(e,a)}catch{return!0}}function yy(e){var t=xa(e,2);t!==null&&zt(t,e,2)}function Am(e){var t=Ta();if(typeof e=="function"){var a=e;if(e=a(),$r){we(!0);try{a()}finally{we(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},t}function Vm(e){e=Am(e);var t=e.queue,a=zy.bind(null,$e,t);return t.dispatch=a,[e.memoizedState,a]}function Mm(e){var t=Ta();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Pm.bind(null,$e,!0,a),a.dispatch=t,[e,t]}function vy(e,t){var a=yt();return xy(a,Nt,e,t)}function xy(e,t,a,n){return e.baseState=a,jm(e,Nt,typeof n=="function"?n:Xn)}function Ny(e,t){var a=yt();return Nt!==null?xy(a,Nt,e,t):(a.baseState=e,[e,a.queue.dispatch])}function BE(e,t,a,n,r){if(Xu(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){i.listeners.push(d)}};F.T!==null?a(!0):i.isTransition=!1,n(i),a=t.pending,a===null?(i.next=t.pending=i,Sy(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Sy(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var i=F.T,d={};d._updatedFibers=new Set,F.T=d;try{var p=a(r,n),y=F.S;y!==null&&y(d,p),wy(e,t,p)}catch(S){zm(e,t,S)}finally{i!==null&&d.types!==null&&(i.types!==null&&i.types!==d.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),i.types=d.types),F.T=i,i===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{d=a(r,n),wy(e,t,d)}catch(S){zm(e,t,S)}}function wy(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(F.asyncTransitions++,a.then(Fu,Fu),a.then(function(n){Ey(e,t,n)},function(n){return zm(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ey(e,t,a)}function Ey(e,t,a){t.status="fulfilled",t.value=a,Dy(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Sy(e,a)))}function zm(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Dy(t),t=t.next;while(t!==n)}e.action=null}function Dy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ry(e,t){return t}function ci(e,t){if(st){var a=St.formState;if(a!==null){e:{var n=$e;if(st){if(Ut){t:{for(var r=Ut,i=_n;r.nodeType!==8;){if(!i){r=null;break t}if(r=sn(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i===hg||i===u1?r:null}if(r){Ut=sn(r.nextSibling),n=r.data===hg;break e}}_o(n)}n=!1}n&&(t=a[0])}}return a=Ta(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ry,lastRenderedState:t},a.queue=n,a=zy.bind(null,$e,n),n.dispatch=a,n=Am(!1),i=Pm.bind(null,$e,!1,n.queue),n=Ta(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=BE.bind(null,$e,r,i,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function Hu(e){var t=yt();return _y(t,Nt,e)}function _y(e,t,a){if(t=jm(e,t,Ry)[0],e=li(Xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Rl(t)}catch(d){throw d===Bi?Yd:d}else n=t;t=yt();var r=t.queue,i=r.dispatch;return a!==t.memoizedState&&($e.flags|=2048,ui(Un|La,{destroy:void 0},$E.bind(null,r,a),null)),[n,i,e]}function $E(e,t){e.action=t}function Bu(e){var t=yt(),a=Nt;if(a!==null)return _y(t,a,e);yt(),t=t.memoizedState,a=yt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function ui(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=$e.updateQueue,t===null&&(t=zu(),$e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function Lm(e){var t=Ta();return e={current:e},t.memoizedState=e}function Er(e,t,a,n){var r=Ta();$e.flags|=e,r.memoizedState=ui(Un|t,{destroy:void 0},a,n===void 0?null:n)}function qa(e,t,a,n){var r=yt();n=n===void 0?null:n;var i=r.memoizedState.inst;Nt!==null&&n!==null&&Dm(n,Nt.memoizedState.deps)?r.memoizedState=ui(t,i,a,n):($e.flags|=e,r.memoizedState=ui(Un|t,i,a,n))}function $u(e,t){($e.mode&Pn)!==Le?Er(276826112,La,e,t):Er(8390656,La,e,t)}function YE(e){$e.flags|=4;var t=$e.updateQueue;if(t===null)t=zu(),$e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Hm(e){var t=Ta(),a={impl:e};return t.memoizedState=a,function(){if((dt&sa)!==fa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Yu(e){var t=yt().memoizedState;return YE({ref:t,nextImpl:e}),function(){if((dt&sa)!==fa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Bm(e,t){var a=4194308;return($e.mode&Pn)!==Le&&(a|=134217728),Er(a,un,e,t)}function Cy(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function $m(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var n=4194308;($e.mode&Pn)!==Le&&(n|=134217728),Er(n,un,Cy.bind(null,t,e),a)}function qu(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,qa(4,un,Cy.bind(null,t,e),a)}function Ym(e,t){return Ta().memoizedState=[e,t===void 0?null:t],e}function Gu(e,t){var a=yt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Dm(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function qm(e,t){var a=Ta();t=t===void 0?null:t;var n=e();if($r){we(!0);try{e()}finally{we(!1)}}return a.memoizedState=[n,t],n}function Iu(e,t){var a=yt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Dm(t,n[1]))return n[0];if(n=e(),$r){we(!0);try{e()}finally{we(!1)}}return a.memoizedState=[n,t],n}function Gm(e,t){var a=Ta();return Im(a,e,t)}function ky(e,t){var a=yt();return Ty(a,Nt.memoizedState,e,t)}function Uy(e,t){var a=yt();return Nt===null?Im(a,e,t):Ty(a,Nt.memoizedState,e,t)}function Im(e,t,a){return a===void 0||(co&1073741824)!==0&&(Ze&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=jv(),$e.lanes|=e,er|=e,a)}function Ty(e,t,a,n){return Va(a,t)?a:Yi.current!==null?(e=Im(e,a,n),Va(e,t)||(Jt=!0),e):(co&42)===0||(co&1073741824)!==0&&(Ze&261930)===0?(Jt=!0,e.memoizedState=a):(e=jv(),$e.lanes|=e,er|=e,t)}function Fu(){F.asyncTransitions--}function jy(e,t,a,n,r){var i=bt.p;bt.p=i!==0&&i<Us?i:Us;var d=F.T,p={};p._updatedFibers=new Set,F.T=p,Pm(e,!1,t,a);try{var y=r(),S=F.S;if(S!==null&&S(p,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){F.asyncTransitions++,y.then(Fu,Fu);var A=zE(y,n);Cl(e,t,A,nn(e))}else Cl(e,t,n,nn(e))}catch(V){Cl(e,t,{then:function(){},status:"rejected",reason:V},nn(e))}finally{bt.p=i,d!==null&&p.types!==null&&(d.types!==null&&d.types!==p.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=p.types),F.T=d,d===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Fm(e,t,a,n){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=Oy(e).queue;VE(e),jy(e,r,t,Kr,a===null?v:function(){return Ay(e),a(n)})}function Oy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Kr,baseState:Kr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:Kr},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ay(e){F.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Oy(e);t.next===null&&(t=e.alternate.memoizedState),Cl(e,t.next.queue,{},nn(e))}function Xm(){var e=Am(!1);return e=jy.bind(null,$e,e.queue,!0,!1),Ta().memoizedState=e,[!1,e]}function Vy(){var e=li(Xn)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]}function My(){var e=_l(Xn)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]}function Dr(){return jt(zc)}function Qm(){var e=Ta(),t=St.identifierPrefix;if(st){var a=so,n=no;a=(n&~(1<<32-ja(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Xd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=wR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Zm(){return Ta().memoizedState=qE.bind(null,$e)}function qE(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var n=nn(a),r=Uo(n),i=To(a,r,n);i!==null&&(fs(n,"refresh()",e),zt(i,a,n),wl(i,a,n)),e=hm(),t!=null&&i!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return}}function GE(e,t,a){var n=arguments;typeof n[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),n=nn(e);var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Xu(e)?Ly(t,r):(r=nm(e,t,r,n),r!==null&&(fs(n,"dispatch()",e),zt(r,e,n),Hy(r,t,n)))}function zy(e,t,a){var n=arguments;typeof n[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),n=nn(e),Cl(e,t,a,n)&&fs(n,"setState()",e)}function Cl(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Xu(e))Ly(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null)){var d=F.H;F.H=Kn;try{var p=t.lastRenderedState,y=i(p,a);if(r.hasEagerState=!0,r.eagerState=y,Va(y,p))return vu(e,t,r,0),St===null&&yu(),!1}catch{}finally{F.H=d}}if(a=nm(e,t,r,n),a!==null)return zt(a,e,n),Hy(a,t,n),!0}return!1}function Pm(e,t,a,n){if(F.T===null&&Mr===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),n={lane:2,revertLane:Rp(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Xu(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=nm(e,a,n,2),t!==null&&(fs(2,"setOptimistic()",e),zt(t,e,2))}function Xu(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function Ly(e,t){Ii=Fd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Hy(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,wo(e,a)}}function Jm(e){if(e!==null&&typeof e!="function"){var t=String(e);MN.has(t)||(MN.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Km(e,t,a,n){var r=e.memoizedState,i=a(n,r);if(e.mode&Sa){we(!0);try{i=a(n,r)}finally{we(!1)}}i===void 0&&(t=_(t)||"Component",jN.has(t)||(jN.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=i==null?r:We({},r,i),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function By(e,t,a,n,r,i,d){var p=e.stateNode;if(typeof p.shouldComponentUpdate=="function"){if(a=p.shouldComponentUpdate(n,i,d),e.mode&Sa){we(!0);try{a=p.shouldComponentUpdate(n,i,d)}finally{we(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",_(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!bl(a,n)||!bl(r,i):!0}function $y(e,t,a,n){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==r&&(e=H(e)||"Component",_N.has(e)||(_N.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Xh.enqueueReplaceState(t,t.state,null))}function Rr(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=We({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function Yy(e){Eh(e),console.warn(`%s
|
|
121
|
+
|
|
122
|
+
%s
|
|
123
|
+
`,Fi?"An error occurred in the <"+Fi+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
124
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function qy(e){var t=Fi?"The above error occurred in the <"+Fi+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Qh||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var n=e.environmentName;e=[`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,e,t,a].slice(0),typeof e[0]=="string"?e.splice(0,1,y1+" "+e[0],v1,vf+n+vf,x1):e.splice(0,0,y1,v1,vf+n+vf,x1),e.unshift(console),n=GR.apply(console.error,e),n()}else console.error(`%o
|
|
130
|
+
|
|
131
|
+
%s
|
|
132
|
+
|
|
133
|
+
%s
|
|
134
|
+
`,e,t,a)}function Gy(e){Eh(e)}function Qu(e,t){try{Fi=t.source?H(t.source):null,Qh=null;var a=t.value;if(F.actQueue!==null)F.thrownErrors.push(a);else{var n=e.onUncaughtError;n(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function Iy(e,t,a){try{Fi=a.source?H(a.source):null,Qh=H(t);var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Wm(e,t,a){return a=Uo(a),a.tag=$h,a.payload={element:null},a.callback=function(){xe(t.source,Qu,e,t)},a}function ep(e){return e=Uo(e),e.tag=$h,e}function tp(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var i=n.value;e.payload=function(){return r(i)},e.callback=function(){Lb(a),xe(n.source,Iy,t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Lb(a),xe(n.source,Iy,t,a,n),typeof r!="function"&&(ar===null?ar=new Set([this]):ar.add(this)),vR(this,n),typeof r=="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",H(a)||"Unknown")})}function IE(e,t,a,n,r){if(a.flags|=32768,ks&&Ml(e,r),n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&ri(t,a,r,!0),st&&(js=!0),a=cn.current,a!==null){switch(a.tag){case 31:case 13:return kn===null?nd():a.alternate===null&&Vt===po&&(Vt=Pd),a.flags&=-257,a.flags|=65536,a.lanes=r,n===qd?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Sp(e,n,r)),!1;case 22:return a.flags|=65536,n===qd?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Sp(e,n,r)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Sp(e,n,r),nd(),!1}if(st)return js=!0,t=cn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Uh&&yl(Wa(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:n}),a))):(n!==Uh&&yl(Wa(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:n}),a)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=Wa(n,a),r=Wm(e.stateNode,n,r),Au(e,r),Vt!==Ko&&(Vt=Yr)),!1;var i=Wa(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:n}),a);if(Cc===null?Cc=[i]:Cc.push(i),Vt!==Ko&&(Vt=Yr),t===null)return!0;n=Wa(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Wm(a.stateNode,n,e),Au(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ar===null||!ar.has(i))))return a.flags|=65536,r&=-r,a.lanes|=r,r=ep(r),tp(r,e,a,n),Au(a,r),!1}a=a.return}while(a!==null);return!1}function pa(e,t,a,n){t.child=e===null?gN(t,null,a,n):Br(t,e.child,a,n)}function Fy(e,t,a,n,r){a=a.render;var i=t.ref;if("ref"in n){var d={};for(var p in n)p!=="ref"&&(d[p]=n[p])}else d=n;return Nr(t),n=Rm(e,t,a,d,i,r),p=Cm(),e!==null&&!Jt?(km(e,t,r),Ps(e,t,r)):(st&&p&&cm(t),t.flags|=1,pa(e,t,n,r),t.child)}function Xy(e,t,a,n,r){if(e===null){var i=a.type;return typeof i=="function"&&!om(i)&&i.defaultProps===void 0&&a.compare===null?(a=br(i),t.tag=15,t.type=a,np(t,i),Qy(e,t,a,n,r)):(e=rm(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!cp(e,r)){var d=i.memoizedProps;if(a=a.compare,a=a!==null?a:bl,a(d,n)&&e.ref===t.ref)return Ps(e,t,r)}return t.flags|=1,e=Fs(i,n),e.ref=t.ref,e.return=t,t.child=e}function Qy(e,t,a,n,r){if(e!==null){var i=e.memoizedProps;if(bl(i,n)&&e.ref===t.ref&&t.type===e.type)if(Jt=!1,t.pendingProps=n=i,cp(e,r))(e.flags&131072)!==0&&(Jt=!0);else return t.lanes=e.lanes,Ps(e,t,r)}return ap(e,t,a,n,r)}function Zy(e,t,a,n){var r=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:nc,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~i}else n=0,t.child=null;return Py(e,t,i,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Cu(t,i!==null?i.cachePool:null),i!==null?dy(t,i):Sm(t),fy(t);else return n=t.lanes=536870912,Py(e,t,i!==null?i.baseLanes|a:a,a,n)}else i!==null?(Cu(t,i.cachePool),dy(t,i),Oo(t),t.memoizedState=null):(e!==null&&Cu(t,null),Sm(t),Oo(t));return pa(e,t,r,a),t.child}function kl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:nc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Py(e,t,a,n,r){var i=ym();return i=i===null?null:{parent:Qt._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Cu(t,null),Sm(t),fy(t),e!==null&&ri(e,t,n,!0),t.childLanes=r,null}function Zu(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
135
|
+
- <Activity %s>
|
|
136
|
+
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Ju({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jy(e,t,a){return Br(t,e.child,null,a),e=Zu(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function FE(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(st){if(n.mode==="hidden")return e=Zu(t,n),t.lanes=536870912,kl(null,e);if(Em(t),(e=Ut)?(a=S0(e,_n),a=a!==null&&a.data===Qr?a:null,a!==null&&(n={dehydrated:a,treeContext:qb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=$b(a),n.return=t,t.child=n,ba=t,Ut=null)):a=null,a===null)throw Su(t,e),_o(t);return t.lanes=536870912,null}return Zu(t,n)}var i=e.memoizedState;if(i!==null){var d=i.dehydrated;if(Em(t),r)if(t.flags&256)t.flags&=-257,t=Jy(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Ib(),(a&536870912)!==0&&ad(t),Jt||ri(e,t,a,!1),r=(a&e.childLanes)!==0,Jt||r){if(n=St,n!==null&&(d=Hs(n,a),d!==0&&d!==i.retryLane))throw i.retryLane=d,xa(e,d),zt(n,e,d),Zh;nd(),t=Jy(e,t,a)}else e=i.treeContext,Ut=sn(d.nextSibling),ba=t,st=!0,Fo=null,js=!1,ln=null,_n=!1,e!==null&&Gb(t,e),t=Zu(t,n),t.flags|=4096;return t}return i=e.child,n={mode:n.mode,children:n.children},(a&536870912)!==0&&(a&e.lanes)!==0&&ad(t),e=Fs(i,n),e.ref=t.ref,t.child=e,e.return=t,e}function Pu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ap(e,t,a,n,r){if(a.prototype&&typeof a.prototype.render=="function"){var i=_(a)||"Unknown";zN[i]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",i,i),zN[i]=!0)}return t.mode&Sa&&Jn.recordLegacyContextWarning(t,null),e===null&&(np(t,t.type),a.contextTypes&&(i=_(a)||"Unknown",HN[i]||(HN[i]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",i)))),Nr(t),a=Rm(e,t,a,n,void 0,r),n=Cm(),e!==null&&!Jt?(km(e,t,r),Ps(e,t,r)):(st&&n&&cm(t),t.flags|=1,pa(e,t,a,r),t.child)}function Ky(e,t,a,n,r,i){return Nr(t),fo=-1,Nc=e!==null&&e.type!==t.type,t.updateQueue=null,a=_m(t,n,a,r),my(e,t),n=Cm(),e!==null&&!Jt?(km(e,t,i),Ps(e,t,i)):(st&&n&&cm(t),t.flags|=1,pa(e,t,a,i),t.child)}function Wy(e,t,a,n,r){switch(h(t)){case!1:var i=t.stateNode,d=new t.type(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,d,null);break;case!0:t.flags|=128,t.flags|=65536,i=Error("Simulated error coming from DevTools");var p=r&-r;if(t.lanes|=p,d=St,d===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=ep(p),tp(p,d,t,Wa(i,t)),Au(t,p)}if(Nr(t),t.stateNode===null){if(d=Io,i=a.contextType,"contextType"in a&&i!==null&&(i===void 0||i.$$typeof!==Rs)&&!VN.has(a)&&(VN.add(a),p=i===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof i!="object"?" However, it is set to a "+typeof i+".":i.$$typeof===Pp?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(i).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",_(a)||"Component",p)),typeof i=="object"&&i!==null&&(d=jt(i)),i=new a(n,d),t.mode&Sa){we(!0);try{i=new a(n,d)}finally{we(!1)}}if(d=t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Xh,t.stateNode=i,i._reactInternals=t,i._reactInternalInstance=RN,typeof a.getDerivedStateFromProps=="function"&&d===null&&(d=_(a)||"Component",CN.has(d)||(CN.add(d),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,i.state===null?"null":"undefined",d))),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"){var y=p=d=null;if(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0?d="componentWillMount":typeof i.UNSAFE_componentWillMount=="function"&&(d="UNSAFE_componentWillMount"),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof i.UNSAFE_componentWillReceiveProps=="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0?y="componentWillUpdate":typeof i.UNSAFE_componentWillUpdate=="function"&&(y="UNSAFE_componentWillUpdate"),d!==null||p!==null||y!==null){i=_(a)||"Component";var S=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";UN.has(i)||(UN.add(i),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
137
|
+
|
|
138
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
139
|
+
|
|
140
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
141
|
+
https://react.dev/link/unsafe-component-lifecycles`,i,S,d!==null?`
|
|
142
|
+
`+d:"",p!==null?`
|
|
143
|
+
`+p:"",y!==null?`
|
|
144
|
+
`+y:""))}}i=t.stateNode,d=_(a)||"Component",i.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",d):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",d)),!i.getInitialState||i.getInitialState.isReactClassApproved||i.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",d),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",d),i.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),a.childContextTypes&&!AN.has(a)&&(AN.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",d)),a.contextTypes&&!ON.has(a)&&(ON.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",d)),typeof i.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",d),a.prototype&&a.prototype.isPureReactComponent&&typeof i.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",_(a)||"A pure component"),typeof i.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof i.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",d),typeof i.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof i.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d),p=i.props!==n,i.props!==void 0&&p&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d),i.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof i.getSnapshotBeforeUpdate!="function"||typeof i.componentDidUpdate=="function"||kN.has(a)||(kN.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",_(a))),typeof i.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof i.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d),(p=i.state)&&(typeof p!="object"||aa(p))&&console.error("%s.state: must be set to an object or null",d),typeof i.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d),i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},xm(t),d=a.contextType,i.context=typeof d=="object"&&d!==null?jt(d):Io,i.state===n&&(d=_(a)||"Component",TN.has(d)||(TN.add(d),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",d))),t.mode&Sa&&Jn.recordLegacyContextWarning(t,i),Jn.recordUnsafeLifecycleWarnings(t,i),i.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Km(t,a,d,n),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(d=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),d!==i.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",H(t)||"Component"),Xh.enqueueReplaceState(i,i.state,null)),Dl(t,n,i,r),El(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Pn)!==Le&&(t.flags|=134217728),i=!0}else if(e===null){i=t.stateNode;var A=t.memoizedProps;p=Rr(a,A),i.props=p;var V=i.context;y=a.contextType,d=Io,typeof y=="object"&&y!==null&&(d=jt(y)),S=a.getDerivedStateFromProps,y=typeof S=="function"||typeof i.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,y||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(A||V!==d)&&$y(t,i,n,d),Jo=!1;var U=t.memoizedState;i.state=U,Dl(t,n,i,r),El(),V=t.memoizedState,A||U!==V||Jo?(typeof S=="function"&&(Km(t,a,S,n),V=t.memoizedState),(p=Jo||By(t,a,p,n,U,V,d))?(y||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Pn)!==Le&&(t.flags|=134217728)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Pn)!==Le&&(t.flags|=134217728),t.memoizedProps=n,t.memoizedState=V),i.props=n,i.state=V,i.context=d,i=p):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Pn)!==Le&&(t.flags|=134217728),i=!1)}else{i=t.stateNode,Nm(e,t),d=t.memoizedProps,y=Rr(a,d),i.props=y,S=t.pendingProps,U=i.context,V=a.contextType,p=Io,typeof V=="object"&&V!==null&&(p=jt(V)),A=a.getDerivedStateFromProps,(V=typeof A=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d!==S||U!==p)&&$y(t,i,n,p),Jo=!1,U=t.memoizedState,i.state=U,Dl(t,n,i,r),El();var Y=t.memoizedState;d!==S||U!==Y||Jo||e!==null&&e.dependencies!==null&&Eu(e.dependencies)?(typeof A=="function"&&(Km(t,a,A,n),Y=t.memoizedState),(y=Jo||By(t,a,y,n,U,Y,p)||e!==null&&e.dependencies!==null&&Eu(e.dependencies))?(V||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,Y,p),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,Y,p)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=Y),i.props=n,i.state=Y,i.context=p,i=y):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),i=!1)}if(p=i,Pu(e,t),d=(t.flags&128)!==0,p||d){if(p=t.stateNode,ss(t),d&&typeof a.getDerivedStateFromError!="function")a=null,Ma=-1;else if(a=aN(p),t.mode&Sa){we(!0);try{aN(p)}finally{we(!1)}}t.flags|=1,e!==null&&d?(t.child=Br(t,e.child,null,r),t.child=Br(t,null,a,r)):pa(e,t,a,r),t.memoizedState=p.state,e=t.child}else e=Ps(e,t,r);return r=t.stateNode,i&&r.props!==n&&(Xi||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",H(t)||"a component"),Xi=!0),e}function ev(e,t,a,n){return xr(),t.flags|=256,pa(e,t,a,n),t.child}function np(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
145
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=_(t)||"Unknown",BN[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),BN[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=_(t)||"Unknown",LN[t]||(console.error("%s: Function components do not support contextType.",t),LN[t]=!0))}function sp(e){return{baseLanes:e,cachePool:Kb()}}function op(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Qa),e}function tv(e,t,a){var n,r=t.pendingProps;f(t)&&(t.flags|=128);var i=!1,d=(t.flags&128)!==0;if((n=d)||(n=e!==null&&e.memoizedState===null?!1:(Gt.current&vc)!==0),n&&(i=!0,t.flags&=-129),n=(t.flags&32)!==0,t.flags&=-33,e===null){if(st){if(i?jo(t):Oo(t),(e=Ut)?(a=S0(e,_n),a=a!==null&&a.data!==Qr?a:null,a!==null&&(n={dehydrated:a,treeContext:qb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=$b(a),n.return=t,t.child=n,ba=t,Ut=null)):a=null,a===null)throw Su(t,e),_o(t);return Lp(a)?t.lanes=32:t.lanes=536870912,null}var p=r.children;if(r=r.fallback,i){Oo(t);var y=t.mode;return p=Ju({mode:"hidden",children:p},y),r=yr(r,y,a,null),p.return=t,r.return=t,p.sibling=r,t.child=p,r=t.child,r.memoizedState=sp(a),r.childLanes=op(e,n,a),t.memoizedState=Ph,kl(null,r)}return jo(t),rp(t,p)}var S=e.memoizedState;if(S!==null){var A=S.dehydrated;if(A!==null){if(d)t.flags&256?(jo(t),t.flags&=-257,t=ip(e,t,a)):t.memoizedState!==null?(Oo(t),t.child=e.child,t.flags|=128,t=null):(Oo(t),p=r.fallback,y=t.mode,r=Ju({mode:"visible",children:r.children},y),p=yr(p,y,a,null),p.flags|=2,r.return=t,p.return=t,r.sibling=p,t.child=r,Br(t,e.child,null,a),r=t.child,r.memoizedState=sp(a),r.childLanes=op(e,n,a),t.memoizedState=Ph,t=kl(null,r));else if(jo(t),Ib(),(a&536870912)!==0&&ad(t),Lp(A)){if(n=A.nextSibling&&A.nextSibling.dataset,n){p=n.dgst;var V=n.msg;y=n.stck;var U=n.cstck}i=V,n=p,r=y,A=U,p=i,y=A,p=Error(p||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),p.stack=r||"",p.digest=n,n=y===void 0?null:y,r={value:p,source:null,stack:n},typeof n=="string"&&kh.set(p,r),yl(r),t=ip(e,t,a)}else if(Jt||ri(e,t,a,!1),n=(a&e.childLanes)!==0,Jt||n){if(n=St,n!==null&&(r=Hs(n,a),r!==0&&r!==S.retryLane))throw S.retryLane=r,xa(e,r),zt(n,e,r),Zh;zp(A)||nd(),t=ip(e,t,a)}else zp(A)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ut=sn(A.nextSibling),ba=t,st=!0,Fo=null,js=!1,ln=null,_n=!1,e!==null&&Gb(t,e),t=rp(t,r.children),t.flags|=4096);return t}}return i?(Oo(t),p=r.fallback,y=t.mode,U=e.child,A=U.sibling,r=Fs(U,{mode:"hidden",children:r.children}),r.subtreeFlags=U.subtreeFlags&65011712,A!==null?p=Fs(A,p):(p=yr(p,y,a,null),p.flags|=2),p.return=t,r.return=t,r.sibling=p,t.child=r,kl(null,r),r=t.child,p=e.child.memoizedState,p===null?p=sp(a):(y=p.cachePool,y!==null?(U=Qt._currentValue,y=y.parent!==U?{parent:U,pool:U}:y):y=Kb(),p={baseLanes:p.baseLanes|a,cachePool:y}),r.memoizedState=p,r.childLanes=op(e,n,a),t.memoizedState=Ph,kl(e.child,r)):(S!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&ad(t),jo(t),a=e.child,e=a.sibling,a=Fs(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a)}function rp(e,t){return t=Ju({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ju(e,t){return e=N(22,e,null,t),e.lanes=0,e}function ip(e,t,a){return Br(t,e.child,null,a),e=rp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function av(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),mm(e.return,t,a)}function lp(e,t,a,n,r,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:i}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=r,d.treeForkCount=i)}function nv(e,t,a){var n=t.pendingProps,r=n.revealOrder,i=n.tail,d=n.children,p=Gt.current;if((n=(p&vc)!==0)?(p=p&qi|vc,t.flags|=128):p&=qi,X(Gt,p,t),p=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!$N[p])if($N[p]=!0,r==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(r==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);p=i??"null",Zd[p]||(i==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(Zd[p]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):i!=="visible"&&i!=="collapsed"&&i!=="hidden"?(Zd[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',i)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(Zd[p]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',i)));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&d!==void 0&&d!==null&&d!==!1)if(aa(d)){for(p=0;p<d.length;p++)if(!ly(d[p],p))break e}else if(p=fe(d),typeof p=="function"){if(p=p.call(d))for(var y=p.next(),S=0;!y.done;y=p.next()){if(!ly(y.value,S))break e;S++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r);if(pa(e,t,d,a),st?(Ro(),d=sc):d=0,!n&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&av(e,a,t);else if(e.tag===19)av(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Vu(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),lp(t,!1,r,a,i,d);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Vu(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}lp(t,!0,a,null,i,d);break;case"together":lp(t,!1,null,null,void 0,d);break;default:t.memoizedState=null}return t.child}function Ps(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ma=-1,er|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ri(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=Fs(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Fs(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function cp(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Eu(e)))}function XE(e,t,a){switch(t.tag){case 3:Ne(t,t.stateNode.containerInfo),Co(t,Qt,e.memoizedState.cache),xr();break;case 27:case 5:he(t);break;case 4:Ne(t,t.stateNode.containerInfo);break;case 10:Co(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var n=t.stateNode;n.effectDuration=-0,n.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Em(t),null;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(jo(t),t.flags|=128,null):(a&t.child.childLanes)!==0?tv(e,t,a):(jo(t),e=Ps(e,t,a),e!==null?e.sibling:null);jo(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(ri(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return nv(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),X(Gt,Gt.current,t),n)break;return null;case 22:return t.lanes=0,Zy(e,t,a,t.pendingProps);case 24:Co(t,Qt,e.memoizedState.cache)}return Ps(e,t,a)}function up(e,t,a){if(t._debugNeedsRemount&&e!==null){a=rm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var n=t.return;if(n===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===n.child)n.child=a;else{var r=n.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=a}return t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Jt=!0;else{if(!cp(e,a)&&(t.flags&128)===0)return Jt=!1,XE(e,t,a);Jt=(e.flags&131072)!==0}else Jt=!1,(n=st)&&(Ro(),n=(t.flags&1048576)!==0),n&&(n=t.index,Ro(),Yb(t,sc,n));switch(t.lanes=0,t.tag){case 16:e:if(n=t.pendingProps,e=ko(t.elementType),t.type=e,typeof e=="function")om(e)?(n=Rr(e,n),t.tag=1,t.type=e=br(e),t=Wy(null,t,e,n,a)):(t.tag=0,np(t,e),t.type=e=br(e),t=ap(null,t,e,n,a));else{if(e!=null){if(r=e.$$typeof,r===Il){t.tag=11,t.type=e=sm(e),t=Fy(null,t,e,n,a);break e}else if(r===bd){t.tag=14,t=Xy(null,t,e,n,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===on&&(t=" Did you wrap a component in React.lazy() more than once?"),a=_(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return ap(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=Rr(n,t.pendingProps),Wy(e,t,n,r,a);case 3:e:{if(Ne(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");n=t.pendingProps;var i=t.memoizedState;r=i.element,Nm(e,t),Dl(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Co(t,Qt,n),n!==i.cache&&pm(t,[Qt],a,!0),El(),n=d.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=ev(e,t,n,a);break e}else if(n!==r){r=Wa(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),yl(r),t=ev(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ut=sn(e.firstChild),ba=t,st=!0,Fo=null,js=!1,ln=null,_n=!0,a=gN(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(xr(),n===r){t=Ps(e,t,a);break e}pa(e,t,n,a)}t=t.child}return t;case 26:return Pu(e,t),e===null?(a=C0(t.type,null,t.pendingProps,null))?t.memoizedState=a:st||(a=t.type,e=t.pendingProps,n=ae(Ho.current),n=id(n).createElement(a),n[ga]=t,n[Oa]=e,ha(n,a,e),Ce(n),t.stateNode=n):t.memoizedState=C0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&st&&(n=ae(Ho.current),r=ie(),n=t.stateNode=R0(t.type,t.pendingProps,n,r,!1),js||(r=p0(n,t.type,t.pendingProps,r),r!==null&&(vr(t,0).serverProps=r)),ba=t,_n=!0,r=Ut,zo(t.type)?(vg=r,Ut=sn(n.firstChild)):Ut=r),pa(e,t,t.pendingProps.children,a),Pu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&st&&(i=ie(),n=Zf(t.type,i.ancestorInfo),r=Ut,(d=!r)||(d=V4(r,t.type,t.pendingProps,_n),d!==null?(t.stateNode=d,js||(i=p0(d,t.type,t.pendingProps,i),i!==null&&(vr(t,0).serverProps=i)),ba=t,Ut=sn(d.firstChild),_n=!1,i=!0):i=!1,d=!i),d&&(n&&Su(t,r),_o(t))),he(t),r=t.type,i=t.pendingProps,d=e!==null?e.memoizedProps:null,n=i.children,Vp(r,i)?n=null:d!==null&&Vp(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Rm(e,t,HE,null,null,a),zc._currentValue=r),Pu(e,t),pa(e,t,n,a),t.child;case 6:return e===null&&st&&(a=t.pendingProps,e=ie(),n=e.ancestorInfo.current,a=n!=null?fu(a,n.tag,e.ancestorInfo.implicitRootScope):!0,e=Ut,(n=!e)||(n=M4(e,t.pendingProps,_n),n!==null?(t.stateNode=n,ba=t,Ut=null,n=!0):n=!1,n=!n),n&&(a&&Su(t,e),_o(t))),null;case 13:return tv(e,t,a);case 4:return Ne(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Br(t,null,n,a):pa(e,t,n,a),t.child;case 11:return Fy(e,t,t.type,t.pendingProps,a);case 7:return pa(e,t,t.pendingProps,a),t.child;case 8:return pa(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,n=t.stateNode,n.effectDuration=-0,n.passiveEffectDuration=-0,pa(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.type,r=t.pendingProps,i=r.value,"value"in r||YN||(YN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Co(t,n,i),pa(e,t,r.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,typeof n!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Nr(t),r=jt(r),n=zh(n,r,void 0),t.flags|=1,pa(e,t,n,a),t.child;case 14:return Xy(e,t,t.type,t.pendingProps,a);case 15:return Qy(e,t,t.type,t.pendingProps,a);case 19:return nv(e,t,a);case 31:return FE(e,t,a);case 22:return Zy(e,t,a,t.pendingProps);case 24:return Nr(t),n=jt(Qt),e===null?(r=ym(),r===null&&(r=St,i=hm(),r.pooledCache=i,Sr(i),i!==null&&(r.pooledCacheLanes|=a),r=i),t.memoizedState={parent:n,cache:r},xm(t),Co(t,Qt,r)):((e.lanes&a)!==0&&(Nm(e,t),Dl(t,null,null,a),El()),r=e.memoizedState,i=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Co(t,Qt,n)):(n=i.cache,Co(t,Qt,n),n!==r.cache&&pm(t,[Qt],a,!0))),pa(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Js(e){e.flags|=4}function dp(e,t,a,n,r){if((t=(e.mode&pR)!==Le)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Mv())e.flags|=8192;else throw Hr=qd,Hh}else e.flags&=-16777217}function sv(e,t){if(t.type!=="stylesheet"||(t.state.loading&jn)!==Jr)e.flags&=-16777217;else if(e.flags|=16777216,!O0(t))if(Mv())e.flags|=8192;else throw Hr=qd,Hh}function Ku(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bn():536870912,e.lanes|=t,Ir|=t)}function Ul(e,t){if(!st)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)if((e.mode&Xe)!==Le){for(var r=e.selfBaseDuration,i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,r+=i.treeBaseDuration,i=i.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Xe)!==Le){r=e.actualDuration,i=e.selfBaseDuration;for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,n|=d.subtreeFlags,n|=d.flags,r+=d.actualDuration,i+=d.treeBaseDuration,d=d.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function QE(e,t,a){var n=t.pendingProps;switch(um(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return Et(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qs(Qt,t),ee(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?(fm(),Js(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,dm())),Et(t),null;case 26:var r=t.type,i=t.memoizedState;return e===null?(Js(t),i!==null?(Et(t),sv(t,i)):(Et(t),dp(t,r,null,n,a))):i?i!==e.memoizedState?(Js(t),Et(t),sv(t,i)):(Et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Js(t),Et(t),dp(t,r,e,n,a)),null;case 27:if(W(t),a=ae(Ho.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Js(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Et(t),null}e=ie(),oi(t)?Fb(t):(e=R0(r,n,a,e,!0),t.stateNode=e,Js(t))}return Et(t),null;case 5:if(W(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Js(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Et(t),null}var d=ie();if(oi(t))Fb(t);else{switch(i=ae(Ho.current),Zf(r,d.ancestorInfo),d=d.context,i=id(i),d){case tl:i=i.createElementNS(Di,r);break;case gf:i=i.createElementNS(Ed,r);break;default:switch(r){case"svg":i=i.createElementNS(Di,r);break;case"math":i=i.createElementNS(Ed,r);break;case"script":i=i.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(i)!=="[object HTMLUnknownElement]"||Zn.call(f1,r)||(f1[r]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)))}}i[ga]=t,i[Oa]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=i;e:switch(ha(i,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Js(t)}}return Et(t),dp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Js(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=ae(Ho.current),a=ie(),oi(t)){if(e=t.stateNode,a=t.memoizedProps,r=!js,n=null,i=ba,i!==null)switch(i.tag){case 3:r&&(r=E0(e,a,n),r!==null&&(vr(t,0).serverProps=r));break;case 27:case 5:n=i.memoizedProps,r&&(r=E0(e,a,n),r!==null&&(vr(t,0).serverProps=r))}e[ga]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||c0(e.nodeValue,a)),e||_o(t,!0)}else r=a.ancestorInfo.current,r!=null&&fu(n,r.tag,a.ancestorInfo.implicitRootScope),e=id(e).createTextNode(n),e[ga]=t,t.stateNode=e}return Et(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=oi(t),a!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[ga]=t,Et(t),(t.mode&Xe)!==Le&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else fm(),xr(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Et(t),(t.mode&Xe)!==Le&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=dm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Et(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=n,i=oi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");i[ga]=t,Et(t),(t.mode&Xe)!==Le&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else fm(),xr(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,Et(t),(t.mode&Xe)!==Le&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=dm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&Xe)!==Le&&Nl(t),t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ku(t,t.updateQueue),Et(t),(t.mode&Xe)!==Le&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return ee(t),e===null&&Cp(t.stateNode.containerInfo),Et(t),null;case 10:return Qs(t.type,t),Et(t),null;case 19:if(P(Gt,t),n=t.memoizedState,n===null)return Et(t),null;if(r=(t.flags&128)!==0,i=n.rendering,i===null)if(r)Ul(n,!1);else{if(Vt!==po||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Vu(e),i!==null){for(t.flags|=128,Ul(n,!1),e=i.updateQueue,t.updateQueue=e,Ku(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Bb(a,e),a=a.sibling;return X(Gt,Gt.current&qi|vc,t),st&&Xs(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ca()>af&&(t.flags|=128,r=!0,Ul(n,!1),t.lanes=4194304)}else{if(!r)if(e=Vu(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ku(t,e),Ul(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!st)return Et(t),null}else 2*ca()-n.renderingStartTime>af&&a!==536870912&&(t.flags|=128,r=!0,Ul(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ca(),e.sibling=null,a=Gt.current,a=r?a&qi|vc:a&qi,X(Gt,a,t),st&&Xs(t,n.treeForkCount),e):(Et(t),null);case 22:case 23:return an(t),wm(t),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),a=t.updateQueue,a!==null&&Ku(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&P(zr,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Qs(Qt,t),Et(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ZE(e,t){switch(um(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==Le&&Nl(t),t):null;case 3:return Qs(Qt,t),ee(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return W(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==Le&&Nl(t),t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==Le&&Nl(t),t):null;case 19:return P(Gt,t),null;case 4:return ee(t),null;case 10:return Qs(t.type,t),null;case 22:case 23:return an(t),wm(t),e!==null&&P(zr,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==Le&&Nl(t),t):null;case 24:return Qs(Qt,t),null;case 25:return null;default:return null}}function ov(e,t){switch(um(t),t.tag){case 3:Qs(Qt,t),ee(t);break;case 26:case 27:case 5:W(t);break;case 4:ee(t);break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:P(Gt,t);break;case 10:Qs(t.type,t);break;case 22:case 23:an(t),wm(t),e!==null&&P(zr,t);break;case 24:Qs(Qt,t)}}function vs(e){return(e.mode&Xe)!==Le}function rv(e,t){vs(e)?(ys(),Tl(t,e),bs()):Tl(t,e)}function fp(e,t,a){vs(e)?(ys(),di(a,e,t),bs()):di(a,e,t)}function Tl(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e&&(n=void 0,(e&za)!==Id&&(Ki=!0),n=xe(t,xR,a),(e&za)!==Id&&(Ki=!1),n!==void 0&&typeof n!="function")){var i=void 0;i=(a.tag&un)!==0?"useLayoutEffect":(a.tag&za)!==0?"useInsertionEffect":"useEffect";var d=void 0;d=n===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof n.then=="function"?`
|
|
146
|
+
|
|
147
|
+
It looks like you wrote `+i+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
148
|
+
|
|
149
|
+
`+i+`(() => {
|
|
150
|
+
async function fetchData() {
|
|
151
|
+
// You can await here
|
|
152
|
+
const response = await MyAPI.getData(someId);
|
|
153
|
+
// ...
|
|
154
|
+
}
|
|
155
|
+
fetchData();
|
|
156
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
157
|
+
|
|
158
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+n,xe(t,function(p,y){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,y)},i,d)}a=a.next}while(a!==r)}}catch(p){gt(t,t.return,p)}}function di(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){var d=n.inst,p=d.destroy;p!==void 0&&(d.destroy=void 0,(e&za)!==Id&&(Ki=!0),r=t,xe(r,NR,r,a,p),(e&za)!==Id&&(Ki=!1))}n=n.next}while(n!==i)}}catch(y){gt(t,t.return,y)}}function iv(e,t){vs(e)?(ys(),Tl(t,e),bs()):Tl(t,e)}function mp(e,t,a){vs(e)?(ys(),di(a,e,t),bs()):di(a,e,t)}function lv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Xi||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{xe(e,uy,t,a)}catch(n){gt(e,e.return,n)}}}function PE(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function JE(e,t){var a=t.memoizedProps,n=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Xi||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{var r=Rr(e.type,a),i=xe(e,PE,t,r,n);a=qN,i!==void 0||a.has(e.type)||(a.add(e.type),xe(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",H(e))})),t.__reactInternalSnapshotBeforeUpdate=i}catch(d){gt(e,e.return,d)}}function cv(e,t,a){a.props=Rr(e.type,e.memoizedProps),a.state=e.memoizedState,vs(e)?(ys(),xe(e,lN,e,t,a),bs()):xe(e,lN,e,t,a)}function KE(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t=="function")if(vs(e))try{ys(),e.refCleanup=t(a)}finally{bs()}else e.refCleanup=t(a);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",H(e)),t.current=a}}function jl(e,t){try{xe(e,KE,e)}catch(a){gt(e,t,a)}}function xs(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{if(vs(e))try{ys(),xe(e,n)}finally{bs(e)}else xe(e,n)}catch(r){gt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(vs(e))try{ys(),xe(e,a,null)}finally{bs(e)}else xe(e,a,null)}catch(r){gt(e,t,r)}else a.current=null}function uv(e,t,a,n){var r=e.memoizedProps,i=r.id,d=r.onCommit;r=r.onRender,t=t===null?"mount":"update",Hd&&(t="nested-update"),typeof r=="function"&&r(i,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof d=="function"&&d(i,t,n,a)}function WE(e,t,a,n){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",Hd&&(t="nested-update"),typeof r=="function"&&r(e,t,n,a)}function dv(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{xe(e,w4,n,t,a,e)}catch(r){gt(e,e.return,r)}}function pp(e,t,a){try{xe(e,D4,e.stateNode,e.type,a,t,e)}catch(n){gt(e,e.return,n)}}function fv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zo(e.type)||e.tag===4}function hp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fv(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&&zo(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gp(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(v0(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(v0(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Is));else if(n!==4&&(n===27&&zo(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(gp(e,t,a),e=e.sibling;e!==null;)gp(e,t,a),e=e.sibling}function Wu(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&zo(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Wu(e,t,a),e=e.sibling;e!==null;)Wu(e,t,a),e=e.sibling}function e4(e){for(var t,a=e.return;a!==null;){if(fv(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=hp(e),Wu(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(y0(a),t.flags&=-33),t=hp(e),Wu(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=hp(e),gp(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function mv(e){var t=e.stateNode,a=e.memoizedProps;try{xe(e,$4,e.type,a,t,e)}catch(n){gt(e,e.return,n)}}function pv(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function t4(e,t){if(e=e.containerInfo,gg=xf,e=Ub(e),Kf(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var d=0,p=-1,y=-1,S=0,A=0,V=e,U=null;t:for(;;){for(var Y;V!==a||r!==0&&V.nodeType!==3||(p=d+r),V!==i||n!==0&&V.nodeType!==3||(y=d+n),V.nodeType===3&&(d+=V.nodeValue.length),(Y=V.firstChild)!==null;)U=V,V=Y;for(;;){if(V===e)break t;if(U===a&&++S===r&&(p=d),U===i&&++A===n&&(y=d),(Y=V.nextSibling)!==null)break;V=U,U=V.parentNode}V=Y}a=p===-1||y===-1?null:{start:p,end:y}}else a=null}a=a||{start:0,end:0}}else a=null;for(bg={focusedElem:e,selectionRange:a},xf=!1,da=t;da!==null;)if(t=da,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,da=e;else for(;da!==null;){switch(e=t=da,a=e.alternate,r=e.flags,e.tag){case 0:if((r&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:(r&1024)!==0&&a!==null&&JE(e,a);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Mp(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,da=e;break}da=t.return}}function hv(e,t,a){var n=en(),r=ms(),i=hs(),d=gs(),p=a.flags;switch(a.tag){case 0:case 11:case 15:Ns(e,a),p&4&&rv(a,un|Un);break;case 1:if(Ns(e,a),p&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Xi||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(a)||"instance")),vs(a)?(ys(),xe(a,Lh,a,e),bs()):xe(a,Lh,a,e);else{var y=Rr(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Xi||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(a)||"instance")),vs(a)?(ys(),xe(a,oN,a,e,y,t,e.__reactInternalSnapshotBeforeUpdate),bs()):xe(a,oN,a,e,y,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&lv(a),p&512&&jl(a,a.return);break;case 3:if(t=Zs(),Ns(e,a),p&64&&(p=a.updateQueue,p!==null)){if(y=null,a.child!==null)switch(a.child.tag){case 27:case 5:y=a.child.stateNode;break;case 1:y=a.child.stateNode}try{xe(a,uy,p,y)}catch(A){gt(a,a.return,A)}}e.effectDuration+=Ru(t);break;case 27:t===null&&p&4&&mv(a);case 26:case 5:if(Ns(e,a),t===null){if(p&4)dv(a);else if(p&64){e=a.type,t=a.memoizedProps,y=a.stateNode;try{xe(a,E4,y,e,t,a)}catch(A){gt(a,a.return,A)}}}p&512&&jl(a,a.return);break;case 12:if(p&4){p=Zs(),Ns(e,a),e=a.stateNode,e.effectDuration+=xl(p);try{xe(a,uv,a,t,Xo,e.effectDuration)}catch(A){gt(a,a.return,A)}}else Ns(e,a);break;case 31:Ns(e,a),p&4&&yv(e,a);break;case 13:Ns(e,a),p&4&&vv(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=u4.bind(null,a),z4(e,p))));break;case 22:if(p=a.memoizedState!==null||mo,!p){t=t!==null&&t.memoizedState!==null||Kt,y=mo;var S=Kt;mo=p,(Kt=t)&&!S?(Ss(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Xe)!==Le&&0<=Ae&&0<=ze&&.05<ze-Ae&&gu(a,Ae,ze)):Ns(e,a),mo=y,Kt=S}break;case 30:break;default:Ns(e,a)}(a.mode&Xe)!==Le&&0<=Ae&&0<=ze&&((Lt||.05<At)&&ds(a,Ae,ze,At,Ot),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<ze-Ae&&(pv(a.return.alternate,a.return)||us(a,Ae,ze,"Mount"))),tn(n),ps(r),Ot=i,Lt=d}function gv(e){var t=e.alternate;t!==null&&(e.alternate=null,gv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&M(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ks(e,t,a){for(a=a.child;a!==null;)bv(e,t,a),a=a.sibling}function bv(e,t,a){if(Na&&typeof Na.onCommitFiberUnmount=="function")try{Na.onCommitFiberUnmount(wi,a)}catch(S){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",S))}var n=en(),r=ms(),i=hs(),d=gs();switch(a.tag){case 26:Kt||xs(a,t),Ks(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Kt||xs(a,t);var p=Wt,y=Fa;zo(a.type)&&(Wt=a.stateNode,Fa=!1),Ks(e,t,a),xe(a,$l,a.stateNode),Wt=p,Fa=y;break;case 5:Kt||xs(a,t);case 6:if(p=Wt,y=Fa,Wt=null,Ks(e,t,a),Wt=p,Fa=y,Wt!==null)if(Fa)try{xe(a,C4,Wt,a.stateNode)}catch(S){gt(a,t,S)}else try{xe(a,_4,Wt,a.stateNode)}catch(S){gt(a,t,S)}break;case 18:Wt!==null&&(Fa?(e=Wt,x0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),vi(e)):x0(Wt,a.stateNode));break;case 4:p=Wt,y=Fa,Wt=a.stateNode.containerInfo,Fa=!0,Ks(e,t,a),Wt=p,Fa=y;break;case 0:case 11:case 14:case 15:di(za,a,t),Kt||fp(a,t,un),Ks(e,t,a);break;case 1:Kt||(xs(a,t),p=a.stateNode,typeof p.componentWillUnmount=="function"&&cv(a,t,p)),Ks(e,t,a);break;case 21:Ks(e,t,a);break;case 22:Kt=(p=Kt)||a.memoizedState!==null,Ks(e,t,a),Kt=p;break;default:Ks(e,t,a)}(a.mode&Xe)!==Le&&0<=Ae&&0<=ze&&(Lt||.05<At)&&ds(a,Ae,ze,At,Ot),tn(n),ps(r),Ot=i,Lt=d}function yv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{xe(t,H4,e)}catch(a){gt(t,t.return,a)}}}function vv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{xe(t,B4,e)}catch(a){gt(t,t.return,a)}}function a4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new GN),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new GN),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function ed(e,t){var a=a4(e);t.forEach(function(n){if(!a.has(n)){if(a.add(n),ks)if(Qi!==null&&Zi!==null)Ml(Zi,Qi);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=d4.bind(null,e,n);n.then(r,r)}})}function Ga(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=e,i=t,d=a[n],p=en(),y=i;e:for(;y!==null;){switch(y.tag){case 27:if(zo(y.type)){Wt=y.stateNode,Fa=!1;break e}break;case 5:Wt=y.stateNode,Fa=!1;break e;case 3:case 4:Wt=y.stateNode.containerInfo,Fa=!0;break e}y=y.return}if(Wt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");bv(r,i,d),Wt=null,Fa=!1,(d.mode&Xe)!==Le&&0<=Ae&&0<=ze&&.05<ze-Ae&&us(d,Ae,ze,"Unmount"),tn(p),r=d,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xv(t,e),t=t.sibling}function xv(e,t){var a=en(),n=ms(),r=hs(),i=gs(),d=e.alternate,p=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ga(t,e),Ia(e),p&4&&(di(za|Un,e,e.return),Tl(za|Un,e),fp(e,e.return,un|Un));break;case 1:if(Ga(t,e),Ia(e),p&512&&(Kt||d===null||xs(d,d.return)),p&64&&mo&&(p=e.updateQueue,p!==null&&(d=p.callbacks,d!==null))){var y=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=y===null?d:y.concat(d)}break;case 26:if(y=Wn,Ga(t,e),Ia(e),p&512&&(Kt||d===null||xs(d,d.return)),p&4){var S=d!==null?d.memoizedState:null;if(p=e.memoizedState,d===null)if(p===null)if(e.stateNode===null){e:{p=e.type,d=e.memoizedProps,y=y.ownerDocument||y;t:switch(p){case"title":S=y.getElementsByTagName("title")[0],(!S||S[Ql]||S[ga]||S.namespaceURI===Di||S.hasAttribute("itemprop"))&&(S=y.createElement(p),y.head.insertBefore(S,y.querySelector("head > title"))),ha(S,p,d),S[ga]=e,Ce(S),p=S;break e;case"link":var A=T0("link","href",y).get(p+(d.href||""));if(A){for(var V=0;V<A.length;V++)if(S=A[V],S.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&S.getAttribute("rel")===(d.rel==null?null:d.rel)&&S.getAttribute("title")===(d.title==null?null:d.title)&&S.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){A.splice(V,1);break t}}S=y.createElement(p),ha(S,p,d),y.head.appendChild(S);break;case"meta":if(A=T0("meta","content",y).get(p+(d.content||""))){for(V=0;V<A.length;V++)if(S=A[V],qe(d.content,"content"),S.getAttribute("content")===(d.content==null?null:""+d.content)&&S.getAttribute("name")===(d.name==null?null:d.name)&&S.getAttribute("property")===(d.property==null?null:d.property)&&S.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&S.getAttribute("charset")===(d.charSet==null?null:d.charSet)){A.splice(V,1);break t}}S=y.createElement(p),ha(S,p,d),y.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}S[ga]=e,Ce(S),p=S}e.stateNode=p}else j0(y,e.type,e.stateNode);else e.stateNode=U0(y,p,e.memoizedProps);else S!==p?(S===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):S.count--,p===null?j0(y,e.type,e.stateNode):U0(y,p,e.memoizedProps)):p===null&&e.stateNode!==null&&pp(e,e.memoizedProps,d.memoizedProps)}break;case 27:Ga(t,e),Ia(e),p&512&&(Kt||d===null||xs(d,d.return)),d!==null&&p&4&&pp(e,e.memoizedProps,d.memoizedProps);break;case 5:if(Ga(t,e),Ia(e),p&512&&(Kt||d===null||xs(d,d.return)),e.flags&32){y=e.stateNode;try{xe(e,y0,y)}catch(ye){gt(e,e.return,ye)}}p&4&&e.stateNode!=null&&(y=e.memoizedProps,pp(e,y,d!==null?d.memoizedProps:y)),p&1024&&(Jh=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ga(t,e),Ia(e),p&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");p=e.memoizedProps,d=d!==null?d.memoizedProps:p,y=e.stateNode;try{xe(e,R4,y,d,p)}catch(ye){gt(e,e.return,ye)}}break;case 3:if(y=Zs(),bf=null,S=Wn,Wn=ld(t.containerInfo),Ga(t,e),Wn=S,Ia(e),p&4&&d!==null&&d.memoizedState.isDehydrated)try{xe(e,L4,t.containerInfo)}catch(ye){gt(e,e.return,ye)}Jh&&(Jh=!1,Nv(e)),t.effectDuration+=Ru(y);break;case 4:p=Wn,Wn=ld(e.stateNode.containerInfo),Ga(t,e),Ia(e),Wn=p;break;case 12:p=Zs(),Ga(t,e),Ia(e),e.stateNode.effectDuration+=xl(p);break;case 31:Ga(t,e),Ia(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,ed(e,p)));break;case 13:Ga(t,e),Ia(e),e.child.flags&8192&&e.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(tf=ca()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,ed(e,p)));break;case 22:y=e.memoizedState!==null;var U=d!==null&&d.memoizedState!==null,Y=mo,de=Kt;if(mo=Y||y,Kt=de||U,Ga(t,e),Kt=de,mo=Y,U&&!y&&!Y&&!de&&(e.mode&Xe)!==Le&&0<=Ae&&0<=ze&&.05<ze-Ae&&gu(e,Ae,ze),Ia(e),p&8192)e:for(t=e.stateNode,t._visibility=y?t._visibility&~nc:t._visibility|nc,!y||d===null||U||mo||Kt||(_r(e),(e.mode&Xe)!==Le&&0<=Ae&&0<=ze&&.05<ze-Ae&&us(e,Ae,ze,"Disconnect")),d=null,t=e;;){if(t.tag===5||t.tag===26){if(d===null){U=d=t;try{S=U.stateNode,y?xe(U,U4,S):xe(U,O4,U.stateNode,U.memoizedProps)}catch(ye){gt(U,U.return,ye)}}}else if(t.tag===6){if(d===null){U=t;try{A=U.stateNode,y?xe(U,T4,A):xe(U,A4,A,U.memoizedProps)}catch(ye){gt(U,U.return,ye)}}}else if(t.tag===18){if(d===null){U=t;try{V=U.stateNode,y?xe(U,k4,V):xe(U,j4,U.stateNode)}catch(ye){gt(U,U.return,ye)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;d===t&&(d=null),t=t.return}d===t&&(d=null),t.sibling.return=t.return,t=t.sibling}p&4&&(p=e.updateQueue,p!==null&&(d=p.retryQueue,d!==null&&(p.retryQueue=null,ed(e,d))));break;case 19:Ga(t,e),Ia(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,ed(e,p)));break;case 30:break;case 21:break;default:Ga(t,e),Ia(e)}(e.mode&Xe)!==Le&&0<=Ae&&0<=ze&&((Lt||.05<At)&&ds(e,Ae,ze,At,Ot),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<ze-Ae&&(pv(e.return.alternate,e.return)||us(e,Ae,ze,"Mount"))),tn(a),ps(n),Ot=r,Lt=i}function Ia(e){var t=e.flags;if(t&2){try{xe(e,e4,e)}catch(a){gt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ns(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hv(e,t.alternate,t),t=t.sibling}function Sv(e){var t=en(),a=ms(),n=hs(),r=gs();switch(e.tag){case 0:case 11:case 14:case 15:fp(e,e.return,un),_r(e);break;case 1:xs(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&cv(e,e.return,i),_r(e);break;case 27:xe(e,$l,e.stateNode);case 26:case 5:xs(e,e.return),_r(e);break;case 22:e.memoizedState===null&&_r(e);break;case 30:_r(e);break;default:_r(e)}(e.mode&Xe)!==Le&&0<=Ae&&0<=ze&&(Lt||.05<At)&&ds(e,Ae,ze,At,Ot),tn(t),ps(a),Ot=n,Lt=r}function _r(e){for(e=e.child;e!==null;)Sv(e),e=e.sibling}function wv(e,t,a,n){var r=en(),i=ms(),d=hs(),p=gs(),y=a.flags;switch(a.tag){case 0:case 11:case 15:Ss(e,a,n),rv(a,un);break;case 1:if(Ss(e,a,n),t=a.stateNode,typeof t.componentDidMount=="function"&&xe(a,Lh,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{xe(a,LE,t,e)}catch(S){gt(a,a.return,S)}}n&&y&64&&lv(a),jl(a,a.return);break;case 27:mv(a);case 26:case 5:Ss(e,a,n),n&&t===null&&y&4&&dv(a),jl(a,a.return);break;case 12:if(n&&y&4){y=Zs(),Ss(e,a,n),n=a.stateNode,n.effectDuration+=xl(y);try{xe(a,uv,a,t,Xo,n.effectDuration)}catch(S){gt(a,a.return,S)}}else Ss(e,a,n);break;case 31:Ss(e,a,n),n&&y&4&&yv(e,a);break;case 13:Ss(e,a,n),n&&y&4&&vv(e,a);break;case 22:a.memoizedState===null&&Ss(e,a,n),jl(a,a.return);break;case 30:break;default:Ss(e,a,n)}(a.mode&Xe)!==Le&&0<=Ae&&0<=ze&&(Lt||.05<At)&&ds(a,Ae,ze,At,Ot),tn(r),ps(i),Ot=d,Lt=p}function Ss(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)wv(e,t.alternate,t,a),t=t.sibling}function bp(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&Sr(e),a!=null&&vl(a))}function yp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Sr(t),e!=null&&vl(e))}function Qn(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var i=t.sibling;Ev(e,t,a,n,i!==null?i.actualStartTime:r),t=i}}function Ev(e,t,a,n,r){var i=en(),d=ms(),p=hs(),y=gs(),S=qo,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Xe)!==Le&&0<t.actualStartTime&&(t.flags&1)!==0&&bu(t,t.actualStartTime,r,na,a),Qn(e,t,a,n,r),A&2048&&iv(t,La|Un);break;case 1:(t.mode&Xe)!==Le&&0<t.actualStartTime&&((t.flags&128)!==0?em(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&bu(t,t.actualStartTime,r,na,a)),Qn(e,t,a,n,r);break;case 3:var V=Zs(),U=na;na=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Qn(e,t,a,n,r),na=U,A&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),n=t.memoizedState.cache,n!==a&&(Sr(n),a!=null&&vl(a))),e.passiveEffectDuration+=Ru(V);break;case 12:if(A&2048){A=Zs(),Qn(e,t,a,n,r),e=t.stateNode,e.passiveEffectDuration+=xl(A);try{xe(t,WE,t,t.alternate,Xo,e.passiveEffectDuration)}catch(Y){gt(t,t.return,Y)}}else Qn(e,t,a,n,r);break;case 31:A=na,V=t.alternate!==null?t.alternate.memoizedState:null,U=t.memoizedState,V!==null&&U===null?(U=t.deletions,U!==null&&0<U.length&&U[0].tag===18?(na=!1,V=V.hydrationErrors,V!==null&&em(t,t.actualStartTime,r,V)):na=!0):na=!1,Qn(e,t,a,n,r),na=A;break;case 13:A=na,V=t.alternate!==null?t.alternate.memoizedState:null,U=t.memoizedState,V===null||V.dehydrated===null||U!==null&&U.dehydrated!==null?na=!1:(U=t.deletions,U!==null&&0<U.length&&U[0].tag===18?(na=!1,V=V.hydrationErrors,V!==null&&em(t,t.actualStartTime,r,V)):na=!0),Qn(e,t,a,n,r),na=A;break;case 23:break;case 22:U=t.stateNode,V=t.alternate,t.memoizedState!==null?U._visibility&ao?Qn(e,t,a,n,r):Ol(e,t,a,n,r):U._visibility&ao?Qn(e,t,a,n,r):(U._visibility|=ao,fi(e,t,a,n,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&Xe)===Le||na||(e=t.actualStartTime,0<=e&&.05<r-e&&gu(t,e,r),0<=Ae&&0<=ze&&.05<ze-Ae&&gu(t,Ae,ze))),A&2048&&bp(V,t);break;case 24:Qn(e,t,a,n,r),A&2048&&yp(t.alternate,t);break;default:Qn(e,t,a,n,r)}(t.mode&Xe)!==Le&&((e=!na&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<r-a&&us(t,a,r,"Mount")),0<=Ae&&0<=ze&&((Lt||.05<At)&&ds(t,Ae,ze,At,Ot),e&&.05<ze-Ae&&us(t,Ae,ze,"Mount"))),tn(i),ps(d),Ot=p,Lt=y,qo=S}function fi(e,t,a,n,r,i){for(r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var d=t.sibling;Dv(e,t,a,n,r,d!==null?d.actualStartTime:i),t=d}}function Dv(e,t,a,n,r,i){var d=en(),p=ms(),y=hs(),S=gs(),A=qo;r&&(t.mode&Xe)!==Le&&0<t.actualStartTime&&(t.flags&1)!==0&&bu(t,t.actualStartTime,i,na,a);var V=t.flags;switch(t.tag){case 0:case 11:case 15:fi(e,t,a,n,r,i),iv(t,La);break;case 23:break;case 22:var U=t.stateNode;t.memoizedState!==null?U._visibility&ao?fi(e,t,a,n,r,i):Ol(e,t,a,n,i):(U._visibility|=ao,fi(e,t,a,n,r,i)),r&&V&2048&&bp(t.alternate,t);break;case 24:fi(e,t,a,n,r,i),r&&V&2048&&yp(t.alternate,t);break;default:fi(e,t,a,n,r,i)}(t.mode&Xe)!==Le&&0<=Ae&&0<=ze&&(Lt||.05<At)&&ds(t,Ae,ze,At,Ot),tn(d),ps(p),Ot=y,Lt=S,qo=A}function Ol(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var i=t.child;i!==null;){t=i.sibling;var d=e,p=a,y=n,S=t!==null?t.actualStartTime:r,A=qo;(i.mode&Xe)!==Le&&0<i.actualStartTime&&(i.flags&1)!==0&&bu(i,i.actualStartTime,S,na,p);var V=i.flags;switch(i.tag){case 22:Ol(d,i,p,y,S),V&2048&&bp(i.alternate,i);break;case 24:Ol(d,i,p,y,S),V&2048&&yp(i.alternate,i);break;default:Ol(d,i,p,y,S)}qo=A,i=t}}function mi(e,t,a){if(e.subtreeFlags&wc)for(e=e.child;e!==null;)Rv(e,t,a),e=e.sibling}function Rv(e,t,a){switch(e.tag){case 26:mi(e,t,a),e.flags&wc&&e.memoizedState!==null&&G4(a,Wn,e.memoizedState,e.memoizedProps);break;case 5:mi(e,t,a);break;case 3:case 4:var n=Wn;Wn=ld(e.stateNode.containerInfo),mi(e,t,a),Wn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=wc,wc=16777216,mi(e,t,a),wc=n):mi(e,t,a));break;default:mi(e,t,a)}}function _v(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Al(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],r=en();da=n,Uv(n,e),(n.mode&Xe)!==Le&&0<=Ae&&0<=ze&&.05<ze-Ae&&us(n,Ae,ze,"Unmount"),tn(r)}_v(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cv(e),e=e.sibling}function Cv(e){var t=en(),a=ms(),n=hs(),r=gs();switch(e.tag){case 0:case 11:case 15:Al(e),e.flags&2048&&mp(e,e.return,La|Un);break;case 3:var i=Zs();Al(e),e.stateNode.passiveEffectDuration+=Ru(i);break;case 12:i=Zs(),Al(e),e.stateNode.passiveEffectDuration+=xl(i);break;case 22:i=e.stateNode,e.memoizedState!==null&&i._visibility&ao&&(e.return===null||e.return.tag!==13)?(i._visibility&=~ao,td(e),(e.mode&Xe)!==Le&&0<=Ae&&0<=ze&&.05<ze-Ae&&us(e,Ae,ze,"Disconnect")):Al(e);break;default:Al(e)}(e.mode&Xe)!==Le&&0<=Ae&&0<=ze&&(Lt||.05<At)&&ds(e,Ae,ze,At,Ot),tn(t),ps(a),Lt=r,Ot=n}function td(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],r=en();da=n,Uv(n,e),(n.mode&Xe)!==Le&&0<=Ae&&0<=ze&&.05<ze-Ae&&us(n,Ae,ze,"Unmount"),tn(r)}_v(e)}for(e=e.child;e!==null;)kv(e),e=e.sibling}function kv(e){var t=en(),a=ms(),n=hs(),r=gs();switch(e.tag){case 0:case 11:case 15:mp(e,e.return,La),td(e);break;case 22:var i=e.stateNode;i._visibility&ao&&(i._visibility&=~ao,td(e));break;default:td(e)}(e.mode&Xe)!==Le&&0<=Ae&&0<=ze&&(Lt||.05<At)&&ds(e,Ae,ze,At,Ot),tn(t),ps(a),Lt=r,Ot=n}function Uv(e,t){for(;da!==null;){var a=da,n=a,r=t,i=en(),d=ms(),p=hs(),y=gs();switch(n.tag){case 0:case 11:case 15:mp(n,r,La);break;case 23:case 22:n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool,r!=null&&Sr(r));break;case 24:vl(n.memoizedState.cache)}if((n.mode&Xe)!==Le&&0<=Ae&&0<=ze&&(Lt||.05<At)&&ds(n,Ae,ze,At,Ot),tn(i),ps(d),Lt=y,Ot=p,n=a.child,n!==null)n.return=a,da=n;else e:for(a=e;da!==null;){if(n=da,i=n.sibling,d=n.return,gv(n),n===a){da=null;break e}if(i!==null){i.return=d,da=i;break e}da=d}}}function n4(){RR.forEach(function(e){return e()})}function Tv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||F.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function nn(e){if((dt&sa)!==fa&&Ze!==0)return Ze&-Ze;var t=F.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Rp()):$n()}function jv(){if(Qa===0)if((Ze&536870912)===0||st){var e=xd;xd<<=1,(xd&3932160)===0&&(xd=262144),Qa=e}else Qa=536870912;return e=cn.current,e!==null&&(e.flags|=32),Qa}function zt(e,t,a){if(Ki&&console.error("useInsertionEffect must not schedule updates."),lg&&(of=!0),(e===St&&(vt===qr||vt===Gr)||e.cancelPendingCommit!==null)&&(hi(e,0),Vo(e,Ze,Qa,!1)),bn(e,a),(dt&sa)!==fa&&e===St){if(_s)switch(t.tag){case 0:case 11:case 15:e=Pe&&H(Pe)||"Unknown",o1.has(e)||(o1.add(e),t=H(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:s1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),s1=!0)}}else ks&&Bs(e,t,a),m4(t),e===St&&((dt&sa)===fa&&(tr|=a),Vt===Ko&&Vo(e,Ze,Qa,!1)),ws(e)}function Ov(e,t,a){if((dt&(sa|dn))!==fa)throw Error("Should not already be working.");if(Ze!==0&&Pe!==null){var n=Pe,r=ca();switch(Jx){case Rc:case qr:var i=cc;kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Suspended",i,r,Sn,void 0,"primary-light")):console.timeStamp("Suspended",i,r,Sn,void 0,"primary-light"));break;case Gr:i=cc,kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Action",i,r,Sn,void 0,"primary-light")):console.timeStamp("Action",i,r,Sn,void 0,"primary-light"));break;default:kt&&(n=r-cc,3>n||console.timeStamp("Blocked",cc,r,Sn,void 0,5>n?"primary-light":10>n?"primary":100>n?"primary-dark":"error"))}}i=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||os(e,t))?o4(e,t):xp(e,t,!0);var d=a;do{if(i===po){Pi&&!a&&Vo(e,t,0,!1),t=vt,cc=Zt(),Jx=t;break}else{if(n=ca(),r=e.current.alternate,d&&!s4(r)){Fn(t),r=ua,i=n,!kt||i<=r||(Bt?Bt.run(console.timeStamp.bind(console,"Teared Render",r,i,ut,it,"error")):console.timeStamp("Teared Render",r,i,ut,it,"error")),Cr(t,n),i=xp(e,t,!1),d=!1;continue}if(i===Yr){if(d=t,e.errorRecoveryDisabledLanes&d)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){Fn(t),tm(ua,n,t,Bt),Cr(t,n),t=p;e:{n=e,i=d,d=Cc;var y=n.current.memoizedState.isDehydrated;if(y&&(hi(n,p).flags|=256),p=xp(n,p,!1),p!==Yr){if(eg&&!y){n.errorRecoveryDisabledLanes|=i,tr|=i,i=Ko;break e}n=Ha,Ha=d,n!==null&&(Ha===null?Ha=n:Ha.push.apply(Ha,n))}i=p}if(d=!1,i!==Yr)continue;n=ca()}}if(i===Dc){Fn(t),tm(ua,n,t,Bt),Cr(t,n),hi(e,0),Vo(e,t,0,!0);break}e:{switch(a=e,i){case po:case Dc:throw Error("Root did not complete. This is a bug in React.");case Ko:if((t&4194048)!==t)break;case Jd:Fn(t),Ob(ua,n,t,Bt),Cr(t,n),r=t,(r&127)!==0?Md=n:(r&4194048)!==0&&(zd=n),Vo(a,t,Qa,!Wo);break e;case Yr:Ha=null;break;case Pd:case IN:break;default:throw Error("Unknown root exit status.")}if(F.actQueue!==null)Np(a,r,t,Ha,kc,ef,Qa,tr,Ir,i,null,null,ua,n);else{if((t&62914560)===t&&(d=tf+QN-ca(),10<d)){if(Vo(a,t,Qa,!Wo),Hn(a,0,!0)!==0)break e;es=t,a.timeoutHandle=m1(Av.bind(null,a,r,Ha,kc,ef,t,Qa,tr,Ir,Wo,i,"Throttled",ua,n),d);break e}Av(a,r,Ha,kc,ef,t,Qa,tr,Ir,Wo,i,null,ua,n)}}}break}while(!0);ws(e)}function Av(e,t,a,n,r,i,d,p,y,S,A,V,U,Y){e.timeoutHandle=Pr;var de=t.subtreeFlags,ye=null;if((de&8192||(de&16785408)===16785408)&&(ye={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Is},Rv(t,i,ye),de=(i&62914560)===i?tf-ca():(i&4194048)===i?XN-ca():0,de=I4(ye,de),de!==null)){es=i,e.cancelPendingCommit=de(Np.bind(null,e,t,i,a,n,r,d,p,y,A,ye,ye.waitingForViewTransition?"Waiting for the previous Animation":0<ye.count?0<ye.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ye.imgCount===1?"Suspended on an Image":0<ye.imgCount?"Suspended on Images":null,U,Y)),Vo(e,i,d,!S);return}Np(e,t,i,a,n,r,d,p,y,A,ye,V,U,Y)}function s4(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],i=r.getSnapshot;r=r.value;try{if(!Va(i(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vo(e,t,a,n){t&=~tg,t&=~tr,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var i=31-ja(r),d=1<<i;n[i]=-1,r&=~d}a!==0&&Ca(e,a,t)}function pi(){return(dt&(sa|dn))===fa?(zl(0),!1):!0}function vp(){if(Pe!==null){if(vt===Xa)var e=Pe.return;else e=Pe,wu(),Um(e),$i=null,yc=0,e=Pe;for(;e!==null;)ov(e.alternate,e),e=e.return;Pe=null}}function Cr(e,t){(e&127)!==0&&(Or=t),(e&4194048)!==0&&(io=t),(e&62914560)!==0&&(Zx=t),(e&2080374784)!==0&&(Px=t)}function hi(e,t){kt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",it,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",it,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",it,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",it,"primary-light"));var a=ua;if(ua=Zt(),Ze!==0&&0<a){if(Fn(Ze),Vt===Pd||Vt===Ko)Ob(a,ua,t,Bt);else{var n=ua,r=Bt;if(kt&&!(n<=a)){var i=(t&738197653)===t?"tertiary-dark":"primary-dark",d=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,d,a,n,ut,it,i)):console.timeStamp(d,a,n,ut,it,i)}}Cr(Ze,ua)}if(a=Bt,Bt=null,(t&127)!==0){Bt=rc,r=0<=Os&&Os<Or?Or:Os,n=0<=Ar&&Ar<Or?Or:Ar,i=0<=n?n:0<=r?r:ua,0<=Md?(Fn(2),Ab(Md,i,t,a)):Ld&127,a=r;var p=n,y=ic,S=0<Li,A=Qo===oc,V=Qo===Vd;if(r=ua,n=rc,i=Oh,d=Ah,kt){if(ut="Blocking",0<a?a>r&&(a=r):a=r,0<p?p>a&&(p=a):p=a,y!==null&&a>p){var U=S?"secondary-light":"warning";n?n.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+y,p,a,ut,it,U)):console.timeStamp(S?"Consecutive":"Event: "+y,p,a,ut,it,U)}r>a&&(p=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=V?"Promise Resolved":A?"Cascading Update":5<r-a?"Update Blocked":"Update",V=[],d!=null&&V.push(["Component name",d]),i!=null&&V.push(["Method name",i]),a={start:a,end:r,detail:{devtools:{properties:V,track:ut,trackGroup:it,color:p}}},n?n.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}Os=-1.1,Qo=0,Ah=Oh=null,Md=-1.1,Li=Ar,Ar=-1.1,Or=Zt()}if((t&4194048)!==0&&(Bt=lc,r=0<=lo&&lo<io?io:lo,a=0<=Cn&&Cn<io?io:Cn,n=0<=Zo&&Zo<io?io:Zo,i=0<=n?n:0<=a?a:ua,0<=zd?(Fn(256),Ab(zd,i,t,Bt)):Ld&4194048,V=n,p=Vr,y=0<Po,S=Vh===Vd,i=ua,n=lc,d=Xx,A=Qx,kt&&(ut="Transition",0<a?a>i&&(a=i):a=i,0<r?r>a&&(r=a):r=a,0<V?V>r&&(V=r):V=r,r>V&&p!==null&&(U=y?"secondary-light":"warning",n?n.run(console.timeStamp.bind(console,y?"Consecutive":"Event: "+p,V,r,ut,it,U)):console.timeStamp(y?"Consecutive":"Event: "+p,V,r,ut,it,U)),a>r&&(n?n.run(console.timeStamp.bind(console,"Action",r,a,ut,it,"primary-dark")):console.timeStamp("Action",r,a,ut,it,"primary-dark")),i>a&&(r=S?"Promise Resolved":5<i-a?"Update Blocked":"Update",V=[],A!=null&&V.push(["Component name",A]),d!=null&&V.push(["Method name",d]),a={start:a,end:i,detail:{devtools:{properties:V,track:ut,trackGroup:it,color:"primary-light"}}},n?n.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),Cn=lo=-1.1,Vh=0,zd=-1.1,Po=Zo,Zo=-1.1,io=Zt()),(t&62914560)!==0&&(Ld&62914560)!==0&&(Fn(4194304),am(Zx,ua)),(t&2080374784)!==0&&(Ld&2080374784)!==0&&(Fn(268435456),am(Px,ua)),a=e.timeoutHandle,a!==Pr&&(e.timeoutHandle=Pr,HR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),es=0,vp(),St=e,Pe=a=Fs(e.current,null),Ze=t,vt=Xa,fn=null,Wo=!1,Pi=os(e,t),eg=!1,Vt=po,Ir=Qa=tg=tr=er=0,Ha=Cc=null,ef=!1,(t&8)!==0&&(t|=t&32),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=t;0<n;)r=31-ja(n),i=1<<r,t|=e[r],n&=~i;return Vs=t,yu(),e=$x(),1e3<e-Bx&&(F.recentlyCreatedOwnerStacks=0,Bx=e),Jn.discardPendingWarnings(),a}function Vv(e,t){$e=null,F.H=Sc,F.getCurrentStack=null,_s=!1,rn=null,t===Bi||t===Yd?(t=ay(),vt=Rc):t===Hh?(t=ay(),vt=FN):vt=t===Zh?Wh:t!==null&&typeof t=="object"&&typeof t.then=="function"?_c:Kd,fn=t;var a=Pe;a===null?(Vt=Dc,Qu(e,Wa(t,e.current))):a.mode&Xe&&bm(a)}function Mv(){var e=cn.current;return e===null?!0:(Ze&4194048)===Ze?kn===null:(Ze&62914560)===Ze||(Ze&536870912)!==0?e===kn:!1}function zv(){var e=F.H;return F.H=Sc,e===null?Sc:e}function Lv(){var e=F.A;return F.A=DR,e}function ad(e){Bt===null&&(Bt=e._debugTask==null?null:e._debugTask)}function nd(){Vt=Ko,Wo||(Ze&4194048)!==Ze&&cn.current!==null||(Pi=!0),(er&134217727)===0&&(tr&134217727)===0||St===null||Vo(St,Ze,Qa,!1)}function xp(e,t,a){var n=dt;dt|=sa;var r=zv(),i=Lv();if(St!==e||Ze!==t){if(ks){var d=e.memoizedUpdaters;0<d.size&&(Ml(e,Ze),d.clear()),ya(e,t)}kc=null,hi(e,t)}t=!1,d=Vt;e:do try{if(vt!==Xa&&Pe!==null){var p=Pe,y=fn;switch(vt){case Wh:vp(),d=Jd;break e;case Rc:case qr:case Gr:case _c:cn.current===null&&(t=!0);var S=vt;if(vt=Xa,fn=null,gi(e,p,y,S),a&&Pi){d=po;break e}break;default:S=vt,vt=Xa,fn=null,gi(e,p,y,S)}}Hv(),d=Vt;break}catch(A){Vv(e,A)}while(!0);return t&&e.shellSuspendCounter++,wu(),dt=n,F.H=r,F.A=i,Pe===null&&(St=null,Ze=0,yu()),d}function Hv(){for(;Pe!==null;)Bv(Pe)}function o4(e,t){var a=dt;dt|=sa;var n=zv(),r=Lv();if(St!==e||Ze!==t){if(ks){var i=e.memoizedUpdaters;0<i.size&&(Ml(e,Ze),i.clear()),ya(e,t)}kc=null,af=ca()+ZN,hi(e,t)}else Pi=os(e,t);e:do try{if(vt!==Xa&&Pe!==null)t:switch(t=Pe,i=fn,vt){case Kd:vt=Xa,fn=null,gi(e,t,i,Kd);break;case qr:case Gr:if(ey(i)){vt=Xa,fn=null,$v(t);break}t=function(){vt!==qr&&vt!==Gr||St!==e||(vt=Wd),ws(e)},i.then(t,t);break e;case Rc:vt=Wd;break e;case FN:vt=Kh;break e;case Wd:ey(i)?(vt=Xa,fn=null,$v(t)):(vt=Xa,fn=null,gi(e,t,i,Wd));break;case Kh:var d=null;switch(Pe.tag){case 26:d=Pe.memoizedState;case 5:case 27:var p=Pe;if(d?O0(d):p.stateNode.complete){vt=Xa,fn=null;var y=p.sibling;if(y!==null)Pe=y;else{var S=p.return;S!==null?(Pe=S,sd(S)):Pe=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}vt=Xa,fn=null,gi(e,t,i,Kh);break;case _c:vt=Xa,fn=null,gi(e,t,i,_c);break;case Wh:vp(),Vt=Jd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}F.actQueue!==null?Hv():r4();break}catch(A){Vv(e,A)}while(!0);return wu(),F.H=n,F.A=r,dt=a,Pe!==null?po:(St=null,Ze=0,yu(),Vt)}function r4(){for(;Pe!==null&&!oD();)Bv(Pe)}function Bv(e){var t=e.alternate;(e.mode&Xe)!==Le?(gm(e),t=xe(e,up,t,e,Vs),bm(e)):t=xe(e,up,t,e,Vs),e.memoizedProps=e.pendingProps,t===null?sd(e):Pe=t}function $v(e){var t=xe(e,i4,e);e.memoizedProps=e.pendingProps,t===null?sd(e):Pe=t}function i4(e){var t=e.alternate,a=(e.mode&Xe)!==Le;switch(a&&gm(e),e.tag){case 15:case 0:t=Ky(t,e,e.pendingProps,e.type,void 0,Ze);break;case 11:t=Ky(t,e,e.pendingProps,e.type.render,e.ref,Ze);break;case 5:Um(e);default:ov(t,e),e=Pe=Bb(e,Vs),t=up(t,e,Vs)}return a&&bm(e),t}function gi(e,t,a,n){wu(),Um(t),$i=null,yc=0;var r=t.return;try{if(IE(e,r,t,a,Ze)){Vt=Dc,Qu(e,Wa(a,e.current)),Pe=null;return}}catch(i){if(r!==null)throw Pe=r,i;Vt=Dc,Qu(e,Wa(a,e.current)),Pe=null;return}t.flags&32768?(st||n===Kd?e=!0:Pi||(Ze&536870912)!==0?e=!1:(Wo=e=!0,(n===qr||n===Gr||n===Rc||n===_c)&&(n=cn.current,n!==null&&n.tag===13&&(n.flags|=16384))),Yv(t,e)):sd(t)}function sd(e){var t=e;do{if((t.flags&32768)!==0){Yv(t,Wo);return}var a=t.alternate;if(e=t.return,gm(t),a=xe(t,QE,a,t,Vs),(t.mode&Xe)!==Le&&Zb(t),a!==null){Pe=a;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Vt===po&&(Vt=IN)}function Yv(e,t){do{var a=ZE(e.alternate,e);if(a!==null){a.flags&=32767,Pe=a;return}if((e.mode&Xe)!==Le){Zb(e),a=e.actualDuration;for(var n=e.child;n!==null;)a+=n.actualDuration,n=n.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Pe=e;return}Pe=e=a}while(e!==null);Vt=Jd,Pe=null}function Np(e,t,a,n,r,i,d,p,y,S,A,V,U,Y){e.cancelPendingCommit=null;do Vl();while(ea!==nr);if(Jn.flushLegacyContextWarning(),Jn.flushPendingUnsafeLifecycleWarnings(),(dt&(sa|dn))!==fa)throw Error("Should not already be working.");if(Fn(a),S===Yr?tm(U,Y,a,Bt):n!==null?jE(U,Y,a,n,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Bt):TE(U,Y,a,Bt),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(i=t.lanes|t.childLanes,i|=Ch,$a(e,a,i,d,p,y),e===St&&(Pe=St=null,Ze=0),Ji=t,sr=e,es=a,sg=i,rg=r,t1=n,og=Y,a1=V,ts=nf,n1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,f4(Si,function(){return Vc=window.event,ts===nf&&(ts=ng),Xv(),null})):(e.callbackNode=null,e.callbackPriority=0),ro=null,Xo=Zt(),V!==null&&OE(Y,Xo,V,Bt),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=F.T,F.T=null,r=bt.p,bt.p=Nn,d=dt,dt|=dn;try{t4(e,t,a)}finally{dt=d,bt.p=r,F.T=n}}ea=JN,qv(),Gv(),Iv()}}function qv(){if(ea===JN){ea=nr;var e=sr,t=Ji,a=es,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=F.T,F.T=null;var r=bt.p;bt.p=Nn;var i=dt;dt|=dn;try{Qi=a,Zi=e,_u(),xv(t,e),Zi=Qi=null,a=bg;var d=Ub(e.containerInfo),p=a.focusedElem,y=a.selectionRange;if(d!==p&&p&&p.ownerDocument&&kb(p.ownerDocument.documentElement,p)){if(y!==null&&Kf(p)){var S=y.start,A=y.end;if(A===void 0&&(A=S),"selectionStart"in p)p.selectionStart=S,p.selectionEnd=Math.min(A,p.value.length);else{var V=p.ownerDocument||document,U=V&&V.defaultView||window;if(U.getSelection){var Y=U.getSelection(),de=p.textContent.length,ye=Math.min(y.start,de),Dt=y.end===void 0?ye:Math.min(y.end,de);!Y.extend&&ye>Dt&&(d=Dt,Dt=ye,ye=d);var lt=Cb(p,ye),C=Cb(p,Dt);if(lt&&C&&(Y.rangeCount!==1||Y.anchorNode!==lt.node||Y.anchorOffset!==lt.offset||Y.focusNode!==C.node||Y.focusOffset!==C.offset)){var j=V.createRange();j.setStart(lt.node,lt.offset),Y.removeAllRanges(),ye>Dt?(Y.addRange(j),Y.extend(C.node,C.offset)):(j.setEnd(C.node,C.offset),Y.addRange(j))}}}}for(V=[],Y=p;Y=Y.parentNode;)Y.nodeType===1&&V.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<V.length;p++){var O=V[p];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}xf=!!gg,bg=gg=null}finally{dt=i,bt.p=r,F.T=n}}e.current=t,ea=KN}}function Gv(){if(ea===KN){ea=nr;var e=n1;if(e!==null){Xo=Zt();var t=oo,a=Xo;!kt||a<=t||console.timeStamp(e,t,a,ut,it,"secondary-light")}e=sr,t=Ji,a=es;var n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=F.T,F.T=null;var r=bt.p;bt.p=Nn;var i=dt;dt|=dn;try{Qi=a,Zi=e,_u(),hv(e,t.alternate,t),Zi=Qi=null}finally{dt=i,bt.p=r,F.T=n}}e=og,t=a1,oo=Zt(),e=t===null?e:Xo,t=oo,a=ts===ag,n=Bt,ro!==null?Vb(e,t,ro,!1,n):!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,ut,it,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,ut,it,a?"error":"secondary-dark")),ea=WN}}function Iv(){if(ea===e1||ea===WN){if(ea===e1){var e=oo;oo=Zt();var t=oo,a=ts===ag;!kt||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,ut,it,a?" error":"secondary-light"),ts!==ag&&(ts=PN)}ea=nr,rD(),e=sr;var n=Ji;t=es,a=t1;var r=n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;r?ea=sf:(ea=nr,Ji=sr=null,Fv(e,e.pendingLanes),Fr=0,Tc=null);var i=e.pendingLanes;if(i===0&&(ar=null),r||Jv(e),i=$s(t),n=n.stateNode,Na&&typeof Na.onCommitFiberRoot=="function")try{var d=(n.current.flags&128)===128;switch(i){case Nn:var p=rh;break;case Us:p=ih;break;case eo:p=Si;break;case Sd:p=lh;break;default:p=Si}Na.onCommitFiberRoot(wi,n,p,d)}catch(V){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",V))}if(ks&&e.memoizedUpdaters.clear(),n4(),a!==null){d=F.T,p=bt.p,bt.p=Nn,F.T=null;try{var y=e.onRecoverableError;for(n=0;n<a.length;n++){var S=a[n],A=l4(S.stack);xe(S.source,y,S.value,A)}}finally{F.T=d,bt.p=p}}(es&3)!==0&&Vl(),ws(e),i=e.pendingLanes,(t&261930)!==0&&(i&42)!==0?(Bd=!0,e===ig?Uc++:(Uc=0,ig=e)):Uc=0,r||Cr(t,oo),zl(0)}}function l4(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Fv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vl(t)))}function Vl(){return qv(),Gv(),Iv(),Xv()}function Xv(){if(ea!==sf)return!1;var e=sr,t=sg;sg=0;var a=$s(es),n=eo>a?eo:a;a=F.T;var r=bt.p;try{bt.p=n,F.T=null;var i=rg;rg=null,n=sr;var d=es;if(ea=nr,Ji=sr=null,es=0,(dt&(sa|dn))!==fa)throw Error("Cannot flush passive effects while already rendering.");Fn(d),lg=!0,of=!1;var p=0;if(ro=null,p=ca(),ts===PN)am(oo,p,yR);else{var y=oo,S=p,A=ts===ng;!kt||S<=y||(Bt?Bt.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",y,S,ut,it,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",y,S,ut,it,"secondary-light"))}y=dt,dt|=dn;var V=n.current;_u(),Cv(V);var U=n.current;V=og,_u(),Ev(n,U,d,i,V),Jv(n),dt=y;var Y=ca();if(U=p,V=Bt,ro!==null?Vb(U,Y,ro,!0,V):!kt||Y<=U||(V?V.run(console.timeStamp.bind(console,"Remaining Effects",U,Y,ut,it,"secondary-dark")):console.timeStamp("Remaining Effects",U,Y,ut,it,"secondary-dark")),Cr(d,Y),zl(0,!1),of?n===Tc?Fr++:(Fr=0,Tc=n):Fr=0,of=lg=!1,Na&&typeof Na.onPostCommitFiberRoot=="function")try{Na.onPostCommitFiberRoot(wi,n)}catch(ye){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",ye))}var de=n.current.stateNode;return de.effectDuration=0,de.passiveEffectDuration=0,!0}finally{bt.p=r,F.T=a,Fv(e,t)}}function Qv(e,t,a){t=Wa(a,t),Pb(t),t=Wm(e.stateNode,t,2),e=To(e,t,2),e!==null&&(bn(e,2),ws(e))}function gt(e,t,a){if(Ki=!1,e.tag===3)Qv(e,e,a);else{for(;t!==null;){if(t.tag===3){Qv(t,e,a);return}if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ar===null||!ar.has(n))){e=Wa(a,e),Pb(e),a=ep(2),n=To(t,a,2),n!==null&&(tp(a,n,t,e),bn(n,2),ws(n));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
159
|
+
|
|
160
|
+
Error message:
|
|
161
|
+
|
|
162
|
+
%s`,a)}}function Sp(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new _R;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(eg=!0,r.add(a),n=c4.bind(null,e,t,a),ks&&Ml(e,a),t.then(n,n))}function c4(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Os&&(Or=Os=Zt(),rc=Ad("Promise Resolved"),Qo=Vd):(a&4194048)!==0&&0>Cn&&(io=Cn=Zt(),lc=Ad("Promise Resolved"),Vh=Vd),Tv()&&F.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
163
|
+
|
|
164
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
165
|
+
|
|
166
|
+
act(() => {
|
|
167
|
+
/* finish loading suspended data */
|
|
168
|
+
});
|
|
169
|
+
/* assert on the output */
|
|
170
|
+
|
|
171
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),St===e&&(Ze&a)===a&&(Vt===Ko||Vt===Pd&&(Ze&62914560)===Ze&&ca()-tf<QN?(dt&sa)===fa&&hi(e,0):tg|=a,Ir===Ze&&(Ir=0)),ws(e)}function Zv(e,t){t===0&&(t=Bn()),e=xa(e,t),e!==null&&(bn(e,t),ws(e))}function u4(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Zv(e,a)}function d4(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}n!==null&&n.delete(t),Zv(e,a)}function wp(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var n=e,r=t,i=r.type===gd;i=a||i,r.tag!==22?r.flags&67108864?i&&xe(r,Pv,n,r):wp(n,r,i):r.memoizedState===null&&(i&&r.flags&8192?xe(r,Pv,n,r):r.subtreeFlags&67108864&&xe(r,wp,n,r,i)),t=t.sibling}}function Pv(e,t){we(!0);try{Sv(t),kv(t),wv(e,t.alternate,t,!1),Dv(e,t,0,null,!1,0)}finally{we(!1)}}function Jv(e){var t=!0;e.current.mode&(Sa|Pn)||(t=!1),wp(e,e.current,t)}function Kv(e){if((dt&sa)===fa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=H(e)||"ReactComponent",rf!==null){if(rf.has(t))return;rf.add(t)}else rf=new Set([t]);xe(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Ml(e,t){ks&&e.memoizedUpdaters.forEach(function(a){Bs(e,a,t)})}function f4(e,t){var a=F.actQueue;return a!==null?(a.push(t),UR):oh(e,t)}function m4(e){Tv()&&F.actQueue===null&&xe(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
172
|
+
|
|
173
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
174
|
+
|
|
175
|
+
act(() => {
|
|
176
|
+
/* fire events that update state */
|
|
177
|
+
});
|
|
178
|
+
/* assert on the output */
|
|
179
|
+
|
|
180
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,H(e))})}function ws(e){e!==Wi&&e.next===null&&(Wi===null?lf=Wi=e:Wi=Wi.next=e),cf=!0,F.actQueue!==null?ug||(ug=!0,a0()):cg||(cg=!0,a0())}function zl(e,t){if(!dg&&cf){dg=!0;do for(var a=!1,n=lf;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var i=0;else{var d=n.suspendedLanes,p=n.pingedLanes;i=(1<<31-ja(42|e)+1)-1,i&=r&~(d&~p),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,t0(n,i))}else i=Ze,i=Hn(n,n===St?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==Pr),(i&3)===0||os(n,i)||(a=!0,t0(n,i));n=n.next}while(a);dg=!1}}function p4(){Vc=window.event,Ep()}function Ep(){cf=ug=cg=!1;var e=0;or!==0&&N4()&&(e=or);for(var t=ca(),a=null,n=lf;n!==null;){var r=n.next,i=Wv(n,t);i===0?(n.next=null,a===null?lf=r:a.next=r,r===null&&(Wi=a)):(a=n,(e!==0||(i&3)!==0)&&(cf=!0)),n=r}ea!==nr&&ea!==sf||zl(e),or!==0&&(or=0)}function Wv(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var d=31-ja(i),p=1<<d,y=r[d];y===-1?((p&a)===0||(p&n)!==0)&&(r[d]=gn(p,t)):y<=t&&(e.expiredLanes|=p),i&=~p}if(t=St,a=Ze,a=Hn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Pr),n=e.callbackNode,a===0||e===t&&(vt===qr||vt===Gr)||e.cancelPendingCommit!==null)return n!==null&&Dp(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||os(e,a)){if(t=a&-a,t!==e.callbackPriority||F.actQueue!==null&&n!==fg)Dp(n);else return t;switch($s(a)){case Nn:case Us:a=ih;break;case eo:a=Si;break;case Sd:a=lh;break;default:a=Si}return n=e0.bind(null,e),F.actQueue!==null?(F.actQueue.push(n),a=fg):a=oh(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&Dp(n),e.callbackPriority=2,e.callbackNode=null,2}function e0(e,t){if(Bd=Hd=!1,Vc=window.event,ea!==nr&&ea!==sf)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ts===nf&&(ts=ng),Vl()&&e.callbackNode!==a)return null;var n=Ze;return n=Hn(e,e===St?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Pr),n===0?null:(Ov(e,n,t),Wv(e,ca()),e.callbackNode!=null&&e.callbackNode===a?e0.bind(null,e):null)}function t0(e,t){if(Vl())return null;Hd=Bd,Bd=!1,Ov(e,t,!0)}function Dp(e){e!==fg&&e!==null&&sD(e)}function a0(){F.actQueue!==null&&F.actQueue.push(function(){return Ep(),null}),BR(function(){(dt&(sa|dn))!==fa?oh(rh,p4):Ep()})}function Rp(){if(or===0){var e=Mr;e===0&&(e=vd,vd<<=1,(vd&261888)===0&&(vd=256)),or=e}return or}function n0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(qe(e,"action"),hl(""+e))}function s0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function h4(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var i=n0((r[Oa]||null).action),d=n.submitter;d&&(t=(t=d[Oa]||null)?n0(t.formAction):d.getAttribute("formAction"),t!==null&&(i=t,d=null));var p=new _d("action","action",null,n,r);e.push({event:p,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(or!==0){var y=d?s0(r,d):new FormData(r),S={pending:!0,data:y,method:r.method,action:i};Object.freeze(S),Fm(a,S,null,y)}}else typeof i=="function"&&(p.preventDefault(),y=d?s0(r,d):new FormData(r),S={pending:!0,data:y,method:r.method,action:i},Object.freeze(S),Fm(a,S,i,y))},currentTarget:r}]})}}function od(e,t,a){e.currentTarget=a;try{t(e)}catch(n){Eh(n)}e.currentTarget=null}function o0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a];e:{var r=void 0,i=n.event;if(n=n.listeners,t)for(var d=n.length-1;0<=d;d--){var p=n[d],y=p.instance,S=p.currentTarget;if(p=p.listener,y!==r&&i.isPropagationStopped())break e;y!==null?xe(y,od,i,p,S):od(i,p,S),r=y}else for(d=0;d<n.length;d++){if(p=n[d],y=p.instance,S=p.currentTarget,p=p.listener,y!==r&&i.isPropagationStopped())break e;y!==null?xe(y,od,i,p,S):od(i,p,S),r=y}}}}function rt(e,t){mg.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[ch];a===void 0&&(a=t[ch]=new Set);var n=e+"__bubble";a.has(n)||(r0(t,e,2,!1),a.add(n))}function _p(e,t,a){mg.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var n=0;t&&(n|=4),r0(a,e,n,t)}function Cp(e){if(!e[uf]){e[uf]=!0,ax.forEach(function(a){a!=="selectionchange"&&(mg.has(a)||_p(a,!1,e),_p(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[uf]||(t[uf]=!0,_p("selectionchange",!1,t))}}function r0(e,t,a,n){switch(H0(t)){case Nn:var r=Z4;break;case Us:r=P4;break;default:r=Gp}a=r.bind(null,t,a,e),r=void 0,!ph||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function kp(e,t,a,n,r){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var p=n.stateNode.containerInfo;if(p===r)break;if(d===4)for(d=n.return;d!==null;){var y=d.tag;if((y===3||y===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;p!==null;){if(d=ne(p),d===null)return;if(y=d.tag,y===5||y===6||y===26||y===27){n=i=d;continue e}p=p.parentNode}}n=n.return}bb(function(){var S=i,A=Pf(a),V=[];e:{var U=Hx.get(e);if(U!==void 0){var Y=_d,de=e;switch(e){case"keypress":if(mu(a)===0)break e;case"keydown":case"keyup":Y=ID;break;case"focusin":de="focus",Y=yh;break;case"focusout":de="blur",Y=yh;break;case"beforeblur":case"afterblur":Y=yh;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Dx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=OD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=QD;break;case Vx:case Mx:case zx:Y=MD;break;case Lx:Y=PD;break;case"scroll":case"scrollend":Y=TD;break;case"wheel":Y=KD;break;case"copy":case"cut":case"paste":Y=LD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=_x;break;case"toggle":case"beforetoggle":Y=eR}var ye=(t&4)!==0,Dt=!ye&&(e==="scroll"||e==="scrollend"),lt=ye?U!==null?U+"Capture":null:U;ye=[];for(var C=S,j;C!==null;){var O=C;if(j=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||j===null||lt===null||(O=gl(C,lt),O!=null&&ye.push(Ll(C,O,j))),Dt)break;C=C.return}0<ye.length&&(U=new Y(U,de,null,a,A),V.push({event:U,listeners:ye}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",U&&a!==Zl&&(de=a.relatedTarget||a.fromElement)&&(ne(de)||de[$o]))break e;if((Y||U)&&(U=A.window===A?A:(U=A.ownerDocument)?U.defaultView||U.parentWindow:window,Y?(de=a.relatedTarget||a.toElement,Y=S,de=de?ne(de):null,de!==null&&(Dt=Z(de),ye=de.tag,de!==Dt||ye!==5&&ye!==27&&ye!==6)&&(de=null)):(Y=null,de=S),Y!==de)){if(ye=Dx,O="onMouseLeave",lt="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(ye=_x,O="onPointerLeave",lt="onPointerEnter",C="pointer"),Dt=Y==null?U:Ee(Y),j=de==null?U:Ee(de),U=new ye(O,C+"leave",Y,a,A),U.target=Dt,U.relatedTarget=j,O=null,ne(A)===S&&(ye=new ye(lt,C+"enter",de,a,A),ye.target=j,ye.relatedTarget=Dt,O=ye),Dt=O,Y&&de)t:{for(ye=g4,lt=Y,C=de,j=0,O=lt;O;O=ye(O))j++;O=0;for(var K=C;K;K=ye(K))O++;for(;0<j-O;)lt=ye(lt),j--;for(;0<O-j;)C=ye(C),O--;for(;j--;){if(lt===C||C!==null&<===C.alternate){ye=lt;break t}lt=ye(lt),C=ye(C)}ye=null}else ye=null;Y!==null&&i0(V,U,Y,ye,!1),de!==null&&Dt!==null&&i0(V,Dt,de,ye,!0)}}e:{if(U=S?Ee(S):window,Y=U.nodeName&&U.nodeName.toLowerCase(),Y==="select"||Y==="input"&&U.type==="file")var pe=Eb;else if(Sb(U))if(Ox)pe=CE;else{pe=RE;var Ye=DE}else Y=U.nodeName,!Y||Y.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?S&&pl(S.elementType)&&(pe=Eb):pe=_E;if(pe&&(pe=pe(e,S))){wb(V,pe,a,A);break e}Ye&&Ye(e,U,S),e==="focusout"&&S&&U.type==="number"&&S.memoizedProps.value!=null&&Ve(U,"number",U.value)}switch(Ye=S?Ee(S):window,e){case"focusin":(Sb(Ye)||Ye.contentEditable==="true")&&(Ui=Ye,xh=S,ac=null);break;case"focusout":ac=xh=Ui=null;break;case"mousedown":Nh=!0;break;case"contextmenu":case"mouseup":case"dragend":Nh=!1,Tb(V,a,A);break;case"selectionchange":if(sR)break;case"keydown":case"keyup":Tb(V,a,A)}var Oe;if(vh)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else ki?xb(e,a)&&(_e="onCompositionEnd"):e==="keydown"&&a.keyCode===Cx&&(_e="onCompositionStart");_e&&(kx&&a.locale!=="ko"&&(ki||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&ki&&(Oe=yb()):(Yo=A,hh="value"in Yo?Yo.value:Yo.textContent,ki=!0)),Ye=rd(S,_e),0<Ye.length&&(_e=new Rx(_e,e,null,a,A),V.push({event:_e,listeners:Ye}),Oe?_e.data=Oe:(Oe=Nb(a),Oe!==null&&(_e.data=Oe)))),(Oe=aR?NE(e,a):SE(e,a))&&(_e=rd(S,"onBeforeInput"),0<_e.length&&(Ye=new BD("onBeforeInput","beforeinput",null,a,A),V.push({event:Ye,listeners:_e}),Ye.data=Oe)),h4(V,e,S,a,A)}o0(V,t)})}function Ll(e,t,a){return{instance:e,listener:t,currentTarget:a}}function rd(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=gl(e,a),r!=null&&n.unshift(Ll(e,r,i)),r=gl(e,t),r!=null&&n.push(Ll(e,r,i))),e.tag===3)return n;e=e.return}return[]}function g4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function i0(e,t,a,n,r){for(var i=t._reactName,d=[];a!==null&&a!==n;){var p=a,y=p.alternate,S=p.stateNode;if(p=p.tag,y!==null&&y===n)break;p!==5&&p!==26&&p!==27||S===null||(y=S,r?(S=gl(a,i),S!=null&&d.unshift(Ll(a,S,y))):r||(S=gl(a,i),S!=null&&d.push(Ll(a,S,y)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}function Up(e,t){bE(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||wx||(wx=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:kr,possibleRegistrationNames:uh};pl(e)||typeof t.is=="string"||vE(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function la(e,t,a,n){t!==a&&(a=Mo(a),Mo(t)!==a&&(n[e]=t))}function b4(e,t,a){t.forEach(function(n){a[u0(n)]=n==="style"?jp(e):e.getAttribute(n)})}function Es(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function l0(e,t){return e=e.namespaceURI===Ed||e.namespaceURI===Di?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Mo(e){return Se(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Rt(e)),Je(e)),(typeof e=="string"?e:""+e).replace(TR,`
|
|
181
|
+
`).replace(jR,"")}function c0(e,t){return t=Mo(t),Mo(e)===t}function xt(e,t,a,n,r,i){switch(a){case"children":typeof n=="string"?(fu(n,t,!1),t==="body"||t==="textarea"&&n===""||ml(e,n)):(typeof n=="number"||typeof n=="bigint")&&(fu(""+n,t,!1),t!=="body"&&ml(e,""+n));break;case"className":si(e,"class",n);break;case"tabIndex":si(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":si(e,a,n);break;case"style":pb(e,n,i);break;case"data":if(t!=="object"){si(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}qe(n,a),n=hl(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(n!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof n=="function"&&(r.encType==null&&r.method==null||mf||(mf=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||ff||(ff=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||df?t!=="button"||r.type==null||r.type==="submit"||df?typeof n=="function"&&(r.name==null||l1||(l1=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||mf||(mf=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||ff||(ff=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(df=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(df=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&xt(e,t,"name",r.name,r,null),xt(e,t,"formEncType",r.formEncType,r,null),xt(e,t,"formMethod",r.formMethod,r,null),xt(e,t,"formTarget",r.formTarget,r,null)):(xt(e,t,"encType",r.encType,r,null),xt(e,t,"method",r.method,r,null),xt(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}qe(n,a),n=hl(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(typeof n!="function"&&Es(a,n),e.onclick=Is);break;case"onScroll":n!=null&&(typeof n!="function"&&Es(a,n),rt("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Es(a,n),rt("scrollend",e));break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}qe(n,a),a=hl(""+n),e.setAttributeNS(Xr,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?(qe(n,a),e.setAttribute(a,""+n)):e.removeAttribute(a);break;case"inert":n!==""||pf[a]||(pf[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?(qe(n,a),e.setAttribute(a,n)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?(qe(n,a),e.setAttribute(a,n)):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):(qe(n,a),e.setAttribute(a,n));break;case"popover":rt("beforetoggle",e),rt("toggle",e),qs(e,"popover",n);break;case"xlinkActuate":Yn(e,Xr,"xlink:actuate",n);break;case"xlinkArcrole":Yn(e,Xr,"xlink:arcrole",n);break;case"xlinkRole":Yn(e,Xr,"xlink:role",n);break;case"xlinkShow":Yn(e,Xr,"xlink:show",n);break;case"xlinkTitle":Yn(e,Xr,"xlink:title",n);break;case"xlinkType":Yn(e,Xr,"xlink:type",n);break;case"xmlBase":Yn(e,pg,"xml:base",n);break;case"xmlLang":Yn(e,pg,"xml:lang",n);break;case"xmlSpace":Yn(e,pg,"xml:space",n);break;case"is":i!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),qs(e,"is",n);break;case"innerText":case"textContent":break;case"popoverTarget":c1||n==null||typeof n!="object"||(c1=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",n));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=hb(a),qs(e,a,n)):kr.hasOwnProperty(a)&&n!=null&&typeof n!="function"&&Es(a,n)}}function Tp(e,t,a,n,r,i){switch(a){case"style":pb(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof n=="string"?ml(e,n):(typeof n=="number"||typeof n=="bigint")&&ml(e,""+n);break;case"onScroll":n!=null&&(typeof n!="function"&&Es(a,n),rt("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Es(a,n),rt("scrollend",e));break;case"onClick":n!=null&&(typeof n!="function"&&Es(a,n),e.onclick=Is);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(kr.hasOwnProperty(a))n!=null&&typeof n!="function"&&Es(a,n);else e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),i=e[Oa]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,r),typeof n=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):qs(e,a,n)}}}function ha(e,t,a){switch(Up(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",e),rt("load",e);var n=!1,r=!1,i;for(i in a)if(a.hasOwnProperty(i)){var d=a[i];if(d!=null)switch(i){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:xt(e,t,i,d,a,null)}}r&&xt(e,t,"srcSet",a.srcSet,a,null),n&&xt(e,t,"src",a.src,a,null);return;case"input":oa("input",a),rt("invalid",e);var p=i=d=r=null,y=null,S=null;for(n in a)if(a.hasOwnProperty(n)){var A=a[n];if(A!=null)switch(n){case"name":r=A;break;case"type":d=A;break;case"checked":y=A;break;case"defaultChecked":S=A;break;case"value":i=A;break;case"defaultValue":p=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:xt(e,t,n,A,a,null)}}je(e,a),Me(e,i,p,y,S,d,r,!1);return;case"select":oa("select",a),rt("invalid",e),n=d=i=null;for(r in a)if(a.hasOwnProperty(r)&&(p=a[r],p!=null))switch(r){case"value":i=p;break;case"defaultValue":d=p;break;case"multiple":n=p;default:xt(e,t,r,p,a,null)}_t(e,a),t=i,a=d,e.multiple=!!n,t!=null?et(e,!!n,t,!1):a!=null&&et(e,!!n,a,!0);return;case"textarea":oa("textarea",a),rt("invalid",e),i=r=n=null;for(d in a)if(a.hasOwnProperty(d)&&(p=a[d],p!=null))switch(d){case"value":n=p;break;case"defaultValue":r=p;break;case"children":i=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:xt(e,t,d,p,a,null)}Yt(e,a),ht(e,n,r,i);return;case"option":Te(e,a);for(y in a)a.hasOwnProperty(y)&&(n=a[y],n!=null)&&(y==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":xt(e,t,y,n,a,null));return;case"dialog":rt("beforetoggle",e),rt("toggle",e),rt("cancel",e),rt("close",e);break;case"iframe":case"object":rt("load",e);break;case"video":case"audio":for(n=0;n<jc.length;n++)rt(jc[n],e);break;case"image":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"embed":case"source":case"link":rt("error",e),rt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in a)if(a.hasOwnProperty(S)&&(n=a[S],n!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:xt(e,t,S,n,a,null)}return;default:if(pl(t)){for(A in a)a.hasOwnProperty(A)&&(n=a[A],n!==void 0&&Tp(e,t,A,n,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(n=a[p],n!=null&&xt(e,t,p,n,a,null))}function y4(e,t,a,n){switch(Up(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,d=null,p=null,y=null,S=null,A=null;for(Y in a){var V=a[Y];if(a.hasOwnProperty(Y)&&V!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":y=V;default:n.hasOwnProperty(Y)||xt(e,t,Y,null,n,V)}}for(var U in n){var Y=n[U];if(V=a[U],n.hasOwnProperty(U)&&(Y!=null||V!=null))switch(U){case"type":i=Y;break;case"name":r=Y;break;case"checked":S=Y;break;case"defaultChecked":A=Y;break;case"value":d=Y;break;case"defaultValue":p=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Y!==V&&xt(e,t,U,Y,n,V)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,n=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,t||!n||i1||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),i1=!0),!t||n||r1||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),r1=!0),De(e,d,p,y,S,A,i,r);return;case"select":Y=d=p=U=null;for(i in a)if(y=a[i],a.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":Y=y;default:n.hasOwnProperty(i)||xt(e,t,i,null,n,y)}for(r in n)if(i=n[r],y=a[r],n.hasOwnProperty(r)&&(i!=null||y!=null))switch(r){case"value":U=i;break;case"defaultValue":p=i;break;case"multiple":d=i;default:i!==y&&xt(e,t,r,i,n,y)}n=p,t=d,a=Y,U!=null?et(e,!!t,U,!1):!!a!=!!t&&(n!=null?et(e,!!t,n,!0):et(e,!!t,t?[]:"",!1));return;case"textarea":Y=U=null;for(p in a)if(r=a[p],a.hasOwnProperty(p)&&r!=null&&!n.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:xt(e,t,p,null,n,r)}for(d in n)if(r=n[d],i=a[d],n.hasOwnProperty(d)&&(r!=null||i!=null))switch(d){case"value":U=r;break;case"defaultValue":Y=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==i&&xt(e,t,d,r,n,i)}ra(e,U,Y);return;case"option":for(var de in a)U=a[de],a.hasOwnProperty(de)&&U!=null&&!n.hasOwnProperty(de)&&(de==="selected"?e.selected=!1:xt(e,t,de,null,n,U));for(y in n)U=n[y],Y=a[y],n.hasOwnProperty(y)&&U!==Y&&(U!=null||Y!=null)&&(y==="selected"?e.selected=U&&typeof U!="function"&&typeof U!="symbol":xt(e,t,y,U,n,Y));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in a)U=a[ye],a.hasOwnProperty(ye)&&U!=null&&!n.hasOwnProperty(ye)&&xt(e,t,ye,null,n,U);for(S in n)if(U=n[S],Y=a[S],n.hasOwnProperty(S)&&U!==Y&&(U!=null||Y!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:xt(e,t,S,U,n,Y)}return;default:if(pl(t)){for(var Dt in a)U=a[Dt],a.hasOwnProperty(Dt)&&U!==void 0&&!n.hasOwnProperty(Dt)&&Tp(e,t,Dt,void 0,n,U);for(A in n)U=n[A],Y=a[A],!n.hasOwnProperty(A)||U===Y||U===void 0&&Y===void 0||Tp(e,t,A,U,n,Y);return}}for(var lt in a)U=a[lt],a.hasOwnProperty(lt)&&U!=null&&!n.hasOwnProperty(lt)&&xt(e,t,lt,null,n,U);for(V in n)U=n[V],Y=a[V],!n.hasOwnProperty(V)||U===Y||U==null&&Y==null||xt(e,t,V,U,n,Y)}function u0(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function jp(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var n=e[a];t[n]=e.getPropertyValue(n)}return t}function d0(e,t,a){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var n,r=n="",i;for(i in t)if(t.hasOwnProperty(i)){var d=t[i];d!=null&&typeof d!="boolean"&&d!==""&&(i.indexOf("--")===0?(ft(d,i),n+=r+i+":"+(""+d).trim()):typeof d!="number"||d===0||Nx.has(i)?(ft(d,i),n+=r+i.replace(gx,"-$1").toLowerCase().replace(bx,"-ms-")+":"+(""+d).trim()):n+=r+i.replace(gx,"-$1").toLowerCase().replace(bx,"-ms-")+":"+d+"px",r=";")}n=n||null,t=e.getAttribute("style"),t!==n&&(n=Mo(n),Mo(t)!==n&&(a.style=jp(e)))}}function xn(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(qe(n,t),e===""+n)return}la(t,e,n,i)}function f0(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof n){case"function":case"symbol":return}if(!n)return}else switch(typeof n){case"function":case"symbol":break;default:if(n)return}la(t,e,n,i)}function Op(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":return}else if(n!=null)switch(typeof n){case"function":case"symbol":break;default:if(qe(n,a),e===""+n)return}la(t,e,n,i)}function m0(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(n))return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(!isNaN(n)&&(qe(n,t),e===""+n))return}la(t,e,n,i)}function Ap(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(qe(n,t),a=hl(""+n),e===a)return}la(t,e,n,i)}function p0(e,t,a,n){for(var r={},i=new Set,d=e.attributes,p=0;p<d.length;p++)switch(d[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:i.add(d[p].name)}if(pl(t)){for(var y in a)if(a.hasOwnProperty(y)){var S=a[y];if(S!=null){if(kr.hasOwnProperty(y))typeof S!="function"&&Es(y,S);else if(a.suppressHydrationWarning!==!0)switch(y){case"children":typeof S!="string"&&typeof S!="number"||la("children",e.textContent,S,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":d=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=l0(e,S),la(y,d,S,r));continue;case"style":i.delete(y),d0(e,S,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":i.delete(y.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",y);continue;case"className":i.delete("class"),d=Ys(e,"class",S),la("className",d,S,r);continue;default:n.context===ho&&t!=="svg"&&t!=="math"?i.delete(y.toLowerCase()):i.delete(y),d=Ys(e,y,S),la(y,d,S,r)}}}}else for(S in a)if(a.hasOwnProperty(S)&&(y=a[S],y!=null)){if(kr.hasOwnProperty(S))typeof y!="function"&&Es(S,y);else if(a.suppressHydrationWarning!==!0)switch(S){case"children":typeof y!="string"&&typeof y!="number"||la("children",e.textContent,y,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":d=e.innerHTML,y=y?y.__html:void 0,y!=null&&(y=l0(e,y),d!==y&&(r[S]={__html:d}));continue;case"className":xn(e,S,"class",y,i,r);continue;case"tabIndex":xn(e,S,"tabindex",y,i,r);continue;case"style":i.delete(S),d0(e,y,r);continue;case"multiple":i.delete(S),la(S,e.multiple,y,r);continue;case"muted":i.delete(S),la(S,e.muted,y,r);continue;case"autoFocus":i.delete("autofocus"),la(S,e.autofocus,y,r);continue;case"data":if(t!=="object"){i.delete(S),d=e.getAttribute("data"),la(S,d,y,r);continue}case"src":case"href":if(!(y!==""||t==="a"&&S==="href"||t==="object"&&S==="data")){console.error(S==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S);continue}Ap(e,S,S,y,i,r);continue;case"action":case"formAction":if(d=e.getAttribute(S),typeof y=="function"){i.delete(S.toLowerCase()),S==="formAction"?(i.delete("name"),i.delete("formenctype"),i.delete("formmethod"),i.delete("formtarget")):(i.delete("enctype"),i.delete("method"),i.delete("target"));continue}else if(d===OR){i.delete(S.toLowerCase()),la(S,"function",y,r);continue}Ap(e,S,S.toLowerCase(),y,i,r);continue;case"xlinkHref":Ap(e,S,"xlink:href",y,i,r);continue;case"contentEditable":Op(e,S,"contenteditable",y,i,r);continue;case"spellCheck":Op(e,S,"spellcheck",y,i,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Op(e,S,S,y,i,r);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f0(e,S,S.toLowerCase(),y,i,r);continue;case"capture":case"download":e:{p=e;var A=d=S,V=r;if(i.delete(A),p=p.getAttribute(A),p===null)switch(typeof y){case"undefined":case"function":case"symbol":break e;default:if(y===!1)break e}else if(y!=null)switch(typeof y){case"function":case"symbol":break;case"boolean":if(y===!0&&p==="")break e;break;default:if(qe(y,d),p===""+y)break e}la(d,p,y,V)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,A=d=S,V=r,i.delete(A),p=p.getAttribute(A),p===null)switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(y)||1>y)break e}else if(y!=null)switch(typeof y){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(y)||1>y)&&(qe(y,d),p===""+y))break e}la(d,p,y,V)}continue;case"rowSpan":m0(e,S,"rowspan",y,i,r);continue;case"start":m0(e,S,S,y,i,r);continue;case"xHeight":xn(e,S,"x-height",y,i,r);continue;case"xlinkActuate":xn(e,S,"xlink:actuate",y,i,r);continue;case"xlinkArcrole":xn(e,S,"xlink:arcrole",y,i,r);continue;case"xlinkRole":xn(e,S,"xlink:role",y,i,r);continue;case"xlinkShow":xn(e,S,"xlink:show",y,i,r);continue;case"xlinkTitle":xn(e,S,"xlink:title",y,i,r);continue;case"xlinkType":xn(e,S,"xlink:type",y,i,r);continue;case"xmlBase":xn(e,S,"xml:base",y,i,r);continue;case"xmlLang":xn(e,S,"xml:lang",y,i,r);continue;case"xmlSpace":xn(e,S,"xml:space",y,i,r);continue;case"inert":y!==""||pf[S]||(pf[S]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",S)),f0(e,S,S,y,i,r);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){p=hb(S),d=!1,n.context===ho&&t!=="svg"&&t!=="math"?i.delete(p.toLowerCase()):(A=S.toLowerCase(),A=Dd.hasOwnProperty(A)&&Dd[A]||null,A!==null&&A!==S&&(d=!0,i.delete(A)),i.delete(p));e:if(A=e,V=p,p=y,ka(V))if(A.hasAttribute(V))A=A.getAttribute(V),qe(p,V),p=A===""+p?p:A;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(A=V.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;d||la(S,p,y,r)}}}return 0<i.size&&a.suppressHydrationWarning!==!0&&b4(e,i,r),Object.keys(r).length===0?null:r}function v4(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function h0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function x4(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],i=r.transferSize,d=r.initiatorType,p=r.duration;if(i&&p&&h0(d)){for(d=0,p=r.responseEnd,n+=1;n<a.length;n++){var y=a[n],S=y.startTime;if(S>p)break;var A=y.transferSize,V=y.initiatorType;A&&h0(V)&&(y=y.responseEnd,d+=A*(y<p?1:(p-S)/(y-S)))}if(--n,t+=8*(i+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function id(e){return e.nodeType===9?e:e.ownerDocument}function g0(e){switch(e){case Di:return tl;case Ed:return gf;default:return ho}}function b0(e,t){if(e===ho)switch(t){case"svg":return tl;case"math":return gf;default:return ho}return e===tl&&t==="foreignObject"?ho:e}function Vp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function N4(){var e=window.event;return e&&e.type==="popstate"?e===yg?!1:(yg=e,!0):(yg=null,!1)}function Hl(){var e=window.event;return e&&e!==Vc?e.type:null}function Bl(){var e=window.event;return e&&e!==Vc?e.timeStamp:-1.1}function S4(e){setTimeout(function(){throw e})}function w4(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function E4(){}function D4(e,t,a,n){y4(e,t,a,n),e[Oa]=n}function y0(e){ml(e,"")}function R4(e,t,a){e.nodeValue=a}function v0(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Oa]||null;if(t!==null){var a=ce(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,xe(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,xe(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function zo(e){return e==="head"}function _4(e,t){e.removeChild(t)}function C4(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function x0(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a===Ac||a===hf){if(n===0){e.removeChild(r),vi(t);return}n--}else if(a===Oc||a===rr||a===Zr||a===el||a===Qr)n++;else if(a===VR)$l(e.ownerDocument.documentElement);else if(a===zR){a=e.ownerDocument.head,$l(a);for(var i=a.firstChild;i;){var d=i.nextSibling,p=i.nodeName;i[Ql]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=d}}else a===MR&&$l(e.ownerDocument.body);a=r}while(a);vi(t)}function N0(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a===Ac){if(e===0)break;e--}else a!==Oc&&a!==rr&&a!==Zr&&a!==el||e++;a=n}while(a)}function k4(e){N0(e,!0)}function U4(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function T4(e){e.nodeValue=""}function j4(e){N0(e,!1)}function O4(e,t){t=t[LR],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function A4(e,t){e.nodeValue=t}function Mp(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Mp(a),M(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function V4(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Ql])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){qe(r.name,"name");var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=sn(e.nextSibling),e===null)break}return null}function M4(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=sn(e.nextSibling),e===null))return null;return e}function S0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=sn(e.nextSibling),e===null))return null;return e}function zp(e){return e.data===rr||e.data===Zr}function Lp(e){return e.data===el||e.data===rr&&e.ownerDocument.readyState!==d1}function z4(e,t){var a=e.ownerDocument;if(e.data===Zr)e._reactRetry=t;else if(e.data!==rr||a.readyState!==d1)t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function sn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Oc||t===el||t===rr||t===Zr||t===Qr||t===hg||t===u1)break;if(t===Ac||t===hf)return null}}return e}function w0(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},n=e.attributes,r=0;r<n.length;r++){var i=n[r];a[u0(i.name)]=i.name.toLowerCase()==="style"?jp(e):i.value}return{type:t,props:a}}return e.nodeType===8?e.data===Qr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function E0(e,t,a){return a===null||a[AR]!==!0?(e.nodeValue===t?e=null:(t=Mo(t),e=Mo(e.nodeValue)===t?null:e.nodeValue),e):null}function Hp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Ac||a===hf){if(t===0)return sn(e.nextSibling);t--}else a!==Oc&&a!==el&&a!==rr&&a!==Zr&&a!==Qr||t++}e=e.nextSibling}return null}function D0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Oc||a===el||a===rr||a===Zr||a===Qr){if(t===0)return e;t--}else a!==Ac&&a!==hf||t++}e=e.previousSibling}return null}function L4(e){vi(e)}function H4(e){vi(e)}function B4(e){vi(e)}function R0(e,t,a,n,r){switch(r&&Zf(e,n.ancestorInfo),t=id(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function $4(e,t,a,n){if(!a[$o]&&ce(a)){var r=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(r=a.attributes;r.length;)a.removeAttributeNode(r[0]);ha(a,e,t),a[ga]=n,a[Oa]=t}function $l(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);M(e)}function ld(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function _0(e,t,a){var n=al;if(n&&typeof t=="string"&&t){var r=be(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),b1.has(r)||(b1.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),ha(t,"link",e),Ce(t),n.head.appendChild(t)))}}function C0(e,t,a,n){var r=(r=Ho.current)?ld(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=bi(a.href),t=Be(r).hoistableStyles,n=t.get(a),n||(n={type:"style",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=bi(a.href);var i=Be(r).hoistableStyles,d=i.get(e);if(!d&&(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:Jr,preload:null}},i.set(e,d),(i=r.querySelector(Yl(e)))&&!i._p&&(d.instance=i,d.state.loading=Mc|jn),!On.has(e))){var p={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};On.set(e,p),i||Y4(r,e,p,d.state)}if(t&&n===null)throw a=`
|
|
182
|
+
|
|
183
|
+
- `+cd(t)+`
|
|
184
|
+
+ `+cd(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return d}if(t&&n!==null)throw a=`
|
|
185
|
+
|
|
186
|
+
- `+cd(t)+`
|
|
187
|
+
+ `+cd(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=yi(a),t=Be(r).hoistableScripts,n=t.get(a),n||(n={type:"script",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function cd(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):Zn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):Zn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):Zn.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function bi(e){return'href="'+be(e)+'"'}function Yl(e){return'link[rel="stylesheet"]['+e+"]"}function k0(e){return We({},e,{"data-precedence":e.precedence,precedence:null})}function Y4(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=Mc:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=Mc}),t.addEventListener("error",function(){return n.loading|=h1}),ha(t,"link",a),Ce(t),e.head.appendChild(t))}function yi(e){return'[src="'+be(e)+'"]'}function ql(e){return"script[async]"+e}function U0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+be(a.href)+'"]');if(n)return t.instance=n,Ce(n),n;var r=We({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ce(n),ha(n,"style",r),ud(n,a.precedence,e),t.instance=n;case"stylesheet":r=bi(a.href);var i=e.querySelector(Yl(r));if(i)return t.state.loading|=jn,t.instance=i,Ce(i),i;n=k0(a),(r=On.get(r))&&Bp(n,r),i=(e.ownerDocument||e).createElement("link"),Ce(i);var d=i;return d._p=new Promise(function(p,y){d.onload=p,d.onerror=y}),ha(i,"link",n),t.state.loading|=jn,ud(i,a.precedence,e),t.instance=i;case"script":return i=yi(a.src),(r=e.querySelector(ql(i)))?(t.instance=r,Ce(r),r):(n=a,(r=On.get(i))&&(n=We({},a),$p(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ce(r),ha(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&jn)===Jr&&(n=t.instance,t.state.loading|=jn,ud(n,a.precedence,e));return t.instance}function ud(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,i=r,d=0;d<n.length;d++){var p=n[d];if(p.dataset.precedence===t)i=p;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Bp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $p(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function T0(e,t,a){if(bf===null){var n=new Map,r=bf=new Map;r.set(a,n)}else r=bf,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var i=a[r];if(!(i[Ql]||i[ga]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!==Di){var d=i.getAttribute(t)||"";d=e+d;var p=n.get(d);p?p.push(i):n.set(d,[i])}}return n}function j0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function q4(e,t,a){var n=!a.ancestorInfo.containerTagInScope;if(a.context===tl||t.itemProp!=null)return!n||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){n&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var r=t.onError,i=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),i!=null&&a.push("`disabled`"),r=v4(a,"and"),r+=a.length===1?" prop":" props",i=a.length===1?"an "+r:"the "+r,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,i,r)}n&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&n&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){n&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":n&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function O0(e){return!(e.type==="stylesheet"&&(e.state.loading&g1)===Jr)}function G4(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&jn)===Jr){if(a.instance===null){var r=bi(n.href),i=t.querySelector(Yl(r));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=dd.bind(e),t.then(e,e)),a.state.loading|=jn,a.instance=i,Ce(i);return}i=t.ownerDocument||t,n=k0(n),(r=On.get(r))&&Bp(n,r),i=i.createElement("link"),Ce(i);var d=i;d._p=new Promise(function(p,y){d.onload=p,d.onerror=y}),ha(i,"link",n),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&g1)===Jr&&(e.count++,a=dd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function I4(e,t){return e.stylesheets&&e.count===0&&fd(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&fd(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},$R+t);0<e.imgBytes&&xg===0&&(xg=125*x4()*qR);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fd(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>xg?50:YR)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function dd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function fd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yf=new Map,t.forEach(F4,e),yf=null,dd.call(e))}function F4(e,t){if(!(t.state.loading&jn)){var a=yf.get(e);if(a)var n=a.get(Ng);else{a=new Map,yf.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var d=r[i];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(Ng,n)}r=t.instance,d=r.getAttribute("data-precedence"),i=a.get(d)||n,i===n&&a.set(Ng,r),a.set(d,r),this.count++,n=dd.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),i?i.parentNode.insertBefore(r,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=jn}}function X4(e,t,a,n,r,i,d,p,y){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Pr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=So(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=So(0),this.hiddenUpdates=So(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function A0(e,t,a,n,r,i,d,p,y,S,A,V){return e=new X4(e,t,a,d,y,S,A,V,p),t=mR,i===!0&&(t|=Sa|Pn),t|=Xe,i=N(3,null,null,t),e.current=i,i.stateNode=e,t=hm(),Sr(t),e.pooledCache=t,Sr(t),i.memoizedState={element:n,isDehydrated:a,cache:t},xm(i),e}function V0(e){return e?(e=Io,e):Io}function Yp(e,t,a,n,r,i){if(Na&&typeof Na.onScheduleFiberRoot=="function")try{Na.onScheduleFiberRoot(wi,n,a)}catch(d){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",d))}r=V0(r),n.context===null?n.context=r:n.pendingContext=r,_s&&rn!==null&&!N1&&(N1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
188
|
+
|
|
189
|
+
Check the render method of %s.`,H(rn)||"Unknown")),n=Uo(t),n.payload={element:a},i=i===void 0?null:i,i!==null&&(typeof i!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",i),n.callback=i),a=To(e,n,t),a!==null&&(fs(t,"root.render()",null),zt(a,e,t),wl(a,e,t))}function M0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function qp(e,t){M0(e,t),(e=e.alternate)&&M0(e,t)}function z0(e){if(e.tag===13||e.tag===31){var t=xa(e,67108864);t!==null&&zt(t,e,67108864),qp(e,67108864)}}function L0(e){if(e.tag===13||e.tag===31){var t=nn(e);t=yn(t);var a=xa(e,t);a!==null&&zt(a,e,t),qp(e,t)}}function Q4(){return rn}function Z4(e,t,a,n){var r=F.T;F.T=null;var i=bt.p;try{bt.p=Nn,Gp(e,t,a,n)}finally{bt.p=i,F.T=r}}function P4(e,t,a,n){var r=F.T;F.T=null;var i=bt.p;try{bt.p=Us,Gp(e,t,a,n)}finally{bt.p=i,F.T=r}}function Gp(e,t,a,n){if(xf){var r=Ip(n);if(r===null)kp(e,t,n,Nf,a),B0(e,n);else if(J4(r,e,t,a,n))n.stopPropagation();else if(B0(e,n),t&4&&-1<IR.indexOf(e)){for(;r!==null;){var i=ce(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var d=_a(i.pendingLanes);if(d!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;d;){var y=1<<31-ja(d);p.entanglements[1]|=y,d&=~y}ws(i),(dt&(sa|dn))===fa&&(af=ca()+ZN,zl(0))}}break;case 31:case 13:p=xa(i,2),p!==null&&zt(p,i,2),pi(),qp(i,2)}if(i=Ip(n),i===null&&kp(e,t,n,Nf,a),i===r)break;r=i}r!==null&&n.stopPropagation()}else kp(e,t,n,null,a)}}function Ip(e){return e=Pf(e),Fp(e)}function Fp(e){if(Nf=null,e=ne(e),e!==null){var t=Z(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=J(t),e!==null)return e;e=null}else if(a===31){if(e=te(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Nf=e,null}function H0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Nn;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Us;case"message":switch(iD()){case rh:return Nn;case ih:return Us;case Si:case lD:return eo;case lh:return Sd;default:return eo}default:return eo}}function B0(e,t){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":lr=null;break;case"mouseover":case"mouseout":cr=null;break;case"pointerover":case"pointerout":Lc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hc.delete(t.pointerId)}}function Gl(e,t,a,n,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:i,targetContainers:[r]},t!==null&&(t=ce(t),t!==null&&z0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function J4(e,t,a,n,r){switch(t){case"focusin":return ir=Gl(ir,e,t,a,n,r),!0;case"dragenter":return lr=Gl(lr,e,t,a,n,r),!0;case"mouseover":return cr=Gl(cr,e,t,a,n,r),!0;case"pointerover":var i=r.pointerId;return Lc.set(i,Gl(Lc.get(i)||null,e,t,a,n,r)),!0;case"gotpointercapture":return i=r.pointerId,Hc.set(i,Gl(Hc.get(i)||null,e,t,a,n,r)),!0}return!1}function $0(e){var t=ne(e.target);if(t!==null){var a=Z(t);if(a!==null){if(t=a.tag,t===13){if(t=J(a),t!==null){e.blockedOn=t,w(e.priority,function(){L0(a)});return}}else if(t===31){if(t=te(a),t!==null){e.blockedOn=t,w(e.priority,function(){L0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function md(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ip(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a),r=n;Zl!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Zl=r,a.target.dispatchEvent(n),Zl===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Zl=null}else return t=ce(a),t!==null&&z0(t),e.blockedOn=a,!1;t.shift()}return!0}function Y0(e,t,a){md(e)&&a.delete(t)}function K4(){Sg=!1,ir!==null&&md(ir)&&(ir=null),lr!==null&&md(lr)&&(lr=null),cr!==null&&md(cr)&&(cr=null),Lc.forEach(Y0),Hc.forEach(Y0)}function pd(e,t){e.blockedOn===t&&(e.blockedOn=null,Sg||(Sg=!0,Xt.unstable_scheduleCallback(Xt.unstable_NormalPriority,K4)))}function q0(e){Sf!==e&&(Sf=e,Xt.unstable_scheduleCallback(Xt.unstable_NormalPriority,function(){Sf===e&&(Sf=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(Fp(n||a)===null)continue;break}var i=ce(a);i!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:r,method:a.method,action:n},Object.freeze(a),Fm(i,a,n,r))}}))}function vi(e){function t(y){return pd(y,e)}ir!==null&&pd(ir,e),lr!==null&&pd(lr,e),cr!==null&&pd(cr,e),Lc.forEach(t),Hc.forEach(t);for(var a=0;a<ur.length;a++){var n=ur[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<ur.length&&(a=ur[0],a.blockedOn===null);)$0(a),a.blockedOn===null&&ur.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],i=a[n+1],d=r[Oa]||null;if(typeof i=="function")d||q0(a);else if(d){var p=null;if(i&&i.hasAttribute("formAction")){if(r=i,d=i[Oa]||null)p=d.formAction;else if(Fp(r)!==null)continue}else p=d.action;typeof p=="function"?a[n+1]=p:(a.splice(n,3),n-=3),q0(a)}}}function G0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Xp(e){this._internalRoot=e}function hd(e){this._internalRoot=e}function I0(e){e[$o]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Xt=oC(),Qp=nu(),W4=iC(),We=Object.assign,eD=Symbol.for("react.element"),Ds=Symbol.for("react.transitional.element"),xi=Symbol.for("react.portal"),Ni=Symbol.for("react.fragment"),gd=Symbol.for("react.strict_mode"),Zp=Symbol.for("react.profiler"),Pp=Symbol.for("react.consumer"),Rs=Symbol.for("react.context"),Il=Symbol.for("react.forward_ref"),Jp=Symbol.for("react.suspense"),Kp=Symbol.for("react.suspense_list"),bd=Symbol.for("react.memo"),on=Symbol.for("react.lazy"),Wp=Symbol.for("react.activity"),tD=Symbol.for("react.memo_cache_sentinel"),F0=Symbol.iterator,aD=Symbol.for("react.client.reference"),aa=Array.isArray,F=Qp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bt=W4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nD=Object.freeze({pending:!1,data:null,method:null,action:null}),eh=[],th=[],Ws=-1,Lo=$(null),Fl=$(null),Ho=$(null),yd=$(null),Xl=0,X0,Q0,Z0,P0,J0,K0,W0;ve.__reactDisabledLog=!0;var ah,ex,nh=!1,sh=new(typeof WeakMap=="function"?WeakMap:Map),rn=null,_s=!1,Zn=Object.prototype.hasOwnProperty,oh=Xt.unstable_scheduleCallback,sD=Xt.unstable_cancelCallback,oD=Xt.unstable_shouldYield,rD=Xt.unstable_requestPaint,ca=Xt.unstable_now,iD=Xt.unstable_getCurrentPriorityLevel,rh=Xt.unstable_ImmediatePriority,ih=Xt.unstable_UserBlockingPriority,Si=Xt.unstable_NormalPriority,lD=Xt.unstable_LowPriority,lh=Xt.unstable_IdlePriority,cD=Xt.log,uD=Xt.unstable_setDisableYieldValue,wi=null,Na=null,Cs=!1,ks=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ja=Math.clz32?Math.clz32:hn,dD=Math.log,fD=Math.LN2,vd=256,xd=262144,Nd=4194304,Nn=2,Us=8,eo=32,Sd=268435456,Bo=Math.random().toString(36).slice(2),ga="__reactFiber$"+Bo,Oa="__reactProps$"+Bo,$o="__reactContainer$"+Bo,ch="__reactEvents$"+Bo,mD="__reactListeners$"+Bo,pD="__reactHandles$"+Bo,tx="__reactResources$"+Bo,Ql="__reactMarker$"+Bo,ax=new Set,kr={},uh={},hD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gD=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),nx={},sx={},bD=/[\n"\\]/g,ox=!1,rx=!1,ix=!1,lx=!1,cx=!1,ux=!1,dx=["value","defaultValue"],fx=!1,mx=/["'&<>\n\t]|^\s|\s$/,yD="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),px="applet caption html table td th marquee object template foreignObject desc title".split(" "),vD=px.concat(["button"]),xD="dd dt li option optgroup p rp rt".split(" "),hx={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},wd={},dh={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},gx=/([A-Z])/g,bx=/^ms-/,ND=/^(?:webkit|moz|o)[A-Z]/,SD=/^-ms-/,wD=/-(.)/g,yx=/;\s*$/,Ei={},fh={},vx=!1,xx=!1,Nx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Ed="http://www.w3.org/1998/Math/MathML",Di="http://www.w3.org/2000/svg",ED=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Dd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Sx={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Ri={},DD=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),RD=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wx=!1,Aa={},Ex=/^on./,_D=/^on[^A-Z]/,CD=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kD=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),UD=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Zl=null,_i=null,Ci=null,mh=!1,Ts=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ph=!1;if(Ts)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){ph=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{ph=!1}var Yo=null,hh=null,Rd=null,Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_d=Ya(Ur),Jl=We({},Ur,{view:0,detail:0}),TD=Ya(Jl),gh,bh,Kl,Cd=We({},Jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kl&&(Kl&&e.type==="mousemove"?(gh=e.screenX-Kl.screenX,bh=e.screenY-Kl.screenY):bh=gh=0,Kl=e),gh)},movementY:function(e){return"movementY"in e?e.movementY:bh}}),Dx=Ya(Cd),jD=We({},Cd,{dataTransfer:0}),OD=Ya(jD),AD=We({},Jl,{relatedTarget:0}),yh=Ya(AD),VD=We({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),MD=Ya(VD),zD=We({},Ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),LD=Ya(zD),HD=We({},Ur,{data:0}),Rx=Ya(HD),BD=Rx,$D={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YD={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},qD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},GD=We({},Jl,{key:function(e){if(e.key){var t=$D[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?YD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jf,charCode:function(e){return e.type==="keypress"?mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ID=Ya(GD),FD=We({},Cd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_x=Ya(FD),XD=We({},Jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jf}),QD=Ya(XD),ZD=We({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),PD=Ya(ZD),JD=We({},Cd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),KD=Ya(JD),WD=We({},Ur,{newState:0,oldState:0}),eR=Ya(WD),tR=[9,13,27,32],Cx=229,vh=Ts&&"CompositionEvent"in window,Wl=null;Ts&&"documentMode"in document&&(Wl=document.documentMode);var aR=Ts&&"TextEvent"in window&&!Wl,kx=Ts&&(!vh||Wl&&8<Wl&&11>=Wl),Ux=32,Tx=String.fromCharCode(Ux),jx=!1,ki=!1,nR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},ec=null,tc=null,Ox=!1;Ts&&(Ox=wE("input")&&(!document.documentMode||9<document.documentMode));var Va=typeof Object.is=="function"?Object.is:kE,sR=Ts&&"documentMode"in document&&11>=document.documentMode,Ui=null,xh=null,ac=null,Nh=!1,Ti={animationend:hr("Animation","AnimationEnd"),animationiteration:hr("Animation","AnimationIteration"),animationstart:hr("Animation","AnimationStart"),transitionrun:hr("Transition","TransitionRun"),transitionstart:hr("Transition","TransitionStart"),transitioncancel:hr("Transition","TransitionCancel"),transitionend:hr("Transition","TransitionEnd")},Sh={},Ax={};Ts&&(Ax=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);var Vx=gr("animationend"),Mx=gr("animationiteration"),zx=gr("animationstart"),oR=gr("transitionrun"),rR=gr("transitionstart"),iR=gr("transitioncancel"),Lx=gr("transitionend"),Hx=new Map,wh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");wh.push("scrollEnd");var Bx=0;if(typeof performance=="object"&&typeof performance.now=="function")var lR=performance,$x=function(){return lR.now()};else{var cR=Date;$x=function(){return cR.now()}}var Eh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},uR="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",kd=0,Dh=1,Rh=2,_h=3,Ud="– ",Td="+ ",Yx=" ",kt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Sn="Components ⚛",it="Scheduler ⚛",ut="Blocking",qo=!1,to={color:"primary",properties:null,tooltipText:"",track:Sn},Go={start:-0,end:-0,detail:{devtools:to}},dR=["Changed Props",""],qx="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",fR=["Changed Props",qx],nc=1,ao=2,wn=[],ji=0,Ch=0,Io={};Object.freeze(Io);var En=null,Oi=null,Le=0,mR=1,Xe=2,Sa=8,Pn=16,pR=32,Gx=!1;try{var Ix=Object.preventExtensions({})}catch{Gx=!0}var kh=new WeakMap,Ai=[],Vi=0,jd=null,sc=0,Dn=[],Rn=0,Tr=null,no=1,so="",ba=null,Ut=null,st=!1,js=!1,ln=null,Fo=null,_n=!1,Uh=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Th=$(null),jh=$(null),Fx={},Od=null,Mi=null,zi=!1,hR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},gR=Xt.unstable_scheduleCallback,bR=Xt.unstable_NormalPriority,Qt={$$typeof:Rs,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Zt=Xt.unstable_now,Ad=console.createTask?console.createTask:function(){return null},oc=1,Vd=2,ua=-0,Xo=-0,oo=-0,ro=null,Ma=-1.1,jr=-0,At=-0,Ae=-1.1,ze=-1.1,Ot=null,Lt=!1,Or=-0,Os=-1.1,rc=null,Qo=0,Oh=null,Ah=null,Ar=-1.1,ic=null,Li=-1.1,Md=-1.1,io=-0,lo=-1.1,Cn=-1.1,Vh=0,lc=null,Xx=null,Qx=null,Zo=-1.1,Vr=null,Po=-1.1,zd=-1.1,Zx=-0,Px=-0,Ld=0,yR=null,Jx=0,cc=-1.1,Hd=!1,Bd=!1,uc=null,Mh=0,Mr=0,Hi=null,Kx=F.S;F.S=function(e,t){if(XN=ca(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>lo&&0>Cn){lo=Zt();var a=Bl(),n=Hl();(a!==Po||n!==Vr)&&(Po=-1.1),Zo=a,Vr=n}ME(e,t)}Kx!==null&&Kx(e,t)};var zr=$(null),Jn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},dc=[],fc=[],mc=[],pc=[],hc=[],gc=[],Lr=new Set;Jn.recordUnsafeLifecycleWarnings=function(e,t){Lr.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&dc.push(e),e.mode&Sa&&typeof t.UNSAFE_componentWillMount=="function"&&fc.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&mc.push(e),e.mode&Sa&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&pc.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&hc.push(e),e.mode&Sa&&typeof t.UNSAFE_componentWillUpdate=="function"&&gc.push(e))},Jn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<dc.length&&(dc.forEach(function(p){e.add(H(p)||"Component"),Lr.add(p.type)}),dc=[]);var t=new Set;0<fc.length&&(fc.forEach(function(p){t.add(H(p)||"Component"),Lr.add(p.type)}),fc=[]);var a=new Set;0<mc.length&&(mc.forEach(function(p){a.add(H(p)||"Component"),Lr.add(p.type)}),mc=[]);var n=new Set;0<pc.length&&(pc.forEach(function(p){n.add(H(p)||"Component"),Lr.add(p.type)}),pc=[]);var r=new Set;0<hc.length&&(hc.forEach(function(p){r.add(H(p)||"Component"),Lr.add(p.type)}),hc=[]);var i=new Set;if(0<gc.length&&(gc.forEach(function(p){i.add(H(p)||"Component"),Lr.add(p.type)}),gc=[]),0<t.size){var d=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
190
|
+
|
|
191
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
192
|
+
|
|
193
|
+
Please update the following components: %s`,d)}0<n.size&&(d=x(n),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
|
+
|
|
195
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
197
|
+
|
|
198
|
+
Please update the following components: %s`,d)),0<i.size&&(d=x(i),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
199
|
+
|
|
200
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
201
|
+
|
|
202
|
+
Please update the following components: %s`,d)),0<e.size&&(d=x(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
|
+
|
|
204
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
205
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
206
|
+
|
|
207
|
+
Please update the following components: %s`,d)),0<a.size&&(d=x(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
208
|
+
|
|
209
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
210
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
211
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
|
+
|
|
213
|
+
Please update the following components: %s`,d)),0<r.size&&(d=x(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
214
|
+
|
|
215
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
216
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
217
|
+
|
|
218
|
+
Please update the following components: %s`,d))};var $d=new Map,Wx=new Set;Jn.recordLegacyContextWarning=function(e,t){for(var a=null,n=e;n!==null;)n.mode&Sa&&(a=n),n=n.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Wx.has(e.type)&&(n=$d.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(n===void 0&&(n=[],$d.set(a,n)),n.push(e))},Jn.flushLegacyContextWarning=function(){$d.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add(H(r)||"Component"),Wx.add(r.type)});var n=x(a);xe(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
219
|
+
|
|
220
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
221
|
+
|
|
222
|
+
Please update the following components: %s
|
|
223
|
+
|
|
224
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,n)})}})},Jn.discardPendingWarnings=function(){dc=[],fc=[],mc=[],pc=[],hc=[],gc=[],$d=new Map};var eN={react_stack_bottom_frame:function(e,t,a){var n=_s;_s=!0;try{return e(t,a)}finally{_s=n}}},zh=eN.react_stack_bottom_frame.bind(eN),tN={react_stack_bottom_frame:function(e){var t=_s;_s=!0;try{return e.render()}finally{_s=t}}},aN=tN.react_stack_bottom_frame.bind(tN),nN={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){gt(e,e.return,a)}}},Lh=nN.react_stack_bottom_frame.bind(nN),sN={react_stack_bottom_frame:function(e,t,a,n,r){try{t.componentDidUpdate(a,n,r)}catch(i){gt(e,e.return,i)}}},oN=sN.react_stack_bottom_frame.bind(sN),rN={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},vR=rN.react_stack_bottom_frame.bind(rN),iN={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(n){gt(e,t,n)}}},lN=iN.react_stack_bottom_frame.bind(iN),cN={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},xR=cN.react_stack_bottom_frame.bind(cN),uN={react_stack_bottom_frame:function(e,t,a){try{a()}catch(n){gt(e,t,n)}}},NR=uN.react_stack_bottom_frame.bind(uN),dN={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},SR=dN.react_stack_bottom_frame.bind(dN),Bi=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Hh=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Yd=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),qd={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Hr=null,bc=!1,$i=null,yc=0,Qe=null,Bh,fN=Bh=!1,mN={},pN={},hN={};D=function(e,t,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var n=H(e),r=n||"null";if(!mN[r]){mN[r]=!0,a=a._owner,e=e._debugOwner;var i="";e&&typeof e.tag=="number"&&(r=H(e))&&(i=`
|
|
225
|
+
|
|
226
|
+
Check the render method of \``+r+"`."),i||n&&(i=`
|
|
227
|
+
|
|
228
|
+
Check the top-level render call using <`+n+">.");var d="";a!=null&&e!==a&&(n=null,typeof a.tag=="number"?n=H(a):typeof a.name=="string"&&(n=a.name),n&&(d=" It was passed a child from "+n+".")),xe(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',i,d)})}}};var Br=iy(!0),gN=iy(!1),bN=0,yN=1,vN=2,$h=3,Jo=!1,xN=!1,Yh=null,qh=!1,Yi=$(null),Gd=$(0),cn=$(null),kn=null,qi=1,vc=2,Gt=$(0),Id=0,Un=1,za=2,un=4,La=8,Gi,NN=new Set,SN=new Set,Gh=new Set,wN=new Set,co=0,$e=null,Nt=null,Pt=null,Fd=!1,Ii=!1,$r=!1,Xd=0,xc=0,uo=null,wR=0,ER=25,G=null,Tn=null,fo=-1,Nc=!1,Sc={readContext:jt,use:Ao,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};Sc.useEffectEvent=Ht;var Ih=null,EN=null,Fh=null,DN=null,As=null,Kn=null,Qd=null;Ih={readContext:function(e){return jt(e)},use:Ao,useCallback:function(e,t){return G="useCallback",Ke(),ii(t),Ym(e,t)},useContext:function(e){return G="useContext",Ke(),jt(e)},useEffect:function(e,t){return G="useEffect",Ke(),ii(t),$u(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",Ke(),ii(a),$m(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",Ke(),ii(t),Er(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",Ke(),ii(t),Bm(e,t)},useMemo:function(e,t){G="useMemo",Ke(),ii(t);var a=F.H;F.H=As;try{return qm(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",Ke();var n=F.H;F.H=As;try{return Tm(e,t,a)}finally{F.H=n}},useRef:function(e){return G="useRef",Ke(),Lm(e)},useState:function(e){G="useState",Ke();var t=F.H;F.H=As;try{return Vm(e)}finally{F.H=t}},useDebugValue:function(){G="useDebugValue",Ke()},useDeferredValue:function(e,t){return G="useDeferredValue",Ke(),Gm(e,t)},useTransition:function(){return G="useTransition",Ke(),Xm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",Ke(),Om(e,t,a)},useId:function(){return G="useId",Ke(),Qm()},useFormState:function(e,t){return G="useFormState",Ke(),Mu(),ci(e,t)},useActionState:function(e,t){return G="useActionState",Ke(),ci(e,t)},useOptimistic:function(e){return G="useOptimistic",Ke(),Mm(e)},useHostTransitionStatus:Dr,useMemoCache:wr,useCacheRefresh:function(){return G="useCacheRefresh",Ke(),Zm()},useEffectEvent:function(e){return G="useEffectEvent",Ke(),Hm(e)}},EN={readContext:function(e){return jt(e)},use:Ao,useCallback:function(e,t){return G="useCallback",se(),Ym(e,t)},useContext:function(e){return G="useContext",se(),jt(e)},useEffect:function(e,t){return G="useEffect",se(),$u(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",se(),$m(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",se(),Er(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",se(),Bm(e,t)},useMemo:function(e,t){G="useMemo",se();var a=F.H;F.H=As;try{return qm(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",se();var n=F.H;F.H=As;try{return Tm(e,t,a)}finally{F.H=n}},useRef:function(e){return G="useRef",se(),Lm(e)},useState:function(e){G="useState",se();var t=F.H;F.H=As;try{return Vm(e)}finally{F.H=t}},useDebugValue:function(){G="useDebugValue",se()},useDeferredValue:function(e,t){return G="useDeferredValue",se(),Gm(e,t)},useTransition:function(){return G="useTransition",se(),Xm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",se(),Om(e,t,a)},useId:function(){return G="useId",se(),Qm()},useActionState:function(e,t){return G="useActionState",se(),ci(e,t)},useFormState:function(e,t){return G="useFormState",se(),Mu(),ci(e,t)},useOptimistic:function(e){return G="useOptimistic",se(),Mm(e)},useHostTransitionStatus:Dr,useMemoCache:wr,useCacheRefresh:function(){return G="useCacheRefresh",se(),Zm()},useEffectEvent:function(e){return G="useEffectEvent",se(),Hm(e)}},Fh={readContext:function(e){return jt(e)},use:Ao,useCallback:function(e,t){return G="useCallback",se(),Gu(e,t)},useContext:function(e){return G="useContext",se(),jt(e)},useEffect:function(e,t){G="useEffect",se(),qa(2048,La,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",se(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",se(),qa(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",se(),qa(4,un,e,t)},useMemo:function(e,t){G="useMemo",se();var a=F.H;F.H=Kn;try{return Iu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",se();var n=F.H;F.H=Kn;try{return li(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",se(),yt().memoizedState},useState:function(){G="useState",se();var e=F.H;F.H=Kn;try{return li(Xn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",se()},useDeferredValue:function(e,t){return G="useDeferredValue",se(),ky(e,t)},useTransition:function(){return G="useTransition",se(),Vy()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",se(),Lu(e,t,a)},useId:function(){return G="useId",se(),yt().memoizedState},useFormState:function(e){return G="useFormState",se(),Mu(),Hu(e)},useActionState:function(e){return G="useActionState",se(),Hu(e)},useOptimistic:function(e,t){return G="useOptimistic",se(),vy(e,t)},useHostTransitionStatus:Dr,useMemoCache:wr,useCacheRefresh:function(){return G="useCacheRefresh",se(),yt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",se(),Yu(e)}},DN={readContext:function(e){return jt(e)},use:Ao,useCallback:function(e,t){return G="useCallback",se(),Gu(e,t)},useContext:function(e){return G="useContext",se(),jt(e)},useEffect:function(e,t){G="useEffect",se(),qa(2048,La,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",se(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",se(),qa(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",se(),qa(4,un,e,t)},useMemo:function(e,t){G="useMemo",se();var a=F.H;F.H=Qd;try{return Iu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",se();var n=F.H;F.H=Qd;try{return _l(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",se(),yt().memoizedState},useState:function(){G="useState",se();var e=F.H;F.H=Qd;try{return _l(Xn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",se()},useDeferredValue:function(e,t){return G="useDeferredValue",se(),Uy(e,t)},useTransition:function(){return G="useTransition",se(),My()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",se(),Lu(e,t,a)},useId:function(){return G="useId",se(),yt().memoizedState},useFormState:function(e){return G="useFormState",se(),Mu(),Bu(e)},useActionState:function(e){return G="useActionState",se(),Bu(e)},useOptimistic:function(e,t){return G="useOptimistic",se(),Ny(e,t)},useHostTransitionStatus:Dr,useMemoCache:wr,useCacheRefresh:function(){return G="useCacheRefresh",se(),yt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",se(),Yu(e)}},As={readContext:function(e){return b(),jt(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return G="useCallback",g(),Ke(),Ym(e,t)},useContext:function(e){return G="useContext",g(),Ke(),jt(e)},useEffect:function(e,t){return G="useEffect",g(),Ke(),$u(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),Ke(),$m(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",g(),Ke(),Er(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),Ke(),Bm(e,t)},useMemo:function(e,t){G="useMemo",g(),Ke();var a=F.H;F.H=As;try{return qm(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",g(),Ke();var n=F.H;F.H=As;try{return Tm(e,t,a)}finally{F.H=n}},useRef:function(e){return G="useRef",g(),Ke(),Lm(e)},useState:function(e){G="useState",g(),Ke();var t=F.H;F.H=As;try{return Vm(e)}finally{F.H=t}},useDebugValue:function(){G="useDebugValue",g(),Ke()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),Ke(),Gm(e,t)},useTransition:function(){return G="useTransition",g(),Ke(),Xm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),Ke(),Om(e,t,a)},useId:function(){return G="useId",g(),Ke(),Qm()},useFormState:function(e,t){return G="useFormState",g(),Ke(),ci(e,t)},useActionState:function(e,t){return G="useActionState",g(),Ke(),ci(e,t)},useOptimistic:function(e){return G="useOptimistic",g(),Ke(),Mm(e)},useMemoCache:function(e){return g(),wr(e)},useHostTransitionStatus:Dr,useCacheRefresh:function(){return G="useCacheRefresh",Ke(),Zm()},useEffectEvent:function(e){return G="useEffectEvent",g(),Ke(),Hm(e)}},Kn={readContext:function(e){return b(),jt(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return G="useCallback",g(),se(),Gu(e,t)},useContext:function(e){return G="useContext",g(),se(),jt(e)},useEffect:function(e,t){G="useEffect",g(),se(),qa(2048,La,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),se(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",g(),se(),qa(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),se(),qa(4,un,e,t)},useMemo:function(e,t){G="useMemo",g(),se();var a=F.H;F.H=Kn;try{return Iu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",g(),se();var n=F.H;F.H=Kn;try{return li(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",g(),se(),yt().memoizedState},useState:function(){G="useState",g(),se();var e=F.H;F.H=Kn;try{return li(Xn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",g(),se()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),se(),ky(e,t)},useTransition:function(){return G="useTransition",g(),se(),Vy()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),se(),Lu(e,t,a)},useId:function(){return G="useId",g(),se(),yt().memoizedState},useFormState:function(e){return G="useFormState",g(),se(),Hu(e)},useActionState:function(e){return G="useActionState",g(),se(),Hu(e)},useOptimistic:function(e,t){return G="useOptimistic",g(),se(),vy(e,t)},useMemoCache:function(e){return g(),wr(e)},useHostTransitionStatus:Dr,useCacheRefresh:function(){return G="useCacheRefresh",se(),yt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",g(),se(),Yu(e)}},Qd={readContext:function(e){return b(),jt(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return G="useCallback",g(),se(),Gu(e,t)},useContext:function(e){return G="useContext",g(),se(),jt(e)},useEffect:function(e,t){G="useEffect",g(),se(),qa(2048,La,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),se(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",g(),se(),qa(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),se(),qa(4,un,e,t)},useMemo:function(e,t){G="useMemo",g(),se();var a=F.H;F.H=Kn;try{return Iu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",g(),se();var n=F.H;F.H=Kn;try{return _l(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",g(),se(),yt().memoizedState},useState:function(){G="useState",g(),se();var e=F.H;F.H=Kn;try{return _l(Xn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",g(),se()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),se(),Uy(e,t)},useTransition:function(){return G="useTransition",g(),se(),My()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),se(),Lu(e,t,a)},useId:function(){return G="useId",g(),se(),yt().memoizedState},useFormState:function(e){return G="useFormState",g(),se(),Bu(e)},useActionState:function(e){return G="useActionState",g(),se(),Bu(e)},useOptimistic:function(e,t){return G="useOptimistic",g(),se(),Ny(e,t)},useMemoCache:function(e){return g(),wr(e)},useHostTransitionStatus:Dr,useCacheRefresh:function(){return G="useCacheRefresh",se(),yt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",g(),se(),Yu(e)}};var RN={},_N=new Set,CN=new Set,kN=new Set,UN=new Set,TN=new Set,jN=new Set,ON=new Set,AN=new Set,VN=new Set,MN=new Set;Object.freeze(RN);var Xh={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=nn(e),r=Uo(n);r.payload=t,a!=null&&(Jm(a),r.callback=a),t=To(e,r,n),t!==null&&(fs(n,"this.setState()",e),zt(t,e,n),wl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=nn(e),r=Uo(n);r.tag=yN,r.payload=t,a!=null&&(Jm(a),r.callback=a),t=To(e,r,n),t!==null&&(fs(n,"this.replaceState()",e),zt(t,e,n),wl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nn(e),n=Uo(a);n.tag=vN,t!=null&&(Jm(t),n.callback=t),t=To(e,n,a),t!==null&&(fs(a,"this.forceUpdate()",e),zt(t,e,a),wl(t,e,a))}},Fi=null,Qh=null,Zh=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Jt=!1,zN={},LN={},HN={},BN={},Xi=!1,$N={},Zd={},Ph={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},YN=!1,qN=null;qN=new Set;var mo=!1,Kt=!1,Jh=!1,GN=typeof WeakSet=="function"?WeakSet:Set,da=null,Qi=null,Zi=null,Wt=null,Fa=!1,Wn=null,na=!1,wc=8192,DR={getCacheForType:function(e){var t=jt(Qt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return jt(Qt).controller.signal},getOwner:function(){return rn}};if(typeof Symbol=="function"&&Symbol.for){var Ec=Symbol.for;Ec("selector.component"),Ec("selector.has_pseudo_class"),Ec("selector.role"),Ec("selector.test_id"),Ec("selector.text")}var RR=[],_R=typeof WeakMap=="function"?WeakMap:Map,fa=0,sa=2,dn=4,po=0,Dc=1,Yr=2,Pd=3,Ko=4,Jd=6,IN=5,dt=fa,St=null,Pe=null,Ze=0,Xa=0,Kd=1,qr=2,Rc=3,FN=4,Kh=5,_c=6,Wd=7,Wh=8,Gr=9,vt=Xa,fn=null,Wo=!1,Pi=!1,eg=!1,Vs=0,Vt=po,er=0,tr=0,tg=0,Qa=0,Ir=0,Cc=null,Ha=null,ef=!1,tf=0,XN=0,QN=300,af=1/0,ZN=500,kc=null,Bt=null,ar=null,nf=0,ag=1,ng=2,PN=3,nr=0,JN=1,KN=2,WN=3,e1=4,sf=5,ea=0,sr=null,Ji=null,es=0,sg=0,og=-0,rg=null,t1=null,a1=null,ts=nf,n1=null,CR=50,Uc=0,ig=null,lg=!1,of=!1,kR=50,Fr=0,Tc=null,Ki=!1,rf=null,s1=!1,o1=new Set,UR={},lf=null,Wi=null,cg=!1,ug=!1,cf=!1,dg=!1,or=0,fg={};(function(){for(var e=0;e<wh.length;e++){var t=wh[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),In(a,"on"+t)}In(Vx,"onAnimationEnd"),In(Mx,"onAnimationIteration"),In(zx,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(oR,"onTransitionRun"),In(rR,"onTransitionStart"),In(iR,"onTransitionCancel"),In(Lx,"onTransitionEnd")})(),Ge("onMouseEnter",["mouseout","mouseover"]),Ge("onMouseLeave",["mouseout","mouseover"]),Ge("onPointerEnter",["pointerout","pointerover"]),Ge("onPointerLeave",["pointerout","pointerover"]),nt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nt("onBeforeInput",["compositionend","keypress","textInput","paste"]),nt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jc)),uf="_reactListening"+Math.random().toString(36).slice(2),r1=!1,i1=!1,df=!1,l1=!1,ff=!1,mf=!1,c1=!1,pf={},TR=/\r\n?/g,jR=/\u0000|\uFFFD/g,Xr="http://www.w3.org/1999/xlink",pg="http://www.w3.org/XML/1998/namespace",OR="javascript:throw new Error('React form unexpectedly submitted.')",AR="suppressHydrationWarning",Qr="&",hf="/&",Oc="$",Ac="/$",rr="$?",Zr="$~",el="$!",VR="html",MR="body",zR="head",hg="F!",u1="F",d1="loading",LR="style",ho=0,tl=1,gf=2,gg=null,bg=null,f1={dialog:!0,webview:!0},yg=null,Vc=void 0,m1=typeof setTimeout=="function"?setTimeout:void 0,HR=typeof clearTimeout=="function"?clearTimeout:void 0,Pr=-1,p1=typeof Promise=="function"?Promise:void 0,BR=typeof queueMicrotask=="function"?queueMicrotask:typeof p1<"u"?function(e){return p1.resolve(null).then(e).catch(S4)}:m1,vg=null,Jr=0,Mc=1,h1=2,g1=3,jn=4,On=new Map,b1=new Set,go=bt.d;bt.d={f:function(){var e=go.f(),t=pi();return e||t},r:function(e){var t=ce(e);t!==null&&t.tag===5&&t.type==="form"?Ay(t):go.r(e)},D:function(e){go.D(e),_0("dns-prefetch",e,null)},C:function(e,t){go.C(e,t),_0("preconnect",e,t)},L:function(e,t,a){go.L(e,t,a);var n=al;if(n&&e&&t){var r='link[rel="preload"][as="'+be(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+be(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+be(a.imageSizes)+'"]')):r+='[href="'+be(e)+'"]';var i=r;switch(t){case"style":i=bi(e);break;case"script":i=yi(e)}On.has(i)||(e=We({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),On.set(i,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Yl(i))||t==="script"&&n.querySelector(ql(i))||(t=n.createElement("link"),ha(t,"link",e),Ce(t),n.head.appendChild(t)))}},m:function(e,t){go.m(e,t);var a=al;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+be(n)+'"][href="'+be(e)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=yi(e)}if(!On.has(i)&&(e=We({rel:"modulepreload",href:e},t),On.set(i,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ql(i)))return}n=a.createElement("link"),ha(n,"link",e),Ce(n),a.head.appendChild(n)}}},X:function(e,t){go.X(e,t);var a=al;if(a&&e){var n=Be(a).hoistableScripts,r=yi(e),i=n.get(r);i||(i=a.querySelector(ql(r)),i||(e=We({src:e,async:!0},t),(t=On.get(r))&&$p(e,t),i=a.createElement("script"),Ce(i),ha(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}},S:function(e,t,a){go.S(e,t,a);var n=al;if(n&&e){var r=Be(n).hoistableStyles,i=bi(e);t=t||"default";var d=r.get(i);if(!d){var p={loading:Jr,preload:null};if(d=n.querySelector(Yl(i)))p.loading=Mc|jn;else{e=We({rel:"stylesheet",href:e,"data-precedence":t},a),(a=On.get(i))&&Bp(e,a);var y=d=n.createElement("link");Ce(y),ha(y,"link",e),y._p=new Promise(function(S,A){y.onload=S,y.onerror=A}),y.addEventListener("load",function(){p.loading|=Mc}),y.addEventListener("error",function(){p.loading|=h1}),p.loading|=jn,ud(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:p},r.set(i,d)}}},M:function(e,t){go.M(e,t);var a=al;if(a&&e){var n=Be(a).hoistableScripts,r=yi(e),i=n.get(r);i||(i=a.querySelector(ql(r)),i||(e=We({src:e,async:!0,type:"module"},t),(t=On.get(r))&&$p(e,t),i=a.createElement("script"),Ce(i),ha(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}};var al=typeof document>"u"?null:document,bf=null,$R=6e4,YR=800,qR=500,xg=0,Ng=null,yf=null,Kr=nD,zc={$$typeof:Rs,Provider:null,Consumer:null,_currentValue:Kr,_currentValue2:Kr,_threadCount:0},y1="%c%s%c",v1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",x1="",vf=" ",GR=Function.prototype.bind,N1=!1,S1=null,w1=null,E1=null,D1=null,R1=null,_1=null,C1=null,k1=null,U1=null,T1=null;S1=function(e,t,a,n){t=s(e,t),t!==null&&(a=o(t.memoizedState,a,0,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=We({},e.memoizedProps),a=xa(e,2),a!==null&&zt(a,e,2))},w1=function(e,t,a){t=s(e,t),t!==null&&(a=u(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=We({},e.memoizedProps),a=xa(e,2),a!==null&&zt(a,e,2))},E1=function(e,t,a,n){t=s(e,t),t!==null&&(a=l(t.memoizedState,a,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=We({},e.memoizedProps),a=xa(e,2),a!==null&&zt(a,e,2))},D1=function(e,t,a){e.pendingProps=o(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xa(e,2),t!==null&&zt(t,e,2)},R1=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xa(e,2),t!==null&&zt(t,e,2)},_1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xa(e,2),t!==null&&zt(t,e,2)},C1=function(e){var t=xa(e,2);t!==null&&zt(t,e,2)},k1=function(e){var t=Bn(),a=xa(e,t);a!==null&&zt(a,e,t)},U1=function(e){h=e},T1=function(e){f=e};var xf=!0,Nf=null,Sg=!1,ir=null,lr=null,cr=null,Lc=new Map,Hc=new Map,ur=[],IR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Sf=null;if(hd.prototype.render=Xp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var n=t.current,r=nn(n);Yp(n,r,a,t,null,null)},hd.prototype.unmount=Xp.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(dt&(sa|dn))!==fa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Yp(e.current,2,null,e,null,null),pi(),t[$o]=null}},hd.prototype.unstable_scheduleHydration=function(e){if(e){var t=$n();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ur.length&&t!==0&&t<ur[a].priority;a++);ur.splice(a,0,e),a===0&&$0(e)}},(function(){var e=Qp.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
229
|
+
- react: `+(e+`
|
|
230
|
+
- react-dom: 19.2.4
|
|
231
|
+
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),bt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=re(t),e=e!==null?me(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.4"};return e.overrideHookState=S1,e.overrideHookStateDeletePath=w1,e.overrideHookStateRenamePath=E1,e.overrideProps=D1,e.overridePropsDeletePath=R1,e.overridePropsRenamePath=_1,e.scheduleUpdate=C1,e.scheduleRetry=k1,e.setErrorHandler=U1,e.setSuspenseHandler=T1,e.scheduleRefresh=T,e.scheduleRoot=R,e.setRefreshHandler=B,e.getCurrentFiber=Q4,No(e)})()&&Ts&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var j1=window.location.protocol;/^(https?|file):$/.test(j1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(j1==="file:"?`
|
|
232
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}$c.createRoot=function(e,t){if(!L(e))throw Error("Target container is not a DOM element.");I0(e);var a=!1,n="",r=Yy,i=qy,d=Gy;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Ds&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
233
|
+
|
|
234
|
+
let root = createRoot(domContainer);
|
|
235
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=A0(e,1,!1,null,null,a,n,null,r,i,d,G0),e[$o]=t.current,Cp(e),new Xp(t)},$c.hydrateRoot=function(e,t,a){if(!L(e))throw Error("Target container is not a DOM element.");I0(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var n=!1,r="",i=Yy,d=qy,p=Gy,y=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(y=a.formState)),t=A0(e,1,!0,t,a??null,n,r,y,i,d,p,G0),t.context=V0(null),a=t.current,n=nn(a),n=yn(n),r=Uo(n),r.callback=null,To(a,r,n),fs(n,"hydrateRoot()",null),a=n,t.current.lanes=a,bn(t,a),ws(t),e[$o]=t.current,Cp(e),new hd(t)},$c.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),$c}var cS;function cC(){return cS||(cS=1,Ug.exports=lC()),Ug.exports}var uC=cC();var yw=s=>{throw TypeError(s)},dC=(s,o,l)=>o.has(s)||yw("Cannot "+l),Ag=(s,o,l)=>(dC(s,o,"read from private field"),l?l.call(s):o.get(s)),fC=(s,o,l)=>o.has(s)?yw("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(s):o.set(s,l),uS="popstate";function dS(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function mC(s={}){function o(c,u){let f=u.state?.masked,{pathname:h,search:g,hash:b}=f||c.location;return Wc("",{pathname:h,search:g,hash:b},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function l(c,u){return typeof u=="string"?u:zs(u)}return hC(o,l,null,s)}function tt(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function $t(s,o){if(!s){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function pC(){return Math.random().toString(36).substring(2,10)}function fS(s,o){return{usr:s.state,key:s.key,idx:o,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function Wc(s,o,l=null,c,u){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof o=="string"?xo(o):o,state:l,key:o&&o.key||c||pC(),unstable_mask:u}}function zs({pathname:s="/",search:o="",hash:l=""}){return o&&o!=="?"&&(s+=o.charAt(0)==="?"?o:"?"+o),l&&l!=="#"&&(s+=l.charAt(0)==="#"?l:"#"+l),s}function xo(s){let o={};if(s){let l=s.indexOf("#");l>=0&&(o.hash=s.substring(l),s=s.substring(0,l));let c=s.indexOf("?");c>=0&&(o.search=s.substring(c),s=s.substring(0,c)),s&&(o.pathname=s)}return o}function hC(s,o,l,c={}){let{window:u=document.defaultView,v5Compat:f=!1}=c,h=u.history,g="POP",b=null,v=D();v==null&&(v=0,h.replaceState({...h.state,idx:v},""));function D(){return(h.state||{idx:null}).idx}function x(){g="POP";let L=D(),Z=L==null?null:L-v;v=L,b&&b({action:g,location:B.location,delta:Z})}function N(L,Z){g="PUSH";let J=dS(L)?L:Wc(B.location,L,Z);v=D()+1;let te=fS(J,v),ue=B.createHref(J.unstable_mask||J);try{h.pushState(te,"",ue)}catch(re){if(re instanceof DOMException&&re.name==="DataCloneError")throw re;u.location.assign(ue)}f&&b&&b({action:g,location:B.location,delta:1})}function R(L,Z){g="REPLACE";let J=dS(L)?L:Wc(B.location,L,Z);v=D();let te=fS(J,v),ue=B.createHref(J.unstable_mask||J);h.replaceState(te,"",ue),f&&b&&b({action:g,location:B.location,delta:0})}function T(L){return vw(L)}let B={get action(){return g},get location(){return s(u,h)},listen(L){if(b)throw new Error("A history only accepts one active listener");return u.addEventListener(uS,x),b=L,()=>{u.removeEventListener(uS,x),b=null}},createHref(L){return o(u,L)},createURL:T,encodeLocation(L){let Z=T(L);return{pathname:Z.pathname,search:Z.search,hash:Z.hash}},push:N,replace:R,go(L){return h.go(L)}};return B}function vw(s,o=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),tt(l,"No window.location.(origin|href) available to create URL");let c=typeof s=="string"?s:zs(s);return c=c.replace(/ $/,"%20"),!o&&c.startsWith("//")&&(c=l+c),new URL(c,l)}var Xc,mS=class{constructor(s){if(fC(this,Xc,new Map),s)for(let[o,l]of s)this.set(o,l)}get(s){if(Ag(this,Xc).has(s))return Ag(this,Xc).get(s);if(s.defaultValue!==void 0)return s.defaultValue;throw new Error("No value found for context")}set(s,o){Ag(this,Xc).set(s,o)}};Xc=new WeakMap;var gC=new Set(["lazy","caseSensitive","path","id","index","children"]);function bC(s){return gC.has(s)}var yC=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function vC(s){return yC.has(s)}function xC(s){return s.index===!0}function eu(s,o,l=[],c={},u=!1){return s.map((f,h)=>{let g=[...l,String(h)],b=typeof f.id=="string"?f.id:g.join("-");if(tt(f.index!==!0||!f.children,"Cannot specify children on an index route"),tt(u||!c[b],`Found a route id collision on id "${b}". Route id's must be globally unique within Data Router usages`),xC(f)){let v={...f,id:b};return c[b]=pS(v,o(v)),v}else{let v={...f,id:b,children:void 0};return c[b]=pS(v,o(v)),f.children&&(v.children=eu(f.children,o,g,c,u)),v}})}function pS(s,o){return Object.assign(s,{...o,...typeof o.lazy=="object"&&o.lazy!=null?{lazy:{...s.lazy,...o.lazy}}:{}})}function dr(s,o,l="/"){return Qc(s,o,l,!1)}function Qc(s,o,l,c){let u=typeof o=="string"?xo(o):o,f=Mn(u.pathname||"/",l);if(f==null)return null;let h=xw(s);SC(h);let g=null;for(let b=0;g==null&&b<h.length;++b){let v=OC(f);g=TC(h[b],v,c)}return g}function NC(s,o){let{route:l,pathname:c,params:u}=s;return{id:l.id,pathname:c,params:u,data:o[l.id],loaderData:o[l.id],handle:l.handle}}function xw(s,o=[],l=[],c="",u=!1){let f=(h,g,b=u,v)=>{let D={relativePath:v===void 0?h.path||"":v,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(D.relativePath.startsWith("/")){if(!D.relativePath.startsWith(c)&&b)return;tt(D.relativePath.startsWith(c),`Absolute route path "${D.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),D.relativePath=D.relativePath.slice(c.length)}let x=as([c,D.relativePath]),N=l.concat(D);h.children&&h.children.length>0&&(tt(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),xw(h.children,o,N,x,b)),!(h.path==null&&!h.index)&&o.push({path:x,score:kC(x,h.index),routesMeta:N})};return s.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))f(h,g);else for(let b of Nw(h.path))f(h,g,!0,b)}),o}function Nw(s){let o=s.split("/");if(o.length===0)return[];let[l,...c]=o,u=l.endsWith("?"),f=l.replace(/\?$/,"");if(c.length===0)return u?[f,""]:[f];let h=Nw(c.join("/")),g=[];return g.push(...h.map(b=>b===""?f:[f,b].join("/"))),u&&g.push(...h),g.map(b=>s.startsWith("/")&&b===""?"/":b)}function SC(s){s.sort((o,l)=>o.score!==l.score?l.score-o.score:UC(o.routesMeta.map(c=>c.childrenIndex),l.routesMeta.map(c=>c.childrenIndex)))}var wC=/^:[\w-]+$/,EC=3,DC=2,RC=1,_C=10,CC=-2,hS=s=>s==="*";function kC(s,o){let l=s.split("/"),c=l.length;return l.some(hS)&&(c+=CC),o&&(c+=DC),l.filter(u=>!hS(u)).reduce((u,f)=>u+(wC.test(f)?EC:f===""?RC:_C),c)}function UC(s,o){return s.length===o.length&&s.slice(0,-1).every((c,u)=>c===o[u])?s[s.length-1]-o[o.length-1]:0}function TC(s,o,l=!1){let{routesMeta:c}=s,u={},f="/",h=[];for(let g=0;g<c.length;++g){let b=c[g],v=g===c.length-1,D=f==="/"?o:o.slice(f.length)||"/",x=zf({path:b.relativePath,caseSensitive:b.caseSensitive,end:v},D),N=b.route;if(!x&&v&&l&&!c[c.length-1].route.index&&(x=zf({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},D)),!x)return null;Object.assign(u,x.params),h.push({params:u,pathname:as([f,x.pathname]),pathnameBase:MC(as([f,x.pathnameBase])),route:N}),x.pathnameBase!=="/"&&(f=as([f,x.pathnameBase]))}return h}function zf(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[l,c]=jC(s.path,s.caseSensitive,s.end),u=o.match(l);if(!u)return null;let f=u[0],h=f.replace(/(.)\/+$/,"$1"),g=u.slice(1);return{params:c.reduce((v,{paramName:D,isOptional:x},N)=>{if(D==="*"){let T=g[N]||"";h=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const R=g[N];return x&&!R?v[D]=void 0:v[D]=(R||"").replace(/%2F/g,"/"),v},{}),pathname:f,pathnameBase:h,pattern:s}}function jC(s,o=!1,l=!0){$t(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let c=[],u="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,b,v,D)=>{if(c.push({paramName:g,isOptional:b!=null}),b){let x=D.charAt(v+h.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(c.push({paramName:"*"}),u+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?u+="\\/*$":s!==""&&s!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,o?void 0:"i"),c]}function OC(s){try{return s.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return $t(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),s}}function Mn(s,o){if(o==="/")return s;if(!s.toLowerCase().startsWith(o.toLowerCase()))return null;let l=o.endsWith("/")?o.length-1:o.length,c=s.charAt(l);return c&&c!=="/"?null:s.slice(l)||"/"}function AC({basename:s,pathname:o}){return o==="/"?s:as([s,o])}var Sw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kg=s=>Sw.test(s);function VC(s,o="/"){let{pathname:l,search:c="",hash:u=""}=typeof s=="string"?xo(s):s,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=gS(l.substring(1),"/"):f=gS(l,o)):f=o,{pathname:f,search:zC(c),hash:LC(u)}}function gS(s,o){let l=o.replace(/\/+$/,"").split("/");return s.split("/").forEach(u=>{u===".."?l.length>1&&l.pop():u!=="."&&l.push(u)}),l.length>1?l.join("/"):"/"}function Vg(s,o,l,c){return`Cannot include a '${s}' character in a manually specified \`to.${o}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ww(s){return s.filter((o,l)=>l===0||o.route.path&&o.route.path.length>0)}function Bf(s){let o=ww(s);return o.map((l,c)=>c===o.length-1?l.pathname:l.pathnameBase)}function su(s,o,l,c=!1){let u;typeof s=="string"?u=xo(s):(u={...s},tt(!u.pathname||!u.pathname.includes("?"),Vg("?","pathname","search",u)),tt(!u.pathname||!u.pathname.includes("#"),Vg("#","pathname","hash",u)),tt(!u.search||!u.search.includes("#"),Vg("#","search","hash",u)));let f=s===""||u.pathname==="",h=f?"/":u.pathname,g;if(h==null)g=l;else{let x=o.length-1;if(!c&&h.startsWith("..")){let N=h.split("/");for(;N[0]==="..";)N.shift(),x-=1;u.pathname=N.join("/")}g=x>=0?o[x]:"/"}let b=VC(u,g),v=h&&h!=="/"&&h.endsWith("/"),D=(f||h===".")&&l.endsWith("/");return!b.pathname.endsWith("/")&&(v||D)&&(b.pathname+="/"),b}var as=s=>s.join("/").replace(/\/\/+/g,"/"),MC=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),zC=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,LC=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,ou=class{constructor(s,o,l,c=!1){this.status=s,this.statusText=o||"",this.internal=c,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function tu(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function ru(s){return s.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ew=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dw(s,o){let l=s;if(typeof l!="string"||!Sw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let c=l,u=!1;if(Ew)try{let f=new URL(window.location.href),h=l.startsWith("//")?new URL(f.protocol+l):new URL(l),g=Mn(h.pathname,o);h.origin===f.origin&&g!=null?l=g+h.search+h.hash:u=!0}catch{$t(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:u,to:l}}var mr=Symbol("Uninstrumented");function HC(s,o){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};s.forEach(u=>u({id:o.id,index:o.index,path:o.path,instrument(f){let h=Object.keys(l);for(let g of h)f[g]&&l[g].push(f[g])}}));let c={};if(typeof o.lazy=="function"&&l.lazy.length>0){let u=il(l.lazy,o.lazy,()=>{});u&&(c.lazy=u)}if(typeof o.lazy=="object"){let u=o.lazy;["middleware","loader","action"].forEach(f=>{let h=u[f],g=l[`lazy.${f}`];if(typeof h=="function"&&g.length>0){let b=il(g,h,()=>{});b&&(c.lazy=Object.assign(c.lazy||{},{[f]:b}))}})}return["loader","action"].forEach(u=>{let f=o[u];if(typeof f=="function"&&l[u].length>0){let h=f[mr]??f,g=il(l[u],h,(...b)=>bS(b[0]));g&&(u==="loader"&&h.hydrate===!0&&(g.hydrate=!0),g[mr]=h,c[u]=g)}}),o.middleware&&o.middleware.length>0&&l.middleware.length>0&&(c.middleware=o.middleware.map(u=>{let f=u[mr]??u,h=il(l.middleware,f,(...g)=>bS(g[0]));return h?(h[mr]=f,h):u})),c}function BC(s,o){let l={navigate:[],fetch:[]};if(o.forEach(c=>c({instrument(u){let f=Object.keys(u);for(let h of f)u[h]&&l[h].push(u[h])}})),l.navigate.length>0){let c=s.navigate[mr]??s.navigate,u=il(l.navigate,c,(...f)=>{let[h,g]=f;return{to:typeof h=="number"||typeof h=="string"?h:h?zs(h):".",...yS(s,g??{})}});u&&(u[mr]=c,s.navigate=u)}if(l.fetch.length>0){let c=s.fetch[mr]??s.fetch,u=il(l.fetch,c,(...f)=>{let[h,,g,b]=f;return{href:g??".",fetcherKey:h,...yS(s,b??{})}});u&&(u[mr]=c,s.fetch=u)}return s}function il(s,o,l){return s.length===0?null:async(...c)=>{let u=await Rw(s,l(...c),()=>o(...c),s.length-1);if(u.type==="error")throw u.value;return u.value}}async function Rw(s,o,l,c){let u=s[c],f;if(u){let h,g=async()=>(h?console.error("You cannot call instrumented handlers more than once"):h=Rw(s,o,l,c-1),f=await h,tt(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await u(g,o)}catch(b){console.error("An instrumentation function threw an error:",b)}h||await g(),await h}else try{f={type:"success",value:await l()}}catch(h){f={type:"error",value:h}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function bS(s){let{request:o,context:l,params:c,unstable_pattern:u}=s;return{request:$C(o),params:{...c},unstable_pattern:u,context:YC(l)}}function yS(s,o){return{currentUrl:zs(s.state.location),..."formMethod"in o?{formMethod:o.formMethod}:{},..."formEncType"in o?{formEncType:o.formEncType}:{},..."formData"in o?{formData:o.formData}:{},..."body"in o?{body:o.body}:{}}}function $C(s){return{method:s.method,url:s.url,headers:{get:(...o)=>s.headers.get(...o)}}}function YC(s){if(GC(s)){let o={...s};return Object.freeze(o),o}else return{get:o=>s.get(o)}}var qC=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function GC(s){if(s===null||typeof s!="object")return!1;const o=Object.getPrototypeOf(s);return o===Object.prototype||o===null||Object.getOwnPropertyNames(o).sort().join("\0")===qC}var _w=["POST","PUT","PATCH","DELETE"],IC=new Set(_w),FC=["GET",..._w],XC=new Set(FC),Cw=new Set([301,302,303,307,308]),QC=new Set([307,308]),Mg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ZC={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},PC=s=>({hasErrorBoundary:!!s.hasErrorBoundary}),kw="remix-router-transitions",Uw=Symbol("ResetLoaderData");function JC(s){const o=s.window?s.window:typeof window<"u"?window:void 0,l=typeof o<"u"&&typeof o.document<"u"&&typeof o.document.createElement<"u";tt(s.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=s.hydrationRouteProperties||[],u=s.mapRouteProperties||PC,f=u;if(s.unstable_instrumentations){let k=s.unstable_instrumentations;f=z=>({...u(z),...HC(k.map(I=>I.route).filter(Boolean),z)})}let h={},g=eu(s.routes,f,void 0,h),b,v=s.basename||"/";v.startsWith("/")||(v=`/${v}`);let D=s.dataStrategy||ak,x={...s.future},N=null,R=new Set,T=null,B=null,L=null,Z=s.hydrationData!=null,J=dr(g,s.history.location,v),te=!1,ue=null,re,me;if(J==null&&!s.patchRoutesOnNavigation){let k=An(404,{pathname:s.history.location.pathname}),{matches:z,route:I}=Df(g);re=!0,me=!re,J=z,ue={[I.id]:k}}else if(J&&!s.hydrationData&&ka(J,g,s.history.location.pathname).active&&(J=null),J)if(J.some(k=>k.route.lazy))re=!1,me=!re;else if(!J.some(k=>Wg(k.route)))re=!0,me=!re;else{let k=s.hydrationData?s.hydrationData.loaderData:null,z=s.hydrationData?s.hydrationData.errors:null,I=J;if(z){let oe=J.findIndex(le=>z[le.route.id]!==void 0);I=I.slice(0,oe+1)}me=!1,re=I.every(oe=>{let le=Tw(oe.route,k,z);return me=me||le.renderFallback,!le.shouldLoad})}else{re=!1,me=!re,J=[];let k=ka(null,g,s.history.location.pathname);k.active&&k.matches&&(te=!0,J=k.matches)}let fe,_={historyAction:s.history.action,location:s.history.location,matches:J,initialized:re,renderFallback:me,navigation:Mg,restoreScrollPosition:s.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:s.hydrationData&&s.hydrationData.loaderData||{},actionData:s.hydrationData&&s.hydrationData.actionData||null,errors:s.hydrationData&&s.hydrationData.errors||ue,fetchers:new Map,blockers:new Map},Q="POP",H=null,$=!1,P,X=!1,ae=new Map,Ne=null,ee=!1,ie=!1,he=new Set,W=new Map,ve=0,q=-1,ge=new Map,Ue=new Set,Re=new Map,mt=new Map,Mt=new Set,ct=new Map,ta,Ft=null;function Ja(){if(N=s.history.listen(({action:k,location:z,delta:I})=>{if(ta){ta(),ta=void 0;return}$t(ct.size===0||I!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let oe=Ee({currentLocation:_.location,nextLocation:z,historyAction:k});if(oe&&I!=null){let le=new Promise(ke=>{ta=ke});s.history.go(I*-1),ce(oe,{state:"blocked",location:z,proceed(){ce(oe,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),le.then(()=>s.history.go(I))},reset(){let ke=new Map(_.blockers);ke.set(oe,Yc),Rt({blockers:ke})}}),H?.resolve(),H=null;return}return ft(k,z)}),l){xk(o,ae);let k=()=>Nk(o,ae);o.addEventListener("pagehide",k),Ne=()=>o.removeEventListener("pagehide",k)}return _.initialized||ft("POP",_.location,{initialHydration:!0}),fe}function xe(){N&&N(),Ne&&Ne(),R.clear(),P&&P.abort(),_.fetchers.forEach((k,z)=>yn(z)),_.blockers.forEach((k,z)=>ne(z))}function ss(k){return R.add(k),()=>R.delete(k)}function Rt(k,z={}){k.matches&&(k.matches=k.matches.map(le=>{let ke=h[le.route.id],be=le.route;return be.element!==ke.element||be.errorElement!==ke.errorElement||be.hydrateFallbackElement!==ke.hydrateFallbackElement?{...le,route:ke}:le})),_={..._,...k};let I=[],oe=[];_.fetchers.forEach((le,ke)=>{le.state==="idle"&&(Mt.has(ke)?I.push(ke):oe.push(ke))}),Mt.forEach(le=>{!_.fetchers.has(le)&&!W.has(le)&&I.push(le)}),[...R].forEach(le=>le(_,{deletedFetchers:I,newErrors:k.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),I.forEach(le=>yn(le)),oe.forEach(le=>_.fetchers.delete(le))}function Se(k,z,{flushSync:I}={}){let oe=_.actionData!=null&&_.navigation.formMethod!=null&&Ea(_.navigation.formMethod)&&_.navigation.state==="loading"&&k.state?._isRedirect!==!0,le;z.actionData?Object.keys(z.actionData).length>0?le=z.actionData:le=null:oe?le=_.actionData:le=null;let ke=z.loaderData?CS(_.loaderData,z.loaderData,z.matches||[],z.errors):_.loaderData,be=_.blockers;be.size>0&&(be=new Map(be),be.forEach((Ve,Te)=>be.set(Te,Yc)));let je=ee?!1:oa(k,z.matches||_.matches),De=$===!0||_.navigation.formMethod!=null&&Ea(_.navigation.formMethod)&&k.state?._isRedirect!==!0;b&&(g=b,b=void 0),ee||Q==="POP"||(Q==="PUSH"?s.history.push(k,k.state):Q==="REPLACE"&&s.history.replace(k,k.state));let Me;if(Q==="POP"){let Ve=ae.get(_.location.pathname);Ve&&Ve.has(k.pathname)?Me={currentLocation:_.location,nextLocation:k}:ae.has(k.pathname)&&(Me={currentLocation:k,nextLocation:_.location})}else if(X){let Ve=ae.get(_.location.pathname);Ve?Ve.add(k.pathname):(Ve=new Set([k.pathname]),ae.set(_.location.pathname,Ve)),Me={currentLocation:_.location,nextLocation:k}}Rt({...z,actionData:le,loaderData:ke,historyAction:Q,location:k,initialized:!0,renderFallback:!1,navigation:Mg,revalidation:"idle",restoreScrollPosition:je,preventScrollReset:De,blockers:be},{viewTransitionOpts:Me,flushSync:I===!0}),Q="POP",$=!1,X=!1,ee=!1,ie=!1,H?.resolve(),H=null,Ft?.resolve(),Ft=null}async function Je(k,z){if(H?.resolve(),H=null,typeof k=="number"){H||(H=jS());let _t=H.promise;return s.history.go(k),_t}let I=Fg(_.location,_.matches,v,k,z?.fromRouteId,z?.relative),{path:oe,submission:le,error:ke}=vS(!1,I,z),be;z?.unstable_mask&&(be={pathname:"",search:"",hash:"",...typeof z.unstable_mask=="string"?xo(z.unstable_mask):{..._.location.unstable_mask,...z.unstable_mask}});let je=_.location,De=Wc(je,oe,z&&z.state,void 0,be);De={...De,...s.history.encodeLocation(De)};let Me=z&&z.replace!=null?z.replace:void 0,Ve="PUSH";Me===!0?Ve="REPLACE":Me===!1||le!=null&&Ea(le.formMethod)&&le.formAction===_.location.pathname+_.location.search&&(Ve="REPLACE");let Te=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,pt=(z&&z.flushSync)===!0,et=Ee({currentLocation:je,nextLocation:De,historyAction:Ve});if(et){ce(et,{state:"blocked",location:De,proceed(){ce(et,{state:"proceeding",proceed:void 0,reset:void 0,location:De}),Je(k,z)},reset(){let _t=new Map(_.blockers);_t.set(et,Yc),Rt({blockers:_t})}});return}await ft(Ve,De,{submission:le,pendingError:ke,preventScrollReset:Te,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:pt,callSiteDefaultShouldRevalidate:z&&z.unstable_defaultShouldRevalidate})}function qe(){Ft||(Ft=jS()),bn(),Rt({revalidation:"loading"});let k=Ft.promise;return _.navigation.state==="submitting"?k:_.navigation.state==="idle"?(ft(_.historyAction,_.location,{startUninterruptedRevalidation:!0}),k):(ft(Q||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:X===!0}),k)}async function ft(k,z,I){P&&P.abort(),P=null,Q=k,ee=(I&&I.startUninterruptedRevalidation)===!0,Ge(_.location,_.matches),$=(I&&I.preventScrollReset)===!0,X=(I&&I.enableViewTransition)===!0;let oe=b||g,le=I&&I.overrideNavigation,ke=I?.initialHydration&&_.matches&&_.matches.length>0&&!te?_.matches:dr(oe,z,v),be=(I&&I.flushSync)===!0;if(ke&&_.initialized&&!ie&&uk(_.location,z)&&!(I&&I.submission&&Ea(I.submission.formMethod))){Se(z,{matches:ke},{flushSync:be});return}let je=ka(ke,oe,z.pathname);if(je.active&&je.matches&&(ke=je.matches),!ke){let{error:Yt,notFoundMatches:ra,route:ht}=Be(z.pathname);Se(z,{matches:ra,loaderData:{},errors:{[ht.id]:Yt}},{flushSync:be});return}P=new AbortController;let De=ol(s.history,z,P.signal,I&&I.submission),Me=s.getContext?await s.getContext():new mS,Ve;if(I&&I.pendingError)Ve=[fr(ke).route.id,{type:"error",error:I.pendingError}];else if(I&&I.submission&&Ea(I.submission.formMethod)){let Yt=await wt(De,z,I.submission,ke,Me,je.active,I&&I.initialHydration===!0,{replace:I.replace,flushSync:be});if(Yt.shortCircuited)return;if(Yt.pendingActionResult){let[ra,ht]=Yt.pendingActionResult;if(mn(ht)&&tu(ht.error)&&ht.error.status===404){P=null,Se(z,{matches:Yt.matches,loaderData:{},errors:{[ra]:ht.error}});return}}ke=Yt.matches||ke,Ve=Yt.pendingActionResult,le=zg(z,I.submission),be=!1,je.active=!1,De=ol(s.history,De.url,De.signal)}let{shortCircuited:Te,matches:pt,loaderData:et,errors:_t}=await No(De,z,ke,Me,je.active,le,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,be,Ve,I&&I.callSiteDefaultShouldRevalidate);Te||(P=null,Se(z,{matches:pt||ke,...kS(Ve),loaderData:et,errors:_t}))}async function wt(k,z,I,oe,le,ke,be,je={}){bn();let De=yk(z,I);if(Rt({navigation:De},{flushSync:je.flushSync===!0}),ke){let Te=await Ys(oe,z.pathname,k.signal);if(Te.type==="aborted")return{shortCircuited:!0};if(Te.type==="error"){if(Te.partialMatches.length===0){let{matches:et,route:_t}=Df(g);return{matches:et,pendingActionResult:[_t.id,{type:"error",error:Te.error}]}}let pt=fr(Te.partialMatches).route.id;return{matches:Te.partialMatches,pendingActionResult:[pt,{type:"error",error:Te.error}]}}else if(Te.matches)oe=Te.matches;else{let{notFoundMatches:pt,error:et,route:_t}=Be(z.pathname);return{matches:pt,pendingActionResult:[_t.id,{type:"error",error:et}]}}}let Me,Ve=Tf(oe,z);if(!Ve.route.action&&!Ve.route.lazy)Me={type:"error",error:An(405,{method:k.method,pathname:z.pathname,routeId:Ve.route.id})};else{let Te=ll(f,h,k,oe,Ve,be?[]:c,le),pt=await Bn(k,Te,le,null);if(Me=pt[Ve.route.id],!Me){for(let et of oe)if(pt[et.route.id]){Me=pt[et.route.id];break}}if(k.signal.aborted)return{shortCircuited:!0}}if(ei(Me)){let Te;return je&&je.replace!=null?Te=je.replace:Te=DS(Me.response.headers.get("Location"),new URL(k.url),v,s.history)===_.location.pathname+_.location.search,await gn(k,Me,!0,{submission:I,replace:Te}),{shortCircuited:!0}}if(mn(Me)){let Te=fr(oe,Ve.route.id);return(je&&je.replace)!==!0&&(Q="PUSH"),{matches:oe,pendingActionResult:[Te.route.id,Me,Ve.route.id]}}return{matches:oe,pendingActionResult:[Ve.route.id,Me]}}async function No(k,z,I,oe,le,ke,be,je,De,Me,Ve,Te,pt){let et=ke||zg(z,be),_t=be||je||TS(et),Yt=!ee&&!Me;if(le){if(Yt){let ia=we(Te);Rt({navigation:et,...ia!==void 0?{actionData:ia}:{}},{flushSync:Ve})}let ot=await Ys(I,z.pathname,k.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){if(ot.partialMatches.length===0){let{matches:Eo,route:ls}=Df(g);return{matches:Eo,loaderData:{},errors:{[ls.id]:ot.error}}}let ia=fr(ot.partialMatches).route.id;return{matches:ot.partialMatches,loaderData:{},errors:{[ia]:ot.error}}}else if(ot.matches)I=ot.matches;else{let{error:ia,notFoundMatches:Eo,route:ls}=Be(z.pathname);return{matches:Eo,loaderData:{},errors:{[ls.id]:ia}}}}let ra=b||g,{dsMatches:ht,revalidatingFetchers:Ua}=xS(k,oe,f,h,s.history,_,I,_t,z,Me?[]:c,Me===!0,ie,he,Mt,Re,Ue,ra,v,s.patchRoutesOnNavigation!=null,Te,pt);if(q=++ve,!s.dataStrategy&&!ht.some(ot=>ot.shouldLoad)&&!ht.some(ot=>ot.route.middleware&&ot.route.middleware.length>0)&&Ua.length===0){let ot=$n();return Se(z,{matches:I,loaderData:{},errors:Te&&mn(Te[1])?{[Te[0]]:Te[1].error}:null,...kS(Te),...ot?{fetchers:new Map(_.fetchers)}:{}},{flushSync:Ve}),{shortCircuited:!0}}if(Yt){let ot={};if(!le){ot.navigation=et;let ia=we(Te);ia!==void 0&&(ot.actionData=ia)}Ua.length>0&&(ot.fetchers=hn(Ua)),Rt(ot,{flushSync:Ve})}Ua.forEach(ot=>{ya(ot.key),ot.controller&&W.set(ot.key,ot.controller)});let qt=()=>Ua.forEach(ot=>ya(ot.key));P&&P.signal.addEventListener("abort",qt);let{loaderResults:vn,fetcherResults:va}=await So(ht,Ua,k,oe);if(k.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",qt),Ua.forEach(ot=>W.delete(ot.key));let Ka=Rf(vn);if(Ka)return await gn(k,Ka.result,!0,{replace:De}),{shortCircuited:!0};if(Ka=Rf(va),Ka)return Ue.add(Ka.key),await gn(k,Ka.result,!0,{replace:De}),{shortCircuited:!0};let{loaderData:Gs,errors:rs}=_S(_,I,vn,Te,Ua,va);Me&&_.errors&&(rs={..._.errors,...rs});let qn=$n(),is=w(q),Gn=qn||is||Ua.length>0;return{matches:I,loaderData:Gs,errors:rs,...Gn?{fetchers:new Map(_.fetchers)}:{}}}function we(k){if(k&&!mn(k[1]))return{[k[0]]:k[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function hn(k){return k.forEach(z=>{let I=_.fetchers.get(z.key),oe=qc(void 0,I?I.data:void 0);_.fetchers.set(z.key,oe)}),new Map(_.fetchers)}async function _a(k,z,I,oe){ya(k);let le=(oe&&oe.flushSync)===!0,ke=b||g,be=Fg(_.location,_.matches,v,I,z,oe?.relative),je=dr(ke,be,v),De=ka(je,ke,be);if(De.active&&De.matches&&(je=De.matches),!je){Ca(k,z,An(404,{pathname:be}),{flushSync:le});return}let{path:Me,submission:Ve,error:Te}=vS(!0,be,oe);if(Te){Ca(k,z,Te,{flushSync:le});return}let pt=s.getContext?await s.getContext():new mS,et=(oe&&oe.preventScrollReset)===!0;if(Ve&&Ea(Ve.formMethod)){await Hn(k,z,Me,je,pt,De.active,le,et,Ve,oe&&oe.unstable_defaultShouldRevalidate);return}Re.set(k,{routeId:z,path:Me}),await os(k,z,Me,je,pt,De.active,le,et,Ve)}async function Hn(k,z,I,oe,le,ke,be,je,De,Me){bn(),Re.delete(k);let Ve=_.fetchers.get(k);$a(k,vk(De,Ve),{flushSync:be});let Te=new AbortController,pt=ol(s.history,I,Te.signal,De);if(ke){let Ct=await Ys(oe,new URL(pt.url).pathname,pt.signal,k);if(Ct.type==="aborted")return;if(Ct.type==="error"){Ca(k,z,Ct.error,{flushSync:be});return}else if(Ct.matches)oe=Ct.matches;else{Ca(k,z,An(404,{pathname:I}),{flushSync:be});return}}let et=Tf(oe,I);if(!et.route.action&&!et.route.lazy){let Ct=An(405,{method:De.formMethod,pathname:I,routeId:z});Ca(k,z,Ct,{flushSync:be});return}W.set(k,Te);let _t=ve,Yt=ll(f,h,pt,oe,et,c,le),ra=await Bn(pt,Yt,le,k),ht=ra[et.route.id];if(!ht){for(let Ct of Yt)if(ra[Ct.route.id]){ht=ra[Ct.route.id];break}}if(pt.signal.aborted){W.get(k)===Te&&W.delete(k);return}if(Mt.has(k)){if(ei(ht)||mn(ht)){$a(k,yo(void 0));return}}else{if(ei(ht))if(W.delete(k),q>_t){$a(k,yo(void 0));return}else return Ue.add(k),$a(k,qc(De)),gn(pt,ht,!1,{fetcherSubmission:De,preventScrollReset:je});if(mn(ht)){Ca(k,z,ht.error);return}}let Ua=_.navigation.location||_.location,qt=ol(s.history,Ua,Te.signal),vn=b||g,va=_.navigation.state!=="idle"?dr(vn,_.navigation.location,v):_.matches;tt(va,"Didn't find any matches after fetcher action");let Ka=++ve;ge.set(k,Ka);let Gs=qc(De,ht.data);_.fetchers.set(k,Gs);let{dsMatches:rs,revalidatingFetchers:qn}=xS(qt,le,f,h,s.history,_,va,De,Ua,c,!1,ie,he,Mt,Re,Ue,vn,v,s.patchRoutesOnNavigation!=null,[et.route.id,ht],Me);qn.filter(Ct=>Ct.key!==k).forEach(Ct=>{let Do=Ct.key,fl=_.fetchers.get(Do),du=qc(void 0,fl?fl.data:void 0);_.fetchers.set(Do,du),ya(Do),Ct.controller&&W.set(Do,Ct.controller)}),Rt({fetchers:new Map(_.fetchers)});let is=()=>qn.forEach(Ct=>ya(Ct.key));Te.signal.addEventListener("abort",is);let{loaderResults:Gn,fetcherResults:ot}=await So(rs,qn,qt,le);if(Te.signal.aborted)return;if(Te.signal.removeEventListener("abort",is),ge.delete(k),W.delete(k),qn.forEach(Ct=>W.delete(Ct.key)),_.fetchers.has(k)){let Ct=yo(ht.data);_.fetchers.set(k,Ct)}let ia=Rf(Gn);if(ia)return gn(qt,ia.result,!1,{preventScrollReset:je});if(ia=Rf(ot),ia)return Ue.add(ia.key),gn(qt,ia.result,!1,{preventScrollReset:je});let{loaderData:Eo,errors:ls}=_S(_,va,Gn,void 0,qn,ot);w(Ka),_.navigation.state==="loading"&&Ka>q?(tt(Q,"Expected pending action"),P&&P.abort(),Se(_.navigation.location,{matches:va,loaderData:Eo,errors:ls,fetchers:new Map(_.fetchers)})):(Rt({errors:ls,loaderData:CS(_.loaderData,Eo,va,ls),fetchers:new Map(_.fetchers)}),ie=!1)}async function os(k,z,I,oe,le,ke,be,je,De){let Me=_.fetchers.get(k);$a(k,qc(De,Me?Me.data:void 0),{flushSync:be});let Ve=new AbortController,Te=ol(s.history,I,Ve.signal);if(ke){let ht=await Ys(oe,new URL(Te.url).pathname,Te.signal,k);if(ht.type==="aborted")return;if(ht.type==="error"){Ca(k,z,ht.error,{flushSync:be});return}else if(ht.matches)oe=ht.matches;else{Ca(k,z,An(404,{pathname:I}),{flushSync:be});return}}let pt=Tf(oe,I);W.set(k,Ve);let et=ve,_t=ll(f,h,Te,oe,pt,c,le),ra=(await Bn(Te,_t,le,k))[pt.route.id];if(W.get(k)===Ve&&W.delete(k),!Te.signal.aborted){if(Mt.has(k)){$a(k,yo(void 0));return}if(ei(ra))if(q>et){$a(k,yo(void 0));return}else{Ue.add(k),await gn(Te,ra,!1,{preventScrollReset:je});return}if(mn(ra)){Ca(k,z,ra.error);return}$a(k,yo(ra.data))}}async function gn(k,z,I,{submission:oe,fetcherSubmission:le,preventScrollReset:ke,replace:be}={}){I||(H?.resolve(),H=null),z.response.headers.has("X-Remix-Revalidate")&&(ie=!0);let je=z.response.headers.get("Location");tt(je,"Expected a Location header on the redirect Response"),je=DS(je,new URL(k.url),v,s.history);let De=Wc(_.location,je,{_isRedirect:!0});if(l){let _t=!1;if(z.response.headers.has("X-Remix-Reload-Document"))_t=!0;else if(Kg(je)){const Yt=vw(je,!0);_t=Yt.origin!==o.location.origin||Mn(Yt.pathname,v)==null}if(_t){be?o.location.replace(je):o.location.assign(je);return}}P=null;let Me=be===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ve,formAction:Te,formEncType:pt}=_.navigation;!oe&&!le&&Ve&&Te&&pt&&(oe=TS(_.navigation));let et=oe||le;if(QC.has(z.response.status)&&et&&Ea(et.formMethod))await ft(Me,De,{submission:{...et,formAction:je},preventScrollReset:ke||$,enableViewTransition:I?X:void 0});else{let _t=zg(De,oe);await ft(Me,De,{overrideNavigation:_t,fetcherSubmission:le,preventScrollReset:ke||$,enableViewTransition:I?X:void 0})}}async function Bn(k,z,I,oe){let le,ke={};try{le=await sk(D,k,z,oe,I,!1)}catch(be){return z.filter(je=>je.shouldLoad).forEach(je=>{ke[je.route.id]={type:"error",error:be}}),ke}if(k.signal.aborted)return ke;if(!Ea(k.method))for(let be of z){if(le[be.route.id]?.type==="error")break;!le.hasOwnProperty(be.route.id)&&!_.loaderData.hasOwnProperty(be.route.id)&&(!_.errors||!_.errors.hasOwnProperty(be.route.id))&&be.shouldCallHandler()&&(le[be.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${be.route.id}`)})}for(let[be,je]of Object.entries(le))if(pk(je)){let De=je.result;ke[be]={type:"redirect",response:lk(De,k,be,z,v)}}else ke[be]=await ik(je);return ke}async function So(k,z,I,oe){let le=Bn(I,k,oe,null),ke=Promise.all(z.map(async De=>{if(De.matches&&De.match&&De.request&&De.controller){let Ve=(await Bn(De.request,De.matches,oe,De.key))[De.match.route.id];return{[De.key]:Ve}}else return Promise.resolve({[De.key]:{type:"error",error:An(404,{pathname:De.path})}})})),be=await le,je=(await ke).reduce((De,Me)=>Object.assign(De,Me),{});return{loaderResults:be,fetcherResults:je}}function bn(){ie=!0,Re.forEach((k,z)=>{W.has(z)&&he.add(z),ya(z)})}function $a(k,z,I={}){_.fetchers.set(k,z),Rt({fetchers:new Map(_.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function Ca(k,z,I,oe={}){let le=fr(_.matches,z);yn(k),Rt({errors:{[le.route.id]:I},fetchers:new Map(_.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function wo(k){return mt.set(k,(mt.get(k)||0)+1),Mt.has(k)&&Mt.delete(k),_.fetchers.get(k)||ZC}function Hs(k,z){ya(k,z?.reason),$a(k,yo(null))}function yn(k){let z=_.fetchers.get(k);W.has(k)&&!(z&&z.state==="loading"&&ge.has(k))&&ya(k),Re.delete(k),ge.delete(k),Ue.delete(k),Mt.delete(k),he.delete(k),_.fetchers.delete(k)}function Bs(k){let z=(mt.get(k)||0)-1;z<=0?(mt.delete(k),Mt.add(k)):mt.set(k,z),Rt({fetchers:new Map(_.fetchers)})}function ya(k,z){let I=W.get(k);I&&(I.abort(z),W.delete(k))}function $s(k){for(let z of k){let I=wo(z),oe=yo(I.data);_.fetchers.set(z,oe)}}function $n(){let k=[],z=!1;for(let I of Ue){let oe=_.fetchers.get(I);tt(oe,`Expected fetcher: ${I}`),oe.state==="loading"&&(Ue.delete(I),k.push(I),z=!0)}return $s(k),z}function w(k){let z=[];for(let[I,oe]of ge)if(oe<k){let le=_.fetchers.get(I);tt(le,`Expected fetcher: ${I}`),le.state==="loading"&&(ya(I),ge.delete(I),z.push(I))}return $s(z),z.length>0}function M(k,z){let I=_.blockers.get(k)||Yc;return ct.get(k)!==z&&ct.set(k,z),I}function ne(k){_.blockers.delete(k),ct.delete(k)}function ce(k,z){let I=_.blockers.get(k)||Yc;tt(I.state==="unblocked"&&z.state==="blocked"||I.state==="blocked"&&z.state==="blocked"||I.state==="blocked"&&z.state==="proceeding"||I.state==="blocked"&&z.state==="unblocked"||I.state==="proceeding"&&z.state==="unblocked",`Invalid blocker state transition: ${I.state} -> ${z.state}`);let oe=new Map(_.blockers);oe.set(k,z),Rt({blockers:oe})}function Ee({currentLocation:k,nextLocation:z,historyAction:I}){if(ct.size===0)return;ct.size>1&&$t(!1,"A router only supports one blocker at a time");let oe=Array.from(ct.entries()),[le,ke]=oe[oe.length-1],be=_.blockers.get(le);if(!(be&&be.state==="proceeding")&&ke({currentLocation:k,nextLocation:z,historyAction:I}))return le}function Be(k){let z=An(404,{pathname:k}),I=b||g,{matches:oe,route:le}=Df(I);return{notFoundMatches:oe,route:le,error:z}}function Ce(k,z,I){if(T=k,L=z,B=I||null,!Z&&_.navigation===Mg){Z=!0;let oe=oa(_.location,_.matches);oe!=null&&Rt({restoreScrollPosition:oe})}return()=>{T=null,L=null,B=null}}function nt(k,z){return B&&B(k,z.map(oe=>NC(oe,_.loaderData)))||k.key}function Ge(k,z){if(T&&L){let I=nt(k,z);T[I]=L()}}function oa(k,z){if(T){let I=nt(k,z),oe=T[I];if(typeof oe=="number")return oe}return null}function ka(k,z,I){if(s.patchRoutesOnNavigation)if(k){if(Object.keys(k[0].params).length>0)return{active:!0,matches:Qc(z,I,v,!0)}}else return{active:!0,matches:Qc(z,I,v,!0)||[]};return{active:!1,matches:null}}async function Ys(k,z,I,oe){if(!s.patchRoutesOnNavigation)return{type:"success",matches:k};let le=k;for(;;){let ke=b==null,be=b||g,je=h;try{await s.patchRoutesOnNavigation({signal:I,path:z,matches:le,fetcherKey:oe,patch:(Ve,Te)=>{I.aborted||NS(Ve,Te,be,je,f,!1)}})}catch(Ve){return{type:"error",error:Ve,partialMatches:le}}finally{ke&&!I.aborted&&(g=[...g])}if(I.aborted)return{type:"aborted"};let De=dr(be,z,v),Me=null;if(De){if(Object.keys(De[0].params).length===0)return{type:"success",matches:De};if(Me=Qc(be,z,v,!0),!(Me&&le.length<Me.length&&qs(le,Me.slice(0,le.length))))return{type:"success",matches:De}}if(Me||(Me=Qc(be,z,v,!0)),!Me||qs(le,Me))return{type:"success",matches:null};le=Me}}function qs(k,z){return k.length===z.length&&k.every((I,oe)=>I.route.id===z[oe].route.id)}function si(k){h={},b=eu(k,f,void 0,h)}function Yn(k,z,I=!1){let oe=b==null;NS(k,z,b||g,h,f,I),oe&&(g=[...g],Rt({}))}return fe={get basename(){return v},get future(){return x},get state(){return _},get routes(){return g},get window(){return o},initialize:Ja,subscribe:ss,enableScrollRestoration:Ce,navigate:Je,fetch:_a,revalidate:qe,createHref:k=>s.history.createHref(k),encodeLocation:k=>s.history.encodeLocation(k),getFetcher:wo,resetFetcher:Hs,deleteFetcher:Bs,dispose:xe,getBlocker:M,deleteBlocker:ne,patchRoutes:Yn,_internalFetchControllers:W,_internalSetRoutes:si,_internalSetStateDoNotUseOrYouWillBreakYourApp(k){Rt(k)}},s.unstable_instrumentations&&(fe=BC(fe,s.unstable_instrumentations.map(k=>k.router).filter(Boolean))),fe}function KC(s){return s!=null&&("formData"in s&&s.formData!=null||"body"in s&&s.body!==void 0)}function Fg(s,o,l,c,u,f){let h,g;if(u){h=[];for(let v of o)if(h.push(v),v.route.id===u){g=v;break}}else h=o,g=o[o.length-1];let b=su(c||".",Bf(h),Mn(s.pathname,l)||s.pathname,f==="path");if(c==null&&(b.search=s.search,b.hash=s.hash),(c==null||c===""||c===".")&&g){let v=tb(b.search);if(g.route.index&&!v)b.search=b.search?b.search.replace(/^\?/,"?index&"):"?index";else if(!g.route.index&&v){let D=new URLSearchParams(b.search),x=D.getAll("index");D.delete("index"),x.filter(R=>R).forEach(R=>D.append("index",R));let N=D.toString();b.search=N?`?${N}`:""}}return l!=="/"&&(b.pathname=AC({basename:l,pathname:b.pathname})),zs(b)}function vS(s,o,l){if(!l||!KC(l))return{path:o};if(l.formMethod&&!bk(l.formMethod))return{path:o,error:An(405,{method:l.formMethod})};let c=()=>({path:o,error:An(400,{type:"invalid-body"})}),f=(l.formMethod||"get").toUpperCase(),h=zw(o);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!Ea(f))return c();let x=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((N,[R,T])=>`${N}${R}=${T}
|
|
236
|
+
`,""):String(l.body);return{path:o,submission:{formMethod:f,formAction:h,formEncType:l.formEncType,formData:void 0,json:void 0,text:x}}}else if(l.formEncType==="application/json"){if(!Ea(f))return c();try{let x=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:o,submission:{formMethod:f,formAction:h,formEncType:l.formEncType,formData:void 0,json:x,text:void 0}}}catch{return c()}}}tt(typeof FormData=="function","FormData is not available in this environment");let g,b;if(l.formData)g=Qg(l.formData),b=l.formData;else if(l.body instanceof FormData)g=Qg(l.body),b=l.body;else if(l.body instanceof URLSearchParams)g=l.body,b=RS(g);else if(l.body==null)g=new URLSearchParams,b=new FormData;else try{g=new URLSearchParams(l.body),b=RS(g)}catch{return c()}let v={formMethod:f,formAction:h,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:b,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:o,submission:v};let D=xo(o);return s&&D.search&&tb(D.search)&&g.append("index",""),D.search=`?${g}`,{path:zs(D),submission:v}}function xS(s,o,l,c,u,f,h,g,b,v,D,x,N,R,T,B,L,Z,J,te,ue){let re=te?mn(te[1])?te[1].error:te[1].data:void 0,me=u.createURL(f.location),fe=u.createURL(b),_;if(D&&f.errors){let Ne=Object.keys(f.errors)[0];_=h.findIndex(ee=>ee.route.id===Ne)}else if(te&&mn(te[1])){let Ne=te[0];_=h.findIndex(ee=>ee.route.id===Ne)-1}let Q=te?te[1].statusCode:void 0,H=Q&&Q>=400,$={currentUrl:me,currentParams:f.matches[0]?.params||{},nextUrl:fe,nextParams:h[0].params,...g,actionResult:re,actionStatus:Q},P=ru(h),X=h.map((Ne,ee)=>{let{route:ie}=Ne,he=null;if(_!=null&&ee>_)he=!1;else if(ie.lazy)he=!0;else if(!Wg(ie))he=!1;else if(D){let{shouldLoad:ge}=Tw(ie,f.loaderData,f.errors);he=ge}else WC(f.loaderData,f.matches[ee],Ne)&&(he=!0);if(he!==null)return Xg(l,c,s,P,Ne,v,o,he);let W=!1;typeof ue=="boolean"?W=ue:H?W=!1:(x||me.pathname+me.search===fe.pathname+fe.search||me.search!==fe.search||ek(f.matches[ee],Ne))&&(W=!0);let ve={...$,defaultShouldRevalidate:W},q=Jc(Ne,ve);return Xg(l,c,s,P,Ne,v,o,q,ve,ue)}),ae=[];return T.forEach((Ne,ee)=>{if(D||!h.some(Re=>Re.route.id===Ne.routeId)||R.has(ee))return;let ie=f.fetchers.get(ee),he=ie&&ie.state!=="idle"&&ie.data===void 0,W=dr(L,Ne.path,Z);if(!W){if(J&&he)return;ae.push({key:ee,routeId:Ne.routeId,path:Ne.path,matches:null,match:null,request:null,controller:null});return}if(B.has(ee))return;let ve=Tf(W,Ne.path),q=new AbortController,ge=ol(u,Ne.path,q.signal),Ue=null;if(N.has(ee))N.delete(ee),Ue=ll(l,c,ge,W,ve,v,o);else if(he)x&&(Ue=ll(l,c,ge,W,ve,v,o));else{let Re;typeof ue=="boolean"?Re=ue:H?Re=!1:Re=x;let mt={...$,defaultShouldRevalidate:Re};Jc(ve,mt)&&(Ue=ll(l,c,ge,W,ve,v,o,mt))}Ue&&ae.push({key:ee,routeId:Ne.routeId,path:Ne.path,matches:Ue,match:ve,request:ge,controller:q})}),{dsMatches:X,revalidatingFetchers:ae}}function Wg(s){return s.loader!=null||s.middleware!=null&&s.middleware.length>0}function Tw(s,o,l){if(s.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Wg(s))return{shouldLoad:!1,renderFallback:!1};let c=o!=null&&s.id in o,u=l!=null&&l[s.id]!==void 0;if(!c&&u)return{shouldLoad:!1,renderFallback:!1};if(typeof s.loader=="function"&&s.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!c};let f=!c&&!u;return{shouldLoad:f,renderFallback:f}}function WC(s,o,l){let c=!o||l.route.id!==o.route.id,u=!s.hasOwnProperty(l.route.id);return c||u}function ek(s,o){let l=s.route.path;return s.pathname!==o.pathname||l!=null&&l.endsWith("*")&&s.params["*"]!==o.params["*"]}function Jc(s,o){if(s.route.shouldRevalidate){let l=s.route.shouldRevalidate(o);if(typeof l=="boolean")return l}return o.defaultShouldRevalidate}function NS(s,o,l,c,u,f){let h;if(s){let v=c[s];tt(v,`No route found to patch children into: routeId = ${s}`),v.children||(v.children=[]),h=v.children}else h=l;let g=[],b=[];if(o.forEach(v=>{let D=h.find(x=>jw(v,x));D?b.push({existingRoute:D,newRoute:v}):g.push(v)}),g.length>0){let v=eu(g,u,[s||"_","patch",String(h?.length||"0")],c);h.push(...v)}if(f&&b.length>0)for(let v=0;v<b.length;v++){let{existingRoute:D,newRoute:x}=b[v],N=D,[R]=eu([x],u,[],{},!0);Object.assign(N,{element:R.element?R.element:N.element,errorElement:R.errorElement?R.errorElement:N.errorElement,hydrateFallbackElement:R.hydrateFallbackElement?R.hydrateFallbackElement:N.hydrateFallbackElement})}}function jw(s,o){return"id"in s&&"id"in o&&s.id===o.id?!0:s.index===o.index&&s.path===o.path&&s.caseSensitive===o.caseSensitive?(!s.children||s.children.length===0)&&(!o.children||o.children.length===0)?!0:s.children?.every((l,c)=>o.children?.some(u=>jw(l,u)))??!1:!1}var SS=new WeakMap,Ow=({key:s,route:o,manifest:l,mapRouteProperties:c})=>{let u=l[o.id];if(tt(u,"No route found in manifest"),!u.lazy||typeof u.lazy!="object")return;let f=u.lazy[s];if(!f)return;let h=SS.get(u);h||(h={},SS.set(u,h));let g=h[s];if(g)return g;let b=(async()=>{let v=bC(s),x=u[s]!==void 0&&s!=="hasErrorBoundary";if(v)$t(!v,"Route property "+s+" is not a supported lazy route property. This property will be ignored."),h[s]=Promise.resolve();else if(x)$t(!1,`Route "${u.id}" has a static property "${s}" defined. The lazy property will be ignored.`);else{let N=await f();N!=null&&(Object.assign(u,{[s]:N}),Object.assign(u,c(u)))}typeof u.lazy=="object"&&(u.lazy[s]=void 0,Object.values(u.lazy).every(N=>N===void 0)&&(u.lazy=void 0))})();return h[s]=b,b},wS=new WeakMap;function tk(s,o,l,c,u){let f=l[s.id];if(tt(f,"No route found in manifest"),!s.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof s.lazy=="function"){let D=wS.get(f);if(D)return{lazyRoutePromise:D,lazyHandlerPromise:D};let x=(async()=>{tt(typeof s.lazy=="function","No lazy route function found");let N=await s.lazy(),R={};for(let T in N){let B=N[T];if(B===void 0)continue;let L=vC(T),J=f[T]!==void 0&&T!=="hasErrorBoundary";L?$t(!L,"Route property "+T+" is not a supported property to be returned from a lazy route function. This property will be ignored."):J?$t(!J,`Route "${f.id}" has a static property "${T}" defined but its lazy function is also returning a value for this property. The lazy route property "${T}" will be ignored.`):R[T]=B}Object.assign(f,R),Object.assign(f,{...c(f),lazy:void 0})})();return wS.set(f,x),x.catch(()=>{}),{lazyRoutePromise:x,lazyHandlerPromise:x}}let h=Object.keys(s.lazy),g=[],b;for(let D of h){if(u&&u.includes(D))continue;let x=Ow({key:D,route:s,manifest:l,mapRouteProperties:c});x&&(g.push(x),D===o&&(b=x))}let v=g.length>0?Promise.all(g).then(()=>{}):void 0;return v?.catch(()=>{}),b?.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:b}}async function ES(s){let o=s.matches.filter(u=>u.shouldLoad),l={};return(await Promise.all(o.map(u=>u.resolve()))).forEach((u,f)=>{l[o[f].route.id]=u}),l}async function ak(s){return s.matches.some(o=>o.route.middleware)?Aw(s,()=>ES(s)):ES(s)}function Aw(s,o){return nk(s,o,c=>{if(gk(c))throw c;return c},fk,l);function l(c,u,f){if(f)return Promise.resolve(Object.assign(f.value,{[u]:{type:"error",result:c}}));{let{matches:h}=s,g=Math.min(Math.max(h.findIndex(v=>v.route.id===u),0),Math.max(h.findIndex(v=>v.shouldCallHandler()),0)),b=fr(h,h[g].route.id).route.id;return Promise.resolve({[b]:{type:"error",result:c}})}}}async function nk(s,o,l,c,u){let{matches:f,request:h,params:g,context:b,unstable_pattern:v}=s,D=f.flatMap(N=>N.route.middleware?N.route.middleware.map(R=>[N.route.id,R]):[]);return await Vw({request:h,params:g,context:b,unstable_pattern:v},D,o,l,c,u)}async function Vw(s,o,l,c,u,f,h=0){let{request:g}=s;if(g.signal.aborted)throw g.signal.reason??new Error(`Request aborted: ${g.method} ${g.url}`);let b=o[h];if(!b)return await l();let[v,D]=b,x,N=async()=>{if(x)throw new Error("You may only call `next()` once per middleware");try{return x={value:await Vw(s,o,l,c,u,f,h+1)},x.value}catch(R){return x={value:await f(R,v,x)},x.value}};try{let R=await D(s,N),T=R!=null?c(R):void 0;return u(T)?T:x?T??x.value:(x={value:await N()},x.value)}catch(R){return await f(R,v,x)}}function Mw(s,o,l,c,u){let f=Ow({key:"middleware",route:c.route,manifest:o,mapRouteProperties:s}),h=tk(c.route,Ea(l.method)?"action":"loader",o,s,u);return{middleware:f,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function Xg(s,o,l,c,u,f,h,g,b=null,v){let D=!1,x=Mw(s,o,l,u,f);return{...u,_lazyPromises:x,shouldLoad:g,shouldRevalidateArgs:b,shouldCallHandler(N){return D=!0,b?typeof v=="boolean"?Jc(u,{...b,defaultShouldRevalidate:v}):typeof N=="boolean"?Jc(u,{...b,defaultShouldRevalidate:N}):Jc(u,b):g},resolve(N){let{lazy:R,loader:T,middleware:B}=u.route,L=D||g||N&&!Ea(l.method)&&(R||T),Z=B&&B.length>0&&!T&&!R;return L&&(Ea(l.method)||!Z)?ok({request:l,unstable_pattern:c,match:u,lazyHandlerPromise:x?.handler,lazyRoutePromise:x?.route,handlerOverride:N,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function ll(s,o,l,c,u,f,h,g=null){return c.map(b=>b.route.id!==u.route.id?{...b,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:Mw(s,o,l,b,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Xg(s,o,l,ru(c),b,f,h,!0,g))}async function sk(s,o,l,c,u,f){l.some(v=>v._lazyPromises?.middleware)&&await Promise.all(l.map(v=>v._lazyPromises?.middleware));let h={request:o,unstable_pattern:ru(l),params:l[0].params,context:u,matches:l},b=await s({...h,fetcherKey:c,runClientMiddleware:v=>{let D=h;return Aw(D,()=>v({...D,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(v=>[v._lazyPromises?.handler,v._lazyPromises?.route]))}catch{}return b}async function ok({request:s,unstable_pattern:o,match:l,lazyHandlerPromise:c,lazyRoutePromise:u,handlerOverride:f,scopedContext:h}){let g,b,v=Ea(s.method),D=v?"action":"loader",x=N=>{let R,T=new Promise((Z,J)=>R=J);b=()=>R(),s.signal.addEventListener("abort",b);let B=Z=>typeof N!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${D}" [routeId: ${l.route.id}]`)):N({request:s,unstable_pattern:o,params:l.params,context:h},...Z!==void 0?[Z]:[]),L=(async()=>{try{return{type:"data",result:await(f?f(J=>B(J)):B())}}catch(Z){return{type:"error",result:Z}}})();return Promise.race([L,T])};try{let N=v?l.route.action:l.route.loader;if(c||u)if(N){let R,[T]=await Promise.all([x(N).catch(B=>{R=B}),c,u]);if(R!==void 0)throw R;g=T}else{await c;let R=v?l.route.action:l.route.loader;if(R)[g]=await Promise.all([x(R),u]);else if(D==="action"){let T=new URL(s.url),B=T.pathname+T.search;throw An(405,{method:s.method,pathname:B,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(N)g=await x(N);else{let R=new URL(s.url),T=R.pathname+R.search;throw An(404,{pathname:T})}}catch(N){return{type:"error",result:N}}finally{b&&s.signal.removeEventListener("abort",b)}return g}async function rk(s){let o=s.headers.get("Content-Type");return o&&/\bapplication\/json\b/.test(o)?s.body==null?null:s.json():s.text()}async function ik(s){let{result:o,type:l}=s;if(eb(o)){let c;try{c=await rk(o)}catch(u){return{type:"error",error:u}}return l==="error"?{type:"error",error:new ou(o.status,o.statusText,c),statusCode:o.status,headers:o.headers}:{type:"data",data:c,statusCode:o.status,headers:o.headers}}return l==="error"?US(o)?o.data instanceof Error?{type:"error",error:o.data,statusCode:o.init?.status,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"error",error:dk(o),statusCode:tu(o)?o.status:void 0,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"error",error:o,statusCode:tu(o)?o.status:void 0}:US(o)?{type:"data",data:o.data,statusCode:o.init?.status,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"data",data:o}}function lk(s,o,l,c,u){let f=s.headers.get("Location");if(tt(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Kg(f)){let h=c.slice(0,c.findIndex(g=>g.route.id===l)+1);f=Fg(new URL(o.url),h,u,f),s.headers.set("Location",f)}return s}function DS(s,o,l,c){let u=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Kg(s)){let f=s,h=f.startsWith("//")?new URL(o.protocol+f):new URL(f);if(u.includes(h.protocol))throw new Error("Invalid redirect location");let g=Mn(h.pathname,l)!=null;if(h.origin===o.origin&&g)return h.pathname+h.search+h.hash}try{let f=c.createURL(s);if(u.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return s}function ol(s,o,l,c){let u=s.createURL(zw(o)).toString(),f={signal:l};if(c&&Ea(c.formMethod)){let{formMethod:h,formEncType:g}=c;f.method=h.toUpperCase(),g==="application/json"?(f.headers=new Headers({"Content-Type":g}),f.body=JSON.stringify(c.json)):g==="text/plain"?f.body=c.text:g==="application/x-www-form-urlencoded"&&c.formData?f.body=Qg(c.formData):f.body=c.formData}return new Request(u,f)}function Qg(s){let o=new URLSearchParams;for(let[l,c]of s.entries())o.append(l,typeof c=="string"?c:c.name);return o}function RS(s){let o=new FormData;for(let[l,c]of s.entries())o.append(l,c);return o}function ck(s,o,l,c=!1,u=!1){let f={},h=null,g,b=!1,v={},D=l&&mn(l[1])?l[1].error:void 0;return s.forEach(x=>{if(!(x.route.id in o))return;let N=x.route.id,R=o[N];if(tt(!ei(R),"Cannot handle redirect results in processLoaderData"),mn(R)){let T=R.error;if(D!==void 0&&(T=D,D=void 0),h=h||{},u)h[N]=T;else{let B=fr(s,N);h[B.route.id]==null&&(h[B.route.id]=T)}c||(f[N]=Uw),b||(b=!0,g=tu(R.error)?R.error.status:500),R.headers&&(v[N]=R.headers)}else f[N]=R.data,R.statusCode&&R.statusCode!==200&&!b&&(g=R.statusCode),R.headers&&(v[N]=R.headers)}),D!==void 0&&l&&(h={[l[0]]:D},l[2]&&(f[l[2]]=void 0)),{loaderData:f,errors:h,statusCode:g||200,loaderHeaders:v}}function _S(s,o,l,c,u,f){let{loaderData:h,errors:g}=ck(o,l,c);return u.filter(b=>!b.matches||b.matches.some(v=>v.shouldLoad)).forEach(b=>{let{key:v,match:D,controller:x}=b;if(x&&x.signal.aborted)return;let N=f[v];if(tt(N,"Did not find corresponding fetcher result"),mn(N)){let R=fr(s.matches,D?.route.id);g&&g[R.route.id]||(g={...g,[R.route.id]:N.error}),s.fetchers.delete(v)}else if(ei(N))tt(!1,"Unhandled fetcher revalidation redirect");else{let R=yo(N.data);s.fetchers.set(v,R)}}),{loaderData:h,errors:g}}function CS(s,o,l,c){let u=Object.entries(o).filter(([,f])=>f!==Uw).reduce((f,[h,g])=>(f[h]=g,f),{});for(let f of l){let h=f.route.id;if(!o.hasOwnProperty(h)&&s.hasOwnProperty(h)&&f.route.loader&&(u[h]=s[h]),c&&c.hasOwnProperty(h))break}return u}function kS(s){return s?mn(s[1])?{actionData:{}}:{actionData:{[s[0]]:s[1].data}}:{}}function fr(s,o){return(o?s.slice(0,s.findIndex(c=>c.route.id===o)+1):[...s]).reverse().find(c=>c.route.hasErrorBoundary===!0)||s[0]}function Df(s){let o=s.length===1?s[0]:s.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:o}],route:o}}function An(s,{pathname:o,routeId:l,method:c,type:u,message:f}={}){let h="Unknown Server Error",g="Unknown @remix-run/router error";return s===400?(h="Bad Request",c&&o&&l?g=`You made a ${c} request to "${o}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:u==="invalid-body"&&(g="Unable to encode submission body")):s===403?(h="Forbidden",g=`Route "${l}" does not match URL "${o}"`):s===404?(h="Not Found",g=`No route matches URL "${o}"`):s===405&&(h="Method Not Allowed",c&&o&&l?g=`You made a ${c.toUpperCase()} request to "${o}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:c&&(g=`Invalid request method "${c.toUpperCase()}"`)),new ou(s||500,h,new Error(g),!0)}function Rf(s){let o=Object.entries(s);for(let l=o.length-1;l>=0;l--){let[c,u]=o[l];if(ei(u))return{key:c,result:u}}}function zw(s){let o=typeof s=="string"?xo(s):s;return zs({...o,hash:""})}function uk(s,o){return s.pathname!==o.pathname||s.search!==o.search?!1:s.hash===""?o.hash!=="":s.hash===o.hash?!0:o.hash!==""}function dk(s){return new ou(s.init?.status??500,s.init?.statusText??"Internal Server Error",s.data)}function fk(s){return s!=null&&typeof s=="object"&&Object.entries(s).every(([o,l])=>typeof o=="string"&&mk(l))}function mk(s){return s!=null&&typeof s=="object"&&"type"in s&&"result"in s&&(s.type==="data"||s.type==="error")}function pk(s){return eb(s.result)&&Cw.has(s.result.status)}function mn(s){return s.type==="error"}function ei(s){return(s&&s.type)==="redirect"}function US(s){return typeof s=="object"&&s!=null&&"type"in s&&"data"in s&&"init"in s&&s.type==="DataWithResponseInit"}function eb(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.headers=="object"&&typeof s.body<"u"}function hk(s){return Cw.has(s)}function gk(s){return eb(s)&&hk(s.status)&&s.headers.has("Location")}function bk(s){return XC.has(s.toUpperCase())}function Ea(s){return IC.has(s.toUpperCase())}function tb(s){return new URLSearchParams(s).getAll("index").some(o=>o==="")}function Tf(s,o){let l=typeof o=="string"?xo(o).search:o.search;if(s[s.length-1].route.index&&tb(l||""))return s[s.length-1];let c=ww(s);return c[c.length-1]}function TS(s){let{formMethod:o,formAction:l,formEncType:c,text:u,formData:f,json:h}=s;if(!(!o||!l||!c)){if(u!=null)return{formMethod:o,formAction:l,formEncType:c,formData:void 0,json:void 0,text:u};if(f!=null)return{formMethod:o,formAction:l,formEncType:c,formData:f,json:void 0,text:void 0};if(h!==void 0)return{formMethod:o,formAction:l,formEncType:c,formData:void 0,json:h,text:void 0}}}function zg(s,o){return o?{state:"loading",location:s,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}:{state:"loading",location:s,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function yk(s,o){return{state:"submitting",location:s,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}}function qc(s,o){return s?{state:"loading",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:o}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:o}}function vk(s,o){return{state:"submitting",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:o?o.data:void 0}}function yo(s){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:s}}function xk(s,o){try{let l=s.sessionStorage.getItem(kw);if(l){let c=JSON.parse(l);for(let[u,f]of Object.entries(c||{}))f&&Array.isArray(f)&&o.set(u,new Set(f||[]))}}catch{}}function Nk(s,o){if(o.size>0){let l={};for(let[c,u]of o)l[c]=[...u];try{s.sessionStorage.setItem(kw,JSON.stringify(l))}catch(c){$t(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function jS(){let s,o,l=new Promise((c,u)=>{s=async f=>{c(f);try{await l}catch{}},o=async f=>{u(f);try{await l}catch{}}});return{promise:l,resolve:s,reject:o}}var ni=E.createContext(null);ni.displayName="DataRouter";var iu=E.createContext(null);iu.displayName="DataRouterState";var Lw=E.createContext(!1);function Sk(){return E.useContext(Lw)}var ab=E.createContext({isTransitioning:!1});ab.displayName="ViewTransition";var Hw=E.createContext(new Map);Hw.displayName="Fetchers";var wk=E.createContext(null);wk.displayName="Await";var pn=E.createContext(null);pn.displayName="Navigation";var $f=E.createContext(null);$f.displayName="Location";var zn=E.createContext({outlet:null,matches:[],isDataRoute:!1});zn.displayName="Route";var nb=E.createContext(null);nb.displayName="RouteError";var Bw="REACT_ROUTER_ERROR",Ek="REDIRECT",Dk="ROUTE_ERROR_RESPONSE";function Rk(s){if(s.startsWith(`${Bw}:${Ek}:{`))try{let o=JSON.parse(s.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function _k(s){if(s.startsWith(`${Bw}:${Dk}:{`))try{let o=JSON.parse(s.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new ou(o.status,o.statusText,o.data)}catch{}}function Ck(s,{relative:o}={}){tt(ul(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:c}=E.useContext(pn),{hash:u,pathname:f,search:h}=lu(s,{relative:o}),g=f;return l!=="/"&&(g=f==="/"?l:as([l,f])),c.createHref({pathname:g,search:h,hash:u})}function ul(){return E.useContext($f)!=null}function ns(){return tt(ul(),"useLocation() may be used only in the context of a <Router> component."),E.useContext($f).location}var $w="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yw(s){E.useContext(pn).static||E.useLayoutEffect(s)}function pr(){let{isDataRoute:s}=E.useContext(zn);return s?qk():kk()}function kk(){tt(ul(),"useNavigate() may be used only in the context of a <Router> component.");let s=E.useContext(ni),{basename:o,navigator:l}=E.useContext(pn),{matches:c}=E.useContext(zn),{pathname:u}=ns(),f=JSON.stringify(Bf(c)),h=E.useRef(!1);return Yw(()=>{h.current=!0}),E.useCallback((b,v={})=>{if($t(h.current,$w),!h.current)return;if(typeof b=="number"){l.go(b);return}let D=su(b,JSON.parse(f),u,v.relative==="path");s==null&&o!=="/"&&(D.pathname=D.pathname==="/"?o:as([o,D.pathname])),(v.replace?l.replace:l.push)(D,v.state,v)},[o,l,f,u,s])}var Uk=E.createContext(null);function Tk(s){let o=E.useContext(zn).outlet;return E.useMemo(()=>o&&E.createElement(Uk.Provider,{value:s},o),[o,s])}function Yf(){let{matches:s}=E.useContext(zn),o=s[s.length-1];return o?o.params:{}}function lu(s,{relative:o}={}){let{matches:l}=E.useContext(zn),{pathname:c}=ns(),u=JSON.stringify(Bf(l));return E.useMemo(()=>su(s,JSON.parse(u),c,o==="path"),[s,u,c,o])}function jk(s,o,l){tt(ul(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=E.useContext(pn),{matches:u}=E.useContext(zn),f=u[u.length-1],h=f?f.params:{},g=f?f.pathname:"/",b=f?f.pathnameBase:"/",v=f&&f.route;{let L=v&&v.path||"";Gw(g,!v||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${L}">) 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.
|
|
237
|
+
|
|
238
|
+
Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let D=ns(),x;x=D;let N=x.pathname||"/",R=N;if(b!=="/"){let L=b.replace(/^\//,"").split("/");R="/"+N.replace(/^\//,"").split("/").slice(L.length).join("/")}let T=dr(s,{pathname:R});return $t(v||T!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),$t(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),zk(T&&T.map(L=>Object.assign({},L,{params:Object.assign({},h,L.params),pathname:as([b,c.encodeLocation?c.encodeLocation(L.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?b:as([b,c.encodeLocation?c.encodeLocation(L.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),u,l)}function Ok(){let s=Yk(),o=tu(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),l=s instanceof Error?s.stack:null,c="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:c},f={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",s),h=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:f},"ErrorBoundary")," or"," ",E.createElement("code",{style:f},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},o),l?E.createElement("pre",{style:u},l):null,h)}var Ak=E.createElement(Ok,null),qw=class extends E.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,o){return o.location!==s.location||o.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:o.error,location:o.location,revalidation:s.revalidation||o.revalidation}}componentDidCatch(s,o){this.props.onError?this.props.onError(s,o):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const l=_k(s.digest);l&&(s=l)}let o=s!==void 0?E.createElement(zn.Provider,{value:this.props.routeContext},E.createElement(nb.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?E.createElement(Vk,{error:s},o):o}};qw.contextType=Lw;var Lg=new WeakMap;function Vk({children:s,error:o}){let{basename:l}=E.useContext(pn);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let c=Rk(o.digest);if(c){let u=Lg.get(o);if(u)throw u;let f=Dw(c.location,l);if(Ew&&!Lg.get(o))if(f.isExternal||c.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:c.replace}));throw Lg.set(o,h),h}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return s}function Mk({routeContext:s,match:o,children:l}){let c=E.useContext(ni);return c&&c.static&&c.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=o.route.id),E.createElement(zn.Provider,{value:s},l)}function zk(s,o=[],l){let c=l?.state;if(s==null){if(!c)return null;if(c.errors)s=c.matches;else if(o.length===0&&!c.initialized&&c.matches.length>0)s=c.matches;else return null}let u=s,f=c?.errors;if(f!=null){let D=u.findIndex(x=>x.route.id&&f?.[x.route.id]!==void 0);tt(D>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,D+1))}let h=!1,g=-1;if(l&&c){h=c.renderFallback;for(let D=0;D<u.length;D++){let x=u[D];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=D),x.route.id){let{loaderData:N,errors:R}=c,T=x.route.loader&&!N.hasOwnProperty(x.route.id)&&(!R||R[x.route.id]===void 0);if(x.route.lazy||T){l.isStatic&&(h=!0),g>=0?u=u.slice(0,g+1):u=[u[0]];break}}}}let b=l?.onError,v=c&&b?(D,x)=>{b(D,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:ru(c.matches),errorInfo:x})}:void 0;return u.reduceRight((D,x,N)=>{let R,T=!1,B=null,L=null;c&&(R=f&&x.route.id?f[x.route.id]:void 0,B=x.route.errorElement||Ak,h&&(g<0&&N===0?(Gw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,L=null):g===N&&(T=!0,L=x.route.hydrateFallbackElement||null)));let Z=o.concat(u.slice(0,N+1)),J=()=>{let te;return R?te=B:T?te=L:x.route.Component?te=E.createElement(x.route.Component,null):x.route.element?te=x.route.element:te=D,E.createElement(Mk,{match:x,routeContext:{outlet:D,matches:Z,isDataRoute:c!=null},children:te})};return c&&(x.route.ErrorBoundary||x.route.errorElement||N===0)?E.createElement(qw,{location:c.location,revalidation:c.revalidation,component:B,error:R,children:J(),routeContext:{outlet:null,matches:Z,isDataRoute:!0},onError:v}):J()},null)}function sb(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lk(s){let o=E.useContext(ni);return tt(o,sb(s)),o}function Hk(s){let o=E.useContext(iu);return tt(o,sb(s)),o}function Bk(s){let o=E.useContext(zn);return tt(o,sb(s)),o}function ob(s){let o=Bk(s),l=o.matches[o.matches.length-1];return tt(l.route.id,`${s} can only be used on routes that contain a unique "id"`),l.route.id}function $k(){return ob("useRouteId")}function Yk(){let s=E.useContext(nb),o=Hk("useRouteError"),l=ob("useRouteError");return s!==void 0?s:o.errors?.[l]}function qk(){let{router:s}=Lk("useNavigate"),o=ob("useNavigate"),l=E.useRef(!1);return Yw(()=>{l.current=!0}),E.useCallback(async(u,f={})=>{$t(l.current,$w),l.current&&(typeof u=="number"?await s.navigate(u):await s.navigate(u,{fromRouteId:o,...f}))},[s,o])}var OS={};function Gw(s,o,l){!o&&!OS[s]&&(OS[s]=!0,$t(!1,l))}var AS={};function VS(s,o){!s&&!AS[o]&&(AS[o]=!0,console.warn(o))}var Gk="useOptimistic",MS=x_[Gk],Ik=()=>{};function Fk(s){return MS?MS(s):[s,Ik]}function Xk(s){let o={hasErrorBoundary:s.hasErrorBoundary||s.ErrorBoundary!=null||s.errorElement!=null};return s.Component&&(s.element&&$t(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(o,{element:E.createElement(s.Component),Component:void 0})),s.HydrateFallback&&(s.hydrateFallbackElement&&$t(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(o,{hydrateFallbackElement:E.createElement(s.HydrateFallback),HydrateFallback:void 0})),s.ErrorBoundary&&(s.errorElement&&$t(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(o,{errorElement:E.createElement(s.ErrorBoundary),ErrorBoundary:void 0})),o}var Qk=["HydrateFallback","hydrateFallbackElement"],Zk=class{constructor(){this.status="pending",this.promise=new Promise((s,o)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",s(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",o(l))}})}};function Pk({router:s,flushSync:o,onError:l,unstable_useTransitions:c}){c=Sk()||c;let[f,h]=E.useState(s.state),[g,b]=Fk(f),[v,D]=E.useState(),[x,N]=E.useState({isTransitioning:!1}),[R,T]=E.useState(),[B,L]=E.useState(),[Z,J]=E.useState(),te=E.useRef(new Map),ue=E.useCallback((_,{deletedFetchers:Q,newErrors:H,flushSync:$,viewTransitionOpts:P})=>{H&&l&&Object.values(H).forEach(ae=>l(ae,{location:_.location,params:_.matches[0]?.params??{},unstable_pattern:ru(_.matches)})),_.fetchers.forEach((ae,Ne)=>{ae.data!==void 0&&te.current.set(Ne,ae.data)}),Q.forEach(ae=>te.current.delete(ae)),VS($===!1||o!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let X=s.window!=null&&s.window.document!=null&&typeof s.window.document.startViewTransition=="function";if(VS(P==null||X,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!P||!X){o&&$?o(()=>h(_)):c===!1?h(_):E.startTransition(()=>{c===!0&&b(ae=>zS(ae,_)),h(_)});return}if(o&&$){o(()=>{B&&(R?.resolve(),B.skipTransition()),N({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let ae=s.window.document.startViewTransition(()=>{o(()=>h(_))});ae.finished.finally(()=>{o(()=>{T(void 0),L(void 0),D(void 0),N({isTransitioning:!1})})}),o(()=>L(ae));return}B?(R?.resolve(),B.skipTransition(),J({state:_,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(D(_),N({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[s.window,o,B,R,c,b,l]);E.useLayoutEffect(()=>s.subscribe(ue),[s,ue]),E.useEffect(()=>{x.isTransitioning&&!x.flushSync&&T(new Zk)},[x]),E.useEffect(()=>{if(R&&v&&s.window){let _=v,Q=R.promise,H=s.window.document.startViewTransition(async()=>{c===!1?h(_):E.startTransition(()=>{c===!0&&b($=>zS($,_)),h(_)}),await Q});H.finished.finally(()=>{T(void 0),L(void 0),D(void 0),N({isTransitioning:!1})}),L(H)}},[v,R,s.window,c,b]),E.useEffect(()=>{R&&v&&g.location.key===v.location.key&&R.resolve()},[R,B,g.location,v]),E.useEffect(()=>{!x.isTransitioning&&Z&&(D(Z.state),N({isTransitioning:!0,flushSync:!1,currentLocation:Z.currentLocation,nextLocation:Z.nextLocation}),J(void 0))},[x.isTransitioning,Z]);let re=E.useMemo(()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:_=>s.navigate(_),push:(_,Q,H)=>s.navigate(_,{state:Q,preventScrollReset:H?.preventScrollReset}),replace:(_,Q,H)=>s.navigate(_,{replace:!0,state:Q,preventScrollReset:H?.preventScrollReset})}),[s]),me=s.basename||"/",fe=E.useMemo(()=>({router:s,navigator:re,static:!1,basename:me,onError:l}),[s,re,me,l]);return E.createElement(E.Fragment,null,E.createElement(ni.Provider,{value:fe},E.createElement(iu.Provider,{value:g},E.createElement(Hw.Provider,{value:te.current},E.createElement(ab.Provider,{value:x},E.createElement(Wk,{basename:me,location:g.location,navigationType:g.historyAction,navigator:re,unstable_useTransitions:c},E.createElement(Jk,{routes:s.routes,future:s.future,state:g,isStatic:!1,onError:l})))))),null)}function zS(s,o){return{...s,navigation:o.navigation.state!=="idle"?o.navigation:s.navigation,revalidation:o.revalidation!=="idle"?o.revalidation:s.revalidation,actionData:o.navigation.state!=="submitting"?o.actionData:s.actionData,fetchers:o.fetchers}}var Jk=E.memo(Kk);function Kk({routes:s,future:o,state:l,isStatic:c,onError:u}){return jk(s,void 0,{state:l,isStatic:c,onError:u})}function LS({to:s,replace:o,state:l,relative:c}){tt(ul(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=E.useContext(pn);$t(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=E.useContext(zn),{pathname:h}=ns(),g=pr(),b=su(s,Bf(f),h,c==="path"),v=JSON.stringify(b);return E.useEffect(()=>{g(JSON.parse(v),{replace:o,state:l,relative:c})},[g,v,c,o,l]),null}function Iw(s){return Tk(s.context)}function Wk({basename:s="/",children:o=null,location:l,navigationType:c="POP",navigator:u,static:f=!1,unstable_useTransitions:h}){tt(!ul(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=s.replace(/^\/*/,"/"),b=E.useMemo(()=>({basename:g,navigator:u,static:f,unstable_useTransitions:h,future:{}}),[g,u,f,h]);typeof l=="string"&&(l=xo(l));let{pathname:v="/",search:D="",hash:x="",state:N=null,key:R="default",unstable_mask:T}=l,B=E.useMemo(()=>{let L=Mn(v,g);return L==null?null:{location:{pathname:L,search:D,hash:x,state:N,key:R,unstable_mask:T},navigationType:c}},[g,v,D,x,N,R,c,T]);return $t(B!=null,`<Router basename="${g}"> is not able to match the URL "${v}${D}${x}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:E.createElement(pn.Provider,{value:b},E.createElement($f.Provider,{children:o,value:B}))}var jf="get",Of="application/x-www-form-urlencoded";function qf(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function eU(s){return qf(s)&&s.tagName.toLowerCase()==="button"}function tU(s){return qf(s)&&s.tagName.toLowerCase()==="form"}function aU(s){return qf(s)&&s.tagName.toLowerCase()==="input"}function nU(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function sU(s,o){return s.button===0&&(!o||o==="_self")&&!nU(s)}function Zg(s=""){return new URLSearchParams(typeof s=="string"||Array.isArray(s)||s instanceof URLSearchParams?s:Object.keys(s).reduce((o,l)=>{let c=s[l];return o.concat(Array.isArray(c)?c.map(u=>[l,u]):[[l,c]])},[]))}function oU(s,o){let l=Zg(s);return o&&o.forEach((c,u)=>{l.has(u)||o.getAll(u).forEach(f=>{l.append(u,f)})}),l}var _f=null;function rU(){if(_f===null)try{new FormData(document.createElement("form"),0),_f=!1}catch{_f=!0}return _f}var iU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hg(s){return s!=null&&!iU.has(s)?($t(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Of}"`),null):s}function lU(s,o){let l,c,u,f,h;if(tU(s)){let g=s.getAttribute("action");c=g?Mn(g,o):null,l=s.getAttribute("method")||jf,u=Hg(s.getAttribute("enctype"))||Of,f=new FormData(s)}else if(eU(s)||aU(s)&&(s.type==="submit"||s.type==="image")){let g=s.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=s.getAttribute("formaction")||g.getAttribute("action");if(c=b?Mn(b,o):null,l=s.getAttribute("formmethod")||g.getAttribute("method")||jf,u=Hg(s.getAttribute("formenctype"))||Hg(g.getAttribute("enctype"))||Of,f=new FormData(g,s),!rU()){let{name:v,type:D,value:x}=s;if(D==="image"){let N=v?`${v}.`:"";f.append(`${N}x`,"0"),f.append(`${N}y`,"0")}else v&&f.append(v,x)}}else{if(qf(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=jf,c=null,u=Of,h=s}return f&&u==="text/plain"&&(h=f,f=void 0),{action:c,method:l.toLowerCase(),encType:u,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rb(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function cU(s,o,l,c){let u=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return l?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${c}`:u.pathname=`${u.pathname}.${c}`:u.pathname==="/"?u.pathname=`_root.${c}`:o&&Mn(u.pathname,o)==="/"?u.pathname=`${o.replace(/\/$/,"")}/_root.${c}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${c}`,u}async function uU(s,o){if(s.id in o)return o[s.id];try{let l=await import(s.module);return o[s.id]=l,l}catch(l){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function dU(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function fU(s,o,l){let c=await Promise.all(s.map(async u=>{let f=o.routes[u.route.id];if(f){let h=await uU(f,l);return h.links?h.links():[]}return[]}));return gU(c.flat(1).filter(dU).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function HS(s,o,l,c,u,f){let h=(b,v)=>l[v]?b.route.id!==l[v].route.id:!0,g=(b,v)=>l[v].pathname!==b.pathname||l[v].route.path?.endsWith("*")&&l[v].params["*"]!==b.params["*"];return f==="assets"?o.filter((b,v)=>h(b,v)||g(b,v)):f==="data"?o.filter((b,v)=>{let D=c.routes[b.route.id];if(!D||!D.hasLoader)return!1;if(h(b,v)||g(b,v))return!0;if(b.route.shouldRevalidate){let x=b.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function mU(s,o,{includeHydrateFallback:l}={}){return pU(s.map(c=>{let u=o.routes[c.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),l&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function pU(s){return[...new Set(s)]}function hU(s){let o={},l=Object.keys(s).sort();for(let c of l)o[c]=s[c];return o}function gU(s,o){let l=new Set;return new Set(o),s.reduce((c,u)=>{let f=JSON.stringify(hU(u));return l.has(f)||(l.add(f),c.push({key:f,link:u})),c},[])}function Fw(){let s=E.useContext(ni);return rb(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function bU(){let s=E.useContext(iu);return rb(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var ib=E.createContext(void 0);ib.displayName="FrameworkContext";function Xw(){let s=E.useContext(ib);return rb(s,"You must render this element inside a <HydratedRouter> element"),s}function yU(s,o){let l=E.useContext(ib),[c,u]=E.useState(!1),[f,h]=E.useState(!1),{onFocus:g,onBlur:b,onMouseEnter:v,onMouseLeave:D,onTouchStart:x}=o,N=E.useRef(null);E.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let B=Z=>{Z.forEach(J=>{h(J.isIntersecting)})},L=new IntersectionObserver(B,{threshold:.5});return N.current&&L.observe(N.current),()=>{L.disconnect()}}},[s]),E.useEffect(()=>{if(c){let B=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(B)}}},[c]);let R=()=>{u(!0)},T=()=>{u(!1),h(!1)};return l?s!=="intent"?[f,N,{}]:[f,N,{onFocus:Gc(g,R),onBlur:Gc(b,T),onMouseEnter:Gc(v,R),onMouseLeave:Gc(D,T),onTouchStart:Gc(x,R)}]:[!1,N,{}]}function Gc(s,o){return l=>{s&&s(l),l.defaultPrevented||o(l)}}function vU({page:s,...o}){let{router:l}=Fw(),c=E.useMemo(()=>dr(l.routes,s,l.basename),[l.routes,s,l.basename]);return c?E.createElement(NU,{page:s,matches:c,...o}):null}function xU(s){let{manifest:o,routeModules:l}=Xw(),[c,u]=E.useState([]);return E.useEffect(()=>{let f=!1;return fU(s,o,l).then(h=>{f||u(h)}),()=>{f=!0}},[s,o,l]),c}function NU({page:s,matches:o,...l}){let c=ns(),{future:u,manifest:f,routeModules:h}=Xw(),{basename:g}=Fw(),{loaderData:b,matches:v}=bU(),D=E.useMemo(()=>HS(s,o,v,f,c,"data"),[s,o,v,f,c]),x=E.useMemo(()=>HS(s,o,v,f,c,"assets"),[s,o,v,f,c]),N=E.useMemo(()=>{if(s===c.pathname+c.search+c.hash)return[];let B=new Set,L=!1;if(o.forEach(J=>{let te=f.routes[J.route.id];!te||!te.hasLoader||(!D.some(ue=>ue.route.id===J.route.id)&&J.route.id in b&&h[J.route.id]?.shouldRevalidate||te.hasClientLoader?L=!0:B.add(J.route.id))}),B.size===0)return[];let Z=cU(s,g,u.unstable_trailingSlashAwareDataRequests,"data");return L&&B.size>0&&Z.searchParams.set("_routes",o.filter(J=>B.has(J.route.id)).map(J=>J.route.id).join(",")),[Z.pathname+Z.search]},[g,u.unstable_trailingSlashAwareDataRequests,b,c,f,D,o,s,h]),R=E.useMemo(()=>mU(x,f),[x,f]),T=xU(x);return E.createElement(E.Fragment,null,N.map(B=>E.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...l})),R.map(B=>E.createElement("link",{key:B,rel:"modulepreload",href:B,...l})),T.map(({key:B,link:L})=>E.createElement("link",{key:B,nonce:l.nonce,...L,crossOrigin:L.crossOrigin??l.crossOrigin})))}function SU(...s){return o=>{s.forEach(l=>{typeof l=="function"?l(o):l!=null&&(l.current=o)})}}var wU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wU&&(window.__reactRouterVersion="7.13.1")}catch{}function EU(s,o){return JC({basename:o?.basename,getContext:o?.getContext,future:o?.future,history:mC({window:o?.window}),hydrationData:DU(),routes:s,mapRouteProperties:Xk,hydrationRouteProperties:Qk,dataStrategy:o?.dataStrategy,patchRoutesOnNavigation:o?.patchRoutesOnNavigation,window:o?.window,unstable_instrumentations:o?.unstable_instrumentations}).initialize()}function DU(){let s=window?.__staticRouterHydrationData;return s&&s.errors&&(s={...s,errors:RU(s.errors)}),s}function RU(s){if(!s)return null;let o=Object.entries(s),l={};for(let[c,u]of o)if(u&&u.__type==="RouteErrorResponse")l[c]=new ou(u.status,u.statusText,u.data,u.internal===!0);else if(u&&u.__type==="Error"){if(u.__subType){let f=window[u.__subType];if(typeof f=="function")try{let h=new f(u.message);h.stack="",l[c]=h}catch{}}if(l[c]==null){let f=new Error(u.message);f.stack="",l[c]=f}}else l[c]=u;return l}var Qw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Za=E.forwardRef(function({onClick:o,discover:l="render",prefetch:c="none",relative:u,reloadDocument:f,replace:h,unstable_mask:g,state:b,target:v,to:D,preventScrollReset:x,viewTransition:N,unstable_defaultShouldRevalidate:R,...T},B){let{basename:L,navigator:Z,unstable_useTransitions:J}=E.useContext(pn),te=typeof D=="string"&&Qw.test(D),ue=Dw(D,L);D=ue.to;let re=Ck(D,{relative:u}),me=ns(),fe=null;if(g){let Ne=su(g,[],me.unstable_mask?me.unstable_mask.pathname:"/",!0);L!=="/"&&(Ne.pathname=Ne.pathname==="/"?L:as([L,Ne.pathname])),fe=Z.createHref(Ne)}let[_,Q,H]=yU(c,T),$=kU(D,{replace:h,unstable_mask:g,state:b,target:v,preventScrollReset:x,relative:u,viewTransition:N,unstable_defaultShouldRevalidate:R,unstable_useTransitions:J});function P(Ne){o&&o(Ne),Ne.defaultPrevented||$(Ne)}let X=!(ue.isExternal||f),ae=E.createElement("a",{...T,...H,href:(X?fe:void 0)||ue.absoluteURL||re,onClick:X?P:o,ref:SU(B,Q),target:v,"data-discover":!te&&l==="render"?"true":void 0});return _&&!te?E.createElement(E.Fragment,null,ae,E.createElement(vU,{page:re})):ae});Za.displayName="Link";var au=E.forwardRef(function({"aria-current":o="page",caseSensitive:l=!1,className:c="",end:u=!1,style:f,to:h,viewTransition:g,children:b,...v},D){let x=lu(h,{relative:v.relative}),N=ns(),R=E.useContext(iu),{navigator:T,basename:B}=E.useContext(pn),L=R!=null&&AU(x)&&g===!0,Z=T.encodeLocation?T.encodeLocation(x).pathname:x.pathname,J=N.pathname,te=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;l||(J=J.toLowerCase(),te=te?te.toLowerCase():null,Z=Z.toLowerCase()),te&&B&&(te=Mn(te,B)||te);const ue=Z!=="/"&&Z.endsWith("/")?Z.length-1:Z.length;let re=J===Z||!u&&J.startsWith(Z)&&J.charAt(ue)==="/",me=te!=null&&(te===Z||!u&&te.startsWith(Z)&&te.charAt(Z.length)==="/"),fe={isActive:re,isPending:me,isTransitioning:L},_=re?o:void 0,Q;typeof c=="function"?Q=c(fe):Q=[c,re?"active":null,me?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let H=typeof f=="function"?f(fe):f;return E.createElement(Za,{...v,"aria-current":_,className:Q,ref:D,style:H,to:h,viewTransition:g},typeof b=="function"?b(fe):b)});au.displayName="NavLink";var _U=E.forwardRef(({discover:s="render",fetcherKey:o,navigate:l,reloadDocument:c,replace:u,state:f,method:h=jf,action:g,onSubmit:b,relative:v,preventScrollReset:D,viewTransition:x,unstable_defaultShouldRevalidate:N,...R},T)=>{let{unstable_useTransitions:B}=E.useContext(pn),L=jU(),Z=OU(g,{relative:v}),J=h.toLowerCase()==="get"?"get":"post",te=typeof g=="string"&&Qw.test(g),ue=re=>{if(b&&b(re),re.defaultPrevented)return;re.preventDefault();let me=re.nativeEvent.submitter,fe=me?.getAttribute("formmethod")||h,_=()=>L(me||re.currentTarget,{fetcherKey:o,method:fe,navigate:l,replace:u,state:f,relative:v,preventScrollReset:D,viewTransition:x,unstable_defaultShouldRevalidate:N});B&&l!==!1?E.startTransition(()=>_()):_()};return E.createElement("form",{ref:T,method:J,action:Z,onSubmit:c?b:ue,...R,"data-discover":!te&&s==="render"?"true":void 0})});_U.displayName="Form";function CU(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zw(s){let o=E.useContext(ni);return tt(o,CU(s)),o}function kU(s,{target:o,replace:l,unstable_mask:c,state:u,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b,unstable_useTransitions:v}={}){let D=pr(),x=ns(),N=lu(s,{relative:h});return E.useCallback(R=>{if(sU(R,o)){R.preventDefault();let T=l!==void 0?l:zs(x)===zs(N),B=()=>D(s,{replace:T,unstable_mask:c,state:u,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b});v?E.startTransition(()=>B()):B()}},[x,D,N,l,c,u,o,s,f,h,g,b,v])}function Pw(s){$t(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let o=E.useRef(Zg(s)),l=E.useRef(!1),c=ns(),u=E.useMemo(()=>oU(c.search,l.current?null:o.current),[c.search]),f=pr(),h=E.useCallback((g,b)=>{const v=Zg(typeof g=="function"?g(new URLSearchParams(u)):g);l.current=!0,f("?"+v,b)},[f,u]);return[u,h]}var UU=0,TU=()=>`__${String(++UU)}__`;function jU(){let{router:s}=Zw("useSubmit"),{basename:o}=E.useContext(pn),l=$k(),c=s.fetch,u=s.navigate;return E.useCallback(async(f,h={})=>{let{action:g,method:b,encType:v,formData:D,body:x}=lU(f,o);if(h.navigate===!1){let N=h.fetcherKey||TU();await c(N,l,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:x,formMethod:h.method||b,formEncType:h.encType||v,flushSync:h.flushSync})}else await u(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:x,formMethod:h.method||b,formEncType:h.encType||v,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,u,o,l])}function OU(s,{relative:o}={}){let{basename:l}=E.useContext(pn),c=E.useContext(zn);tt(c,"useFormAction must be used inside a RouteContext");let[u]=c.matches.slice(-1),f={...lu(s||".",{relative:o})},h=ns();if(s==null){f.search=h.search;let g=new URLSearchParams(f.search),b=g.getAll("index");if(b.some(D=>D==="")){g.delete("index"),b.filter(x=>x).forEach(x=>g.append("index",x));let D=g.toString();f.search=D?`?${D}`:""}}return(!s||s===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(f.pathname=f.pathname==="/"?l:as([l,f.pathname])),zs(f)}function AU(s,{relative:o}={}){let l=E.useContext(ab);tt(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Zw("useViewTransitionState"),u=lu(s,{relative:o});if(!l.isTransitioning)return!1;let f=Mn(l.currentLocation.pathname,c)||l.currentLocation.pathname,h=Mn(l.nextLocation.pathname,c)||l.nextLocation.pathname;return zf(u.pathname,h)!=null||zf(u.pathname,f)!=null}const Jw=(...s)=>s.filter((o,l,c)=>!!o&&o.trim()!==""&&c.indexOf(o)===l).join(" ").trim();const VU=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const MU=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,l,c)=>c?c.toUpperCase():l.toLowerCase());const BS=s=>{const o=MU(s);return o.charAt(0).toUpperCase()+o.slice(1)};var zU={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const LU=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const HU=E.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:u="",children:f,iconNode:h,...g},b)=>E.createElement("svg",{ref:b,...zU,width:o,height:o,stroke:s,strokeWidth:c?Number(l)*24/Number(o):l,className:Jw("lucide",u),...!f&&!LU(g)&&{"aria-hidden":"true"},...g},[...h.map(([v,D])=>E.createElement(v,D)),...Array.isArray(f)?f:[f]]));const at=(s,o)=>{const l=E.forwardRef(({className:c,...u},f)=>E.createElement(HU,{ref:f,iconNode:o,className:Jw(`lucide-${VU(BS(s))}`,`lucide-${s}`,c),...u}));return l.displayName=BS(s),l};const BU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Kw=at("arrow-right",BU);const $U=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],YU=at("boxes",$U);const qU=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],GU=at("brain",qU);const IU=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Lf=at("check",IU);const FU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ww=at("chevron-down",FU);const XU=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vo=at("chevron-right",XU);const QU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],lb=at("circle-alert",QU);const ZU=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],$S=at("copy",ZU);const PU=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],JU=at("database",PU);const KU=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],YS=at("download",KU);const WU=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],eT=at("ellipsis",WU);const tT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],aT=at("file-spreadsheet",tT);const nT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],cl=at("file-text",nT);const sT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],eE=at("file",sT);const oT=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],cb=at("folder-git-2",oT);const rT=[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]],iT=at("folder-input",rT);const lT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],cT=at("folder-open",lT);const uT=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],tE=at("folder-plus",uT);const dT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Vn=at("folder",dT);const fT=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],qS=at("git-branch",fT);const mT=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],GS=at("github",mT);const pT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],hT=at("globe",pT);const gT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],bT=at("info",gT);const yT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Pa=at("loader-circle",yT);const vT=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],xT=at("menu",vT);const NT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],ST=at("monitor",NT);const wT=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],ET=at("moon",wT);const DT=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Gf=at("package",DT);const RT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],_T=at("panel-left",RT);const CT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],aE=at("plus",CT);const kT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],UT=at("refresh-cw",kT);const TT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],jT=at("search",TT);const OT=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],AT=at("settings",OT);const VT=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],MT=at("share-2",VT);const zT=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],LT=at("sparkles",zT);const HT=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],BT=at("sun",HT);const $T=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],YT=at("upload",$T);const qT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],GT=at("users",qT);const IT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ub=at("x",IT),IS=s=>{let o;const l=new Set,c=(v,D)=>{const x=typeof v=="function"?v(o):v;if(!Object.is(x,o)){const N=o;o=D??(typeof x!="object"||x===null)?x:Object.assign({},o,x),l.forEach(R=>R(o,N))}},u=()=>o,g={setState:c,getState:u,getInitialState:()=>b,subscribe:v=>(l.add(v),()=>l.delete(v))},b=o=s(c,u,g);return g},FT=(s=>s?IS(s):IS),XT=s=>s;function QT(s,o=XT){const l=rl.useSyncExternalStore(s.subscribe,rl.useCallback(()=>o(s.getState()),[s,o]),rl.useCallback(()=>o(s.getInitialState()),[s,o]));return rl.useDebugValue(l),l}const FS=s=>{const o=FT(s),l=c=>QT(o,c);return Object.assign(l,o),l},If=(s=>s?FS(s):FS),ZT="/api/v1";class Pg extends Error{constructor(o,l,c){super(c),this.status=o,this.code=l,this.name="ApiError"}}async function Cf(s,o,l,c){let u=`${ZT}${o}`;if(c){const g=new URLSearchParams(c).toString();g&&(u+=`?${g}`)}const f={method:s,headers:{"Content-Type":"application/json"}};l!==void 0&&(f.body=JSON.stringify(l));const h=await fetch(u,f);if(!h.ok){let g="UNKNOWN",b=h.statusText;try{const v=await h.json();v.code&&(g=v.code),v.message&&(b=v.message)}catch{}throw new Pg(h.status,g,b)}return h.json()}const Da={get(s,o){return Cf("GET",s,void 0,o)},post(s,o){return Cf("POST",s,o)},put(s,o){return Cf("PUT",s,o)},delete(s){return Cf("DELETE",s)}},PT=3e4,JT=1e3,KT=3e4;class WT{ws=null;url="";handlers=new Map;statusHandlers=new Set;heartbeatTimer=null;reconnectTimer=null;reconnectAttempt=0;intentionalClose=!1;_status="disconnected";get status(){return this._status}setStatus(o){this._status=o;for(const l of this.statusHandlers)l(o)}onStatusChange(o){return this.statusHandlers.add(o),()=>{this.statusHandlers.delete(o)}}connect(o){this.url=o,this.intentionalClose=!1,this.reconnectAttempt=0,this.open()}disconnect(){this.intentionalClose=!0,this.clearTimers(),this.ws&&(this.ws.close(),this.ws=null),this.setStatus("disconnected")}on(o,l){let c=this.handlers.get(o);return c||(c=new Set,this.handlers.set(o,c)),c.add(l),()=>{c.delete(l),c.size===0&&this.handlers.delete(o)}}send(o,l){if(this.ws?.readyState!==WebSocket.OPEN)return;const c={event:o,payload:l,timestamp:Date.now()};this.ws.send(JSON.stringify(c))}open(){this.setStatus("connecting");const o=new WebSocket(this.url);o.onopen=()=>{this.reconnectAttempt=0,this.setStatus("connected"),this.startHeartbeat()},o.onmessage=l=>{try{const c=JSON.parse(String(l.data));if(c.event==="pong")return;const u=this.handlers.get(c.event);if(u)for(const f of u)f(c.payload)}catch{}},o.onclose=()=>{this.stopHeartbeat(),this.intentionalClose||(this.setStatus("reconnecting"),this.scheduleReconnect())},o.onerror=()=>{},this.ws=o}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({event:"ping",payload:null,timestamp:Date.now()}))},PT)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const o=Math.min(JT*2**this.reconnectAttempt,KT);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open()},o)}clearTimers(){this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}}const Ls=new WT,ai=If(s=>({status:"disconnected",onlineCount:0,connections:[],setStatus:o=>s({status:o}),fetchDaemonStatus:async()=>{try{const o=await Da.get("/daemons/status");s({onlineCount:o.online_count,connections:o.connections})}catch{}}})),ej=s=>s==="connecting"?"disconnected":s;Ls.onStatusChange(s=>{ai.getState().setStatus(ej(s))});Ls.on("ws:daemon:connected",s=>{const o=s;ai.setState(l=>{if(l.connections.some(h=>h.machine_id===o.machine_id))return l;const u={machine_id:o.machine_id};o.lib_id&&(u.lib_id=o.lib_id);const f=[...l.connections,u];return{connections:f,onlineCount:f.length}})});Ls.on("ws:daemon:status",s=>{const o=s;ai.setState(l=>{if(o.is_online){if(l.connections.some(g=>g.machine_id===o.machine_id))return l;const f={machine_id:o.machine_id};o.lib_id&&(f.lib_id=o.lib_id);const h=[...l.connections,f];return{connections:h,onlineCount:h.length}}const c=l.connections.filter(u=>u.machine_id!==o.machine_id);return{connections:c,onlineCount:c.length}})});const Ff="lib_cloud_default",Ra=If((s,o)=>({libraries:[],loading:!1,error:null,fetchLibraries:async()=>{s({loading:!0,error:null});try{const l=await Da.get("/libraries");s({libraries:l,loading:!1})}catch(l){s({error:l instanceof Error?l.message:"Failed to load libraries",loading:!1})}},createLibrary:async l=>{const c=await Da.post("/libraries",l);return s(u=>({libraries:[...u.libraries,c]})),c},deleteLibrary:async l=>{await Da.delete(`/libraries/${l}`),s(c=>({libraries:c.libraries.filter(u=>u.id!==l)}))},updateLibraryName:async(l,c)=>{const u=await Da.put(`/libraries/${l}`,{name:c});s(f=>({libraries:f.libraries.map(h=>h.id===l?u:h)}))},_updateLibraryOnline:(l,c)=>{s(u=>({libraries:u.libraries.map(f=>f.id===l?{...f,is_online:c}:f)}))},_refreshLibrary:async l=>{try{const c=await Da.get(`/libraries/${l}`);s(u=>({libraries:u.libraries.map(f=>f.id===l?c:f)}))}catch{o().fetchLibraries()}}})),cu=s=>{const o=s.libraries.filter(c=>c.type==="cloud").sort((c,u)=>c.created_at.localeCompare(u.created_at)),l=s.libraries.filter(c=>c.type==="daemon").sort((c,u)=>c.name.localeCompare(u.name));return[...o,...l]},tj=s=>s.libraries.filter(o=>o.type==="daemon");Ls.on("ws:daemon:status",s=>{const o=s;o.lib_id&&Ra.getState()._updateLibraryOnline(o.lib_id,o.is_online),Ra.getState().fetchLibraries()});Ls.on("ws:daemon:connected",s=>{const o=s;o.lib_id&&Ra.getState()._updateLibraryOnline(o.lib_id,!0),Ra.getState().fetchLibraries()});Ls.on("ws:library:updated",s=>{const o=s;Ra.getState()._refreshLibrary(o.library_id)});const XS=s=>Symbol.iterator in s,QS=s=>"entries"in s,ZS=(s,o)=>{const l=s instanceof Map?s:new Map(s.entries()),c=o instanceof Map?o:new Map(o.entries());if(l.size!==c.size)return!1;for(const[u,f]of l)if(!c.has(u)||!Object.is(f,c.get(u)))return!1;return!0},aj=(s,o)=>{const l=s[Symbol.iterator](),c=o[Symbol.iterator]();let u=l.next(),f=c.next();for(;!u.done&&!f.done;){if(!Object.is(u.value,f.value))return!1;u=l.next(),f=c.next()}return!!u.done&&!!f.done};function nj(s,o){return Object.is(s,o)?!0:typeof s!="object"||s===null||typeof o!="object"||o===null||Object.getPrototypeOf(s)!==Object.getPrototypeOf(o)?!1:XS(s)&&XS(o)?QS(s)&&QS(o)?ZS(s,o):aj(s,o):ZS({entries:()=>Object.entries(s)},{entries:()=>Object.entries(o)})}function dl(s){const o=rl.useRef(void 0);return l=>{const c=s(l);return nj(o.current,c)?o.current:o.current=c}}function Jg(){const{t:s}=He(),o=ai(h=>h.onlineCount),l=ai(h=>h.connections.length);if(Ra(dl(tj)).length===0)return null;const u=o>0,f=u?s("sources.header.daemon_status",{online:o,total:l}):s("sources.header.all_offline");return m.jsxDEV("div",{className:"group relative flex items-center",title:f,children:[m.jsxDEV("span",{className:`inline-block h-[7px] w-[7px] rounded-full ${u?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:22,columnNumber:7},this),m.jsxDEV("span",{className:"pointer-events-none absolute right-full mr-2 hidden whitespace-nowrap rounded bg-c4a-bg-elevated px-2 py-1 font-mono text-xs text-c4a-text-secondary shadow-c4a-md group-hover:block",children:f},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:25,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:21,columnNumber:5},this)}const PS=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function sj(){const{t:s}=He(),[o,l]=E.useState(!1);return m.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:[m.jsxDEV("div",{className:"flex h-14 items-center justify-between px-4",children:[m.jsxDEV(Za,{to:"/",className:"flex items-center gap-2 text-c4a-text-primary",children:[m.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:22,columnNumber:11},this),m.jsxDEV("span",{className:"hidden font-mono text-sm font-semibold uppercase tracking-tight md:inline",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:25,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:21,columnNumber:9},this),m.jsxDEV("div",{className:"hidden items-center gap-6 md:flex",children:[m.jsxDEV("nav",{className:"flex items-center gap-4",children:PS.map(({to:c,labelKey:u})=>m.jsxDEV(au,{to:c,end:c==="/",className:({isActive:f})=>`font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${f?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:s(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:34,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:32,columnNumber:11},this),m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(Jg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:51,columnNumber:13},this),m.jsxDEV(Za,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:s("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:52,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:31,columnNumber:9},this),m.jsxDEV("button",{onClick:()=>l(!o),className:"text-c4a-text-secondary md:hidden",children:o?m.jsxDEV(ub,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:23},this):m.jsxDEV(xT,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:41},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:62,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:19,columnNumber:7},this),o&&m.jsxDEV("div",{className:"border-t border-c4a-border-subtle bg-c4a-bg-surface px-4 pb-4 pt-2 md:hidden",children:[m.jsxDEV("nav",{className:"flex flex-col gap-2",children:PS.map(({to:c,labelKey:u})=>m.jsxDEV(au,{to:c,end:c==="/",onClick:()=>l(!1),className:({isActive:f})=>`block py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${f?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:s(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:75,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:73,columnNumber:11},this),m.jsxDEV("div",{className:"mt-2 border-t border-c4a-border-subtle pt-2",children:m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(Jg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:94,columnNumber:15},this),m.jsxDEV(Za,{to:"/login",onClick:()=>l(!1),className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:s("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:95,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:93,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:92,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:18,columnNumber:5},this)}function oj(s){return s==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s==="system"?"dark":s}function nE(s){if(typeof window>"u")return;const o=oj(s);document.documentElement.setAttribute("data-theme",o),localStorage.setItem("theme",s)}function rj(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const sE=If(s=>({theme:rj(),setTheme:o=>{nE(o),s({theme:o})}}));let JS=!1;function ij(){if(JS||typeof window>"u")return;JS=!0;const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{const{theme:l}=sE.getState();l==="system"&&nE("system")};s.addEventListener("change",o)}ij();const lj=[{mode:"light",icon:BT,labelKey:"footer.theme.light"},{mode:"dark",icon:ET,labelKey:"footer.theme.dark"},{mode:"system",icon:ST,labelKey:"footer.theme.system"}];function oE(){const{t:s}=He(),{theme:o,setTheme:l}=sE();return m.jsxDEV("div",{className:"flex items-center gap-1",children:lj.map(({mode:c,icon:u,labelKey:f})=>m.jsxDEV("button",{onClick:()=>l(c),title:s(f),className:`cursor-pointer rounded p-1.5 transition-colors duration-150 ${o===c?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:m.jsxDEV(u,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:30,columnNumber:11},this)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:20,columnNumber:9},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:18,columnNumber:5},this)}function rE(){const{i18n:s}=He(),o=()=>{const l=s.language==="en"?"zh":"en";s.changeLanguage(l)};return m.jsxDEV("button",{onClick:o,className:"cursor-pointer rounded px-2 py-1 font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-secondary hover:bg-c4a-bg-hover",children:s.language==="en"?"CN":"EN"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LanguageSwitcher.tsx",lineNumber:12,columnNumber:5},this)}function iE(){const{t:s}=He(),o=new Date().getFullYear();return m.jsxDEV("p",{className:"font-mono text-[11px] text-c4a-text-muted",children:s("footer.copyright",{year:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/CopyrightLine.tsx",lineNumber:8,columnNumber:5},this)}const cj="_brandIcon_1c7st_1",uj="_iconPulse_1c7st_35",KS={brandIcon:cj,iconPulse:uj};function dj({variant:s}){const{t:o}=He(),l=s==="studio"?"bg-c4a-bg-surface":"bg-c4a-bg-base";return m.jsxDEV("footer",{className:`border-t border-c4a-border-subtle ${l} px-4 py-4`,children:m.jsxDEV("div",{className:"flex items-end justify-between gap-4",children:[m.jsxDEV("div",{className:"hidden items-center gap-3 md:flex",children:[m.jsxDEV("div",{className:KS.brandIcon,children:m.jsxDEV("span",{className:KS.iconPulse,children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:21,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:20,columnNumber:11},this),m.jsxDEV("div",{className:"flex flex-col",children:[m.jsxDEV("span",{className:"font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-primary",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:24,columnNumber:13},this),m.jsxDEV("span",{className:"font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:o("footer.tagline")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:27,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:23,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:19,columnNumber:9},this),m.jsxDEV("div",{className:"ml-auto flex flex-col items-end gap-2",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(oE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:36,columnNumber:13},this),m.jsxDEV(rE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:37,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:35,columnNumber:11},this),m.jsxDEV(iE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:39,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:34,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:17,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:16,columnNumber:5},this)}function fj(){return m.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[m.jsxDEV(sj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:8,columnNumber:7},this),m.jsxDEV("main",{className:"mx-auto flex w-full max-w-[1200px] flex-1 flex-col px-4",children:m.jsxDEV(Iw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:10,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:9,columnNumber:7},this),m.jsxDEV(dj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:12,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:7,columnNumber:5},this)}function mj({onToggleSidebar:s}){const{t:o}=He();return m.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-surface/95 backdrop-blur-sm",children:m.jsxDEV("div",{className:"relative flex h-14 items-center justify-between px-4",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[s&&m.jsxDEV("button",{onClick:s,className:"text-c4a-text-secondary transition-colors duration-150 hover:text-c4a-text-primary md:hidden",children:m.jsxDEV(_T,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:23,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:19,columnNumber:13},this),m.jsxDEV(Za,{to:"/",className:"hidden items-center gap-2 text-c4a-text-primary md:flex",children:[m.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:31,columnNumber:13},this),m.jsxDEV("span",{className:"font-mono text-sm font-semibold uppercase tracking-tight",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:34,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:27,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:17,columnNumber:9},this),m.jsxDEV(Za,{to:"/",className:"absolute left-1/2 flex -translate-x-1/2 items-center gap-2 text-c4a-text-primary md:hidden",children:m.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:41,columnNumber:9},this),m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(Jg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:52,columnNumber:11},this),m.jsxDEV(Za,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:o("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:53,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:14,columnNumber:5},this)}function lE({currentName:s,onConfirm:o,onCancel:l,error:c}){const[u,f]=E.useState(s),h=E.useRef(null);E.useEffect(()=>{h.current?.select()},[]);const g=E.useCallback(()=>{const v=u.trim();v&&v!==s?o(v):l()},[u,s,o,l]),b=E.useCallback(v=>{v.key==="Enter"?(v.preventDefault(),g()):v.key==="Escape"&&l()},[g,l]);return m.jsxDEV("div",{className:"flex items-center gap-1",children:[m.jsxDEV("input",{ref:h,value:u,onChange:v=>f(v.target.value),onKeyDown:b,onBlur:g,className:"min-w-0 flex-1 rounded border border-c4a-accent bg-c4a-bg-surface px-2 py-1 text-sm text-c4a-text-primary outline-none",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:47,columnNumber:7},this),m.jsxDEV("button",{onClick:v=>{v.stopPropagation(),g()},className:"rounded p-0.5 text-c4a-success hover:bg-c4a-bg-hover",children:m.jsxDEV(Lf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:56,columnNumber:7},this),m.jsxDEV("button",{onClick:v=>{v.stopPropagation(),l()},className:"rounded p-0.5 text-c4a-error hover:bg-c4a-bg-hover",children:m.jsxDEV(ub,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:72,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:65,columnNumber:7},this),c&&m.jsxDEV("span",{className:"ml-1 text-xs text-c4a-error",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:46,columnNumber:5},this)}function cE({target:s,onConfirm:o,onCancel:l}){const{t:c}=He(),u=E.useRef(null);E.useEffect(()=>{const h=g=>{g.key==="Escape"&&l()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[l]);const f=E.useCallback(h=>{u.current&&!u.current.contains(h.target)&&l()},[l]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:f,children:m.jsxDEV("div",{ref:u,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:c("sources.delete.confirm_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:61,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4 space-y-3 text-sm text-c4a-text-secondary",children:[s.type==="resource"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.resource",{name:s.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:68,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.resource_impact")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:69,columnNumber:15},this),m.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.session_warning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:70,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:73,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:67,columnNumber:13},this),s.type==="folder"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.folder",{name:s.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:79,columnNumber:15},this),m.jsxDEV("p",{children:s.folderCount!==void 0&&s.sourceCount!==void 0?c("sources.delete.folder_impact",{folders:s.folderCount,sources:s.sourceCount}):c("sources.delete.folder_impact_generic")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:80,columnNumber:15},this),m.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.irreversible")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:88,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:78,columnNumber:13},this),s.type==="repo"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.repo",{name:s.name,library:s.libraryName})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:96,columnNumber:15},this),m.jsxDEV("p",{children:s.packageCount!==void 0&&s.docCount!==void 0?c("sources.delete.repo_impact",{packages:s.packageCount,docs:s.docCount}):c("sources.delete.repo_impact_generic")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:102,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.local_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:110,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:111,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:95,columnNumber:13},this),s.type==="client"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.client",{name:s.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:117,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.client_impact")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:118,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.local_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:119,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:120,columnNumber:15},this),m.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.irreversible")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:121,columnNumber:15},this),m.jsxDEV("p",{className:"text-c4a-text-muted",children:c("sources.delete.client_reregister")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:124,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:116,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:65,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:l,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:c("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:132,columnNumber:11},this),m.jsxDEV("button",{onClick:o,className:"rounded bg-c4a-error px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-error/80",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:138,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:131,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:57,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:53,columnNumber:5},this)}const uE="lib_cloud_default",pj=s=>`flex items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${s?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,hj=[{to:"/studio/modeling",icon:YU,i18nKey:"studio.sidebar.modeling"},{to:"/studio/brain",icon:GU,i18nKey:"studio.sidebar.brain"},{to:"/studio/discovery",icon:jT,i18nKey:"studio.sidebar.discovery"},{to:"/studio/sharing",icon:MT,i18nKey:"studio.sidebar.sharing"},{to:"/studio/collaboration",icon:GT,i18nKey:"studio.sidebar.collaboration"},{to:"/studio/settings",icon:AT,i18nKey:"studio.sidebar.settings"}];function gj({state:s,onClose:o,onRename:l,onDelete:c}){const{t:u}=He(),f=E.useRef(null);E.useEffect(()=>{const g=b=>{f.current&&!f.current.contains(b.target)&&o()};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[o]);const h=s.library.id===uE;return m.jsxDEV("div",{ref:f,className:"fixed z-50 min-w-[140px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-lg",style:{top:s.y,left:s.x},children:[m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:()=>{l(s.library),o()},children:u("sources.library.rename")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:102,columnNumber:7},this),!h&&m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-error hover:bg-c4a-bg-hover",onClick:()=>{c(s.library),o()},children:u("sources.actions.delete")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:112,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:97,columnNumber:5},this)}function WS({onNavigate:s}){const{t:o}=He(),l=ns(),c=pr(),u=Ra(dl(cu)),f=Ra($=>$.updateLibraryName),h=Ra($=>$.deleteLibrary),g=l.pathname.startsWith("/studio/sources")||l.pathname.startsWith("/studio/source/"),[b,v]=E.useState(g),[D,x]=E.useState(null),[N,R]=E.useState(null),[T,B]=E.useState(null),[L,Z]=E.useState(null);E.useEffect(()=>{g&&v(!0)},[g]);const J=E.useCallback(($,P)=>{$.preventDefault(),x({x:$.clientX,y:$.clientY,library:P})},[]),te=E.useCallback(()=>x(null),[]),ue=E.useCallback($=>{R($.id),B(null)},[]),re=E.useCallback(async $=>{if(N)try{await f(N,$),R(null),B(null)}catch(P){const X=P instanceof Error?P.message:String(P);B(X)}},[N,f]),me=E.useCallback(()=>{R(null),B(null)},[]),fe=E.useCallback($=>{Z($)},[]),_=E.useCallback(async()=>{if(L){try{await h(L.id),l.pathname.includes(L.id)&&c("/studio/sources")}catch{}Z(null)}},[L,h,l.pathname,c]),Q=E.useCallback(()=>{Z(null)},[]),H=$=>$.id===uE?o("sources.library.default_cloud_name"):$.name;return m.jsxDEV("aside",{className:"flex h-full w-[220px] shrink-0 flex-col border-r border-c4a-border-subtle bg-c4a-bg-surface p-4",children:[m.jsxDEV("nav",{className:"flex flex-col gap-1",children:[m.jsxDEV("div",{className:"group/sources",children:[m.jsxDEV("button",{onClick:()=>v($=>!$),className:`flex w-full cursor-pointer items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${g?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[m.jsxDEV(JU,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:229,columnNumber:13},this),o("studio.sidebar.sources"),m.jsxDEV("span",{role:"button",tabIndex:0,onClick:$=>{$.stopPropagation(),c("/studio/sources/add-client"),s?.()},onKeyDown:$=>{($.key==="Enter"||$.key===" ")&&($.stopPropagation(),c("/studio/sources/add-client"),s?.())},className:"rounded p-0.5 text-c4a-text-muted opacity-0 transition-opacity hover:bg-c4a-bg-hover hover:text-c4a-text-primary max-md:opacity-100 group-hover/sources:opacity-100",title:o("sources.menu.add_client"),children:m.jsxDEV(aE,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:249,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:231,columnNumber:13},this),m.jsxDEV("span",{className:"ml-auto shrink-0",children:b?m.jsxDEV(Ww,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:253,columnNumber:17},this):m.jsxDEV(vo,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:255,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:251,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:221,columnNumber:11},this),b&&m.jsxDEV("div",{className:"mt-0.5 flex flex-col gap-0.5",children:u.map($=>{const P=N===$.id,X=H($);return P?m.jsxDEV("div",{className:"py-1.5 pl-8 pr-3",onClick:ae=>ae.stopPropagation(),children:m.jsxDEV(lE,{currentName:X,onConfirm:re,onCancel:me,error:T},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:273,columnNumber:23},this)},$.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:268,columnNumber:21},this):m.jsxDEV(au,{to:`/studio/sources/${$.id}`,onClick:s,onContextMenu:ae=>J(ae,$),className:({isActive:ae})=>`flex items-center gap-2 rounded py-1.5 pl-8 pr-3 font-mono text-xs tracking-tight transition-colors duration-150 ${ae?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,children:[m.jsxDEV("span",{className:"truncate",children:X},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:297,columnNumber:21},this),$.type==="daemon"&&m.jsxDEV("span",{className:`ml-auto h-[7px] w-[7px] shrink-0 rounded-full ${$.is_online?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:299,columnNumber:23},this)]},$.id,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:284,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:261,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:220,columnNumber:9},this),hj.map(({to:$,icon:P,i18nKey:X})=>m.jsxDEV(au,{to:$,onClick:s,className:({isActive:ae})=>pj(ae),children:[m.jsxDEV(P,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:320,columnNumber:13},this),o(X)]},$,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:314,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:219,columnNumber:7},this),m.jsxDEV("div",{className:"mt-auto flex flex-col gap-2 pt-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5",children:[m.jsxDEV(oE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:328,columnNumber:11},this),m.jsxDEV(rE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:329,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:327,columnNumber:9},this),m.jsxDEV(iE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:331,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:326,columnNumber:7},this),D&&m.jsxDEV(gj,{state:D,onClose:te,onRename:ue,onDelete:fe},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:335,columnNumber:9},this),L&&m.jsxDEV(cE,{target:{type:"client",name:H(L)},onConfirm:_,onCancel:Q},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:344,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:218,columnNumber:5},this)}function bj(){const[s,o]=E.useState(!1);return E.useEffect(()=>{Ra.getState().fetchLibraries(),ai.getState().fetchDaemonStatus()},[]),E.useEffect(()=>Ls.onStatusChange(l=>{l==="connected"&&(Ra.getState().fetchLibraries(),ai.getState().fetchDaemonStatus())}),[]),m.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[m.jsxDEV(mj,{onToggleSidebar:()=>o(!s)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:29,columnNumber:7},this),m.jsxDEV("div",{className:"flex flex-1",children:[m.jsxDEV("div",{className:"hidden md:block",children:m.jsxDEV(WS,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:34,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:33,columnNumber:9},this),s&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("div",{className:"fixed inset-0 top-14 z-30 bg-black/40 md:hidden",onClick:()=>o(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:40,columnNumber:13},this),m.jsxDEV("div",{className:"fixed bottom-0 left-0 top-14 z-30 md:hidden",children:m.jsxDEV(WS,{onNavigate:()=>o(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:45,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:44,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:39,columnNumber:11},this),m.jsxDEV("main",{className:"flex flex-1 flex-col overflow-x-hidden",children:m.jsxDEV(Iw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:51,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:28,columnNumber:5},this)}function yj(){const{t:s}=He();return m.jsxDEV("div",{className:"flex flex-1 flex-col items-center justify-center py-20 text-center",children:[m.jsxDEV("h1",{className:"font-mono text-4xl font-bold uppercase tracking-wide text-c4a-text-primary md:text-5xl",children:s("home.hero.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:10,columnNumber:7},this),m.jsxDEV("p",{className:"mt-6 max-w-lg text-base text-c4a-text-secondary",children:s("home.hero.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:13,columnNumber:7},this),m.jsxDEV("div",{className:"mt-10 flex items-center gap-4",children:[m.jsxDEV(Za,{to:"/studio",className:"flex items-center gap-2 rounded bg-c4a-accent px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-white transition-colors duration-150 hover:bg-c4a-accent-hover",children:[s("home.hero.cta.studio"),m.jsxDEV(Kw,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:22,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:17,columnNumber:9},this),m.jsxDEV("a",{href:"https://github.com/context4ai/c4a",target:"_blank",rel:"noopener noreferrer",className:"rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:s("home.hero.cta.github")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:16,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:9,columnNumber:5},this)}function Ln({title:s,version:o,description:l}){const{t:c}=He();return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("div",{className:"max-w-md text-center",children:[m.jsxDEV("h2",{className:"font-mono text-2xl font-bold uppercase text-c4a-text-primary",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:15,columnNumber:9},this),o&&m.jsxDEV("span",{className:"mt-3 inline-block rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-1 font-mono text-xs uppercase text-c4a-accent",children:c("placeholder.coming",{version:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:19,columnNumber:11},this),m.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:23,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:13,columnNumber:5},this)}function vj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.login.title"),version:"0.5.0",description:s("page.login.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Login.tsx",lineNumber:8,columnNumber:5},this)}function xj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.docs.title"),version:"0.4.13",description:s("page.docs.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Docs.tsx",lineNumber:8,columnNumber:5},this)}function Nj(){const{t:s}=He();return m.jsxDEV("div",{className:"flex min-h-screen flex-col items-center justify-center bg-c4a-bg-base p-8 text-center",children:[m.jsxDEV("h1",{className:"font-mono text-6xl font-bold text-c4a-accent",children:s("notfound.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:9,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 text-base text-c4a-text-secondary",children:s("notfound.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:12,columnNumber:7},this),m.jsxDEV(Za,{to:"/",className:"mt-8 rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:s("notfound.back")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:8,columnNumber:5},this)}function Sj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.modeling.title"),version:"0.4.16",description:s("page.modeling.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Modeling.tsx",lineNumber:8,columnNumber:5},this)}function wj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.brain.title"),version:"0.4.18",description:s("page.brain.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Brain.tsx",lineNumber:8,columnNumber:5},this)}function Ej(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.discovery.title"),version:"0.6.x",description:s("page.discovery.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Discovery.tsx",lineNumber:8,columnNumber:5},this)}function Dj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.sharing.title"),version:"0.4.39",description:s("page.sharing.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Sharing.tsx",lineNumber:8,columnNumber:5},this)}function Rj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.collaboration.title"),version:"0.5.x",description:s("page.collaboration.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Collaboration.tsx",lineNumber:8,columnNumber:5},this)}function _j(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.settings.title"),version:"0.5.x",description:s("page.settings.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Settings.tsx",lineNumber:8,columnNumber:5},this)}function Cj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.code_setup.title"),version:"0.4.13",description:s("page.code_setup.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeSetup.tsx",lineNumber:8,columnNumber:5},this)}function kj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.code_compile.title"),version:"0.4.13",description:s("page.code_compile.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeCompile.tsx",lineNumber:8,columnNumber:5},this)}function Uj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.code_review.title"),version:"0.4.14",description:s("page.code_review.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeReview.tsx",lineNumber:8,columnNumber:5},this)}function Tj(){const{t:s}=He();return m.jsxDEV(Ln,{title:s("page.code_result.title"),version:"0.4.14",description:s("page.code_result.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeResult.tsx",lineNumber:8,columnNumber:5},this)}const Xf=(s,o)=>{for(const l of s){if(l.path===o)return l;if(l.children){const c=Xf(l.children,o);if(c)return c}}return null},jj=(s,o)=>o===""?s:Xf(s,o)?.children??[],dE=(s,o)=>{if(!o)return[];const l=o.split("/"),c=[];let u="";for(const f of l){u=u?`${u}/${f}`:f;const h=Xf(s,u);h&&c.push(h)}return c},Qf=If(s=>({rootSources:[],currentRoot:null,loading:!1,error:null,total:0,limit:100,offset:0,filter:"all",fetchRootSources:async({library_id:o,limit:l,offset:c})=>{s({loading:!0,error:null});try{const u={library_id:o};l!==void 0&&(u.limit=String(l)),c!==void 0&&(u.offset=String(c));const f=await Da.get("/sources",u);s({rootSources:f.items,total:f.total,limit:f.limit,offset:f.offset,loading:!1})}catch(u){s({error:u instanceof Error?u.message:"Failed to load sources",loading:!1})}},fetchRootSource:async o=>{const l=await Da.get(`/sources/${o}`);return s({currentRoot:l}),l},createSource:async o=>await Da.post("/sources",o),addTreeNode:async(o,l)=>{const c=await Da.post(`/sources/${o}/tree`,l);return s(u=>({rootSources:u.rootSources.map(f=>f.id===o?c:f),currentRoot:u.currentRoot?.id===o?c:u.currentRoot})),c},updateSource:async(o,l)=>{const c=await Da.put(`/sources/${o}`,l);s(u=>({rootSources:u.rootSources.map(f=>f.id===o?c:f),currentRoot:u.currentRoot?.id===o?c:u.currentRoot}))},deleteSource:async o=>{await Da.delete(`/sources/${o}`),s(l=>({rootSources:l.rootSources.filter(c=>c.id!==o),currentRoot:l.currentRoot?.id===o?null:l.currentRoot}))},setFilter:o=>s({filter:o}),clearSources:()=>s({rootSources:[],currentRoot:null,total:0,offset:0})}));function uu({segments:s}){const{t:o}=He(),l=E.useRef(null),c=E.useRef(null),[u,f]=E.useState(0),h=[{label:o("sources.breadcrumb.sources")},...s],g=Math.max(0,h.length-3);E.useEffect(()=>{const v=l.current,D=c.current;if(!v||!D)return;const x=()=>{const R=v.clientWidth,T=Array.from(D.children);if(T.length===0)return;const B=T.map(fe=>fe.offsetWidth),L=4;if(B.reduce((fe,_)=>fe+_,0)+L*(B.length-1)<=R){f(0);return}const J=20,te=(B[0]??0)+(B[1]??0)+L,ue=B[B.length-1]??0,re=te+L+J+L+ue;let me=g;for(let fe=1;fe<=g;fe++){let _=0;for(let Q=2+fe;Q<B.length-1;Q++)_+=B[Q]+L;if(re+_<=R){me=fe;break}}f(me)};x();const N=new ResizeObserver(x);return N.observe(v),()=>N.disconnect()},[g,s,o]);const b=(()=>{if(u===0||h.length<=3)return h;const v=h.slice(0,2),D=h[h.length-1],x=h.slice(2+u,h.length-1);return[...v,{label:"…"},...x,D]})();return m.jsxDEV("div",{ref:l,className:"relative min-w-0 overflow-hidden",children:[m.jsxDEV("nav",{className:"flex min-h-8 items-center gap-1 font-mono text-xs text-c4a-text-muted",children:b.map((v,D)=>{const x=D===b.length-1;return m.jsxDEV("span",{className:"flex shrink-0 items-center gap-1",children:[D>0&&m.jsxDEV(vo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:106,columnNumber:17},this),v.to&&!x?m.jsxDEV(Za,{to:v.to,className:"cursor-pointer whitespace-nowrap transition-colors hover:text-c4a-text-primary",children:v.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:109,columnNumber:17},this):m.jsxDEV("span",{className:`whitespace-nowrap ${x?"text-c4a-text-primary":""}`,children:v.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:116,columnNumber:17},this)]},D,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:104,columnNumber:13},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:100,columnNumber:7},this),m.jsxDEV("div",{ref:c,"aria-hidden":!0,className:"pointer-events-none invisible absolute left-0 top-0 flex h-0 items-center gap-1 overflow-visible whitespace-nowrap font-mono text-xs",children:h.map((v,D)=>m.jsxDEV("span",{className:"flex shrink-0 items-center gap-1",children:[D>0&&m.jsxDEV(vo,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:133,columnNumber:25},this),m.jsxDEV("span",{className:"whitespace-nowrap",children:v.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:134,columnNumber:13},this)]},D,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:132,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:126,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:98,columnNumber:5},this)}const Oj=["all","indexed","not_indexed"];function Aj({value:s,onChange:o}){const{t:l}=He(),c={all:l("sources.filter.all"),indexed:l("sources.filter.indexed"),not_indexed:l("sources.filter.not_indexed")};return m.jsxDEV("select",{value:s,onChange:u=>o(u.target.value),className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs text-c4a-text-secondary outline-none transition-colors hover:border-c4a-border-strong focus:border-c4a-accent",children:Oj.map(u=>m.jsxDEV("option",{value:u,children:c[u]},u,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:27,columnNumber:9},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:21,columnNumber:5},this)}function Vj({source:s,isDaemonLibrary:o}){return s.kind==="folder"?o?m.jsxDEV(cT,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:35,columnNumber:7},this):m.jsxDEV(Vn,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:37,columnNumber:7},this):s.source_type==="code"?m.jsxDEV(Gf,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:41,columnNumber:12},this):m.jsxDEV(cl,{size:16,className:"shrink-0 text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:43,columnNumber:10},this)}function ew({status:s}){const{t:o}=He(),l={none:"bg-c4a-bg-active text-c4a-text-muted",indexed:"bg-c4a-success/20 text-c4a-success",stale:"bg-c4a-warning/20 text-c4a-warning"},c={none:"sources.status.none",indexed:"sources.status.indexed",stale:"sources.status.stale"};return m.jsxDEV("span",{className:`rounded px-1.5 py-0.5 font-mono text-[10px] uppercase ${l[s]}`,children:o(c[s])},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:60,columnNumber:5},this)}function Mj({type:s}){const{t:o}=He(),l=s==="code"?"sources.type.code":"sources.type.doc";return m.jsxDEV("span",{className:"font-mono text-[10px] uppercase text-c4a-text-muted",children:o(l)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:73,columnNumber:5},this)}function tw({source:s,displayName:o,childCount:l,isDaemonLibrary:c,isRepoRoot:u,onClick:f,onRename:h,onMoveTo:g,onDelete:b}){const{t:v}=He(),[D,x]=E.useState(!1),[N,R]=E.useState(!1),[T,B]=E.useState(null),L=E.useRef(null);E.useEffect(()=>{if(!D)return;const _=Q=>{L.current&&!L.current.contains(Q.target)&&x(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[D]);const Z=E.useCallback(_=>{_.preventDefault(),x(!0)},[]),J=E.useCallback(async _=>{if(!h)return;const Q=await h(_);Q?B(Q):(R(!1),B(null))},[h]),te=E.useCallback(()=>{R(!1),B(null)},[]),ue=!u&&h,re=s.kind==="source"&&!u&&g,me=b,fe=ue||re||me;return m.jsxDEV("div",{className:"group flex items-center gap-3 rounded px-3 py-2 transition-colors hover:bg-c4a-bg-hover cursor-pointer",onClick:N?void 0:f,onContextMenu:N?void 0:Z,children:[m.jsxDEV(Vj,{source:s,isDaemonLibrary:c??!1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:145,columnNumber:7},this),N?m.jsxDEV("div",{className:"min-w-0 flex-1",onClick:_=>_.stopPropagation(),children:m.jsxDEV(lE,{currentName:s.name,onConfirm:J,onCancel:te,error:T},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:149,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:148,columnNumber:9},this):m.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-sm text-c4a-text-primary",children:o??s.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:157,columnNumber:9},this),m.jsxDEV("div",{className:"hidden items-center gap-2 md:flex",children:[s.kind==="folder"&&l!==void 0&&m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:v("common.items",{count:l})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:165,columnNumber:11},this),s.kind==="source"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV(ew,{status:s.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:171,columnNumber:13},this),s.source_type&&m.jsxDEV(Mj,{type:s.source_type},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:172,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:170,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:163,columnNumber:7},this),m.jsxDEV("div",{className:"flex items-center gap-2 md:hidden",children:s.kind==="source"&&m.jsxDEV(ew,{status:s.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:180,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:178,columnNumber:7},this),fe&&m.jsxDEV("div",{className:"relative",ref:L,children:[m.jsxDEV("button",{onClick:_=>{_.stopPropagation(),x(Q=>!Q)},className:"rounded p-1 text-c4a-text-muted opacity-0 transition-opacity hover:bg-c4a-bg-active hover:text-c4a-text-primary group-hover:opacity-100",children:m.jsxDEV(eT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:194,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:187,columnNumber:11},this),D&&m.jsxDEV("div",{className:"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-lg",children:[ue&&m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:_=>{_.stopPropagation(),x(!1),R(!0)},children:v("sources.actions.rename")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:200,columnNumber:17},this),re&&m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:_=>{_.stopPropagation(),x(!1),g()},children:v("sources.actions.move_to")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:212,columnNumber:17},this),me&&m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-error hover:bg-c4a-bg-hover",onClick:_=>{_.stopPropagation(),x(!1),b()},children:v("sources.actions.delete")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:224,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:198,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:186,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:140,columnNumber:5},this)}function zj({onConfirm:s,onCancel:o,error:l}){const{t:c}=He(),[u,f]=E.useState(""),h=E.useRef(null),g=E.useRef(null);E.useEffect(()=>{h.current?.focus()},[]),E.useEffect(()=>{const x=N=>{N.key==="Escape"&&o()};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[o]);const b=E.useCallback(x=>{g.current&&!g.current.contains(x.target)&&o()},[o]),v=E.useCallback(()=>{const x=u.trim();x&&s(x)},[u,s]),D=E.useCallback(x=>{x.key==="Enter"&&(x.preventDefault(),v())},[v]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:b,children:m.jsxDEV("div",{ref:g,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(tE,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:69,columnNumber:11},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:c("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:70,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:68,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4",children:[m.jsxDEV("input",{ref:h,value:u,onChange:x=>f(x.target.value),onKeyDown:D,placeholder:c("sources.folder.name_placeholder"),className:"w-full rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-2 text-sm text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:76,columnNumber:11},this),l&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:86,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:75,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:o,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:c("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:91,columnNumber:11},this),m.jsxDEV("button",{onClick:v,disabled:!u.trim(),className:"rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:90,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:64,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:60,columnNumber:5},this)}function aw({label:s,icon:o,items:l}){const[c,u]=E.useState(!1),f=E.useRef(null),h=E.useCallback(g=>{f.current&&!f.current.contains(g.target)&&u(!1)},[]);return E.useEffect(()=>{if(c)return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[c,h]),m.jsxDEV("div",{ref:f,className:"relative",children:[m.jsxDEV("button",{onClick:()=>u(g=>!g),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[o,m.jsxDEV("span",{className:"hidden sm:inline",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:40,columnNumber:9},this),m.jsxDEV(Ww,{size:12,className:`transition-transform ${c?"rotate-180":""}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:41,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:35,columnNumber:7},this),c&&m.jsxDEV("div",{className:"absolute right-0 top-full z-20 mt-1 min-w-[160px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg",children:l.map(g=>m.jsxDEV("button",{onClick:()=>{g.onClick(),u(!1)},className:"flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[g.icon,g.label]},g.label,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:46,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:34,columnNumber:5},this)}function Lj({onClose:s}){const{t:o}=He(),l=E.useRef(null),c=E.useCallback(u=>{l.current&&!l.current.contains(u.target)&&s()},[s]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:c,children:m.jsxDEV("div",{ref:l,className:"w-full max-w-sm rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(LT,{size:18,className:"text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:32,columnNumber:11},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:o("sources.upgrade.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:33,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:31,columnNumber:9},this),m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:o("sources.upgrade.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:37,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end",children:m.jsxDEV("button",{onClick:s,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:41,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:40,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:27,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:23,columnNumber:5},this)}function Hj({pathLabel:s,loading:o,onNavigateUp:l,children:c}){return m.jsxDEV("div",{className:"mt-4 flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:20,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:23,columnNumber:7},this),m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:o?m.jsxDEV("div",{className:"flex flex-1 items-center justify-center py-8",children:m.jsxDEV(Pa,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:27,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:26,columnNumber:11},this):m.jsxDEV(m.Fragment,{children:[l&&m.jsxDEV("button",{onClick:l,className:"flex w-full cursor-pointer items-center gap-3 rounded px-3 py-2 text-left text-sm text-c4a-text-primary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Vn,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:36,columnNumber:17},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:37,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:32,columnNumber:15},this),c]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:30,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:24,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:19,columnNumber:5},this)}function Bj({library:s,onNewFolder:o,onImportRepo:l,onImportDir:c,onUpgrade:u}){const{t:f}=He(),h=s.type==="daemon";return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("div",{className:"max-w-2xl text-center",children:[m.jsxDEV("h3",{className:"font-mono text-lg font-bold uppercase text-c4a-text-primary",children:f(h?"sources.empty.daemon.title":"sources.empty.cloud.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:64,columnNumber:9},this),m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:f(h?"sources.empty.daemon.description":"sources.empty.cloud.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:69,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-center gap-3",children:h?m.jsxDEV(m.Fragment,{children:[c&&m.jsxDEV("button",{onClick:c,disabled:!s.is_online,className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-4 py-2 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:opacity-40",children:f("sources.actions.import_dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:78,columnNumber:17},this),l&&m.jsxDEV("button",{onClick:l,disabled:!s.is_online,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:f("sources.actions.import_repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:87,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:76,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:o,className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-4 py-2 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:f("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:98,columnNumber:15},this),u&&m.jsxDEV("button",{onClick:u,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover",children:f("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:105,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:97,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:74,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:63,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:62,columnNumber:5},this)}function $j(){const{t:s}=He();return m.jsxDEV("div",{className:"rounded border border-c4a-border-subtle bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("h4",{className:"font-mono text-sm font-bold text-c4a-text-primary",children:s("sources.empty.indexed.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:126,columnNumber:7},this),m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-text-secondary",children:s("sources.empty.indexed.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:129,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:125,columnNumber:5},this)}const nw=s=>{const o=s.children??[];return{folders:o.filter(l=>l.kind==="folder").length,sources:o.filter(l=>l.kind==="source").length,codeSources:o.filter(l=>l.kind==="source"&&l.source_type==="code").length,docSources:o.filter(l=>l.kind==="source"&&l.source_type==="doc").length}};function Yj(){const{t:s}=He(),o=pr(),{libId:l}=Yf(),[c,u]=Pw(),f=c.get("rootId")||null,h=c.get("path")||"",b=Ra(dl(cu)).find(Se=>Se.id===l),{rootSources:v,currentRoot:D,loading:x,filter:N,fetchRootSources:R,fetchRootSource:T,createSource:B,addTreeNode:L,updateSource:Z,deleteSource:J,setFilter:te}=Qf(),[ue,re]=E.useState(!1),[me,fe]=E.useState(null),[_,Q]=E.useState(null),[H,$]=E.useState(null),[P,X]=E.useState(!1);E.useEffect(()=>{l&&R({library_id:l})},[l,R]),E.useEffect(()=>{f&&T(f)},[f,T]);const ae=f!==null,Ne=E.useMemo(()=>ae?D?[...jj(D.tree,h)].sort((qe,ft)=>qe.kind!==ft.kind?qe.kind==="folder"?-1:1:qe.name.localeCompare(ft.name)).map(qe=>({type:"node",root:D,node:qe})):[]:[...v].sort((ft,wt)=>new Date(ft.created_at).getTime()-new Date(wt.created_at).getTime()).map(ft=>({type:"root",root:ft,node:null})),[ae,v,D,h]),ee=E.useMemo(()=>N==="all"?Ne:Ne.filter(Se=>Se.type==="root"||!Se.node||Se.node.kind==="folder"?!0:N==="indexed"?Se.node.index_status==="indexed":Se.node.index_status==="none"||!Se.node.index_status),[Ne,N]),ie=b?.type==="daemon",he=b?.type==="cloud",W=ie&&!ae,ve=E.useMemo(()=>{if(!b)return[];const Se=[{label:b.id===Ff?s("sources.library.default_cloud_name"):b.name,to:`/studio/sources/${b.id}`}];return ae&&D&&(Se.push({label:D.name,to:`/studio/sources/${b.id}?rootId=${D.id}`}),h&&dE(D.tree,h).forEach(qe=>{Se.push({label:qe.name,to:`/studio/sources/${b.id}?rootId=${D.id}&path=${encodeURIComponent(qe.path)}`})})),Se},[b,ae,D,h,s]),q=E.useCallback(async Se=>{if(l)try{ae&&f?await L(f,{parent_path:h,kind:"folder",name:Se}):(await B({library_id:l,kind:"folder",name:Se}),R({library_id:l})),re(!1),fe(null)}catch(Je){Je instanceof Pg&&Je.status===409&&fe(s("sources.error.name_conflict",{name:Se}))}},[l,ae,f,h,B,L,R,s]),ge=E.useCallback(Se=>{l&&(Se.type==="root"?u({rootId:Se.root.id}):Se.node&&(Se.node.kind==="folder"?u({rootId:Se.root.id,path:Se.node.path}):o(`/studio/source/${Se.root.id}?path=${encodeURIComponent(Se.node.path)}`)))},[l,o,u]),Ue=E.useCallback(()=>{if(!(!f||!l))if(h){const Se=h.split("/");Se.pop();const Je=Se.join("/");u(Je?{rootId:f,path:Je}:{rootId:f})}else u({})},[f,l,h,u]),Re=E.useCallback(async(Se,Je)=>{try{return await Z(Se,{name:Je}),R({library_id:l}),null}catch(qe){return qe instanceof Pg&&qe.status===409?s("sources.error.name_conflict",{name:Je}):null}},[l,Z,R,s]),mt=E.useCallback(Se=>{if(Se.type==="root"){$(Se.root.id);const Je=Se.root.tree.length>0?nw({children:Se.root.tree}):void 0;Q(ie?{type:"repo",name:Se.root.name,libraryName:b.name,...Je?{packageCount:Je.codeSources,docCount:Je.docSources}:{}}:{type:"folder",name:Se.root.name,...Je?{folderCount:Je.folders,sourceCount:Je.sources}:{}})}},[ie,b]),Mt=E.useCallback(async()=>{if(!(!H||!l))try{await J(H),Q(null),$(null),R({library_id:l})}catch{}},[H,l,J,R]),ct=E.useCallback(()=>{l&&o(`/studio/sources/import/${l}`)},[l,o]),ta=E.useCallback(()=>{l&&o(`/studio/sources/import-dir/${l}`)},[l,o]);if(!b)return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:415,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:414,columnNumber:7},this);const Ft=v.length===0&&N==="all"&&!x&&!ae,Ja=ee.filter(Se=>Se.type==="node"&&Se.node?.kind==="source").length===0&&N==="indexed"&&!x,xe=!W,ss=he,Rt=W;return m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center gap-2",children:[m.jsxDEV("div",{className:"min-w-0 flex-1",children:m.jsxDEV(uu,{segments:ve},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:436,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:435,columnNumber:9},this),m.jsxDEV("div",{className:"flex shrink-0 items-center gap-2",children:[ss&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV(aw,{label:s("sources.actions.upload"),icon:m.jsxDEV(YT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:444,columnNumber:23},this),items:[{label:s("sources.actions.upload_md"),icon:m.jsxDEV(cl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:448,columnNumber:27},this),onClick:()=>X(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:442,columnNumber:15},this),m.jsxDEV(aw,{label:s("sources.actions.add"),icon:m.jsxDEV(aE,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:455,columnNumber:23},this),items:[{label:s("sources.actions.add_folder"),icon:m.jsxDEV(tE,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:459,columnNumber:27},this),onClick:()=>re(!0)},{label:s("sources.actions.add_web"),icon:m.jsxDEV(hT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:464,columnNumber:27},this),onClick:()=>X(!0)},{label:s("sources.actions.add_feishu"),icon:m.jsxDEV(aT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:469,columnNumber:27},this),onClick:()=>X(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:453,columnNumber:15},this),m.jsxDEV("button",{onClick:()=>X(!0),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[m.jsxDEV(YS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:478,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:479,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:474,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:441,columnNumber:13},this),Rt&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:ta,disabled:!b.is_online,title:b.is_online?void 0:s("sources.import.daemon_offline",{name:b.name}),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40",children:[m.jsxDEV(iT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:497,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:498,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:487,columnNumber:15},this),m.jsxDEV("button",{onClick:ct,disabled:!b.is_online,title:b.is_online?void 0:s("sources.import.daemon_offline",{name:b.name}),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40",children:[m.jsxDEV(YS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:510,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:511,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:500,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:486,columnNumber:13},this),xe&&m.jsxDEV(Aj,{value:N,onChange:te},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:517,columnNumber:26},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:438,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:434,columnNumber:7},this),Ft?m.jsxDEV(Bj,{library:b,onNewFolder:()=>re(!0),...ie?{onImportRepo:ct,onImportDir:ta}:{},...he?{onUpgrade:()=>X(!0)}:{}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:523,columnNumber:9},this):m.jsxDEV(Hj,{pathLabel:ve.map(Se=>Se.label).join(" / "),loading:x,onNavigateUp:ae?Ue:void 0,children:ee.length===0?Ja?m.jsxDEV($j,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:537,columnNumber:15},this):ae?m.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:s("sources.empty.folder.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:543,columnNumber:15},this):m.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:s("common.items",{count:0})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:539,columnNumber:15},this):m.jsxDEV("div",{className:"flex flex-col gap-0.5",children:ee.map(Se=>{if(Se.type==="root"){const wt=Se.root,No=ie,we=No?wt.metadata?.local_path:void 0,hn=wt.tree.length>0?nw({children:wt.tree}):void 0,_a=hn?hn.folders+hn.sources:0;return m.jsxDEV(tw,{source:{id:wt.id,library_id:wt.library_id,owner_id:wt.owner_id,path:"",kind:wt.kind,source_type:wt.source_type,name:wt.name,content_hash:wt.content_hash,metadata:wt.metadata,index_status:wt.index_status,created_at:wt.created_at,updated_at:wt.updated_at},...typeof we=="string"?{displayName:we}:{},..._a>0?{childCount:_a}:{},isDaemonLibrary:ie??!1,isRepoRoot:No,onClick:()=>ge(Se),onRename:Hn=>Re(wt.id,Hn),onDelete:()=>mt(Se)},wt.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:563,columnNumber:21},this)}const Je=Se.node,qe=`${Se.root.id}:${Je.path}`,ft=Je.kind==="folder"&&Je.children?Je.children.length:void 0;return m.jsxDEV(tw,{source:{id:Se.root.id,library_id:Se.root.library_id,owner_id:Se.root.owner_id,path:Je.path,kind:Je.kind,source_type:Je.source_type??null,name:Je.name,content_hash:null,metadata:Je.metadata??null,index_status:Je.index_status??"none",created_at:Se.root.created_at,updated_at:Se.root.updated_at},...ft!==void 0?{childCount:ft}:{},isDaemonLibrary:ie??!1,onClick:()=>ge(Se)},qe,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:597,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:548,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:530,columnNumber:9},this),ue&&m.jsxDEV(zj,{onConfirm:q,onCancel:()=>{re(!1),fe(null)},error:me},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:626,columnNumber:9},this),P&&m.jsxDEV(Lj,{onClose:()=>X(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:638,columnNumber:9},this),_&&m.jsxDEV(cE,{target:_,onConfirm:Mt,onCancel:()=>{Q(null),$(null)}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:643,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:432,columnNumber:5},this)}function fE(){const{t:s}=He(),[o,l]=E.useState(!1),[c,u]=E.useState(null),f=E.useRef(),h=E.useRef(),g=window.location.host,b=`c4a-daemon --server ${g} --allow <dir1> <dir2>`,v=`c4a-daemon --server ${g}`,D=E.useCallback((R,T)=>{navigator.clipboard.writeText(R),u(T),clearTimeout(f.current),f.current=setTimeout(()=>u(null),1500)},[]),x=E.useCallback(()=>{clearTimeout(h.current),l(!0)},[]),N=E.useCallback(()=>{h.current=setTimeout(()=>l(!1),150)},[]);return m.jsxDEV("span",{className:"relative",onMouseEnter:x,onMouseLeave:N,children:[m.jsxDEV(lb,{size:12,className:"text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:41,columnNumber:7},this),o&&m.jsxDEV("span",{className:"absolute left-full top-1/2 z-10 ml-2 -translate-y-1/2 rounded border border-c4a-border-default bg-c4a-bg-elevated px-2.5 py-2 shadow-lg",onMouseEnter:x,onMouseLeave:N,children:[m.jsxDEV("span",{className:"block whitespace-nowrap font-mono text-xs text-c4a-text-secondary",children:s("sources.import.allowed_dirs_tooltip_restrict")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:49,columnNumber:11},this),m.jsxDEV("span",{className:"mt-1 flex items-center gap-1.5 whitespace-nowrap",children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-accent",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:53,columnNumber:13},this),m.jsxDEV("button",{onClick:()=>D(b,0),className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c===0?m.jsxDEV(Lf,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:61,columnNumber:34},this):m.jsxDEV($S,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:61,columnNumber:56},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:56,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:52,columnNumber:11},this),m.jsxDEV("span",{className:"mt-2 block whitespace-nowrap font-mono text-xs text-c4a-text-secondary",children:s("sources.import.allowed_dirs_tooltip_all")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:66,columnNumber:11},this),m.jsxDEV("span",{className:"mt-1 flex items-center gap-1.5 whitespace-nowrap",children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-accent",children:v},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:70,columnNumber:13},this),m.jsxDEV("button",{onClick:()=>D(v,1),className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c===1?m.jsxDEV(Lf,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:78,columnNumber:34},this):m.jsxDEV($S,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:78,columnNumber:56},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:36,columnNumber:5},this)}function mE({open:s,onClose:o,rpc:l,onNavigate:c,defaultPath:u}){const{t:f}=He(),[h,g]=E.useState(u??""),[b,v]=E.useState(null),[D,x]=E.useState(!1),N=E.useRef(null);E.useEffect(()=>{u&&!h&&g(u)},[u]);const R=E.useCallback(async()=>{const B=h.trim();if(B){x(!0),v(null);try{(await l("fs/exists",{path:B})).exists?(c(B),g(u??""),v(null),o()):v(f("sources.import.wildcard_path_not_found"))}catch(L){v(L instanceof Error?L.message:String(L))}finally{x(!1)}}},[h,l,f,c,o]),T=E.useCallback(()=>{g(u??""),v(null),o()},[o,u]);return s?m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",children:m.jsxDEV("div",{className:"w-full max-w-md rounded-lg border border-c4a-border-default bg-c4a-bg-surface p-5 shadow-xl",children:[m.jsxDEV("div",{className:"flex items-center justify-between",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-medium text-c4a-text-primary",children:f("sources.import.wildcard_go_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:61,columnNumber:11},this),m.jsxDEV("button",{onClick:T,className:"rounded p-1 text-c4a-text-muted transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-secondary",children:m.jsxDEV(ub,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:68,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:64,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:60,columnNumber:9},this),m.jsxDEV("div",{className:"mt-3 flex items-center gap-2",children:[m.jsxDEV("input",{ref:N,type:"text",value:h,onChange:B=>{g(B.target.value),v(null)},onKeyDown:B=>{B.key==="Enter"&&R()},placeholder:f("sources.import.wildcard_path_placeholder"),autoFocus:!0,className:"flex-1 rounded border border-c4a-border-default bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:72,columnNumber:11},this),m.jsxDEV("button",{onClick:R,disabled:D||!h.trim(),className:"flex shrink-0 items-center gap-1.5 rounded bg-c4a-accent px-3 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[D?m.jsxDEV(Pa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:88,columnNumber:15},this):m.jsxDEV(Kw,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:90,columnNumber:15},this),f("sources.import.wildcard_go")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:82,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:71,columnNumber:9},this),b&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:59,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:58,columnNumber:5},this):null}function qj(s){const o=s.match(/^[\w.-]+@([\w.-]+):([\w./-]+?)(?:\.git)?$/);if(o){const l=o[1],c=o[2];return{slug:c,repoUrl:`https://${l}/${c}`,host:l}}try{const l=new URL(s),c=l.hostname,u=l.pathname.replace(/^\//,"").replace(/\.git$/,"");return u?{slug:u,repoUrl:`https://${c}/${u}`,host:c}:null}catch{return null}}function Gj(s,o){return`${s}/tree/${encodeURIComponent(o)}`}function Ij(s,o){return`${s}/commit/${o}`}function Fj({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:f}=He(),h=!!c&&c.length>0,g=h&&c.length===1&&c[0]==="*",[b,v]=E.useState(h),[D,x]=E.useState(h&&!g?"":"/"),[N,R]=E.useState([]),[T,B]=E.useState(!1),[L,Z]=E.useState(null),[J,te]=E.useState(null);E.useEffect(()=>{if(h&&!g)return;let W=!1;return(async()=>{try{const ve=await s("fs/homeDir",{});W||te(ve.home_dir)}catch{W||te("/")}})(),()=>{W=!0}},[h,g,s]);const[ue,re]=E.useState(!1),me=E.useCallback(async W=>{B(!0),Z(null);try{const ve=await s("fs/listTree",{path:W,depth:1});R(ve.entries||[]),x(W),v(!1)}catch(ve){const q=ve instanceof Error?ve.message:String(ve);Z(q)}finally{B(!1)}},[s]);E.useEffect(()=>{h&&!g||J!==null&&me(J)},[J]);const[fe,_]=E.useState(null),[Q,H]=E.useState(null),[$,P]=E.useState(!1);E.useEffect(()=>{if(!o){H(null),P(!1);return}H(null),P(!0);let W=!1;return(async()=>{try{const ve=await s("fs/repoStatus",{path:o});W||(H({branch:ve.branch,hash:ve.head_hash,remoteUrl:ve.remote_url}),P(!1))}catch{W||(H(null),P(!1))}})(),()=>{W=!0}},[o,s]);const X=E.useMemo(()=>Q?.remoteUrl?qj(Q.remoteUrl):null,[Q?.remoteUrl]),ae=E.useMemo(()=>new Set(u??[]),[u]),Ne=E.useCallback(W=>{if(W.type==="directory")if(W.is_git_repo){if(ae.has(W.path))return;_(null),l(W.path,W.name)}else _(W.path),me(W.path)},[l,me,ae]),ee=E.useCallback(()=>{if(h&&!g&&c.some(q=>q===D)){v(!0),x(""),R([]),Z(null),_(null);return}const W=D.split("/").slice(0,-1).join("/")||"/";_(null),me(W)},[D,me,h,g,c]),ie=E.useMemo(()=>N.filter(W=>W.type==="directory").sort((W,ve)=>W.is_git_repo&&!ve.is_git_repo?-1:!W.is_git_repo&&ve.is_git_repo?1:W.name.localeCompare(ve.name)),[N]),he=E.useMemo(()=>N.filter(W=>W.type==="file").sort((W,ve)=>W.name.localeCompare(ve.name)),[N]);return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1",children:[b?m.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:f("sources.import.allowed_dirs")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:212,columnNumber:13},this),m.jsxDEV(fE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:213,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:211,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 shrink truncate font-mono text-xs text-c4a-text-muted",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:216,columnNumber:11},this),o&&$?m.jsxDEV("div",{className:"flex shrink-0 items-center gap-1.5 font-mono text-xs text-c4a-accent",children:[m.jsxDEV(Pa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:222,columnNumber:13},this),m.jsxDEV("span",{children:f("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:223,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:221,columnNumber:11},this):o&&Q?m.jsxDEV("div",{className:"flex shrink-0 items-center gap-1.5 font-mono text-xs leading-none text-c4a-accent",children:[X?m.jsxDEV("a",{href:X.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:underline",title:X.repoUrl,children:[m.jsxDEV(GS,{size:12,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:235,columnNumber:17},this),m.jsxDEV("span",{children:X.slug},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:236,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:228,columnNumber:15},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV(GS,{size:12,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:240,columnNumber:17},this),m.jsxDEV("span",{children:o.split("/").pop()||o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:241,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:239,columnNumber:15},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"/"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:244,columnNumber:13},this),X?m.jsxDEV("a",{href:Gj(X.repoUrl,Q.branch),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:underline",children:[m.jsxDEV(qS,{size:10,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:252,columnNumber:17},this),m.jsxDEV("span",{children:Q.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:253,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:246,columnNumber:15},this):m.jsxDEV("span",{className:"flex items-center gap-1",children:[m.jsxDEV(qS,{size:10,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:257,columnNumber:17},this),m.jsxDEV("span",{children:Q.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:258,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:256,columnNumber:15},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"/"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:261,columnNumber:13},this),X?m.jsxDEV("a",{href:Ij(X.repoUrl,Q.hash),target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:Q.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:263,columnNumber:15},this):m.jsxDEV("span",{children:Q.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:272,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:226,columnNumber:11},this):!o&&g&&b?m.jsxDEV("button",{onClick:()=>re(!0),className:"flex shrink-0 items-center gap-1.5 rounded border border-c4a-accent/40 bg-c4a-accent/10 px-2.5 py-1 text-xs text-c4a-accent transition-colors hover:bg-c4a-accent/20",children:f("sources.import.wildcard_goto")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:276,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:209,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:285,columnNumber:7},this),b?g?m.jsxDEV("div",{className:"min-h-0 flex-1 overflow-y-auto",children:J&&m.jsxDEV("button",{onClick:()=>me(J),className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Vn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:296,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[J,m.jsxDEV("span",{className:"ml-1.5 text-c4a-text-muted",children:["(",f("sources.import.wildcard_home"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:299,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:297,columnNumber:17},this),m.jsxDEV(vo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:303,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:292,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:290,columnNumber:11},this):m.jsxDEV("div",{className:"min-h-0 flex-1 overflow-y-auto",children:c.map(W=>m.jsxDEV("button",{onClick:()=>me(W),className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Vn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:316,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:W},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:317,columnNumber:17},this),m.jsxDEV(vo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:318,columnNumber:17},this)]},W,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:311,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:309,columnNumber:11},this):L&&!T?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:327,columnNumber:9},this):m.jsxDEV("div",{className:"relative mt-3 min-h-[5rem] min-h-0 flex-1 overflow-y-auto",children:[T&&m.jsxDEV("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-c4a-bg-surface/60",children:m.jsxDEV(Pa,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:332,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:331,columnNumber:13},this),D!=="/"&&m.jsxDEV("button",{onClick:ee,disabled:T,className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover disabled:pointer-events-none",children:[m.jsxDEV(Vn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:342,columnNumber:15},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:343,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:337,columnNumber:13},this),ie.map(W=>{const ve=W.is_git_repo&&ae.has(W.path),q=W.is_git_repo?cb:Vn;return m.jsxDEV("div",{className:`flex w-full items-center rounded text-left text-sm transition-colors ${ve?"cursor-not-allowed opacity-50":o===W.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-accent/10 hover:text-c4a-accent"}`,children:[m.jsxDEV("button",{onClick:()=>Ne(W),disabled:ve||T,className:"flex flex-1 items-center gap-2 px-2 py-1.5",children:[m.jsxDEV(q,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:367,columnNumber:17},this),m.jsxDEV("span",{className:"flex-1 truncate text-left",children:W.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:368,columnNumber:17},this),ve&&m.jsxDEV("span",{className:"rounded bg-c4a-bg-active px-1.5 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:f("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:370,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:362,columnNumber:15},this),!ve&&m.jsxDEV("button",{onClick:ge=>{ge.stopPropagation(),me(W.path)},disabled:T,className:"shrink-0 rounded p-1.5 text-c4a-text-muted transition-colors hover:bg-c4a-accent/10 hover:text-c4a-accent disabled:pointer-events-none",title:W.path,children:m.jsxDEV(vo,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:382,columnNumber:19},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:376,columnNumber:17},this)]},W.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:352,columnNumber:13},this)}),he.map(W=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 px-2 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(eE,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:395,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:W.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:396,columnNumber:15},this)]},W.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:391,columnNumber:13},this)),N.length===0&&!T&&m.jsxDEV("p",{className:"py-4 text-center text-xs text-c4a-text-muted",children:f("sources.import.no_entries")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:401,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:329,columnNumber:9},this),fe&&!o&&m.jsxDEV("p",{className:"mt-3 text-xs text-c4a-warning",children:f("sources.import.not_git")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:410,columnNumber:9},this),m.jsxDEV(mE,{open:ue,onClose:()=>re(!1),rpc:s,onNavigate:me,defaultPath:J??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:416,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:208,columnNumber:5},this)}const Xj=/\.md$/i,Qj=(s,o)=>{const l=s.toLowerCase();try{if(l.endsWith("package.json")){const c=JSON.parse(o);if(typeof c.name=="string"&&c.name.trim())return c.name.trim()}if(l.endsWith("pyproject.toml"))return o.match(/^\s*name\s*=\s*["']([^"']+)["']/m)?.[1]??null;if(l.endsWith("go.mod"))return o.match(/^\s*module\s+([^\s]+)\s*$/m)?.[1]??null;if(l.endsWith("cargo.toml"))return o.match(/^\s*name\s*=\s*["']([^"']+)["']/m)?.[1]??null;if(l.endsWith("pom.xml"))return o.match(/<artifactId>([^<]+)<\/artifactId>/)?.[1]?.trim()??null;if(l.endsWith("build.gradle"))return o.match(/rootProject\.name\s*=\s*["']([^"']+)["']/)?.[1]??null}catch{return null}return null};function Zj({rpc:s,repoPath:o,onReady:l,onBusyChange:c}){const{t:u}=He(),[f,h]=E.useState(""),[g,b]=E.useState([]),[v,D]=E.useState(""),[x,N]=E.useState([]),[R,T]=E.useState(!1),[B,L]=E.useState(!0),[Z,J]=E.useState(!1),[te,ue]=E.useState([]),[re,me]=E.useState([]),[,fe]=E.useState([]),_=E.useCallback(async($,P)=>{J(!0),c?.(!0);try{const X=await s("fs/repoScan",{path:o,hash:$}),ae=X.files||[],Ne=X.manifests||[];fe(ae);const ee=new Map;for(const q of Ne)ee.set(q.path,q);const ie=[];for(const q of Ne){const ge=q.path.split("/"),Ue=ge.slice(0,-1).join("/")||".",Re=ge.length===1||q.path==="package.json",mt=Ue==="."?o.split("/").pop()||"root":ge[ge.length-2]||Ue,Mt=Qj(q.path,q.content);ie.push({name:Mt||mt,path:Ue,isRoot:Re})}const he=ae.filter(q=>Xj.test(q.path)).map(q=>q.path);me(he),ue(ie);const W=P?.branch??f,ve=P?.isDirty??R;l({branch:W,commit:$,isDirty:ve,repoFiles:ae,packages:ie,mdFiles:he,repoFileContents:Ne})}catch{}finally{J(!1),c?.(!1)}},[s,o,f,R,l,c]);E.useEffect(()=>{(async()=>{L(!0),c?.(!0);try{const $=await s("fs/repoStatus",{path:o});h($.branch),b($.branches||[$.branch]),D($.head_hash),T($.is_dirty),N($.commits||[{hash:$.head_hash,message:"HEAD"}]),await _($.head_hash,{branch:$.branch,isDirty:$.is_dirty})}catch{}finally{L(!1),c?.(!1)}})()},[o]),E.useEffect(()=>{l({branch:f,commit:v,isDirty:R,packages:te,mdFiles:re,repoFileContents:[]})},[f,v,R]);const Q=E.useCallback(async $=>{h($);try{const P=await s("fs/repoStatus",{path:o});D(P.head_hash),await _(P.head_hash)}catch{}},[o,s,_]),H=f&&f!=="main"&&f!=="master";return B?m.jsxDEV("div",{className:"flex items-center justify-center py-12",children:m.jsxDEV(Pa,{size:20,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:198,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:197,columnNumber:7},this):m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[m.jsxDEV("div",{children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:u("sources.detail.repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:209,columnNumber:13},this),m.jsxDEV("p",{className:"mt-0.5 font-mono text-xs text-c4a-text-primary",children:o.split("/").pop()},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:212,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:208,columnNumber:11},this),m.jsxDEV("div",{children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:u("sources.import.current_path")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:217,columnNumber:13},this),m.jsxDEV("p",{className:"mt-0.5 font-mono text-xs text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:220,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:216,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:207,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4 grid grid-cols-2 gap-4",children:[m.jsxDEV("div",{children:[m.jsxDEV("label",{className:"font-mono text-xs text-c4a-text-muted",children:u("sources.import.branch")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:229,columnNumber:13},this),m.jsxDEV("select",{value:f,onChange:$=>Q($.target.value),className:"mt-1 w-full rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent",children:g.map($=>m.jsxDEV("option",{value:$,children:$},$,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:238,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:232,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:228,columnNumber:11},this),m.jsxDEV("div",{children:[m.jsxDEV("label",{className:"font-mono text-xs text-c4a-text-muted",children:u("sources.import.commit")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:245,columnNumber:13},this),m.jsxDEV("select",{value:v,onChange:$=>{D($.target.value),_($.target.value)},className:"mt-1 w-full rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent",children:x.map($=>m.jsxDEV("option",{value:$.hash,children:[$.hash.slice(0,7)," - ",$.message.slice(0,60)]},$.hash,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:257,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:248,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:244,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:227,columnNumber:9},this),m.jsxDEV("div",{className:"mt-3 space-y-1",children:[H&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-info",children:[m.jsxDEV(bT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:269,columnNumber:15},this),u("sources.import.branch_warning",{branch:f})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:268,columnNumber:13},this),R&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-warning",children:[m.jsxDEV(lb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:275,columnNumber:15},this),u("sources.import.uncommitted_warning")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:274,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:266,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:206,columnNumber:7},this),m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:Z?m.jsxDEV("div",{className:"flex items-center gap-2 py-4",children:[m.jsxDEV(Pa,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:286,columnNumber:13},this),m.jsxDEV("span",{className:"text-xs text-c4a-text-muted",children:"Analyzing repository..."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:287,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:285,columnNumber:11},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{className:"font-mono text-xs text-c4a-text-primary",children:te.length>0?u("sources.import.recognized",{packages:te.length,docs:re.length}):u("sources.import.no_packages")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:293,columnNumber:13},this),te.length>0&&m.jsxDEV("div",{className:"mt-3 max-h-60 space-y-1 overflow-y-auto",children:te.map($=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-xs",children:[m.jsxDEV(Gf,{size:14,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:309,columnNumber:21},this),m.jsxDEV("span",{className:"text-c4a-text-primary",children:$.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:310,columnNumber:21},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:$.path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:311,columnNumber:21},this),$.isRoot&&m.jsxDEV("span",{className:"rounded bg-c4a-bg-active px-1 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:"root"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:313,columnNumber:23},this)]},$.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:305,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:303,columnNumber:15},this),re.length>0&&m.jsxDEV("div",{className:"mt-3 space-y-1",children:re.map($=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-xs",children:[m.jsxDEV(cl,{size:14,className:"shrink-0 text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:329,columnNumber:21},this),m.jsxDEV("span",{className:"text-c4a-text-primary",children:$},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:333,columnNumber:21},this)]},$,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:325,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:323,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:292,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:283,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:204,columnNumber:5},this)}function Pj({importState:s,libraryName:o,importing:l}){const{t:c}=He();return m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[m.jsxDEV("p",{className:"text-sm text-c4a-text-secondary",children:c("sources.import.confirm_heading",{name:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:20,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 space-y-2 text-sm",children:[m.jsxDEV(Ic,{label:c("sources.detail.repo"),value:s.repoName},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:25,columnNumber:9},this),m.jsxDEV(Ic,{label:c("sources.import.branch"),value:s.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:29,columnNumber:9},this),m.jsxDEV(Ic,{label:c("sources.import.commit"),value:s.commit.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:33,columnNumber:9},this),m.jsxDEV(Ic,{label:c("sources.import.packages"),value:String(s.packages.length)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:37,columnNumber:9},this),m.jsxDEV(Ic,{label:c("sources.import.documents"),value:String(s.mdFiles.length)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:41,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:24,columnNumber:7},this),l&&m.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[m.jsxDEV(Pa,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:50,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:c("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:51,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:49,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:19,columnNumber:5},this)}function Ic({label:s,value:o}){return m.jsxDEV("div",{className:"flex items-center gap-4",children:[m.jsxDEV("span",{className:"w-24 font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:63,columnNumber:7},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:66,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:62,columnNumber:5},this)}function Jj(){const{t:s}=He(),o=pr(),{libId:l}=Yf(),u=Ra(dl(cu)).find(_=>_.id===l),f=Qf(_=>_.createSource),[h,g]=E.useState(1),[b,v]=E.useState(!1),[D,x]=E.useState(!1),[N,R]=E.useState({repoPath:"",repoName:"",branch:"",branches:[],commit:"",commits:[],isDirty:!1,repoFiles:[],packages:[],mdFiles:[],repoFileContents:[]}),T=u?.is_online??!1,[B,L]=E.useState([]);E.useEffect(()=>{if(!l)return;let _=!1;return(async()=>{try{const Q=await Da.get("/sources",{library_id:l,limit:"500"});if(_)return;const H=Q.items.map($=>{const P=$.metadata;return typeof P?.local_path=="string"?P.local_path:null}).filter($=>$!==null);L(H)}catch{}})(),()=>{_=!0}},[l]);const Z=E.useMemo(()=>{const _=u?.config;return!_||!Array.isArray(_.allowed_paths)?[]:_.allowed_paths},[u]),J=E.useCallback(async(_,Q)=>{if(!l)throw new Error("No library");const H=await Da.post(`/libraries/${l}/rpc`,{method:_,params:Q});if(H.error){const $=H.error;throw new Error($.message??JSON.stringify(H.error))}return H.result??H},[l]),te=E.useCallback((_,Q)=>{R(H=>({...H,repoPath:_,repoName:Q}))},[]),ue=E.useCallback(_=>{R(Q=>({...Q,..._}))},[]),re=E.useCallback(async()=>{if(l){v(!0);try{const _=await f({library_id:l,repo_name:N.repoName,repo_root_path:N.repoPath,repo_branch:N.branch,repo_commit:N.commit,repo_files:N.repoFiles.map(H=>H.path),repo_file_contents:N.repoFileContents}),Q=Array.isArray(_)?_[0]:_;Q?.id?o(`/studio/sources/${l}?rootId=${Q.id}`):o(`/studio/sources/${l}`)}catch{v(!1)}}},[l,N,f,o]),me=E.useMemo(()=>h===1?!!N.repoPath:h===2?!!N.commit:!0,[h,N]),fe=E.useMemo(()=>u?[{label:u.id===Ff?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.title")}]:[],[u,s]);return u?m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"shrink-0",children:m.jsxDEV(uu,{segments:fe},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:191,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:190,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex shrink-0 items-center gap-2 font-mono text-sm md:gap-3",children:[m.jsxDEV(Bg,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:196,columnNumber:9},this),m.jsxDEV("span",{className:h===1?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.select")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:197,columnNumber:9},this),m.jsxDEV(sw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:200,columnNumber:9},this),m.jsxDEV(Bg,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:201,columnNumber:9},this),m.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.version")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:202,columnNumber:9},this),m.jsxDEV(sw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:205,columnNumber:9},this),m.jsxDEV(Bg,{active:h>=3,current:h===3},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:206,columnNumber:9},this),m.jsxDEV("span",{className:h===3?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:207,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:195,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex min-h-0 flex-1 flex-col",children:T?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(Fj,{rpc:J,selectedPath:N.repoPath,onSelect:te,allowedPaths:Z,importedPaths:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:221,columnNumber:15},this),h===2&&m.jsxDEV(Zj,{rpc:J,repoPath:N.repoPath,onReady:ue,onBusyChange:x},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:230,columnNumber:15},this),h===3&&m.jsxDEV(Pj,{importState:N,libraryName:u.name,importing:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:238,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:219,columnNumber:11},this):m.jsxDEV(Kj,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:215,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:213,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 shrink-0 text-right text-xs text-c4a-text-muted",children:s("sources.safety.notice.repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:249,columnNumber:7},this),T&&m.jsxDEV("div",{className:"mt-6 flex shrink-0 justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:[h>1&&m.jsxDEV("button",{onClick:()=>g(_=>_-1),disabled:b||D,className:"rounded border border-c4a-border-default px-4 py-2 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover disabled:opacity-40",children:s("common.previous")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:257,columnNumber:13},this),h<3?m.jsxDEV("button",{onClick:()=>g(_=>_+1),disabled:!me||D,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:s("common.next")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:266,columnNumber:13},this):m.jsxDEV("button",{onClick:re,disabled:b||D,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[b&&m.jsxDEV(Pa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:279,columnNumber:29},this),s(b?"sources.import.importing":"sources.import.step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:274,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:255,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:189,columnNumber:5},this):m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:183,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:182,columnNumber:7},this)}function Bg({active:s,current:o}){return m.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${o?"border-c4a-accent bg-c4a-accent":s?"border-c4a-accent bg-transparent":"border-c4a-border-default bg-transparent"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:299,columnNumber:5},this)}function sw(){return m.jsxDEV("span",{className:"h-px flex-1 bg-c4a-border-default"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:312,columnNumber:10},this)}function Kj({libraryName:s}){const{t:o}=He();return m.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("p",{className:"text-sm text-c4a-warning",children:o("sources.import.daemon_offline",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:323,columnNumber:7},this),m.jsxDEV(Za,{to:"/studio/sources/add-client",className:"mt-4 inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:326,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:322,columnNumber:5},this)}const ow=(s,o)=>{let l=0,c=0,u=0;const f=[],h=g=>{for(const b of g)if(b.type==="directory")c++,b.is_git_repo&&u++,b.children&&h(b.children);else if(l++,/\.md$/i.test(b.name)){const v=b.path.startsWith(o)?b.path.slice(o.length).replace(/^\//,""):b.name;f.push(v)}};return h(s),{files:l,dirs:c,gitRepos:u,mdFiles:f}};function Wj({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:f}=He(),h=!!c&&c.length>0,g=h&&c.length===1&&c[0]==="*",[b,v]=E.useState(h),[D,x]=E.useState(h&&!g?"":"/"),[N,R]=E.useState([]),[T,B]=E.useState(!1),[L,Z]=E.useState(null),J=E.useMemo(()=>new Set(u??[]),[u]),[te,ue]=E.useState(null);E.useEffect(()=>{if(h&&!g)return;let X=!1;return(async()=>{try{const ae=await s("fs/homeDir",{});X||ue(ae.home_dir)}catch{X||ue("/")}})(),()=>{X=!0}},[h,g,s]);const[re,me]=E.useState(!1),fe=E.useCallback(async X=>{B(!0),Z(null);try{const ae=await s("fs/listTree",{path:X,depth:1});R(ae.entries||[]),x(X),v(!1)}catch(ae){const Ne=ae instanceof Error?ae.message:String(ae);Z(Ne)}finally{B(!1)}},[s]);E.useEffect(()=>{h&&!g||te!==null&&fe(te)},[te]);const _=E.useCallback(X=>{if(X.type!=="directory"||J.has(X.path))return;const ae=ow(X.children||[],X.path);l(X.path,X.name,ae),fe(X.path)},[l,fe,J]),Q=E.useCallback(()=>{if(h&&!g&&c.some(Ne=>Ne===D)){v(!0),x(""),R([]),Z(null);return}const X=D.split("/").slice(0,-1).join("/")||"/";fe(X)},[D,fe,h,g,c]);E.useEffect(()=>{if(D&&!b&&N.length>=0&&!T){const X=D.split("/").pop()||D,ae=ow(N,D);l(D,X,ae)}},[D,b,N,T]);const H=E.useMemo(()=>o?o.split("/").pop()||o:"",[o]),$=E.useMemo(()=>N.filter(X=>X.type==="directory").sort((X,ae)=>X.is_git_repo&&!ae.is_git_repo?-1:!X.is_git_repo&&ae.is_git_repo?1:X.name.localeCompare(ae.name)),[N]),P=E.useMemo(()=>N.filter(X=>X.type==="file").sort((X,ae)=>X.name.localeCompare(ae.name)),[N]);return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"flex items-center justify-between gap-4",children:[b?m.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:f("sources.import.allowed_dirs")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:201,columnNumber:13},this),m.jsxDEV(fE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:202,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:200,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:205,columnNumber:11},this),o?m.jsxDEV("p",{className:"flex shrink-0 items-center gap-2 font-mono text-xs text-c4a-accent",children:[m.jsxDEV(Vn,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:211,columnNumber:13},this),m.jsxDEV("span",{children:H},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:212,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:210,columnNumber:11},this):g&&b?m.jsxDEV("button",{onClick:()=>me(!0),className:"flex shrink-0 items-center gap-1.5 rounded border border-c4a-accent/40 bg-c4a-accent/10 px-2.5 py-1 text-xs text-c4a-accent transition-colors hover:bg-c4a-accent/20",children:f("sources.import.wildcard_goto")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:215,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:198,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:224,columnNumber:7},this),b?g?m.jsxDEV("div",{className:"min-h-0 flex-1 overflow-y-auto",children:te&&m.jsxDEV("button",{onClick:()=>fe(te),className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Vn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:235,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[te,m.jsxDEV("span",{className:"ml-1.5 text-c4a-text-muted",children:["(",f("sources.import.wildcard_home"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:238,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:236,columnNumber:17},this),m.jsxDEV(vo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:242,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:231,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:229,columnNumber:11},this):m.jsxDEV("div",{className:"min-h-0 flex-1 overflow-y-auto",children:c.map(X=>m.jsxDEV("button",{onClick:()=>fe(X),className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Vn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:255,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:X},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:256,columnNumber:17},this),m.jsxDEV(vo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:257,columnNumber:17},this)]},X,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:250,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:248,columnNumber:11},this):L&&!T?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:266,columnNumber:9},this):m.jsxDEV("div",{className:"relative mt-3 min-h-[5rem] min-h-0 flex-1 overflow-y-auto",children:[T&&m.jsxDEV("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-c4a-bg-surface/60",children:m.jsxDEV(Pa,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:271,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:270,columnNumber:13},this),D!=="/"&&m.jsxDEV("button",{onClick:Q,disabled:T,className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover disabled:pointer-events-none",children:[m.jsxDEV(Vn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:280,columnNumber:15},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:281,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:275,columnNumber:13},this),$.map(X=>{const ae=J.has(X.path),Ne=X.is_git_repo?cb:Vn;return m.jsxDEV("button",{onClick:()=>_(X),disabled:ae||T,className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors ${ae?"cursor-not-allowed opacity-50":o===X.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[m.jsxDEV(Ne,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:301,columnNumber:15},this),m.jsxDEV("span",{className:"flex-1 truncate",children:X.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:302,columnNumber:15},this),ae&&m.jsxDEV("span",{className:"rounded bg-c4a-bg-active px-1.5 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:f("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:304,columnNumber:17},this),m.jsxDEV(vo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:308,columnNumber:15},this)]},X.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:289,columnNumber:13},this)}),P.map(X=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 px-2 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(eE,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:321,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:X.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:322,columnNumber:15},this)]},X.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:317,columnNumber:13},this)),N.length===0&&!T&&m.jsxDEV("p",{className:"py-4 text-center text-xs text-c4a-text-muted",children:f("sources.import.no_entries")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:327,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:268,columnNumber:9},this),m.jsxDEV(mE,{open:re,onClose:()=>me(!1),rpc:s,onNavigate:fe,defaultPath:te??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:335,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:197,columnNumber:5},this)}const eO=new Set(["package.json","pyproject.toml","setup.py","go.mod","cargo.toml","pom.xml","build.gradle"]),tO=s=>{let o=0,l=0,c=0,u=0,f=0;const h=new Set;for(const g of s)if(g.type==="directory")l++,g.is_git_repo&&f++;else{o++,g.path.toLowerCase().endsWith(".md")&&u++;const v=g.path.split("/").pop();if(v&&eO.has(v.toLowerCase())){const D=g.path.split("/").slice(0,-1).join("/");s.some(N=>N.type==="directory"&&N.is_git_repo&&(D===N.path||D.startsWith(`${N.path}/`)))||h.add(D)}}return c=h.size,{totalFiles:o,totalDirs:l,codePackages:c,docFiles:u,gitRepos:f}};function aO({dirPath:s,rpc:o,importing:l,onScanComplete:c,onBusyChange:u}){const{t:f}=He(),[h,g]=E.useState(!1),[b,v]=E.useState(null),[D,x]=E.useState(null),N=E.useCallback(async()=>{g(!0),u?.(!0),v(null),x(null);try{const R=await o("fs/dirScan",{path:s}),T=R.entries||[],B=R.manifests||[],L=tO(T);x(L),c(T,L,B)}catch(R){const T=R instanceof Error?R.message:String(R);v(T)}finally{g(!1),u?.(!1)}},[s,o,c,u]);return E.useEffect(()=>{N()},[N]),m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[m.jsxDEV("p",{className:"font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:128,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 border-t border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:129,columnNumber:7},this),h&&m.jsxDEV("div",{className:"mt-6 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-4",children:[m.jsxDEV(Pa,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:133,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:f("sources.import.dir_scanning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:134,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:132,columnNumber:9},this),b&&m.jsxDEV("div",{className:"mt-6",children:[m.jsxDEV("p",{className:"flex items-start gap-2 text-xs text-c4a-error",children:[m.jsxDEV(lb,{size:14,className:"mt-0.5 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:143,columnNumber:13},this),f("sources.import.dir_scan_error")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:142,columnNumber:11},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:146,columnNumber:11},this),m.jsxDEV("button",{onClick:N,className:"mt-3 flex items-center gap-1.5 rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(UT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:151,columnNumber:13},this),f("sources.import.dir_scan_retry")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:147,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:141,columnNumber:9},this),D&&!h&&!b&&m.jsxDEV("div",{className:"mt-6 space-y-3",children:[m.jsxDEV("p",{className:"font-mono text-sm uppercase text-c4a-accent",children:[f("sources.import.dir_scan_complete"),"!"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:159,columnNumber:11},this),m.jsxDEV("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-4",children:[m.jsxDEV(kf,{icon:m.jsxDEV(Gf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:165,columnNumber:21},this),label:f("sources.import.dir_code_packages"),value:D.codePackages},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:164,columnNumber:13},this),m.jsxDEV(kf,{icon:m.jsxDEV(cl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:170,columnNumber:21},this),label:f("sources.import.dir_doc_files"),value:D.docFiles},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:169,columnNumber:13},this),m.jsxDEV(kf,{icon:m.jsxDEV(Vn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:175,columnNumber:21},this),label:f("sources.import.dir_total_dirs"),value:D.totalDirs},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:174,columnNumber:13},this),m.jsxDEV(kf,{icon:m.jsxDEV(cl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:180,columnNumber:21},this),label:f("sources.import.dir_total_files"),value:D.totalFiles},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:179,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:163,columnNumber:11},this),D.gitRepos>0&&m.jsxDEV("p",{className:"flex items-start gap-2 text-xs text-c4a-warning",children:[m.jsxDEV(cb,{size:14,className:"mt-0.5 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:188,columnNumber:15},this),f("sources.import.dir_git_skip_hint",{count:D.gitRepos})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:187,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:158,columnNumber:9},this),l&&m.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[m.jsxDEV(Pa,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:198,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:f("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:199,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:197,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:127,columnNumber:5},this)}function kf({icon:s,label:o,value:l}){return m.jsxDEV("div",{className:"rounded border border-c4a-border-subtle bg-c4a-bg-base p-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5 text-c4a-text-muted",children:[s,m.jsxDEV("span",{className:"font-mono text-[10px] uppercase",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:221,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:219,columnNumber:7},this),m.jsxDEV("p",{className:"mt-1 font-mono text-lg font-bold text-c4a-text-primary",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:223,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:218,columnNumber:5},this)}function nO(){const{t:s}=He(),o=pr(),{libId:l}=Yf(),u=Ra(dl(cu)).find(_=>_.id===l),f=Qf(_=>_.createSource),[h,g]=E.useState(1),[b,v]=E.useState(!1),[D,x]=E.useState(!1),[N,R]=E.useState({dirPath:"",dirName:"",fileCount:0,subDirCount:0,gitRepoCount:0,mdFiles:[],scanEntries:[],scanStats:null,manifests:[]}),T=u?.is_online??!1,[B,L]=E.useState([]);E.useEffect(()=>{if(!l)return;let _=!1;return(async()=>{try{const Q=await Da.get("/sources",{library_id:l,limit:"500"});if(_)return;const H=Q.items.map($=>{const P=$.metadata;return typeof P?.local_path=="string"?P.local_path:null}).filter($=>$!==null);L(H)}catch{}})(),()=>{_=!0}},[l]);const Z=E.useMemo(()=>{const _=u?.config;return!_||!Array.isArray(_.allowed_paths)?[]:_.allowed_paths},[u]),J=E.useCallback(async(_,Q)=>{if(!l)throw new Error("No library");const H=await Da.post(`/libraries/${l}/rpc`,{method:_,params:Q});if(H.error){const $=H.error;throw new Error($.message??JSON.stringify(H.error))}return H.result??H},[l]),te=E.useCallback((_,Q,H)=>{R($=>({...$,dirPath:_,dirName:Q,fileCount:H.files,subDirCount:H.dirs,gitRepoCount:H.gitRepos,mdFiles:H.mdFiles}))},[]),ue=E.useCallback((_,Q,H)=>{R($=>({...$,scanEntries:_,scanStats:Q,manifests:H}))},[]),re=E.useCallback(async()=>{if(l){v(!0);try{const _=await f({library_id:l,dir_files:N.scanEntries,dir_name:N.dirName,dir_path:N.dirPath,dir_file_contents:N.manifests}),Q=Array.isArray(_)?_[0]:_;Q?.id?o(`/studio/sources/${l}?rootId=${Q.id}`):o(`/studio/sources/${l}`)}catch{v(!1)}}},[l,N,f,o]),me=E.useMemo(()=>h===1?!!N.dirPath:h===2?N.scanEntries.length>0:!0,[h,N]),fe=E.useMemo(()=>u?[{label:u.id===Ff?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.dir_title")}]:[],[u,s]);return u?m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"shrink-0",children:m.jsxDEV(uu,{segments:fe},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:192,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:191,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex shrink-0 items-center gap-2 font-mono text-sm md:gap-3",children:[m.jsxDEV(rw,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:197,columnNumber:9},this),m.jsxDEV("span",{className:h===1?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.dir_step.select")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:198,columnNumber:9},this),m.jsxDEV(sO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:201,columnNumber:9},this),m.jsxDEV(rw,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:202,columnNumber:9},this),m.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.dir_step.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:203,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:196,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex min-h-0 flex-1 flex-col",children:T?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(Wj,{rpc:J,selectedPath:N.dirPath,onSelect:te,allowedPaths:Z,importedPaths:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:215,columnNumber:15},this),h===2&&m.jsxDEV(aO,{dirPath:N.dirPath,rpc:J,importing:b,onScanComplete:ue,onBusyChange:x},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:224,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:213,columnNumber:11},this):m.jsxDEV(oO,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:211,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:209,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 shrink-0 text-right text-xs text-c4a-text-muted",children:s("sources.safety.notice.dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:237,columnNumber:7},this),T&&m.jsxDEV("div",{className:"mt-6 flex shrink-0 justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:[h>1&&m.jsxDEV("button",{onClick:()=>g(_=>_-1),disabled:b||D,className:"rounded border border-c4a-border-default px-4 py-2 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover disabled:opacity-40",children:s("common.previous")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:245,columnNumber:13},this),h<2?m.jsxDEV("button",{onClick:()=>g(_=>_+1),disabled:!me||D,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:s("common.next")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:254,columnNumber:13},this):m.jsxDEV("button",{onClick:re,disabled:b||D||!me,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[b&&m.jsxDEV(Pa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:267,columnNumber:29},this),s(b?"sources.import.importing":"sources.import.dir_step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:262,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:243,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:190,columnNumber:5},this):m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:184,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:183,columnNumber:7},this)}function rw({active:s,current:o}){return m.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${o?"border-c4a-accent bg-c4a-accent":s?"border-c4a-accent bg-transparent":"border-c4a-border-default bg-transparent"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:287,columnNumber:5},this)}function sO(){return m.jsxDEV("span",{className:"h-px flex-1 bg-c4a-border-default"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:300,columnNumber:10},this)}function oO({libraryName:s}){const{t:o}=He();return m.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("p",{className:"text-sm text-c4a-warning",children:o("sources.import.daemon_offline",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:307,columnNumber:7},this),m.jsxDEV(Za,{to:"/studio/sources/add-client",className:"mt-4 inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:310,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:306,columnNumber:5},this)}function rO(){const{t:s}=He(),o=pr(),l=Ra(N=>N.createLibrary),[c,u]=E.useState("waiting"),[f,h]=E.useState(null),[g,b]=E.useState(""),[v,D]=E.useState(!1);E.useEffect(()=>Ls.on("ws:daemon:connected",R=>{const T=R;h(T),b(T.machine_id),u(T.needs_registration?"new_client":"reconnected")}),[]);const x=E.useCallback(async()=>{if(f){D(!0);try{const N=await l({type:"daemon",name:g||f.machine_id,config:{machine_id:f.machine_id,os:f.os||"",daemon_version:f.daemon_version||""}});o(`/studio/sources/${N.id}`)}catch{D(!1)}}},[f,g,l,o]);return m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(uu,{segments:[{label:s("sources.add_client.title")}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:62,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:s("sources.add_client.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:66,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:m.jsxDEV("ol",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["1. ",s("sources.add_client.step1")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:74,columnNumber:13},this),m.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:"npm install -g @c4a/daemon"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:77,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:73,columnNumber:11},this),m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["2. ",s("sources.add_client.step2")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:82,columnNumber:13},this),m.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:`c4a-daemon --server ${window.location.host} --allow ./`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:85,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:81,columnNumber:11},this),m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["3. ",s("sources.add_client.step3")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:90,columnNumber:13},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:s("sources.add_client.step3_desc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:93,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:89,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:72,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:71,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:[c==="waiting"&&m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(Pa,{size:16,className:"animate-spin text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:104,columnNumber:13},this),m.jsxDEV("span",{className:"text-sm text-c4a-warning",children:s("sources.add_client.waiting")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:105,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:103,columnNumber:11},this),c==="new_client"&&f&&m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-bold text-c4a-text-primary",children:s("sources.add_client.detected")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:113,columnNumber:13},this),m.jsxDEV("div",{className:"space-y-2 text-sm",children:[m.jsxDEV($g,{label:s("sources.add_client.machine_name"),value:f.machine_id},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:117,columnNumber:15},this),f.os&&m.jsxDEV($g,{label:s("sources.add_client.os"),value:f.os},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:122,columnNumber:17},this),f.daemon_version&&m.jsxDEV($g,{label:s("sources.add_client.daemon_version"),value:f.daemon_version},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:128,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:116,columnNumber:13},this),m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:s("sources.add_client.client_name")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:135,columnNumber:15},this),m.jsxDEV("input",{value:g,onChange:N=>b(N.target.value),className:"min-w-0 flex-1 rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:138,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:134,columnNumber:13},this),m.jsxDEV("div",{className:"flex justify-end gap-2 pt-2",children:[m.jsxDEV("button",{onClick:()=>o("/studio/sources"),className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:s("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:145,columnNumber:15},this),m.jsxDEV("button",{onClick:x,disabled:v||!g.trim(),className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-50",children:[v&&m.jsxDEV(Pa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:157,columnNumber:19},this),s("sources.add_client.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:151,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:144,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:112,columnNumber:11},this),c==="reconnected"&&f&&m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(Lf,{size:16,className:"text-c4a-success"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:168,columnNumber:15},this),m.jsxDEV("span",{className:"text-sm text-c4a-text-primary",children:s("sources.add_client.reconnected",{name:f.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:169,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:167,columnNumber:13},this),f.lib_id&&m.jsxDEV(Za,{to:`/studio/sources/${f.lib_id}`,className:"inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:s("sources.add_client.go_to",{name:f.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:176,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:166,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:101,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:61,columnNumber:5},this)}function $g({label:s,value:o}){return m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:195,columnNumber:7},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:198,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:194,columnNumber:5},this)}function iO(){const{t:s}=He(),{sourceUuid:o}=Yf(),[l]=Pw(),c=l.get("path")||"",{currentRoot:u,loading:f,fetchRootSource:h}=Qf(),g=Ra(dl(cu)),[b,v]=E.useState("original");E.useEffect(()=>{o&&h(o)},[o,h]);const D=E.useMemo(()=>!u||!c?null:Xf(u.tree,c),[u,c]),x=g.find(te=>te.id===u?.library_id),N=D?.metadata,R=N?Object.fromEntries(Object.entries(N).map(([te,ue])=>[te,String(ue??"")])):null,T=D?.source_type==="code",B=D?.name??u?.name??"",L=D?.source_type??null,Z=E.useMemo(()=>{if(!u||!x)return[];const te=[{label:x.id===Ff?s("sources.library.default_cloud_name"):x.name,to:`/studio/sources/${x.id}`},{label:u.name,to:`/studio/sources/${x.id}?rootId=${u.id}`}];if(c){const ue=dE(u.tree,c);for(let re=0;re<ue.length-1;re++){const me=ue[re];te.push({label:me.name,to:`/studio/sources/${x.id}?rootId=${u.id}&path=${encodeURIComponent(me.path)}`})}ue.length>0&&te.push({label:ue[ue.length-1].name})}return te},[u,x,c,s]),J=[{key:"original",label:s(T?"sources.detail.tab.overview":"sources.detail.tab.original")},{key:"digest",label:s("sources.detail.tab.digest")},{key:"modeling",label:s("sources.detail.tab.modeling")}];return f||!u||!D?m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:103,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:102,columnNumber:7},this):m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(uu,{segments:Z},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:110,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex items-center gap-2",children:[T?m.jsxDEV(Gf,{size:20,className:"text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:115,columnNumber:11},this):m.jsxDEV(cl,{size:20,className:"text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:117,columnNumber:11},this),m.jsxDEV("h1",{className:"font-mono text-xl font-bold text-c4a-text-primary",children:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:119,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:113,columnNumber:7},this),m.jsxDEV("div",{className:"mt-2 flex flex-wrap gap-4 text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:[s("sources.detail.type"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(L==="code"?"sources.type.code":"sources.type.doc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:128,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:126,columnNumber:9},this),T&&R?.relative_path&&m.jsxDEV("span",{children:[s("sources.detail.path"),":"," ",m.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:R.relative_path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:137,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:135,columnNumber:11},this),!T&&m.jsxDEV("span",{children:[s("sources.detail.origin"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:x?.type==="daemon"?s("sources.detail.origin.local"):s("sources.detail.origin.upload")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:145,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:143,columnNumber:11},this),m.jsxDEV("span",{children:[s("sources.detail.status"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(`sources.status.${D.index_status??"none"}`)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:154,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:152,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:125,columnNumber:7},this),T&&R&&m.jsxDEV("div",{className:"mt-4 rounded border border-c4a-border-subtle bg-c4a-bg-surface p-4",children:m.jsxDEV("div",{className:"grid grid-cols-2 gap-x-8 gap-y-2 text-xs md:grid-cols-4",children:[R.repo_name&&m.jsxDEV(Uf,{label:s("sources.detail.repo"),value:R.repo_name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:165,columnNumber:15},this),R.pinned_branch&&m.jsxDEV(Uf,{label:s("sources.detail.branch"),value:R.pinned_branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:171,columnNumber:15},this),R.pinned_hash&&m.jsxDEV(Uf,{label:s("sources.detail.commit"),value:R.pinned_hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:177,columnNumber:15},this),R.tech_stack&&m.jsxDEV(Uf,{label:s("sources.detail.tech_stack"),value:R.tech_stack},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:183,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:163,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:162,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex border-b border-c4a-border-subtle",children:J.map(te=>m.jsxDEV("button",{onClick:()=>v(te.key),className:`border-b-2 px-4 py-2 font-mono text-xs uppercase transition-colors ${b===te.key?"border-c4a-accent text-c4a-accent":"border-transparent text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:te.label},te.key,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:195,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:193,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex-1",children:[b==="original"&&m.jsxDEV(lO,{node:D,isCode:T},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:212,columnNumber:11},this),b==="digest"&&m.jsxDEV(iw,{message:s("sources.detail.digest_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:215,columnNumber:11},this),b==="modeling"&&m.jsxDEV(iw,{message:s("sources.detail.modeling_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:218,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:210,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:109,columnNumber:5},this)}function Uf({label:s,value:o}){return m.jsxDEV("div",{children:[m.jsxDEV("span",{className:"text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:230,columnNumber:7},this),m.jsxDEV("p",{className:"mt-0.5 font-mono text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:231,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:229,columnNumber:5},this)}function lO({node:s,isCode:o}){const{t:l}=He(),c=s.metadata;return o?m.jsxDEV("div",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[!!c?.description&&m.jsxDEV("p",{children:String(c.description)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:250,columnNumber:11},this),!!c?.dependencies&&m.jsxDEV("div",{children:[m.jsxDEV("h4",{className:"font-mono text-xs font-bold uppercase text-c4a-text-primary",children:l("sources.detail.dependencies")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:254,columnNumber:13},this),m.jsxDEV("div",{className:"mt-2 rounded bg-c4a-bg-surface p-3 font-mono text-xs",children:Object.entries(c.dependencies).map(([u,f])=>m.jsxDEV("div",{className:"flex justify-between py-0.5",children:[m.jsxDEV("span",{className:"text-c4a-text-primary",children:u},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:262,columnNumber:19},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:f},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:263,columnNumber:19},this)]},u,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:261,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:257,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:253,columnNumber:11},this),!c?.description&&!c?.dependencies&&m.jsxDEV("p",{className:"text-c4a-text-muted",children:l("sources.detail.original_code_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:270,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:248,columnNumber:7},this):m.jsxDEV("div",{className:"prose prose-invert max-w-none text-sm text-c4a-text-secondary",children:m.jsxDEV("p",{className:"text-c4a-text-muted",children:l("sources.detail.original_doc_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:280,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:279,columnNumber:5},this)}function iw({message:s}){return m.jsxDEV("div",{className:"flex items-center justify-center rounded border border-dashed border-c4a-border-subtle p-12",children:m.jsxDEV("p",{className:"text-center text-sm text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:290,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:289,columnNumber:5},this)}const cO="lib_cloud_default",uO=EU([{element:m.jsxDEV(fj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:29,columnNumber:14},void 0),children:[{path:"/",element:m.jsxDEV(yj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:31,columnNumber:29},void 0)},{path:"/login",element:m.jsxDEV(vj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:32,columnNumber:34},void 0)},{path:"/docs",element:m.jsxDEV(xj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:33,columnNumber:33},void 0)}]},{path:"/studio",element:m.jsxDEV(bj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:40,columnNumber:14},void 0),children:[{index:!0,element:m.jsxDEV(LS,{to:"/studio/sources",replace:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:42,columnNumber:31},void 0)},{path:"sources",element:m.jsxDEV(LS,{to:`/studio/sources/${cO}`,replace:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:46,columnNumber:11},void 0)},{path:"sources/add-client",element:m.jsxDEV(rO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:52,columnNumber:46},void 0)},{path:"sources/import/:libId",element:m.jsxDEV(Jj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:53,columnNumber:49},void 0)},{path:"sources/import-dir/:libId",element:m.jsxDEV(nO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:54,columnNumber:53},void 0)},{path:"sources/:libId",element:m.jsxDEV(Yj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:55,columnNumber:42},void 0)},{path:"source/:sourceUuid",element:m.jsxDEV(iO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:56,columnNumber:46},void 0)},{path:"modeling",element:m.jsxDEV(Sj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:57,columnNumber:36},void 0)},{path:"modeling/code/setup",element:m.jsxDEV(Cj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:58,columnNumber:47},void 0)},{path:"modeling/code/compile",element:m.jsxDEV(kj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:59,columnNumber:49},void 0)},{path:"modeling/code/review",element:m.jsxDEV(Uj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:60,columnNumber:48},void 0)},{path:"modeling/code/result",element:m.jsxDEV(Tj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:61,columnNumber:48},void 0)},{path:"brain",element:m.jsxDEV(wj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:62,columnNumber:33},void 0)},{path:"discovery",element:m.jsxDEV(Ej,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:63,columnNumber:37},void 0)},{path:"sharing",element:m.jsxDEV(Dj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:64,columnNumber:35},void 0)},{path:"collaboration",element:m.jsxDEV(Rj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:65,columnNumber:41},void 0)},{path:"settings",element:m.jsxDEV(_j,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:66,columnNumber:36},void 0)}]},{path:"*",element:m.jsxDEV(Nj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:71,columnNumber:25},void 0)}]);function dO(){return E.useEffect(()=>{const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;return Ls.connect(o),()=>{Ls.disconnect()}},[]),m.jsxDEV(Pk,{router:uO},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/App.tsx",lineNumber:17,columnNumber:10},this)}uC.createRoot(document.getElementById("root")).render(m.jsxDEV(E.StrictMode,{children:m.jsxDEV(dO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/main.tsx",lineNumber:9,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/main.tsx",lineNumber:8,columnNumber:3},void 0));
|