@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 $R(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 YR(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 qR(){return O1||(O1=1,(function(s,o){(function(){function l(w,V){Object.defineProperty(f.prototype,w,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",V[0],V[1])}})}function c(w){return w===null||typeof w!="object"?null:(w=$n&&w[$n]||w["@@iterator"],typeof w=="function"?w:null)}function u(w,V){w=(w=w.constructor)&&(w.displayName||w.name)||"ReactClass";var ne=w+"."+V;Et[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.",V,w),Et[ne]=!0)}function f(w,V,ne){this.props=w,this.context=V,this.refs=dt,this.updater=ne||xa}function h(){}function g(w,V,ne){this.props=w,this.context=V,this.refs=dt,this.updater=ne||xa}function y(){}function x(w){return""+w}function D(w){try{x(w);var V=!1}catch{V=!0}if(V){V=console;var ne=V.error,ue=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return ne.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ue),x(w)}}function v(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===Le?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case B:return"Fragment";case De:return"Profiler";case ge:return"StrictMode";case ct:return"Suspense";case oa:return"SuspenseList";case Ne: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 ae:return"Portal";case ft:return w.displayName||"Context";case Re:return(w._context.displayName||"Context")+".Consumer";case Mt:var V=w.render;return w=w.displayName,w||(w=V.displayName||V.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case Ft:return V=w.displayName||null,V!==null?V:v(w.type)||"Memo";case Ka:V=w._payload,w=w._init;try{return v(w(V))}catch{}}return null}function S(w){if(w===B)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===Ka)return"<...>";try{var V=v(w);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function R(){var w=re.A;return w===null?null:w.getOwner()}function j(){return Error("react-stack-top-frame")}function L(w){if(Ke.call(w,"key")){var V=Object.getOwnPropertyDescriptor(w,"key").get;if(V&&V.isReactWarning)return!1}return w.key!==void 0}function H(w,V){function ne(){Yn||(Yn=!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)",V))}ne.isReactWarning=!0,Object.defineProperty(w,"key",{get:ne,configurable:!0})}function Q(){var w=v(this.type);return Ya[w]||(Ya[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 Z(w,V,ne,ue,we,Be){var ke=ne.ref;return w={$$typeof:ve,type:w,key:V,props:ne,_owner:ue},(ke!==void 0?ke:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:Q}):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:we}),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,V){return V=Z(w.type,V,w.props,w._owner,w._debugStack,w._debugTask),w._store&&(V._store.validated=w._store.validated),V}function he(w){fe(w)?w._store&&(w._store.validated=1):typeof w=="object"&&w!==null&&w.$$typeof===Ka&&(w._payload.status==="fulfilled"?fe(w._payload.value)&&w._payload.value._store&&(w._payload.value._store.validated=1):w._store&&(w._store.validated=1))}function fe(w){return typeof w=="object"&&w!==null&&w.$$typeof===ve}function me(w){var V={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(ne){return V[ne]})}function ee(w,V){return typeof w=="object"&&w!==null&&w.key!=null?(D(w.key),me(""+w.key)):V.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(y,y):(w.status="pending",w.then(function(V){w.status==="pending"&&(w.status="fulfilled",w.value=V)},function(V){w.status==="pending"&&(w.status="rejected",w.reason=V)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function X(w,V,ne,ue,we){var Be=typeof w;(Be==="undefined"||Be==="boolean")&&(w=null);var ke=!1;if(w===null)ke=!0;else switch(Be){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(w.$$typeof){case ve:case ae:ke=!0;break;case Ka:return ke=w._init,X(ke(w._payload),V,ne,ue,we)}}if(ke){ke=w,we=we(ke);var at=ue===""?"."+ee(ke,0):ue;return rs(we)?(ne="",at!=null&&(ne=at.replace(qa,"$&/")+"/"),X(we,V,ne,"",function(ra){return ra})):we!=null&&(fe(we)&&(we.key!=null&&(ke&&ke.key===we.key||D(we.key)),ne=te(we,ne+(we.key==null||ke&&ke.key===we.key?"":(""+we.key).replace(qa,"$&/")+"/")+at),ue!==""&&ke!=null&&fe(ke)&&ke.key==null&&ke._store&&!ke._store.validated&&(ne._store.validated=2),we=ne),V.push(we)),1}if(ke=0,at=ue===""?".":ue+":",rs(w))for(var qe=0;qe<w.length;qe++)ue=w[qe],Be=at+ee(ue,qe),ke+=X(ue,V,ne,Be,we);else if(qe=c(w),typeof qe=="function")for(qe===w.entries&&(xn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),xn=!0),w=qe.call(w),qe=0;!(ue=w.next()).done;)ue=ue.value,Be=at+ee(ue,qe++),ke+=X(ue,V,ne,Be,we);else if(Be==="object"){if(typeof w.then=="function")return X(_(w),V,ne,ue,we);throw V=String(w),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return ke}function $(w,V,ne){if(w==null)return w;var ue=[],we=0;return X(w,ue,"","",function(Be){return V.call(ne,Be,we++)}),ue}function Y(w){if(w._status===-1){var V=w._ioInfo;V!=null&&(V.start=V.end=performance.now()),V=w._result;var ne=V();if(ne.then(function(we){if(w._status===0||w._status===-1){w._status=1,w._result=we;var Be=w._ioInfo;Be!=null&&(Be.end=performance.now()),ne.status===void 0&&(ne.status="fulfilled",ne.value=we)}},function(we){if(w._status===0||w._status===-1){w._status=2,w._result=we;var Be=w._ioInfo;Be!=null&&(Be.end=performance.now()),ne.status===void 0&&(ne.status="rejected",ne.reason=we)}}),V=w._ioInfo,V!=null){V.value=ne;var ue=ne.displayName;typeof ue=="string"&&(V.name=ue)}w._status===-1&&(w._status=0,w._result=ne)}if(w._status===1)return V=w._result,V===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?`,V),"default"in V||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'))`,V),V.default;throw w._result}function P(){var w=re.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 ce(){re.asyncTransitions--}function J(w){if(Bs===null)try{var V=("require"+Math.random()).slice(0,7);Bs=(s&&s[V]).call(s,"timers").setImmediate}catch{Bs=function(ue){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 we=new MessageChannel;we.port1.onmessage=ue,we.port2.postMessage(void 0)}}return Bs(w)}function ie(w){return 1<w.length&&typeof AggregateError=="function"?new AggregateError(w):w[0]}function W(w,V){V!==Nn-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. "),Nn=V}function de(w,V,ne){var ue=re.actQueue;if(ue!==null)if(ue.length!==0)try{ye(ue),J(function(){return de(w,V,ne)});return}catch(we){re.thrownErrors.push(we)}else re.actQueue=null;0<re.thrownErrors.length?(ue=ie(re.thrownErrors),re.thrownErrors.length=0,ne(ue)):V(w)}function ye(w){if(!Na){Na=!0;var V=0;try{for(;V<w.length;V++){var ne=w[V];do{re.didUsePromise=!1;var ue=ne(!1);if(ue!==null){if(re.didUsePromise){w[V]=ne,w.splice(0,V);return}ne=ue}else break}while(!0)}w.length=0}catch(we){w.splice(0,V+1),re.thrownErrors.push(we)}finally{Na=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ve=Symbol.for("react.transitional.element"),ae=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),De=Symbol.for("react.profiler"),Re=Symbol.for("react.consumer"),ft=Symbol.for("react.context"),Mt=Symbol.for("react.forward_ref"),ct=Symbol.for("react.suspense"),oa=Symbol.for("react.suspense_list"),Ft=Symbol.for("react.memo"),Ka=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),$n=Symbol.iterator,Et={},xa={isMounted:function(){return!1},enqueueForceUpdate:function(w){u(w,"forceUpdate")},enqueueReplaceState:function(w){u(w,"replaceState")},enqueueSetState:function(w){u(w,"setState")}},Wa=Object.assign,dt={};Object.freeze(dt),f.prototype.isReactComponent={},f.prototype.setState=function(w,V){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,V,"setState")},f.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};var Dt={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(qn in Dt)Dt.hasOwnProperty(qn)&&l(qn,Dt[qn]);h.prototype=f.prototype,Dt=g.prototype=new h,Dt.constructor=g,Wa(Dt,f.prototype),Dt.isPureReactComponent=!0;var rs=Array.isArray,Le=Symbol.for("react.client.reference"),re={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ke=Object.prototype.hasOwnProperty,Xt=console.createTask?console.createTask:function(){return null};Dt={react_stack_bottom_frame:function(w){return w()}};var Yn,vn,Ya={},Vt=Dt.react_stack_bottom_frame.bind(Dt,j)(),So=Xt(S(j)),xn=!1,qa=/\/+/g,Ua=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=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(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},wo=!1,Bs=null,Nn=0,$s=!1,Na=!1,Ys=typeof queueMicrotask=="function"?function(w){queueMicrotask(function(){return queueMicrotask(w)})}:J;Dt=Object.freeze({__proto__:null,c:function(w){return P().useMemoCache(w)}});var qn={map:$,forEach:function(w,V,ne){$(w,function(){V.apply(this,arguments)},ne)},count:function(w){var V=0;return $(w,function(){V++}),V},toArray:function(w){return $(w,function(V){return V})||[]},only:function(w){if(!fe(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};o.Activity=Ne,o.Children=qn,o.Component=f,o.Fragment=B,o.Profiler=De,o.PureComponent=g,o.StrictMode=ge,o.Suspense=ct,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=re,o.__COMPILER_RUNTIME=Dt,o.act=function(w){var V=re.actQueue,ne=Nn;Nn++;var ue=re.actQueue=V!==null?V:[],we=!1;try{var Be=w()}catch(qe){re.thrownErrors.push(qe)}if(0<re.thrownErrors.length)throw W(V,ne),w=ie(re.thrownErrors),re.thrownErrors.length=0,w;if(Be!==null&&typeof Be=="object"&&typeof Be.then=="function"){var ke=Be;return Ys(function(){we||$s||($s=!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(qe,ra){we=!0,ke.then(function(Ca){if(W(V,ne),ne===0){try{ye(ue),J(function(){return de(Ca,qe,ra)})}catch(Gs){re.thrownErrors.push(Gs)}if(0<re.thrownErrors.length){var qs=ie(re.thrownErrors);re.thrownErrors.length=0,ra(qs)}}else qe(Ca)},function(Ca){W(V,ne),0<re.thrownErrors.length&&(Ca=ie(re.thrownErrors),re.thrownErrors.length=0),ra(Ca)})}}}var at=Be;if(W(V,ne),ne===0&&(ye(ue),ue.length!==0&&Ys(function(){we||$s||($s=!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(() => ...)"))}),re.actQueue=null),0<re.thrownErrors.length)throw w=ie(re.thrownErrors),re.thrownErrors.length=0,w;return{then:function(qe,ra){we=!0,ne===0?(re.actQueue=ue,J(function(){return de(at,qe,ra)})):qe(at)}}},o.cache=function(w){return function(){return w.apply(null,arguments)}},o.cacheSignal=function(){return null},o.captureOwnerStack=function(){var w=re.getCurrentStack;return w===null?null:w()},o.cloneElement=function(w,V,ne){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ue=Wa({},w.props),we=w.key,Be=w._owner;if(V!=null){var ke;e:{if(Ke.call(V,"ref")&&(ke=Object.getOwnPropertyDescriptor(V,"ref").get)&&ke.isReactWarning){ke=!1;break e}ke=V.ref!==void 0}ke&&(Be=R()),L(V)&&(D(V.key),we=""+V.key);for(at in V)!Ke.call(V,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&V.ref===void 0||(ue[at]=V[at])}var at=arguments.length-2;if(at===1)ue.children=ne;else if(1<at){ke=Array(at);for(var qe=0;qe<at;qe++)ke[qe]=arguments[qe+2];ue.children=ke}for(ue=Z(w.type,we,ue,Be,w._debugStack,w._debugTask),we=2;we<arguments.length;we++)he(arguments[we]);return ue},o.createContext=function(w){return w={$$typeof:ft,_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,V,ne){for(var ue=2;ue<arguments.length;ue++)he(arguments[ue]);ue={};var we=null;if(V!=null)for(qe in vn||!("__self"in V)||"key"in V||(vn=!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")),L(V)&&(D(V.key),we=""+V.key),V)Ke.call(V,qe)&&qe!=="key"&&qe!=="__self"&&qe!=="__source"&&(ue[qe]=V[qe]);var Be=arguments.length-2;if(Be===1)ue.children=ne;else if(1<Be){for(var ke=Array(Be),at=0;at<Be;at++)ke[at]=arguments[at+2];Object.freeze&&Object.freeze(ke),ue.children=ke}if(w&&w.defaultProps)for(qe in Be=w.defaultProps,Be)ue[qe]===void 0&&(ue[qe]=Be[qe]);we&&H(ue,typeof w=="function"?w.displayName||w.name||"Unknown":w);var qe=1e4>re.recentlyCreatedOwnerStacks++;return Z(w,we,ue,R(),qe?Error("react-stack-top-frame"):Vt,qe?Xt(S(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 V={$$typeof:Mt,render:w},ne;return Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return ne},set:function(ue){ne=ue,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ue}),w.displayName=ue)}}),V},o.isValidElement=fe,o.lazy=function(w){w={_status:-1,_result:w};var V={$$typeof:Ka,_payload:w,_init:Y},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,V._debugInfo=[{awaited:ne}],V},o.memo=function(w,V){w==null&&console.error("memo: The first argument must be a component. Instead received: %s",w===null?"null":typeof w),V={$$typeof:Ft,type:w,compare:V===void 0?null:V};var ne;return Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return ne},set:function(ue){ne=ue,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ue}),w.displayName=ue)}}),V},o.startTransition=function(w){var V=re.T,ne={};ne._updatedFibers=new Set,re.T=ne;try{var ue=w(),we=re.S;we!==null&&we(ne,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&(re.asyncTransitions++,ue.then(ce,ce),ue.then(y,Ua))}catch(Be){Ua(Be)}finally{V===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.")),V!==null&&ne.types!==null&&(V.types!==null&&V.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."),V.types=ne.types),re.T=V}},o.unstable_useCacheRefresh=function(){return P().useCacheRefresh()},o.use=function(w){return P().use(w)},o.useActionState=function(w,V,ne){return P().useActionState(w,V,ne)},o.useCallback=function(w,V){return P().useCallback(w,V)},o.useContext=function(w){var V=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?"),V.useContext(w)},o.useDebugValue=function(w,V){return P().useDebugValue(w,V)},o.useDeferredValue=function(w,V){return P().useDeferredValue(w,V)},o.useEffect=function(w,V){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,V)},o.useEffectEvent=function(w){return P().useEffectEvent(w)},o.useId=function(){return P().useId()},o.useImperativeHandle=function(w,V,ne){return P().useImperativeHandle(w,V,ne)},o.useInsertionEffect=function(w,V){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,V)},o.useLayoutEffect=function(w,V){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,V)},o.useMemo=function(w,V){return P().useMemo(w,V)},o.useOptimistic=function(w,V){return P().useOptimistic(w,V)},o.useReducer=function(w,V,ne){return P().useReducer(w,V,ne)},o.useRef=function(w){return P().useRef(w)},o.useState=function(w){return P().useState(w)},o.useSyncExternalStore=function(w,V,ne){return P().useSyncExternalStore(w,V,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=qR()),Eg.exports}var M1;function GR(){if(M1)return wf;M1=1;return(function(){function s(B){if(B==null)return null;if(typeof B=="function")return B.$$typeof===Y?null:B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case H:return"Fragment";case Z:return"Profiler";case Q:return"StrictMode";case me:return"Suspense";case ee:return"SuspenseList";case $:return"Activity"}if(typeof B=="object")switch(typeof B.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),B.$$typeof){case L:return"Portal";case he:return B.displayName||"Context";case te:return(B._context.displayName||"Context")+".Consumer";case fe:var ge=B.render;return B=B.displayName,B||(B=ge.displayName||ge.name||"",B=B!==""?"ForwardRef("+B+")":"ForwardRef"),B;case _:return ge=B.displayName||null,ge!==null?ge:s(B.type)||"Memo";case X:ge=B._payload,B=B._init;try{return s(B(ge))}catch{}}return null}function o(B){return""+B}function l(B){try{o(B);var ge=!1}catch{ge=!0}if(ge){ge=console;var De=ge.error,Re=typeof Symbol=="function"&&Symbol.toStringTag&&B[Symbol.toStringTag]||B.constructor.name||"Object";return De.call(ge,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Re),o(B)}}function c(B){if(B===H)return"<>";if(typeof B=="object"&&B!==null&&B.$$typeof===X)return"<...>";try{var ge=s(B);return ge?"<"+ge+">":"<...>"}catch{return"<...>"}}function u(){var B=P.A;return B===null?null:B.getOwner()}function f(){return Error("react-stack-top-frame")}function h(B){if(ce.call(B,"key")){var ge=Object.getOwnPropertyDescriptor(B,"key").get;if(ge&&ge.isReactWarning)return!1}return B.key!==void 0}function g(B,ge){function De(){W||(W=!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))}De.isReactWarning=!0,Object.defineProperty(B,"key",{get:De,configurable:!0})}function y(){var B=s(this.type);return de[B]||(de[B]=!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.")),B=this.props.ref,B!==void 0?B:null}function x(B,ge,De,Re,ft,Mt){var ct=De.ref;return B={$$typeof:j,type:B,key:ge,props:De,_owner:Re},(ct!==void 0?ct:null)!==null?Object.defineProperty(B,"ref",{enumerable:!1,get:y}):Object.defineProperty(B,"ref",{enumerable:!1,value:null}),B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(B,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(B,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ft}),Object.defineProperty(B,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Mt}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B}function D(B,ge,De,Re,ft,Mt){var ct=ge.children;if(ct!==void 0)if(Re)if(J(ct)){for(Re=0;Re<ct.length;Re++)v(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 v(ct);if(ce.call(ge,"key")){ct=s(B);var oa=Object.keys(ge).filter(function(Ka){return Ka!=="key"});Re=0<oa.length?"{key: someKey, "+oa.join(": ..., ")+": ...}":"{key: someKey}",ae[ct+Re]||(oa=0<oa.length?"{"+oa.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,oa,ct),ae[ct+Re]=!0)}if(ct=null,De!==void 0&&(l(De),ct=""+De),h(ge)&&(l(ge.key),ct=""+ge.key),"key"in ge){De={};for(var Ft in ge)Ft!=="key"&&(De[Ft]=ge[Ft])}else De=ge;return ct&&g(De,typeof B=="function"?B.displayName||B.name||"Unknown":B),x(B,ct,De,u(),ft,Mt)}function v(B){S(B)?B._store&&(B._store.validated=1):typeof B=="object"&&B!==null&&B.$$typeof===X&&(B._payload.status==="fulfilled"?S(B._payload.value)&&B._payload.value._store&&(B._payload.value._store.validated=1):B._store&&(B._store.validated=1))}function S(B){return typeof B=="object"&&B!==null&&B.$$typeof===j}var R=nu(),j=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),he=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),P=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,J=Array.isArray,ie=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(B){return B()}};var W,de={},ye=R.react_stack_bottom_frame.bind(R,f)(),ve=ie(c(f)),ae={};wf.Fragment=H,wf.jsxDEV=function(B,ge,De,Re){var ft=1e4>P.recentlyCreatedOwnerStacks++;return D(B,ge,De,Re,ft?Error("react-stack-top-frame"):ye,ft?ie(c(B)):ve)}})(),wf}var V1;function IR(){return V1||(V1=1,wg.exports=GR()),wg.exports}var m=IR();const Ge=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,FR=(s,o,l)=>{s.forEach(c=>{o[c]&&(l[c]=o[c])})},XR=/###/g,L1=s=>s&&s.indexOf("###")>-1?s.replace(XR,"."):s,H1=s=>!s||Ge(s),Zc=(s,o,l)=>{const c=Ge(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},QR=(s,o,l,c)=>{const{obj:u,k:f}=Zc(s,o,Object);u[f]=u[f]||[],u[f].push(l)},Mf=(s,o)=>{const{obj:l,k:c}=Zc(s,o);if(l&&Object.prototype.hasOwnProperty.call(l,c))return l[c]},ZR=(s,o,l)=>{const c=Mf(s,l);return c!==void 0?c:Mf(o,l)},ow=(s,o,l)=>{for(const c in o)c!=="__proto__"&&c!=="constructor"&&(c in s?Ge(s[c])||s[c]instanceof String||Ge(o[c])||o[c]instanceof String?l&&(s[c]=o[c]):ow(s[c],o[c],l):s[c]=o[c]);return s},Wr=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var JR={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const PR=s=>Ge(s)?s.replace(/[&<>"'\/]/g,o=>JR[o]):s;class KR{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 WR=[" ",",","?","!",";"],e_=new KR(20),t_=(s,o,l)=>{o=o||"",l=l||"";const c=WR.filter(h=>o.indexOf(h)<0&&l.indexOf(h)<0);if(c.length===0)return!0;const u=e_.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 y=f;y<c.length;++y)if(y!==f&&(g+=l),g+=c[y],h=u[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&y<c.length-1)continue;f+=y-f+1;break}u=h}return u},Kc=s=>s?.replace("_","-"),a_={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||a_,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:(Ge(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 zs=new Vf;class Bf{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 Bf{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):Ge(c)&&f?g.push(...c.split(f)):g.push(c)));const y=Mf(this.data,g);return!y&&!l&&!c&&o.indexOf(".")>-1&&(o=g[0],l=g[1],c=g.slice(2).join(".")),y||!h||!Ge(c)?y: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)(Ge(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 y=Mf(this.data,g)||{};h.skipCopy||(c=JSON.parse(JSON.stringify(c))),u?ow(y,c,f):y={...y,...c},B1(this.data,g,y),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 rw={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 iw=Symbol("i18next/PATH_KEY");function n_(){const s=[],o=Object.create(null);let l;return o.get=(c,u)=>(l?.revoke?.(),u===iw?s:(s.push(u),l=Proxy.revocable(c,o),l.proxy)),Proxy.revocable(Object.create(null),o).proxy}function qg(s,o){const{[iw]:l}=s(n_());return l.join(o?.keySeparator??".")}const Y1={},Dg=s=>!Ge(s)&&typeof s!="boolean"&&typeof s!="number";class zf extends Bf{constructor(o,l={}){super(),FR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=zs.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&&!t_(o,c,u);if(h&&!g){const y=o.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:o,namespaces:Ge(f)?[f]:f};const x=o.split(c);(c!==u||c===u&&this.options.ns.indexOf(x[0])>-1)&&(f=x.shift()),o=x.join(u)}return{key:o,namespaces:Ge(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:y}=this.extractFromKey(o[o.length-1],u),x=y[y.length-1];let D=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;D===void 0&&(D=":");const v=u.lng||this.language,S=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return S?f?{res:`${x}${D}${g}`,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(u)}:`${x}${D}${g}`:f?{res:g,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(u)}:g;const R=this.resolve(o,u);let j=R?.res;const L=R?.usedKey||g,H=R?.exactUsedKey||g,Q=["[object Number]","[object Function]","[object RegExp]"],Z=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,te=!this.i18nFormat||this.i18nFormat.handleAsObject,he=u.count!==void 0&&!Ge(u.count),fe=zf.hasDefaultValue(u),me=he?this.pluralResolver.getSuffix(v,u.count,u):"",ee=u.ordinal&&he?this.pluralResolver.getSuffix(v,u.count,{ordinal:!1}):"",_=he&&!u.ordinal&&u.count===0,X=_&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${me}`]||u[`defaultValue${ee}`]||u.defaultValue;let $=j;te&&!j&&fe&&($=X);const Y=Dg($),P=Object.prototype.toString.apply($);if(te&&$&&Y&&Q.indexOf(P)<0&&!(Ge(Z)&&Array.isArray($))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ce=this.options.returnedObjectHandler?this.options.returnedObjectHandler(L,$,{...u,ns:y}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(R.res=ce,R.usedParams=this.getUsedParamsDetails(u),R):ce}if(h){const ce=Array.isArray($),J=ce?[]:{},ie=ce?H:L;for(const W in $)if(Object.prototype.hasOwnProperty.call($,W)){const de=`${ie}${h}${W}`;fe&&!j?J[W]=this.translate(de,{...u,defaultValue:Dg(X)?X[W]:void 0,joinArrays:!1,ns:y}):J[W]=this.translate(de,{...u,joinArrays:!1,ns:y}),J[W]===de&&(J[W]=$[W])}j=J}}else if(te&&Ge(Z)&&Array.isArray(j))j=j.join(Z),j&&(j=this.extendTranslation(j,o,u,c));else{let ce=!1,J=!1;!this.isValidLookup(j)&&fe&&(ce=!0,j=X),this.isValidLookup(j)||(J=!0,j=g);const W=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:j,de=fe&&X!==j&&this.options.updateMissing;if(J||ce||de){if(this.logger.log(de?"updateKey":"missingKey",v,x,g,de?X:j),h){const B=this.resolve(g,{...u,keySeparator:!1});B&&B.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 ye=[];const ve=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ve&&ve[0])for(let B=0;B<ve.length;B++)ye.push(ve[B]);else this.options.saveMissingTo==="all"?ye=this.languageUtils.toResolveHierarchy(u.lng||this.language):ye.push(u.lng||this.language);const ae=(B,ge,De)=>{const Re=fe&&De!==j?De:W;this.options.missingKeyHandler?this.options.missingKeyHandler(B,x,ge,Re,de,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(B,x,ge,Re,de,u),this.emit("missingKey",B,x,ge,j)};this.options.saveMissing&&(this.options.saveMissingPlurals&&he?ye.forEach(B=>{const ge=this.pluralResolver.getSuffixes(B,u);_&&u[`defaultValue${this.options.pluralSeparator}zero`]&&ge.indexOf(`${this.options.pluralSeparator}zero`)<0&&ge.push(`${this.options.pluralSeparator}zero`),ge.forEach(De=>{ae([B],g+De,u[`defaultValue${De}`]||X)})}):ae(ye,g,X))}j=this.extendTranslation(j,o,u,R,c),J&&j===g&&this.options.appendNamespaceToMissingKey&&(j=`${x}${D}${g}`),(J||ce)&&this.options.parseMissingKeyHandler&&(j=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${x}${D}${g}`:g,ce?j:void 0,u))}return f?(R.res=j,R.usedParams=this.getUsedParamsDetails(u),R):j}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 y=Ge(o)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let x;if(y){const v=o.match(this.interpolator.nestingRegexp);x=v&&v.length}let D=c.replace&&!Ge(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),y){const v=o.match(this.interpolator.nestingRegexp),S=v&&v.length;x<S&&(c.nest=!1)}!c.lng&&u&&u.res&&(c.lng=this.language||u.usedLng),c.nest!==!1&&(o=this.interpolator.nest(o,(...v)=>f?.[0]===v[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${l[0]}`),null):this.translate(...v,l),c)),c.interpolation&&this.interpolator.reset()}const h=c.postProcess||this.options.postProcess,g=Ge(h)?[h]:h;return o!=null&&g?.length&&c.applyPostProcessor!==!1&&(o=rw.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 Ge(o)&&(o=[o]),o.forEach(y=>{if(this.isValidLookup(c))return;const x=this.extractFromKey(y,l),D=x.key;u=D;let v=x.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const S=l.count!==void 0&&!Ge(l.count),R=S&&!l.ordinal&&l.count===0,j=l.context!==void 0&&(Ge(l.context)||typeof l.context=="number")&&l.context!=="",L=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);v.forEach(H=>{this.isValidLookup(c)||(g=H,!Y1[`${L[0]}-${H}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(g)&&(Y1[`${L[0]}-${H}`]=!0,this.logger.warn(`key "${u}" for languages "${L.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!!!")),L.forEach(Q=>{if(this.isValidLookup(c))return;h=Q;const Z=[D];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(Z,D,Q,H,l);else{let he;S&&(he=this.pluralResolver.getSuffix(Q,l.count,l));const fe=`${this.options.pluralSeparator}zero`,me=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(l.ordinal&&he.indexOf(me)===0&&Z.push(D+he.replace(me,this.options.pluralSeparator)),Z.push(D+he),R&&Z.push(D+fe)),j){const ee=`${D}${this.options.contextSeparator||"_"}${l.context}`;Z.push(ee),S&&(l.ordinal&&he.indexOf(me)===0&&Z.push(ee+he.replace(me,this.options.pluralSeparator)),Z.push(ee+he),R&&Z.push(ee+fe))}}let te;for(;te=Z.pop();)this.isValidLookup(c)||(f=te,c=this.getResource(Q,H,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&&!Ge(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=zs.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(Ge(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)),Ge(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 Ge(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))):Ge(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 s_{constructor(o,l={}){this.languageUtils=o,this.options=l,this.logger=zs.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 y=this.languageUtils.getLanguagePartFromCode(o);h=this.getRule(y,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=ZR(s,o,l);return!f&&u&&Ge(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=zs.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:y,formatSeparator:x,unescapeSuffix:D,unescapePrefix:v,nestingPrefix:S,nestingPrefixEscaped:R,nestingSuffix:j,nestingSuffixEscaped:L,nestingOptionsSeparator:H,maxReplaces:Q,alwaysFormat:Z}=o.interpolation;this.escape=l!==void 0?l:PR,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):y||"}}",this.formatSeparator=x||",",this.unescapePrefix=D?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":D||"",this.nestingPrefix=S?Wr(S):R||Wr("$t("),this.nestingSuffix=j?Wr(j):L||Wr(")"),this.nestingOptionsSeparator=H||",",this.maxReplaces=Q||1e3,this.alwaysFormat=Z!==void 0?Z:!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 y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},x=R=>{if(R.indexOf(this.formatSeparator)<0){const Q=F1(l,y,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Q,void 0,c,{...u,...l,interpolationkey:R}):Q}const j=R.split(this.formatSeparator),L=j.shift().trim(),H=j.join(this.formatSeparator).trim();return this.format(F1(l,y,L,this.options.keySeparator,this.options.ignoreJSONStructure),H,c,{...u,...l,interpolationkey:L})};this.resetRegExp();const D=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=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 j=f[1].trim();if(h=x(j),h===void 0)if(typeof D=="function"){const H=D(o,f,u);h=Ge(H)?H:""}else if(u&&Object.prototype.hasOwnProperty.call(u,j))h="";else if(v){h=f[0];continue}else this.logger.warn(`missed to pass in variable ${j} for interpolating ${o}`),h="";else!Ge(h)&&!this.useRawValueToEscape&&(h=z1(h));const L=R.safeValue(h);if(o=o.replace(f[0],L),v?(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=(y,x)=>{const D=this.nestingOptionsSeparator;if(y.indexOf(D)<0)return y;const v=y.split(new RegExp(`${Wr(D)}[ ]*{`));let S=`{${v[1]}`;y=v[0],S=this.interpolate(S,h);const R=S.match(/'/g),j=S.match(/"/g);((R?.length??0)%2===0&&!j||(j?.length??0)%2!==0)&&(S=S.replace(/'/g,'"'));try{h=JSON.parse(S),x&&(h={...x,...h})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,L),`${y}${D}${S}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,y};for(;u=this.nestingRegexp.exec(o);){let y=[];h={...c},h=h.replace&&!Ge(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const x=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(x!==-1&&(y=u[1].slice(x).split(this.formatSeparator).map(D=>D.trim()).filter(Boolean),u[1]=u[1].slice(0,x)),f=l(g.call(this,u[1].trim(),h),h),f&&u[0]===o&&!Ge(f))return f;Ge(f)||(f=z1(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${o}`),f=""),y.length&&(f=y.reduce((D,v)=>this.format(D,v,c.lng,{...c,interpolationkey:u[1].trim()}),f.trim())),o=o.replace(u[0],f),this.regexp.lastIndex=0}return o}}const o_=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,...y]=h.split(":"),x=y.join(":").trim().replace(/^'+|'+$/g,""),D=g.trim();l[D]||(l[D]=x),x==="false"&&(l[D]=!1),x==="true"&&(l[D]=!0),isNaN(x)||(l[D]=parseInt(x,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)}},r_=s=>(o,l,c)=>s(Kc(l),c)(o);class i_{constructor(o={}){this.logger=zs.create("formatter"),this.options=o,this.init(o)}init(o,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const c=l.cacheInBuiltFormats?Q1:r_;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(y=>y.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,y)=>{const{formatName:x,formatOptions:D}=o_(y);if(this.formats[x]){let v=g;try{const S=u?.formatParams?.[u.interpolationkey]||{},R=S.locale||S.lng||u.locale||u.lng||c;v=this.formats[x](g,R,{...D,...u,...S})}catch(S){this.logger.warn(S)}return v}else this.logger.warn(`there was no format function for ${x}`);return g},o)}}const l_=(s,o)=>{s.pending[o]!==void 0&&(delete s.pending[o],s.pendingCount--)};class c_ extends Bf{constructor(o,l,c,u={}){super(),this.backend=o,this.store=l,this.services=c,this.languageUtils=c.languageUtils,this.options=u,this.logger=zs.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={},y={};return o.forEach(x=>{let D=!0;l.forEach(v=>{const S=`${x}|${v}`;!c.reload&&this.store.hasResourceBundle(x,v)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?h[S]===void 0&&(h[S]=!0):(this.state[S]=1,D=!1,h[S]===void 0&&(h[S]=!0),f[S]===void 0&&(f[S]=!0),y[v]===void 0&&(y[v]=!0)))}),D||(g[x]=!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(y)}}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(y=>{QR(y.loaded,[f],h),l_(y,o),l&&y.errors.push(l),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(x=>{g[x]||(g[x]={});const D=y.loaded[x];D.length&&D.forEach(v=>{g[x][v]===void 0&&(g[x][v]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(y=>!y.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=(x,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(x&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,o,l,c,u+1,f*2,h)},f);return}h(x,D)},y=this.backend[c].bind(this.backend);if(y.length===2){try{const x=y(o,l);x&&typeof x.then=="function"?x.then(D=>g(null,D)).catch(g):g(null,x)}catch(x){g(x)}return}return y(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();Ge(o)&&(o=this.languageUtils.toResolveHierarchy(o)),Ge(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 y={...h,isUpdate:f},x=this.backend.create.bind(this.backend);if(x.length<6)try{let D;x.length===5?D=x(o,l,c,u,y):D=x(o,l,c,u),D&&typeof D.then=="function"?D.then(v=>g(null,v)).catch(g):g(null,D)}catch(D){g(D)}else x(o,l,c,u,g,y)}!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]),Ge(s[1])&&(o.defaultValue=s[1]),Ge(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=>(Ge(s.ns)&&(s.ns=[s.ns]),Ge(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),Ge(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=()=>{},u_=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(l=>{typeof s[l]=="function"&&(s[l]=s[l].bind(s))})},lw="__i18next_supportNoticeShown",d_=()=>typeof globalThis<"u"&&!!globalThis[lw],f_=()=>{typeof globalThis<"u"&&(globalThis[lw]=!0)},m_=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 Jc extends Bf{constructor(o={},l){if(super(),this.options=Z1(o),this.services={},this.logger=zs,this.modules={external:[]},u_(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&&(Ge(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&&!m_(this)&&!d_()&&(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 💙"),f_());const u=x=>x?typeof x=="function"?new x:x:null;if(!this.options.isClone){this.modules.logger?zs.init(u(this.modules.logger),this.options):zs.init(null,this.options);let x;this.modules.formatter?x=this.modules.formatter:x=i_;const D=new q1(this.options);this.store=new $1(this.options.resources,this.options);const v=this.services;v.logger=zs,v.resourceStore=this.store,v.languageUtils=D,v.pluralResolver=new s_(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"),x&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(v.formatter=u(x),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new X1(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new c_(u(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(R,...j)=>{this.emit(R,...j)}),this.modules.languageDetector&&(v.languageDetector=u(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=u(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new zf(this.services,this.options),this.translator.on("*",(R,...j)=>{this.emit(R,...j)}),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 x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[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(x=>{this[x]=(...D)=>this.store[x](...D)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(x=>{this[x]=(...D)=>(this.store[x](...D),this)});const g=Bc(),y=()=>{const x=(D,v)=>{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(v),l(D,v)};if(this.languages&&!this.isInitialized)return x(null,this.t.bind(this));this.changeLanguage(this.options.lng,x)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),g}loadResources(o,l=Ef){let c=l;const u=Ge(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(x=>{x!=="cimode"&&f.indexOf(x)<0&&f.push(x)})};u?h(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>h(y)),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"&&rw.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,y)=>{y?this.isLanguageChangingTo===o&&(u(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,c.resolve((...x)=>this.t(...x)),l&&l(g,(...x)=>this.t(...x))},h=g=>{!o&&!g&&this.services.languageDetector&&(g=[]);const y=Ge(g)?g:g&&g[0],x=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(Ge(g)?[g]:g);x&&(this.language||u(x),this.translator.language||this.translator.changeLanguage(x),this.services.languageDetector?.cacheUserLanguage?.(x)),this.loadResources(x,D=>{f(D,x)})};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 y;typeof h!="object"?y=this.options.overloadTranslationOptionHandler([f,h].concat(g)):y={...h},y.lng=y.lng||u.lng,y.lngs=y.lngs||u.lngs,y.ns=y.ns||u.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||c||u.keyPrefix);const x=this.options.keySeparator||".";let D;return y.keyPrefix&&Array.isArray(f)?D=f.map(v=>(typeof v=="function"&&(v=qg(v,{...this.options,...h})),`${y.keyPrefix}${x}${v}`)):(typeof f=="function"&&(f=qg(f,{...this.options,...h})),D=y.keyPrefix?`${y.keyPrefix}${x}${f}`:f),this.t(D,y)};return Ge(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,y)=>{const x=this.services.backendConnector.state[`${g}|${y}`];return x===-1||x===0||x===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?(Ge(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();Ge(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 Jc(o,l);return c.createInstance=Jc.createInstance,c}cloneInstance(o={},l=Ef){const c=o.forkResourceStore;c&&delete o.forkResourceStore;const u={...this.options,...o,isClone:!0},f=new Jc(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((y,x)=>(y[x]={...this.store.data[x]},y[x]=Object.keys(y[x]).reduce((D,v)=>(D[v]={...y[x][v]},D),y[x]),y),{});f.store=new $1(g,u),f.services.resourceStore=f.store}if(o.interpolation){const y={..._g().interpolation,...this.options.interpolation,...o.interpolation},x={...u,interpolation:y};f.services.interpolator=new X1(x)}return f.translator=new zf(f.services,u),f.translator.on("*",(g,...y)=>{f.emit(g,...y)}),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 $a=Jc.createInstance();$a.createInstance;$a.dir;$a.init;$a.loadResources;$a.reloadResources;$a.use;$a.changeLanguage;$a.getFixedT;$a.t;$a.exists;$a.setDefaultNamespace;$a.hasLoadedNamespace;$a.loadNamespaces;$a.loadLanguages;var E=nu();const rl=YR(E),p_=$R({__proto__:null,default:rl},[E]),h_=(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)},J1={},cw=(s,o,l,c)=>{ti(l)&&J1[l]||(ti(l)&&(J1[l]=new Date),h_(s,o,l,c))},uw=(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,uw(s,l))},P1=(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,uw(s,c))},g_=(s,o,l={})=>!o.languages||!o.languages.length?(cw(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",b_=s=>typeof s=="object"&&s!==null,y_=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,v_={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},x_=s=>v_[s],N_=s=>s.replace(y_,x_);let Ig={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:N_,transDefaultProps:void 0};const S_=(s={})=>{Ig={...Ig,...s}},w_=()=>Ig;let dw;const E_=s=>{dw=s},D_=()=>dw,R_={type:"3rdParty",init(s){S_(s.options.react),E_(s)}},__=E.createContext();class k_{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var kg={exports:{}},Ug={},K1;function U_(){if(K1)return Ug;K1=1;return(function(){function s(R,j){return R===j&&(R!==0||1/R===1/j)||R!==R&&j!==j}function o(R,j){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 L=j();if(!v){var H=j();f(L,H)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}H=h({inst:{value:L,getSnapshot:j}});var Q=H[0].inst,Z=H[1];return y(function(){Q.value=L,Q.getSnapshot=j,l(Q)&&Z({inst:Q})},[R,L,j]),g(function(){return l(Q)&&Z({inst:Q}),R(function(){l(Q)&&Z({inst:Q})})},[R]),x(L),L}function l(R){var j=R.getSnapshot;R=R.value;try{var L=j();return!f(R,L)}catch{return!0}}function c(R,j){return j()}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,y=u.useLayoutEffect,x=u.useDebugValue,D=!1,v=!1,S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;Ug.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:S,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ug}var W1;function C_(){return W1||(W1=1,kg.exports=U_()),kg.exports}var T_=C_();const j_=(s,o)=>ti(o)?o:b_(o)&&ti(o.defaultValue)?o.defaultValue:Array.isArray(s)?s[s.length-1]:s,O_={t:j_,ready:!1},A_=()=>()=>{},He=(s,o={})=>{const{i18n:l}=o,{i18n:c,defaultNS:u}=E.useContext(__)||{},f=l||c||D_();f&&!f.reportNamespaces&&(f.reportNamespaces=new k_),f||cw(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=E.useMemo(()=>({...w_(),...f?.options?.react,...o}),[f,o]),{useSuspense:g,keyPrefix:y}=h,x=u||f?.options?.defaultNS,D=ti(x)?[x]:x||["translation"],v=E.useMemo(()=>D,D);f?.reportNamespaces?.addUsedNamespaces?.(v);const S=E.useRef(0),R=E.useCallback(X=>{if(!f)return A_;const{bindI18n:$,bindI18nStore:Y}=h,P=()=>{S.current+=1,X()};return $&&f.on($,P),Y&&f.store.on(Y,P),()=>{$&&$.split(" ").forEach(ce=>f.off(ce,P)),Y&&Y.split(" ").forEach(ce=>f.store.off(ce,P))}},[f,h]),j=E.useRef(),L=E.useCallback(()=>{if(!f)return O_;const X=!!(f.isInitialized||f.initializedStoreOnce)&&v.every(ie=>g_(ie,f,h)),$=o.lng||f.language,Y=S.current,P=j.current;if(P&&P.ready===X&&P.lng===$&&P.keyPrefix===y&&P.revision===Y)return P;const J={t:f.getFixedT($,h.nsMode==="fallback"?v:v[0],y),ready:X,lng:$,keyPrefix:y,revision:Y};return j.current=J,J},[f,v,y,h,o.lng]),[H,Q]=E.useState(0),{t:Z,ready:te}=T_.useSyncExternalStore(R,L,L);E.useEffect(()=>{if(f&&!te&&!g){const X=()=>Q($=>$+1);o.lng?P1(f,o.lng,v,X):Gg(f,v,X)}},[f,o.lng,v,te,g,H]);const he=f||{},fe=E.useRef(null),me=E.useRef(),ee=X=>{const $=Object.getOwnPropertyDescriptors(X);$.__original&&delete $.__original;const Y=Object.create(Object.getPrototypeOf(X),$);if(!Object.prototype.hasOwnProperty.call(Y,"__original"))try{Object.defineProperty(Y,"__original",{value:X,writable:!1,enumerable:!1,configurable:!1})}catch{}return Y},_=E.useMemo(()=>{const X=he,$=X?.language;let Y=X;X&&(fe.current&&fe.current.__original===X?me.current!==$?(Y=ee(X),fe.current=Y,me.current=$):Y=fe.current:(Y=ee(X),fe.current=Y,me.current=$));const P=[Z,Y,te];return P.t=Z,P.i18n=Y,P.ready=te,P},[Z,he,te,he.resolvedLanguage,he.language,he.languages]);if(f&&g&&!te)throw new Promise(X=>{const $=()=>X();o.lng?P1(f,o.lng,v,$):Gg(f,v,$)});return _},{slice:M_,forEach:V_}=[];function z_(s){return V_.call(M_.call(arguments,1),o=>{if(o)for(const l in o)s[l]===void 0&&(s[l]=o[l])}),s}function L_(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]+$/,H_=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=H_(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 B_={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)}},$_={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}},Y_={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 y=h[g].indexOf("=");y>0&&h[g].substring(0,y)===o&&(c=h[g].substring(y+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 q_={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 G_={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)}},I_={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}},F_={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}},X_={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}},Q_={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 fw=!1;try{document.cookie,fw=!0}catch{}const mw=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];fw||mw.splice(1,1);const Z_=()=>({order:mw,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:s=>s});class pw{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=z_(l,this.options||{},Z_()),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(B_),this.addDetector($_),this.addDetector(q_),this.addDetector(G_),this.addDetector(I_),this.addDetector(F_),this.addDetector(X_),this.addDetector(Q_),this.addDetector(Y_)}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&&!L_(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)}))}}pw.type="languageDetector";const J_={"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."},P_={"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 版本中推出,敬请期待。"};$a.use(pw).use(R_).init({resources:{en:{translation:J_},zh:{translation:P_}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var Cg={exports:{}},$c={},Tg={exports:{}},jg={},sS;function K_(){return sS||(sS=1,(function(s){(function(){function o(){if(fe=!1,X){var W=s.unstable_now();P=W;var de=!0;try{e:{te=!1,he&&(he=!1,ee($),$=-1),Z=!0;var ye=Q;try{t:{for(h(W),H=c(R);H!==null&&!(H.expirationTime>W&&y());){var ve=H.callback;if(typeof ve=="function"){H.callback=null,Q=H.priorityLevel;var ae=ve(H.expirationTime<=W);if(W=s.unstable_now(),typeof ae=="function"){H.callback=ae,h(W),de=!0;break t}H===c(R)&&u(R),h(W)}else u(R);H=c(R)}if(H!==null)de=!0;else{var B=c(j);B!==null&&x(g,B.startTime-W),de=!1}}break e}finally{H=null,Q=ye,Z=!1}de=void 0}}finally{de?ce():X=!1}}}function l(W,de){var ye=W.length;W.push(de);e:for(;0<ye;){var ve=ye-1>>>1,ae=W[ve];if(0<f(ae,de))W[ve]=de,W[ye]=ae,ye=ve;else break e}}function c(W){return W.length===0?null:W[0]}function u(W){if(W.length===0)return null;var de=W[0],ye=W.pop();if(ye!==de){W[0]=ye;e:for(var ve=0,ae=W.length,B=ae>>>1;ve<B;){var ge=2*(ve+1)-1,De=W[ge],Re=ge+1,ft=W[Re];if(0>f(De,ye))Re<ae&&0>f(ft,De)?(W[ve]=ft,W[Re]=ye,ve=Re):(W[ve]=De,W[ge]=ye,ve=ge);else if(Re<ae&&0>f(ft,ye))W[ve]=ft,W[Re]=ye,ve=Re;else break e}}return de}function f(W,de){var ye=W.sortIndex-de.sortIndex;return ye!==0?ye:W.id-de.id}function h(W){for(var de=c(j);de!==null;){if(de.callback===null)u(j);else if(de.startTime<=W)u(j),de.sortIndex=de.expirationTime,l(R,de);else break;de=c(j)}}function g(W){if(he=!1,h(W),!te)if(c(R)!==null)te=!0,X||(X=!0,ce());else{var de=c(j);de!==null&&x(g,de.startTime-W)}}function y(){return fe?!0:!(s.unstable_now()-P<Y)}function x(W,de){$=me(function(){W(s.unstable_now())},de)}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 v=Date,S=v.now();s.unstable_now=function(){return v.now()-S}}var R=[],j=[],L=1,H=null,Q=3,Z=!1,te=!1,he=!1,fe=!1,me=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null,X=!1,$=-1,Y=5,P=-1;if(typeof _=="function")var ce=function(){_(o)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,ie=J.port2;J.port1.onmessage=o,ce=function(){ie.postMessage(null)}}else ce=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(W){W.callback=null},s.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<W?Math.floor(1e3/W):5},s.unstable_getCurrentPriorityLevel=function(){return Q},s.unstable_next=function(W){switch(Q){case 1:case 2:case 3:var de=3;break;default:de=Q}var ye=Q;Q=de;try{return W()}finally{Q=ye}},s.unstable_requestPaint=function(){fe=!0},s.unstable_runWithPriority=function(W,de){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var ye=Q;Q=W;try{return de()}finally{Q=ye}},s.unstable_scheduleCallback=function(W,de,ye){var ve=s.unstable_now();switch(typeof ye=="object"&&ye!==null?(ye=ye.delay,ye=typeof ye=="number"&&0<ye?ve+ye:ve):ye=ve,W){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=ye+ae,W={id:L++,callback:de,priorityLevel:W,startTime:ye,expirationTime:ae,sortIndex:-1},ye>ve?(W.sortIndex=ye,l(j,W),c(R)===null&&W===c(j)&&(he?(ee($),$=-1):he=!0,x(g,ye-ve))):(W.sortIndex=ae,l(R,W),te||Z||(te=!0,X||(X=!0,ce()))),W},s.unstable_shouldYield=y,s.unstable_wrapCallback=function(W){var de=Q;return function(){var ye=Q;Q=de;try{return W.apply(this,arguments)}finally{Q=ye}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(jg)),jg}var oS;function W_(){return oS||(oS=1,Tg.exports=K_()),Tg.exports}var Og={exports:{}},Ra={},rS;function ek(){if(rS)return Ra;rS=1;return(function(){function s(){}function o(v){return""+v}function l(v,S,R){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{o(j);var L=!1}catch{L=!0}return L&&(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&&j[Symbol.toStringTag]||j.constructor.name||"Object"),o(j)),{$$typeof:x,key:j==null?null:""+j,children:v,containerInfo:S,implementation:R}}function c(v,S){if(v==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}function u(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":'something with type "'+typeof v+'"'}function f(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":typeof v=="string"?JSON.stringify(v):typeof v=="number"?"`"+v+"`":'something with type "'+typeof v+'"'}function h(){var v=D.H;return v===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.`),v}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=nu(),y={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},x=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"),Ra.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,Ra.createPortal=function(v,S){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error("Target container is not a DOM element.");return l(v,S,null,R)},Ra.flushSync=function(v){var S=D.T,R=y.p;try{if(D.T=null,y.p=2,v)return v()}finally{D.T=S,y.p=R,y.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.")}},Ra.preconnect=function(v,S){typeof v=="string"&&v?S!=null&&typeof S!="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(S)):S!=null&&typeof S.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(S.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v)),typeof v=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,y.d.C(v,S))},Ra.prefetchDNS=function(v){if(typeof v!="string"||!v)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v));else if(1<arguments.length){var S=arguments[1];typeof S=="object"&&S.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(S)):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(S))}typeof v=="string"&&y.d.D(v)},Ra.preinit=function(v,S){if(typeof v=="string"&&v?S==null||typeof S!="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(S)):S.as!=="style"&&S.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(S.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v)),typeof v=="string"&&S&&typeof S.as=="string"){var R=S.as,j=c(R,S.crossOrigin),L=typeof S.integrity=="string"?S.integrity:void 0,H=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;R==="style"?y.d.S(v,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:j,integrity:L,fetchPriority:H}):R==="script"&&y.d.X(v,{crossOrigin:j,integrity:L,fetchPriority:H,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},Ra.preinitModule=function(v,S){var R="";typeof v=="string"&&v||(R+=" The `href` argument encountered was "+u(v)+"."),S!==void 0&&typeof S!="object"?R+=" The `options` argument encountered was "+u(S)+".":S&&"as"in S&&S.as!=="script"&&(R+=" The `as` option encountered was "+f(S.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=S&&typeof S.as=="string"?S.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,v)),typeof v=="string"&&(typeof S=="object"&&S!==null?(S.as==null||S.as==="script")&&(R=c(S.as,S.crossOrigin),y.d.M(v,{crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})):S==null&&y.d.M(v))},Ra.preload=function(v,S){var R="";if(typeof v=="string"&&v||(R+=" The `href` argument encountered was "+u(v)+"."),S==null||typeof S!="object"?R+=" The `options` argument encountered was "+u(S)+".":typeof S.as=="string"&&S.as||(R+=" The `as` option encountered was "+u(S.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 v=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){R=S.as;var j=c(R,S.crossOrigin);y.d.L(v,R,{crossOrigin:j,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},Ra.preloadModule=function(v,S){var R="";typeof v=="string"&&v||(R+=" The `href` argument encountered was "+u(v)+"."),S!==void 0&&typeof S!="object"?R+=" The `options` argument encountered was "+u(S)+".":S&&"as"in S&&typeof S.as!="string"&&(R+=" The `as` option encountered was "+u(S.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 v=="string"&&(S?(R=c(S.as,S.crossOrigin),y.d.m(v,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0})):y.d.m(v))},Ra.requestFormReset=function(v){y.d.r(v)},Ra.unstable_batchedUpdates=function(v,S){return v(S)},Ra.useFormState=function(v,S,R){return h().useFormState(v,S,R)},Ra.useFormStatus=function(){return h().useHostTransitionStatus()},Ra.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ra}var iS;function tk(){return iS||(iS=1,Og.exports=ek()),Og.exports}var lS;function ak(){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():Pe({},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():Pe({},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():Pe({},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 y(){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 x(){}function D(){}function v(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function S(e,t,a,n){return new k4(e,t,a,n)}function R(e,t){e.context===Io&&(Yp(e.current,2,t,e,null,null),pi())}function j(e,t){if(_n!==null){var a=t.staleFamilies;t=t.updatedFamilies,Ml(),Hb(e.current,t,a),pi()}}function L(e){_n=e}function H(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Q(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 Z(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 he(e){if(Q(e)!==e)throw Error("Unable to find node on an unmounted component.")}function fe(e){var t=e.alternate;if(!t){if(t=Q(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 he(r),e;if(i===n)return he(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 ee(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===JE?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 Pp: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 _s:return e.displayName||"Context";case Jp: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 ln:t=e._payload,e=e._init;try{return _(e(t))}catch{}}return null}function X(e){return typeof e.tag=="number"?$(e):typeof e.name=="string"?e.name:null}function $(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 $(e.return)}return null}function Y(e){return{current:e}}function P(e,t){0>eo?console.error("Unexpected pop."):(t!==th[eo]&&console.error("Unexpected Fiber popped."),e.current=eh[eo],eh[eo]=null,th[eo]=null,eo--)}function ce(e,t,a){eo++,eh[eo]=e.current,th[eo]=a,e.current=t}function J(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 ie(e,t){ce(Ho,t,e),ce(Fl,e,e),ce(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):go;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=go}}a=a.toLowerCase(),a=du(null,a),a={context:t,ancestorInfo:a},P(Lo,e),ce(Lo,a,e)}function W(e){P(Lo,e),P(Fl,e),P(Ho,e)}function de(){return J(Lo.current)}function ye(e){e.memoizedState!==null&&ce(yd,e,e);var t=J(Lo.current),a=e.type,n=b0(t.context,a);a=du(t.ancestorInfo,a),n={context:n,ancestorInfo:a},t!==n&&(ce(Fl,e,e),ce(Lo,n,e))}function ve(e){Fl.current===e&&(P(Lo,e),P(Fl,e)),yd.current===e&&(P(yd,e),zc._currentValue=Kr)}function ae(){}function B(){if(Xl===0){X0=console.log,Q0=console.info,Z0=console.warn,J0=console.error,P0=console.group,K0=console.groupCollapsed,W0=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ae,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:Pe({},e,{value:X0}),info:Pe({},e,{value:Q0}),warn:Pe({},e,{value:Z0}),error:Pe({},e,{value:J0}),group:Pe({},e,{value:P0}),groupCollapsed:Pe({},e,{value:K0}),groupEnd:Pe({},e,{value:W0})})}0>Xl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function De(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 ft(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,B();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(pe){var q=pe}Reflect.construct(e,[],C)}else{try{C.call()}catch(pe){q=pe}e.call(C.prototype)}}else{try{throw Error()}catch(pe){q=pe}(C=e())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(pe){if(pe&&q&&typeof pe.stack=="string")return[pe.stack,q.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],b=d[1];if(p&&b){var N=p.split(`
|
|
28
|
+
`),A=b.split(`
|
|
29
|
+
`);for(d=i=0;i<N.length&&!N[i].includes("DetermineComponentFrameRoot");)i++;for(;d<A.length&&!A[d].includes("DetermineComponentFrameRoot");)d++;if(i===N.length||d===A.length)for(i=N.length-1,d=A.length-1;1<=i&&0<=d&&N[i]!==A[d];)d--;for(;1<=i&&0<=d;i--,d--)if(N[i]!==A[d]){if(i!==1||d!==1)do if(i--,d--,0>d||N[i]!==A[d]){var M=`
|
|
30
|
+
`+N[i].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),typeof e=="function"&&sh.set(e,M),M}while(1<=i&&0<=d);break}}}finally{nh=!1,F.H=n,ge(),Error.prepareStackTrace=a}return N=(N=e?e.displayName||e.name:"")?Re(N):"",typeof e=="function"&&sh.set(e,N),N}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 ft(e.type,!1);case 11:return ft(e.type.render,!1);case 1:return ft(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,b=i.env,N=i.debugLocation;if(N!=null){var A=De(N),M=A.lastIndexOf(`
|
|
31
|
+
`),C=M===-1?A:A.slice(M+1);if(C.indexOf(p)!==-1){var q=`
|
|
32
|
+
`+C;break e}}q=Re(p+(b?" ["+b+"]":""))}t=d+q}}a=e,e=e.return}while(e);return t}catch(pe){return`
|
|
33
|
+
Error generating stack: `+pe.message+`
|
|
34
|
+
`+pe.stack}}function oa(e){return(e=e?e.displayName||e.name:"")?Re(e):""}function Ft(){if(cn===null)return null;var e=cn._debugOwner;return e!=null?X(e):null}function Ka(){if(cn===null)return"";var e=cn;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+=oa(e.type));break;case 11:e._debugOwner||t!==""||(t+=oa(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=De(n);r!==""&&(t+=`
|
|
35
|
+
`+r)}}else if(e.debugStack!=null){var i=e.debugStack;(e=e.owner)&&i&&(t+=`
|
|
36
|
+
`+De(i))}else break;var d=t}catch(p){d=`
|
|
37
|
+
Error generating stack: `+p.message+`
|
|
38
|
+
`+p.stack}return d}function Ne(e,t,a,n,r,i,d){var p=cn;$n(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{$n(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function $n(e){F.getCurrentStack=e===null?null:Ka,ks=!1,cn=e}function Et(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function xa(e){try{return Wa(e),!1}catch{return!0}}function Wa(e){return""+e}function dt(e,t){if(xa(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,Et(e)),Wa(e)}function Dt(e,t){if(xa(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,Et(e)),Wa(e)}function rs(e){if(xa(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.",Et(e)),Wa(e)}function Le(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),Ea=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function re(e){if(typeof nD=="function"&&sD(e),Ea&&typeof Ea.setStrictMode=="function")try{Ea.setStrictMode(wi,e)}catch(t){Us||(Us=!0,console.error("React instrumentation encountered an error: %o",t))}}function Ke(e){return e>>>=0,e===0?32:31-(oD(e)/rD|0)|0}function Xt(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 Yn(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=Xt(n):(d&=p,d!==0?r=Xt(d):a||(a=p&~e,a!==0&&(r=Xt(a))))):(p=n&~i,p!==0?r=Xt(p):d!==0?r=Xt(d):a||(a=n&~e,a!==0&&(r=Xt(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 vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ya(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 Vt(){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 xn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qa(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,b=e.expirationTimes,N=e.hiddenUpdates;for(a=d&~a;0<a;){var A=31-Oa(a),M=1<<A;p[A]=0,b[A]=-1;var C=N[A];if(C!==null)for(N[A]=null,A=0;A<C.length;A++){var q=C[A];q!==null&&(q.lane&=-536870913)}a&=~M}n!==0&&Ua(e,n,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(d&~t))}function Ua(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Oa(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-Oa(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function Bs(e,t){var a=t&-t;return a=(a&42)!==0?1:Nn(a),(a&(e.suspendedLanes|t))!==0?0:a}function Nn(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 $s(e,t,a){if(Cs)for(e=e.pendingUpdatersLaneMap;0<a;){var n=31-Oa(a),r=1<<n;e[n].add(t),a&=~r}}function Na(e,t){if(Cs)for(var a=e.pendingUpdatersLaneMap,n=e.memoizedUpdaters;0<t;){var r=31-Oa(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 Ys(e){return e&=-e,En<e?Ts<e?(e&134217727)!==0?to:Sd:Ts:En}function qn(){var e=gt.p;return e!==0?e:(e=window.event,e===void 0?to:H0(e.type))}function w(e,t){var a=gt.p;try{return gt.p=e,t()}finally{gt.p=a}}function V(e){delete e[ba],delete e[Aa],delete e[ch],delete e[iD],delete e[lD]}function ne(e){var t=e[ba];if(t)return t;for(var a=e.parentNode;a;){if(t=a[$o]||a[ba]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=D0(e);e!==null;){if(a=e[ba])return a;e=D0(e)}return t}e=a,a=e.parentNode}return null}function ue(e){if(e=e[ba]||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 we(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 ke(e){e[Ql]=!0}function at(e,t){qe(e,t),qe(e+"Capture",t)}function qe(e,t){Ur[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ur[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 ra(e,t){cD[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 Ca(e){return Pn.call(sx,e)?!0:Pn.call(nx,e)?!1:uD.test(e)?sx[e]=!0:(nx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function qs(e,t,a){if(Ca(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:(dt(a,t),e===""+a?a:e)}}function Gs(e,t,a){if(Ca(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}}dt(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}dt(a,t),e.setAttribute(t,""+a)}}function Gn(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}dt(n,a),e.setAttributeNS(t,a,""+n)}}function U(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return rs(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){rs(d),a=""+d,i.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){rs(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 Ue(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 xe(e){return e.replace(dD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Te(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 Ee(e,t,a,n,r,i,d,p){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?(dt(d,"type"),e.type=d):e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+U(t)):e.value!==""+U(t)&&(e.value=""+U(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Ae(e,d,U(t)):a!=null?Ae(e,d,U(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"?(dt(p,"name"),e.name=""+U(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"&&(dt(i,"type"),e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){oe(e);return}a=a!=null?""+U(a):"",t=t!=null?""+U(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"&&(dt(d,"name"),e.name=d),oe(e)}function Ae(e,t,a){t==="number"&&Ue(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ce(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 mt(){var e=Ft();return e?`
|
|
39
|
+
|
|
40
|
+
Check the render method of \``+e+"`.":""}function We(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=""+U(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 Rt(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,mt()):!t.multiple&&n&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,mt())}}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 ia(e,t,a){if(t!=null&&(t=""+U(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+U(a):""}function pt(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=U(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),oe(e)}function Ta(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ta(e.children[0],t):e}function qt(e){return" "+" ".repeat(e)}function Sn(e){return"+ "+" ".repeat(e)}function Sa(e){return"- "+" ".repeat(e)}function en(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 Is(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 is(e,t,a){var n=120-2*a;if(t===null)return Sn(a)+Is(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)),Sn(a)+Is(e,n)+`
|
|
42
|
+
`+Sa(a)+Is(t,n)+`
|
|
43
|
+
`}return qt(a)+Is(e,n)+`
|
|
44
|
+
`}function In(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function ls(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===Rs)return(t=_(e.type))?"<"+t+">":"<...>";var a=In(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=ls(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 Fn(e,t){return typeof e!="string"||mx.test(e)?"{"+ls(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function st(e,t,a){var n=120-a.length-e.length,r=[],i;for(i in t)if(t.hasOwnProperty(i)&&i!=="children"){var d=Fn(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 la(e,t,a){var n="",r=Pe({},t),i;for(i in e)if(e.hasOwnProperty(i)){delete r[i];var d=120-2*a-i.length-2,p=ls(e[i],d);t.hasOwnProperty(i)?(d=ls(t[i],d),n+=Sn(a)+i+": "+p+`
|
|
51
|
+
`,n+=Sa(a)+i+": "+d+`
|
|
52
|
+
`):n+=Sn(a)+i+": "+p+`
|
|
53
|
+
`}for(var b in r)r.hasOwnProperty(b)&&(e=ls(r[b],120-2*a-b.length-2),n+=Sa(a)+b+": "+e+`
|
|
54
|
+
`);return n}function Eo(e,t,a,n){var r="",i=new Map;for(N in a)a.hasOwnProperty(N)&&i.set(N.toLowerCase(),N);if(i.size===1&&i.has("children"))r+=st(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,b=i.get(d.toLowerCase());if(b!==void 0){i.delete(d.toLowerCase());var N=t[d];b=a[b];var A=Fn(N,p);p=Fn(b,p),typeof N=="object"&&N!==null&&typeof b=="object"&&b!==null&&In(N)==="Object"&&In(b)==="Object"&&(2<Object.keys(N).length||2<Object.keys(b).length||-1<A.indexOf("...")||-1<p.indexOf("..."))?r+=qt(n+1)+d+`={{
|
|
55
|
+
`+la(N,b,n+2)+qt(n+1)+`}}
|
|
56
|
+
`:(r+=Sn(n+1)+d+"="+A+`
|
|
57
|
+
`,r+=Sa(n+1)+d+"="+p+`
|
|
58
|
+
`)}else r+=qt(n+1)+d+"="+Fn(t[d],p)+`
|
|
59
|
+
`}i.forEach(function(M){if(M!=="children"){var C=120-2*(n+1)-M.length-1;r+=Sa(n+1)+M+"="+Fn(a[M],C)+`
|
|
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+=is(i,""+e,n+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+is(""+t,null,n+1):r+is(""+t,void 0,n+1)),r}function cs(e,t){var a=en(e);if(a===null){for(a="",e=e.child;e;)a+=cs(e,t),e=e.sibling;return a}return qt(t)+"<"+a+`>
|
|
64
|
+
`}function _t(e,t){var a=Ta(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return qt(t)+`...
|
|
65
|
+
`+_t(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=is(r,e.serverProps,t),t++;else if(i=en(e.fiber),i!==null)if(e.serverProps===void 0){n=t;var d=120-2*n-i.length-2,p="";for(N in r)if(r.hasOwnProperty(N)&&N!=="children"){var b=Fn(r[N],15);if(d-=N.length+b.length+2,0>d){p+=" ...";break}p+=" "+N+"="+b}n=qt(n)+"<"+i+p+`>
|
|
67
|
+
`,t++}else e.serverProps===null?(n=st(i,r,Sn(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 N="";for(r=e.fiber.child,i=0;r&&i<e.children.length;)d=e.children[i],d.fiber===r?(N+=_t(d,t),i++):N+=cs(r,t),r=r.sibling;for(r&&0<e.children.length&&(N+=qt(t)+`...
|
|
68
|
+
`),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)i=r[e],N=typeof i=="string"?N+(Sa(t)+Is(i,120-2*t)+`
|
|
69
|
+
`):N+st(i.type,i.props,Sa(t));return a+n+N}function Do(e){try{return`
|
|
70
|
+
|
|
71
|
+
`+_t(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=Pe({},e||hx),n={tag:t};return px.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),mD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),fD.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 pD.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 l4(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:l4(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=cn)?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||Ne(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=cn)?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 c4(e){return e.replace(bD,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,c4(t.replace(gD,"ms-")))):hD.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:(Dt(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 b in t)for(r=dh[b]||[b],i=0;i<r.length;i++)p[r[i]]=b;b={};for(var N in n)if(r=n[N],(i=p[N])&&r!==i&&(d=r+","+i,!b[d])){b[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 M in a)!a.hasOwnProperty(M)||t!=null&&t.hasOwnProperty(M)||(M.indexOf("--")===0?e.setProperty(M,""):M==="float"?e.cssFloat="":e[M]="");for(var C in t)N=t[C],t.hasOwnProperty(C)&&a[C]!==N&&mb(e,C,N)}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 yD.get(e)||e}function u4(e,t){if(Pn.call(Ri,t)&&Ri[t])return!0;if(xD.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(vD.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 d4(e,t){var a=[],n;for(n in t)u4(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 f4(e,t,a,n){if(Pn.call(Ma,t)&&Ma[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."),Ma[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),Ma[t]=!0;if(Ex.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Ma[t]=!0}else if(Ex.test(t))return ND.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Ma[t]=!0;if(SD.test(t)||wD.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ma[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ma[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),Ma[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),Ma[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),Ma[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),Ma[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),Ma[t]=!0)}case"function":case"symbol":return Ma[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),Ma[t]=!0}}return!0}function m4(e,t,a){var n=[],r;for(r in t)f4(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 ED.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fs(){}function Jf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function gb(e){var t=ue(e);if(t&&(e=t.stateNode)){var a=e[Aa]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ee(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(dt(t,"name"),a=a.querySelectorAll('input[name="'+xe(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[Aa]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ee(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":ia(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&We(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||ki!==null)&&(pi(),_i&&(t=_i,e=ki,ki=_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[Aa]||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 Ga(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 Pe(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 p4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zD[e])?!!t[e]:!1}function Pf(){return p4}function xb(e,t){switch(e){case"keyup":return ZD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==kx;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 h4(e,t){switch(e){case"compositionend":return Nb(t);case"keypress":return t.which!==Cx?null:(jx=!0,Tx);case"textInput":return e=t.data,e===Tx&&jx?null:e;default:return null}}function g4(e,t){if(Ui)return e==="compositionend"||!vh&&xb(e,t)?(e=yb(),Rd=hh=Yo=null,Ui=!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 Ux&&t.locale!=="ko"?null:t.data;default:return null}}function Sb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!PD[e.type]:t==="textarea"}function b4(e){if(!js)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?ki?ki.push(n):ki=[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 y4(e){o0(e,0)}function hu(e){var t=we(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,Jf(e)),bb(y4,t)}}function v4(e,t,a){e==="focusin"?(Db(),ec=t,tc=a,ec.attachEvent("onpropertychange",Rb)):e==="focusout"&&Db()}function x4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hu(tc)}function N4(e,t){if(e==="click")return hu(t)}function S4(e,t){if(e==="input"||e==="change")return hu(t)}function w4(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(!Pn.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 kb(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 Ub(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ub(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ue(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=Ue(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||Ci==null||Ci!==Ue(n)||(n=Ci,"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=Ci)))}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 Xn(e,t){Hx.set(e,t),at(t,[e])}function E4(e){for(var t=Ud,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!==Ud&&t!==_h)return Dh;t=_h}else return Dh;else{if(typeof n=="function"||typeof n=="string"&&50<n.length||t!==Ud&&t!==Rh)return Dh;t=Rh}}return t}function Wf(e,t,a,n){for(var r in e)Pn.call(e,r)&&r[0]!=="_"&&us(r,e[r],t,a,n)}function us(e,t,a,n,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Rs){var i=_(t.type)||"…",d=t.key;t=t.props;var p=Object.keys(t),b=p.length;if(d==null&&b===0){t="<"+i+" />";break}if(3>n||b===1&&p[0]==="children"&&d==null){t="<"+i+" … />";break}a.push([r+" ".repeat(n)+e,"<"+i]),d!==null&&us("key",d,a,n+1,r),e=!1;for(var N in t)N==="children"?t.children!=null&&(!aa(t.children)||0<t.children.length)&&(e=!0):Pn.call(t,N)&&N[0]!=="_"&&us(N,t[N],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(N=E4(t),N===Rh||N===Ud){t=JSON.stringify(t);break}else if(N===_h){for(a.push([r+" ".repeat(n)+e,""]),e=0;e<t.length;e++)i=t[e],us(i[0],i[1],a,n+1,r);return}}if(i==="Promise"){if(t.status==="fulfilled"){if(i=a.length,us(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,us(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"&&(N=Object.getPrototypeOf(t))&&typeof N.constructor=="function"&&(i=N.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===sR?"…":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([Cd+" ".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([Cd+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===Rs){if(d.type===p.type&&d.key===p.key){d=_(p.type)||"…",r=" ".repeat(n)+i,d="<"+d+" … />",a.push([Cd+r,d],[Td+r,d]),r=!1;continue}}else{var b=Object.prototype.toString.call(d),N=Object.prototype.toString.call(p);if(b===N&&(N==="[object Object]"||N==="[object Array]")){b=[Yx+" ".repeat(n)+i,N==="[object Array]"?"Array":""],a.push(b),N=a.length,jb(d,p,a,n+1)?N===a.length&&(b[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&&(b=Function.prototype.toString.call(d),N=Function.prototype.toString.call(p),b===N)){d=p.name===""?"() => {}":p.name+"() {}",a.push([Yx+" ".repeat(n)+i,d+" Referentially unequal function closure. Consider memoization."]);continue}}us(i,d,a,n,Cd),us(i,p,a,n,Td)}r=!1}}else a.push([Td+" ".repeat(n)+i,"…"]),r=!1;return r}function Qn(e){lt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function ds(e,t,a,n){kt&&(Go.start=t,Go.end=a,ao.color="warning",ao.tooltipText=n,ao.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,n,Go)):performance.measure(n,Go))}function gu(e,t,a){ds(e,t,a,"Reconnect")}function bu(e,t,a,n,r){var i=$(e);if(i!==null&&kt){var d=e.alternate,p=e.actualDuration;if(d===null||d.child!==e.child)for(var b=e.child;b!==null;b=b.sibling)p-=b.actualDuration;n=.5>p?n?"tertiary-light":"primary-light":10>p?n?"tertiary":"primary":100>p?n?"tertiary-dark":"primary-dark":"error";var N=e.memoizedProps;p=e._debugTask,N!==null&&d!==null&&d.memoizedProps!==N?(b=[oR],N=jb(d.memoizedProps,N,b,0),1<b.length&&(N&&!qo&&(d.lanes&r)===0&&100<e.actualDuration?(qo=!0,b[0]=rR,ao.color="warning",ao.tooltipText=qx):(ao.color=n,ao.tooltipText=i),ao.properties=b,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,Dn,void 0,n)):console.timeStamp(i,t,a,Dn,void 0,n)}}function em(e,t,a,n){if(kt){var r=$(e);if(r!==null){for(var i=null,d=[],p=0;p<n.length;p++){var b=n[p];i==null&&b.source!==null&&(i=b.source._debugTask),b=b.value,d.push(["Error",typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b)])}e.key!==null&&us("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:Dn,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 fs(e,t,a,n,r){if(r!==null){if(kt){var i=$(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&&us("key",e.key,n,0,""),e.memoizedProps!==null&&Wf(e.memoizedProps,n,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Dn,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=$(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,Dn,void 0,r)):console.timeStamp(i,t,a,Dn,void 0,r))}function D4(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,lt,rt,r)):console.timeStamp(a,e,t,lt,rt,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,lt,rt,a)):console.timeStamp("Prewarm",e,t,lt,rt,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,lt,rt,a)):console.timeStamp("Suspended",e,t,lt,rt,a))}function R4(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:lt,trackGroup:rt,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,lt,rt,"error")):console.timeStamp("Errored",e,t,lt,rt,"error"))}function _4(e,t,a,n){!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a,e,t,lt,rt,"secondary-light")):console.timeStamp(a,e,t,lt,rt,"secondary-light"))}function Mb(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:lt,trackGroup:rt,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,lt,rt,"secondary-dark")}function yu(){for(var e=ji,t=kh=ji=0;t<e;){var a=Rn[t];Rn[t++]=null;var n=Rn[t];Rn[t++]=null;var r=Rn[t];Rn[t++]=null;var i=Rn[t];if(Rn[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&&Vb(a,r,i)}}function vu(e,t,a,n){Rn[ji++]=e,Rn[ji++]=t,Rn[ji++]=a,Rn[ji++]=n,kh|=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 wa(e,t){return vu(e,null,null,t),xu(e)}function Vb(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-Oa(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(Cc>SR)throw Fr=Cc=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>wR&&(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(_n===null)return e;var t=_n(e);return t===void 0?e:t.current}function sm(e){if(_n===null)return e;var t=_n(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(_n===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===ln)&&(n=!0);break;case 11:(r===Il||r===ln)&&(n=!0);break;case 14:case 15:(r===bd||r===ln)&&(n=!0);break;default:return!1}return!!(n&&(e=_n(a),e!==void 0&&e===_n(t)))}function Lb(e){_n!==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 b=null;switch(p){case 0:case 15:case 1:b=n;break;case 11:b=n.render}if(_n===null)throw Error("Expected resolveFamily to be set during hot reload.");var N=!1;if(n=!1,b!==null&&(b=_n(b),b!==void 0&&(a.has(b)?n=!0:t.has(b)&&(p===1?n=!0:N=!0))),Oi!==null&&(Oi.has(e)||r!==null&&Oi.has(r))&&(n=!0),n&&(e._debugNeedsRemount=!0),(n||N)&&(r=wa(e,2),r!==null&&zt(r,e,2)),i===null||n||Hb(i,t,a),d===null)break;e=d}while(!0)}function k4(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 Xs(e,t){var a=e.alternate;switch(a===null?(a=S(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=de(),d=zE(e,a,d)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Wp:return t=S(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|=Da,r|=Kn;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=S(12,e,t,n|Fe),t.elementType=Zp,t.lanes=i,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Pp:return t=S(13,a,t,r),t.elementType=Pp,t.lanes=i,t;case Kp:return t=S(19,a,t,r),t.elementType=Kp,t.lanes=i,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _s:d=10;break e;case Jp:d=9;break e;case Il:d=11,p=sm(p);break e;case bd:d=14;break e;case ln: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===Rs?(a="<"+(_(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(d=n?X(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=S(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=S(7,e,n,t),e.lanes=a,e}function im(e,t,a){return e=S(6,e,null,t),e.lanes=a,e}function $b(e){var t=S(18,null,null,ze);return t.stateNode=e,t}function lm(e,t,a){return t=S(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tn(e,t){if(typeof e=="object"&&e!==null){var a=Uh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ct(t)},Uh.set(e,t),t)}return{value:e,source:t,stack:ct(t)}}function Qs(e,t){Ro(),Ai[Mi++]=sc,Ai[Mi++]=jd,jd=e,sc=t}function Yb(e,t,a){Ro(),kn[Un++]=so,kn[Un++]=oo,kn[Un++]=Tr,Tr=e;var n=so;e=oo;var r=32-Oa(n)-1;n&=~(1<<r),a+=1;var i=32-Oa(t)+r;if(30<i){var d=r-r%5;i=(n&(1<<d)-1).toString(32),n>>=d,r-=d,so=1<<32-Oa(t)+r|a<<r|n,oo=i+e}else so=1<<i|a<<r|n,oo=e}function cm(e){Ro(),e.return!==null&&(Qs(e,1),Yb(e,1,0))}function um(e){for(;e===jd;)jd=Ai[--Mi],Ai[Mi]=null,sc=Ai[--Mi],Ai[Mi]=null;for(;e===Tr;)Tr=kn[--Un],kn[Un]=null,oo=kn[--Un],kn[Un]=null,so=kn[--Un],kn[Un]=null}function qb(){return Ro(),Tr!==null?{id:so,overflow:oo}:null}function Gb(e,t){Ro(),kn[Un++]=so,kn[Un++]=oo,kn[Un++]=Tr,so=t.id,oo=t.overflow,Tr=e}function Ro(){nt||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(un===null)un={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(un.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");un.distanceFromLeaf>t&&(un.distanceFromLeaf=t)}return un}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(){nt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Su(e,t){Os||(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=un;throw n!==null&&(un=null,a=Do(n)),yl(tn(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)),Ch}function Fb(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ba]=e,t[Aa]=n,Cp(a,n),a){case"dialog":ot("cancel",t),ot("close",t);break;case"iframe":case"object":case"embed":ot("load",t);break;case"video":case"audio":for(a=0;a<jc.length;a++)ot(jc[a],t);break;case"source":ot("error",t);break;case"img":case"image":case"link":ot("error",t),ot("load",t);break;case"details":ot("toggle",t);break;case"input":ra("input",n),ot("invalid",t),Te(t,n),Me(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"option":Ce(t,n);break;case"select":ra("select",n),ot("invalid",t),Rt(t,n);break;case"textarea":ra("textarea",n),ot("invalid",t),Yt(t,n),pt(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&&(ot("beforetoggle",t),ot("toggle",t)),n.onScroll!=null&&ot("scroll",t),n.onScrollEnd!=null&&ot("scrollend",t),n.onClick!=null&&(t.onclick=Fs),t=!0):t=!1,t||_o(e,!0)}function Xb(e){for(ya=e.return;ya;)switch(ya.tag){case 5:case 31:case 13:Cn=!1;return;case 27:case 3:Cn=!0;return;default:ya=ya.return}}function oi(e){if(e!==ya)return!1;if(!nt)return Xb(e),nt=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Mp(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):rn(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=ya?rn(e.stateNode.nextSibling):null;return!0}function xr(){Ut=ya=null,Os=nt=!1}function dm(){var e=Fo;return e!==null&&(Ba===null?Ba=e:Ba.push.apply(Ba,e),Fo=null),e}function yl(e){Fo===null?Fo=[e]:Fo.push(e)}function fm(){var e=un;if(e!==null){un=null;for(var t=Do(e);0<e.children.length;)e=e.children[0];Ne(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(){Vi=Od=null,zi=!1}function ko(e,t,a){ce(Th,t._currentValue,e),t._currentValue=a,ce(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 Zs(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 b=0;b<t.length;b++)if(p.context===t[b]){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,Vi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(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},Vi===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().");Vi=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Vi=Vi.next=t;return a}function hm(){return{controller:new cR,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&&uR(dR,function(){e.controller.abort()})}function ms(e,t,a){(e&127)!==0?0>As&&(As=Jt(),rc=Ad(t),Oh=t,a!=null&&(Ah=$(a)),(ut&(sa|mn))!==ma&&(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>Tn&&(Tn=Jt(),lc=Ad(t),Xx=t,a!=null&&(Qx=$(a)),0>co)&&(e=Bl(),t=Hl(),(e!==Jo||t!==Mr)&&(Jo=-1.1),Zo=e,Mr=t)}function U4(e){if(0>As){As=Jt(),rc=e._debugTask!=null?e._debugTask:null,(ut&(sa|mn))!==ma&&(Qo=oc);var t=Bl(),a=Hl();t!==Li||a!==ic?Li=-1.1:a!==null&&(Qo=oc),Ar=t,ic=a}0>Tn&&(Tn=Jt(),lc=e._debugTask!=null?e._debugTask:null,0>co)&&(e=Bl(),t=Hl(),(e!==Jo||t!==Mr)&&(Jo=-1.1),Zo=e,Mr=t)}function Js(){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(){Ve=Oe=-1.1}function an(){var e=Oe;return Oe=-1.1,e}function nn(e){0<=e&&(Oe=e)}function ps(){var e=Ot;return Ot=-0,e}function hs(e){0<=e&&(Ot=e)}function gs(){var e=jt;return jt=null,e}function bs(){var e=Lt;return Lt=!1,e}function gm(e){za=Jt(),0>e.actualStartTime&&(e.actualStartTime=za)}function bm(e){if(0<=za){var t=Jt()-za;e.actualDuration+=t,e.selfBaseDuration=t,za=-1}}function Zb(e){if(0<=za){var t=Jt()-za;e.actualDuration+=t,za=-1}}function ys(){if(0<=za){var e=Jt(),t=e-za;za=-1,jr+=t,Ot+=t,Ve=e}}function Jb(e){jt===null&&(jt=[]),jt.push(e),io===null&&(io=[]),io.push(e)}function vs(){za=Jt(),0>Oe&&(Oe=za)}function Nl(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function C4(e,t){if(uc===null){var a=uc=[];Vh=0,Vr=Rp(),Hi={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Vh++,t.then(Pb,Pb),t}function Pb(){if(--Vh===0&&(-1<Tn||(co=-1.1),uc!==null)){Hi!==null&&(Hi.status="fulfilled");var e=uc;uc=null,Vr=0,Hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function T4(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:Nt.pooledCache}function ku(e,t){t===null?ce(zr,zr.current,e):ce(zr,t.pool,e)}function Kb(){var e=ym();return e===null?null:{parent:Zt._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(Fs,Fs),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(Fs,Fs);else{if(e=Nt,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 Uo(e){try{return gR(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 pa(e){var t=Xe;return e!=null&&(Xe=t===null?e:t.concat(e)),t}function vm(){var e=Xe;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 Uu(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=Xe,t.return=a),Ne(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 Cu(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===QE?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=$(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=$(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(k,T){if(e){var O=k.deletions;O===null?(k.deletions=[T],k.flags|=16):O.push(T)}}function a(k,T){if(!e)return null;for(;T!==null;)t(k,T),T=T.sibling;return null}function n(k){for(var T=new Map;k!==null;)k.key!==null?T.set(k.key,k):T.set(k.index,k),k=k.sibling;return T}function r(k,T){return k=Xs(k,T),k.index=0,k.sibling=null,k}function i(k,T,O){return k.index=O,e?(O=k.alternate,O!==null?(O=O.index,O<T?(k.flags|=67108866,T):O):(k.flags|=67108866,T)):(k.flags|=1048576,T)}function d(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function p(k,T,O,K){return T===null||T.tag!==6?(T=im(O,k.mode,K),T.return=k,T._debugOwner=k,T._debugTask=k._debugTask,T._debugInfo=Xe,T):(T=r(T,O),T.return=k,T._debugInfo=Xe,T)}function b(k,T,O,K){var be=O.type;return be===Ni?(T=A(k,T,O.props.children,K,O.key),Uu(O,T,k),T):T!==null&&(T.elementType===be||zb(T,O)||typeof be=="object"&&be!==null&&be.$$typeof===ln&&Uo(be)===T.type)?(T=r(T,O.props),Sl(T,O),T.return=k,T._debugOwner=O._owner,T._debugInfo=Xe,T):(T=Nu(O,k.mode,K),Sl(T,O),T.return=k,T._debugInfo=Xe,T)}function N(k,T,O,K){return T===null||T.tag!==4||T.stateNode.containerInfo!==O.containerInfo||T.stateNode.implementation!==O.implementation?(T=lm(O,k.mode,K),T.return=k,T._debugInfo=Xe,T):(T=r(T,O.children||[]),T.return=k,T._debugInfo=Xe,T)}function A(k,T,O,K,be){return T===null||T.tag!==7?(T=yr(O,k.mode,K,be),T.return=k,T._debugOwner=k,T._debugTask=k._debugTask,T._debugInfo=Xe,T):(T=r(T,O),T.return=k,T._debugInfo=Xe,T)}function M(k,T,O){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=im(""+T,k.mode,O),T.return=k,T._debugOwner=k,T._debugTask=k._debugTask,T._debugInfo=Xe,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Rs:return O=Nu(T,k.mode,O),Sl(O,T),O.return=k,k=pa(T._debugInfo),O._debugInfo=Xe,Xe=k,O;case xi:return T=lm(T,k.mode,O),T.return=k,T._debugInfo=Xe,T;case ln:var K=pa(T._debugInfo);return T=Uo(T),k=M(k,T,O),Xe=K,k}if(aa(T)||ee(T))return O=yr(T,k.mode,O,null),O.return=k,O._debugOwner=k,O._debugTask=k._debugTask,k=pa(T._debugInfo),O._debugInfo=Xe,Xe=k,O;if(typeof T.then=="function")return K=pa(T._debugInfo),k=M(k,Cu(T),O),Xe=K,k;if(T.$$typeof===_s)return M(k,Du(k,T),O);Tu(k,T)}return typeof T=="function"&&ju(k,T),typeof T=="symbol"&&Ou(k,T),null}function C(k,T,O,K){var be=T!==null?T.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return be!==null?null:p(k,T,""+O,K);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Rs:return O.key===be?(be=pa(O._debugInfo),k=b(k,T,O,K),Xe=be,k):null;case xi:return O.key===be?N(k,T,O,K):null;case ln:return be=pa(O._debugInfo),O=Uo(O),k=C(k,T,O,K),Xe=be,k}if(aa(O)||ee(O))return be!==null?null:(be=pa(O._debugInfo),k=A(k,T,O,K,null),Xe=be,k);if(typeof O.then=="function")return be=pa(O._debugInfo),k=C(k,T,Cu(O),K),Xe=be,k;if(O.$$typeof===_s)return C(k,T,Du(k,O),K);Tu(k,O)}return typeof O=="function"&&ju(k,O),typeof O=="symbol"&&Ou(k,O),null}function q(k,T,O,K,be){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return k=k.get(O)||null,p(T,k,""+K,be);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case Rs:return O=k.get(K.key===null?O:K.key)||null,k=pa(K._debugInfo),T=b(T,O,K,be),Xe=k,T;case xi:return k=k.get(K.key===null?O:K.key)||null,N(T,k,K,be);case ln:var Ye=pa(K._debugInfo);return K=Uo(K),T=q(k,T,O,K,be),Xe=Ye,T}if(aa(K)||ee(K))return O=k.get(O)||null,k=pa(K._debugInfo),T=A(T,O,K,be,null),Xe=k,T;if(typeof K.then=="function")return Ye=pa(K._debugInfo),T=q(k,T,O,Cu(K),be),Xe=Ye,T;if(K.$$typeof===_s)return q(k,T,O,Du(T,K),be);Tu(T,K)}return typeof K=="function"&&ju(T,K),typeof K=="symbol"&&Ou(T,K),null}function pe(k,T,O,K){if(typeof O!="object"||O===null)return K;switch(O.$$typeof){case Rs:case xi:D(k,T,O);var be=O.key;if(typeof be!="string")break;if(K===null){K=new Set,K.add(be);break}if(!K.has(be)){K.add(be);break}Ne(T,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.",be)});break;case ln:O=Uo(O),pe(k,T,O,K)}return K}function Se(k,T,O,K){for(var be=null,Ye=null,je=null,_e=T,Ie=T=0,Ct=null;_e!==null&&Ie<O.length;Ie++){_e.index>Ie?(Ct=_e,_e=null):Ct=_e.sibling;var It=C(k,_e,O[Ie],K);if(It===null){_e===null&&(_e=Ct);break}be=pe(k,It,O[Ie],be),e&&_e&&It.alternate===null&&t(k,_e),T=i(It,T,Ie),je===null?Ye=It:je.sibling=It,je=It,_e=Ct}if(Ie===O.length)return a(k,_e),nt&&Qs(k,Ie),Ye;if(_e===null){for(;Ie<O.length;Ie++)_e=M(k,O[Ie],K),_e!==null&&(be=pe(k,_e,O[Ie],be),T=i(_e,T,Ie),je===null?Ye=_e:je.sibling=_e,je=_e);return nt&&Qs(k,Ie),Ye}for(_e=n(_e);Ie<O.length;Ie++)Ct=q(_e,k,Ie,O[Ie],K),Ct!==null&&(be=pe(k,Ct,O[Ie],be),e&&Ct.alternate!==null&&_e.delete(Ct.key===null?Ie:Ct.key),T=i(Ct,T,Ie),je===null?Ye=Ct:je.sibling=Ct,je=Ct);return e&&_e.forEach(function(yo){return t(k,yo)}),nt&&Qs(k,Ie),Ye}function wt(k,T,O,K){if(O==null)throw Error("An iterable object provided no iterator.");for(var be=null,Ye=null,je=T,_e=T=0,Ie=null,Ct=null,It=O.next();je!==null&&!It.done;_e++,It=O.next()){je.index>_e?(Ie=je,je=null):Ie=je.sibling;var yo=C(k,je,It.value,K);if(yo===null){je===null&&(je=Ie);break}Ct=pe(k,yo,It.value,Ct),e&&je&&yo.alternate===null&&t(k,je),T=i(yo,T,_e),Ye===null?be=yo:Ye.sibling=yo,Ye=yo,je=Ie}if(It.done)return a(k,je),nt&&Qs(k,_e),be;if(je===null){for(;!It.done;_e++,It=O.next())je=M(k,It.value,K),je!==null&&(Ct=pe(k,je,It.value,Ct),T=i(je,T,_e),Ye===null?be=je:Ye.sibling=je,Ye=je);return nt&&Qs(k,_e),be}for(je=n(je);!It.done;_e++,It=O.next())Ie=q(je,k,_e,It.value,K),Ie!==null&&(Ct=pe(k,Ie,It.value,Ct),e&&Ie.alternate!==null&&je.delete(Ie.key===null?_e:Ie.key),T=i(Ie,T,_e),Ye===null?be=Ie:Ye.sibling=Ie,Ye=Ie);return e&&je.forEach(function(BR){return t(k,BR)}),nt&&Qs(k,_e),be}function it(k,T,O,K){if(typeof O=="object"&&O!==null&&O.type===Ni&&O.key===null&&(Uu(O,null,k),O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Rs:var be=pa(O._debugInfo);e:{for(var Ye=O.key;T!==null;){if(T.key===Ye){if(Ye=O.type,Ye===Ni){if(T.tag===7){a(k,T.sibling),K=r(T,O.props.children),K.return=k,K._debugOwner=O._owner,K._debugInfo=Xe,Uu(O,K,k),k=K;break e}}else if(T.elementType===Ye||zb(T,O)||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===ln&&Uo(Ye)===T.type){a(k,T.sibling),K=r(T,O.props),Sl(K,O),K.return=k,K._debugOwner=O._owner,K._debugInfo=Xe,k=K;break e}a(k,T);break}else t(k,T);T=T.sibling}O.type===Ni?(K=yr(O.props.children,k.mode,K,O.key),K.return=k,K._debugOwner=k,K._debugTask=k._debugTask,K._debugInfo=Xe,Uu(O,K,k),k=K):(K=Nu(O,k.mode,K),Sl(K,O),K.return=k,K._debugInfo=Xe,k=K)}return k=d(k),Xe=be,k;case xi:e:{for(be=O,O=be.key;T!==null;){if(T.key===O)if(T.tag===4&&T.stateNode.containerInfo===be.containerInfo&&T.stateNode.implementation===be.implementation){a(k,T.sibling),K=r(T,be.children||[]),K.return=k,k=K;break e}else{a(k,T);break}else t(k,T);T=T.sibling}K=lm(be,k.mode,K),K.return=k,k=K}return d(k);case ln:return be=pa(O._debugInfo),O=Uo(O),k=it(k,T,O,K),Xe=be,k}if(aa(O))return be=pa(O._debugInfo),k=Se(k,T,O,K),Xe=be,k;if(ee(O)){if(be=pa(O._debugInfo),Ye=ee(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 je=Ye.call(O);return je===O?(k.tag!==0||Object.prototype.toString.call(k.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(je)!=="[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),k=wt(k,T,je,K),Xe=be,k}if(typeof O.then=="function")return be=pa(O._debugInfo),k=it(k,T,Cu(O),K),Xe=be,k;if(O.$$typeof===_s)return it(k,T,Du(k,O),K);Tu(k,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(be=""+O,T!==null&&T.tag===6?(a(k,T.sibling),K=r(T,be),K.return=k,k=K):(a(k,T),K=im(be,k.mode,K),K.return=k,K._debugOwner=k,K._debugTask=k._debugTask,K._debugInfo=Xe,k=K),d(k)):(typeof O=="function"&&ju(k,O),typeof O=="symbol"&&Ou(k,O),a(k,T))}return function(k,T,O,K){var be=Xe;Xe=null;try{yc=0;var Ye=it(k,T,O,K);return $i=null,Ye}catch(Ct){if(Ct===Bi||Ct===Yd)throw Ct;var je=S(29,Ct,null,k.mode);je.lanes=K,je.return=k;var _e=je._debugInfo=Xe;if(je._debugOwner=k._debugOwner,je._debugTask=k._debugTask,_e!=null){for(var Ie=_e.length-1;0<=Ie;Ie--)if(typeof _e[Ie].stack=="string"){je._debugOwner=_e[Ie],je._debugTask=_e[Ie].debugTask;break}}return je}finally{Xe=be}}}function ly(e,t){var a=aa(e);return e=!a&&typeof ee(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 Co(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=$(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(ut&sa)!==ma?(r=n.pending,r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=xu(e),Vb(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;Po=!1,Yh=r.shared;var i=r.firstBaseUpdate,d=r.lastBaseUpdate,p=r.shared.pending;if(p!==null){r.shared.pending=null;var b=p,N=b.next;b.next=null,d===null?i=N:d.next=N,d=b;var A=e.alternate;A!==null&&(A=A.updateQueue,p=A.lastBaseUpdate,p!==d&&(p===null?A.firstBaseUpdate=N:p.next=N,A.lastBaseUpdate=b))}if(i!==null){var M=r.baseState;d=0,A=N=b=null,p=i;do{var C=p.lane&-536870913,q=C!==p.lane;if(q?(Qe&C)===C:(n&C)===C){C!==0&&C===Vr&&(qh=!0),A!==null&&(A=A.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{C=e;var pe=p,Se=t,wt=a;switch(pe.tag){case yN:if(pe=pe.payload,typeof pe=="function"){zi=!0;var it=pe.call(wt,M,Se);if(C.mode&Da){re(!0);try{pe.call(wt,M,Se)}finally{re(!1)}}zi=!1,M=it;break e}M=pe;break e;case $h:C.flags=C.flags&-65537|128;case bN:if(it=pe.payload,typeof it=="function"){if(zi=!0,pe=it.call(wt,M,Se),C.mode&Da){re(!0);try{it.call(wt,M,Se)}finally{re(!1)}}zi=!1}else pe=it;if(pe==null)break e;M=Pe({},M,pe);break e;case vN:Po=!0}}C=p.callback,C!==null&&(e.flags|=64,q&&(e.flags|=8192),q=r.callbacks,q===null?r.callbacks=[C]:q.push(C))}else q={lane:C,tag:p.tag,payload:p.payload,callback:p.callback,next:null},A===null?(N=A=q,b=M):A=A.next=q,d|=C;if(p=p.next,p===null){if(p=r.shared.pending,p===null)break;q=p,p=q.next,q.next=null,r.lastBaseUpdate=q,r.shared.pending=null}}while(!0);A===null&&(b=M),r.baseState=b,r.firstBaseUpdate=N,r.lastBaseUpdate=A,i===null&&(r.shared.lanes=0),er|=d,e.lanes=d,e.memoizedState=M}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 j4(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;ce(Gd,a,e),ce(Yi,t,e),Vs=a|t.baseLanes}function Sm(e){ce(Gd,Vs,e),ce(Yi,Yi.current,e)}function wm(e){Vs=Gd.current,P(Yi,e),P(Gd,e)}function jo(e){var t=e.alternate;ce(Gt,Gt.current&qi,e),ce(dn,e,e),jn===null&&(t===null||Yi.current!==null||t.memoizedState!==null)&&(jn=e)}function Em(e){ce(Gt,Gt.current,e),ce(dn,e,e),jn===null&&(jn=e)}function fy(e){e.tag===22?(ce(Gt,Gt.current,e),ce(dn,e,e),jn===null&&(jn=e)):Oo(e)}function Oo(e){ce(Gt,Gt.current,e),ce(dn,dn.current,e)}function sn(e){P(dn,e),jn===e&&(jn=null),P(Gt,e)}function Mu(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 Je(){var e=G;An===null?An=[e]:An.push(e)}function se(){var e=G;if(An!==null&&(mo++,An[mo]!==e)){var t=$($e);if(!NN.has(t)&&(NN.add(t),An!==null)){for(var a="",n=0;n<=mo;n++){var r=An[n],i=n===mo?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 Vu(){var e=$($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){uo=i,$e=t,An=e!==null?e._debugHookTypes:null,mo=-1,Nc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(i=$($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:An!==null?EN:Ih,$r=i=(t.mode&Da)!==ze;var d=zh(a,n,r);if($r=!1,Ii&&(d=_m(t,a,n,r)),i){re(!0);try{d=_m(t,a,n,r)}finally{re(!1)}}return my(e,t),d}function my(e,t){t._debugHookTypes=An,t.dependencies===null?fo!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:fo}):t.dependencies._debugThenableState=fo,F.H=Sc;var a=xt!==null&&xt.next!==null;if(uo=0,An=G=Pt=xt=$e=null,mo=-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,fo=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Kt||(e=e.dependencies,e!==null&&Eu(e)&&(Kt=!0)),bc?(bc=!1,e=!0):e=!1,e&&(t=$(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&&(fo=null),xc=0,Ii=!1,r>=yR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,Nc=!1,Pt=xt=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}mo=-1,F.H=DN,i=zh(t,a,n)}while(Ii);return i}function O4(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?Rl(t):t,e=e.useState()[0],(xt!==null?xt.memoizedState:null)!==e&&($e.flags|=1024),t}function km(){var e=Xd!==0;return Xd=0,e}function Um(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Kn)!==ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Cm(e){if(Fd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fd=!1}uo=0,An=Pt=xt=$e=null,mo=-1,G=null,Ii=!1,xc=Xd=0,fo=null}function ja(){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 bt(){if(xt===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=xt.next;var t=Pt===null?$e.memoizedState:Pt.next;if(t!==null)Pt=t,xt=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.");xt=e,e={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.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,fo===null&&(fo=Wb()),e=ty(fo,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===_s)return Tt(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]=ZE;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 Zn(e,t){return typeof t=="function"?t(e):t}function Tm(e,t,a){var n=ja();if(a!==void 0){var r=a(t);if($r){re(!0);try{a(t)}finally{re(!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=L4.bind(null,$e,e),[n.memoizedState,e]}function li(e){var t=bt();return jm(t,xt,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,b=null,N=t,A=!1;do{var M=N.lane&-536870913;if(M!==N.lane?(Qe&M)===M:(uo&M)===M){var C=N.revertLane;if(C===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),M===Vr&&(A=!0);else if((uo&C)===C){N=N.next,C===Vr&&(A=!0);continue}else M={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(p=b=M,d=i):b=b.next=M,$e.lanes|=C,er|=C;M=N.action,$r&&a(i,M),i=N.hasEagerState?N.eagerState:a(i,M)}else C={lane:M,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(p=b=C,d=i):b=b.next=C,$e.lanes|=M,er|=M;N=N.next}while(N!==null&&N!==t);if(b===null?d=i:b.next=p,!Va(i,e.memoizedState)&&(Kt=!0,A&&(a=Hi,a!==null)))throw a;e.memoizedState=i,e.baseState=d,e.baseQueue=b,n.lastRenderedState=i}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function _l(e){var t=bt(),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)||(Kt=!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=ja();if(nt){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)),Nt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Qe&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(On|Ha,{destroy:void 0},hy.bind(null,n,a,i,t),null),i}function Lu(e,t,a){var n=$e,r=bt(),i=nt;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((xt||r).memoizedState,a))&&(r.memoizedState=a,Kt=!0),r=r.queue;var p=gy.bind(null,n,r,e);if(Ia(2048,Ha,p,[e]),r.getSnapshot!==t||d||Pt!==null&&Pt.memoizedState.tag&On){if(n.flags|=2048,ui(On|Ha,{destroy:void 0},hy.bind(null,n,r,a,t),null),Nt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i||(uo&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)&&(ms(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=wa(e,2);t!==null&&zt(t,e,2)}function Am(e){var t=ja();if(typeof e=="function"){var a=e;if(e=a(),$r){re(!0);try{a()}finally{re(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:e},t}function Mm(e){e=Am(e);var t=e.queue,a=zy.bind(null,$e,t);return t.dispatch=a,[e.memoizedState,a]}function Vm(e){var t=ja();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Jm.bind(null,$e,!0,a),a.dispatch=t,[e,t]}function vy(e,t){var a=bt();return xy(a,xt,e,t)}function xy(e,t,a,n){return e.baseState=a,jm(e,xt,typeof n=="function"?n:Zn)}function Ny(e,t){var a=bt();return xt!==null?xy(a,xt,e,t):(a.baseState=e,[e,a.queue.dispatch])}function A4(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),b=F.S;b!==null&&b(d,p),wy(e,t,p)}catch(N){zm(e,t,N)}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(N){zm(e,t,N)}}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(nt){var a=Nt.formState;if(a!==null){e:{var n=$e;if(nt){if(Ut){t:{for(var r=Ut,i=Cn;r.nodeType!==8;){if(!i){r=null;break t}if(r=rn(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i===hg||i===u1?r:null}if(r){Ut=rn(r.nextSibling),n=r.data===hg;break e}}_o(n)}n=!1}n&&(t=a[0])}}return a=ja(),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=Jm.bind(null,$e,!1,n.queue),n=ja(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=A4.bind(null,$e,r,i,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function Hu(e){var t=bt();return _y(t,xt,e)}function _y(e,t,a){if(t=jm(e,t,Ry)[0],e=li(Zn)[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=bt();var r=t.queue,i=r.dispatch;return a!==t.memoizedState&&($e.flags|=2048,ui(On|Ha,{destroy:void 0},M4.bind(null,r,a),null)),[n,i,e]}function M4(e,t){e.action=t}function Bu(e){var t=bt(),a=xt;if(a!==null)return _y(t,a,e);bt(),t=t.memoizedState,a=bt();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=ja();return e={current:e},t.memoizedState=e}function Er(e,t,a,n){var r=ja();$e.flags|=e,r.memoizedState=ui(On|t,{destroy:void 0},a,n===void 0?null:n)}function Ia(e,t,a,n){var r=bt();n=n===void 0?null:n;var i=r.memoizedState.inst;xt!==null&&n!==null&&Dm(n,xt.memoizedState.deps)?r.memoizedState=ui(t,i,a,n):($e.flags|=e,r.memoizedState=ui(On|t,i,a,n))}function $u(e,t){($e.mode&Kn)!==ze?Er(276826112,Ha,e,t):Er(8390656,Ha,e,t)}function V4(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=ja(),a={impl:e};return t.memoizedState=a,function(){if((ut&sa)!==ma)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=bt().memoizedState;return V4({ref:t,nextImpl:e}),function(){if((ut&sa)!==ma)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&Kn)!==ze&&(a|=134217728),Er(a,fn,e,t)}function ky(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&Kn)!==ze&&(n|=134217728),Er(n,fn,ky.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,Ia(4,fn,ky.bind(null,t,e),a)}function Ym(e,t){return ja().memoizedState=[e,t===void 0?null:t],e}function Gu(e,t){var a=bt();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=ja();t=t===void 0?null:t;var n=e();if($r){re(!0);try{e()}finally{re(!1)}}return a.memoizedState=[n,t],n}function Iu(e,t){var a=bt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Dm(t,n[1]))return n[0];if(n=e(),$r){re(!0);try{e()}finally{re(!1)}}return a.memoizedState=[n,t],n}function Gm(e,t){var a=ja();return Im(a,e,t)}function Uy(e,t){var a=bt();return Ty(a,xt.memoizedState,e,t)}function Cy(e,t){var a=bt();return xt===null?Im(a,e,t):Ty(a,xt.memoizedState,e,t)}function Im(e,t,a){return a===void 0||(uo&1073741824)!==0&&(Qe&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)||(Kt=!0),e):(uo&42)===0||(uo&1073741824)!==0&&(Qe&261930)===0?(Kt=!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=gt.p;gt.p=i!==0&&i<Ts?i:Ts;var d=F.T,p={};p._updatedFibers=new Set,F.T=p,Jm(e,!1,t,a);try{var b=r(),N=F.S;if(N!==null&&N(p,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){F.asyncTransitions++,b.then(Fu,Fu);var A=T4(b,n);kl(e,t,A,on(e))}else kl(e,t,n,on(e))}catch(M){kl(e,t,{then:function(){},status:"rejected",reason:M},on(e))}finally{gt.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;U4(e),jy(e,r,t,Kr,a===null?x: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:Zn,lastRenderedState:Kr},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,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),kl(e,t.next.queue,{},on(e))}function Xm(){var e=Am(!1);return e=jy.bind(null,$e,e.queue,!0,!1),ja().memoizedState=e,[!1,e]}function My(){var e=li(Zn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]}function Vy(){var e=_l(Zn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]}function Dr(){return Tt(zc)}function Qm(){var e=ja(),t=Nt.identifierPrefix;if(nt){var a=oo,n=so;a=(n&~(1<<32-Oa(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Xd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=bR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Zm(){return ja().memoizedState=z4.bind(null,$e)}function z4(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var n=on(a),r=Co(n),i=To(a,r,n);i!==null&&(ms(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 L4(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=on(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&&(ms(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=on(e),kl(e,t,a,n)&&ms(n,"setState()",e)}function kl(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=es;try{var p=t.lastRenderedState,b=i(p,a);if(r.hasEagerState=!0,r.eagerState=b,Va(b,p))return vu(e,t,r,0),Nt===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 Jm(e,t,a,n){if(F.T===null&&Vr===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&&(ms(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 Pm(e){if(e!==null&&typeof e!="function"){var t=String(e);VN.has(t)||(VN.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&Da){re(!0);try{i=a(n,r)}finally{re(!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:Pe({},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&Da){re(!0);try{a=p.shouldComponentUpdate(n,i,d)}finally{re(!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=$(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=Pe({},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=LR.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?$(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?$(a.source):null,Qh=$(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=Co(a),a.tag=$h,a.payload={element:null},a.callback=function(){Ne(t.source,Qu,e,t)},a}function ep(e){return e=Co(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),Ne(n.source,Iy,t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Lb(a),Ne(n.source,Iy,t,a,n),typeof r!="function"&&(ar===null?ar=new Set([this]):ar.add(this)),mR(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.",$(a)||"Unknown")})}function H4(e,t,a,n,r){if(a.flags|=32768,Cs&&Vl(e,r),n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&ri(t,a,r,!0),nt&&(Os=!0),a=dn.current,a!==null){switch(a.tag){case 31:case 13:return jn===null?nd():a.alternate===null&&At===ho&&(At=Jd),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(nt)return Os=!0,t=dn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Ch&&yl(tn(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!==Ch&&yl(tn(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=tn(n,a),r=Wm(e.stateNode,n,r),Au(e,r),At!==Ko&&(At=Yr)),!1;var i=tn(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(kc===null?kc=[i]:kc.push(i),At!==Ko&&(At=Yr),t===null)return!0;n=tn(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 ha(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=km(),e!==null&&!Kt?(Um(e,t,r),Ps(e,t,r)):(nt&&p&&cm(t),t.flags|=1,ha(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=Xs(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(Kt=!1,t.pendingProps=n=i,cp(e,r))(e.flags&131072)!==0&&(Kt=!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 Jy(e,t,i,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ku(t,i!==null?i.cachePool:null),i!==null?dy(t,i):Sm(t),fy(t);else return n=t.lanes=536870912,Jy(e,t,i!==null?i.baseLanes|a:a,a,n)}else i!==null?(ku(t,i.cachePool),dy(t,i),Oo(t),t.memoizedState=null):(e!==null&&ku(t,null),Sm(t),Oo(t));return ha(e,t,r,a),t.child}function Ul(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:nc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jy(e,t,a,n,r){var i=ym();return i=i===null?null:{parent:Zt._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&ku(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=Pu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Py(e,t,a){return Br(t,e.child,null,a),e=Zu(t,t.pendingProps),e.flags|=2,sn(t),t.memoizedState=null,e}function B4(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(nt){if(n.mode==="hidden")return e=Zu(t,n),t.lanes=536870912,Ul(null,e);if(Em(t),(e=Ut)?(a=S0(e,Cn),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,ya=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=Py(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),Kt||ri(e,t,a,!1),r=(a&e.childLanes)!==0,Kt||r){if(n=Nt,n!==null&&(d=Bs(n,a),d!==0&&d!==i.retryLane))throw i.retryLane=d,wa(e,d),zt(n,e,d),Zh;nd(),t=Py(e,t,a)}else e=i.treeContext,Ut=rn(d.nextSibling),ya=t,nt=!0,Fo=null,Os=!1,un=null,Cn=!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=Xs(i,n),e.ref=t.ref,t.child=e,e.return=t,e}function Ju(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&Da&&Wn.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=km(),e!==null&&!Kt?(Um(e,t,r),Ps(e,t,r)):(nt&&n&&cm(t),t.flags|=1,ha(e,t,a,r),t.child)}function Ky(e,t,a,n,r,i){return Nr(t),mo=-1,Nc=e!==null&&e.type!==t.type,t.updateQueue=null,a=_m(t,n,a,r),my(e,t),n=km(),e!==null&&!Kt?(Um(e,t,i),Ps(e,t,i)):(nt&&n&&cm(t),t.flags|=1,ha(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=Nt,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,tn(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!==_s)&&!MN.has(a)&&(MN.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===Jp?" 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=Tt(i)),i=new a(n,d),t.mode&Da){re(!0);try{i=new a(n,d)}finally{re(!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",kN.has(d)||(kN.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 b=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?b="componentWillUpdate":typeof i.UNSAFE_componentWillUpdate=="function"&&(b="UNSAFE_componentWillUpdate"),d!==null||p!==null||b!==null){i=_(a)||"Component";var N=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";CN.has(i)||(CN.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,N,d!==null?`
|
|
142
|
+
`+d:"",p!==null?`
|
|
143
|
+
`+p:"",b!==null?`
|
|
144
|
+
`+b:""))}}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"||UN.has(a)||(UN.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?Tt(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&Da&&Wn.recordLegacyContextWarning(t,i),Wn.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.",$(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&Kn)!==ze&&(t.flags|=134217728),i=!0}else if(e===null){i=t.stateNode;var A=t.memoizedProps;p=Rr(a,A),i.props=p;var M=i.context;b=a.contextType,d=Io,typeof b=="object"&&b!==null&&(d=Tt(b)),N=a.getDerivedStateFromProps,b=typeof N=="function"||typeof i.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,b||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(A||M!==d)&&$y(t,i,n,d),Po=!1;var C=t.memoizedState;i.state=C,Dl(t,n,i,r),El(),M=t.memoizedState,A||C!==M||Po?(typeof N=="function"&&(Km(t,a,N,n),M=t.memoizedState),(p=Po||By(t,a,p,n,C,M,d))?(b||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&Kn)!==ze&&(t.flags|=134217728)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Kn)!==ze&&(t.flags|=134217728),t.memoizedProps=n,t.memoizedState=M),i.props=n,i.state=M,i.context=d,i=p):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Kn)!==ze&&(t.flags|=134217728),i=!1)}else{i=t.stateNode,Nm(e,t),d=t.memoizedProps,b=Rr(a,d),i.props=b,N=t.pendingProps,C=i.context,M=a.contextType,p=Io,typeof M=="object"&&M!==null&&(p=Tt(M)),A=a.getDerivedStateFromProps,(M=typeof A=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d!==N||C!==p)&&$y(t,i,n,p),Po=!1,C=t.memoizedState,i.state=C,Dl(t,n,i,r),El();var q=t.memoizedState;d!==N||C!==q||Po||e!==null&&e.dependencies!==null&&Eu(e.dependencies)?(typeof A=="function"&&(Km(t,a,A,n),q=t.memoizedState),(b=Po||By(t,a,b,n,C,q,p)||e!==null&&e.dependencies!==null&&Eu(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,q,p),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,q,p)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=q),i.props=n,i.state=q,i.context=p,i=b):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),i=!1)}if(p=i,Ju(e,t),d=(t.flags&128)!==0,p||d){if(p=t.stateNode,$n(t),d&&typeof a.getDerivedStateFromError!="function")a=null,za=-1;else if(a=aN(p),t.mode&Da){re(!0);try{aN(p)}finally{re(!1)}}t.flags|=1,e!==null&&d?(t.child=Br(t,e.child,null,r),t.child=Br(t,null,a,r)):ha(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.",$(t)||"a component"),Xi=!0),e}function ev(e,t,a,n){return xr(),t.flags|=256,ha(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|=Ja),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(nt){if(i?jo(t):Oo(t),(e=Ut)?(a=S0(e,Cn),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,ya=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 b=t.mode;return p=Pu({mode:"hidden",children:p},b),r=yr(r,b,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=Jh,Ul(null,r)}return jo(t),rp(t,p)}var N=e.memoizedState;if(N!==null){var A=N.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,b=t.mode,r=Pu({mode:"visible",children:r.children},b),p=yr(p,b,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=Jh,t=Ul(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 M=n.msg;b=n.stck;var C=n.cstck}i=M,n=p,r=b,A=C,p=i,b=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=b===void 0?null:b,r={value:p,source:null,stack:n},typeof n=="string"&&Uh.set(p,r),yl(r),t=ip(e,t,a)}else if(Kt||ri(e,t,a,!1),n=(a&e.childLanes)!==0,Kt||n){if(n=Nt,n!==null&&(r=Bs(n,a),r!==0&&r!==N.retryLane))throw N.retryLane=r,wa(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=N.treeContext,Ut=rn(A.nextSibling),ya=t,nt=!0,Fo=null,Os=!1,un=null,Cn=!1,e!==null&&Gb(t,e),t=rp(t,r.children),t.flags|=4096);return t}}return i?(Oo(t),p=r.fallback,b=t.mode,C=e.child,A=C.sibling,r=Xs(C,{mode:"hidden",children:r.children}),r.subtreeFlags=C.subtreeFlags&65011712,A!==null?p=Xs(A,p):(p=yr(p,b,a,null),p.flags|=2),p.return=t,r.return=t,r.sibling=p,t.child=r,Ul(null,r),r=t.child,p=e.child.memoizedState,p===null?p=sp(a):(b=p.cachePool,b!==null?(C=Zt._currentValue,b=b.parent!==C?{parent:C,pool:C}:b):b=Kb(),p={baseLanes:p.baseLanes|a,cachePool:b}),r.memoizedState=p,r.childLanes=op(e,n,a),t.memoizedState=Jh,Ul(e.child,r)):(N!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&ad(t),jo(t),a=e.child,e=a.sibling,a=Xs(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=Pu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pu(e,t){return e=S(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,ce(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=ee(d),typeof p=="function"){if(p=p.call(d))for(var b=p.next(),N=0;!b.done;b=p.next()){if(!ly(b.value,N))break e;N++}}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(ha(e,t,d,a),nt?(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&&Mu(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&&Mu(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),za=-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=Xs(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Xs(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 $4(e,t,a){switch(t.tag){case 3:ie(t,t.stateNode.containerInfo),ko(t,Zt,e.memoizedState.cache),xr();break;case 27:case 5:ye(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:ko(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),ce(Gt,Gt.current,t),n)break;return null;case 22:return t.lanes=0,Zy(e,t,a,t.pendingProps);case 24:ko(t,Zt,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)Kt=!0;else{if(!cp(e,a)&&(t.flags&128)===0)return Kt=!1,$4(e,t,a);Kt=(e.flags&131072)!==0}else Kt=!1,(n=nt)&&(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=Uo(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===ln&&(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(ie(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,ko(t,Zt,n),n!==i.cache&&pm(t,[Zt],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=tn(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=rn(e.firstChild),ya=t,nt=!0,Fo=null,Os=!1,un=null,Cn=!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}ha(e,t,n,a)}t=t.child}return t;case 26:return Ju(e,t),e===null?(a=k0(t.type,null,t.pendingProps,null))?t.memoizedState=a:nt||(a=t.type,e=t.pendingProps,n=J(Ho.current),n=id(n).createElement(a),n[ba]=t,n[Aa]=e,ga(n,a,e),ke(n),t.stateNode=n):t.memoizedState=k0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ye(t),e===null&&nt&&(n=J(Ho.current),r=de(),n=t.stateNode=R0(t.type,t.pendingProps,n,r,!1),Os||(r=p0(n,t.type,t.pendingProps,r),r!==null&&(vr(t,0).serverProps=r)),ya=t,Cn=!0,r=Ut,zo(t.type)?(vg=r,Ut=rn(n.firstChild)):Ut=r),ha(e,t,t.pendingProps.children,a),Ju(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&nt&&(i=de(),n=Zf(t.type,i.ancestorInfo),r=Ut,(d=!r)||(d=UE(r,t.type,t.pendingProps,Cn),d!==null?(t.stateNode=d,Os||(i=p0(d,t.type,t.pendingProps,i),i!==null&&(vr(t,0).serverProps=i)),ya=t,Ut=rn(d.firstChild),Cn=!1,i=!0):i=!1,d=!i),d&&(n&&Su(t,r),_o(t))),ye(t),r=t.type,i=t.pendingProps,d=e!==null?e.memoizedProps:null,n=i.children,Mp(r,i)?n=null:d!==null&&Mp(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Rm(e,t,O4,null,null,a),zc._currentValue=r),Ju(e,t),ha(e,t,n,a),t.child;case 6:return e===null&&nt&&(a=t.pendingProps,e=de(),n=e.ancestorInfo.current,a=n!=null?fu(a,n.tag,e.ancestorInfo.implicitRootScope):!0,e=Ut,(n=!e)||(n=CE(e,t.pendingProps,Cn),n!==null?(t.stateNode=n,ya=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 ie(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Br(t,null,n,a):ha(e,t,n,a),t.child;case 11:return Fy(e,t,t.type,t.pendingProps,a);case 7:return ha(e,t,t.pendingProps,a),t.child;case 8:return ha(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,ha(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?")),ko(t,n,i),ha(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=Tt(r),n=zh(n,r,void 0),t.flags|=1,ha(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 B4(e,t,a);case 22:return Zy(e,t,a,t.pendingProps);case 24:return Nr(t),n=Tt(Zt),e===null?(r=ym(),r===null&&(r=Nt,i=hm(),r.pooledCache=i,Sr(i),i!==null&&(r.pooledCacheLanes|=a),r=i),t.memoizedState={parent:n,cache:r},xm(t),ko(t,Zt,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),ko(t,Zt,n)):(n=i.cache,ko(t,Zt,n),n!==r.cache&&pm(t,[Zt],a,!0))),ha(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 Ks(e){e.flags|=4}function dp(e,t,a,n,r){if((t=(e.mode&lR)!==ze)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Vv())e.flags|=8192;else throw Hr=qd,Hh}else e.flags&=-16777217}function sv(e,t){if(t.type!=="stylesheet"||(t.state.loading&Mn)!==Pr)e.flags&=-16777217;else if(e.flags|=16777216,!O0(t))if(Vv())e.flags|=8192;else throw Hr=qd,Hh}function Ku(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Vt():536870912,e.lanes|=t,Ir|=t)}function Cl(e,t){if(!nt)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 St(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)if((e.mode&Fe)!==ze){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&Fe)!==ze){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 Y4(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 St(t),null;case 1:return St(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zs(Zt,t),W(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?(fm(),Ks(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,dm())),St(t),null;case 26:var r=t.type,i=t.memoizedState;return e===null?(Ks(t),i!==null?(St(t),sv(t,i)):(St(t),dp(t,r,null,n,a))):i?i!==e.memoizedState?(Ks(t),St(t),sv(t,i)):(St(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Ks(t),St(t),dp(t,r,e,n,a)),null;case 27:if(ve(t),a=J(Ho.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ks(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 St(t),null}e=de(),oi(t)?Fb(t):(e=R0(r,n,a,e,!0),t.stateNode=e,Ks(t))}return St(t),null;case 5:if(ve(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ks(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 St(t),null}var d=de();if(oi(t))Fb(t);else{switch(i=J(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]"||Pn.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[ba]=t,i[Aa]=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(ga(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&&Ks(t)}}return St(t),dp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Ks(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=J(Ho.current),a=de(),oi(t)){if(e=t.stateNode,a=t.memoizedProps,r=!Os,n=null,i=ya,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[ba]=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[ba]=t,t.stateNode=e}return St(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[ba]=t,St(t),(t.mode&Fe)!==ze&&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,St(t),(t.mode&Fe)!==ze&&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?(sn(t),t):(sn(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return St(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[ba]=t,St(t),(t.mode&Fe)!==ze&&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,St(t),(t.mode&Fe)!==ze&&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?(sn(t),t):(sn(t),null)}return sn(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&Fe)!==ze&&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),St(t),(t.mode&Fe)!==ze&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return W(t),e===null&&kp(t.stateNode.containerInfo),St(t),null;case 10:return Zs(t.type,t),St(t),null;case 19:if(P(Gt,t),n=t.memoizedState,n===null)return St(t),null;if(r=(t.flags&128)!==0,i=n.rendering,i===null)if(r)Cl(n,!1);else{if(At!==ho||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Mu(e),i!==null){for(t.flags|=128,Cl(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 ce(Gt,Gt.current&qi|vc,t),nt&&Qs(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ua()>af&&(t.flags|=128,r=!0,Cl(n,!1),t.lanes=4194304)}else{if(!r)if(e=Mu(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ku(t,e),Cl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!nt)return St(t),null}else 2*ua()-n.renderingStartTime>af&&a!==536870912&&(t.flags|=128,r=!0,Cl(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=ua(),e.sibling=null,a=Gt.current,a=r?a&qi|vc:a&qi,ce(Gt,a,t),nt&&Qs(t,n.treeForkCount),e):(St(t),null);case 22:case 23:return sn(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&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(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),Zs(Zt,t),St(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 q4(e,t){switch(um(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Fe)!==ze&&Nl(t),t):null;case 3:return Zs(Zt,t),W(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(sn(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&Fe)!==ze&&Nl(t),t):null;case 13:if(sn(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&Fe)!==ze&&Nl(t),t):null;case 19:return P(Gt,t),null;case 4:return W(t),null;case 10:return Zs(t.type,t),null;case 22:case 23:return sn(t),wm(t),e!==null&&P(zr,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Fe)!==ze&&Nl(t),t):null;case 24:return Zs(Zt,t),null;case 25:return null;default:return null}}function ov(e,t){switch(um(t),t.tag){case 3:Zs(Zt,t),W(t);break;case 26:case 27:case 5:ve(t);break;case 4:W(t);break;case 31:t.memoizedState!==null&&sn(t);break;case 13:sn(t);break;case 19:P(Gt,t);break;case 10:Zs(t.type,t);break;case 22:case 23:sn(t),wm(t),e!==null&&P(zr,t);break;case 24:Zs(Zt,t)}}function xs(e){return(e.mode&Fe)!==ze}function rv(e,t){xs(e)?(vs(),Tl(t,e),ys()):Tl(t,e)}function fp(e,t,a){xs(e)?(vs(),di(a,e,t),ys()):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&La)!==Id&&(Ki=!0),n=Ne(t,pR,a),(e&La)!==Id&&(Ki=!1),n!==void 0&&typeof n!="function")){var i=void 0;i=(a.tag&fn)!==0?"useLayoutEffect":(a.tag&La)!==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,Ne(t,function(p,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,b)},i,d)}a=a.next}while(a!==r)}}catch(p){ht(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&La)!==Id&&(Ki=!0),r=t,Ne(r,hR,r,a,p),(e&La)!==Id&&(Ki=!1))}n=n.next}while(n!==i)}}catch(b){ht(t,t.return,b)}}function iv(e,t){xs(e)?(vs(),Tl(t,e),ys()):Tl(t,e)}function mp(e,t,a){xs(e)?(vs(),di(a,e,t),ys()):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.",$(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.",$(e)||"instance"));try{Ne(e,uy,t,a)}catch(n){ht(e,e.return,n)}}}function G4(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function I4(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.",$(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.",$(e)||"instance"));try{var r=Rr(e.type,a),i=Ne(e,G4,t,r,n);a=qN,i!==void 0||a.has(e.type)||(a.add(e.type),Ne(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",$(e))})),t.__reactInternalSnapshotBeforeUpdate=i}catch(d){ht(e,e.return,d)}}function cv(e,t,a){a.props=Rr(e.type,e.memoizedProps),a.state=e.memoizedState,xs(e)?(vs(),Ne(e,lN,e,t,a),ys()):Ne(e,lN,e,t,a)}function F4(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(xs(e))try{vs(),e.refCleanup=t(a)}finally{ys()}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().",$(e)),t.current=a}}function jl(e,t){try{Ne(e,F4,e)}catch(a){ht(e,t,a)}}function Ns(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{if(xs(e))try{vs(),Ne(e,n)}finally{ys(e)}else Ne(e,n)}catch(r){ht(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(xs(e))try{vs(),Ne(e,a,null)}finally{ys(e)}else Ne(e,a,null)}catch(r){ht(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 X4(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{Ne(e,bE,n,t,a,e)}catch(r){ht(e,e.return,r)}}function pp(e,t,a){try{Ne(e,vE,e.stateNode,e.type,a,t,e)}catch(n){ht(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=Fs));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 Q4(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{Ne(e,ME,e.type,a,t,e)}catch(n){ht(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 Z4(e,t){if(e=e.containerInfo,gg=xf,e=Cb(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,b=-1,N=0,A=0,M=e,C=null;t:for(;;){for(var q;M!==a||r!==0&&M.nodeType!==3||(p=d+r),M!==i||n!==0&&M.nodeType!==3||(b=d+n),M.nodeType===3&&(d+=M.nodeValue.length),(q=M.firstChild)!==null;)C=M,M=q;for(;;){if(M===e)break t;if(C===a&&++N===r&&(p=d),C===i&&++A===n&&(b=d),(q=M.nextSibling)!==null)break;M=C,C=M.parentNode}M=q}a=p===-1||b===-1?null:{start:p,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(bg={focusedElem:e,selectionRange:a},xf=!1,fa=t;fa!==null;)if(t=fa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,fa=e;else for(;fa!==null;){switch(e=t=fa,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&&I4(e,a);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Vp(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vp(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,fa=e;break}fa=t.return}}function hv(e,t,a){var n=an(),r=ps(),i=gs(),d=bs(),p=a.flags;switch(a.tag){case 0:case 11:case 15:Ss(e,a),p&4&&rv(a,fn|On);break;case 1:if(Ss(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.",$(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.",$(a)||"instance")),xs(a)?(vs(),Ne(a,Lh,a,e),ys()):Ne(a,Lh,a,e);else{var b=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.",$(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.",$(a)||"instance")),xs(a)?(vs(),Ne(a,oN,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate),ys()):Ne(a,oN,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&lv(a),p&512&&jl(a,a.return);break;case 3:if(t=Js(),Ss(e,a),p&64&&(p=a.updateQueue,p!==null)){if(b=null,a.child!==null)switch(a.child.tag){case 27:case 5:b=a.child.stateNode;break;case 1:b=a.child.stateNode}try{Ne(a,uy,p,b)}catch(A){ht(a,a.return,A)}}e.effectDuration+=Ru(t);break;case 27:t===null&&p&4&&mv(a);case 26:case 5:if(Ss(e,a),t===null){if(p&4)dv(a);else if(p&64){e=a.type,t=a.memoizedProps,b=a.stateNode;try{Ne(a,yE,b,e,t,a)}catch(A){ht(a,a.return,A)}}}p&512&&jl(a,a.return);break;case 12:if(p&4){p=Js(),Ss(e,a),e=a.stateNode,e.effectDuration+=xl(p);try{Ne(a,uv,a,t,Xo,e.effectDuration)}catch(A){ht(a,a.return,A)}}else Ss(e,a);break;case 31:Ss(e,a),p&4&&yv(e,a);break;case 13:Ss(e,a),p&4&&vv(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=sE.bind(null,a),TE(e,p))));break;case 22:if(p=a.memoizedState!==null||po,!p){t=t!==null&&t.memoizedState!==null||Wt,b=po;var N=Wt;po=p,(Wt=t)&&!N?(ws(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&gu(a,Oe,Ve)):Ss(e,a),po=b,Wt=N}break;case 30:break;default:Ss(e,a)}(a.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&((Lt||.05<Ot)&&fs(a,Oe,Ve,Ot,jt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Ve-Oe&&(pv(a.return.alternate,a.return)||ds(a,Oe,Ve,"Mount"))),nn(n),hs(r),jt=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&&V(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 Ws(e,t,a){for(a=a.child;a!==null;)bv(e,t,a),a=a.sibling}function bv(e,t,a){if(Ea&&typeof Ea.onCommitFiberUnmount=="function")try{Ea.onCommitFiberUnmount(wi,a)}catch(N){Us||(Us=!0,console.error("React instrumentation encountered an error: %o",N))}var n=an(),r=ps(),i=gs(),d=bs();switch(a.tag){case 26:Wt||Ns(a,t),Ws(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Wt||Ns(a,t);var p=ea,b=Qa;zo(a.type)&&(ea=a.stateNode,Qa=!1),Ws(e,t,a),Ne(a,$l,a.stateNode),ea=p,Qa=b;break;case 5:Wt||Ns(a,t);case 6:if(p=ea,b=Qa,ea=null,Ws(e,t,a),ea=p,Qa=b,ea!==null)if(Qa)try{Ne(a,SE,ea,a.stateNode)}catch(N){ht(a,t,N)}else try{Ne(a,NE,ea,a.stateNode)}catch(N){ht(a,t,N)}break;case 18:ea!==null&&(Qa?(e=ea,x0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),vi(e)):x0(ea,a.stateNode));break;case 4:p=ea,b=Qa,ea=a.stateNode.containerInfo,Qa=!0,Ws(e,t,a),ea=p,Qa=b;break;case 0:case 11:case 14:case 15:di(La,a,t),Wt||fp(a,t,fn),Ws(e,t,a);break;case 1:Wt||(Ns(a,t),p=a.stateNode,typeof p.componentWillUnmount=="function"&&cv(a,t,p)),Ws(e,t,a);break;case 21:Ws(e,t,a);break;case 22:Wt=(p=Wt)||a.memoizedState!==null,Ws(e,t,a),Wt=p;break;default:Ws(e,t,a)}(a.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&(Lt||.05<Ot)&&fs(a,Oe,Ve,Ot,jt),nn(n),hs(r),jt=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{Ne(t,OE,e)}catch(a){ht(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{Ne(t,AE,e)}catch(a){ht(t,t.return,a)}}function J4(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=J4(e);t.forEach(function(n){if(!a.has(n)){if(a.add(n),Cs)if(Qi!==null&&Zi!==null)Vl(Zi,Qi);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=oE.bind(null,e,n);n.then(r,r)}})}function Fa(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=an(),b=i;e:for(;b!==null;){switch(b.tag){case 27:if(zo(b.type)){ea=b.stateNode,Qa=!1;break e}break;case 5:ea=b.stateNode,Qa=!1;break e;case 3:case 4:ea=b.stateNode.containerInfo,Qa=!0;break e}b=b.return}if(ea===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),ea=null,Qa=!1,(d.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&ds(d,Oe,Ve,"Unmount"),nn(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=an(),n=ps(),r=gs(),i=bs(),d=e.alternate,p=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Fa(t,e),Xa(e),p&4&&(di(La|On,e,e.return),Tl(La|On,e),fp(e,e.return,fn|On));break;case 1:if(Fa(t,e),Xa(e),p&512&&(Wt||d===null||Ns(d,d.return)),p&64&&po&&(p=e.updateQueue,p!==null&&(d=p.callbacks,d!==null))){var b=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=b===null?d:b.concat(d)}break;case 26:if(b=ts,Fa(t,e),Xa(e),p&512&&(Wt||d===null||Ns(d,d.return)),p&4){var N=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,b=b.ownerDocument||b;t:switch(p){case"title":N=b.getElementsByTagName("title")[0],(!N||N[Ql]||N[ba]||N.namespaceURI===Di||N.hasAttribute("itemprop"))&&(N=b.createElement(p),b.head.insertBefore(N,b.querySelector("head > title"))),ga(N,p,d),N[ba]=e,ke(N),p=N;break e;case"link":var A=T0("link","href",b).get(p+(d.href||""));if(A){for(var M=0;M<A.length;M++)if(N=A[M],N.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&N.getAttribute("rel")===(d.rel==null?null:d.rel)&&N.getAttribute("title")===(d.title==null?null:d.title)&&N.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){A.splice(M,1);break t}}N=b.createElement(p),ga(N,p,d),b.head.appendChild(N);break;case"meta":if(A=T0("meta","content",b).get(p+(d.content||""))){for(M=0;M<A.length;M++)if(N=A[M],dt(d.content,"content"),N.getAttribute("content")===(d.content==null?null:""+d.content)&&N.getAttribute("name")===(d.name==null?null:d.name)&&N.getAttribute("property")===(d.property==null?null:d.property)&&N.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&N.getAttribute("charset")===(d.charSet==null?null:d.charSet)){A.splice(M,1);break t}}N=b.createElement(p),ga(N,p,d),b.head.appendChild(N);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}N[ba]=e,ke(N),p=N}e.stateNode=p}else j0(b,e.type,e.stateNode);else e.stateNode=C0(b,p,e.memoizedProps);else N!==p?(N===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):N.count--,p===null?j0(b,e.type,e.stateNode):C0(b,p,e.memoizedProps)):p===null&&e.stateNode!==null&&pp(e,e.memoizedProps,d.memoizedProps)}break;case 27:Fa(t,e),Xa(e),p&512&&(Wt||d===null||Ns(d,d.return)),d!==null&&p&4&&pp(e,e.memoizedProps,d.memoizedProps);break;case 5:if(Fa(t,e),Xa(e),p&512&&(Wt||d===null||Ns(d,d.return)),e.flags&32){b=e.stateNode;try{Ne(e,y0,b)}catch(Se){ht(e,e.return,Se)}}p&4&&e.stateNode!=null&&(b=e.memoizedProps,pp(e,b,d!==null?d.memoizedProps:b)),p&1024&&(Ph=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Fa(t,e),Xa(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,b=e.stateNode;try{Ne(e,xE,b,d,p)}catch(Se){ht(e,e.return,Se)}}break;case 3:if(b=Js(),bf=null,N=ts,ts=ld(t.containerInfo),Fa(t,e),ts=N,Xa(e),p&4&&d!==null&&d.memoizedState.isDehydrated)try{Ne(e,jE,t.containerInfo)}catch(Se){ht(e,e.return,Se)}Ph&&(Ph=!1,Nv(e)),t.effectDuration+=Ru(b);break;case 4:p=ts,ts=ld(e.stateNode.containerInfo),Fa(t,e),Xa(e),ts=p;break;case 12:p=Js(),Fa(t,e),Xa(e),e.stateNode.effectDuration+=xl(p);break;case 31:Fa(t,e),Xa(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,ed(e,p)));break;case 13:Fa(t,e),Xa(e),e.child.flags&8192&&e.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(tf=ua()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,ed(e,p)));break;case 22:b=e.memoizedState!==null;var C=d!==null&&d.memoizedState!==null,q=po,pe=Wt;if(po=q||b,Wt=pe||C,Fa(t,e),Wt=pe,po=q,C&&!b&&!q&&!pe&&(e.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&gu(e,Oe,Ve),Xa(e),p&8192)e:for(t=e.stateNode,t._visibility=b?t._visibility&~nc:t._visibility|nc,!b||d===null||C||po||Wt||(_r(e),(e.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&ds(e,Oe,Ve,"Disconnect")),d=null,t=e;;){if(t.tag===5||t.tag===26){if(d===null){C=d=t;try{N=C.stateNode,b?Ne(C,EE,N):Ne(C,_E,C.stateNode,C.memoizedProps)}catch(Se){ht(C,C.return,Se)}}}else if(t.tag===6){if(d===null){C=t;try{A=C.stateNode,b?Ne(C,DE,A):Ne(C,kE,A,C.memoizedProps)}catch(Se){ht(C,C.return,Se)}}}else if(t.tag===18){if(d===null){C=t;try{M=C.stateNode,b?Ne(C,wE,M):Ne(C,RE,C.stateNode)}catch(Se){ht(C,C.return,Se)}}}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:Fa(t,e),Xa(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,ed(e,p)));break;case 30:break;case 21:break;default:Fa(t,e),Xa(e)}(e.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&((Lt||.05<Ot)&&fs(e,Oe,Ve,Ot,jt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Ve-Oe&&(pv(e.return.alternate,e.return)||ds(e,Oe,Ve,"Mount"))),nn(a),hs(n),jt=r,Lt=i}function Xa(e){var t=e.flags;if(t&2){try{Ne(e,Q4,e)}catch(a){ht(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 Ss(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=an(),a=ps(),n=gs(),r=bs();switch(e.tag){case 0:case 11:case 14:case 15:fp(e,e.return,fn),_r(e);break;case 1:Ns(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&cv(e,e.return,i),_r(e);break;case 27:Ne(e,$l,e.stateNode);case 26:case 5:Ns(e,e.return),_r(e);break;case 22:e.memoizedState===null&&_r(e);break;case 30:_r(e);break;default:_r(e)}(e.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&(Lt||.05<Ot)&&fs(e,Oe,Ve,Ot,jt),nn(t),hs(a),jt=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=an(),i=ps(),d=gs(),p=bs(),b=a.flags;switch(a.tag){case 0:case 11:case 15:ws(e,a,n),rv(a,fn);break;case 1:if(ws(e,a,n),t=a.stateNode,typeof t.componentDidMount=="function"&&Ne(a,Lh,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{Ne(a,j4,t,e)}catch(N){ht(a,a.return,N)}}n&&b&64&&lv(a),jl(a,a.return);break;case 27:mv(a);case 26:case 5:ws(e,a,n),n&&t===null&&b&4&&dv(a),jl(a,a.return);break;case 12:if(n&&b&4){b=Js(),ws(e,a,n),n=a.stateNode,n.effectDuration+=xl(b);try{Ne(a,uv,a,t,Xo,n.effectDuration)}catch(N){ht(a,a.return,N)}}else ws(e,a,n);break;case 31:ws(e,a,n),n&&b&4&&yv(e,a);break;case 13:ws(e,a,n),n&&b&4&&vv(e,a);break;case 22:a.memoizedState===null&&ws(e,a,n),jl(a,a.return);break;case 30:break;default:ws(e,a,n)}(a.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&(Lt||.05<Ot)&&fs(a,Oe,Ve,Ot,jt),nn(r),hs(i),jt=d,Lt=p}function ws(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 Jn(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=an(),d=ps(),p=gs(),b=bs(),N=qo,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Fe)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&bu(t,t.actualStartTime,r,na,a),Jn(e,t,a,n,r),A&2048&&iv(t,Ha|On);break;case 1:(t.mode&Fe)!==ze&&0<t.actualStartTime&&((t.flags&128)!==0?em(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&bu(t,t.actualStartTime,r,na,a)),Jn(e,t,a,n,r);break;case 3:var M=Js(),C=na;na=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Jn(e,t,a,n,r),na=C,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(M);break;case 12:if(A&2048){A=Js(),Jn(e,t,a,n,r),e=t.stateNode,e.passiveEffectDuration+=xl(A);try{Ne(t,X4,t,t.alternate,Xo,e.passiveEffectDuration)}catch(q){ht(t,t.return,q)}}else Jn(e,t,a,n,r);break;case 31:A=na,M=t.alternate!==null?t.alternate.memoizedState:null,C=t.memoizedState,M!==null&&C===null?(C=t.deletions,C!==null&&0<C.length&&C[0].tag===18?(na=!1,M=M.hydrationErrors,M!==null&&em(t,t.actualStartTime,r,M)):na=!0):na=!1,Jn(e,t,a,n,r),na=A;break;case 13:A=na,M=t.alternate!==null?t.alternate.memoizedState:null,C=t.memoizedState,M===null||M.dehydrated===null||C!==null&&C.dehydrated!==null?na=!1:(C=t.deletions,C!==null&&0<C.length&&C[0].tag===18?(na=!1,M=M.hydrationErrors,M!==null&&em(t,t.actualStartTime,r,M)):na=!0),Jn(e,t,a,n,r),na=A;break;case 23:break;case 22:C=t.stateNode,M=t.alternate,t.memoizedState!==null?C._visibility&no?Jn(e,t,a,n,r):Ol(e,t,a,n,r):C._visibility&no?Jn(e,t,a,n,r):(C._visibility|=no,fi(e,t,a,n,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&Fe)===ze||na||(e=t.actualStartTime,0<=e&&.05<r-e&&gu(t,e,r),0<=Oe&&0<=Ve&&.05<Ve-Oe&&gu(t,Oe,Ve))),A&2048&&bp(M,t);break;case 24:Jn(e,t,a,n,r),A&2048&&yp(t.alternate,t);break;default:Jn(e,t,a,n,r)}(t.mode&Fe)!==ze&&((e=!na&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<r-a&&ds(t,a,r,"Mount")),0<=Oe&&0<=Ve&&((Lt||.05<Ot)&&fs(t,Oe,Ve,Ot,jt),e&&.05<Ve-Oe&&ds(t,Oe,Ve,"Mount"))),nn(i),hs(d),jt=p,Lt=b,qo=N}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=an(),p=ps(),b=gs(),N=bs(),A=qo;r&&(t.mode&Fe)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&bu(t,t.actualStartTime,i,na,a);var M=t.flags;switch(t.tag){case 0:case 11:case 15:fi(e,t,a,n,r,i),iv(t,Ha);break;case 23:break;case 22:var C=t.stateNode;t.memoizedState!==null?C._visibility&no?fi(e,t,a,n,r,i):Ol(e,t,a,n,i):(C._visibility|=no,fi(e,t,a,n,r,i)),r&&M&2048&&bp(t.alternate,t);break;case 24:fi(e,t,a,n,r,i),r&&M&2048&&yp(t.alternate,t);break;default:fi(e,t,a,n,r,i)}(t.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&(Lt||.05<Ot)&&fs(t,Oe,Ve,Ot,jt),nn(d),hs(p),jt=b,Lt=N,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,b=n,N=t!==null?t.actualStartTime:r,A=qo;(i.mode&Fe)!==ze&&0<i.actualStartTime&&(i.flags&1)!==0&&bu(i,i.actualStartTime,N,na,p);var M=i.flags;switch(i.tag){case 22:Ol(d,i,p,b,N),M&2048&&bp(i.alternate,i);break;case 24:Ol(d,i,p,b,N),M&2048&&yp(i.alternate,i);break;default:Ol(d,i,p,b,N)}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&&LE(a,ts,e.memoizedState,e.memoizedProps);break;case 5:mi(e,t,a);break;case 3:case 4:var n=ts;ts=ld(e.stateNode.containerInfo),mi(e,t,a),ts=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=an();fa=n,Cv(n,e),(n.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&ds(n,Oe,Ve,"Unmount"),nn(r)}_v(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kv(e),e=e.sibling}function kv(e){var t=an(),a=ps(),n=gs(),r=bs();switch(e.tag){case 0:case 11:case 15:Al(e),e.flags&2048&&mp(e,e.return,Ha|On);break;case 3:var i=Js();Al(e),e.stateNode.passiveEffectDuration+=Ru(i);break;case 12:i=Js(),Al(e),e.stateNode.passiveEffectDuration+=xl(i);break;case 22:i=e.stateNode,e.memoizedState!==null&&i._visibility&no&&(e.return===null||e.return.tag!==13)?(i._visibility&=~no,td(e),(e.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&ds(e,Oe,Ve,"Disconnect")):Al(e);break;default:Al(e)}(e.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&(Lt||.05<Ot)&&fs(e,Oe,Ve,Ot,jt),nn(t),hs(a),Lt=r,jt=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=an();fa=n,Cv(n,e),(n.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&ds(n,Oe,Ve,"Unmount"),nn(r)}_v(e)}for(e=e.child;e!==null;)Uv(e),e=e.sibling}function Uv(e){var t=an(),a=ps(),n=gs(),r=bs();switch(e.tag){case 0:case 11:case 15:mp(e,e.return,Ha),td(e);break;case 22:var i=e.stateNode;i._visibility&no&&(i._visibility&=~no,td(e));break;default:td(e)}(e.mode&Fe)!==ze&&0<=Oe&&0<=Ve&&(Lt||.05<Ot)&&fs(e,Oe,Ve,Ot,jt),nn(t),hs(a),Lt=r,jt=n}function Cv(e,t){for(;fa!==null;){var a=fa,n=a,r=t,i=an(),d=ps(),p=gs(),b=bs();switch(n.tag){case 0:case 11:case 15:mp(n,r,Ha);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&Fe)!==ze&&0<=Oe&&0<=Ve&&(Lt||.05<Ot)&&fs(n,Oe,Ve,Ot,jt),nn(i),hs(d),Lt=b,jt=p,n=a.child,n!==null)n.return=a,fa=n;else e:for(a=e;fa!==null;){if(n=fa,i=n.sibling,d=n.return,gv(n),n===a){fa=null;break e}if(i!==null){i.return=d,fa=i;break e}fa=d}}}function P4(){xR.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 on(e){if((ut&sa)!==ma&&Qe!==0)return Qe&-Qe;var t=F.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Rp()):qn()}function jv(){if(Ja===0)if((Qe&536870912)===0||nt){var e=xd;xd<<=1,(xd&3932160)===0&&(xd=262144),Ja=e}else Ja=536870912;return e=dn.current,e!==null&&(e.flags|=32),Ja}function zt(e,t,a){if(Ki&&console.error("useInsertionEffect must not schedule updates."),lg&&(of=!0),(e===Nt&&(yt===qr||yt===Gr)||e.cancelPendingCommit!==null)&&(hi(e,0),Mo(e,Qe,Ja,!1)),xn(e,a),(ut&sa)!==ma&&e===Nt){if(ks)switch(t.tag){case 0:case 11:case 15:e=Ze&&$(Ze)||"Unknown",o1.has(e)||(o1.add(e),t=$(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 Cs&&$s(e,t,a),iE(t),e===Nt&&((ut&sa)===ma&&(tr|=a),At===Ko&&Mo(e,Qe,Ja,!1)),Es(e)}function Ov(e,t,a){if((ut&(sa|mn))!==ma)throw Error("Should not already be working.");if(Qe!==0&&Ze!==null){var n=Ze,r=ua();switch(Px){case Rc:case qr:var i=cc;kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Suspended",i,r,Dn,void 0,"primary-light")):console.timeStamp("Suspended",i,r,Dn,void 0,"primary-light"));break;case Gr:i=cc,kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Action",i,r,Dn,void 0,"primary-light")):console.timeStamp("Action",i,r,Dn,void 0,"primary-light"));break;default:kt&&(n=r-cc,3>n||console.timeStamp("Blocked",cc,r,Dn,void 0,5>n?"primary-light":10>n?"primary":100>n?"primary-dark":"error"))}}i=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||vn(e,t))?W4(e,t):xp(e,t,!0);var d=a;do{if(i===ho){Ji&&!a&&Mo(e,t,0,!1),t=yt,cc=Jt(),Px=t;break}else{if(n=ua(),r=e.current.alternate,d&&!K4(r)){Qn(t),r=da,i=n,!kt||i<=r||(Bt?Bt.run(console.timeStamp.bind(console,"Teared Render",r,i,lt,rt,"error")):console.timeStamp("Teared Render",r,i,lt,rt,"error")),kr(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){Qn(t),tm(da,n,t,Bt),kr(t,n),t=p;e:{n=e,i=d,d=kc;var b=n.current.memoizedState.isDehydrated;if(b&&(hi(n,p).flags|=256),p=xp(n,p,!1),p!==Yr){if(eg&&!b){n.errorRecoveryDisabledLanes|=i,tr|=i,i=Ko;break e}n=Ba,Ba=d,n!==null&&(Ba===null?Ba=n:Ba.push.apply(Ba,n))}i=p}if(d=!1,i!==Yr)continue;n=ua()}}if(i===Dc){Qn(t),tm(da,n,t,Bt),kr(t,n),hi(e,0),Mo(e,t,0,!0);break}e:{switch(a=e,i){case ho:case Dc:throw Error("Root did not complete. This is a bug in React.");case Ko:if((t&4194048)!==t)break;case Pd:Qn(t),Ob(da,n,t,Bt),kr(t,n),r=t,(r&127)!==0?Vd=n:(r&4194048)!==0&&(zd=n),Mo(a,t,Ja,!Wo);break e;case Yr:Ba=null;break;case Jd:case IN:break;default:throw Error("Unknown root exit status.")}if(F.actQueue!==null)Np(a,r,t,Ba,Uc,ef,Ja,tr,Ir,i,null,null,da,n);else{if((t&62914560)===t&&(d=tf+QN-ua(),10<d)){if(Mo(a,t,Ja,!Wo),Yn(a,0,!0)!==0)break e;as=t,a.timeoutHandle=m1(Av.bind(null,a,r,Ba,Uc,ef,t,Ja,tr,Ir,Wo,i,"Throttled",da,n),d);break e}Av(a,r,Ba,Uc,ef,t,Ja,tr,Ir,Wo,i,null,da,n)}}}break}while(!0);Es(e)}function Av(e,t,a,n,r,i,d,p,b,N,A,M,C,q){e.timeoutHandle=Jr;var pe=t.subtreeFlags,Se=null;if((pe&8192||(pe&16785408)===16785408)&&(Se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fs},Rv(t,i,Se),pe=(i&62914560)===i?tf-ua():(i&4194048)===i?XN-ua():0,pe=HE(Se,pe),pe!==null)){as=i,e.cancelPendingCommit=pe(Np.bind(null,e,t,i,a,n,r,d,p,b,A,Se,Se.waitingForViewTransition?"Waiting for the previous Animation":0<Se.count?0<Se.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Se.imgCount===1?"Suspended on an Image":0<Se.imgCount?"Suspended on Images":null,C,q)),Mo(e,i,d,!N);return}Np(e,t,i,a,n,r,d,p,b,A,Se,M,C,q)}function K4(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 Mo(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-Oa(r),d=1<<i;n[i]=-1,r&=~d}a!==0&&Ua(e,a,t)}function pi(){return(ut&(sa|mn))===ma?(zl(0),!1):!0}function vp(){if(Ze!==null){if(yt===Za)var e=Ze.return;else e=Ze,wu(),Cm(e),$i=null,yc=0,e=Ze;for(;e!==null;)ov(e.alternate,e),e=e.return;Ze=null}}function kr(e,t){(e&127)!==0&&(Or=t),(e&4194048)!==0&&(lo=t),(e&62914560)!==0&&(Zx=t),(e&2080374784)!==0&&(Jx=t)}function hi(e,t){kt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",rt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",rt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",rt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",rt,"primary-light"));var a=da;if(da=Jt(),Qe!==0&&0<a){if(Qn(Qe),At===Jd||At===Ko)Ob(a,da,t,Bt);else{var n=da,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,lt,rt,i)):console.timeStamp(d,a,n,lt,rt,i)}}kr(Qe,da)}if(a=Bt,Bt=null,(t&127)!==0){Bt=rc,r=0<=As&&As<Or?Or:As,n=0<=Ar&&Ar<Or?Or:Ar,i=0<=n?n:0<=r?r:da,0<=Vd?(Qn(2),Ab(Vd,i,t,a)):Ld&127,a=r;var p=n,b=ic,N=0<Li,A=Qo===oc,M=Qo===Md;if(r=da,n=rc,i=Oh,d=Ah,kt){if(lt="Blocking",0<a?a>r&&(a=r):a=r,0<p?p>a&&(p=a):p=a,b!==null&&a>p){var C=N?"secondary-light":"warning";n?n.run(console.timeStamp.bind(console,N?"Consecutive":"Event: "+b,p,a,lt,rt,C)):console.timeStamp(N?"Consecutive":"Event: "+b,p,a,lt,rt,C)}r>a&&(p=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=M?"Promise Resolved":A?"Cascading Update":5<r-a?"Update Blocked":"Update",M=[],d!=null&&M.push(["Component name",d]),i!=null&&M.push(["Method name",i]),a={start:a,end:r,detail:{devtools:{properties:M,track:lt,trackGroup:rt,color:p}}},n?n.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}As=-1.1,Qo=0,Ah=Oh=null,Vd=-1.1,Li=Ar,Ar=-1.1,Or=Jt()}if((t&4194048)!==0&&(Bt=lc,r=0<=co&&co<lo?lo:co,a=0<=Tn&&Tn<lo?lo:Tn,n=0<=Zo&&Zo<lo?lo:Zo,i=0<=n?n:0<=a?a:da,0<=zd?(Qn(256),Ab(zd,i,t,Bt)):Ld&4194048,M=n,p=Mr,b=0<Jo,N=Mh===Md,i=da,n=lc,d=Xx,A=Qx,kt&&(lt="Transition",0<a?a>i&&(a=i):a=i,0<r?r>a&&(r=a):r=a,0<M?M>r&&(M=r):M=r,r>M&&p!==null&&(C=b?"secondary-light":"warning",n?n.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+p,M,r,lt,rt,C)):console.timeStamp(b?"Consecutive":"Event: "+p,M,r,lt,rt,C)),a>r&&(n?n.run(console.timeStamp.bind(console,"Action",r,a,lt,rt,"primary-dark")):console.timeStamp("Action",r,a,lt,rt,"primary-dark")),i>a&&(r=N?"Promise Resolved":5<i-a?"Update Blocked":"Update",M=[],A!=null&&M.push(["Component name",A]),d!=null&&M.push(["Method name",d]),a={start:a,end:i,detail:{devtools:{properties:M,track:lt,trackGroup:rt,color:"primary-light"}}},n?n.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),Tn=co=-1.1,Mh=0,zd=-1.1,Jo=Zo,Zo=-1.1,lo=Jt()),(t&62914560)!==0&&(Ld&62914560)!==0&&(Qn(4194304),am(Zx,da)),(t&2080374784)!==0&&(Ld&2080374784)!==0&&(Qn(268435456),am(Jx,da)),a=e.timeoutHandle,a!==Jr&&(e.timeoutHandle=Jr,OR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),as=0,vp(),Nt=e,Ze=a=Xs(e.current,null),Qe=t,yt=Za,pn=null,Wo=!1,Ji=vn(e,t),eg=!1,At=ho,Ir=Ja=tg=tr=er=0,Ba=kc=null,ef=!1,(t&8)!==0&&(t|=t&32),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=t;0<n;)r=31-Oa(n),i=1<<r,t|=e[r],n&=~i;return Vs=t,yu(),e=$x(),1e3<e-Bx&&(F.recentlyCreatedOwnerStacks=0,Bx=e),Wn.discardPendingWarnings(),a}function Mv(e,t){$e=null,F.H=Sc,F.getCurrentStack=null,ks=!1,cn=null,t===Bi||t===Yd?(t=ay(),yt=Rc):t===Hh?(t=ay(),yt=FN):yt=t===Zh?Wh:t!==null&&typeof t=="object"&&typeof t.then=="function"?_c:Kd,pn=t;var a=Ze;a===null?(At=Dc,Qu(e,tn(t,e.current))):a.mode&Fe&&bm(a)}function Vv(){var e=dn.current;return e===null?!0:(Qe&4194048)===Qe?jn===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?e===jn:!1}function zv(){var e=F.H;return F.H=Sc,e===null?Sc:e}function Lv(){var e=F.A;return F.A=vR,e}function ad(e){Bt===null&&(Bt=e._debugTask==null?null:e._debugTask)}function nd(){At=Ko,Wo||(Qe&4194048)!==Qe&&dn.current!==null||(Ji=!0),(er&134217727)===0&&(tr&134217727)===0||Nt===null||Mo(Nt,Qe,Ja,!1)}function xp(e,t,a){var n=ut;ut|=sa;var r=zv(),i=Lv();if(Nt!==e||Qe!==t){if(Cs){var d=e.memoizedUpdaters;0<d.size&&(Vl(e,Qe),d.clear()),Na(e,t)}Uc=null,hi(e,t)}t=!1,d=At;e:do try{if(yt!==Za&&Ze!==null){var p=Ze,b=pn;switch(yt){case Wh:vp(),d=Pd;break e;case Rc:case qr:case Gr:case _c:dn.current===null&&(t=!0);var N=yt;if(yt=Za,pn=null,gi(e,p,b,N),a&&Ji){d=ho;break e}break;default:N=yt,yt=Za,pn=null,gi(e,p,b,N)}}Hv(),d=At;break}catch(A){Mv(e,A)}while(!0);return t&&e.shellSuspendCounter++,wu(),ut=n,F.H=r,F.A=i,Ze===null&&(Nt=null,Qe=0,yu()),d}function Hv(){for(;Ze!==null;)Bv(Ze)}function W4(e,t){var a=ut;ut|=sa;var n=zv(),r=Lv();if(Nt!==e||Qe!==t){if(Cs){var i=e.memoizedUpdaters;0<i.size&&(Vl(e,Qe),i.clear()),Na(e,t)}Uc=null,af=ua()+ZN,hi(e,t)}else Ji=vn(e,t);e:do try{if(yt!==Za&&Ze!==null)t:switch(t=Ze,i=pn,yt){case Kd:yt=Za,pn=null,gi(e,t,i,Kd);break;case qr:case Gr:if(ey(i)){yt=Za,pn=null,$v(t);break}t=function(){yt!==qr&&yt!==Gr||Nt!==e||(yt=Wd),Es(e)},i.then(t,t);break e;case Rc:yt=Wd;break e;case FN:yt=Kh;break e;case Wd:ey(i)?(yt=Za,pn=null,$v(t)):(yt=Za,pn=null,gi(e,t,i,Wd));break;case Kh:var d=null;switch(Ze.tag){case 26:d=Ze.memoizedState;case 5:case 27:var p=Ze;if(d?O0(d):p.stateNode.complete){yt=Za,pn=null;var b=p.sibling;if(b!==null)Ze=b;else{var N=p.return;N!==null?(Ze=N,sd(N)):Ze=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}yt=Za,pn=null,gi(e,t,i,Kh);break;case _c:yt=Za,pn=null,gi(e,t,i,_c);break;case Wh:vp(),At=Pd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}F.actQueue!==null?Hv():eE();break}catch(A){Mv(e,A)}while(!0);return wu(),F.H=n,F.A=r,ut=a,Ze!==null?ho:(Nt=null,Qe=0,yu(),At)}function eE(){for(;Ze!==null&&!WE();)Bv(Ze)}function Bv(e){var t=e.alternate;(e.mode&Fe)!==ze?(gm(e),t=Ne(e,up,t,e,Vs),bm(e)):t=Ne(e,up,t,e,Vs),e.memoizedProps=e.pendingProps,t===null?sd(e):Ze=t}function $v(e){var t=Ne(e,tE,e);e.memoizedProps=e.pendingProps,t===null?sd(e):Ze=t}function tE(e){var t=e.alternate,a=(e.mode&Fe)!==ze;switch(a&&gm(e),e.tag){case 15:case 0:t=Ky(t,e,e.pendingProps,e.type,void 0,Qe);break;case 11:t=Ky(t,e,e.pendingProps,e.type.render,e.ref,Qe);break;case 5:Cm(e);default:ov(t,e),e=Ze=Bb(e,Vs),t=up(t,e,Vs)}return a&&bm(e),t}function gi(e,t,a,n){wu(),Cm(t),$i=null,yc=0;var r=t.return;try{if(H4(e,r,t,a,Qe)){At=Dc,Qu(e,tn(a,e.current)),Ze=null;return}}catch(i){if(r!==null)throw Ze=r,i;At=Dc,Qu(e,tn(a,e.current)),Ze=null;return}t.flags&32768?(nt||n===Kd?e=!0:Ji||(Qe&536870912)!==0?e=!1:(Wo=e=!0,(n===qr||n===Gr||n===Rc||n===_c)&&(n=dn.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=Ne(t,Y4,a,t,Vs),(t.mode&Fe)!==ze&&Zb(t),a!==null){Ze=a;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);At===ho&&(At=IN)}function Yv(e,t){do{var a=q4(e.alternate,e);if(a!==null){a.flags&=32767,Ze=a;return}if((e.mode&Fe)!==ze){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)){Ze=e;return}Ze=e=a}while(e!==null);At=Pd,Ze=null}function Np(e,t,a,n,r,i,d,p,b,N,A,M,C,q){e.cancelPendingCommit=null;do Ml();while(ta!==nr);if(Wn.flushLegacyContextWarning(),Wn.flushPendingUnsafeLifecycleWarnings(),(ut&(sa|mn))!==ma)throw Error("Should not already be working.");if(Qn(a),N===Yr?tm(C,q,a,Bt):n!==null?R4(C,q,a,n,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Bt):D4(C,q,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|=kh,qa(e,a,i,d,p,b),e===Nt&&(Ze=Nt=null,Qe=0),Pi=t,sr=e,as=a,sg=i,rg=r,t1=n,og=q,a1=M,ns=nf,n1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,rE(Si,function(){return Mc=window.event,ns===nf&&(ns=ng),Xv(),null})):(e.callbackNode=null,e.callbackPriority=0),io=null,Xo=Jt(),M!==null&&_4(q,Xo,M,Bt),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=F.T,F.T=null,r=gt.p,gt.p=En,d=ut,ut|=mn;try{Z4(e,t,a)}finally{ut=d,gt.p=r,F.T=n}}ta=PN,qv(),Gv(),Iv()}}function qv(){if(ta===PN){ta=nr;var e=sr,t=Pi,a=as,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=F.T,F.T=null;var r=gt.p;gt.p=En;var i=ut;ut|=mn;try{Qi=a,Zi=e,_u(),xv(t,e),Zi=Qi=null,a=bg;var d=Cb(e.containerInfo),p=a.focusedElem,b=a.selectionRange;if(d!==p&&p&&p.ownerDocument&&Ub(p.ownerDocument.documentElement,p)){if(b!==null&&Kf(p)){var N=b.start,A=b.end;if(A===void 0&&(A=N),"selectionStart"in p)p.selectionStart=N,p.selectionEnd=Math.min(A,p.value.length);else{var M=p.ownerDocument||document,C=M&&M.defaultView||window;if(C.getSelection){var q=C.getSelection(),pe=p.textContent.length,Se=Math.min(b.start,pe),wt=b.end===void 0?Se:Math.min(b.end,pe);!q.extend&&Se>wt&&(d=wt,wt=Se,Se=d);var it=kb(p,Se),k=kb(p,wt);if(it&&k&&(q.rangeCount!==1||q.anchorNode!==it.node||q.anchorOffset!==it.offset||q.focusNode!==k.node||q.focusOffset!==k.offset)){var T=M.createRange();T.setStart(it.node,it.offset),q.removeAllRanges(),Se>wt?(q.addRange(T),q.extend(k.node,k.offset)):(T.setEnd(k.node,k.offset),q.addRange(T))}}}}for(M=[],q=p;q=q.parentNode;)q.nodeType===1&&M.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<M.length;p++){var O=M[p];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}xf=!!gg,bg=gg=null}finally{ut=i,gt.p=r,F.T=n}}e.current=t,ta=KN}}function Gv(){if(ta===KN){ta=nr;var e=n1;if(e!==null){Xo=Jt();var t=ro,a=Xo;!kt||a<=t||console.timeStamp(e,t,a,lt,rt,"secondary-light")}e=sr,t=Pi,a=as;var n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=F.T,F.T=null;var r=gt.p;gt.p=En;var i=ut;ut|=mn;try{Qi=a,Zi=e,_u(),hv(e,t.alternate,t),Zi=Qi=null}finally{ut=i,gt.p=r,F.T=n}}e=og,t=a1,ro=Jt(),e=t===null?e:Xo,t=ro,a=ns===ag,n=Bt,io!==null?Mb(e,t,io,!1,n):!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,lt,rt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,lt,rt,a?"error":"secondary-dark")),ta=WN}}function Iv(){if(ta===e1||ta===WN){if(ta===e1){var e=ro;ro=Jt();var t=ro,a=ns===ag;!kt||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,lt,rt,a?" error":"secondary-light"),ns!==ag&&(ns=JN)}ta=nr,eD(),e=sr;var n=Pi;t=as,a=t1;var r=n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;r?ta=sf:(ta=nr,Pi=sr=null,Fv(e,e.pendingLanes),Fr=0,Tc=null);var i=e.pendingLanes;if(i===0&&(ar=null),r||Pv(e),i=Ys(t),n=n.stateNode,Ea&&typeof Ea.onCommitFiberRoot=="function")try{var d=(n.current.flags&128)===128;switch(i){case En:var p=rh;break;case Ts:p=ih;break;case to:p=Si;break;case Sd:p=lh;break;default:p=Si}Ea.onCommitFiberRoot(wi,n,p,d)}catch(M){Us||(Us=!0,console.error("React instrumentation encountered an error: %o",M))}if(Cs&&e.memoizedUpdaters.clear(),P4(),a!==null){d=F.T,p=gt.p,gt.p=En,F.T=null;try{var b=e.onRecoverableError;for(n=0;n<a.length;n++){var N=a[n],A=aE(N.stack);Ne(N.source,b,N.value,A)}}finally{F.T=d,gt.p=p}}(as&3)!==0&&Ml(),Es(e),i=e.pendingLanes,(t&261930)!==0&&(i&42)!==0?(Bd=!0,e===ig?Cc++:(Cc=0,ig=e)):Cc=0,r||kr(t,ro),zl(0)}}function aE(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 Ml(){return qv(),Gv(),Iv(),Xv()}function Xv(){if(ta!==sf)return!1;var e=sr,t=sg;sg=0;var a=Ys(as),n=to>a?to:a;a=F.T;var r=gt.p;try{gt.p=n,F.T=null;var i=rg;rg=null,n=sr;var d=as;if(ta=nr,Pi=sr=null,as=0,(ut&(sa|mn))!==ma)throw Error("Cannot flush passive effects while already rendering.");Qn(d),lg=!0,of=!1;var p=0;if(io=null,p=ua(),ns===JN)am(ro,p,fR);else{var b=ro,N=p,A=ns===ng;!kt||N<=b||(Bt?Bt.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",b,N,lt,rt,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",b,N,lt,rt,"secondary-light"))}b=ut,ut|=mn;var M=n.current;_u(),kv(M);var C=n.current;M=og,_u(),Ev(n,C,d,i,M),Pv(n),ut=b;var q=ua();if(C=p,M=Bt,io!==null?Mb(C,q,io,!0,M):!kt||q<=C||(M?M.run(console.timeStamp.bind(console,"Remaining Effects",C,q,lt,rt,"secondary-dark")):console.timeStamp("Remaining Effects",C,q,lt,rt,"secondary-dark")),kr(d,q),zl(0,!1),of?n===Tc?Fr++:(Fr=0,Tc=n):Fr=0,of=lg=!1,Ea&&typeof Ea.onPostCommitFiberRoot=="function")try{Ea.onPostCommitFiberRoot(wi,n)}catch(Se){Us||(Us=!0,console.error("React instrumentation encountered an error: %o",Se))}var pe=n.current.stateNode;return pe.effectDuration=0,pe.passiveEffectDuration=0,!0}finally{gt.p=r,F.T=a,Fv(e,t)}}function Qv(e,t,a){t=tn(a,t),Jb(t),t=Wm(e.stateNode,t,2),e=To(e,t,2),e!==null&&(xn(e,2),Es(e))}function ht(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=tn(a,e),Jb(e),a=ep(2),n=To(t,a,2),n!==null&&(tp(a,n,t,e),xn(n,2),Es(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 NR;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=nE.bind(null,e,t,a),Cs&&Vl(e,a),t.then(n,n))}function nE(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>As&&(Or=As=Jt(),rc=Ad("Promise Resolved"),Qo=Md):(a&4194048)!==0&&0>Tn&&(lo=Tn=Jt(),lc=Ad("Promise Resolved"),Mh=Md),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`),Nt===e&&(Qe&a)===a&&(At===Ko||At===Jd&&(Qe&62914560)===Qe&&ua()-tf<QN?(ut&sa)===ma&&hi(e,0):tg|=a,Ir===Qe&&(Ir=0)),Es(e)}function Zv(e,t){t===0&&(t=Vt()),e=wa(e,t),e!==null&&(xn(e,t),Es(e))}function sE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Zv(e,a)}function oE(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&&Ne(r,Jv,n,r):wp(n,r,i):r.memoizedState===null&&(i&&r.flags&8192?Ne(r,Jv,n,r):r.subtreeFlags&67108864&&Ne(r,wp,n,r,i)),t=t.sibling}}function Jv(e,t){re(!0);try{Sv(t),Uv(t),wv(e,t.alternate,t,!1),Dv(e,t,0,null,!1,0)}finally{re(!1)}}function Pv(e){var t=!0;e.current.mode&(Da|Kn)||(t=!1),wp(e,e.current,t)}function Kv(e){if((ut&sa)===ma){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=$(e)||"ReactComponent",rf!==null){if(rf.has(t))return;rf.add(t)}else rf=new Set([t]);Ne(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 Vl(e,t){Cs&&e.memoizedUpdaters.forEach(function(a){$s(e,a,t)})}function rE(e,t){var a=F.actQueue;return a!==null?(a.push(t),ER):oh(e,t)}function iE(e){Tv()&&F.actQueue===null&&Ne(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`,$(e))})}function Es(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-Oa(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=Qe,i=Yn(n,n===Nt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==Jr),(i&3)===0||vn(n,i)||(a=!0,t0(n,i));n=n.next}while(a);dg=!1}}function lE(){Mc=window.event,Ep()}function Ep(){cf=ug=cg=!1;var e=0;or!==0&&hE()&&(e=or);for(var t=ua(),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}ta!==nr&&ta!==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-Oa(i),p=1<<d,b=r[d];b===-1?((p&a)===0||(p&n)!==0)&&(r[d]=Ya(p,t)):b<=t&&(e.expiredLanes|=p),i&=~p}if(t=Nt,a=Qe,a=Yn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Jr),n=e.callbackNode,a===0||e===t&&(yt===qr||yt===Gr)||e.cancelPendingCommit!==null)return n!==null&&Dp(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||vn(e,a)){if(t=a&-a,t!==e.callbackPriority||F.actQueue!==null&&n!==fg)Dp(n);else return t;switch(Ys(a)){case En:case Ts:a=ih;break;case to: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,Mc=window.event,ta!==nr&&ta!==sf)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ns===nf&&(ns=ng),Ml()&&e.callbackNode!==a)return null;var n=Qe;return n=Yn(e,e===Nt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Jr),n===0?null:(Ov(e,n,t),Wv(e,ua()),e.callbackNode!=null&&e.callbackNode===a?e0.bind(null,e):null)}function t0(e,t){if(Ml())return null;Hd=Bd,Bd=!1,Ov(e,t,!0)}function Dp(e){e!==fg&&e!==null&&KE(e)}function a0(){F.actQueue!==null&&F.actQueue.push(function(){return Ep(),null}),AR(function(){(ut&(sa|mn))!==ma?oh(rh,lE):Ep()})}function Rp(){if(or===0){var e=Vr;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:(dt(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 cE(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var i=n0((r[Aa]||null).action),d=n.submitter;d&&(t=(t=d[Aa]||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 b=d?s0(r,d):new FormData(r),N={pending:!0,data:b,method:r.method,action:i};Object.freeze(N),Fm(a,N,null,b)}}else typeof i=="function"&&(p.preventDefault(),b=d?s0(r,d):new FormData(r),N={pending:!0,data:b,method:r.method,action:i},Object.freeze(N),Fm(a,N,i,b))},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],b=p.instance,N=p.currentTarget;if(p=p.listener,b!==r&&i.isPropagationStopped())break e;b!==null?Ne(b,od,i,p,N):od(i,p,N),r=b}else for(d=0;d<n.length;d++){if(p=n[d],b=p.instance,N=p.currentTarget,p=p.listener,b!==r&&i.isPropagationStopped())break e;b!==null?Ne(b,od,i,p,N):od(i,p,N),r=b}}}}function ot(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 kp(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 En:var r=qE;break;case Ts:r=GE;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 Up(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 b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;p!==null;){if(d=ne(p),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){n=i=d;continue e}p=p.parentNode}}n=n.return}bb(function(){var N=i,A=Jf(a),M=[];e:{var C=Hx.get(e);if(C!==void 0){var q=_d,pe=e;switch(e){case"keypress":if(mu(a)===0)break e;case"keydown":case"keyup":q=HD;break;case"focusin":pe="focus",q=yh;break;case"focusout":pe="blur",q=yh;break;case"beforeblur":case"afterblur":q=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":q=Dx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=_D;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=YD;break;case Mx:case Vx:case zx:q=CD;break;case Lx:q=GD;break;case"scroll":case"scrollend":q=DD;break;case"wheel":q=FD;break;case"copy":case"cut":case"paste":q=jD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=_x;break;case"toggle":case"beforetoggle":q=QD}var Se=(t&4)!==0,wt=!Se&&(e==="scroll"||e==="scrollend"),it=Se?C!==null?C+"Capture":null:C;Se=[];for(var k=N,T;k!==null;){var O=k;if(T=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||T===null||it===null||(O=gl(k,it),O!=null&&Se.push(Ll(k,O,T))),wt)break;k=k.return}0<Se.length&&(C=new q(C,pe,null,a,A),M.push({event:C,listeners:Se}))}}if((t&7)===0){e:{if(C=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",C&&a!==Zl&&(pe=a.relatedTarget||a.fromElement)&&(ne(pe)||pe[$o]))break e;if((q||C)&&(C=A.window===A?A:(C=A.ownerDocument)?C.defaultView||C.parentWindow:window,q?(pe=a.relatedTarget||a.toElement,q=N,pe=pe?ne(pe):null,pe!==null&&(wt=Q(pe),Se=pe.tag,pe!==wt||Se!==5&&Se!==27&&Se!==6)&&(pe=null)):(q=null,pe=N),q!==pe)){if(Se=Dx,O="onMouseLeave",it="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(Se=_x,O="onPointerLeave",it="onPointerEnter",k="pointer"),wt=q==null?C:we(q),T=pe==null?C:we(pe),C=new Se(O,k+"leave",q,a,A),C.target=wt,C.relatedTarget=T,O=null,ne(A)===N&&(Se=new Se(it,k+"enter",pe,a,A),Se.target=T,Se.relatedTarget=wt,O=Se),wt=O,q&&pe)t:{for(Se=uE,it=q,k=pe,T=0,O=it;O;O=Se(O))T++;O=0;for(var K=k;K;K=Se(K))O++;for(;0<T-O;)it=Se(it),T--;for(;0<O-T;)k=Se(k),O--;for(;T--;){if(it===k||k!==null&&it===k.alternate){Se=it;break t}it=Se(it),k=Se(k)}Se=null}else Se=null;q!==null&&i0(M,C,q,Se,!1),pe!==null&&wt!==null&&i0(M,wt,pe,Se,!0)}}e:{if(C=N?we(N):window,q=C.nodeName&&C.nodeName.toLowerCase(),q==="select"||q==="input"&&C.type==="file")var be=Eb;else if(Sb(C))if(Ox)be=S4;else{be=x4;var Ye=v4}else q=C.nodeName,!q||q.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?N&&pl(N.elementType)&&(be=Eb):be=N4;if(be&&(be=be(e,N))){wb(M,be,a,A);break e}Ye&&Ye(e,C,N),e==="focusout"&&N&&C.type==="number"&&N.memoizedProps.value!=null&&Ae(C,"number",C.value)}switch(Ye=N?we(N):window,e){case"focusin":(Sb(Ye)||Ye.contentEditable==="true")&&(Ci=Ye,xh=N,ac=null);break;case"focusout":ac=xh=Ci=null;break;case"mousedown":Nh=!0;break;case"contextmenu":case"mouseup":case"dragend":Nh=!1,Tb(M,a,A);break;case"selectionchange":if(KD)break;case"keydown":case"keyup":Tb(M,a,A)}var je;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 Ui?xb(e,a)&&(_e="onCompositionEnd"):e==="keydown"&&a.keyCode===kx&&(_e="onCompositionStart");_e&&(Ux&&a.locale!=="ko"&&(Ui||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Ui&&(je=yb()):(Yo=A,hh="value"in Yo?Yo.value:Yo.textContent,Ui=!0)),Ye=rd(N,_e),0<Ye.length&&(_e=new Rx(_e,e,null,a,A),M.push({event:_e,listeners:Ye}),je?_e.data=je:(je=Nb(a),je!==null&&(_e.data=je)))),(je=JD?h4(e,a):g4(e,a))&&(_e=rd(N,"onBeforeInput"),0<_e.length&&(Ye=new AD("onBeforeInput","beforeinput",null,a,A),M.push({event:Ye,listeners:_e}),Ye.data=je)),cE(M,e,N,a,A)}o0(M,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 uE(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,b=p.alternate,N=p.stateNode;if(p=p.tag,b!==null&&b===n)break;p!==5&&p!==26&&p!==27||N===null||(b=N,r?(N=gl(a,i),N!=null&&d.unshift(Ll(a,N,b))):r||(N=gl(a,i),N!=null&&d.push(Ll(a,N,b)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}function Cp(e,t){d4(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:Ur,possibleRegistrationNames:uh};pl(e)||typeof t.is=="string"||m4(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 ca(e,t,a,n){t!==a&&(a=Vo(a),Vo(t)!==a&&(n[e]=t))}function dE(e,t,a){t.forEach(function(n){a[u0(n)]=n==="style"?jp(e):e.getAttribute(n)})}function Ds(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 Vo(e){return xa(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.",Et(e)),Wa(e)),(typeof e=="string"?e:""+e).replace(DR,`
|
|
181
|
+
`).replace(RR,"")}function c0(e,t){return t=Vo(t),Vo(e)===t}function vt(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}dt(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"&&vt(e,t,"name",r.name,r,null),vt(e,t,"formEncType",r.formEncType,r,null),vt(e,t,"formMethod",r.formMethod,r,null),vt(e,t,"formTarget",r.formTarget,r,null)):(vt(e,t,"encType",r.encType,r,null),vt(e,t,"method",r.method,r,null),vt(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}dt(n,a),n=hl(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(typeof n!="function"&&Ds(a,n),e.onclick=Fs);break;case"onScroll":n!=null&&(typeof n!="function"&&Ds(a,n),ot("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Ds(a,n),ot("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}dt(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"?(dt(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"?(dt(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?(dt(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):(dt(n,a),e.setAttribute(a,n));break;case"popover":ot("beforetoggle",e),ot("toggle",e),Gs(e,"popover",n);break;case"xlinkActuate":Gn(e,Xr,"xlink:actuate",n);break;case"xlinkArcrole":Gn(e,Xr,"xlink:arcrole",n);break;case"xlinkRole":Gn(e,Xr,"xlink:role",n);break;case"xlinkShow":Gn(e,Xr,"xlink:show",n);break;case"xlinkTitle":Gn(e,Xr,"xlink:title",n);break;case"xlinkType":Gn(e,Xr,"xlink:type",n);break;case"xmlBase":Gn(e,pg,"xml:base",n);break;case"xmlLang":Gn(e,pg,"xml:lang",n);break;case"xmlSpace":Gn(e,pg,"xml:space",n);break;case"is":i!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Gs(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),Gs(e,a,n)):Ur.hasOwnProperty(a)&&n!=null&&typeof n!="function"&&Ds(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"&&Ds(a,n),ot("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Ds(a,n),ot("scrollend",e));break;case"onClick":n!=null&&(typeof n!="function"&&Ds(a,n),e.onclick=Fs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ur.hasOwnProperty(a))n!=null&&typeof n!="function"&&Ds(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[Aa]||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,""):Gs(e,a,n)}}}function ga(e,t,a){switch(Cp(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ot("error",e),ot("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:vt(e,t,i,d,a,null)}}r&&vt(e,t,"srcSet",a.srcSet,a,null),n&&vt(e,t,"src",a.src,a,null);return;case"input":ra("input",a),ot("invalid",e);var p=i=d=r=null,b=null,N=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":b=A;break;case"defaultChecked":N=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:vt(e,t,n,A,a,null)}}Te(e,a),Me(e,i,p,b,N,d,r,!1);return;case"select":ra("select",a),ot("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:vt(e,t,r,p,a,null)}Rt(e,a),t=i,a=d,e.multiple=!!n,t!=null?We(e,!!n,t,!1):a!=null&&We(e,!!n,a,!0);return;case"textarea":ra("textarea",a),ot("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:vt(e,t,d,p,a,null)}Yt(e,a),pt(e,n,r,i);return;case"option":Ce(e,a);for(b in a)a.hasOwnProperty(b)&&(n=a[b],n!=null)&&(b==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":vt(e,t,b,n,a,null));return;case"dialog":ot("beforetoggle",e),ot("toggle",e),ot("cancel",e),ot("close",e);break;case"iframe":case"object":ot("load",e);break;case"video":case"audio":for(n=0;n<jc.length;n++)ot(jc[n],e);break;case"image":ot("error",e),ot("load",e);break;case"details":ot("toggle",e);break;case"embed":case"source":case"link":ot("error",e),ot("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(N in a)if(a.hasOwnProperty(N)&&(n=a[N],n!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:vt(e,t,N,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&&vt(e,t,p,n,a,null))}function fE(e,t,a,n){switch(Cp(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,b=null,N=null,A=null;for(q in a){var M=a[q];if(a.hasOwnProperty(q)&&M!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":b=M;default:n.hasOwnProperty(q)||vt(e,t,q,null,n,M)}}for(var C in n){var q=n[C];if(M=a[C],n.hasOwnProperty(C)&&(q!=null||M!=null))switch(C){case"type":i=q;break;case"name":r=q;break;case"checked":N=q;break;case"defaultChecked":A=q;break;case"value":d=q;break;case"defaultValue":p=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:q!==M&&vt(e,t,C,q,n,M)}}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),Ee(e,d,p,b,N,A,i,r);return;case"select":q=d=p=C=null;for(i in a)if(b=a[i],a.hasOwnProperty(i)&&b!=null)switch(i){case"value":break;case"multiple":q=b;default:n.hasOwnProperty(i)||vt(e,t,i,null,n,b)}for(r in n)if(i=n[r],b=a[r],n.hasOwnProperty(r)&&(i!=null||b!=null))switch(r){case"value":C=i;break;case"defaultValue":p=i;break;case"multiple":d=i;default:i!==b&&vt(e,t,r,i,n,b)}n=p,t=d,a=q,C!=null?We(e,!!t,C,!1):!!a!=!!t&&(n!=null?We(e,!!t,n,!0):We(e,!!t,t?[]:"",!1));return;case"textarea":q=C=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:vt(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":C=r;break;case"defaultValue":q=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==i&&vt(e,t,d,r,n,i)}ia(e,C,q);return;case"option":for(var pe in a)C=a[pe],a.hasOwnProperty(pe)&&C!=null&&!n.hasOwnProperty(pe)&&(pe==="selected"?e.selected=!1:vt(e,t,pe,null,n,C));for(b in n)C=n[b],q=a[b],n.hasOwnProperty(b)&&C!==q&&(C!=null||q!=null)&&(b==="selected"?e.selected=C&&typeof C!="function"&&typeof C!="symbol":vt(e,t,b,C,n,q));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 Se in a)C=a[Se],a.hasOwnProperty(Se)&&C!=null&&!n.hasOwnProperty(Se)&&vt(e,t,Se,null,n,C);for(N in n)if(C=n[N],q=a[N],n.hasOwnProperty(N)&&C!==q&&(C!=null||q!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:vt(e,t,N,C,n,q)}return;default:if(pl(t)){for(var wt in a)C=a[wt],a.hasOwnProperty(wt)&&C!==void 0&&!n.hasOwnProperty(wt)&&Tp(e,t,wt,void 0,n,C);for(A in n)C=n[A],q=a[A],!n.hasOwnProperty(A)||C===q||C===void 0&&q===void 0||Tp(e,t,A,C,n,q);return}}for(var it in a)C=a[it],a.hasOwnProperty(it)&&C!=null&&!n.hasOwnProperty(it)&&vt(e,t,it,null,n,C);for(M in n)C=n[M],q=a[M],!n.hasOwnProperty(M)||C===q||C==null&&q==null||vt(e,t,M,C,n,q)}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?(Dt(d,i),n+=r+i+":"+(""+d).trim()):typeof d!="number"||d===0||Nx.has(i)?(Dt(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=Vo(n),Vo(t)!==n&&(a.style=jp(e)))}}function wn(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(dt(n,t),e===""+n)return}ca(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}ca(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(dt(n,a),e===""+n)return}ca(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)&&(dt(n,t),e===""+n))return}ca(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(dt(n,t),a=hl(""+n),e===a)return}ca(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 b in a)if(a.hasOwnProperty(b)){var N=a[b];if(N!=null){if(Ur.hasOwnProperty(b))typeof N!="function"&&Ds(b,N);else if(a.suppressHydrationWarning!==!0)switch(b){case"children":typeof N!="string"&&typeof N!="number"||ca("children",e.textContent,N,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":d=e.innerHTML,N=N?N.__html:void 0,N!=null&&(N=l0(e,N),ca(b,d,N,r));continue;case"style":i.delete(b),d0(e,N,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":i.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":i.delete("class"),d=qs(e,"class",N),ca("className",d,N,r);continue;default:n.context===go&&t!=="svg"&&t!=="math"?i.delete(b.toLowerCase()):i.delete(b),d=qs(e,b,N),ca(b,d,N,r)}}}}else for(N in a)if(a.hasOwnProperty(N)&&(b=a[N],b!=null)){if(Ur.hasOwnProperty(N))typeof b!="function"&&Ds(N,b);else if(a.suppressHydrationWarning!==!0)switch(N){case"children":typeof b!="string"&&typeof b!="number"||ca("children",e.textContent,b,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,b=b?b.__html:void 0,b!=null&&(b=l0(e,b),d!==b&&(r[N]={__html:d}));continue;case"className":wn(e,N,"class",b,i,r);continue;case"tabIndex":wn(e,N,"tabindex",b,i,r);continue;case"style":i.delete(N),d0(e,b,r);continue;case"multiple":i.delete(N),ca(N,e.multiple,b,r);continue;case"muted":i.delete(N),ca(N,e.muted,b,r);continue;case"autoFocus":i.delete("autofocus"),ca(N,e.autofocus,b,r);continue;case"data":if(t!=="object"){i.delete(N),d=e.getAttribute("data"),ca(N,d,b,r);continue}case"src":case"href":if(!(b!==""||t==="a"&&N==="href"||t==="object"&&N==="data")){console.error(N==="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.',N,N);continue}Ap(e,N,N,b,i,r);continue;case"action":case"formAction":if(d=e.getAttribute(N),typeof b=="function"){i.delete(N.toLowerCase()),N==="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===_R){i.delete(N.toLowerCase()),ca(N,"function",b,r);continue}Ap(e,N,N.toLowerCase(),b,i,r);continue;case"xlinkHref":Ap(e,N,"xlink:href",b,i,r);continue;case"contentEditable":Op(e,N,"contenteditable",b,i,r);continue;case"spellCheck":Op(e,N,"spellcheck",b,i,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Op(e,N,N,b,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,N,N.toLowerCase(),b,i,r);continue;case"capture":case"download":e:{p=e;var A=d=N,M=r;if(i.delete(A),p=p.getAttribute(A),p===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&p==="")break e;break;default:if(dt(b,d),p===""+b)break e}ca(d,p,b,M)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,A=d=N,M=r,i.delete(A),p=p.getAttribute(A),p===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(dt(b,d),p===""+b))break e}ca(d,p,b,M)}continue;case"rowSpan":m0(e,N,"rowspan",b,i,r);continue;case"start":m0(e,N,N,b,i,r);continue;case"xHeight":wn(e,N,"x-height",b,i,r);continue;case"xlinkActuate":wn(e,N,"xlink:actuate",b,i,r);continue;case"xlinkArcrole":wn(e,N,"xlink:arcrole",b,i,r);continue;case"xlinkRole":wn(e,N,"xlink:role",b,i,r);continue;case"xlinkShow":wn(e,N,"xlink:show",b,i,r);continue;case"xlinkTitle":wn(e,N,"xlink:title",b,i,r);continue;case"xlinkType":wn(e,N,"xlink:type",b,i,r);continue;case"xmlBase":wn(e,N,"xml:base",b,i,r);continue;case"xmlLang":wn(e,N,"xml:lang",b,i,r);continue;case"xmlSpace":wn(e,N,"xml:space",b,i,r);continue;case"inert":b!==""||pf[N]||(pf[N]=!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.",N)),f0(e,N,N,b,i,r);continue;default:if(!(2<N.length)||N[0]!=="o"&&N[0]!=="O"||N[1]!=="n"&&N[1]!=="N"){p=hb(N),d=!1,n.context===go&&t!=="svg"&&t!=="math"?i.delete(p.toLowerCase()):(A=N.toLowerCase(),A=Dd.hasOwnProperty(A)&&Dd[A]||null,A!==null&&A!==N&&(d=!0,i.delete(A)),i.delete(p));e:if(A=e,M=p,p=b,Ca(M))if(A.hasAttribute(M))A=A.getAttribute(M),dt(p,M),p=A===""+p?p:A;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(A=M.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;d||ca(N,p,b,r)}}}return 0<i.size&&a.suppressHydrationWarning!==!0&&dE(e,i,r),Object.keys(r).length===0?null:r}function mE(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 pE(){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 b=a[n],N=b.startTime;if(N>p)break;var A=b.transferSize,M=b.initiatorType;A&&h0(M)&&(b=b.responseEnd,d+=A*(b<p?1:(p-N)/(b-N)))}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 go}}function b0(e,t){if(e===go)switch(t){case"svg":return tl;case"math":return gf;default:return go}return e===tl&&t==="foreignObject"?go:e}function Mp(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 hE(){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!==Mc?e.type:null}function Bl(){var e=window.event;return e&&e!==Mc?e.timeStamp:-1.1}function gE(e){setTimeout(function(){throw e})}function bE(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 yE(){}function vE(e,t,a,n){fE(e,t,a,n),e[Aa]=n}function y0(e){ml(e,"")}function xE(e,t,a){e.nodeValue=a}function v0(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Aa]||null;if(t!==null){var a=ue(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,Ne(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,Ne(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 NE(e,t){e.removeChild(t)}function SE(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===UR)$l(e.ownerDocument.documentElement);else if(a===TR){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===CR&&$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 wE(e){N0(e,!0)}function EE(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function DE(e){e.nodeValue=""}function RE(e){N0(e,!1)}function _E(e,t){t=t[jR],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function kE(e,t){e.nodeValue=t}function Vp(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":Vp(a),V(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function UE(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"){dt(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=rn(e.nextSibling),e===null)break}return null}function CE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=rn(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=rn(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 TE(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 rn(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[kR]!==!0?(e.nodeValue===t?e=null:(t=Vo(t),e=Vo(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 rn(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 jE(e){vi(e)}function OE(e){vi(e)}function AE(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 ME(e,t,a,n){if(!a[$o]&&ue(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]);ga(a,e,t),a[ba]=n,a[Aa]=t}function $l(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);V(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=xe(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"),ga(t,"link",e),ke(t),n.head.appendChild(t)))}}function k0(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:Pr,preload:null}},i.set(e,d),(i=r.querySelector(Yl(e)))&&!i._p&&(d.instance=i,d.state.loading=Vc|Mn),!Vn.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};Vn.set(e,p),i||VE(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+'"'):Pn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):Pn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):Pn.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="'+xe(e)+'"'}function Yl(e){return'link[rel="stylesheet"]['+e+"]"}function U0(e){return Pe({},e,{"data-precedence":e.precedence,precedence:null})}function VE(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=Vc:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=Vc}),t.addEventListener("error",function(){return n.loading|=h1}),ga(t,"link",a),ke(t),e.head.appendChild(t))}function yi(e){return'[src="'+xe(e)+'"]'}function ql(e){return"script[async]"+e}function C0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+xe(a.href)+'"]');if(n)return t.instance=n,ke(n),n;var r=Pe({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ke(n),ga(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|=Mn,t.instance=i,ke(i),i;n=U0(a),(r=Vn.get(r))&&Bp(n,r),i=(e.ownerDocument||e).createElement("link"),ke(i);var d=i;return d._p=new Promise(function(p,b){d.onload=p,d.onerror=b}),ga(i,"link",n),t.state.loading|=Mn,ud(i,a.precedence,e),t.instance=i;case"script":return i=yi(a.src),(r=e.querySelector(ql(i)))?(t.instance=r,ke(r),r):(n=a,(r=Vn.get(i))&&(n=Pe({},a),$p(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),ke(r),ga(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&Mn)===Pr&&(n=t.instance,t.state.loading|=Mn,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[ba]||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 zE(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=mE(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)===Pr)}function LE(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&Mn)===Pr){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|=Mn,a.instance=i,ke(i);return}i=t.ownerDocument||t,n=U0(n),(r=Vn.get(r))&&Bp(n,r),i=i.createElement("link"),ke(i);var d=i;d._p=new Promise(function(p,b){d.onload=p,d.onerror=b}),ga(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)===Pr&&(e.count++,a=dd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function HE(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()}},MR+t);0<e.imgBytes&&xg===0&&(xg=125*pE()*zR);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:VR)+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(BE,e),yf=null,dd.call(e))}function BE(e,t){if(!(t.state.loading&Mn)){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|=Mn}}function $E(e,t,a,n,r,i,d,p,b){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Jr,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=b,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,b,N,A,M){return e=new $E(e,t,a,d,b,N,A,M,p),t=iR,i===!0&&(t|=Da|Kn),t|=Fe,i=S(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 M0(e){return e?(e=Io,e):Io}function Yp(e,t,a,n,r,i){if(Ea&&typeof Ea.onScheduleFiberRoot=="function")try{Ea.onScheduleFiberRoot(wi,n,a)}catch(d){Us||(Us=!0,console.error("React instrumentation encountered an error: %o",d))}r=M0(r),n.context===null?n.context=r:n.pendingContext=r,ks&&cn!==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.`,$(cn)||"Unknown")),n=Co(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&&(ms(t,"root.render()",null),zt(a,e,t),wl(a,e,t))}function V0(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){V0(e,t),(e=e.alternate)&&V0(e,t)}function z0(e){if(e.tag===13||e.tag===31){var t=wa(e,67108864);t!==null&&zt(t,e,67108864),qp(e,67108864)}}function L0(e){if(e.tag===13||e.tag===31){var t=on(e);t=Nn(t);var a=wa(e,t);a!==null&&zt(a,e,t),qp(e,t)}}function YE(){return cn}function qE(e,t,a,n){var r=F.T;F.T=null;var i=gt.p;try{gt.p=En,Gp(e,t,a,n)}finally{gt.p=i,F.T=r}}function GE(e,t,a,n){var r=F.T;F.T=null;var i=gt.p;try{gt.p=Ts,Gp(e,t,a,n)}finally{gt.p=i,F.T=r}}function Gp(e,t,a,n){if(xf){var r=Ip(n);if(r===null)Up(e,t,n,Nf,a),B0(e,n);else if(IE(r,e,t,a,n))n.stopPropagation();else if(B0(e,n),t&4&&-1<HR.indexOf(e)){for(;r!==null;){var i=ue(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var d=Xt(i.pendingLanes);if(d!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;d;){var b=1<<31-Oa(d);p.entanglements[1]|=b,d&=~b}Es(i),(ut&(sa|mn))===ma&&(af=ua()+ZN,zl(0))}}break;case 31:case 13:p=wa(i,2),p!==null&&zt(p,i,2),pi(),qp(i,2)}if(i=Ip(n),i===null&&Up(e,t,n,Nf,a),i===r)break;r=i}r!==null&&n.stopPropagation()}else Up(e,t,n,null,a)}}function Ip(e){return e=Jf(e),Fp(e)}function Fp(e){if(Nf=null,e=ne(e),e!==null){var t=Q(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Z(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 En;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 Ts;case"message":switch(tD()){case rh:return En;case ih:return Ts;case Si:case aD:return to;case lh:return Sd;default:return to}default:return to}}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=ue(t),t!==null&&z0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function IE(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=Q(t);if(a!==null){if(t=a.tag,t===13){if(t=Z(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=ue(a),t!==null&&z0(t),e.blockedOn=a,!1;t.shift()}return!0}function Y0(e,t,a){md(e)&&a.delete(t)}function FE(){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,Qt.unstable_scheduleCallback(Qt.unstable_NormalPriority,FE)))}function q0(e){Sf!==e&&(Sf=e,Qt.unstable_scheduleCallback(Qt.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=ue(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(b){return pd(b,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[Aa]||null;if(typeof i=="function")d||q0(a);else if(d){var p=null;if(i&&i.hasAttribute("formAction")){if(r=i,d=i[Aa]||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 Qt=W_(),Qp=nu(),XE=tk(),Pe=Object.assign,QE=Symbol.for("react.element"),Rs=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"),Jp=Symbol.for("react.consumer"),_s=Symbol.for("react.context"),Il=Symbol.for("react.forward_ref"),Pp=Symbol.for("react.suspense"),Kp=Symbol.for("react.suspense_list"),bd=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),Wp=Symbol.for("react.activity"),ZE=Symbol.for("react.memo_cache_sentinel"),F0=Symbol.iterator,JE=Symbol.for("react.client.reference"),aa=Array.isArray,F=Qp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gt=XE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,PE=Object.freeze({pending:!1,data:null,method:null,action:null}),eh=[],th=[],eo=-1,Lo=Y(null),Fl=Y(null),Ho=Y(null),yd=Y(null),Xl=0,X0,Q0,Z0,J0,P0,K0,W0;ae.__reactDisabledLog=!0;var ah,ex,nh=!1,sh=new(typeof WeakMap=="function"?WeakMap:Map),cn=null,ks=!1,Pn=Object.prototype.hasOwnProperty,oh=Qt.unstable_scheduleCallback,KE=Qt.unstable_cancelCallback,WE=Qt.unstable_shouldYield,eD=Qt.unstable_requestPaint,ua=Qt.unstable_now,tD=Qt.unstable_getCurrentPriorityLevel,rh=Qt.unstable_ImmediatePriority,ih=Qt.unstable_UserBlockingPriority,Si=Qt.unstable_NormalPriority,aD=Qt.unstable_LowPriority,lh=Qt.unstable_IdlePriority,nD=Qt.log,sD=Qt.unstable_setDisableYieldValue,wi=null,Ea=null,Us=!1,Cs=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Oa=Math.clz32?Math.clz32:Ke,oD=Math.log,rD=Math.LN2,vd=256,xd=262144,Nd=4194304,En=2,Ts=8,to=32,Sd=268435456,Bo=Math.random().toString(36).slice(2),ba="__reactFiber$"+Bo,Aa="__reactProps$"+Bo,$o="__reactContainer$"+Bo,ch="__reactEvents$"+Bo,iD="__reactListeners$"+Bo,lD="__reactHandles$"+Bo,tx="__reactResources$"+Bo,Ql="__reactMarker$"+Bo,ax=new Set,Ur={},uh={},cD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},uD=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={},dD=/[\n"\\]/g,ox=!1,rx=!1,ix=!1,lx=!1,cx=!1,ux=!1,dx=["value","defaultValue"],fx=!1,mx=/["'&<>\n\t]|^\s|\s$/,fD="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(" "),mD=px.concat(["button"]),pD="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-/,hD=/^(?:webkit|moz|o)[A-Z]/,gD=/^-ms-/,bD=/-(.)/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",yD=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={},vD=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]*$"),xD=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,Ma={},Ex=/^on./,ND=/^on[^A-Z]/,SD=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]*$"),wD=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]*$"),ED=/^[\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,ki=null,mh=!1,js=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ph=!1;if(js)try{var Jl={};Object.defineProperty(Jl,"passive",{get:function(){ph=!0}}),window.addEventListener("test",Jl,Jl),window.removeEventListener("test",Jl,Jl)}catch{ph=!1}var Yo=null,hh=null,Rd=null,Cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_d=Ga(Cr),Pl=Pe({},Cr,{view:0,detail:0}),DD=Ga(Pl),gh,bh,Kl,kd=Pe({},Pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pf,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=Ga(kd),RD=Pe({},kd,{dataTransfer:0}),_D=Ga(RD),kD=Pe({},Pl,{relatedTarget:0}),yh=Ga(kD),UD=Pe({},Cr,{animationName:0,elapsedTime:0,pseudoElement:0}),CD=Ga(UD),TD=Pe({},Cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jD=Ga(TD),OD=Pe({},Cr,{data:0}),Rx=Ga(OD),AD=Rx,MD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VD={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"},zD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},LD=Pe({},Pl,{key:function(e){if(e.key){var t=MD[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"?VD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pf,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}}),HD=Ga(LD),BD=Pe({},kd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_x=Ga(BD),$D=Pe({},Pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pf}),YD=Ga($D),qD=Pe({},Cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),GD=Ga(qD),ID=Pe({},kd,{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}),FD=Ga(ID),XD=Pe({},Cr,{newState:0,oldState:0}),QD=Ga(XD),ZD=[9,13,27,32],kx=229,vh=js&&"CompositionEvent"in window,Wl=null;js&&"documentMode"in document&&(Wl=document.documentMode);var JD=js&&"TextEvent"in window&&!Wl,Ux=js&&(!vh||Wl&&8<Wl&&11>=Wl),Cx=32,Tx=String.fromCharCode(Cx),jx=!1,Ui=!1,PD={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;js&&(Ox=b4("input")&&(!document.documentMode||9<document.documentMode));var Va=typeof Object.is=="function"?Object.is:w4,KD=js&&"documentMode"in document&&11>=document.documentMode,Ci=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={};js&&(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 Mx=gr("animationend"),Vx=gr("animationiteration"),zx=gr("animationstart"),WD=gr("transitionrun"),eR=gr("transitionstart"),tR=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 aR=performance,$x=function(){return aR.now()};else{var nR=Date;$x=function(){return nR.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)},sR="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.",Ud=0,Dh=1,Rh=2,_h=3,Cd="– ",Td="+ ",Yx=" ",kt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Dn="Components ⚛",rt="Scheduler ⚛",lt="Blocking",qo=!1,ao={color:"primary",properties:null,tooltipText:"",track:Dn},Go={start:-0,end:-0,detail:{devtools:ao}},oR=["Changed Props",""],qx="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",rR=["Changed Props",qx],nc=1,no=2,Rn=[],ji=0,kh=0,Io={};Object.freeze(Io);var _n=null,Oi=null,ze=0,iR=1,Fe=2,Da=8,Kn=16,lR=32,Gx=!1;try{var Ix=Object.preventExtensions({})}catch{Gx=!0}var Uh=new WeakMap,Ai=[],Mi=0,jd=null,sc=0,kn=[],Un=0,Tr=null,so=1,oo="",ya=null,Ut=null,nt=!1,Os=!1,un=null,Fo=null,Cn=!1,Ch=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=Y(null),jh=Y(null),Fx={},Od=null,Vi=null,zi=!1,cR=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()})}},uR=Qt.unstable_scheduleCallback,dR=Qt.unstable_NormalPriority,Zt={$$typeof:_s,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Jt=Qt.unstable_now,Ad=console.createTask?console.createTask:function(){return null},oc=1,Md=2,da=-0,Xo=-0,ro=-0,io=null,za=-1.1,jr=-0,Ot=-0,Oe=-1.1,Ve=-1.1,jt=null,Lt=!1,Or=-0,As=-1.1,rc=null,Qo=0,Oh=null,Ah=null,Ar=-1.1,ic=null,Li=-1.1,Vd=-1.1,lo=-0,co=-1.1,Tn=-1.1,Mh=0,lc=null,Xx=null,Qx=null,Zo=-1.1,Mr=null,Jo=-1.1,zd=-1.1,Zx=-0,Jx=-0,Ld=0,fR=null,Px=0,cc=-1.1,Hd=!1,Bd=!1,uc=null,Vh=0,Vr=0,Hi=null,Kx=F.S;F.S=function(e,t){if(XN=ua(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>co&&0>Tn){co=Jt();var a=Bl(),n=Hl();(a!==Jo||n!==Mr)&&(Jo=-1.1),Zo=a,Mr=n}C4(e,t)}Kx!==null&&Kx(e,t)};var zr=Y(null),Wn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},dc=[],fc=[],mc=[],pc=[],hc=[],gc=[],Lr=new Set;Wn.recordUnsafeLifecycleWarnings=function(e,t){Lr.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&dc.push(e),e.mode&Da&&typeof t.UNSAFE_componentWillMount=="function"&&fc.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&mc.push(e),e.mode&Da&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&pc.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&hc.push(e),e.mode&Da&&typeof t.UNSAFE_componentWillUpdate=="function"&&gc.push(e))},Wn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<dc.length&&(dc.forEach(function(p){e.add($(p)||"Component"),Lr.add(p.type)}),dc=[]);var t=new Set;0<fc.length&&(fc.forEach(function(p){t.add($(p)||"Component"),Lr.add(p.type)}),fc=[]);var a=new Set;0<mc.length&&(mc.forEach(function(p){a.add($(p)||"Component"),Lr.add(p.type)}),mc=[]);var n=new Set;0<pc.length&&(pc.forEach(function(p){n.add($(p)||"Component"),Lr.add(p.type)}),pc=[]);var r=new Set;0<hc.length&&(hc.forEach(function(p){r.add($(p)||"Component"),Lr.add(p.type)}),hc=[]);var i=new Set;if(0<gc.length&&(gc.forEach(function(p){i.add($(p)||"Component"),Lr.add(p.type)}),gc=[]),0<t.size){var d=v(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=v(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=v(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=v(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=v(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=v(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;Wn.recordLegacyContextWarning=function(e,t){for(var a=null,n=e;n!==null;)n.mode&Da&&(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))},Wn.flushLegacyContextWarning=function(){$d.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add($(r)||"Component"),Wx.add(r.type)});var n=v(a);Ne(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)})}})},Wn.discardPendingWarnings=function(){dc=[],fc=[],mc=[],pc=[],hc=[],gc=[],$d=new Map};var eN={react_stack_bottom_frame:function(e,t,a){var n=ks;ks=!0;try{return e(t,a)}finally{ks=n}}},zh=eN.react_stack_bottom_frame.bind(eN),tN={react_stack_bottom_frame:function(e){var t=ks;ks=!0;try{return e.render()}finally{ks=t}}},aN=tN.react_stack_bottom_frame.bind(tN),nN={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){ht(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){ht(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:""})}},mR=rN.react_stack_bottom_frame.bind(rN),iN={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(n){ht(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}},pR=cN.react_stack_bottom_frame.bind(cN),uN={react_stack_bottom_frame:function(e,t,a){try{a()}catch(n){ht(e,t,n)}}},hR=uN.react_stack_bottom_frame.bind(uN),dN={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},gR=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,Xe=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=$(e),r=n||"null";if(!mN[r]){mN[r]=!0,a=a._owner,e=e._debugOwner;var i="";e&&typeof e.tag=="number"&&(r=$(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=$(a):typeof a.name=="string"&&(n=a.name),n&&(d=" It was passed a child from "+n+".")),Ne(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,Po=!1,xN=!1,Yh=null,qh=!1,Yi=Y(null),Gd=Y(0),dn=Y(null),jn=null,qi=1,vc=2,Gt=Y(0),Id=0,On=1,La=2,fn=4,Ha=8,Gi,NN=new Set,SN=new Set,Gh=new Set,wN=new Set,uo=0,$e=null,xt=null,Pt=null,Fd=!1,Ii=!1,$r=!1,Xd=0,xc=0,fo=null,bR=0,yR=25,G=null,An=null,mo=-1,Nc=!1,Sc={readContext:Tt,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,Ms=null,es=null,Qd=null;Ih={readContext:function(e){return Tt(e)},use:Ao,useCallback:function(e,t){return G="useCallback",Je(),ii(t),Ym(e,t)},useContext:function(e){return G="useContext",Je(),Tt(e)},useEffect:function(e,t){return G="useEffect",Je(),ii(t),$u(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",Je(),ii(a),$m(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",Je(),ii(t),Er(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",Je(),ii(t),Bm(e,t)},useMemo:function(e,t){G="useMemo",Je(),ii(t);var a=F.H;F.H=Ms;try{return qm(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",Je();var n=F.H;F.H=Ms;try{return Tm(e,t,a)}finally{F.H=n}},useRef:function(e){return G="useRef",Je(),Lm(e)},useState:function(e){G="useState",Je();var t=F.H;F.H=Ms;try{return Mm(e)}finally{F.H=t}},useDebugValue:function(){G="useDebugValue",Je()},useDeferredValue:function(e,t){return G="useDeferredValue",Je(),Gm(e,t)},useTransition:function(){return G="useTransition",Je(),Xm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",Je(),Om(e,t,a)},useId:function(){return G="useId",Je(),Qm()},useFormState:function(e,t){return G="useFormState",Je(),Vu(),ci(e,t)},useActionState:function(e,t){return G="useActionState",Je(),ci(e,t)},useOptimistic:function(e){return G="useOptimistic",Je(),Vm(e)},useHostTransitionStatus:Dr,useMemoCache:wr,useCacheRefresh:function(){return G="useCacheRefresh",Je(),Zm()},useEffectEvent:function(e){return G="useEffectEvent",Je(),Hm(e)}},EN={readContext:function(e){return Tt(e)},use:Ao,useCallback:function(e,t){return G="useCallback",se(),Ym(e,t)},useContext:function(e){return G="useContext",se(),Tt(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,La,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=Ms;try{return qm(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",se();var n=F.H;F.H=Ms;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=Ms;try{return Mm(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(),Vu(),ci(e,t)},useOptimistic:function(e){return G="useOptimistic",se(),Vm(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 Tt(e)},use:Ao,useCallback:function(e,t){return G="useCallback",se(),Gu(e,t)},useContext:function(e){return G="useContext",se(),Tt(e)},useEffect:function(e,t){G="useEffect",se(),Ia(2048,Ha,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",se(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",se(),Ia(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",se(),Ia(4,fn,e,t)},useMemo:function(e,t){G="useMemo",se();var a=F.H;F.H=es;try{return Iu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",se();var n=F.H;F.H=es;try{return li(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",se(),bt().memoizedState},useState:function(){G="useState",se();var e=F.H;F.H=es;try{return li(Zn)}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(),bt().memoizedState},useFormState:function(e){return G="useFormState",se(),Vu(),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(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",se(),Yu(e)}},DN={readContext:function(e){return Tt(e)},use:Ao,useCallback:function(e,t){return G="useCallback",se(),Gu(e,t)},useContext:function(e){return G="useContext",se(),Tt(e)},useEffect:function(e,t){G="useEffect",se(),Ia(2048,Ha,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",se(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",se(),Ia(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",se(),Ia(4,fn,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(),bt().memoizedState},useState:function(){G="useState",se();var e=F.H;F.H=Qd;try{return _l(Zn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",se()},useDeferredValue:function(e,t){return G="useDeferredValue",se(),Cy(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(),bt().memoizedState},useFormState:function(e){return G="useFormState",se(),Vu(),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(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",se(),Yu(e)}},Ms={readContext:function(e){return y(),Tt(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return G="useCallback",g(),Je(),Ym(e,t)},useContext:function(e){return G="useContext",g(),Je(),Tt(e)},useEffect:function(e,t){return G="useEffect",g(),Je(),$u(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),Je(),$m(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",g(),Je(),Er(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),Je(),Bm(e,t)},useMemo:function(e,t){G="useMemo",g(),Je();var a=F.H;F.H=Ms;try{return qm(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",g(),Je();var n=F.H;F.H=Ms;try{return Tm(e,t,a)}finally{F.H=n}},useRef:function(e){return G="useRef",g(),Je(),Lm(e)},useState:function(e){G="useState",g(),Je();var t=F.H;F.H=Ms;try{return Mm(e)}finally{F.H=t}},useDebugValue:function(){G="useDebugValue",g(),Je()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),Je(),Gm(e,t)},useTransition:function(){return G="useTransition",g(),Je(),Xm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),Je(),Om(e,t,a)},useId:function(){return G="useId",g(),Je(),Qm()},useFormState:function(e,t){return G="useFormState",g(),Je(),ci(e,t)},useActionState:function(e,t){return G="useActionState",g(),Je(),ci(e,t)},useOptimistic:function(e){return G="useOptimistic",g(),Je(),Vm(e)},useMemoCache:function(e){return g(),wr(e)},useHostTransitionStatus:Dr,useCacheRefresh:function(){return G="useCacheRefresh",Je(),Zm()},useEffectEvent:function(e){return G="useEffectEvent",g(),Je(),Hm(e)}},es={readContext:function(e){return y(),Tt(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(),Tt(e)},useEffect:function(e,t){G="useEffect",g(),se(),Ia(2048,Ha,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(),Ia(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),se(),Ia(4,fn,e,t)},useMemo:function(e,t){G="useMemo",g(),se();var a=F.H;F.H=es;try{return Iu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",g(),se();var n=F.H;F.H=es;try{return li(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",g(),se(),bt().memoizedState},useState:function(){G="useState",g(),se();var e=F.H;F.H=es;try{return li(Zn)}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(),bt().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(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",g(),se(),Yu(e)}},Qd={readContext:function(e){return y(),Tt(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(),Tt(e)},useEffect:function(e,t){G="useEffect",g(),se(),Ia(2048,Ha,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(),Ia(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),se(),Ia(4,fn,e,t)},useMemo:function(e,t){G="useMemo",g(),se();var a=F.H;F.H=es;try{return Iu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",g(),se();var n=F.H;F.H=es;try{return _l(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",g(),se(),bt().memoizedState},useState:function(){G="useState",g(),se();var e=F.H;F.H=es;try{return _l(Zn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",g(),se()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),se(),Cy(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(),bt().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(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",g(),se(),Yu(e)}};var RN={},_N=new Set,kN=new Set,UN=new Set,CN=new Set,TN=new Set,jN=new Set,ON=new Set,AN=new Set,MN=new Set,VN=new Set;Object.freeze(RN);var Xh={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=on(e),r=Co(n);r.payload=t,a!=null&&(Pm(a),r.callback=a),t=To(e,r,n),t!==null&&(ms(n,"this.setState()",e),zt(t,e,n),wl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=on(e),r=Co(n);r.tag=yN,r.payload=t,a!=null&&(Pm(a),r.callback=a),t=To(e,r,n),t!==null&&(ms(n,"this.replaceState()",e),zt(t,e,n),wl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=on(e),n=Co(a);n.tag=vN,t!=null&&(Pm(t),n.callback=t),t=To(e,n,a),t!==null&&(ms(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."),Kt=!1,zN={},LN={},HN={},BN={},Xi=!1,$N={},Zd={},Jh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},YN=!1,qN=null;qN=new Set;var po=!1,Wt=!1,Ph=!1,GN=typeof WeakSet=="function"?WeakSet:Set,fa=null,Qi=null,Zi=null,ea=null,Qa=!1,ts=null,na=!1,wc=8192,vR={getCacheForType:function(e){var t=Tt(Zt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Tt(Zt).controller.signal},getOwner:function(){return cn}};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 xR=[],NR=typeof WeakMap=="function"?WeakMap:Map,ma=0,sa=2,mn=4,ho=0,Dc=1,Yr=2,Jd=3,Ko=4,Pd=6,IN=5,ut=ma,Nt=null,Ze=null,Qe=0,Za=0,Kd=1,qr=2,Rc=3,FN=4,Kh=5,_c=6,Wd=7,Wh=8,Gr=9,yt=Za,pn=null,Wo=!1,Ji=!1,eg=!1,Vs=0,At=ho,er=0,tr=0,tg=0,Ja=0,Ir=0,kc=null,Ba=null,ef=!1,tf=0,XN=0,QN=300,af=1/0,ZN=500,Uc=null,Bt=null,ar=null,nf=0,ag=1,ng=2,JN=3,nr=0,PN=1,KN=2,WN=3,e1=4,sf=5,ta=0,sr=null,Pi=null,as=0,sg=0,og=-0,rg=null,t1=null,a1=null,ns=nf,n1=null,SR=50,Cc=0,ig=null,lg=!1,of=!1,wR=50,Fr=0,Tc=null,Ki=!1,rf=null,s1=!1,o1=new Set,ER={},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),Xn(a,"on"+t)}Xn(Mx,"onAnimationEnd"),Xn(Vx,"onAnimationIteration"),Xn(zx,"onAnimationStart"),Xn("dblclick","onDoubleClick"),Xn("focusin","onFocus"),Xn("focusout","onBlur"),Xn(WD,"onTransitionRun"),Xn(eR,"onTransitionStart"),Xn(tR,"onTransitionCancel"),Xn(Lx,"onTransitionEnd")})(),qe("onMouseEnter",["mouseout","mouseover"]),qe("onMouseLeave",["mouseout","mouseover"]),qe("onPointerEnter",["pointerout","pointerover"]),qe("onPointerLeave",["pointerout","pointerover"]),at("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),at("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),at("onBeforeInput",["compositionend","keypress","textInput","paste"]),at("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),at("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),at("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={},DR=/\r\n?/g,RR=/\u0000|\uFFFD/g,Xr="http://www.w3.org/1999/xlink",pg="http://www.w3.org/XML/1998/namespace",_R="javascript:throw new Error('React form unexpectedly submitted.')",kR="suppressHydrationWarning",Qr="&",hf="/&",Oc="$",Ac="/$",rr="$?",Zr="$~",el="$!",UR="html",CR="body",TR="head",hg="F!",u1="F",d1="loading",jR="style",go=0,tl=1,gf=2,gg=null,bg=null,f1={dialog:!0,webview:!0},yg=null,Mc=void 0,m1=typeof setTimeout=="function"?setTimeout:void 0,OR=typeof clearTimeout=="function"?clearTimeout:void 0,Jr=-1,p1=typeof Promise=="function"?Promise:void 0,AR=typeof queueMicrotask=="function"?queueMicrotask:typeof p1<"u"?function(e){return p1.resolve(null).then(e).catch(gE)}:m1,vg=null,Pr=0,Vc=1,h1=2,g1=3,Mn=4,Vn=new Map,b1=new Set,bo=gt.d;gt.d={f:function(){var e=bo.f(),t=pi();return e||t},r:function(e){var t=ue(e);t!==null&&t.tag===5&&t.type==="form"?Ay(t):bo.r(e)},D:function(e){bo.D(e),_0("dns-prefetch",e,null)},C:function(e,t){bo.C(e,t),_0("preconnect",e,t)},L:function(e,t,a){bo.L(e,t,a);var n=al;if(n&&e&&t){var r='link[rel="preload"][as="'+xe(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+xe(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+xe(a.imageSizes)+'"]')):r+='[href="'+xe(e)+'"]';var i=r;switch(t){case"style":i=bi(e);break;case"script":i=yi(e)}Vn.has(i)||(e=Pe({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Vn.set(i,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Yl(i))||t==="script"&&n.querySelector(ql(i))||(t=n.createElement("link"),ga(t,"link",e),ke(t),n.head.appendChild(t)))}},m:function(e,t){bo.m(e,t);var a=al;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+xe(n)+'"][href="'+xe(e)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=yi(e)}if(!Vn.has(i)&&(e=Pe({rel:"modulepreload",href:e},t),Vn.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"),ga(n,"link",e),ke(n),a.head.appendChild(n)}}},X:function(e,t){bo.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=Pe({src:e,async:!0},t),(t=Vn.get(r))&&$p(e,t),i=a.createElement("script"),ke(i),ga(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){bo.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:Pr,preload:null};if(d=n.querySelector(Yl(i)))p.loading=Vc|Mn;else{e=Pe({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Vn.get(i))&&Bp(e,a);var b=d=n.createElement("link");ke(b),ga(b,"link",e),b._p=new Promise(function(N,A){b.onload=N,b.onerror=A}),b.addEventListener("load",function(){p.loading|=Vc}),b.addEventListener("error",function(){p.loading|=h1}),p.loading|=Mn,ud(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:p},r.set(i,d)}}},M:function(e,t){bo.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=Pe({src:e,async:!0,type:"module"},t),(t=Vn.get(r))&&$p(e,t),i=a.createElement("script"),ke(i),ga(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,MR=6e4,VR=800,zR=500,xg=0,Ng=null,yf=null,Kr=PE,zc={$$typeof:_s,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=" ",LR=Function.prototype.bind,N1=!1,S1=null,w1=null,E1=null,D1=null,R1=null,_1=null,k1=null,U1=null,C1=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=Pe({},e.memoizedProps),a=wa(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=Pe({},e.memoizedProps),a=wa(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=Pe({},e.memoizedProps),a=wa(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=wa(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=wa(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=wa(e,2),t!==null&&zt(t,e,2)},k1=function(e){var t=wa(e,2);t!==null&&zt(t,e,2)},U1=function(e){var t=Vt(),a=wa(e,t);a!==null&&zt(a,e,t)},C1=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=[],HR="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()."):H(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=on(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;(ut&(sa|mn))!==ma&&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=qn();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"),gt.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=fe(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=k1,e.scheduleRetry=U1,e.setErrorHandler=C1,e.setSuspenseHandler=T1,e.scheduleRefresh=j,e.scheduleRoot=R,e.setRefreshHandler=L,e.getCurrentFiber=YE,Le(e)})()&&js&&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(!H(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===Rs&&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,kp(e),new Xp(t)},$c.hydrateRoot=function(e,t,a){if(!H(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,b=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&&(b=a.formState)),t=A0(e,1,!0,t,a??null,n,r,b,i,d,p,G0),t.context=M0(null),a=t.current,n=on(a),n=Nn(n),r=Co(n),r.callback=null,To(a,r,n),ms(n,"hydrateRoot()",null),a=n,t.current.lanes=a,xn(t,a),Es(t),e[$o]=t.current,kp(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 nk(){return cS||(cS=1,Cg.exports=ak()),Cg.exports}var sk=nk();var hw=s=>{throw TypeError(s)},ok=(s,o,l)=>o.has(s)||hw("Cannot "+l),Ag=(s,o,l)=>(ok(s,o,"read from private field"),l?l.call(s):o.get(s)),rk=(s,o,l)=>o.has(s)?hw("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 ik(s={}){function o(c,u){let f=u.state?.masked,{pathname:h,search:g,hash:y}=f||c.location;return Wc("",{pathname:h,search:g,hash:y},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:Ls(u)}return ck(o,l,null,s)}function et(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 lk(){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"?No(o):o,state:l,key:o&&o.key||c||lk(),unstable_mask:u}}function Ls({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 No(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 ck(s,o,l,c={}){let{window:u=document.defaultView,v5Compat:f=!1}=c,h=u.history,g="POP",y=null,x=D();x==null&&(x=0,h.replaceState({...h.state,idx:x},""));function D(){return(h.state||{idx:null}).idx}function v(){g="POP";let H=D(),Q=H==null?null:H-x;x=H,y&&y({action:g,location:L.location,delta:Q})}function S(H,Q){g="PUSH";let Z=dS(H)?H:Wc(L.location,H,Q);x=D()+1;let te=fS(Z,x),he=L.createHref(Z.unstable_mask||Z);try{h.pushState(te,"",he)}catch(fe){if(fe instanceof DOMException&&fe.name==="DataCloneError")throw fe;u.location.assign(he)}f&&y&&y({action:g,location:L.location,delta:1})}function R(H,Q){g="REPLACE";let Z=dS(H)?H:Wc(L.location,H,Q);x=D();let te=fS(Z,x),he=L.createHref(Z.unstable_mask||Z);h.replaceState(te,"",he),f&&y&&y({action:g,location:L.location,delta:0})}function j(H){return gw(H)}let L={get action(){return g},get location(){return s(u,h)},listen(H){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(uS,v),y=H,()=>{u.removeEventListener(uS,v),y=null}},createHref(H){return o(u,H)},createURL:j,encodeLocation(H){let Q=j(H);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:S,replace:R,go(H){return h.go(H)}};return L}function gw(s,o=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),et(l,"No window.location.(origin|href) available to create URL");let c=typeof s=="string"?s:Ls(s);return c=c.replace(/ $/,"%20"),!o&&c.startsWith("//")&&(c=l+c),new URL(c,l)}var Xc,mS=class{constructor(s){if(rk(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 uk=new Set(["lazy","caseSensitive","path","id","index","children"]);function dk(s){return uk.has(s)}var fk=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function mk(s){return fk.has(s)}function pk(s){return s.index===!0}function eu(s,o,l=[],c={},u=!1){return s.map((f,h)=>{let g=[...l,String(h)],y=typeof f.id=="string"?f.id:g.join("-");if(et(f.index!==!0||!f.children,"Cannot specify children on an index route"),et(u||!c[y],`Found a route id collision on id "${y}". Route id's must be globally unique within Data Router usages`),pk(f)){let x={...f,id:y};return c[y]=pS(x,o(x)),x}else{let x={...f,id:y,children:void 0};return c[y]=pS(x,o(x)),f.children&&(x.children=eu(f.children,o,g,c,u)),x}})}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"?No(o):o,f=Ln(u.pathname||"/",l);if(f==null)return null;let h=bw(s);gk(h);let g=null;for(let y=0;g==null&&y<h.length;++y){let x=_k(f);g=Dk(h[y],x,c)}return g}function hk(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 bw(s,o=[],l=[],c="",u=!1){let f=(h,g,y=u,x)=>{let D={relativePath:x===void 0?h.path||"":x,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(D.relativePath.startsWith("/")){if(!D.relativePath.startsWith(c)&&y)return;et(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 v=ss([c,D.relativePath]),S=l.concat(D);h.children&&h.children.length>0&&(et(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),bw(h.children,o,S,v,y)),!(h.path==null&&!h.index)&&o.push({path:v,score:wk(v,h.index),routesMeta:S})};return s.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))f(h,g);else for(let y of yw(h.path))f(h,g,!0,y)}),o}function yw(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=yw(c.join("/")),g=[];return g.push(...h.map(y=>y===""?f:[f,y].join("/"))),u&&g.push(...h),g.map(y=>s.startsWith("/")&&y===""?"/":y)}function gk(s){s.sort((o,l)=>o.score!==l.score?l.score-o.score:Ek(o.routesMeta.map(c=>c.childrenIndex),l.routesMeta.map(c=>c.childrenIndex)))}var bk=/^:[\w-]+$/,yk=3,vk=2,xk=1,Nk=10,Sk=-2,hS=s=>s==="*";function wk(s,o){let l=s.split("/"),c=l.length;return l.some(hS)&&(c+=Sk),o&&(c+=vk),l.filter(u=>!hS(u)).reduce((u,f)=>u+(bk.test(f)?yk:f===""?xk:Nk),c)}function Ek(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 Dk(s,o,l=!1){let{routesMeta:c}=s,u={},f="/",h=[];for(let g=0;g<c.length;++g){let y=c[g],x=g===c.length-1,D=f==="/"?o:o.slice(f.length)||"/",v=Lf({path:y.relativePath,caseSensitive:y.caseSensitive,end:x},D),S=y.route;if(!v&&x&&l&&!c[c.length-1].route.index&&(v=Lf({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},D)),!v)return null;Object.assign(u,v.params),h.push({params:u,pathname:ss([f,v.pathname]),pathnameBase:Ck(ss([f,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(f=ss([f,v.pathnameBase]))}return h}function Lf(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[l,c]=Rk(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((x,{paramName:D,isOptional:v},S)=>{if(D==="*"){let j=g[S]||"";h=f.slice(0,f.length-j.length).replace(/(.)\/+$/,"$1")}const R=g[S];return v&&!R?x[D]=void 0:x[D]=(R||"").replace(/%2F/g,"/"),x},{}),pathname:f,pathnameBase:h,pattern:s}}function Rk(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,y,x,D)=>{if(c.push({paramName:g,isOptional:y!=null}),y){let v=D.charAt(x+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 _k(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 Ln(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 kk({basename:s,pathname:o}){return o==="/"?s:ss([s,o])}var vw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pg=s=>vw.test(s);function Uk(s,o="/"){let{pathname:l,search:c="",hash:u=""}=typeof s=="string"?No(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:Tk(c),hash:jk(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 Mg(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 xw(s){return s.filter((o,l)=>l===0||o.route.path&&o.route.path.length>0)}function $f(s){let o=xw(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=No(s):(u={...s},et(!u.pathname||!u.pathname.includes("?"),Mg("?","pathname","search",u)),et(!u.pathname||!u.pathname.includes("#"),Mg("#","pathname","hash",u)),et(!u.search||!u.search.includes("#"),Mg("#","search","hash",u)));let f=s===""||u.pathname==="",h=f?"/":u.pathname,g;if(h==null)g=l;else{let v=o.length-1;if(!c&&h.startsWith("..")){let S=h.split("/");for(;S[0]==="..";)S.shift(),v-=1;u.pathname=S.join("/")}g=v>=0?o[v]:"/"}let y=Uk(u,g),x=h&&h!=="/"&&h.endsWith("/"),D=(f||h===".")&&l.endsWith("/");return!y.pathname.endsWith("/")&&(x||D)&&(y.pathname+="/"),y}var ss=s=>s.join("/").replace(/\/\/+/g,"/"),Ck=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),Tk=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,jk=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 Nw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Sw(s,o){let l=s;if(typeof l!="string"||!vw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let c=l,u=!1;if(Nw)try{let f=new URL(window.location.href),h=l.startsWith("//")?new URL(f.protocol+l):new URL(l),g=Ln(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 Ok(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 y=il(g,h,()=>{});y&&(c.lazy=Object.assign(c.lazy||{},{[f]:y}))}})}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,(...y)=>bS(y[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 Ak(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?Ls(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,y]=f;return{href:g??".",fetcherKey:h,...yS(s,y??{})}});u&&(u[mr]=c,s.fetch=u)}return s}function il(s,o,l){return s.length===0?null:async(...c)=>{let u=await ww(s,l(...c),()=>o(...c),s.length-1);if(u.type==="error")throw u.value;return u.value}}async function ww(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=ww(s,o,l,c-1),f=await h,et(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(y){console.error("An instrumentation function threw an error:",y)}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:Mk(o),params:{...c},unstable_pattern:u,context:Vk(l)}}function yS(s,o){return{currentUrl:Ls(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 Mk(s){return{method:s.method,url:s.url,headers:{get:(...o)=>s.headers.get(...o)}}}function Vk(s){if(Lk(s)){let o={...s};return Object.freeze(o),o}else return{get:o=>s.get(o)}}var zk=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Lk(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")===zk}var Ew=["POST","PUT","PATCH","DELETE"],Hk=new Set(Ew),Bk=["GET",...Ew],$k=new Set(Bk),Dw=new Set([301,302,303,307,308]),Yk=new Set([307,308]),Vg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qk={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},Gk=s=>({hasErrorBoundary:!!s.hasErrorBoundary}),Rw="remix-router-transitions",_w=Symbol("ResetLoaderData");function Ik(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";et(s.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=s.hydrationRouteProperties||[],u=s.mapRouteProperties||Gk,f=u;if(s.unstable_instrumentations){let U=s.unstable_instrumentations;f=z=>({...u(z),...Ok(U.map(I=>I.route).filter(Boolean),z)})}let h={},g=eu(s.routes,f,void 0,h),y,x=s.basename||"/";x.startsWith("/")||(x=`/${x}`);let D=s.dataStrategy||Jk,v={...s.future},S=null,R=new Set,j=null,L=null,H=null,Q=s.hydrationData!=null,Z=dr(g,s.history.location,x),te=!1,he=null,fe,me;if(Z==null&&!s.patchRoutesOnNavigation){let U=zn(404,{pathname:s.history.location.pathname}),{matches:z,route:I}=Df(g);fe=!0,me=!fe,Z=z,he={[I.id]:U}}else if(Z&&!s.hydrationData&&Ca(Z,g,s.history.location.pathname).active&&(Z=null),Z)if(Z.some(U=>U.route.lazy))fe=!1,me=!fe;else if(!Z.some(U=>Kg(U.route)))fe=!0,me=!fe;else{let U=s.hydrationData?s.hydrationData.loaderData:null,z=s.hydrationData?s.hydrationData.errors:null,I=Z;if(z){let oe=Z.findIndex(le=>z[le.route.id]!==void 0);I=I.slice(0,oe+1)}me=!1,fe=I.every(oe=>{let le=kw(oe.route,U,z);return me=me||le.renderFallback,!le.shouldLoad})}else{fe=!1,me=!fe,Z=[];let U=Ca(null,g,s.history.location.pathname);U.active&&U.matches&&(te=!0,Z=U.matches)}let ee,_={historyAction:s.history.action,location:s.history.location,matches:Z,initialized:fe,renderFallback:me,navigation:Vg,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||he,fetchers:new Map,blockers:new Map},X="POP",$=null,Y=!1,P,ce=!1,J=new Map,ie=null,W=!1,de=!1,ye=new Set,ve=new Map,ae=0,B=-1,ge=new Map,De=new Set,Re=new Map,ft=new Map,Mt=new Set,ct=new Map,oa,Ft=null;function Ka(){if(S=s.history.listen(({action:U,location:z,delta:I})=>{if(oa){oa(),oa=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=we({currentLocation:_.location,nextLocation:z,historyAction:U});if(oe&&I!=null){let le=new Promise(Ue=>{oa=Ue});s.history.go(I*-1),ue(oe,{state:"blocked",location:z,proceed(){ue(oe,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),le.then(()=>s.history.go(I))},reset(){let Ue=new Map(_.blockers);Ue.set(oe,Yc),Et({blockers:Ue})}}),$?.resolve(),$=null;return}return Dt(U,z)}),l){pU(o,J);let U=()=>hU(o,J);o.addEventListener("pagehide",U),ie=()=>o.removeEventListener("pagehide",U)}return _.initialized||Dt("POP",_.location,{initialHydration:!0}),ee}function Ne(){S&&S(),ie&&ie(),R.clear(),P&&P.abort(),_.fetchers.forEach((U,z)=>Nn(z)),_.blockers.forEach((U,z)=>ne(z))}function $n(U){return R.add(U),()=>R.delete(U)}function Et(U,z={}){U.matches&&(U.matches=U.matches.map(le=>{let Ue=h[le.route.id],xe=le.route;return xe.element!==Ue.element||xe.errorElement!==Ue.errorElement||xe.hydrateFallbackElement!==Ue.hydrateFallbackElement?{...le,route:Ue}:le})),_={..._,...U};let I=[],oe=[];_.fetchers.forEach((le,Ue)=>{le.state==="idle"&&(Mt.has(Ue)?I.push(Ue):oe.push(Ue))}),Mt.forEach(le=>{!_.fetchers.has(le)&&!ve.has(le)&&I.push(le)}),[...R].forEach(le=>le(_,{deletedFetchers:I,newErrors:U.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),I.forEach(le=>Nn(le)),oe.forEach(le=>_.fetchers.delete(le))}function xa(U,z,{flushSync:I}={}){let oe=_.actionData!=null&&_.navigation.formMethod!=null&&_a(_.navigation.formMethod)&&_.navigation.state==="loading"&&U.state?._isRedirect!==!0,le;z.actionData?Object.keys(z.actionData).length>0?le=z.actionData:le=null:oe?le=_.actionData:le=null;let Ue=z.loaderData?kS(_.loaderData,z.loaderData,z.matches||[],z.errors):_.loaderData,xe=_.blockers;xe.size>0&&(xe=new Map(xe),xe.forEach((Ae,Ce)=>xe.set(Ce,Yc)));let Te=W?!1:ra(U,z.matches||_.matches),Ee=Y===!0||_.navigation.formMethod!=null&&_a(_.navigation.formMethod)&&U.state?._isRedirect!==!0;y&&(g=y,y=void 0),W||X==="POP"||(X==="PUSH"?s.history.push(U,U.state):X==="REPLACE"&&s.history.replace(U,U.state));let Me;if(X==="POP"){let Ae=J.get(_.location.pathname);Ae&&Ae.has(U.pathname)?Me={currentLocation:_.location,nextLocation:U}:J.has(U.pathname)&&(Me={currentLocation:U,nextLocation:_.location})}else if(ce){let Ae=J.get(_.location.pathname);Ae?Ae.add(U.pathname):(Ae=new Set([U.pathname]),J.set(_.location.pathname,Ae)),Me={currentLocation:_.location,nextLocation:U}}Et({...z,actionData:le,loaderData:Ue,historyAction:X,location:U,initialized:!0,renderFallback:!1,navigation:Vg,revalidation:"idle",restoreScrollPosition:Te,preventScrollReset:Ee,blockers:xe},{viewTransitionOpts:Me,flushSync:I===!0}),X="POP",Y=!1,ce=!1,W=!1,de=!1,$?.resolve(),$=null,Ft?.resolve(),Ft=null}async function Wa(U,z){if($?.resolve(),$=null,typeof U=="number"){$||($=jS());let Rt=$.promise;return s.history.go(U),Rt}let I=Fg(_.location,_.matches,x,U,z?.fromRouteId,z?.relative),{path:oe,submission:le,error:Ue}=vS(!1,I,z),xe;z?.unstable_mask&&(xe={pathname:"",search:"",hash:"",...typeof z.unstable_mask=="string"?No(z.unstable_mask):{..._.location.unstable_mask,...z.unstable_mask}});let Te=_.location,Ee=Wc(Te,oe,z&&z.state,void 0,xe);Ee={...Ee,...s.history.encodeLocation(Ee)};let Me=z&&z.replace!=null?z.replace:void 0,Ae="PUSH";Me===!0?Ae="REPLACE":Me===!1||le!=null&&_a(le.formMethod)&&le.formAction===_.location.pathname+_.location.search&&(Ae="REPLACE");let Ce=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,mt=(z&&z.flushSync)===!0,We=we({currentLocation:Te,nextLocation:Ee,historyAction:Ae});if(We){ue(We,{state:"blocked",location:Ee,proceed(){ue(We,{state:"proceeding",proceed:void 0,reset:void 0,location:Ee}),Wa(U,z)},reset(){let Rt=new Map(_.blockers);Rt.set(We,Yc),Et({blockers:Rt})}});return}await Dt(Ae,Ee,{submission:le,pendingError:Ue,preventScrollReset:Ce,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:mt,callSiteDefaultShouldRevalidate:z&&z.unstable_defaultShouldRevalidate})}function dt(){Ft||(Ft=jS()),xn(),Et({revalidation:"loading"});let U=Ft.promise;return _.navigation.state==="submitting"?U:_.navigation.state==="idle"?(Dt(_.historyAction,_.location,{startUninterruptedRevalidation:!0}),U):(Dt(X||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:ce===!0}),U)}async function Dt(U,z,I){P&&P.abort(),P=null,X=U,W=(I&&I.startUninterruptedRevalidation)===!0,qe(_.location,_.matches),Y=(I&&I.preventScrollReset)===!0,ce=(I&&I.enableViewTransition)===!0;let oe=y||g,le=I&&I.overrideNavigation,Ue=I?.initialHydration&&_.matches&&_.matches.length>0&&!te?_.matches:dr(oe,z,x),xe=(I&&I.flushSync)===!0;if(Ue&&_.initialized&&!de&&sU(_.location,z)&&!(I&&I.submission&&_a(I.submission.formMethod))){xa(z,{matches:Ue},{flushSync:xe});return}let Te=Ca(Ue,oe,z.pathname);if(Te.active&&Te.matches&&(Ue=Te.matches),!Ue){let{error:Yt,notFoundMatches:ia,route:pt}=Be(z.pathname);xa(z,{matches:ia,loaderData:{},errors:{[pt.id]:Yt}},{flushSync:xe});return}P=new AbortController;let Ee=ol(s.history,z,P.signal,I&&I.submission),Me=s.getContext?await s.getContext():new mS,Ae;if(I&&I.pendingError)Ae=[fr(Ue).route.id,{type:"error",error:I.pendingError}];else if(I&&I.submission&&_a(I.submission.formMethod)){let Yt=await rs(Ee,z,I.submission,Ue,Me,Te.active,I&&I.initialHydration===!0,{replace:I.replace,flushSync:xe});if(Yt.shortCircuited)return;if(Yt.pendingActionResult){let[ia,pt]=Yt.pendingActionResult;if(hn(pt)&&tu(pt.error)&&pt.error.status===404){P=null,xa(z,{matches:Yt.matches,loaderData:{},errors:{[ia]:pt.error}});return}}Ue=Yt.matches||Ue,Ae=Yt.pendingActionResult,le=zg(z,I.submission),xe=!1,Te.active=!1,Ee=ol(s.history,Ee.url,Ee.signal)}let{shortCircuited:Ce,matches:mt,loaderData:We,errors:Rt}=await Le(Ee,z,Ue,Me,Te.active,le,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,xe,Ae,I&&I.callSiteDefaultShouldRevalidate);Ce||(P=null,xa(z,{matches:mt||Ue,...US(Ae),loaderData:We,errors:Rt}))}async function rs(U,z,I,oe,le,Ue,xe,Te={}){xn();let Ee=fU(z,I);if(Et({navigation:Ee},{flushSync:Te.flushSync===!0}),Ue){let Ce=await qs(oe,z.pathname,U.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){if(Ce.partialMatches.length===0){let{matches:We,route:Rt}=Df(g);return{matches:We,pendingActionResult:[Rt.id,{type:"error",error:Ce.error}]}}let mt=fr(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,pendingActionResult:[mt,{type:"error",error:Ce.error}]}}else if(Ce.matches)oe=Ce.matches;else{let{notFoundMatches:mt,error:We,route:Rt}=Be(z.pathname);return{matches:mt,pendingActionResult:[Rt.id,{type:"error",error:We}]}}}let Me,Ae=Tf(oe,z);if(!Ae.route.action&&!Ae.route.lazy)Me={type:"error",error:zn(405,{method:U.method,pathname:z.pathname,routeId:Ae.route.id})};else{let Ce=ll(f,h,U,oe,Ae,xe?[]:c,le),mt=await Vt(U,Ce,le,null);if(Me=mt[Ae.route.id],!Me){for(let We of oe)if(mt[We.route.id]){Me=mt[We.route.id];break}}if(U.signal.aborted)return{shortCircuited:!0}}if(ei(Me)){let Ce;return Te&&Te.replace!=null?Ce=Te.replace:Ce=DS(Me.response.headers.get("Location"),new URL(U.url),x,s.history)===_.location.pathname+_.location.search,await Ya(U,Me,!0,{submission:I,replace:Ce}),{shortCircuited:!0}}if(hn(Me)){let Ce=fr(oe,Ae.route.id);return(Te&&Te.replace)!==!0&&(X="PUSH"),{matches:oe,pendingActionResult:[Ce.route.id,Me,Ae.route.id]}}return{matches:oe,pendingActionResult:[Ae.route.id,Me]}}async function Le(U,z,I,oe,le,Ue,xe,Te,Ee,Me,Ae,Ce,mt){let We=Ue||zg(z,xe),Rt=xe||Te||TS(We),Yt=!W&&!Me;if(le){if(Yt){let la=re(Ce);Et({navigation:We,...la!==void 0?{actionData:la}:{}},{flushSync:Ae})}let st=await qs(I,z.pathname,U.signal);if(st.type==="aborted")return{shortCircuited:!0};if(st.type==="error"){if(st.partialMatches.length===0){let{matches:Eo,route:cs}=Df(g);return{matches:Eo,loaderData:{},errors:{[cs.id]:st.error}}}let la=fr(st.partialMatches).route.id;return{matches:st.partialMatches,loaderData:{},errors:{[la]:st.error}}}else if(st.matches)I=st.matches;else{let{error:la,notFoundMatches:Eo,route:cs}=Be(z.pathname);return{matches:Eo,loaderData:{},errors:{[cs.id]:la}}}}let ia=y||g,{dsMatches:pt,revalidatingFetchers:Ta}=xS(U,oe,f,h,s.history,_,I,Rt,z,Me?[]:c,Me===!0,de,ye,Mt,Re,De,ia,x,s.patchRoutesOnNavigation!=null,Ce,mt);if(B=++ae,!s.dataStrategy&&!pt.some(st=>st.shouldLoad)&&!pt.some(st=>st.route.middleware&&st.route.middleware.length>0)&&Ta.length===0){let st=qn();return xa(z,{matches:I,loaderData:{},errors:Ce&&hn(Ce[1])?{[Ce[0]]:Ce[1].error}:null,...US(Ce),...st?{fetchers:new Map(_.fetchers)}:{}},{flushSync:Ae}),{shortCircuited:!0}}if(Yt){let st={};if(!le){st.navigation=We;let la=re(Ce);la!==void 0&&(st.actionData=la)}Ta.length>0&&(st.fetchers=Ke(Ta)),Et(st,{flushSync:Ae})}Ta.forEach(st=>{Na(st.key),st.controller&&ve.set(st.key,st.controller)});let qt=()=>Ta.forEach(st=>Na(st.key));P&&P.signal.addEventListener("abort",qt);let{loaderResults:Sn,fetcherResults:Sa}=await So(pt,Ta,U,oe);if(U.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",qt),Ta.forEach(st=>ve.delete(st.key));let en=Rf(Sn);if(en)return await Ya(U,en.result,!0,{replace:Ee}),{shortCircuited:!0};if(en=Rf(Sa),en)return De.add(en.key),await Ya(U,en.result,!0,{replace:Ee}),{shortCircuited:!0};let{loaderData:Is,errors:is}=_S(_,I,Sn,Ce,Ta,Sa);Me&&_.errors&&(is={..._.errors,...is});let In=qn(),ls=w(B),Fn=In||ls||Ta.length>0;return{matches:I,loaderData:Is,errors:is,...Fn?{fetchers:new Map(_.fetchers)}:{}}}function re(U){if(U&&!hn(U[1]))return{[U[0]]:U[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function Ke(U){return U.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 Xt(U,z,I,oe){Na(U);let le=(oe&&oe.flushSync)===!0,Ue=y||g,xe=Fg(_.location,_.matches,x,I,z,oe?.relative),Te=dr(Ue,xe,x),Ee=Ca(Te,Ue,xe);if(Ee.active&&Ee.matches&&(Te=Ee.matches),!Te){Ua(U,z,zn(404,{pathname:xe}),{flushSync:le});return}let{path:Me,submission:Ae,error:Ce}=vS(!0,xe,oe);if(Ce){Ua(U,z,Ce,{flushSync:le});return}let mt=s.getContext?await s.getContext():new mS,We=(oe&&oe.preventScrollReset)===!0;if(Ae&&_a(Ae.formMethod)){await Yn(U,z,Me,Te,mt,Ee.active,le,We,Ae,oe&&oe.unstable_defaultShouldRevalidate);return}Re.set(U,{routeId:z,path:Me}),await vn(U,z,Me,Te,mt,Ee.active,le,We,Ae)}async function Yn(U,z,I,oe,le,Ue,xe,Te,Ee,Me){xn(),Re.delete(U);let Ae=_.fetchers.get(U);qa(U,mU(Ee,Ae),{flushSync:xe});let Ce=new AbortController,mt=ol(s.history,I,Ce.signal,Ee);if(Ue){let _t=await qs(oe,new URL(mt.url).pathname,mt.signal,U);if(_t.type==="aborted")return;if(_t.type==="error"){Ua(U,z,_t.error,{flushSync:xe});return}else if(_t.matches)oe=_t.matches;else{Ua(U,z,zn(404,{pathname:I}),{flushSync:xe});return}}let We=Tf(oe,I);if(!We.route.action&&!We.route.lazy){let _t=zn(405,{method:Ee.formMethod,pathname:I,routeId:z});Ua(U,z,_t,{flushSync:xe});return}ve.set(U,Ce);let Rt=ae,Yt=ll(f,h,mt,oe,We,c,le),ia=await Vt(mt,Yt,le,U),pt=ia[We.route.id];if(!pt){for(let _t of Yt)if(ia[_t.route.id]){pt=ia[_t.route.id];break}}if(mt.signal.aborted){ve.get(U)===Ce&&ve.delete(U);return}if(Mt.has(U)){if(ei(pt)||hn(pt)){qa(U,vo(void 0));return}}else{if(ei(pt))if(ve.delete(U),B>Rt){qa(U,vo(void 0));return}else return De.add(U),qa(U,qc(Ee)),Ya(mt,pt,!1,{fetcherSubmission:Ee,preventScrollReset:Te});if(hn(pt)){Ua(U,z,pt.error);return}}let Ta=_.navigation.location||_.location,qt=ol(s.history,Ta,Ce.signal),Sn=y||g,Sa=_.navigation.state!=="idle"?dr(Sn,_.navigation.location,x):_.matches;et(Sa,"Didn't find any matches after fetcher action");let en=++ae;ge.set(U,en);let Is=qc(Ee,pt.data);_.fetchers.set(U,Is);let{dsMatches:is,revalidatingFetchers:In}=xS(qt,le,f,h,s.history,_,Sa,Ee,Ta,c,!1,de,ye,Mt,Re,De,Sn,x,s.patchRoutesOnNavigation!=null,[We.route.id,pt],Me);In.filter(_t=>_t.key!==U).forEach(_t=>{let Do=_t.key,fl=_.fetchers.get(Do),du=qc(void 0,fl?fl.data:void 0);_.fetchers.set(Do,du),Na(Do),_t.controller&&ve.set(Do,_t.controller)}),Et({fetchers:new Map(_.fetchers)});let ls=()=>In.forEach(_t=>Na(_t.key));Ce.signal.addEventListener("abort",ls);let{loaderResults:Fn,fetcherResults:st}=await So(is,In,qt,le);if(Ce.signal.aborted)return;if(Ce.signal.removeEventListener("abort",ls),ge.delete(U),ve.delete(U),In.forEach(_t=>ve.delete(_t.key)),_.fetchers.has(U)){let _t=vo(pt.data);_.fetchers.set(U,_t)}let la=Rf(Fn);if(la)return Ya(qt,la.result,!1,{preventScrollReset:Te});if(la=Rf(st),la)return De.add(la.key),Ya(qt,la.result,!1,{preventScrollReset:Te});let{loaderData:Eo,errors:cs}=_S(_,Sa,Fn,void 0,In,st);w(en),_.navigation.state==="loading"&&en>B?(et(X,"Expected pending action"),P&&P.abort(),xa(_.navigation.location,{matches:Sa,loaderData:Eo,errors:cs,fetchers:new Map(_.fetchers)})):(Et({errors:cs,loaderData:kS(_.loaderData,Eo,Sa,cs),fetchers:new Map(_.fetchers)}),de=!1)}async function vn(U,z,I,oe,le,Ue,xe,Te,Ee){let Me=_.fetchers.get(U);qa(U,qc(Ee,Me?Me.data:void 0),{flushSync:xe});let Ae=new AbortController,Ce=ol(s.history,I,Ae.signal);if(Ue){let pt=await qs(oe,new URL(Ce.url).pathname,Ce.signal,U);if(pt.type==="aborted")return;if(pt.type==="error"){Ua(U,z,pt.error,{flushSync:xe});return}else if(pt.matches)oe=pt.matches;else{Ua(U,z,zn(404,{pathname:I}),{flushSync:xe});return}}let mt=Tf(oe,I);ve.set(U,Ae);let We=ae,Rt=ll(f,h,Ce,oe,mt,c,le),ia=(await Vt(Ce,Rt,le,U))[mt.route.id];if(ve.get(U)===Ae&&ve.delete(U),!Ce.signal.aborted){if(Mt.has(U)){qa(U,vo(void 0));return}if(ei(ia))if(B>We){qa(U,vo(void 0));return}else{De.add(U),await Ya(Ce,ia,!1,{preventScrollReset:Te});return}if(hn(ia)){Ua(U,z,ia.error);return}qa(U,vo(ia.data))}}async function Ya(U,z,I,{submission:oe,fetcherSubmission:le,preventScrollReset:Ue,replace:xe}={}){I||($?.resolve(),$=null),z.response.headers.has("X-Remix-Revalidate")&&(de=!0);let Te=z.response.headers.get("Location");et(Te,"Expected a Location header on the redirect Response"),Te=DS(Te,new URL(U.url),x,s.history);let Ee=Wc(_.location,Te,{_isRedirect:!0});if(l){let Rt=!1;if(z.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(Pg(Te)){const Yt=gw(Te,!0);Rt=Yt.origin!==o.location.origin||Ln(Yt.pathname,x)==null}if(Rt){xe?o.location.replace(Te):o.location.assign(Te);return}}P=null;let Me=xe===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ae,formAction:Ce,formEncType:mt}=_.navigation;!oe&&!le&&Ae&&Ce&&mt&&(oe=TS(_.navigation));let We=oe||le;if(Yk.has(z.response.status)&&We&&_a(We.formMethod))await Dt(Me,Ee,{submission:{...We,formAction:Te},preventScrollReset:Ue||Y,enableViewTransition:I?ce:void 0});else{let Rt=zg(Ee,oe);await Dt(Me,Ee,{overrideNavigation:Rt,fetcherSubmission:le,preventScrollReset:Ue||Y,enableViewTransition:I?ce:void 0})}}async function Vt(U,z,I,oe){let le,Ue={};try{le=await Kk(D,U,z,oe,I,!1)}catch(xe){return z.filter(Te=>Te.shouldLoad).forEach(Te=>{Ue[Te.route.id]={type:"error",error:xe}}),Ue}if(U.signal.aborted)return Ue;if(!_a(U.method))for(let xe of z){if(le[xe.route.id]?.type==="error")break;!le.hasOwnProperty(xe.route.id)&&!_.loaderData.hasOwnProperty(xe.route.id)&&(!_.errors||!_.errors.hasOwnProperty(xe.route.id))&&xe.shouldCallHandler()&&(le[xe.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${xe.route.id}`)})}for(let[xe,Te]of Object.entries(le))if(lU(Te)){let Ee=Te.result;Ue[xe]={type:"redirect",response:aU(Ee,U,xe,z,x)}}else Ue[xe]=await tU(Te);return Ue}async function So(U,z,I,oe){let le=Vt(I,U,oe,null),Ue=Promise.all(z.map(async Ee=>{if(Ee.matches&&Ee.match&&Ee.request&&Ee.controller){let Ae=(await Vt(Ee.request,Ee.matches,oe,Ee.key))[Ee.match.route.id];return{[Ee.key]:Ae}}else return Promise.resolve({[Ee.key]:{type:"error",error:zn(404,{pathname:Ee.path})}})})),xe=await le,Te=(await Ue).reduce((Ee,Me)=>Object.assign(Ee,Me),{});return{loaderResults:xe,fetcherResults:Te}}function xn(){de=!0,Re.forEach((U,z)=>{ve.has(z)&&ye.add(z),Na(z)})}function qa(U,z,I={}){_.fetchers.set(U,z),Et({fetchers:new Map(_.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function Ua(U,z,I,oe={}){let le=fr(_.matches,z);Nn(U),Et({errors:{[le.route.id]:I},fetchers:new Map(_.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function wo(U){return ft.set(U,(ft.get(U)||0)+1),Mt.has(U)&&Mt.delete(U),_.fetchers.get(U)||qk}function Bs(U,z){Na(U,z?.reason),qa(U,vo(null))}function Nn(U){let z=_.fetchers.get(U);ve.has(U)&&!(z&&z.state==="loading"&&ge.has(U))&&Na(U),Re.delete(U),ge.delete(U),De.delete(U),Mt.delete(U),ye.delete(U),_.fetchers.delete(U)}function $s(U){let z=(ft.get(U)||0)-1;z<=0?(ft.delete(U),Mt.add(U)):ft.set(U,z),Et({fetchers:new Map(_.fetchers)})}function Na(U,z){let I=ve.get(U);I&&(I.abort(z),ve.delete(U))}function Ys(U){for(let z of U){let I=wo(z),oe=vo(I.data);_.fetchers.set(z,oe)}}function qn(){let U=[],z=!1;for(let I of De){let oe=_.fetchers.get(I);et(oe,`Expected fetcher: ${I}`),oe.state==="loading"&&(De.delete(I),U.push(I),z=!0)}return Ys(U),z}function w(U){let z=[];for(let[I,oe]of ge)if(oe<U){let le=_.fetchers.get(I);et(le,`Expected fetcher: ${I}`),le.state==="loading"&&(Na(I),ge.delete(I),z.push(I))}return Ys(z),z.length>0}function V(U,z){let I=_.blockers.get(U)||Yc;return ct.get(U)!==z&&ct.set(U,z),I}function ne(U){_.blockers.delete(U),ct.delete(U)}function ue(U,z){let I=_.blockers.get(U)||Yc;et(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(U,z),Et({blockers:oe})}function we({currentLocation:U,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,Ue]=oe[oe.length-1],xe=_.blockers.get(le);if(!(xe&&xe.state==="proceeding")&&Ue({currentLocation:U,nextLocation:z,historyAction:I}))return le}function Be(U){let z=zn(404,{pathname:U}),I=y||g,{matches:oe,route:le}=Df(I);return{notFoundMatches:oe,route:le,error:z}}function ke(U,z,I){if(j=U,H=z,L=I||null,!Q&&_.navigation===Vg){Q=!0;let oe=ra(_.location,_.matches);oe!=null&&Et({restoreScrollPosition:oe})}return()=>{j=null,H=null,L=null}}function at(U,z){return L&&L(U,z.map(oe=>hk(oe,_.loaderData)))||U.key}function qe(U,z){if(j&&H){let I=at(U,z);j[I]=H()}}function ra(U,z){if(j){let I=at(U,z),oe=j[I];if(typeof oe=="number")return oe}return null}function Ca(U,z,I){if(s.patchRoutesOnNavigation)if(U){if(Object.keys(U[0].params).length>0)return{active:!0,matches:Qc(z,I,x,!0)}}else return{active:!0,matches:Qc(z,I,x,!0)||[]};return{active:!1,matches:null}}async function qs(U,z,I,oe){if(!s.patchRoutesOnNavigation)return{type:"success",matches:U};let le=U;for(;;){let Ue=y==null,xe=y||g,Te=h;try{await s.patchRoutesOnNavigation({signal:I,path:z,matches:le,fetcherKey:oe,patch:(Ae,Ce)=>{I.aborted||NS(Ae,Ce,xe,Te,f,!1)}})}catch(Ae){return{type:"error",error:Ae,partialMatches:le}}finally{Ue&&!I.aborted&&(g=[...g])}if(I.aborted)return{type:"aborted"};let Ee=dr(xe,z,x),Me=null;if(Ee){if(Object.keys(Ee[0].params).length===0)return{type:"success",matches:Ee};if(Me=Qc(xe,z,x,!0),!(Me&&le.length<Me.length&&Gs(le,Me.slice(0,le.length))))return{type:"success",matches:Ee}}if(Me||(Me=Qc(xe,z,x,!0)),!Me||Gs(le,Me))return{type:"success",matches:null};le=Me}}function Gs(U,z){return U.length===z.length&&U.every((I,oe)=>I.route.id===z[oe].route.id)}function si(U){h={},y=eu(U,f,void 0,h)}function Gn(U,z,I=!1){let oe=y==null;NS(U,z,y||g,h,f,I),oe&&(g=[...g],Et({}))}return ee={get basename(){return x},get future(){return v},get state(){return _},get routes(){return g},get window(){return o},initialize:Ka,subscribe:$n,enableScrollRestoration:ke,navigate:Wa,fetch:Xt,revalidate:dt,createHref:U=>s.history.createHref(U),encodeLocation:U=>s.history.encodeLocation(U),getFetcher:wo,resetFetcher:Bs,deleteFetcher:$s,dispose:Ne,getBlocker:V,deleteBlocker:ne,patchRoutes:Gn,_internalFetchControllers:ve,_internalSetRoutes:si,_internalSetStateDoNotUseOrYouWillBreakYourApp(U){Et(U)}},s.unstable_instrumentations&&(ee=Ak(ee,s.unstable_instrumentations.map(U=>U.router).filter(Boolean))),ee}function Fk(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 x of o)if(h.push(x),x.route.id===u){g=x;break}}else h=o,g=o[o.length-1];let y=su(c||".",$f(h),Ln(s.pathname,l)||s.pathname,f==="path");if(c==null&&(y.search=s.search,y.hash=s.hash),(c==null||c===""||c===".")&&g){let x=eb(y.search);if(g.route.index&&!x)y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index";else if(!g.route.index&&x){let D=new URLSearchParams(y.search),v=D.getAll("index");D.delete("index"),v.filter(R=>R).forEach(R=>D.append("index",R));let S=D.toString();y.search=S?`?${S}`:""}}return l!=="/"&&(y.pathname=kk({basename:l,pathname:y.pathname})),Ls(y)}function vS(s,o,l){if(!l||!Fk(l))return{path:o};if(l.formMethod&&!dU(l.formMethod))return{path:o,error:zn(405,{method:l.formMethod})};let c=()=>({path:o,error:zn(400,{type:"invalid-body"})}),f=(l.formMethod||"get").toUpperCase(),h=Aw(o);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!_a(f))return c();let v=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((S,[R,j])=>`${S}${R}=${j}
|
|
236
|
+
`,""):String(l.body);return{path:o,submission:{formMethod:f,formAction:h,formEncType:l.formEncType,formData:void 0,json:void 0,text:v}}}else if(l.formEncType==="application/json"){if(!_a(f))return c();try{let v=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:v,text:void 0}}}catch{return c()}}}et(typeof FormData=="function","FormData is not available in this environment");let g,y;if(l.formData)g=Qg(l.formData),y=l.formData;else if(l.body instanceof FormData)g=Qg(l.body),y=l.body;else if(l.body instanceof URLSearchParams)g=l.body,y=RS(g);else if(l.body==null)g=new URLSearchParams,y=new FormData;else try{g=new URLSearchParams(l.body),y=RS(g)}catch{return c()}let x={formMethod:f,formAction:h,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(_a(x.formMethod))return{path:o,submission:x};let D=No(o);return s&&D.search&&eb(D.search)&&g.append("index",""),D.search=`?${g}`,{path:Ls(D),submission:x}}function xS(s,o,l,c,u,f,h,g,y,x,D,v,S,R,j,L,H,Q,Z,te,he){let fe=te?hn(te[1])?te[1].error:te[1].data:void 0,me=u.createURL(f.location),ee=u.createURL(y),_;if(D&&f.errors){let ie=Object.keys(f.errors)[0];_=h.findIndex(W=>W.route.id===ie)}else if(te&&hn(te[1])){let ie=te[0];_=h.findIndex(W=>W.route.id===ie)-1}let X=te?te[1].statusCode:void 0,$=X&&X>=400,Y={currentUrl:me,currentParams:f.matches[0]?.params||{},nextUrl:ee,nextParams:h[0].params,...g,actionResult:fe,actionStatus:X},P=ru(h),ce=h.map((ie,W)=>{let{route:de}=ie,ye=null;if(_!=null&&W>_)ye=!1;else if(de.lazy)ye=!0;else if(!Kg(de))ye=!1;else if(D){let{shouldLoad:ge}=kw(de,f.loaderData,f.errors);ye=ge}else Xk(f.loaderData,f.matches[W],ie)&&(ye=!0);if(ye!==null)return Xg(l,c,s,P,ie,x,o,ye);let ve=!1;typeof he=="boolean"?ve=he:$?ve=!1:(v||me.pathname+me.search===ee.pathname+ee.search||me.search!==ee.search||Qk(f.matches[W],ie))&&(ve=!0);let ae={...Y,defaultShouldRevalidate:ve},B=Pc(ie,ae);return Xg(l,c,s,P,ie,x,o,B,ae,he)}),J=[];return j.forEach((ie,W)=>{if(D||!h.some(Re=>Re.route.id===ie.routeId)||R.has(W))return;let de=f.fetchers.get(W),ye=de&&de.state!=="idle"&&de.data===void 0,ve=dr(H,ie.path,Q);if(!ve){if(Z&&ye)return;J.push({key:W,routeId:ie.routeId,path:ie.path,matches:null,match:null,request:null,controller:null});return}if(L.has(W))return;let ae=Tf(ve,ie.path),B=new AbortController,ge=ol(u,ie.path,B.signal),De=null;if(S.has(W))S.delete(W),De=ll(l,c,ge,ve,ae,x,o);else if(ye)v&&(De=ll(l,c,ge,ve,ae,x,o));else{let Re;typeof he=="boolean"?Re=he:$?Re=!1:Re=v;let ft={...Y,defaultShouldRevalidate:Re};Pc(ae,ft)&&(De=ll(l,c,ge,ve,ae,x,o,ft))}De&&J.push({key:W,routeId:ie.routeId,path:ie.path,matches:De,match:ae,request:ge,controller:B})}),{dsMatches:ce,revalidatingFetchers:J}}function Kg(s){return s.loader!=null||s.middleware!=null&&s.middleware.length>0}function kw(s,o,l){if(s.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Kg(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 Xk(s,o,l){let c=!o||l.route.id!==o.route.id,u=!s.hasOwnProperty(l.route.id);return c||u}function Qk(s,o){let l=s.route.path;return s.pathname!==o.pathname||l!=null&&l.endsWith("*")&&s.params["*"]!==o.params["*"]}function Pc(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 x=c[s];et(x,`No route found to patch children into: routeId = ${s}`),x.children||(x.children=[]),h=x.children}else h=l;let g=[],y=[];if(o.forEach(x=>{let D=h.find(v=>Uw(x,v));D?y.push({existingRoute:D,newRoute:x}):g.push(x)}),g.length>0){let x=eu(g,u,[s||"_","patch",String(h?.length||"0")],c);h.push(...x)}if(f&&y.length>0)for(let x=0;x<y.length;x++){let{existingRoute:D,newRoute:v}=y[x],S=D,[R]=eu([v],u,[],{},!0);Object.assign(S,{element:R.element?R.element:S.element,errorElement:R.errorElement?R.errorElement:S.errorElement,hydrateFallbackElement:R.hydrateFallbackElement?R.hydrateFallbackElement:S.hydrateFallbackElement})}}function Uw(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=>Uw(l,u)))??!1:!1}var SS=new WeakMap,Cw=({key:s,route:o,manifest:l,mapRouteProperties:c})=>{let u=l[o.id];if(et(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 y=(async()=>{let x=dk(s),v=u[s]!==void 0&&s!=="hasErrorBoundary";if(x)$t(!x,"Route property "+s+" is not a supported lazy route property. This property will be ignored."),h[s]=Promise.resolve();else if(v)$t(!1,`Route "${u.id}" has a static property "${s}" defined. The lazy property will be ignored.`);else{let S=await f();S!=null&&(Object.assign(u,{[s]:S}),Object.assign(u,c(u)))}typeof u.lazy=="object"&&(u.lazy[s]=void 0,Object.values(u.lazy).every(S=>S===void 0)&&(u.lazy=void 0))})();return h[s]=y,y},wS=new WeakMap;function Zk(s,o,l,c,u){let f=l[s.id];if(et(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 v=(async()=>{et(typeof s.lazy=="function","No lazy route function found");let S=await s.lazy(),R={};for(let j in S){let L=S[j];if(L===void 0)continue;let H=mk(j),Z=f[j]!==void 0&&j!=="hasErrorBoundary";H?$t(!H,"Route property "+j+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Z?$t(!Z,`Route "${f.id}" has a static property "${j}" defined but its lazy function is also returning a value for this property. The lazy route property "${j}" will be ignored.`):R[j]=L}Object.assign(f,R),Object.assign(f,{...c(f),lazy:void 0})})();return wS.set(f,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let h=Object.keys(s.lazy),g=[],y;for(let D of h){if(u&&u.includes(D))continue;let v=Cw({key:D,route:s,manifest:l,mapRouteProperties:c});v&&(g.push(v),D===o&&(y=v))}let x=g.length>0?Promise.all(g).then(()=>{}):void 0;return x?.catch(()=>{}),y?.catch(()=>{}),{lazyRoutePromise:x,lazyHandlerPromise:y}}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 Jk(s){return s.matches.some(o=>o.route.middleware)?Tw(s,()=>ES(s)):ES(s)}function Tw(s,o){return Pk(s,o,c=>{if(uU(c))throw c;return c},rU,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(x=>x.route.id===u),0),Math.max(h.findIndex(x=>x.shouldCallHandler()),0)),y=fr(h,h[g].route.id).route.id;return Promise.resolve({[y]:{type:"error",result:c}})}}}async function Pk(s,o,l,c,u){let{matches:f,request:h,params:g,context:y,unstable_pattern:x}=s,D=f.flatMap(S=>S.route.middleware?S.route.middleware.map(R=>[S.route.id,R]):[]);return await jw({request:h,params:g,context:y,unstable_pattern:x},D,o,l,c,u)}async function jw(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 y=o[h];if(!y)return await l();let[x,D]=y,v,S=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");try{return v={value:await jw(s,o,l,c,u,f,h+1)},v.value}catch(R){return v={value:await f(R,x,v)},v.value}};try{let R=await D(s,S),j=R!=null?c(R):void 0;return u(j)?j:v?j??v.value:(v={value:await S()},v.value)}catch(R){return await f(R,x,v)}}function Ow(s,o,l,c,u){let f=Cw({key:"middleware",route:c.route,manifest:o,mapRouteProperties:s}),h=Zk(c.route,_a(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,y=null,x){let D=!1,v=Ow(s,o,l,u,f);return{...u,_lazyPromises:v,shouldLoad:g,shouldRevalidateArgs:y,shouldCallHandler(S){return D=!0,y?typeof x=="boolean"?Pc(u,{...y,defaultShouldRevalidate:x}):typeof S=="boolean"?Pc(u,{...y,defaultShouldRevalidate:S}):Pc(u,y):g},resolve(S){let{lazy:R,loader:j,middleware:L}=u.route,H=D||g||S&&!_a(l.method)&&(R||j),Q=L&&L.length>0&&!j&&!R;return H&&(_a(l.method)||!Q)?Wk({request:l,unstable_pattern:c,match:u,lazyHandlerPromise:v?.handler,lazyRoutePromise:v?.route,handlerOverride:S,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function ll(s,o,l,c,u,f,h,g=null){return c.map(y=>y.route.id!==u.route.id?{...y,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:Ow(s,o,l,y,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Xg(s,o,l,ru(c),y,f,h,!0,g))}async function Kk(s,o,l,c,u,f){l.some(x=>x._lazyPromises?.middleware)&&await Promise.all(l.map(x=>x._lazyPromises?.middleware));let h={request:o,unstable_pattern:ru(l),params:l[0].params,context:u,matches:l},y=await s({...h,fetcherKey:c,runClientMiddleware:x=>{let D=h;return Tw(D,()=>x({...D,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(x=>[x._lazyPromises?.handler,x._lazyPromises?.route]))}catch{}return y}async function Wk({request:s,unstable_pattern:o,match:l,lazyHandlerPromise:c,lazyRoutePromise:u,handlerOverride:f,scopedContext:h}){let g,y,x=_a(s.method),D=x?"action":"loader",v=S=>{let R,j=new Promise((Q,Z)=>R=Z);y=()=>R(),s.signal.addEventListener("abort",y);let L=Q=>typeof S!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${D}" [routeId: ${l.route.id}]`)):S({request:s,unstable_pattern:o,params:l.params,context:h},...Q!==void 0?[Q]:[]),H=(async()=>{try{return{type:"data",result:await(f?f(Z=>L(Z)):L())}}catch(Q){return{type:"error",result:Q}}})();return Promise.race([H,j])};try{let S=x?l.route.action:l.route.loader;if(c||u)if(S){let R,[j]=await Promise.all([v(S).catch(L=>{R=L}),c,u]);if(R!==void 0)throw R;g=j}else{await c;let R=x?l.route.action:l.route.loader;if(R)[g]=await Promise.all([v(R),u]);else if(D==="action"){let j=new URL(s.url),L=j.pathname+j.search;throw zn(405,{method:s.method,pathname:L,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(S)g=await v(S);else{let R=new URL(s.url),j=R.pathname+R.search;throw zn(404,{pathname:j})}}catch(S){return{type:"error",result:S}}finally{y&&s.signal.removeEventListener("abort",y)}return g}async function eU(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 tU(s){let{result:o,type:l}=s;if(Wg(o)){let c;try{c=await eU(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"?CS(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:oU(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}:CS(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 aU(s,o,l,c,u){let f=s.headers.get("Location");if(et(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Pg(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(Pg(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=Ln(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(Aw(o)).toString(),f={signal:l};if(c&&_a(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 nU(s,o,l,c=!1,u=!1){let f={},h=null,g,y=!1,x={},D=l&&hn(l[1])?l[1].error:void 0;return s.forEach(v=>{if(!(v.route.id in o))return;let S=v.route.id,R=o[S];if(et(!ei(R),"Cannot handle redirect results in processLoaderData"),hn(R)){let j=R.error;if(D!==void 0&&(j=D,D=void 0),h=h||{},u)h[S]=j;else{let L=fr(s,S);h[L.route.id]==null&&(h[L.route.id]=j)}c||(f[S]=_w),y||(y=!0,g=tu(R.error)?R.error.status:500),R.headers&&(x[S]=R.headers)}else f[S]=R.data,R.statusCode&&R.statusCode!==200&&!y&&(g=R.statusCode),R.headers&&(x[S]=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:x}}function _S(s,o,l,c,u,f){let{loaderData:h,errors:g}=nU(o,l,c);return u.filter(y=>!y.matches||y.matches.some(x=>x.shouldLoad)).forEach(y=>{let{key:x,match:D,controller:v}=y;if(v&&v.signal.aborted)return;let S=f[x];if(et(S,"Did not find corresponding fetcher result"),hn(S)){let R=fr(s.matches,D?.route.id);g&&g[R.route.id]||(g={...g,[R.route.id]:S.error}),s.fetchers.delete(x)}else if(ei(S))et(!1,"Unhandled fetcher revalidation redirect");else{let R=vo(S.data);s.fetchers.set(x,R)}}),{loaderData:h,errors:g}}function kS(s,o,l,c){let u=Object.entries(o).filter(([,f])=>f!==_w).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 US(s){return s?hn(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 zn(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 Aw(s){let o=typeof s=="string"?No(s):s;return Ls({...o,hash:""})}function sU(s,o){return s.pathname!==o.pathname||s.search!==o.search?!1:s.hash===""?o.hash!=="":s.hash===o.hash?!0:o.hash!==""}function oU(s){return new ou(s.init?.status??500,s.init?.statusText??"Internal Server Error",s.data)}function rU(s){return s!=null&&typeof s=="object"&&Object.entries(s).every(([o,l])=>typeof o=="string"&&iU(l))}function iU(s){return s!=null&&typeof s=="object"&&"type"in s&&"result"in s&&(s.type==="data"||s.type==="error")}function lU(s){return Wg(s.result)&&Dw.has(s.result.status)}function hn(s){return s.type==="error"}function ei(s){return(s&&s.type)==="redirect"}function CS(s){return typeof s=="object"&&s!=null&&"type"in s&&"data"in s&&"init"in s&&s.type==="DataWithResponseInit"}function Wg(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.headers=="object"&&typeof s.body<"u"}function cU(s){return Dw.has(s)}function uU(s){return Wg(s)&&cU(s.status)&&s.headers.has("Location")}function dU(s){return $k.has(s.toUpperCase())}function _a(s){return Hk.has(s.toUpperCase())}function eb(s){return new URLSearchParams(s).getAll("index").some(o=>o==="")}function Tf(s,o){let l=typeof o=="string"?No(o).search:o.search;if(s[s.length-1].route.index&&eb(l||""))return s[s.length-1];let c=xw(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 fU(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 mU(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 vo(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 pU(s,o){try{let l=s.sessionStorage.getItem(Rw);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 hU(s,o){if(o.size>0){let l={};for(let[c,u]of o)l[c]=[...u];try{s.sessionStorage.setItem(Rw,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 Mw=E.createContext(!1);function gU(){return E.useContext(Mw)}var tb=E.createContext({isTransitioning:!1});tb.displayName="ViewTransition";var Vw=E.createContext(new Map);Vw.displayName="Fetchers";var bU=E.createContext(null);bU.displayName="Await";var yn=E.createContext(null);yn.displayName="Navigation";var Yf=E.createContext(null);Yf.displayName="Location";var Hn=E.createContext({outlet:null,matches:[],isDataRoute:!1});Hn.displayName="Route";var ab=E.createContext(null);ab.displayName="RouteError";var zw="REACT_ROUTER_ERROR",yU="REDIRECT",vU="ROUTE_ERROR_RESPONSE";function xU(s){if(s.startsWith(`${zw}:${yU}:{`))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 NU(s){if(s.startsWith(`${zw}:${vU}:{`))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 SU(s,{relative:o}={}){et(ul(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:c}=E.useContext(yn),{hash:u,pathname:f,search:h}=lu(s,{relative:o}),g=f;return l!=="/"&&(g=f==="/"?l:ss([l,f])),c.createHref({pathname:g,search:h,hash:u})}function ul(){return E.useContext(Yf)!=null}function os(){return et(ul(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Yf).location}var Lw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hw(s){E.useContext(yn).static||E.useLayoutEffect(s)}function pr(){let{isDataRoute:s}=E.useContext(Hn);return s?zU():wU()}function wU(){et(ul(),"useNavigate() may be used only in the context of a <Router> component.");let s=E.useContext(ni),{basename:o,navigator:l}=E.useContext(yn),{matches:c}=E.useContext(Hn),{pathname:u}=os(),f=JSON.stringify($f(c)),h=E.useRef(!1);return Hw(()=>{h.current=!0}),E.useCallback((y,x={})=>{if($t(h.current,Lw),!h.current)return;if(typeof y=="number"){l.go(y);return}let D=su(y,JSON.parse(f),u,x.relative==="path");s==null&&o!=="/"&&(D.pathname=D.pathname==="/"?o:ss([o,D.pathname])),(x.replace?l.replace:l.push)(D,x.state,x)},[o,l,f,u,s])}var EU=E.createContext(null);function DU(s){let o=E.useContext(Hn).outlet;return E.useMemo(()=>o&&E.createElement(EU.Provider,{value:s},o),[o,s])}function qf(){let{matches:s}=E.useContext(Hn),o=s[s.length-1];return o?o.params:{}}function lu(s,{relative:o}={}){let{matches:l}=E.useContext(Hn),{pathname:c}=os(),u=JSON.stringify($f(l));return E.useMemo(()=>su(s,JSON.parse(u),c,o==="path"),[s,u,c,o])}function RU(s,o,l){et(ul(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=E.useContext(yn),{matches:u}=E.useContext(Hn),f=u[u.length-1],h=f?f.params:{},g=f?f.pathname:"/",y=f?f.pathnameBase:"/",x=f&&f.route;{let H=x&&x.path||"";$w(g,!x||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${H}">) 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="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let D=os(),v;v=D;let S=v.pathname||"/",R=S;if(y!=="/"){let H=y.replace(/^\//,"").split("/");R="/"+S.replace(/^\//,"").split("/").slice(H.length).join("/")}let j=dr(s,{pathname:R});return $t(x||j!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),$t(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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.`),TU(j&&j.map(H=>Object.assign({},H,{params:Object.assign({},h,H.params),pathname:ss([y,c.encodeLocation?c.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?y:ss([y,c.encodeLocation?c.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),u,l)}function _U(){let s=VU(),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 kU=E.createElement(_U,null),Bw=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=NU(s.digest);l&&(s=l)}let o=s!==void 0?E.createElement(Hn.Provider,{value:this.props.routeContext},E.createElement(ab.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?E.createElement(UU,{error:s},o):o}};Bw.contextType=Mw;var Lg=new WeakMap;function UU({children:s,error:o}){let{basename:l}=E.useContext(yn);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let c=xU(o.digest);if(c){let u=Lg.get(o);if(u)throw u;let f=Sw(c.location,l);if(Nw&&!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 CU({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(Hn.Provider,{value:s},l)}function TU(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(v=>v.route.id&&f?.[v.route.id]!==void 0);et(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 v=u[D];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=D),v.route.id){let{loaderData:S,errors:R}=c,j=v.route.loader&&!S.hasOwnProperty(v.route.id)&&(!R||R[v.route.id]===void 0);if(v.route.lazy||j){l.isStatic&&(h=!0),g>=0?u=u.slice(0,g+1):u=[u[0]];break}}}}let y=l?.onError,x=c&&y?(D,v)=>{y(D,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:ru(c.matches),errorInfo:v})}:void 0;return u.reduceRight((D,v,S)=>{let R,j=!1,L=null,H=null;c&&(R=f&&v.route.id?f[v.route.id]:void 0,L=v.route.errorElement||kU,h&&(g<0&&S===0?($w("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,H=null):g===S&&(j=!0,H=v.route.hydrateFallbackElement||null)));let Q=o.concat(u.slice(0,S+1)),Z=()=>{let te;return R?te=L:j?te=H:v.route.Component?te=E.createElement(v.route.Component,null):v.route.element?te=v.route.element:te=D,E.createElement(CU,{match:v,routeContext:{outlet:D,matches:Q,isDataRoute:c!=null},children:te})};return c&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?E.createElement(Bw,{location:c.location,revalidation:c.revalidation,component:L,error:R,children:Z(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:x}):Z()},null)}function nb(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jU(s){let o=E.useContext(ni);return et(o,nb(s)),o}function OU(s){let o=E.useContext(iu);return et(o,nb(s)),o}function AU(s){let o=E.useContext(Hn);return et(o,nb(s)),o}function sb(s){let o=AU(s),l=o.matches[o.matches.length-1];return et(l.route.id,`${s} can only be used on routes that contain a unique "id"`),l.route.id}function MU(){return sb("useRouteId")}function VU(){let s=E.useContext(ab),o=OU("useRouteError"),l=sb("useRouteError");return s!==void 0?s:o.errors?.[l]}function zU(){let{router:s}=jU("useNavigate"),o=sb("useNavigate"),l=E.useRef(!1);return Hw(()=>{l.current=!0}),E.useCallback(async(u,f={})=>{$t(l.current,Lw),l.current&&(typeof u=="number"?await s.navigate(u):await s.navigate(u,{fromRouteId:o,...f}))},[s,o])}var OS={};function $w(s,o,l){!o&&!OS[s]&&(OS[s]=!0,$t(!1,l))}var AS={};function MS(s,o){!s&&!AS[o]&&(AS[o]=!0,console.warn(o))}var LU="useOptimistic",VS=p_[LU],HU=()=>{};function BU(s){return VS?VS(s):[s,HU]}function $U(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 YU=["HydrateFallback","hydrateFallbackElement"],qU=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 GU({router:s,flushSync:o,onError:l,unstable_useTransitions:c}){c=gU()||c;let[f,h]=E.useState(s.state),[g,y]=BU(f),[x,D]=E.useState(),[v,S]=E.useState({isTransitioning:!1}),[R,j]=E.useState(),[L,H]=E.useState(),[Q,Z]=E.useState(),te=E.useRef(new Map),he=E.useCallback((_,{deletedFetchers:X,newErrors:$,flushSync:Y,viewTransitionOpts:P})=>{$&&l&&Object.values($).forEach(J=>l(J,{location:_.location,params:_.matches[0]?.params??{},unstable_pattern:ru(_.matches)})),_.fetchers.forEach((J,ie)=>{J.data!==void 0&&te.current.set(ie,J.data)}),X.forEach(J=>te.current.delete(J)),MS(Y===!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 ce=s.window!=null&&s.window.document!=null&&typeof s.window.document.startViewTransition=="function";if(MS(P==null||ce,"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||!ce){o&&Y?o(()=>h(_)):c===!1?h(_):E.startTransition(()=>{c===!0&&y(J=>zS(J,_)),h(_)});return}if(o&&Y){o(()=>{L&&(R?.resolve(),L.skipTransition()),S({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let J=s.window.document.startViewTransition(()=>{o(()=>h(_))});J.finished.finally(()=>{o(()=>{j(void 0),H(void 0),D(void 0),S({isTransitioning:!1})})}),o(()=>H(J));return}L?(R?.resolve(),L.skipTransition(),Z({state:_,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(D(_),S({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[s.window,o,L,R,c,y,l]);E.useLayoutEffect(()=>s.subscribe(he),[s,he]),E.useEffect(()=>{v.isTransitioning&&!v.flushSync&&j(new qU)},[v]),E.useEffect(()=>{if(R&&x&&s.window){let _=x,X=R.promise,$=s.window.document.startViewTransition(async()=>{c===!1?h(_):E.startTransition(()=>{c===!0&&y(Y=>zS(Y,_)),h(_)}),await X});$.finished.finally(()=>{j(void 0),H(void 0),D(void 0),S({isTransitioning:!1})}),H($)}},[x,R,s.window,c,y]),E.useEffect(()=>{R&&x&&g.location.key===x.location.key&&R.resolve()},[R,L,g.location,x]),E.useEffect(()=>{!v.isTransitioning&&Q&&(D(Q.state),S({isTransitioning:!0,flushSync:!1,currentLocation:Q.currentLocation,nextLocation:Q.nextLocation}),Z(void 0))},[v.isTransitioning,Q]);let fe=E.useMemo(()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:_=>s.navigate(_),push:(_,X,$)=>s.navigate(_,{state:X,preventScrollReset:$?.preventScrollReset}),replace:(_,X,$)=>s.navigate(_,{replace:!0,state:X,preventScrollReset:$?.preventScrollReset})}),[s]),me=s.basename||"/",ee=E.useMemo(()=>({router:s,navigator:fe,static:!1,basename:me,onError:l}),[s,fe,me,l]);return E.createElement(E.Fragment,null,E.createElement(ni.Provider,{value:ee},E.createElement(iu.Provider,{value:g},E.createElement(Vw.Provider,{value:te.current},E.createElement(tb.Provider,{value:v},E.createElement(XU,{basename:me,location:g.location,navigationType:g.historyAction,navigator:fe,unstable_useTransitions:c},E.createElement(IU,{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 IU=E.memo(FU);function FU({routes:s,future:o,state:l,isStatic:c,onError:u}){return RU(s,void 0,{state:l,isStatic:c,onError:u})}function LS({to:s,replace:o,state:l,relative:c}){et(ul(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=E.useContext(yn);$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(Hn),{pathname:h}=os(),g=pr(),y=su(s,$f(f),h,c==="path"),x=JSON.stringify(y);return E.useEffect(()=>{g(JSON.parse(x),{replace:o,state:l,relative:c})},[g,x,c,o,l]),null}function Yw(s){return DU(s.context)}function XU({basename:s="/",children:o=null,location:l,navigationType:c="POP",navigator:u,static:f=!1,unstable_useTransitions:h}){et(!ul(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=s.replace(/^\/*/,"/"),y=E.useMemo(()=>({basename:g,navigator:u,static:f,unstable_useTransitions:h,future:{}}),[g,u,f,h]);typeof l=="string"&&(l=No(l));let{pathname:x="/",search:D="",hash:v="",state:S=null,key:R="default",unstable_mask:j}=l,L=E.useMemo(()=>{let H=Ln(x,g);return H==null?null:{location:{pathname:H,search:D,hash:v,state:S,key:R,unstable_mask:j},navigationType:c}},[g,x,D,v,S,R,c,j]);return $t(L!=null,`<Router basename="${g}"> is not able to match the URL "${x}${D}${v}" because it does not start with the basename, so the <Router> won't render anything.`),L==null?null:E.createElement(yn.Provider,{value:y},E.createElement(Yf.Provider,{children:o,value:L}))}var jf="get",Of="application/x-www-form-urlencoded";function Gf(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function QU(s){return Gf(s)&&s.tagName.toLowerCase()==="button"}function ZU(s){return Gf(s)&&s.tagName.toLowerCase()==="form"}function JU(s){return Gf(s)&&s.tagName.toLowerCase()==="input"}function PU(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function KU(s,o){return s.button===0&&(!o||o==="_self")&&!PU(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 WU(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 eC(){if(_f===null)try{new FormData(document.createElement("form"),0),_f=!1}catch{_f=!0}return _f}var tC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hg(s){return s!=null&&!tC.has(s)?($t(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Of}"`),null):s}function aC(s,o){let l,c,u,f,h;if(ZU(s)){let g=s.getAttribute("action");c=g?Ln(g,o):null,l=s.getAttribute("method")||jf,u=Hg(s.getAttribute("enctype"))||Of,f=new FormData(s)}else if(QU(s)||JU(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 y=s.getAttribute("formaction")||g.getAttribute("action");if(c=y?Ln(y,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),!eC()){let{name:x,type:D,value:v}=s;if(D==="image"){let S=x?`${x}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else x&&f.append(x,v)}}else{if(Gf(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 ob(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function nC(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&&Ln(u.pathname,o)==="/"?u.pathname=`${o.replace(/\/$/,"")}/_root.${c}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${c}`,u}async function sC(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 oC(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 rC(s,o,l){let c=await Promise.all(s.map(async u=>{let f=o.routes[u.route.id];if(f){let h=await sC(f,l);return h.links?h.links():[]}return[]}));return uC(c.flat(1).filter(oC).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=(y,x)=>l[x]?y.route.id!==l[x].route.id:!0,g=(y,x)=>l[x].pathname!==y.pathname||l[x].route.path?.endsWith("*")&&l[x].params["*"]!==y.params["*"];return f==="assets"?o.filter((y,x)=>h(y,x)||g(y,x)):f==="data"?o.filter((y,x)=>{let D=c.routes[y.route.id];if(!D||!D.hasLoader)return!1;if(h(y,x)||g(y,x))return!0;if(y.route.shouldRevalidate){let v=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function iC(s,o,{includeHydrateFallback:l}={}){return lC(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 lC(s){return[...new Set(s)]}function cC(s){let o={},l=Object.keys(s).sort();for(let c of l)o[c]=s[c];return o}function uC(s,o){let l=new Set;return new Set(o),s.reduce((c,u)=>{let f=JSON.stringify(cC(u));return l.has(f)||(l.add(f),c.push({key:f,link:u})),c},[])}function qw(){let s=E.useContext(ni);return ob(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function dC(){let s=E.useContext(iu);return ob(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var rb=E.createContext(void 0);rb.displayName="FrameworkContext";function Gw(){let s=E.useContext(rb);return ob(s,"You must render this element inside a <HydratedRouter> element"),s}function fC(s,o){let l=E.useContext(rb),[c,u]=E.useState(!1),[f,h]=E.useState(!1),{onFocus:g,onBlur:y,onMouseEnter:x,onMouseLeave:D,onTouchStart:v}=o,S=E.useRef(null);E.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let L=Q=>{Q.forEach(Z=>{h(Z.isIntersecting)})},H=new IntersectionObserver(L,{threshold:.5});return S.current&&H.observe(S.current),()=>{H.disconnect()}}},[s]),E.useEffect(()=>{if(c){let L=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(L)}}},[c]);let R=()=>{u(!0)},j=()=>{u(!1),h(!1)};return l?s!=="intent"?[f,S,{}]:[f,S,{onFocus:Gc(g,R),onBlur:Gc(y,j),onMouseEnter:Gc(x,R),onMouseLeave:Gc(D,j),onTouchStart:Gc(v,R)}]:[!1,S,{}]}function Gc(s,o){return l=>{s&&s(l),l.defaultPrevented||o(l)}}function mC({page:s,...o}){let{router:l}=qw(),c=E.useMemo(()=>dr(l.routes,s,l.basename),[l.routes,s,l.basename]);return c?E.createElement(hC,{page:s,matches:c,...o}):null}function pC(s){let{manifest:o,routeModules:l}=Gw(),[c,u]=E.useState([]);return E.useEffect(()=>{let f=!1;return rC(s,o,l).then(h=>{f||u(h)}),()=>{f=!0}},[s,o,l]),c}function hC({page:s,matches:o,...l}){let c=os(),{future:u,manifest:f,routeModules:h}=Gw(),{basename:g}=qw(),{loaderData:y,matches:x}=dC(),D=E.useMemo(()=>HS(s,o,x,f,c,"data"),[s,o,x,f,c]),v=E.useMemo(()=>HS(s,o,x,f,c,"assets"),[s,o,x,f,c]),S=E.useMemo(()=>{if(s===c.pathname+c.search+c.hash)return[];let L=new Set,H=!1;if(o.forEach(Z=>{let te=f.routes[Z.route.id];!te||!te.hasLoader||(!D.some(he=>he.route.id===Z.route.id)&&Z.route.id in y&&h[Z.route.id]?.shouldRevalidate||te.hasClientLoader?H=!0:L.add(Z.route.id))}),L.size===0)return[];let Q=nC(s,g,u.unstable_trailingSlashAwareDataRequests,"data");return H&&L.size>0&&Q.searchParams.set("_routes",o.filter(Z=>L.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[Q.pathname+Q.search]},[g,u.unstable_trailingSlashAwareDataRequests,y,c,f,D,o,s,h]),R=E.useMemo(()=>iC(v,f),[v,f]),j=pC(v);return E.createElement(E.Fragment,null,S.map(L=>E.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...l})),R.map(L=>E.createElement("link",{key:L,rel:"modulepreload",href:L,...l})),j.map(({key:L,link:H})=>E.createElement("link",{key:L,nonce:l.nonce,...H,crossOrigin:H.crossOrigin??l.crossOrigin})))}function gC(...s){return o=>{s.forEach(l=>{typeof l=="function"?l(o):l!=null&&(l.current=o)})}}var bC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{bC&&(window.__reactRouterVersion="7.13.1")}catch{}function yC(s,o){return Ik({basename:o?.basename,getContext:o?.getContext,future:o?.future,history:ik({window:o?.window}),hydrationData:vC(),routes:s,mapRouteProperties:$U,hydrationRouteProperties:YU,dataStrategy:o?.dataStrategy,patchRoutesOnNavigation:o?.patchRoutesOnNavigation,window:o?.window,unstable_instrumentations:o?.unstable_instrumentations}).initialize()}function vC(){let s=window?.__staticRouterHydrationData;return s&&s.errors&&(s={...s,errors:xC(s.errors)}),s}function xC(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 Iw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pa=E.forwardRef(function({onClick:o,discover:l="render",prefetch:c="none",relative:u,reloadDocument:f,replace:h,unstable_mask:g,state:y,target:x,to:D,preventScrollReset:v,viewTransition:S,unstable_defaultShouldRevalidate:R,...j},L){let{basename:H,navigator:Q,unstable_useTransitions:Z}=E.useContext(yn),te=typeof D=="string"&&Iw.test(D),he=Sw(D,H);D=he.to;let fe=SU(D,{relative:u}),me=os(),ee=null;if(g){let ie=su(g,[],me.unstable_mask?me.unstable_mask.pathname:"/",!0);H!=="/"&&(ie.pathname=ie.pathname==="/"?H:ss([H,ie.pathname])),ee=Q.createHref(ie)}let[_,X,$]=fC(c,j),Y=wC(D,{replace:h,unstable_mask:g,state:y,target:x,preventScrollReset:v,relative:u,viewTransition:S,unstable_defaultShouldRevalidate:R,unstable_useTransitions:Z});function P(ie){o&&o(ie),ie.defaultPrevented||Y(ie)}let ce=!(he.isExternal||f),J=E.createElement("a",{...j,...$,href:(ce?ee:void 0)||he.absoluteURL||fe,onClick:ce?P:o,ref:gC(L,X),target:x,"data-discover":!te&&l==="render"?"true":void 0});return _&&!te?E.createElement(E.Fragment,null,J,E.createElement(mC,{page:fe})):J});Pa.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:y,...x},D){let v=lu(h,{relative:x.relative}),S=os(),R=E.useContext(iu),{navigator:j,basename:L}=E.useContext(yn),H=R!=null&&UC(v)&&g===!0,Q=j.encodeLocation?j.encodeLocation(v).pathname:v.pathname,Z=S.pathname,te=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;l||(Z=Z.toLowerCase(),te=te?te.toLowerCase():null,Q=Q.toLowerCase()),te&&L&&(te=Ln(te,L)||te);const he=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let fe=Z===Q||!u&&Z.startsWith(Q)&&Z.charAt(he)==="/",me=te!=null&&(te===Q||!u&&te.startsWith(Q)&&te.charAt(Q.length)==="/"),ee={isActive:fe,isPending:me,isTransitioning:H},_=fe?o:void 0,X;typeof c=="function"?X=c(ee):X=[c,fe?"active":null,me?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let $=typeof f=="function"?f(ee):f;return E.createElement(Pa,{...x,"aria-current":_,className:X,ref:D,style:$,to:h,viewTransition:g},typeof y=="function"?y(ee):y)});au.displayName="NavLink";var NC=E.forwardRef(({discover:s="render",fetcherKey:o,navigate:l,reloadDocument:c,replace:u,state:f,method:h=jf,action:g,onSubmit:y,relative:x,preventScrollReset:D,viewTransition:v,unstable_defaultShouldRevalidate:S,...R},j)=>{let{unstable_useTransitions:L}=E.useContext(yn),H=_C(),Q=kC(g,{relative:x}),Z=h.toLowerCase()==="get"?"get":"post",te=typeof g=="string"&&Iw.test(g),he=fe=>{if(y&&y(fe),fe.defaultPrevented)return;fe.preventDefault();let me=fe.nativeEvent.submitter,ee=me?.getAttribute("formmethod")||h,_=()=>H(me||fe.currentTarget,{fetcherKey:o,method:ee,navigate:l,replace:u,state:f,relative:x,preventScrollReset:D,viewTransition:v,unstable_defaultShouldRevalidate:S});L&&l!==!1?E.startTransition(()=>_()):_()};return E.createElement("form",{ref:j,method:Z,action:Q,onSubmit:c?y:he,...R,"data-discover":!te&&s==="render"?"true":void 0})});NC.displayName="Form";function SC(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fw(s){let o=E.useContext(ni);return et(o,SC(s)),o}function wC(s,{target:o,replace:l,unstable_mask:c,state:u,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:y,unstable_useTransitions:x}={}){let D=pr(),v=os(),S=lu(s,{relative:h});return E.useCallback(R=>{if(KU(R,o)){R.preventDefault();let j=l!==void 0?l:Ls(v)===Ls(S),L=()=>D(s,{replace:j,unstable_mask:c,state:u,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:y});x?E.startTransition(()=>L()):L()}},[v,D,S,l,c,u,o,s,f,h,g,y,x])}function EC(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=os(),u=E.useMemo(()=>WU(c.search,l.current?null:o.current),[c.search]),f=pr(),h=E.useCallback((g,y)=>{const x=Zg(typeof g=="function"?g(new URLSearchParams(u)):g);l.current=!0,f("?"+x,y)},[f,u]);return[u,h]}var DC=0,RC=()=>`__${String(++DC)}__`;function _C(){let{router:s}=Fw("useSubmit"),{basename:o}=E.useContext(yn),l=MU(),c=s.fetch,u=s.navigate;return E.useCallback(async(f,h={})=>{let{action:g,method:y,encType:x,formData:D,body:v}=aC(f,o);if(h.navigate===!1){let S=h.fetcherKey||RC();await c(S,l,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:v,formMethod:h.method||y,formEncType:h.encType||x,flushSync:h.flushSync})}else await u(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:v,formMethod:h.method||y,formEncType:h.encType||x,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,u,o,l])}function kC(s,{relative:o}={}){let{basename:l}=E.useContext(yn),c=E.useContext(Hn);et(c,"useFormAction must be used inside a RouteContext");let[u]=c.matches.slice(-1),f={...lu(s||".",{relative:o})},h=os();if(s==null){f.search=h.search;let g=new URLSearchParams(f.search),y=g.getAll("index");if(y.some(D=>D==="")){g.delete("index"),y.filter(v=>v).forEach(v=>g.append("index",v));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:ss([l,f.pathname])),Ls(f)}function UC(s,{relative:o}={}){let l=E.useContext(tb);et(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Fw("useViewTransitionState"),u=lu(s,{relative:o});if(!l.isTransitioning)return!1;let f=Ln(l.currentLocation.pathname,c)||l.currentLocation.pathname,h=Ln(l.nextLocation.pathname,c)||l.nextLocation.pathname;return Lf(u.pathname,h)!=null||Lf(u.pathname,f)!=null}const Xw=(...s)=>s.filter((o,l,c)=>!!o&&o.trim()!==""&&c.indexOf(o)===l).join(" ").trim();const CC=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const TC=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,l,c)=>c?c.toUpperCase():l.toLowerCase());const BS=s=>{const o=TC(s);return o.charAt(0).toUpperCase()+o.slice(1)};var jC={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 OC=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const AC=E.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:u="",children:f,iconNode:h,...g},y)=>E.createElement("svg",{ref:y,...jC,width:o,height:o,stroke:s,strokeWidth:c?Number(l)*24/Number(o):l,className:Xw("lucide",u),...!f&&!OC(g)&&{"aria-hidden":"true"},...g},[...h.map(([x,D])=>E.createElement(x,D)),...Array.isArray(f)?f:[f]]));const tt=(s,o)=>{const l=E.forwardRef(({className:c,...u},f)=>E.createElement(AC,{ref:f,iconNode:o,className:Xw(`lucide-${CC(BS(s))}`,`lucide-${s}`,c),...u}));return l.displayName=BS(s),l};const MC=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Qw=tt("arrow-right",MC);const VC=[["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"}]],zC=tt("boxes",VC);const LC=[["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"}]],HC=tt("brain",LC);const BC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Hf=tt("check",BC);const $C=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ib=tt("chevron-down",$C);const YC=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xo=tt("chevron-right",YC);const qC=[["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=tt("circle-alert",qC);const GC=[["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=tt("copy",GC);const IC=[["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"}]],FC=tt("database",IC);const XC=[["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=tt("download",XC);const QC=[["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"}]],ZC=tt("ellipsis",QC);const JC=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],PC=tt("external-link",JC);const KC=[["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"}]],WC=tt("file-spreadsheet",KC);const eT=[["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=tt("file-text",eT);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"}]],Zw=tt("file",tT);const aT=[["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=tt("folder-git-2",aT);const nT=[["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"}]],sT=tt("folder-input",nT);const oT=[["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"}]],rT=tt("folder-open",oT);const iT=[["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"}]],Jw=tt("folder-plus",iT);const lT=[["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"}]],gn=tt("folder",lT);const cT=[["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=tt("git-branch",cT);const uT=[["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"}]],dT=tt("globe",uT);const fT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],mT=tt("info",fT);const pT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],bn=tt("loader-circle",pT);const hT=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],gT=tt("menu",hT);const bT=[["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"}]],yT=tt("monitor",bT);const vT=[["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"}]],xT=tt("moon",vT);const NT=[["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"}]],If=tt("package",NT);const ST=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],wT=tt("panel-left",ST);const ET=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Pw=tt("plus",ET);const DT=[["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"}]],RT=tt("refresh-cw",DT);const _T=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],kT=tt("search",_T);const UT=[["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"}]],CT=tt("settings",UT);const TT=[["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"}]],jT=tt("share-2",TT);const OT=[["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"}]],AT=tt("sparkles",OT);const MT=[["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"}]],VT=tt("sun",MT);const zT=[["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"}]],LT=tt("upload",zT);const HT=[["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"}]],BT=tt("users",HT);const $T=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ub=tt("x",$T),GS=s=>{let o;const l=new Set,c=(x,D)=>{const v=typeof x=="function"?x(o):x;if(!Object.is(v,o)){const S=o;o=D??(typeof v!="object"||v===null)?v:Object.assign({},o,v),l.forEach(R=>R(o,S))}},u=()=>o,g={setState:c,getState:u,getInitialState:()=>y,subscribe:x=>(l.add(x),()=>l.delete(x))},y=o=s(c,u,g);return g},YT=(s=>s?GS(s):GS),qT=s=>s;function GT(s,o=qT){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 IS=s=>{const o=YT(s),l=c=>GT(o,c);return Object.assign(l,o),l},Ff=(s=>s?IS(s):IS),IT="/api/v1";class Af extends Error{constructor(o,l,c){super(c),this.status=o,this.code=l,this.name="ApiError"}}async function kf(s,o,l,c){let u=`${IT}${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",y=h.statusText;try{const x=await h.json();x.code&&(g=x.code),x.message&&(y=x.message)}catch{}throw new Af(h.status,g,y)}return h.json()}const va={get(s,o){return kf("GET",s,void 0,o)},post(s,o){return kf("POST",s,o)},put(s,o){return kf("PUT",s,o)},delete(s){return kf("DELETE",s)}},FT=3e4,XT=1e3,QT=3e4;class ZT{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()}))},FT)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const o=Math.min(XT*2**this.reconnectAttempt,QT);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open()},o)}clearTimers(){this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}}const Hs=new ZT,ai=Ff(s=>({status:"disconnected",onlineCount:0,connections:[],setStatus:o=>s({status:o}),fetchDaemonStatus:async()=>{try{const o=await va.get("/daemons/status");s({onlineCount:o.online_count,connections:o.connections})}catch{}}})),JT=s=>s==="connecting"?"disconnected":s;Hs.onStatusChange(s=>{ai.getState().setStatus(JT(s))});Hs.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}})});Hs.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 Xf="lib_cloud_default",ka=Ff((s,o)=>({libraries:[],loading:!1,error:null,fetchLibraries:async()=>{s({loading:!0,error:null});try{const l=await va.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 va.post("/libraries",l);return s(u=>({libraries:[...u.libraries,c]})),c},deleteLibrary:async l=>{await va.delete(`/libraries/${l}`),s(c=>({libraries:c.libraries.filter(u=>u.id!==l)}))},updateLibraryName:async(l,c)=>{const u=await va.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 va.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]},PT=s=>s.libraries.filter(o=>o.type==="daemon");Hs.on("ws:daemon:status",s=>{const o=s;o.lib_id&&ka.getState()._updateLibraryOnline(o.lib_id,o.is_online),ka.getState().fetchLibraries()});Hs.on("ws:daemon:connected",s=>{const o=s;o.lib_id&&ka.getState()._updateLibraryOnline(o.lib_id,!0),ka.getState().fetchLibraries()});Hs.on("ws:library:updated",s=>{const o=s;ka.getState()._refreshLibrary(o.library_id)});const FS=s=>Symbol.iterator in s,XS=s=>"entries"in s,QS=(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},KT=(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 WT(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:FS(s)&&FS(o)?XS(s)&&XS(o)?QS(s,o):KT(s,o):QS({entries:()=>Object.entries(s)},{entries:()=>Object.entries(o)})}function dl(s){const o=rl.useRef(void 0);return l=>{const c=s(l);return WT(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(ka(dl(PT)).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 ZS=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function ej(){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(Pa,{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:ZS.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(Pa,{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(gT,{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:ZS.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(Pa,{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 tj(s){return s==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s==="system"?"dark":s}function Kw(s){if(typeof window>"u")return;const o=tj(s);document.documentElement.setAttribute("data-theme",o),localStorage.setItem("theme",s)}function aj(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const Ww=Ff(s=>({theme:aj(),setTheme:o=>{Kw(o),s({theme:o})}}));let JS=!1;function nj(){if(JS||typeof window>"u")return;JS=!0;const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{const{theme:l}=Ww.getState();l==="system"&&Kw("system")};s.addEventListener("change",o)}nj();const sj=[{mode:"light",icon:VT,labelKey:"footer.theme.light"},{mode:"dark",icon:xT,labelKey:"footer.theme.dark"},{mode:"system",icon:yT,labelKey:"footer.theme.system"}];function oj(){const{t:s}=He(),{theme:o,setTheme:l}=Ww();return m.jsxDEV("div",{className:"flex items-center gap-1",children:sj.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 rj(){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)}const ij="_brandIcon_1c7st_1",lj="_iconPulse_1c7st_35",PS={brandIcon:ij,iconPulse:lj};function e4(){const{t:s}=He(),o=new Date().getFullYear();return m.jsxDEV("footer",{className:"border-t border-c4a-border-subtle bg-c4a-bg-base 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:PS.brandIcon,children:m.jsxDEV("span",{className:PS.iconPulse,children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:16,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:15,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:19,columnNumber:13},this),m.jsxDEV("span",{className:"font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:s("footer.tagline")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:22,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:18,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:14,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(oj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:31,columnNumber:13},this),m.jsxDEV(rj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:32,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:30,columnNumber:11},this),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/Footer.tsx",lineNumber:34,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:29,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:12,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:11,columnNumber:5},this)}function cj(){return m.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[m.jsxDEV(ej,{},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(Yw,{},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(e4,{},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 uj({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-base/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(wT,{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(Pa,{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(Pa,{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(Pa,{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 t4({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 x=u.trim();x&&x!==s?o(x):l()},[u,s,o,l]),y=E.useCallback(x=>{x.key==="Enter"?(x.preventDefault(),g()):x.key==="Escape"&&l()},[g,l]);return m.jsxDEV("div",{className:"flex items-center gap-1",children:[m.jsxDEV("input",{ref:h,value:u,onChange:x=>f(x.target.value),onKeyDown:y,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:x=>{x.stopPropagation(),g()},className:"rounded p-0.5 text-c4a-success hover:bg-c4a-bg-hover",children:m.jsxDEV(Hf,{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:x=>{x.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 a4({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 n4="lib_cloud_default",dj=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"}`,fj=[{to:"/studio/modeling",icon:zC,i18nKey:"studio.sidebar.modeling"},{to:"/studio/brain",icon:HC,i18nKey:"studio.sidebar.brain"},{to:"/studio/discovery",icon:kT,i18nKey:"studio.sidebar.discovery"},{to:"/studio/sharing",icon:jT,i18nKey:"studio.sidebar.sharing"},{to:"/studio/collaboration",icon:BT,i18nKey:"studio.sidebar.collaboration"},{to:"/studio/settings",icon:CT,i18nKey:"studio.sidebar.settings"}];function mj({state:s,onClose:o,onRename:l,onDelete:c}){const{t:u}=He(),f=E.useRef(null);E.useEffect(()=>{const g=y=>{f.current&&!f.current.contains(y.target)&&o()};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[o]);const h=s.library.id===n4;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:99,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:109,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:94,columnNumber:5},this)}function KS({onNavigate:s}){const{t:o}=He(),l=os(),c=pr(),u=ka(dl(cu)),f=ka(Y=>Y.updateLibraryName),h=ka(Y=>Y.deleteLibrary),g=l.pathname.startsWith("/studio/sources")||l.pathname.startsWith("/studio/source/"),[y,x]=E.useState(g),[D,v]=E.useState(null),[S,R]=E.useState(null),[j,L]=E.useState(null),[H,Q]=E.useState(null);E.useEffect(()=>{g&&x(!0)},[g]);const Z=E.useCallback((Y,P)=>{Y.preventDefault(),v({x:Y.clientX,y:Y.clientY,library:P})},[]),te=E.useCallback(()=>v(null),[]),he=E.useCallback(Y=>{R(Y.id),L(null)},[]),fe=E.useCallback(async Y=>{if(S)try{await f(S,Y),R(null),L(null)}catch(P){const ce=P instanceof Error?P.message:String(P);L(ce)}},[S,f]),me=E.useCallback(()=>{R(null),L(null)},[]),ee=E.useCallback(Y=>{Q(Y)},[]),_=E.useCallback(async()=>{if(H){try{await h(H.id),l.pathname.includes(H.id)&&c("/studio/sources")}catch{}Q(null)}},[H,h,l.pathname,c]),X=E.useCallback(()=>{Q(null)},[]),$=Y=>Y.id===n4?o("sources.library.default_cloud_name"):Y.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:()=>x(Y=>!Y),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(FC,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:227,columnNumber:13},this),o("studio.sidebar.sources"),m.jsxDEV("span",{role:"button",tabIndex:0,onClick:Y=>{Y.stopPropagation(),c("/studio/sources/add-client"),s?.()},onKeyDown:Y=>{(Y.key==="Enter"||Y.key===" ")&&(Y.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(Pw,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:247,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:229,columnNumber:13},this),m.jsxDEV("span",{className:"ml-auto shrink-0",children:y?m.jsxDEV(ib,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:251,columnNumber:17},this):m.jsxDEV(xo,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:253,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:249,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:219,columnNumber:11},this),y&&m.jsxDEV("div",{className:"mt-0.5 flex flex-col gap-0.5",children:u.map(Y=>{const P=S===Y.id,ce=$(Y);return P?m.jsxDEV("div",{className:"py-1.5 pl-8 pr-3",onClick:J=>J.stopPropagation(),children:m.jsxDEV(t4,{currentName:ce,onConfirm:fe,onCancel:me,error:j},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:271,columnNumber:23},this)},Y.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:266,columnNumber:21},this):m.jsxDEV(au,{to:`/studio/sources/${Y.id}`,onClick:s,onContextMenu:J=>Z(J,Y),className:({isActive:J})=>`flex items-center gap-2 rounded py-1.5 pl-8 pr-3 font-mono text-xs tracking-tight transition-colors duration-150 ${J?"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:ce},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:295,columnNumber:21},this),Y.type==="daemon"&&m.jsxDEV("span",{className:`ml-auto h-[7px] w-[7px] shrink-0 rounded-full ${Y.is_online?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:297,columnNumber:23},this)]},Y.id,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:282,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:259,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:218,columnNumber:9},this),fj.map(({to:Y,icon:P,i18nKey:ce})=>m.jsxDEV(au,{to:Y,onClick:s,className:({isActive:J})=>dj(J),children:[m.jsxDEV(P,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:318,columnNumber:13},this),o(ce)]},Y,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:312,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:216,columnNumber:7},this),D&&m.jsxDEV(mj,{state:D,onClose:te,onRename:he,onDelete:ee},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:325,columnNumber:9},this),H&&m.jsxDEV(a4,{target:{type:"client",name:$(H)},onConfirm:_,onCancel:X},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:334,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:215,columnNumber:5},this)}function pj(){const[s,o]=E.useState(!1);return E.useEffect(()=>{ka.getState().fetchLibraries(),ai.getState().fetchDaemonStatus()},[]),E.useEffect(()=>Hs.onStatusChange(l=>{l==="connected"&&(ka.getState().fetchLibraries(),ai.getState().fetchDaemonStatus())}),[]),m.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[m.jsxDEV(uj,{onToggleSidebar:()=>o(!s)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:30,columnNumber:7},this),m.jsxDEV("div",{className:"flex flex-1",children:[m.jsxDEV("div",{className:"hidden md:block",children:m.jsxDEV(KS,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:35,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:34,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:41,columnNumber:13},this),m.jsxDEV("div",{className:"fixed bottom-0 left-0 top-14 z-30 md:hidden",children:m.jsxDEV(KS,{onNavigate:()=>o(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:46,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:45,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:40,columnNumber:11},this),m.jsxDEV("main",{className:"flex flex-1 flex-col overflow-x-hidden",children:m.jsxDEV(Yw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:52,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:32,columnNumber:7},this),m.jsxDEV(e4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:56,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:29,columnNumber:5},this)}function hj(){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(Pa,{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(Qw,{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 Bn({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 gj(){const{t:s}=He();return m.jsxDEV(Bn,{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 bj(){const{t:s}=He();return m.jsxDEV(Bn,{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 yj(){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(Pa,{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 vj(){const{t:s}=He();return m.jsxDEV(Bn,{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 xj(){const{t:s}=He();return m.jsxDEV(Bn,{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 Nj(){const{t:s}=He();return m.jsxDEV(Bn,{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 Sj(){const{t:s}=He();return m.jsxDEV(Bn,{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 wj(){const{t:s}=He();return m.jsxDEV(Bn,{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 Ej(){const{t:s}=He();return m.jsxDEV(Bn,{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 Dj(){const{t:s}=He();return m.jsxDEV(Bn,{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 Rj(){const{t:s}=He();return m.jsxDEV(Bn,{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 _j(){const{t:s}=He();return m.jsxDEV(Bn,{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 kj(){const{t:s}=He();return m.jsxDEV(Bn,{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 Qf=Ff(s=>({sources:[],currentSource:null,loading:!1,error:null,total:0,limit:100,offset:0,filter:"all",fetchSources:async({library_id:o,parent_id:l,limit:c,offset:u})=>{s({loading:!0,error:null});try{const f={library_id:o};l!=null&&(f.parent_id=l),c!==void 0&&(f.limit=String(c)),u!==void 0&&(f.offset=String(u));const h=await va.get("/sources",f);s({sources:h.items,total:h.total,limit:h.limit,offset:h.offset,loading:!1})}catch(f){s({error:f instanceof Error?f.message:"Failed to load sources",loading:!1})}},fetchChildren:async o=>await va.get(`/sources/${o}/children`),fetchSource:async o=>{s({loading:!0,error:null});try{const l=await va.get(`/sources/${o}`);s({currentSource:l,loading:!1})}catch(l){s({error:l instanceof Error?l.message:"Failed to load source",loading:!1})}},createSource:async o=>await va.post("/sources",o),updateSource:async(o,l)=>{const c=await va.put(`/sources/${o}`,l);s(u=>({sources:u.sources.map(f=>f.id===o?c:f),currentSource:u.currentSource?.id===o?c:u.currentSource}))},deleteSource:async o=>{await va.delete(`/sources/${o}`),s(l=>({sources:l.sources.filter(c=>c.id!==o),currentSource:l.currentSource?.id===o?null:l.currentSource}))},setFilter:o=>s({filter:o}),clearSources:()=>s({sources:[],currentSource:null,total:0,offset:0})}));function uu({segments:s}){const{t:o}=He(),l=[{label:o("sources.breadcrumb.sources")},...s],c=l.length>4?[l[0],{label:"..."},l[l.length-2],l[l.length-1]]:l;return m.jsxDEV("nav",{className:"flex min-h-8 items-center gap-1 font-mono text-xs text-c4a-text-muted",children:c.map((u,f)=>{const h=f===c.length-1;return m.jsxDEV("span",{className:"flex items-center gap-1",children:[f>0&&m.jsxDEV(xo,{size:12,className:"text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:40,columnNumber:15},this),u.to&&!h?m.jsxDEV(Pa,{to:u.to,className:"cursor-pointer transition-colors hover:text-c4a-text-primary",children:u.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:43,columnNumber:15},this):m.jsxDEV("span",{className:h?"text-c4a-text-primary":"",children:u.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:50,columnNumber:15},this)]},f,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:38,columnNumber:11},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:34,columnNumber:5},this)}const Uj=["all","indexed","not_indexed"];function Cj({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:Uj.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 Tj({source:s,isDaemonLibrary:o}){return s.kind==="folder"?o?m.jsxDEV(rT,{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:33,columnNumber:7},this):m.jsxDEV(gn,{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):s.source_type==="code"?m.jsxDEV(If,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:39,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:41,columnNumber:10},this)}function WS({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:58,columnNumber:5},this)}function jj({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:71,columnNumber:5},this)}function Oj({source:s,childCount:o,isDaemonLibrary:l,isRepoRoot:c,onClick:u,onRename:f,onMoveTo:h,onDelete:g}){const{t:y}=He(),[x,D]=E.useState(!1),[v,S]=E.useState(!1),[R,j]=E.useState(null),L=E.useRef(null);E.useEffect(()=>{if(!x)return;const ee=_=>{L.current&&!L.current.contains(_.target)&&D(!1)};return document.addEventListener("mousedown",ee),()=>document.removeEventListener("mousedown",ee)},[x]);const H=E.useCallback(ee=>{ee.preventDefault(),D(!0)},[]),Q=E.useCallback(async ee=>{if(!f)return;const _=await f(ee);_?j(_):(S(!1),j(null))},[f]),Z=E.useCallback(()=>{S(!1),j(null)},[]),te=!c&&f,he=s.kind==="source"&&!c&&h,fe=g,me=te||he||fe;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:v?void 0:u,onContextMenu:v?void 0:H,children:[m.jsxDEV(Tj,{source:s,isDaemonLibrary:l??!1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:142,columnNumber:7},this),v?m.jsxDEV("div",{className:"min-w-0 flex-1",onClick:ee=>ee.stopPropagation(),children:m.jsxDEV(t4,{currentName:s.name,onConfirm:Q,onCancel:Z,error:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:146,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:145,columnNumber:9},this):m.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-sm text-c4a-text-primary",children:s.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:154,columnNumber:9},this),m.jsxDEV("div",{className:"hidden items-center gap-2 md:flex",children:[s.kind==="folder"&&o!==void 0&&m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:y("common.items",{count:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:162,columnNumber:11},this),s.kind==="source"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV(WS,{status:s.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:168,columnNumber:13},this),s.source_type&&m.jsxDEV(jj,{type:s.source_type},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:169,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:167,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:160,columnNumber:7},this),m.jsxDEV("div",{className:"flex items-center gap-2 md:hidden",children:s.kind==="source"&&m.jsxDEV(WS,{status:s.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:177,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:175,columnNumber:7},this),me&&m.jsxDEV("div",{className:"relative",ref:L,children:[m.jsxDEV("button",{onClick:ee=>{ee.stopPropagation(),D(_=>!_)},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(ZC,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:191,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:184,columnNumber:11},this),x&&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:[te&&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:ee=>{ee.stopPropagation(),D(!1),S(!0)},children:y("sources.actions.rename")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:197,columnNumber:17},this),he&&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:ee=>{ee.stopPropagation(),D(!1),h()},children:y("sources.actions.move_to")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:209,columnNumber:17},this),fe&&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:ee=>{ee.stopPropagation(),D(!1),g()},children:y("sources.actions.delete")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:221,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:195,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:183,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:137,columnNumber:5},this)}function Aj({libraryId:s,currentParentId:o,sourceName:l,sourceId:c,onConfirm:u,onCancel:f,error:h}){const{t:g}=He(),y=E.useRef(null),[x,D]=E.useState(null),[v,S]=E.useState([]),[R,j]=E.useState(!0),L=E.useCallback((me,ee)=>{if(ee===null)return"/";for(const _ of me){if(_.id===ee)return _.name;if(_.children.length>0){const X=L(_.children,ee);if(X!==ee)return X}}return ee},[]),H=E.useMemo(()=>o===null?"/":L(v,o),[o,v,L]),Q=E.useMemo(()=>x===null?"/":L(v,x),[x,v,L]);E.useEffect(()=>{const me=ee=>{ee.key==="Escape"&&f()};return document.addEventListener("keydown",me),()=>document.removeEventListener("keydown",me)},[f]),E.useEffect(()=>{Z()},[s]);const Z=async()=>{try{const ee=(await va.get("/sources",{library_id:s,kind:"folder",limit:"500"})).items.filter(X=>X.id!==c),_=ee.filter(X=>X.parent_id===null).map(X=>te(X,ee));S(_)}catch{}finally{j(!1)}},te=(me,ee)=>{const _=ee.filter(X=>X.parent_id===me.id).map(X=>te(X,ee));return{id:me.id,name:me.name,children:_,expanded:!1,loaded:!0}},he=E.useCallback(me=>{S(ee=>o4(ee,me))},[]),fe=E.useCallback(me=>{y.current&&!y.current.contains(me.target)&&f()},[f]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:fe,children:m.jsxDEV("div",{ref:y,className:"mx-4 w-full max-w-sm 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:g("sources.actions.move_to")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:137,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4 max-h-60 overflow-y-auto",children:R?m.jsxDEV("p",{className:"text-xs text-c4a-text-muted",children:g("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:143,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:()=>D(null),className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm ${x===null?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"} ${o===null?"opacity-40 pointer-events-none":""}`,children:[m.jsxDEV(gn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:155,columnNumber:17},this),"/ (",g("sources.breadcrumb.sources"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:147,columnNumber:15},this),v.map(me=>m.jsxDEV(s4,{node:me,depth:1,selected:x,currentParentId:o,onSelect:D,onToggle:he},me.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:158,columnNumber:17},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:145,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:141,columnNumber:9},this),!R&&m.jsxDEV("div",{className:"mt-3 space-y-1 border-t border-c4a-border-subtle pt-3 text-xs",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-16 text-c4a-text-muted",children:g("sources.move.current")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:176,columnNumber:15},this),m.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:[H,"/",l]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:179,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:175,columnNumber:13},this),x!==void 0&&m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-16 text-c4a-text-muted",children:g("sources.move.target")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:185,columnNumber:17},this),m.jsxDEV("span",{className:"font-mono text-c4a-accent",children:[Q,"/",l]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:188,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:184,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:174,columnNumber:11},this),h&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:h},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:197,columnNumber:11},this),m.jsxDEV("div",{className:"mt-4 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:f,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:g("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:201,columnNumber:11},this),m.jsxDEV("button",{onClick:()=>u(x),className:"rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:g("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:207,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:200,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:133,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:129,columnNumber:5},this)}function s4({node:s,depth:o,selected:l,currentParentId:c,onSelect:u,onToggle:f}){const h=s.id===c,g=l===s.id,y=s.children.length>0;return m.jsxDEV("div",{children:[m.jsxDEV("button",{onClick:()=>{h||u(s.id)},className:`flex w-full items-center gap-1 rounded px-2 py-1.5 text-left text-sm ${g?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"} ${h?"opacity-40 pointer-events-none":""}`,style:{paddingLeft:`${o*16+8}px`},children:[y?m.jsxDEV("span",{onClick:x=>{x.stopPropagation(),f(s.id)},className:"shrink-0 cursor-pointer",children:s.expanded?m.jsxDEV(ib,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:260,columnNumber:15},this):m.jsxDEV(xo,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:262,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:252,columnNumber:11},this):m.jsxDEV("span",{className:"w-3 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:266,columnNumber:11},this),m.jsxDEV(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:268,columnNumber:9},this),m.jsxDEV("span",{className:"truncate",children:s.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:269,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:240,columnNumber:7},this),s.expanded&&s.children.map(x=>m.jsxDEV(s4,{node:x,depth:o+1,selected:l,currentParentId:c,onSelect:u,onToggle:f},x.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:273,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:239,columnNumber:5},this)}function o4(s,o){return s.map(l=>l.id===o?{...l,expanded:!l.expanded}:l.children.length>0?{...l,children:o4(l.children,o)}:l)}function Mj({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 v=S=>{S.key==="Escape"&&o()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[o]);const y=E.useCallback(v=>{g.current&&!g.current.contains(v.target)&&o()},[o]),x=E.useCallback(()=>{const v=u.trim();v&&s(v)},[u,s]),D=E.useCallback(v=>{v.key==="Enter"&&(v.preventDefault(),x())},[x]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:y,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(Jw,{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:v=>f(v.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:x,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 ew({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,s,m.jsxDEV(ib,{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 Vj({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(AT,{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 zj({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:62,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:67,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:76,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:85,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:74,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:96,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:103,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:95,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:61,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:60,columnNumber:5},this)}function Lj(){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:124,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:127,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:123,columnNumber:5},this)}function Hj(){const{t:s}=He(),o=pr(),{libId:l}=qf(),[c,u]=EC(),f=c.get("path")||null,g=ka(dl(cu)).find(Le=>Le.id===l),{sources:y,loading:x,filter:D,fetchSources:v,fetchChildren:S,createSource:R,updateSource:j,deleteSource:L,setFilter:H}=Qf(),[Q,Z]=E.useState(!1),[te,he]=E.useState(null),[fe,me]=E.useState(null),[ee,_]=E.useState(null),[X,$]=E.useState(null),[Y,P]=E.useState(null),[ce,J]=E.useState(!1),[ie,W]=E.useState({}),[de,ye]=E.useState([]);E.useEffect(()=>{l&&v({library_id:l,parent_id:f})},[l,f,v]),E.useEffect(()=>{if(!f){ye([]);return}(async()=>{const Le=[];let re=f;for(;re;)try{const Ke=await fetch(`/api/v1/sources/${re}`);if(!Ke.ok)break;const Xt=await Ke.json();Le.unshift(Xt),re=Xt.parent_id}catch{break}ye(Le)})()},[f]),E.useEffect(()=>{y.filter(re=>re.kind==="folder").forEach(async re=>{try{const Ke=await S(re.id),Xt=Ke.filter(Vt=>Vt.kind==="folder").length,Yn=Ke.filter(Vt=>Vt.kind==="source").length,vn=Ke.filter(Vt=>Vt.kind==="source"&&Vt.source_type==="code").length,Ya=Ke.filter(Vt=>Vt.kind==="source"&&Vt.source_type==="doc").length;W(Vt=>({...Vt,[re.id]:{folders:Xt,sources:Yn,codeSources:vn,docSources:Ya}}))}catch{}})},[y,S]);const ve=E.useMemo(()=>{const re=[...y.filter(Ke=>f?Ke.parent_id===f:Ke.parent_id===null)].sort((Ke,Xt)=>Ke.kind!==Xt.kind?Ke.kind==="folder"?-1:1:Ke.name.localeCompare(Xt.name));return D==="all"?re:re.filter(Ke=>Ke.kind==="folder"?!0:D==="indexed"?Ke.index_status==="indexed":Ke.index_status==="none")},[y,D,f]),ae=g?.type==="daemon",B=g?.type==="cloud",ge=ae&&f===null,De=ae&&f!==null,Re=E.useMemo(()=>{if(!g)return[];const Le=[{label:g.id===Xf?s("sources.library.default_cloud_name"):g.name,to:`/studio/sources/${g.id}`}];return de.forEach(re=>{Le.push({label:re.name,to:`/studio/sources/${g.id}?path=${re.id}`})}),Le},[g,de,s]),ft=E.useCallback(async Le=>{if(l)try{await R({library_id:l,parent_id:f,kind:"folder",name:Le}),Z(!1),he(null),v({library_id:l,parent_id:f})}catch(re){re instanceof Af&&re.status===409&&he(s("sources.error.name_conflict",{name:Le}))}},[l,f,R,v,s]),Mt=E.useCallback(Le=>{Le.kind==="folder"?u({path:Le.id}):o(`/studio/source/${Le.id}`)},[o,u]),ct=E.useCallback(async(Le,re)=>{try{return await j(Le.id,{name:re}),v({library_id:l,parent_id:f}),null}catch(Ke){return Ke instanceof Af&&Ke.status===409?s("sources.error.name_conflict",{name:re}):null}},[l,f,j,v,s]),oa=E.useCallback(Le=>{if(_(Le.id),Le.kind==="folder"){const re=Le.parent_id===null,Ke=ie[Le.id];me(ae&&re?{type:"repo",name:Le.name,libraryName:g.name,...Ke!==void 0?{packageCount:Ke.codeSources,docCount:Ke.docSources}:{}}:{type:"folder",name:Le.name,...Ke!==void 0?{folderCount:Ke.folders,sourceCount:Ke.sources}:{}})}else me({type:"resource",name:Le.name})},[ae,g,ie]),Ft=E.useCallback(async()=>{if(!(!ee||!l))try{await L(ee),me(null),_(null),v({library_id:l,parent_id:f})}catch{}},[ee,l,f,L,v]),Ka=E.useCallback(async Le=>{if(!(!X||!l))try{await j(X.id,{parent_id:Le}),$(null),P(null),v({library_id:l,parent_id:f})}catch(re){re instanceof Af&&re.status===409&&P(s("sources.error.name_conflict",{name:X.name}))}},[X,l,f,j,v,s]),Ne=E.useCallback(()=>{l&&o(`/studio/sources/import/${l}`)},[l,o]),$n=E.useCallback(()=>{l&&o(`/studio/sources/import-dir/${l}`)},[l,o]);if(!g)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:389,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:388,columnNumber:7},this);const Et=y.length===0&&D==="all"&&!x&&!f,xa=ve.filter(Le=>Le.kind==="source").length===0&&D==="indexed"&&!x,Wa=!ge,dt=B,Dt=ge,rs=De;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(uu,{segments:Re},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:412,columnNumber:9},this),m.jsxDEV("div",{className:"ml-auto flex items-center gap-2",children:[dt&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV(ew,{label:s("sources.actions.upload"),icon:m.jsxDEV(LT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:419,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:423,columnNumber:27},this),onClick:()=>J(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:417,columnNumber:15},this),m.jsxDEV(ew,{label:s("sources.actions.add"),icon:m.jsxDEV(Pw,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:430,columnNumber:23},this),items:[{label:s("sources.actions.add_folder"),icon:m.jsxDEV(Jw,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:434,columnNumber:27},this),onClick:()=>Z(!0)},{label:s("sources.actions.add_web"),icon:m.jsxDEV(dT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:439,columnNumber:27},this),onClick:()=>J(!0)},{label:s("sources.actions.add_feishu"),icon:m.jsxDEV(WC,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:444,columnNumber:27},this),onClick:()=>J(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:428,columnNumber:15},this),m.jsxDEV("button",{onClick:()=>J(!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:453,columnNumber:17},this),s("sources.actions.import_repo_url")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:449,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:416,columnNumber:13},this),Dt&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:$n,disabled:!g.is_online,title:g.is_online?void 0:s("sources.import.daemon_offline",{name:g.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(sT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:472,columnNumber:17},this),s("sources.actions.import_dir")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:462,columnNumber:15},this),m.jsxDEV("button",{onClick:Ne,disabled:!g.is_online,title:g.is_online?void 0:s("sources.import.daemon_offline",{name:g.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:485,columnNumber:17},this),s("sources.actions.import_repo")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:475,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:461,columnNumber:13},this),rs&&null,Wa&&m.jsxDEV(Cj,{value:D,onChange:H},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:495,columnNumber:26},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:413,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:411,columnNumber:7},this),Et?m.jsxDEV(zj,{library:g,onNewFolder:()=>Z(!0),...ae?{onImportRepo:Ne,onImportDir:$n}:{},...B?{onUpgrade:()=>J(!0)}:{}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:501,columnNumber:9},this):m.jsxDEV("div",{className:"mt-4 flex flex-1 flex-col gap-0.5",children:x?m.jsxDEV("p",{className:"py-8 text-center text-xs 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:510,columnNumber:13},this):ve.length===0?xa?m.jsxDEV(Lj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:515,columnNumber:15},this):B&&f?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:s("sources.empty.folder.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:519,columnNumber:19},this),m.jsxDEV("div",{className:"mt-6 flex justify-center gap-3",children:[m.jsxDEV("button",{onClick:()=>Z(!0),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:s("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:523,columnNumber:21},this),m.jsxDEV("button",{onClick:()=>J(!0),className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover",children:s("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:529,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:522,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:518,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:517,columnNumber:15},this):f?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:s("sources.empty.folder.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:541,columnNumber:19},this),ae&&m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:s("sources.empty.folder.daemon_description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:545,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:540,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:539,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:552,columnNumber:15},this):ve.map(Le=>{const re=ae&&Le.parent_id===null&&Le.kind==="folder";return m.jsxDEV(Oj,{source:Le,...ie[Le.id]!==void 0?{childCount:ie[Le.id].folders+ie[Le.id].sources}:{},isDaemonLibrary:ae??!1,isRepoRoot:re,onClick:()=>Mt(Le),...De?{}:{onRename:Ke=>ct(Le,Ke)},...Le.kind==="source"&&!De?{onMoveTo:()=>$(Le)}:{},...De?{}:{onDelete:()=>oa(Le)}},Le.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:563,columnNumber:17},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:508,columnNumber:9},this),Q&&m.jsxDEV(Mj,{onConfirm:ft,onCancel:()=>{Z(!1),he(null)},error:te},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:588,columnNumber:9},this),ce&&m.jsxDEV(Vj,{onClose:()=>J(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:600,columnNumber:9},this),fe&&m.jsxDEV(a4,{target:fe,onConfirm:Ft,onCancel:()=>{me(null),_(null)}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:605,columnNumber:9},this),X&&l&&m.jsxDEV(Aj,{libraryId:l,currentParentId:X.parent_id,sourceName:X.name,sourceId:X.id,onConfirm:Ka,onCancel:()=>{$(null),P(null)},error:Y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:617,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:409,columnNumber:5},this)}function r4(){const{t:s}=He(),[o,l]=E.useState(!1),[c,u]=E.useState(null),f=E.useRef(),h=E.useRef(),g=window.location.host,y=`c4a-daemon --server ${g} --allow <dir1> <dir2>`,x=`c4a-daemon --server ${g}`,D=E.useCallback((R,j)=>{navigator.clipboard.writeText(R),u(j),clearTimeout(f.current),f.current=setTimeout(()=>u(null),1500)},[]),v=E.useCallback(()=>{clearTimeout(h.current),l(!0)},[]),S=E.useCallback(()=>{h.current=setTimeout(()=>l(!1),150)},[]);return m.jsxDEV("span",{className:"relative",onMouseEnter:v,onMouseLeave:S,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:v,onMouseLeave:S,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:y},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(y,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(Hf,{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:x},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(x,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(Hf,{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 i4({open:s,onClose:o,rpc:l,onNavigate:c,defaultPath:u}){const{t:f}=He(),[h,g]=E.useState(u??""),[y,x]=E.useState(null),[D,v]=E.useState(!1),S=E.useRef(null);E.useEffect(()=>{u&&!h&&g(u)},[u]);const R=E.useCallback(async()=>{const L=h.trim();if(L){v(!0),x(null);try{(await l("fs/exists",{path:L})).exists?(c(L),g(u??""),x(null),o()):x(f("sources.import.wildcard_path_not_found"))}catch(H){x(H instanceof Error?H.message:String(H))}finally{v(!1)}}},[h,l,f,c,o]),j=E.useCallback(()=>{g(u??""),x(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:j,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:S,type:"text",value:h,onChange:L=>{g(L.target.value),x(null)},onKeyDown:L=>{L.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(bn,{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(Qw,{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),y&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:y},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 Bj(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 $j(s,o){return`${s}/tree/${encodeURIComponent(o)}`}function Yj(s,o){return`${s}/commit/${o}`}function qj({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]==="*",[y,x]=E.useState(h),D=!h||g?"/":c?.[0]??"/",[v,S]=E.useState(h?"":D),[R,j]=E.useState([]),[L,H]=E.useState(!1),[Q,Z]=E.useState(null),[te,he]=E.useState(null);E.useEffect(()=>{if(!g)return;let ae=!1;return(async()=>{try{const B=await s("fs/homeDir",{});ae||he(B.home_dir)}catch{}})(),()=>{ae=!0}},[g,s]);const[fe,me]=E.useState(!1),ee=E.useCallback(async ae=>{H(!0),Z(null);try{const B=await s("fs/listTree",{path:ae,depth:2});j(B.entries||[]),S(ae),x(!1)}catch(B){const ge=B instanceof Error?B.message:String(B);Z(ge)}finally{H(!1)}},[s]);E.useEffect(()=>{h||ee(D)},[ee,D,h]);const[_,X]=E.useState(null),[$,Y]=E.useState(null),[P,ce]=E.useState(!1);E.useEffect(()=>{if(!o){Y(null),ce(!1);return}Y(null),ce(!0);let ae=!1;return(async()=>{try{const B=await s("fs/repoStatus",{path:o});ae||(Y({branch:B.branch,hash:B.head_hash,remoteUrl:B.remote_url}),ce(!1))}catch{ae||(Y(null),ce(!1))}})(),()=>{ae=!0}},[o,s]);const J=E.useMemo(()=>$?.remoteUrl?Bj($.remoteUrl):null,[$?.remoteUrl]),ie=E.useMemo(()=>new Set(u??[]),[u]),W=E.useCallback(ae=>{if(ae.type==="directory")if(ae.is_git_repo){if(ie.has(ae.path))return;X(null),l(ae.path,ae.name)}else X(ae.path),ee(ae.path)},[l,ee,ie]),de=E.useCallback(()=>{if(h&&!g&&c.some(ge=>ge===v)){x(!0),S(""),j([]),Z(null),X(null);return}if(g&&v.split("/").filter(Boolean).length<=1){x(!0),S(""),j([]),Z(null),X(null);return}const ae=v.split("/").slice(0,-1).join("/")||"/";X(null),ee(ae)},[v,ee,h,g,c]),ye=E.useMemo(()=>R.filter(ae=>ae.type==="directory").sort((ae,B)=>ae.is_git_repo&&!B.is_git_repo?-1:!ae.is_git_repo&&B.is_git_repo?1:ae.name.localeCompare(B.name)),[R]),ve=E.useMemo(()=>R.filter(ae=>ae.type==="file").sort((ae,B)=>ae.name.localeCompare(B.name)),[R]);return m.jsxDEV("div",{className:"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:[y?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:223,columnNumber:13},this),m.jsxDEV(r4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:224,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:222,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 shrink truncate font-mono text-xs text-c4a-text-muted",children:v},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:227,columnNumber:11},this),o&&P?m.jsxDEV("div",{className:"flex shrink-0 items-center gap-1.5 font-mono text-xs text-c4a-accent",children:[m.jsxDEV(bn,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:233,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:234,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:232,columnNumber:11},this):o&&$?m.jsxDEV("div",{className:"flex shrink-0 items-center gap-1.5 font-mono text-xs text-c4a-accent",children:[J?m.jsxDEV("a",{href:J.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:underline",title:J.repoUrl,children:[m.jsxDEV("span",{children:J.slug},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:246,columnNumber:17},this),m.jsxDEV(PC,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:247,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",{children:o.split("/").pop()||o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:250,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:252,columnNumber:13},this),J?m.jsxDEV("a",{href:$j(J.repoUrl,$.branch),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:underline",children:[m.jsxDEV(qS,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:260,columnNumber:17},this),m.jsxDEV("span",{children:$.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:261,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:254,columnNumber:15},this):m.jsxDEV("span",{className:"flex items-center gap-1",children:[m.jsxDEV(qS,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:265,columnNumber:17},this),m.jsxDEV("span",{children:$.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:266,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:264,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:269,columnNumber:13},this),J?m.jsxDEV("a",{href:Yj(J.repoUrl,$.hash),target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:$.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:271,columnNumber:15},this):m.jsxDEV("span",{children:$.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:280,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:237,columnNumber:11},this):!o&&g&&y?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/StepSelectRepo.tsx",lineNumber:284,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:220,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:293,columnNumber:7},this),y?g?m.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:te&&m.jsxDEV("button",{onClick:()=>ee(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(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:304,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/StepSelectRepo.tsx",lineNumber:307,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:305,columnNumber:17},this),m.jsxDEV(xo,{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:311,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:300,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:298,columnNumber:11},this):m.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:c.map(ae=>m.jsxDEV("button",{onClick:()=>ee(ae),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(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:324,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:ae},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:325,columnNumber:17},this),m.jsxDEV(xo,{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:326,columnNumber:17},this)]},ae,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:319,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:317,columnNumber:11},this):L?m.jsxDEV("div",{className:"flex items-center gap-2 py-8",children:[m.jsxDEV(bn,{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:336,columnNumber:11},this),m.jsxDEV("span",{className:"text-xs text-c4a-text-muted",children:f("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:337,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:335,columnNumber:9},this):Q?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:Q},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:340,columnNumber:9},this):m.jsxDEV("div",{className:"mt-3 max-h-80 overflow-y-auto",children:[v!=="/"&&m.jsxDEV("button",{onClick:de,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",children:[m.jsxDEV(gn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:349,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:350,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:345,columnNumber:13},this),ye.map(ae=>{const B=ae.is_git_repo&&ie.has(ae.path),ge=ae.is_git_repo?cb:gn;return m.jsxDEV("div",{className:`flex w-full items-center rounded text-left text-sm transition-colors ${B?"cursor-not-allowed opacity-50":o===ae.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:()=>W(ae),disabled:B,className:"flex flex-1 items-center gap-2 px-2 py-1.5",children:[m.jsxDEV(ge,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:374,columnNumber:17},this),m.jsxDEV("span",{className:"flex-1 truncate text-left",children:ae.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:375,columnNumber:17},this),B&&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:377,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:369,columnNumber:15},this),!B&&m.jsxDEV("button",{onClick:De=>{De.stopPropagation(),ee(ae.path)},className:"shrink-0 rounded p-1.5 text-c4a-text-muted transition-colors hover:bg-c4a-accent/10 hover:text-c4a-accent",title:ae.path,children:m.jsxDEV(xo,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:388,columnNumber:19},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:383,columnNumber:17},this)]},ae.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:359,columnNumber:13},this)}),ve.map(ae=>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(Zw,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:401,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:ae.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:402,columnNumber:15},this)]},ae.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:397,columnNumber:13},this)),R.length===0&&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:407,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:342,columnNumber:9},this),_&&!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:416,columnNumber:9},this),m.jsxDEV(i4,{open:fe,onClose:()=>me(!1),rpc:s,onNavigate:ee,defaultPath:te??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:422,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:219,columnNumber:5},this)}const Gj=/\.md$/i,Ij=(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 Fj({rpc:s,repoPath:o,onReady:l,onBusyChange:c}){const{t:u}=He(),[f,h]=E.useState(""),[g,y]=E.useState([]),[x,D]=E.useState(""),[v,S]=E.useState([]),[R,j]=E.useState(!1),[L,H]=E.useState(!0),[Q,Z]=E.useState(!1),[te,he]=E.useState([]),[fe,me]=E.useState([]),[,ee]=E.useState([]),_=E.useCallback(async(Y,P)=>{Z(!0),c?.(!0);try{const ce=await s("fs/repoScan",{path:o,hash:Y}),J=ce.files||[],ie=ce.manifests||[];ee(J);const W=new Map;for(const B of ie)W.set(B.path,B);const de=[];for(const B of ie){const ge=B.path.split("/"),De=ge.slice(0,-1).join("/")||".",Re=ge.length===1||B.path==="package.json",ft=De==="."?o.split("/").pop()||"root":ge[ge.length-2]||De,Mt=Ij(B.path,B.content);de.push({name:Mt||ft,path:De,isRoot:Re})}const ye=J.filter(B=>Gj.test(B.path)).filter(B=>B.path.split("/").length<=2).map(B=>B.path);me(ye),he(de);const ve=P?.branch??f,ae=P?.isDirty??R;l({branch:ve,commit:Y,isDirty:ae,repoFiles:J,packages:de,mdFiles:ye,repoFileContents:ie})}catch{}finally{Z(!1),c?.(!1)}},[s,o,f,R,l,c]);E.useEffect(()=>{(async()=>{H(!0),c?.(!0);try{const Y=await s("fs/repoStatus",{path:o});h(Y.branch),y(Y.branches||[Y.branch]),D(Y.head_hash),j(Y.is_dirty),S(Y.commits||[{hash:Y.head_hash,message:"HEAD"}]),await _(Y.head_hash,{branch:Y.branch,isDirty:Y.is_dirty})}catch{}finally{H(!1),c?.(!1)}})()},[o]),E.useEffect(()=>{l({branch:f,commit:x,isDirty:R,packages:te,mdFiles:fe,repoFileContents:[]})},[f,x,R]);const X=E.useCallback(async Y=>{h(Y);try{const P=await s("fs/repoStatus",{path:o});D(P.head_hash),await _(P.head_hash)}catch{}},[o,s,_]),$=f&&f!=="main"&&f!=="master";return L?m.jsxDEV("div",{className:"flex items-center justify-center py-12",children:m.jsxDEV(bn,{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:203,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:202,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:214,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:217,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:213,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:222,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:225,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:221,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:212,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:234,columnNumber:13},this),m.jsxDEV("select",{value:f,onChange:Y=>X(Y.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(Y=>m.jsxDEV("option",{value:Y,children:Y},Y,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:243,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:237,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:233,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:250,columnNumber:13},this),m.jsxDEV("select",{value:x,onChange:Y=>{D(Y.target.value),_(Y.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:v.map(Y=>m.jsxDEV("option",{value:Y.hash,children:[Y.hash.slice(0,7)," - ",Y.message.slice(0,60)]},Y.hash,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:262,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:253,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:249,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:232,columnNumber:9},this),m.jsxDEV("div",{className:"mt-3 space-y-1",children:[$&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-info",children:[m.jsxDEV(mT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:274,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:273,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:280,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:279,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:271,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:211,columnNumber:7},this),m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:Q?m.jsxDEV("div",{className:"flex items-center gap-2 py-4",children:[m.jsxDEV(bn,{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:291,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:292,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:290,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:fe.length}):u("sources.import.no_packages")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:298,columnNumber:13},this),te.length>0&&m.jsxDEV("div",{className:"mt-3 max-h-60 space-y-1 overflow-y-auto",children:te.map(Y=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-xs",children:[m.jsxDEV(If,{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:314,columnNumber:21},this),m.jsxDEV("span",{className:"text-c4a-text-primary",children:Y.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:315,columnNumber:21},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:Y.path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:316,columnNumber:21},this),Y.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:318,columnNumber:23},this)]},Y.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:310,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:308,columnNumber:15},this),fe.length>0&&m.jsxDEV("div",{className:"mt-3 space-y-1",children:fe.map(Y=>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:334,columnNumber:21},this),m.jsxDEV("span",{className:"text-c4a-text-primary",children:Y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:338,columnNumber:21},this)]},Y,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:330,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:328,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:297,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:288,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:209,columnNumber:5},this)}function Xj({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(bn,{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 Qj(){const{t:s}=He(),o=pr(),{libId:l}=qf(),u=ka(dl(cu)).find(_=>_.id===l),f=Qf(_=>_.createSource),[h,g]=E.useState(1),[y,x]=E.useState(!1),[D,v]=E.useState(!1),[S,R]=E.useState({repoPath:"",repoName:"",branch:"",branches:[],commit:"",commits:[],isDirty:!1,repoFiles:[],packages:[],mdFiles:[],repoFileContents:[]}),j=u?.is_online??!1,[L,H]=E.useState([]);E.useEffect(()=>{if(!l)return;let _=!1;return(async()=>{try{const X=await va.get("/sources",{library_id:l,limit:"500"});if(_)return;const $=X.items.filter(Y=>!Y.parent_id).map(Y=>{const P=Y.metadata;return typeof P?.local_path=="string"?P.local_path:null}).filter(Y=>Y!==null);H($)}catch{}})(),()=>{_=!0}},[l]);const Q=E.useMemo(()=>{const _=u?.config;return!_||!Array.isArray(_.allowed_paths)?[]:_.allowed_paths},[u]),Z=E.useCallback(async(_,X)=>{if(!l)throw new Error("No library");const $=await va.post(`/libraries/${l}/rpc`,{method:_,params:X});if($.error){const Y=$.error;throw new Error(Y.message??JSON.stringify($.error))}return $.result??$},[l]),te=E.useCallback((_,X)=>{R($=>({...$,repoPath:_,repoName:X}))},[]),he=E.useCallback(_=>{R(X=>({...X,..._}))},[]),fe=E.useCallback(async()=>{if(l){x(!0);try{const _=await f({library_id:l,repo_name:S.repoName,repo_root_path:S.repoPath,repo_branch:S.branch,repo_commit:S.commit,repo_files:S.repoFiles.map($=>$.path),repo_file_contents:S.repoFileContents}),X=Array.isArray(_)?_[0]:_;X?.kind==="folder"?o(`/studio/sources/${l}?path=${X.id}`):o(`/studio/sources/${l}`)}catch{x(!1)}}},[l,S,f,o]),me=E.useMemo(()=>h===1?!!S.repoPath:h===2?S.repoFiles.length>0:!0,[h,S]),ee=E.useMemo(()=>u?[{label:u.id===Xf?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(uu,{segments:ee},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:191,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex w-full 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:195,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:196,columnNumber:9},this),m.jsxDEV(tw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:199,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:200,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:201,columnNumber:9},this),m.jsxDEV(tw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:204,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:205,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:206,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:194,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex-1",children:j?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(qj,{rpc:Z,selectedPath:S.repoPath,onSelect:te,allowedPaths:Q,importedPaths:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:220,columnNumber:15},this),h===2&&m.jsxDEV(Fj,{rpc:Z,repoPath:S.repoPath,onReady:he,onBusyChange:v},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:229,columnNumber:15},this),h===3&&m.jsxDEV(Xj,{importState:S,libraryName:u.name,importing:y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:237,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:218,columnNumber:11},this):m.jsxDEV(Zj,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:214,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:212,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 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:248,columnNumber:7},this),j&&m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:[h>1&&m.jsxDEV("button",{onClick:()=>g(_=>_-1),disabled:y||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:256,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:265,columnNumber:13},this):m.jsxDEV("button",{onClick:fe,disabled:y||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:[y&&m.jsxDEV(bn,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:278,columnNumber:29},this),s(y?"sources.import.importing":"sources.import.step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:273,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:254,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.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/ImportRepo.tsx",lineNumber:184,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:183,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:298,columnNumber:5},this)}function tw(){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:311,columnNumber:10},this)}function Zj({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:322,columnNumber:7},this),m.jsxDEV(Pa,{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:325,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:321,columnNumber:5},this)}const aw=(s,o)=>{let l=0,c=0,u=0;const f=[],h=g=>{for(const y of g)if(y.type==="directory")c++,y.is_git_repo&&u++,y.children&&h(y.children);else if(l++,/\.md$/i.test(y.name)){const x=y.path.startsWith(o)?y.path.slice(o.length).replace(/^\//,""):y.name;f.push(x)}};return h(s),{files:l,dirs:c,gitRepos:u,mdFiles:f}};function Jj({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]==="*",[y,x]=E.useState(h),D=!h||g?"/":c?.[0]??"/",[v,S]=E.useState(h?"":D),[R,j]=E.useState([]),[L,H]=E.useState(!1),[Q,Z]=E.useState(null),te=E.useMemo(()=>new Set(u??[]),[u]),[he,fe]=E.useState(null);E.useEffect(()=>{if(!g)return;let J=!1;return(async()=>{try{const ie=await s("fs/homeDir",{});J||fe(ie.home_dir)}catch{}})(),()=>{J=!0}},[g,s]);const[me,ee]=E.useState(!1),_=E.useCallback(async J=>{H(!0),Z(null);try{const ie=await s("fs/listTree",{path:J,depth:2});j(ie.entries||[]),S(J),x(!1)}catch(ie){const W=ie instanceof Error?ie.message:String(ie);Z(W)}finally{H(!1)}},[s]);E.useEffect(()=>{h||_(D)},[_,D,h]);const X=E.useCallback(J=>{if(J.type!=="directory"||te.has(J.path))return;const ie=aw(J.children||[],J.path);l(J.path,J.name,ie),_(J.path)},[l,_,te]),$=E.useCallback(()=>{if(h&&!g&&c.some(W=>W===v)){x(!0),S(""),j([]),Z(null);return}if(g&&v.split("/").filter(Boolean).length<=1){x(!0),S(""),j([]),Z(null);return}const J=v.split("/").slice(0,-1).join("/")||"/";_(J)},[v,_,h,g,c]);E.useEffect(()=>{if(v&&!y&&R.length>=0&&!L){const J=v.split("/").pop()||v,ie=aw(R,v);l(v,J,ie)}},[v,y,R,L]);const Y=E.useMemo(()=>o?o.split("/").pop()||o:"",[o]),P=E.useMemo(()=>R.filter(J=>J.type==="directory").sort((J,ie)=>J.is_git_repo&&!ie.is_git_repo?-1:!J.is_git_repo&&ie.is_git_repo?1:J.name.localeCompare(ie.name)),[R]),ce=E.useMemo(()=>R.filter(J=>J.type==="file").sort((J,ie)=>J.name.localeCompare(ie.name)),[R]);return m.jsxDEV("div",{className:"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:[y?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:209,columnNumber:13},this),m.jsxDEV(r4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:210,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:208,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:v},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:213,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(gn,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:219,columnNumber:13},this),m.jsxDEV("span",{children:Y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:220,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:218,columnNumber:11},this):g&&y?m.jsxDEV("button",{onClick:()=>ee(!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:223,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:206,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:232,columnNumber:7},this),y?g?m.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:he&&m.jsxDEV("button",{onClick:()=>_(he),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(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:243,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[he,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:246,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:244,columnNumber:17},this),m.jsxDEV(xo,{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:250,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:239,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:237,columnNumber:11},this):m.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:c.map(J=>m.jsxDEV("button",{onClick:()=>_(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(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:263,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:J},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:264,columnNumber:17},this),m.jsxDEV(xo,{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:265,columnNumber:17},this)]},J,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:258,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:256,columnNumber:11},this):L?m.jsxDEV("div",{className:"flex items-center gap-2 py-8",children:[m.jsxDEV(bn,{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:275,columnNumber:11},this),m.jsxDEV("span",{className:"text-xs text-c4a-text-muted",children:f("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:276,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:274,columnNumber:9},this):Q?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:Q},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:279,columnNumber:9},this):m.jsxDEV("div",{className:"mt-3 max-h-80 overflow-y-auto",children:[v!=="/"&&m.jsxDEV("button",{onClick:$,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",children:[m.jsxDEV(gn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:287,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:288,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:283,columnNumber:13},this),P.map(J=>{const ie=te.has(J.path),W=J.is_git_repo?cb:gn;return m.jsxDEV("button",{onClick:()=>X(J),disabled:ie,className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors ${ie?"cursor-not-allowed opacity-50":o===J.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[m.jsxDEV(W,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:308,columnNumber:15},this),m.jsxDEV("span",{className:"flex-1 truncate",children:J.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:309,columnNumber:15},this),ie&&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:311,columnNumber:17},this),m.jsxDEV(xo,{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:315,columnNumber:15},this)]},J.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:296,columnNumber:13},this)}),ce.map(J=>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(Zw,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:328,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:J.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:329,columnNumber:15},this)]},J.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:324,columnNumber:13},this)),R.length===0&&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:334,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:281,columnNumber:9},this),m.jsxDEV(i4,{open:me,onClose:()=>ee(!1),rpc:s,onNavigate:_,defaultPath:he??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:342,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:205,columnNumber:5},this)}const Pj=new Set(["package.json","pyproject.toml","setup.py","go.mod","cargo.toml","pom.xml","build.gradle"]),Kj=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 x=g.path.split("/").pop();if(x&&Pj.has(x.toLowerCase())){const D=g.path.split("/").slice(0,-1).join("/");s.some(S=>S.type==="directory"&&S.is_git_repo&&(D===S.path||D.startsWith(`${S.path}/`)))||h.add(D)}}return c=h.size,{totalFiles:o,totalDirs:l,codePackages:c,docFiles:u,gitRepos:f}};function Wj({dirPath:s,dirName:o,rpc:l,importing:c,onScanComplete:u,onBusyChange:f}){const{t:h}=He(),[g,y]=E.useState(!1),[x,D]=E.useState(null),[v,S]=E.useState(null),R=E.useCallback(async()=>{y(!0),f?.(!0),D(null),S(null);try{const j=await l("fs/dirScan",{path:s}),L=j.entries||[],H=j.manifests||[],Q=Kj(L);S(Q),u(L,Q,H)}catch(j){const L=j instanceof Error?j.message:String(j);D(L)}finally{y(!1),f?.(!1)}},[s,l,u,f]);return E.useEffect(()=>{R()},[R]),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:130,columnNumber:7},this),m.jsxDEV("p",{className:"mt-1 font-mono text-sm font-bold text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:131,columnNumber:7},this),g&&m.jsxDEV("div",{className:"mt-6 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-4",children:[m.jsxDEV(bn,{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:137,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:h("sources.import.dir_scanning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:138,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:136,columnNumber:9},this),x&&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:147,columnNumber:13},this),h("sources.import.dir_scan_error")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:146,columnNumber:11},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:x},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:150,columnNumber:11},this),m.jsxDEV("button",{onClick:R,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(RT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:155,columnNumber:13},this),h("sources.import.dir_scan_retry")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:151,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:145,columnNumber:9},this),v&&!g&&!x&&m.jsxDEV("div",{className:"mt-6 space-y-3",children:[m.jsxDEV("p",{className:"font-mono text-xs uppercase text-c4a-accent",children:[h("sources.import.dir_scan_complete"),"!"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:163,columnNumber:11},this),m.jsxDEV("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-4",children:[m.jsxDEV(Uf,{icon:m.jsxDEV(If,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:169,columnNumber:21},this),label:h("sources.import.dir_code_packages"),value:v.codePackages},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:168,columnNumber:13},this),m.jsxDEV(Uf,{icon:m.jsxDEV(cl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:174,columnNumber:21},this),label:h("sources.import.dir_doc_files"),value:v.docFiles},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:173,columnNumber:13},this),m.jsxDEV(Uf,{icon:m.jsxDEV(gn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:179,columnNumber:21},this),label:h("sources.import.dir_total_dirs"),value:v.totalDirs},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:178,columnNumber:13},this),m.jsxDEV(Uf,{icon:m.jsxDEV(cl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:184,columnNumber:21},this),label:h("sources.import.dir_total_files"),value:v.totalFiles},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:183,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:167,columnNumber:11},this),v.gitRepos>0&&m.jsxDEV("p",{className:"flex items-start gap-2 text-xs text-c4a-info",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:192,columnNumber:15},this),h("sources.import.dir_git_skip_hint",{count:v.gitRepos})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:191,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:162,columnNumber:9},this),c&&m.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[m.jsxDEV(bn,{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:202,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:h("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:203,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:201,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:129,columnNumber:5},this)}function Uf({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:225,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:223,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:227,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:222,columnNumber:5},this)}function eO(){const{t:s}=He(),o=pr(),{libId:l}=qf(),u=ka(dl(cu)).find(_=>_.id===l),f=Qf(_=>_.createSource),[h,g]=E.useState(1),[y,x]=E.useState(!1),[D,v]=E.useState(!1),[S,R]=E.useState({dirPath:"",dirName:"",fileCount:0,subDirCount:0,gitRepoCount:0,mdFiles:[],scanEntries:[],scanStats:null,manifests:[]}),j=u?.is_online??!1,[L,H]=E.useState([]);E.useEffect(()=>{if(!l)return;let _=!1;return(async()=>{try{const X=await va.get("/sources",{library_id:l,limit:"500"});if(_)return;const $=X.items.filter(Y=>!Y.parent_id).map(Y=>{const P=Y.metadata;return typeof P?.local_path=="string"?P.local_path:null}).filter(Y=>Y!==null);H($)}catch{}})(),()=>{_=!0}},[l]);const Q=E.useMemo(()=>{const _=u?.config;return!_||!Array.isArray(_.allowed_paths)?[]:_.allowed_paths},[u]),Z=E.useCallback(async(_,X)=>{if(!l)throw new Error("No library");const $=await va.post(`/libraries/${l}/rpc`,{method:_,params:X});if($.error){const Y=$.error;throw new Error(Y.message??JSON.stringify($.error))}return $.result??$},[l]),te=E.useCallback((_,X,$)=>{R(Y=>({...Y,dirPath:_,dirName:X,fileCount:$.files,subDirCount:$.dirs,gitRepoCount:$.gitRepos,mdFiles:$.mdFiles}))},[]),he=E.useCallback((_,X,$)=>{R(Y=>({...Y,scanEntries:_,scanStats:X,manifests:$}))},[]),fe=E.useCallback(async()=>{if(l){x(!0);try{const _=await f({library_id:l,dir_files:S.scanEntries,dir_name:S.dirName,dir_path:S.dirPath,dir_file_contents:S.manifests}),X=Array.isArray(_)?_[0]:_;X?.kind==="folder"?o(`/studio/sources/${l}?path=${X.id}`):o(`/studio/sources/${l}`)}catch{x(!1)}}},[l,S,f,o]),me=E.useMemo(()=>h===1?!!S.dirPath:h===2?S.scanEntries.length>0:!0,[h,S]),ee=E.useMemo(()=>u?[{label:u.id===Xf?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(uu,{segments:ee},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:192,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex w-full items-center gap-2 font-mono text-sm md:gap-3",children:[m.jsxDEV(nw,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:196,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:197,columnNumber:9},this),m.jsxDEV(tO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:200,columnNumber:9},this),m.jsxDEV(nw,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:201,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:202,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:195,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex-1",children:j?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(Jj,{rpc:Z,selectedPath:S.dirPath,onSelect:te,allowedPaths:Q,importedPaths:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:214,columnNumber:15},this),h===2&&m.jsxDEV(Wj,{dirPath:S.dirPath,dirName:S.dirName,rpc:Z,importing:y,onScanComplete:he,onBusyChange:v},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:223,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:212,columnNumber:11},this):m.jsxDEV(aO,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:210,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:208,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 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),j&&m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:[h>1&&m.jsxDEV("button",{onClick:()=>g(_=>_-1),disabled:y||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:fe,disabled:y||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:[y&&m.jsxDEV(bn,{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(y?"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:191,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:185,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:184,columnNumber:7},this)}function nw({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 tO(){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 aO({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(Pa,{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 nO(){const{t:s}=He(),o=pr(),l=ka(S=>S.createLibrary),[c,u]=E.useState("waiting"),[f,h]=E.useState(null),[g,y]=E.useState(""),[x,D]=E.useState(!1);E.useEffect(()=>Hs.on("ws:daemon:connected",R=>{const j=R;h(j),y(j.machine_id),u(j.needs_registration?"new_client":"reconnected")}),[]);const v=E.useCallback(async()=>{if(f){D(!0);try{const S=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/${S.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(bn,{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:S=>y(S.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:v,disabled:x||!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:[x&&m.jsxDEV(bn,{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(Hf,{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(Pa,{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 sO(){const{t:s}=He(),{sourceUuid:o}=qf(),{currentSource:l,loading:c,fetchSource:u}=Qf(),f=ka(dl(cu)),[h,g]=E.useState("original"),[y,x]=E.useState([]);E.useEffect(()=>{o&&u(o)},[o,u]),E.useEffect(()=>{l&&(async()=>{const L=[];let H=l.parent_id;for(;H;)try{const Q=await fetch(`/api/v1/sources/${H}`);if(!Q.ok)break;const Z=await Q.json();L.unshift(Z),H=Z.parent_id}catch{break}x(L)})()},[l]);const D=f.find(L=>L.id===l?.library_id),v=l?.metadata?Object.fromEntries(Object.entries(l.metadata).map(([L,H])=>[L,String(H??"")])):null,S=l?.source_type==="code",R=E.useMemo(()=>{if(!l||!D)return[];const L=[{label:D.id===Xf?s("sources.library.default_cloud_name"):D.name,to:`/studio/sources/${D.id}`}];return y.forEach(H=>{L.push({label:H.name,to:`/studio/sources/${D.id}?path=${H.id}`})}),L.push({label:l.name}),L},[l,D,y,s]),j=[{key:"original",label:s(S?"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 c||!l?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:95,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:94,columnNumber:7},this):m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(uu,{segments:R},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:"mt-4 flex items-center gap-2",children:[S?m.jsxDEV(If,{size:20,className:"text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:107,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:109,columnNumber:11},this),m.jsxDEV("h1",{className:"font-mono text-xl font-bold text-c4a-text-primary",children:l.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:111,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:105,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:l.source_type==="code"?s("sources.type.code"):s("sources.type.doc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:120,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:118,columnNumber:9},this),S&&v?.relative_path&&m.jsxDEV("span",{children:[s("sources.detail.path"),":"," ",m.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:v.relative_path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:127,columnNumber:11},this),!S&&m.jsxDEV("span",{children:[s("sources.detail.origin"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:D?.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: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),m.jsxDEV("span",{children:[s("sources.detail.status"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(`sources.status.${l.index_status}`)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:146,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:144,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:117,columnNumber:7},this),S&&v&&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:[v.repo_name&&m.jsxDEV(Cf,{label:s("sources.detail.repo"),value:v.repo_name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:157,columnNumber:15},this),v.pinned_branch&&m.jsxDEV(Cf,{label:s("sources.detail.branch"),value:v.pinned_branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:163,columnNumber:15},this),v.pinned_hash&&m.jsxDEV(Cf,{label:s("sources.detail.commit"),value:v.pinned_hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:169,columnNumber:15},this),v.tech_stack&&m.jsxDEV(Cf,{label:s("sources.detail.tech_stack"),value:v.tech_stack},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:175,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:155,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:154,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex border-b border-c4a-border-subtle",children:j.map(L=>m.jsxDEV("button",{onClick:()=>g(L.key),className:`border-b-2 px-4 py-2 font-mono text-xs uppercase transition-colors ${h===L.key?"border-c4a-accent text-c4a-accent":"border-transparent text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:L.label},L.key,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:187,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:185,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex-1",children:[h==="original"&&m.jsxDEV(oO,{source:l,isCode:S},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:204,columnNumber:11},this),h==="digest"&&m.jsxDEV(sw,{message:s("sources.detail.digest_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:207,columnNumber:11},this),h==="modeling"&&m.jsxDEV(sw,{message:s("sources.detail.modeling_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:210,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:202,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:101,columnNumber:5},this)}function Cf({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:222,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:223,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:221,columnNumber:5},this)}function oO({source: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:242,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:246,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:254,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:255,columnNumber:19},this)]},u,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:253,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:249,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:245,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:262,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:240,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:272,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:271,columnNumber:5},this)}function sw({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:282,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:281,columnNumber:5},this)}const rO="lib_cloud_default",iO=yC([{element:m.jsxDEV(cj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:29,columnNumber:14},void 0),children:[{path:"/",element:m.jsxDEV(hj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:31,columnNumber:29},void 0)},{path:"/login",element:m.jsxDEV(gj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:32,columnNumber:34},void 0)},{path:"/docs",element:m.jsxDEV(bj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:33,columnNumber:33},void 0)}]},{path:"/studio",element:m.jsxDEV(pj,{},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/${rO}`,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(nO,{},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(Qj,{},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(eO,{},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(Hj,{},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(sO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:56,columnNumber:46},void 0)},{path:"modeling",element:m.jsxDEV(vj,{},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(Dj,{},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(Rj,{},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(_j,{},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(kj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:61,columnNumber:48},void 0)},{path:"brain",element:m.jsxDEV(xj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:62,columnNumber:33},void 0)},{path:"discovery",element:m.jsxDEV(Nj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:63,columnNumber:37},void 0)},{path:"sharing",element:m.jsxDEV(Sj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:64,columnNumber:35},void 0)},{path:"collaboration",element:m.jsxDEV(wj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:65,columnNumber:41},void 0)},{path:"settings",element:m.jsxDEV(Ej,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:66,columnNumber:36},void 0)}]},{path:"*",element:m.jsxDEV(yj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:71,columnNumber:25},void 0)}]);function lO(){return E.useEffect(()=>{const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;return Hs.connect(o),()=>{Hs.disconnect()}},[]),m.jsxDEV(GU,{router:iO},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/App.tsx",lineNumber:17,columnNumber:10},this)}sk.createRoot(document.getElementById("root")).render(m.jsxDEV(E.StrictMode,{children:m.jsxDEV(lO,{},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));
|