@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 LR(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 HR(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var wg={exports:{}},wf={},Eg={exports:{}},Xc={exports:{}};Xc.exports;var A1;function BR(){return A1||(A1=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=Bn&&w[Bn]||w["@@iterator"],typeof w=="function"?w:null)}function u(w,V){w=(w=w.constructor)&&(w.displayName||w.name)||"ReactClass";var oe=w+"."+V;Et[oe]||(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[oe]=!0)}function f(w,V,oe){this.props=w,this.context=V,this.refs=ft,this.updater=oe||va}function h(){}function g(w,V,oe){this.props=w,this.context=V,this.refs=ft,this.updater=oe||va}function y(){}function v(w){return""+w}function D(w){try{v(w);var V=!1}catch{V=!0}if(V){V=console;var oe=V.error,ue=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return oe.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ue),v(w)}}function x(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===mr?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case F:return"Fragment";case he:return"Profiler";case Ne:return"StrictMode";case Ye:return"Suspense";case Vt:return"SuspenseList";case ve: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 je:return"Portal";case tt:return w.displayName||"Context";case we: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 zt:return V=w.displayName||null,V!==null?V:x(w.type)||"Memo";case Ka:V=w._payload,w=w._init;try{return x(w(V))}catch{}}return null}function S(w){if(w===F)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===Ka)return"<...>";try{var V=x(w);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function R(){var w=te.A;return w===null?null:w.getOwner()}function j(){return Error("react-stack-top-frame")}function H(w){if(Ze.call(w,"key")){var V=Object.getOwnPropertyDescriptor(w,"key").get;if(V&&V.isReactWarning)return!1}return w.key!==void 0}function L(w,V){function oe(){$a||($a=!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))}oe.isReactWarning=!0,Object.defineProperty(w,"key",{get:oe,configurable:!0})}function Q(){var w=x(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,oe,ue,Ee,He){var Ce=oe.ref;return w={$$typeof:pe,type:w,key:V,props:oe,_owner:ue},(Ce!==void 0?Ce: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:Ee}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:He}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function ne(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 de(w){se(w)?w._store&&(w._store.validated=1):typeof w=="object"&&w!==null&&w.$$typeof===Ka&&(w._payload.status==="fulfilled"?se(w._payload.value)&&w._payload.value._store&&(w._payload.value._store.validated=1):w._store&&(w._store.validated=1))}function se(w){return typeof w=="object"&&w!==null&&w.$$typeof===pe}function ee(w){var V={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(oe){return V[oe]})}function W(w,V){return typeof w=="object"&&w!==null&&w.key!=null?(D(w.key),ee(""+w.key)):V.toString(36)}function k(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 B(w,V,oe,ue,Ee){var He=typeof w;(He==="undefined"||He==="boolean")&&(w=null);var Ce=!1;if(w===null)Ce=!0;else switch(He){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(w.$$typeof){case pe:case je:Ce=!0;break;case Ka:return Ce=w._init,B(Ce(w._payload),V,oe,ue,Ee)}}if(Ce){Ce=w,Ee=Ee(Ce);var at=ue===""?"."+W(Ce,0):ue;return ss(Ee)?(oe="",at!=null&&(oe=at.replace(qa,"$&/")+"/"),B(Ee,V,oe,"",function(oa){return oa})):Ee!=null&&(se(Ee)&&(Ee.key!=null&&(Ce&&Ce.key===Ee.key||D(Ee.key)),oe=ne(Ee,oe+(Ee.key==null||Ce&&Ce.key===Ee.key?"":(""+Ee.key).replace(qa,"$&/")+"/")+at),ue!==""&&Ce!=null&&se(Ce)&&Ce.key==null&&Ce._store&&!Ce._store.validated&&(oe._store.validated=2),Ee=oe),V.push(Ee)),1}if(Ce=0,at=ue===""?".":ue+":",ss(w))for(var qe=0;qe<w.length;qe++)ue=w[qe],He=at+W(ue,qe),Ce+=B(ue,V,oe,He,Ee);else if(qe=c(w),typeof qe=="function")for(qe===w.entries&&(vn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),vn=!0),w=qe.call(w),qe=0;!(ue=w.next()).done;)ue=ue.value,He=at+W(ue,qe++),Ce+=B(ue,V,oe,He,Ee);else if(He==="object"){if(typeof w.then=="function")return B(k(w),V,oe,ue,Ee);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 Ce}function $(w,V,oe){if(w==null)return w;var ue=[],Ee=0;return B(w,ue,"","",function(He){return V.call(oe,He,Ee++)}),ue}function ae(w){if(w._status===-1){var V=w._ioInfo;V!=null&&(V.start=V.end=performance.now()),V=w._result;var oe=V();if(oe.then(function(Ee){if(w._status===0||w._status===-1){w._status=1,w._result=Ee;var He=w._ioInfo;He!=null&&(He.end=performance.now()),oe.status===void 0&&(oe.status="fulfilled",oe.value=Ee)}},function(Ee){if(w._status===0||w._status===-1){w._status=2,w._result=Ee;var He=w._ioInfo;He!=null&&(He.end=performance.now()),oe.status===void 0&&(oe.status="rejected",oe.reason=Ee)}}),V=w._ioInfo,V!=null){V.value=oe;var ue=oe.displayName;typeof ue=="string"&&(V.name=ue)}w._status===-1&&(w._status=0,w._result=oe)}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 q(){var w=te.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 P(){te.asyncTransitions--}function le(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){No===!1&&(No=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ee=new MessageChannel;Ee.port1.onmessage=ue,Ee.port2.postMessage(void 0)}}return Bs(w)}function Se(w){return 1<w.length&&typeof AggregateError=="function"?new AggregateError(w):w[0]}function K(w,V){V!==xn-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. "),xn=V}function fe(w,V,oe){var ue=te.actQueue;if(ue!==null)if(ue.length!==0)try{be(ue),le(function(){return fe(w,V,oe)});return}catch(Ee){te.thrownErrors.push(Ee)}else te.actQueue=null;0<te.thrownErrors.length?(ue=Se(te.thrownErrors),te.thrownErrors.length=0,oe(ue)):V(w)}function be(w){if(!xa){xa=!0;var V=0;try{for(;V<w.length;V++){var oe=w[V];do{te.didUsePromise=!1;var ue=oe(!1);if(ue!==null){if(te.didUsePromise){w[V]=oe,w.splice(0,V);return}oe=ue}else break}while(!0)}w.length=0}catch(Ee){w.splice(0,V+1),te.thrownErrors.push(Ee)}finally{xa=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var pe=Symbol.for("react.transitional.element"),je=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),Ne=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),we=Symbol.for("react.consumer"),tt=Symbol.for("react.context"),Mt=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),zt=Symbol.for("react.memo"),Ka=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),Bn=Symbol.iterator,Et={},va={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,ft={};Object.freeze(ft),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($n in Dt)Dt.hasOwnProperty($n)&&l($n,Dt[$n]);h.prototype=f.prototype,Dt=g.prototype=new h,Dt.constructor=g,Wa(Dt,f.prototype),Dt.isPureReactComponent=!0;var ss=Array.isArray,mr=Symbol.for("react.client.reference"),te={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ze=Object.prototype.hasOwnProperty,ut=console.createTask?console.createTask:function(){return null};Dt={react_stack_bottom_frame:function(w){return w()}};var $a,yn,Ya={},en=Dt.react_stack_bottom_frame.bind(Dt,j)(),Ft=ut(S(j)),vn=!1,qa=/\/+/g,_a=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)},No=!1,Bs=null,xn=0,$s=!1,xa=!1,Ys=typeof queueMicrotask=="function"?function(w){queueMicrotask(function(){return queueMicrotask(w)})}:le;Dt=Object.freeze({__proto__:null,c:function(w){return q().useMemoCache(w)}});var $n={map:$,forEach:function(w,V,oe){$(w,function(){V.apply(this,arguments)},oe)},count:function(w){var V=0;return $(w,function(){V++}),V},toArray:function(w){return $(w,function(V){return V})||[]},only:function(w){if(!se(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};o.Activity=ve,o.Children=$n,o.Component=f,o.Fragment=F,o.Profiler=he,o.PureComponent=g,o.StrictMode=Ne,o.Suspense=Ye,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,o.__COMPILER_RUNTIME=Dt,o.act=function(w){var V=te.actQueue,oe=xn;xn++;var ue=te.actQueue=V!==null?V:[],Ee=!1;try{var He=w()}catch(qe){te.thrownErrors.push(qe)}if(0<te.thrownErrors.length)throw K(V,oe),w=Se(te.thrownErrors),te.thrownErrors.length=0,w;if(He!==null&&typeof He=="object"&&typeof He.then=="function"){var Ce=He;return Ys(function(){Ee||$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,oa){Ee=!0,Ce.then(function(Ua){if(K(V,oe),oe===0){try{be(ue),le(function(){return fe(Ua,qe,oa)})}catch(Gs){te.thrownErrors.push(Gs)}if(0<te.thrownErrors.length){var qs=Se(te.thrownErrors);te.thrownErrors.length=0,oa(qs)}}else qe(Ua)},function(Ua){K(V,oe),0<te.thrownErrors.length&&(Ua=Se(te.thrownErrors),te.thrownErrors.length=0),oa(Ua)})}}}var at=He;if(K(V,oe),oe===0&&(be(ue),ue.length!==0&&Ys(function(){Ee||$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(() => ...)"))}),te.actQueue=null),0<te.thrownErrors.length)throw w=Se(te.thrownErrors),te.thrownErrors.length=0,w;return{then:function(qe,oa){Ee=!0,oe===0?(te.actQueue=ue,le(function(){return fe(at,qe,oa)})):qe(at)}}},o.cache=function(w){return function(){return w.apply(null,arguments)}},o.cacheSignal=function(){return null},o.captureOwnerStack=function(){var w=te.getCurrentStack;return w===null?null:w()},o.cloneElement=function(w,V,oe){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ue=Wa({},w.props),Ee=w.key,He=w._owner;if(V!=null){var Ce;e:{if(Ze.call(V,"ref")&&(Ce=Object.getOwnPropertyDescriptor(V,"ref").get)&&Ce.isReactWarning){Ce=!1;break e}Ce=V.ref!==void 0}Ce&&(He=R()),H(V)&&(D(V.key),Ee=""+V.key);for(at in V)!Ze.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=oe;else if(1<at){Ce=Array(at);for(var qe=0;qe<at;qe++)Ce[qe]=arguments[qe+2];ue.children=Ce}for(ue=Z(w.type,Ee,ue,He,w._debugStack,w._debugTask),Ee=2;Ee<arguments.length;Ee++)de(arguments[Ee]);return ue},o.createContext=function(w){return w={$$typeof:tt,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:we,_context:w},w._currentRenderer=null,w._currentRenderer2=null,w},o.createElement=function(w,V,oe){for(var ue=2;ue<arguments.length;ue++)de(arguments[ue]);ue={};var Ee=null;if(V!=null)for(qe in yn||!("__self"in V)||"key"in V||(yn=!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")),H(V)&&(D(V.key),Ee=""+V.key),V)Ze.call(V,qe)&&qe!=="key"&&qe!=="__self"&&qe!=="__source"&&(ue[qe]=V[qe]);var He=arguments.length-2;if(He===1)ue.children=oe;else if(1<He){for(var Ce=Array(He),at=0;at<He;at++)Ce[at]=arguments[at+2];Object.freeze&&Object.freeze(Ce),ue.children=Ce}if(w&&w.defaultProps)for(qe in He=w.defaultProps,He)ue[qe]===void 0&&(ue[qe]=He[qe]);Ee&&L(ue,typeof w=="function"?w.displayName||w.name||"Unknown":w);var qe=1e4>te.recentlyCreatedOwnerStacks++;return Z(w,Ee,ue,R(),qe?Error("react-stack-top-frame"):en,qe?ut(S(w)):Ft)},o.createRef=function(){var w={current:null};return Object.seal(w),w},o.forwardRef=function(w){w!=null&&w.$$typeof===zt?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},oe;return Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return oe},set:function(ue){oe=ue,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ue}),w.displayName=ue)}}),V},o.isValidElement=se,o.lazy=function(w){w={_status:-1,_result:w};var V={$$typeof:Ka,_payload:w,_init:ae},oe={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=oe,V._debugInfo=[{awaited:oe}],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:zt,type:w,compare:V===void 0?null:V};var oe;return Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return oe},set:function(ue){oe=ue,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ue}),w.displayName=ue)}}),V},o.startTransition=function(w){var V=te.T,oe={};oe._updatedFibers=new Set,te.T=oe;try{var ue=w(),Ee=te.S;Ee!==null&&Ee(oe,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&(te.asyncTransitions++,ue.then(P,P),ue.then(y,_a))}catch(He){_a(He)}finally{V===null&&oe._updatedFibers&&(w=oe._updatedFibers.size,oe._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&&oe.types!==null&&(V.types!==null&&V.types!==oe.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=oe.types),te.T=V}},o.unstable_useCacheRefresh=function(){return q().useCacheRefresh()},o.use=function(w){return q().use(w)},o.useActionState=function(w,V,oe){return q().useActionState(w,V,oe)},o.useCallback=function(w,V){return q().useCallback(w,V)},o.useContext=function(w){var V=q();return w.$$typeof===we&&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 q().useDebugValue(w,V)},o.useDeferredValue=function(w,V){return q().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?"),q().useEffect(w,V)},o.useEffectEvent=function(w){return q().useEffectEvent(w)},o.useId=function(){return q().useId()},o.useImperativeHandle=function(w,V,oe){return q().useImperativeHandle(w,V,oe)},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?"),q().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?"),q().useLayoutEffect(w,V)},o.useMemo=function(w,V){return q().useMemo(w,V)},o.useOptimistic=function(w,V){return q().useOptimistic(w,V)},o.useReducer=function(w,V,oe){return q().useReducer(w,V,oe)},o.useRef=function(w){return q().useRef(w)},o.useState=function(w){return q().useState(w)},o.useSyncExternalStore=function(w,V,oe){return q().useSyncExternalStore(w,V,oe)},o.useTransition=function(){return q().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())})()})(Xc,Xc.exports)),Xc.exports}var M1;function nu(){return M1||(M1=1,Eg.exports=BR()),Eg.exports}var V1;function $R(){if(V1)return wf;V1=1;return(function(){function s(F){if(F==null)return null;if(typeof F=="function")return F.$$typeof===ae?null:F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case L:return"Fragment";case Z:return"Profiler";case Q:return"StrictMode";case ee:return"Suspense";case W:return"SuspenseList";case $:return"Activity"}if(typeof F=="object")switch(typeof F.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),F.$$typeof){case H:return"Portal";case de:return F.displayName||"Context";case ne:return(F._context.displayName||"Context")+".Consumer";case se:var Ne=F.render;return F=F.displayName,F||(F=Ne.displayName||Ne.name||"",F=F!==""?"ForwardRef("+F+")":"ForwardRef"),F;case k:return Ne=F.displayName||null,Ne!==null?Ne:s(F.type)||"Memo";case B:Ne=F._payload,F=F._init;try{return s(F(Ne))}catch{}}return null}function o(F){return""+F}function l(F){try{o(F);var Ne=!1}catch{Ne=!0}if(Ne){Ne=console;var he=Ne.error,we=typeof Symbol=="function"&&Symbol.toStringTag&&F[Symbol.toStringTag]||F.constructor.name||"Object";return he.call(Ne,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",we),o(F)}}function c(F){if(F===L)return"<>";if(typeof F=="object"&&F!==null&&F.$$typeof===B)return"<...>";try{var Ne=s(F);return Ne?"<"+Ne+">":"<...>"}catch{return"<...>"}}function u(){var F=q.A;return F===null?null:F.getOwner()}function f(){return Error("react-stack-top-frame")}function h(F){if(P.call(F,"key")){var Ne=Object.getOwnPropertyDescriptor(F,"key").get;if(Ne&&Ne.isReactWarning)return!1}return F.key!==void 0}function g(F,Ne){function he(){K||(K=!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)",Ne))}he.isReactWarning=!0,Object.defineProperty(F,"key",{get:he,configurable:!0})}function y(){var F=s(this.type);return fe[F]||(fe[F]=!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.")),F=this.props.ref,F!==void 0?F:null}function v(F,Ne,he,we,tt,Mt){var Ye=he.ref;return F={$$typeof:j,type:F,key:Ne,props:he,_owner:we},(Ye!==void 0?Ye:null)!==null?Object.defineProperty(F,"ref",{enumerable:!1,get:y}):Object.defineProperty(F,"ref",{enumerable:!1,value:null}),F._store={},Object.defineProperty(F._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(F,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(F,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:tt}),Object.defineProperty(F,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Mt}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F}function D(F,Ne,he,we,tt,Mt){var Ye=Ne.children;if(Ye!==void 0)if(we)if(le(Ye)){for(we=0;we<Ye.length;we++)x(Ye[we]);Object.freeze&&Object.freeze(Ye)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(Ye);if(P.call(Ne,"key")){Ye=s(F);var Vt=Object.keys(Ne).filter(function(Ka){return Ka!=="key"});we=0<Vt.length?"{key: someKey, "+Vt.join(": ..., ")+": ...}":"{key: someKey}",je[Ye+we]||(Vt=0<Vt.length?"{"+Vt.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} />`,we,Ye,Vt,Ye),je[Ye+we]=!0)}if(Ye=null,he!==void 0&&(l(he),Ye=""+he),h(Ne)&&(l(Ne.key),Ye=""+Ne.key),"key"in Ne){he={};for(var zt in Ne)zt!=="key"&&(he[zt]=Ne[zt])}else he=Ne;return Ye&&g(he,typeof F=="function"?F.displayName||F.name||"Unknown":F),v(F,Ye,he,u(),tt,Mt)}function x(F){S(F)?F._store&&(F._store.validated=1):typeof F=="object"&&F!==null&&F.$$typeof===B&&(F._payload.status==="fulfilled"?S(F._payload.value)&&F._payload.value._store&&(F._payload.value._store.validated=1):F._store&&(F._store.validated=1))}function S(F){return typeof F=="object"&&F!==null&&F.$$typeof===j}var R=nu(),j=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),de=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),q=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.prototype.hasOwnProperty,le=Array.isArray,Se=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(F){return F()}};var K,fe={},be=R.react_stack_bottom_frame.bind(R,f)(),pe=Se(c(f)),je={};wf.Fragment=L,wf.jsxDEV=function(F,Ne,he,we){var tt=1e4>q.recentlyCreatedOwnerStacks++;return D(F,Ne,he,we,tt?Error("react-stack-top-frame"):be,tt?Se(c(F)):pe)}})(),wf}var z1;function YR(){return z1||(z1=1,wg.exports=$R()),wg.exports}var p=YR();const Ge=s=>typeof s=="string",Hc=()=>{let s,o;const l=new Promise((c,u)=>{s=c,o=u});return l.resolve=s,l.reject=o,l},L1=s=>s==null?"":""+s,qR=(s,o,l)=>{s.forEach(c=>{o[c]&&(l[c]=o[c])})},GR=/###/g,H1=s=>s&&s.indexOf("###")>-1?s.replace(GR,"."):s,B1=s=>!s||Ge(s),Zc=(s,o,l)=>{const c=Ge(o)?o.split("."):o;let u=0;for(;u<c.length-1;){if(B1(s))return{};const f=H1(c[u]);!s[f]&&l&&(s[f]=new l),Object.prototype.hasOwnProperty.call(s,f)?s=s[f]:s={},++u}return B1(s)?{}:{obj:s,k:H1(c[u])}},$1=(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},IR=(s,o,l,c)=>{const{obj:u,k:f}=Zc(s,o,Object);u[f]=u[f]||[],u[f].push(l)},Af=(s,o)=>{const{obj:l,k:c}=Zc(s,o);if(l&&Object.prototype.hasOwnProperty.call(l,c))return l[c]},XR=(s,o,l)=>{const c=Af(s,l);return c!==void 0?c:Af(o,l)},sw=(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]):sw(s[c],o[c],l):s[c]=o[c]);return s},Kr=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var FR={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const QR=s=>Ge(s)?s.replace(/[&<>"'\/]/g,o=>FR[o]):s;class ZR{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 JR=[" ",",","?","!",";"],PR=new ZR(20),KR=(s,o,l)=>{o=o||"",l=l||"";const c=JR.filter(h=>o.indexOf(h)<0&&l.indexOf(h)<0);if(c.length===0)return!0;const u=PR.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("_","-"),WR={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 Mf{constructor(o,l={}){this.init(o,l)}init(o,l={}){this.prefix=l.prefix||"i18next:",this.logger=o||WR,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 Mf(this.logger,{prefix:`${this.prefix}:${o}:`,...this.options})}clone(o){return o=o||this.options,o.prefix=o.prefix||this.prefix,new Mf(this.logger,o)}}var Ms=new Mf;class Lf{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 Y1 extends Lf{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=Af(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),$1(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=Af(this.data,g)||{};h.skipCopy||(c=JSON.parse(JSON.stringify(c))),u?sw(y,c,f):y={...y,...c},$1(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 ow={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 rw=Symbol("i18next/PATH_KEY");function eC(){const s=[],o=Object.create(null);let l;return o.get=(c,u)=>(l?.revoke?.(),u===rw?s:(s.push(u),l=Proxy.revocable(c,o),l.proxy)),Proxy.revocable(Object.create(null),o).proxy}function qg(s,o){const{[rw]:l}=s(eC());return l.join(o?.keySeparator??".")}const q1={},Dg=s=>!Ge(s)&&typeof s!="boolean"&&typeof s!="number";class Vf extends Lf{constructor(o,l={}){super(),qR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ms.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o,l={interpolation:{}}){const c={...l};if(o==null)return!1;const u=this.resolve(o,c);if(u?.res===void 0)return!1;const f=Dg(u.res);return!(c.returnObjects===!1&&f)}extractFromKey(o,l){let c=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let f=l.ns||this.options.defaultNS||[];const h=c&&o.indexOf(c)>-1,g=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!KR(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 v=o.split(c);(c!==u||c===u&&this.options.ns.indexOf(v[0])>-1)&&(f=v.shift()),o=v.join(u)}return{key:o,namespaces: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),v=y[y.length-1];let D=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;D===void 0&&(D=":");const x=u.lng||this.language,S=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x?.toLowerCase()==="cimode")return S?f?{res:`${v}${D}${g}`,usedKey:g,exactUsedKey:g,usedLng:x,usedNS:v,usedParams:this.getUsedParamsDetails(u)}:`${v}${D}${g}`:f?{res:g,usedKey:g,exactUsedKey:g,usedLng:x,usedNS:v,usedParams:this.getUsedParamsDetails(u)}:g;const R=this.resolve(o,u);let j=R?.res;const H=R?.usedKey||g,L=R?.exactUsedKey||g,Q=["[object Number]","[object Function]","[object RegExp]"],Z=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,ne=!this.i18nFormat||this.i18nFormat.handleAsObject,de=u.count!==void 0&&!Ge(u.count),se=Vf.hasDefaultValue(u),ee=de?this.pluralResolver.getSuffix(x,u.count,u):"",W=u.ordinal&&de?this.pluralResolver.getSuffix(x,u.count,{ordinal:!1}):"",k=de&&!u.ordinal&&u.count===0,B=k&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${ee}`]||u[`defaultValue${W}`]||u.defaultValue;let $=j;ne&&!j&&se&&($=B);const ae=Dg($),q=Object.prototype.toString.apply($);if(ne&&$&&ae&&Q.indexOf(q)<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 P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,$,{...u,ns:y}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(R.res=P,R.usedParams=this.getUsedParamsDetails(u),R):P}if(h){const P=Array.isArray($),le=P?[]:{},Se=P?L:H;for(const K in $)if(Object.prototype.hasOwnProperty.call($,K)){const fe=`${Se}${h}${K}`;se&&!j?le[K]=this.translate(fe,{...u,defaultValue:Dg(B)?B[K]:void 0,joinArrays:!1,ns:y}):le[K]=this.translate(fe,{...u,joinArrays:!1,ns:y}),le[K]===fe&&(le[K]=$[K])}j=le}}else if(ne&&Ge(Z)&&Array.isArray(j))j=j.join(Z),j&&(j=this.extendTranslation(j,o,u,c));else{let P=!1,le=!1;!this.isValidLookup(j)&&se&&(P=!0,j=B),this.isValidLookup(j)||(le=!0,j=g);const K=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&le?void 0:j,fe=se&&B!==j&&this.options.updateMissing;if(le||P||fe){if(this.logger.log(fe?"updateKey":"missingKey",x,v,g,fe?B:j),h){const F=this.resolve(g,{...u,keySeparator:!1});F&&F.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 be=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let F=0;F<pe.length;F++)be.push(pe[F]);else this.options.saveMissingTo==="all"?be=this.languageUtils.toResolveHierarchy(u.lng||this.language):be.push(u.lng||this.language);const je=(F,Ne,he)=>{const we=se&&he!==j?he:K;this.options.missingKeyHandler?this.options.missingKeyHandler(F,v,Ne,we,fe,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(F,v,Ne,we,fe,u),this.emit("missingKey",F,v,Ne,j)};this.options.saveMissing&&(this.options.saveMissingPlurals&&de?be.forEach(F=>{const Ne=this.pluralResolver.getSuffixes(F,u);k&&u[`defaultValue${this.options.pluralSeparator}zero`]&&Ne.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ne.push(`${this.options.pluralSeparator}zero`),Ne.forEach(he=>{je([F],g+he,u[`defaultValue${he}`]||B)})}):je(be,g,B))}j=this.extendTranslation(j,o,u,R,c),le&&j===g&&this.options.appendNamespaceToMissingKey&&(j=`${v}${D}${g}`),(le||P)&&this.options.parseMissingKeyHandler&&(j=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}${D}${g}`:g,P?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 v;if(y){const x=o.match(this.interpolator.nestingRegexp);v=x&&x.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 x=o.match(this.interpolator.nestingRegexp),S=x&&x.length;v<S&&(c.nest=!1)}!c.lng&&u&&u.res&&(c.lng=this.language||u.usedLng),c.nest!==!1&&(o=this.interpolator.nest(o,(...x)=>f?.[0]===x[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${l[0]}`),null):this.translate(...x,l),c)),c.interpolation&&this.interpolator.reset()}const h=c.postProcess||this.options.postProcess,g=Ge(h)?[h]:h;return o!=null&&g?.length&&c.applyPostProcessor!==!1&&(o=ow.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 v=this.extractFromKey(y,l),D=v.key;u=D;let x=v.namespaces;this.options.fallbackNS&&(x=x.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!=="",H=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);x.forEach(L=>{this.isValidLookup(c)||(g=L,!q1[`${H[0]}-${L}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(g)&&(q1[`${H[0]}-${L}`]=!0,this.logger.warn(`key "${u}" for languages "${H.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!!!")),H.forEach(Q=>{if(this.isValidLookup(c))return;h=Q;const Z=[D];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(Z,D,Q,L,l);else{let de;S&&(de=this.pluralResolver.getSuffix(Q,l.count,l));const se=`${this.options.pluralSeparator}zero`,ee=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(l.ordinal&&de.indexOf(ee)===0&&Z.push(D+de.replace(ee,this.options.pluralSeparator)),Z.push(D+de),R&&Z.push(D+se)),j){const W=`${D}${this.options.contextSeparator||"_"}${l.context}`;Z.push(W),S&&(l.ordinal&&de.indexOf(ee)===0&&Z.push(W+de.replace(ee,this.options.pluralSeparator)),Z.push(W+de),R&&Z.push(W+se))}}let ne;for(;ne=Z.pop();)this.isValidLookup(c)||(f=ne,c=this.getResource(Q,L,ne,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 G1{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ms.create("languageUtils")}getScriptPartFromCode(o){if(o=Kc(o),!o||o.indexOf("-")<0)return null;const l=o.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(o){if(o=Kc(o),!o||o.indexOf("-")<0)return o;const l=o.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(o){if(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 I1={zero:0,one:1,two:2,few:3,many:4,other:5},X1={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class tC{constructor(o,l={}){this.languageUtils=o,this.options=l,this.logger=Ms.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(o,l={}){const c=Kc(o==="dev"?"en":o),u=l.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:c,type:u});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let h;try{h=new Intl.PluralRules(c,{type:u})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),X1;if(!o.match(/-|_/))return X1;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)=>I1[u]-I1[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=XR(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 Q1{constructor(o={}){this.logger=Ms.create("interpolator"),this.options=o,this.format=o?.interpolation?.format||(l=>l),this.init(o)}init(o={}){o.interpolation||(o.interpolation={escapeValue:!0});const{escape:l,escapeValue:c,useRawValueToEscape:u,prefix:f,prefixEscaped:h,suffix:g,suffixEscaped:y,formatSeparator:v,unescapeSuffix:D,unescapePrefix:x,nestingPrefix:S,nestingPrefixEscaped:R,nestingSuffix:j,nestingSuffixEscaped:H,nestingOptionsSeparator:L,maxReplaces:Q,alwaysFormat:Z}=o.interpolation;this.escape=l!==void 0?l:QR,this.escapeValue=c!==void 0?c:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=f?Kr(f):h||"{{",this.suffix=g?Kr(g):y||"}}",this.formatSeparator=v||",",this.unescapePrefix=D?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":D||"",this.nestingPrefix=S?Kr(S):R||Kr("$t("),this.nestingSuffix=j?Kr(j):H||Kr(")"),this.nestingOptionsSeparator=L||",",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||{},v=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),H=j.shift().trim(),L=j.join(this.formatSeparator).trim();return this.format(F1(l,y,H,this.options.keySeparator,this.options.ignoreJSONStructure),L,c,{...u,...l,interpolationkey:H})};this.resetRegExp();const D=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,x=u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>Rg(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?Rg(this.escape(R)):Rg(R)}].forEach(R=>{for(g=0;f=R.regex.exec(o);){const j=f[1].trim();if(h=v(j),h===void 0)if(typeof D=="function"){const L=D(o,f,u);h=Ge(L)?L:""}else if(u&&Object.prototype.hasOwnProperty.call(u,j))h="";else if(x){h=f[0];continue}else this.logger.warn(`missed to pass in variable ${j} for interpolating ${o}`),h="";else!Ge(h)&&!this.useRawValueToEscape&&(h=L1(h));const H=R.safeValue(h);if(o=o.replace(f[0],H),x?(R.regex.lastIndex+=h.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),o}nest(o,l,c={}){let u,f,h;const g=(y,v)=>{const D=this.nestingOptionsSeparator;if(y.indexOf(D)<0)return y;const x=y.split(new RegExp(`${Kr(D)}[ ]*{`));let S=`{${x[1]}`;y=x[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),v&&(h={...v,...h})}catch(H){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,H),`${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 v=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(v!==-1&&(y=u[1].slice(v).split(this.formatSeparator).map(D=>D.trim()).filter(Boolean),u[1]=u[1].slice(0,v)),f=l(g.call(this,u[1].trim(),h),h),f&&u[0]===o&&!Ge(f))return f;Ge(f)||(f=L1(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${o}`),f=""),y.length&&(f=y.reduce((D,x)=>this.format(D,x,c.lng,{...c,interpolationkey:u[1].trim()}),f.trim())),o=o.replace(u[0],f),this.regexp.lastIndex=0}return o}}const aC=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(":"),v=y.join(":").trim().replace(/^'+|'+$/g,""),D=g.trim();l[D]||(l[D]=v),v==="false"&&(l[D]=!1),v==="true"&&(l[D]=!0),isNaN(v)||(l[D]=parseInt(v,10))}})}return{formatName:o,formatOptions:l}},Z1=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)}},nC=s=>(o,l,c)=>s(Kc(l),c)(o);class sC{constructor(o={}){this.logger=Ms.create("formatter"),this.options=o,this.init(o)}init(o,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const c=l.cacheInBuiltFormats?Z1:nC;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()]=Z1(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:v,formatOptions:D}=aC(y);if(this.formats[v]){let x=g;try{const S=u?.formatParams?.[u.interpolationkey]||{},R=S.locale||S.lng||u.locale||u.lng||c;x=this.formats[v](g,R,{...D,...u,...S})}catch(S){this.logger.warn(S)}return x}else this.logger.warn(`there was no format function for ${v}`);return g},o)}}const oC=(s,o)=>{s.pending[o]!==void 0&&(delete s.pending[o],s.pendingCount--)};class rC extends Lf{constructor(o,l,c,u={}){super(),this.backend=o,this.store=l,this.services=c,this.languageUtils=c.languageUtils,this.options=u,this.logger=Ms.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,u.backend,u)}queueLoad(o,l,c,u){const f={},h={},g={},y={};return o.forEach(v=>{let D=!0;l.forEach(x=>{const S=`${v}|${x}`;!c.reload&&this.store.hasResourceBundle(v,x)?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[x]===void 0&&(y[x]=!0)))}),D||(g[v]=!0)}),(Object.keys(f).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(h),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(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=>{IR(y.loaded,[f],h),oC(y,o),l&&y.errors.push(l),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(v=>{g[v]||(g[v]={});const D=y.loaded[v];D.length&&D.forEach(x=>{g[v][x]===void 0&&(g[v][x]=!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=(v,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(v&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,o,l,c,u+1,f*2,h)},f);return}h(v,D)},y=this.backend[c].bind(this.backend);if(y.length===2){try{const v=y(o,l);v&&typeof v.then=="function"?v.then(D=>g(null,D)).catch(g):g(null,v)}catch(v){g(v)}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},v=this.backend.create.bind(this.backend);if(v.length<6)try{let D;v.length===5?D=v(o,l,c,u,y):D=v(o,l,c,u),D&&typeof D.then=="function"?D.then(x=>g(null,x)).catch(g):g(null,D)}catch(D){g(D)}else v(o,l,c,u,g,y)}!o||!o[0]||this.store.addResource(o[0],l,c,u)}}}const Cg=()=>({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}),J1=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=()=>{},iC=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(l=>{typeof s[l]=="function"&&(s[l]=s[l].bind(s))})},iw="__i18next_supportNoticeShown",lC=()=>typeof globalThis<"u"&&!!globalThis[iw],cC=()=>{typeof globalThis<"u"&&(globalThis[iw]=!0)},uC=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 Lf{constructor(o={},l){if(super(),this.options=J1(o),this.services={},this.logger=Ms,this.modules={external:[]},iC(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=Cg();this.options={...c,...this.options,...J1(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&&!uC(this)&&!lC()&&(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 💙"),cC());const u=v=>v?typeof v=="function"?new v:v:null;if(!this.options.isClone){this.modules.logger?Ms.init(u(this.modules.logger),this.options):Ms.init(null,this.options);let v;this.modules.formatter?v=this.modules.formatter:v=sC;const D=new G1(this.options);this.store=new Y1(this.options.resources,this.options);const x=this.services;x.logger=Ms,x.resourceStore=this.store,x.languageUtils=D,x.pluralResolver=new tC(D,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),v&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(x.formatter=u(v),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new Q1(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new rC(u(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(R,...j)=>{this.emit(R,...j)}),this.modules.languageDetector&&(x.languageDetector=u(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=u(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Vf(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 v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.length>0&&v[0]!=="dev"&&(this.options.lng=v[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(v=>{this[v]=(...D)=>this.store[v](...D)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(v=>{this[v]=(...D)=>(this.store[v](...D),this)});const g=Hc(),y=()=>{const v=(D,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(x),l(D,x)};if(this.languages&&!this.isInitialized)return v(null,this.t.bind(this));this.changeLanguage(this.options.lng,v)};return this.options.resources||!this.options.initAsync?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(v=>{v!=="cimode"&&f.indexOf(v)<0&&f.push(v)})};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=Hc();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"&&ow.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=Hc();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((...v)=>this.t(...v)),l&&l(g,(...v)=>this.t(...v))},h=g=>{!o&&!g&&this.services.languageDetector&&(g=[]);const y=Ge(g)?g:g&&g[0],v=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(Ge(g)?[g]:g);v&&(this.language||u(v),this.translator.language||this.translator.changeLanguage(v),this.services.languageDetector?.cacheUserLanguage?.(v)),this.loadResources(v,D=>{f(D,v)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(o),c}getFixedT(o,l,c){const u=(f,h,...g)=>{let 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 v=this.options.keySeparator||".";let D;return y.keyPrefix&&Array.isArray(f)?D=f.map(x=>(typeof x=="function"&&(x=qg(x,{...this.options,...h})),`${y.keyPrefix}${v}${x}`)):(typeof f=="function"&&(f=qg(f,{...this.options,...h})),D=y.keyPrefix?`${y.keyPrefix}${v}${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 v=this.services.backendConnector.state[`${g}|${y}`];return v===-1||v===0||v===2};if(l.precheck){const g=l.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(c,o)&&(!u||h(f,o)))}loadNamespaces(o,l){const c=Hc();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=Hc();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 G1(Cg());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,v)=>(y[v]={...this.store.data[v]},y[v]=Object.keys(y[v]).reduce((D,x)=>(D[x]={...y[v][x]},D),y[v]),y),{});f.store=new Y1(g,u),f.services.resourceStore=f.store}if(o.interpolation){const y={...Cg().interpolation,...this.options.interpolation,...o.interpolation},v={...u,interpolation:y};f.services.interpolator=new Q1(v)}return f.translator=new Vf(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 Ba=Jc.createInstance();Ba.createInstance;Ba.dir;Ba.init;Ba.loadResources;Ba.reloadResources;Ba.use;Ba.changeLanguage;Ba.getFixedT;Ba.t;Ba.exists;Ba.setDefaultNamespace;Ba.hasLoadedNamespace;Ba.loadNamespaces;Ba.loadLanguages;var E=nu();const rl=HR(E),dC=LR({__proto__:null,default:rl},[E]),fC=(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);ei(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),s?.services?.logger?.warn?s.services.logger.warn(...u):console?.warn&&console.warn(...u)},P1={},lw=(s,o,l,c)=>{ei(l)&&P1[l]||(ei(l)&&(P1[l]=new Date),fC(s,o,l,c))},cw=(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,cw(s,l))},K1=(s,o,l,c)=>{if(ei(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,cw(s,c))},mC=(s,o,l={})=>!o.languages||!o.languages.length?(lw(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}}),ei=s=>typeof s=="string",pC=s=>typeof s=="object"&&s!==null,hC=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,gC={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},bC=s=>gC[s],yC=s=>s.replace(hC,bC);let Ig={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:yC,transDefaultProps:void 0};const vC=(s={})=>{Ig={...Ig,...s}},xC=()=>Ig;let uw;const NC=s=>{uw=s},SC=()=>uw,wC={type:"3rdParty",init(s){vC(s.options.react),NC(s)}},EC=E.createContext();class DC{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var _g={exports:{}},Ug={},W1;function RC(){if(W1)return Ug;W1=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 H=j();if(!x){var L=j();f(H,L)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),x=!0)}L=h({inst:{value:H,getSnapshot:j}});var Q=L[0].inst,Z=L[1];return y(function(){Q.value=H,Q.getSnapshot=j,l(Q)&&Z({inst:Q})},[R,H,j]),g(function(){return l(Q)&&Z({inst:Q}),R(function(){l(Q)&&Z({inst:Q})})},[R]),v(H),H}function l(R){var j=R.getSnapshot;R=R.value;try{var H=j();return!f(R,H)}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,v=u.useDebugValue,D=!1,x=!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 eS;function CC(){return eS||(eS=1,_g.exports=RC()),_g.exports}var _C=CC();const UC=(s,o)=>ei(o)?o:pC(o)&&ei(o.defaultValue)?o.defaultValue:Array.isArray(s)?s[s.length-1]:s,kC={t:UC,ready:!1},TC=()=>()=>{},Le=(s,o={})=>{const{i18n:l}=o,{i18n:c,defaultNS:u}=E.useContext(EC)||{},f=l||c||SC();f&&!f.reportNamespaces&&(f.reportNamespaces=new DC),f||lw(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=E.useMemo(()=>({...xC(),...f?.options?.react,...o}),[f,o]),{useSuspense:g,keyPrefix:y}=h,v=u||f?.options?.defaultNS,D=ei(v)?[v]:v||["translation"],x=E.useMemo(()=>D,D);f?.reportNamespaces?.addUsedNamespaces?.(x);const S=E.useRef(0),R=E.useCallback(B=>{if(!f)return TC;const{bindI18n:$,bindI18nStore:ae}=h,q=()=>{S.current+=1,B()};return $&&f.on($,q),ae&&f.store.on(ae,q),()=>{$&&$.split(" ").forEach(P=>f.off(P,q)),ae&&ae.split(" ").forEach(P=>f.store.off(P,q))}},[f,h]),j=E.useRef(),H=E.useCallback(()=>{if(!f)return kC;const B=!!(f.isInitialized||f.initializedStoreOnce)&&x.every(Se=>mC(Se,f,h)),$=o.lng||f.language,ae=S.current,q=j.current;if(q&&q.ready===B&&q.lng===$&&q.keyPrefix===y&&q.revision===ae)return q;const le={t:f.getFixedT($,h.nsMode==="fallback"?x:x[0],y),ready:B,lng:$,keyPrefix:y,revision:ae};return j.current=le,le},[f,x,y,h,o.lng]),[L,Q]=E.useState(0),{t:Z,ready:ne}=_C.useSyncExternalStore(R,H,H);E.useEffect(()=>{if(f&&!ne&&!g){const B=()=>Q($=>$+1);o.lng?K1(f,o.lng,x,B):Gg(f,x,B)}},[f,o.lng,x,ne,g,L]);const de=f||{},se=E.useRef(null),ee=E.useRef(),W=B=>{const $=Object.getOwnPropertyDescriptors(B);$.__original&&delete $.__original;const ae=Object.create(Object.getPrototypeOf(B),$);if(!Object.prototype.hasOwnProperty.call(ae,"__original"))try{Object.defineProperty(ae,"__original",{value:B,writable:!1,enumerable:!1,configurable:!1})}catch{}return ae},k=E.useMemo(()=>{const B=de,$=B?.language;let ae=B;B&&(se.current&&se.current.__original===B?ee.current!==$?(ae=W(B),se.current=ae,ee.current=$):ae=se.current:(ae=W(B),se.current=ae,ee.current=$));const q=[Z,ae,ne];return q.t=Z,q.i18n=ae,q.ready=ne,q},[Z,de,ne,de.resolvedLanguage,de.language,de.languages]);if(f&&g&&!ne)throw new Promise(B=>{const $=()=>B();o.lng?K1(f,o.lng,x,$):Gg(f,x,$)});return k},{slice:OC,forEach:jC}=[];function AC(s){return jC.call(OC.call(arguments,1),o=>{if(o)for(const l in o)s[l]===void 0&&(s[l]=o[l])}),s}function MC(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 tS=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,VC=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(!tS.test(c.domain))throw new TypeError("option domain is invalid");f+=`; Domain=${c.domain}`}if(c.path){if(!tS.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},aS={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=VC(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 zC={name:"cookie",lookup(s){let{lookupCookie:o}=s;if(o&&typeof document<"u")return aS.read(o)||void 0},cacheUserLanguage(s,o){let{lookupCookie:l,cookieMinutes:c,cookieDomain:u,cookieOptions:f}=o;l&&typeof document<"u"&&aS.create(l,s,c,u,f)}},LC={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}},HC={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 nS=()=>{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 BC={name:"localStorage",lookup(s){let{lookupLocalStorage:o}=s;if(o&&nS())return window.localStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupLocalStorage:l}=o;l&&nS()&&window.localStorage.setItem(l,s)}};let sl=null;const sS=()=>{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 $C={name:"sessionStorage",lookup(s){let{lookupSessionStorage:o}=s;if(o&&sS())return window.sessionStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupSessionStorage:l}=o;l&&sS()&&window.sessionStorage.setItem(l,s)}},YC={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}},qC={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}},GC={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}},IC={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 dw=!1;try{document.cookie,dw=!0}catch{}const fw=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];dw||fw.splice(1,1);const XC=()=>({order:fw,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:s=>s});class mw{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=AC(l,this.options||{},XC()),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(zC),this.addDetector(LC),this.addDetector(BC),this.addDetector($C),this.addDetector(YC),this.addDetector(qC),this.addDetector(GC),this.addDetector(IC),this.addDetector(HC)}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&&!MC(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)}))}}mw.type="languageDetector";const FC={"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. (Document upload coming soon)","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.safety.notice":"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.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":"Set authorized directories via c4a-daemon --server <host> --allow ./a ~/b ~/c","sources.import.already_imported":"Imported","sources.import.dir_title":"Import Directory","sources.import.dir_step.select":"Select Directory","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.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."},QC={"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.safety.notice":"你的代码保有绝对隐私。源代码永远不会离开你的电脑,系统仅提取用于知识建模的结构化摘要(函数签名、依赖关系等)。","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":"通过 c4a-daemon --server <host> --allow ./a ~/b ~/c 设定有权限的目录","sources.import.already_imported":"已导入","sources.import.dir_title":"导入目录","sources.import.dir_step.select":"选择目录","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.actions.upload":"上传","sources.actions.upload_md":"Markdown 文档","sources.actions.add":"新增","sources.actions.add_folder":"目录","sources.actions.add_web":"网页","sources.actions.add_feishu":"飞书文档","sources.actions.import_dir":"导入目录","sources.actions.import_repo_url":"导入仓库","sources.upgrade.title":"功能升级中","sources.upgrade.description":"此功能将在 0.5.x 版本中推出,敬请期待。"};Ba.use(mw).use(wC).init({resources:{en:{translation:FC},zh:{translation:QC}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var kg={exports:{}},Bc={},Tg={exports:{}},Og={},oS;function ZC(){return oS||(oS=1,(function(s){(function(){function o(){if(se=!1,B){var K=s.unstable_now();q=K;var fe=!0;try{e:{ne=!1,de&&(de=!1,W($),$=-1),Z=!0;var be=Q;try{t:{for(h(K),L=c(R);L!==null&&!(L.expirationTime>K&&y());){var pe=L.callback;if(typeof pe=="function"){L.callback=null,Q=L.priorityLevel;var je=pe(L.expirationTime<=K);if(K=s.unstable_now(),typeof je=="function"){L.callback=je,h(K),fe=!0;break t}L===c(R)&&u(R),h(K)}else u(R);L=c(R)}if(L!==null)fe=!0;else{var F=c(j);F!==null&&v(g,F.startTime-K),fe=!1}}break e}finally{L=null,Q=be,Z=!1}fe=void 0}}finally{fe?P():B=!1}}}function l(K,fe){var be=K.length;K.push(fe);e:for(;0<be;){var pe=be-1>>>1,je=K[pe];if(0<f(je,fe))K[pe]=fe,K[be]=je,be=pe;else break e}}function c(K){return K.length===0?null:K[0]}function u(K){if(K.length===0)return null;var fe=K[0],be=K.pop();if(be!==fe){K[0]=be;e:for(var pe=0,je=K.length,F=je>>>1;pe<F;){var Ne=2*(pe+1)-1,he=K[Ne],we=Ne+1,tt=K[we];if(0>f(he,be))we<je&&0>f(tt,he)?(K[pe]=tt,K[we]=be,pe=we):(K[pe]=he,K[Ne]=be,pe=Ne);else if(we<je&&0>f(tt,be))K[pe]=tt,K[we]=be,pe=we;else break e}}return fe}function f(K,fe){var be=K.sortIndex-fe.sortIndex;return be!==0?be:K.id-fe.id}function h(K){for(var fe=c(j);fe!==null;){if(fe.callback===null)u(j);else if(fe.startTime<=K)u(j),fe.sortIndex=fe.expirationTime,l(R,fe);else break;fe=c(j)}}function g(K){if(de=!1,h(K),!ne)if(c(R)!==null)ne=!0,B||(B=!0,P());else{var fe=c(j);fe!==null&&v(g,fe.startTime-K)}}function y(){return se?!0:!(s.unstable_now()-q<ae)}function v(K,fe){$=ee(function(){K(s.unstable_now())},fe)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var D=performance;s.unstable_now=function(){return D.now()}}else{var x=Date,S=x.now();s.unstable_now=function(){return x.now()-S}}var R=[],j=[],H=1,L=null,Q=3,Z=!1,ne=!1,de=!1,se=!1,ee=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null,B=!1,$=-1,ae=5,q=-1;if(typeof k=="function")var P=function(){k(o)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Se=le.port2;le.port1.onmessage=o,P=function(){Se.postMessage(null)}}else P=function(){ee(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(K){K.callback=null},s.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<K?Math.floor(1e3/K):5},s.unstable_getCurrentPriorityLevel=function(){return Q},s.unstable_next=function(K){switch(Q){case 1:case 2:case 3:var fe=3;break;default:fe=Q}var be=Q;Q=fe;try{return K()}finally{Q=be}},s.unstable_requestPaint=function(){se=!0},s.unstable_runWithPriority=function(K,fe){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var be=Q;Q=K;try{return fe()}finally{Q=be}},s.unstable_scheduleCallback=function(K,fe,be){var pe=s.unstable_now();switch(typeof be=="object"&&be!==null?(be=be.delay,be=typeof be=="number"&&0<be?pe+be:pe):be=pe,K){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=be+je,K={id:H++,callback:fe,priorityLevel:K,startTime:be,expirationTime:je,sortIndex:-1},be>pe?(K.sortIndex=be,l(j,K),c(R)===null&&K===c(j)&&(de?(W($),$=-1):de=!0,v(g,be-pe))):(K.sortIndex=je,l(R,K),ne||Z||(ne=!0,B||(B=!0,P()))),K},s.unstable_shouldYield=y,s.unstable_wrapCallback=function(K){var fe=Q;return function(){var be=Q;Q=fe;try{return K.apply(this,arguments)}finally{Q=be}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Og)),Og}var rS;function JC(){return rS||(rS=1,Tg.exports=ZC()),Tg.exports}var jg={exports:{}},Da={},iS;function PC(){if(iS)return Da;iS=1;return(function(){function s(){}function o(x){return""+x}function l(x,S,R){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{o(j);var H=!1}catch{H=!0}return H&&(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:v,key:j==null?null:""+j,children:x,containerInfo:S,implementation:R}}function c(x,S){if(x==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}function u(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":'something with type "'+typeof x+'"'}function f(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":typeof x=="string"?JSON.stringify(x):typeof x=="number"?"`"+x+"`":'something with type "'+typeof x+'"'}function h(){var x=D.H;return x===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
19
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
20
|
+
2. You might be breaking the Rules of Hooks
|
|
21
|
+
3. You might have more than one copy of React in the same app
|
|
22
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),x}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=nu(),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},v=Symbol.for("react.portal"),D=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Da.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,Da.createPortal=function(x,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(x,S,null,R)},Da.flushSync=function(x){var S=D.T,R=y.p;try{if(D.T=null,y.p=2,x)return x()}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.")}},Da.preconnect=function(x,S){typeof x=="string"&&x?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(x)),typeof x=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,y.d.C(x,S))},Da.prefetchDNS=function(x){if(typeof x!="string"||!x)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(x));else if(1<arguments.length){var 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 x=="string"&&y.d.D(x)},Da.preinit=function(x,S){if(typeof x=="string"&&x?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(x)),typeof x=="string"&&S&&typeof S.as=="string"){var R=S.as,j=c(R,S.crossOrigin),H=typeof S.integrity=="string"?S.integrity:void 0,L=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;R==="style"?y.d.S(x,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:j,integrity:H,fetchPriority:L}):R==="script"&&y.d.X(x,{crossOrigin:j,integrity:H,fetchPriority:L,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},Da.preinitModule=function(x,S){var R="";typeof x=="string"&&x||(R+=" The `href` argument encountered was "+u(x)+"."),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,x)),typeof x=="string"&&(typeof S=="object"&&S!==null?(S.as==null||S.as==="script")&&(R=c(S.as,S.crossOrigin),y.d.M(x,{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(x))},Da.preload=function(x,S){var R="";if(typeof x=="string"&&x||(R+=" The `href` argument encountered was "+u(x)+"."),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 x=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){R=S.as;var j=c(R,S.crossOrigin);y.d.L(x,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})}},Da.preloadModule=function(x,S){var R="";typeof x=="string"&&x||(R+=" The `href` argument encountered was "+u(x)+"."),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 x=="string"&&(S?(R=c(S.as,S.crossOrigin),y.d.m(x,{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(x))},Da.requestFormReset=function(x){y.d.r(x)},Da.unstable_batchedUpdates=function(x,S){return x(S)},Da.useFormState=function(x,S,R){return h().useFormState(x,S,R)},Da.useFormStatus=function(){return h().useHostTransitionStatus()},Da.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Da}var lS;function KC(){return lS||(lS=1,jg.exports=PC()),jg.exports}var cS;function WC(){if(cS)return Bc;cS=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():Ke({},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():Ke({},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():Ke({},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 v(){}function D(){}function x(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function S(e,t,a,n){return new DE(e,t,a,n)}function R(e,t){e.context===qo&&(Yp(e.current,2,t,e,null,null),pi())}function j(e,t){if(Rn!==null){var a=t.staleFamilies;t=t.updatedFamilies,Al(),Bb(e.current,t,a),pi()}}function H(e){Rn=e}function L(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 ne(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 de(e){if(Q(e)!==e)throw Error("Unable to find node on an unmounted component.")}function se(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 de(r),e;if(i===n)return de(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,m=r.child;m;){if(m===a){d=!0,a=r,n=i;break}if(m===n){d=!0,n=r,a=i;break}m=m.sibling}if(!d){for(m=i.child;m;){if(m===a){d=!0,a=i,n=r;break}if(m===n){d=!0,n=i,a=r;break}m=m.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 ee(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ee(e),t!==null)return t;e=e.sibling}return null}function W(e){return e===null||typeof e!="object"?null:(e=F0&&e[F0]||e["@@iterator"],typeof e=="function"?e:null)}function k(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F4?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 Ds:return e.displayName||"Context";case Jp:return(e._context.displayName||"Context")+".Consumer";case Gl: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:k(e.type)||"Memo";case cn:t=e._payload,e=e._init;try{return k(e(t))}catch{}}return null}function B(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 k(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 ae(e){return{current:e}}function q(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 P(e,t,a){eo++,eh[eo]=e.current,th[eo]=a,e.current=t}function le(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 Se(e,t){P(zo,t,e),P(Il,e,e),P(Vo,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?b0(t):go;break;default:if(a=t.tagName,t=t.namespaceURI)t=b0(t),t=y0(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},q(Vo,e),P(Vo,a,e)}function K(e){q(Vo,e),q(Il,e),q(zo,e)}function fe(){return le(Vo.current)}function be(e){e.memoizedState!==null&&P(yd,e,e);var t=le(Vo.current),a=e.type,n=y0(t.context,a);a=du(t.ancestorInfo,a),n={context:n,ancestorInfo:a},t!==n&&(P(Il,e,e),P(Vo,n,e))}function pe(e){Il.current===e&&(q(Vo,e),q(Il,e)),yd.current===e&&(q(yd,e),Vc._currentValue=Pr)}function je(){}function F(){if(Xl===0){Q0=console.log,Z0=console.info,J0=console.warn,P0=console.error,K0=console.group,W0=console.groupCollapsed,ex=console.groupEnd;var e={configurable:!0,enumerable:!0,value:je,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Xl++}function Ne(){if(Xl--,Xl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},e,{value:Q0}),info:Ke({},e,{value:Z0}),warn:Ke({},e,{value:J0}),error:Ke({},e,{value:P0}),group:Ke({},e,{value:K0}),groupCollapsed:Ke({},e,{value:W0}),groupEnd:Ke({},e,{value:ex})})}0>Xl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function he(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 we(e){if(ah===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ah=t&&t[1]||"",tx=-1<a.stack.indexOf(`
|
|
26
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
+
`+ah+e+tx}function tt(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=X.H,X.H=null,F();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(me){var Y=me}Reflect.construct(e,[],U)}else{try{U.call()}catch(me){Y=me}e.call(U.prototype)}}else{try{throw Error()}catch(me){Y=me}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(me){if(me&&Y&&typeof me.stack=="string")return[me.stack,Y.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),m=d[0],b=d[1];if(m&&b){var N=m.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,X.H=n,Ne(),Error.prepareStackTrace=a}return N=(N=e?e.displayName||e.name:"")?we(N):"",typeof e=="function"&&sh.set(e,N),N}function Mt(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we("Lazy");case 13:return e.child!==t&&t!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return tt(e.type,!1);case 11:return tt(e.type.render,!1);case 1:return tt(e.type,!0);case 31:return we("Activity");default:return""}}function Ye(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 m=i.name,b=i.env,N=i.debugLocation;if(N!=null){var A=he(N),M=A.lastIndexOf(`
|
|
31
|
+
`),U=M===-1?A:A.slice(M+1);if(U.indexOf(m)!==-1){var Y=`
|
|
32
|
+
`+U;break e}}Y=we(m+(b?" ["+b+"]":""))}t=d+Y}}a=e,e=e.return}while(e);return t}catch(me){return`
|
|
33
|
+
Error generating stack: `+me.message+`
|
|
34
|
+
`+me.stack}}function Vt(e){return(e=e?e.displayName||e.name:"")?we(e):""}function zt(){if(un===null)return null;var e=un._debugOwner;return e!=null?B(e):null}function Ka(){if(un===null)return"";var e=un;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=we(e.type);break;case 13:t+=we("Suspense");break;case 19:t+=we("SuspenseList");break;case 31:t+=we("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Vt(e.type));break;case 11:e._debugOwner||t!==""||(t+=Vt(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=he(n);r!==""&&(t+=`
|
|
35
|
+
`+r)}}else if(e.debugStack!=null){var i=e.debugStack;(e=e.owner)&&i&&(t+=`
|
|
36
|
+
`+he(i))}else break;var d=t}catch(m){d=`
|
|
37
|
+
Error generating stack: `+m.message+`
|
|
38
|
+
`+m.stack}return d}function ve(e,t,a,n,r,i,d){var m=un;Bn(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{Bn(m)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Bn(e){X.getCurrentStack=e===null?null:Ka,Rs=!1,un=e}function Et(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function va(e){try{return Wa(e),!1}catch{return!0}}function Wa(e){return""+e}function ft(e,t){if(va(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(va(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 ss(e){if(va(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 mr(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),wa=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function te(e){if(typeof eD=="function"&&tD(e),wa&&typeof wa.setStrictMode=="function")try{wa.setStrictMode(wi,e)}catch(t){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",t))}}function Ze(e){return e>>>=0,e===0?32:31-(aD(e)/nD|0)|0}function ut(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 $a(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 m=n&134217727;return m!==0?(n=m&~i,n!==0?r=ut(n):(d&=m,d!==0?r=ut(d):a||(a=m&~e,a!==0&&(r=ut(a))))):(m=n&~i,m!==0?r=ut(m):d!==0?r=ut(d):a||(a=n&~e,a!==0&&(r=ut(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 yn(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 en(){var e=Nd;return Nd<<=1,(Nd&62914560)===0&&(Nd=4194304),e}function Ft(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function vn(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 m=e.entanglements,b=e.expirationTimes,N=e.hiddenUpdates;for(a=d&~a;0<a;){var A=31-Oa(a),M=1<<A;m[A]=0,b[A]=-1;var U=N[A];if(U!==null)for(N[A]=null,A=0;A<U.length;A++){var Y=U[A];Y!==null&&(Y.lane&=-536870913)}a&=~M}n!==0&&_a(e,n,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(d&~t))}function _a(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 No(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:xn(a),(a&(e.suspendedLanes|t))!==0?0:a}function xn(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(_s)for(e=e.pendingUpdatersLaneMap;0<a;){var n=31-Oa(a),r=1<<n;e[n].add(t),a&=~r}}function xa(e,t){if(_s)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,wn<e?Us<e?(e&134217727)!==0?to:Sd:Us:wn}function $n(){var e=gt.p;return e!==0?e:(e=window.event,e===void 0?to:B0(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[ga],delete e[ja],delete e[ch],delete e[sD],delete e[oD]}function oe(e){var t=e[ga];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ho]||a[ga]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=R0(e);e!==null;){if(a=e[ga])return a;e=R0(e)}return t}e=a,a=e.parentNode}return null}function ue(e){if(e=e[ga]||e[Ho]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ee(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function He(e){var t=e[ax];return t||(t=e[ax]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ce(e){e[Fl]=!0}function at(e,t){qe(e,t),qe(e+"Capture",t)}function qe(e,t){_r[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),_r[e]=t;var a=e.toLowerCase();for(uh[a]=e,e==="onDoubleClick"&&(uh.ondblclick=e),e=0;e<t.length;e++)nx.add(t[e])}function oa(e,t){rD[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 Ua(e){return Zn.call(ox,e)?!0:Zn.call(sx,e)?!1:iD.test(e)?ox[e]=!0:(sx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function qs(e,t,a){if(Ua(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:(ft(a,t),e===""+a?a:e)}}function Gs(e,t,a){if(Ua(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}}ft(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}ft(a,t),e.setAttribute(t,""+a)}}function Yn(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}ft(n,a),e.setAttributeNS(t,a,""+n)}}function _(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return ss(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){ss(d),a=""+d,i.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){ss(d),a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ie(e){if(!e._valueTracker){var t=z(e)?"checked":"value";e._valueTracker=I(e,t,""+e[t])}}function ce(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 _e(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 ye(e){return e.replace(lD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ke(e,t){t.checked===void 0||t.defaultChecked===void 0||ix||(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",zt()||"A component",t.type),ix=!0),t.value===void 0||t.defaultValue===void 0||rx||(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",zt()||"A component",t.type),rx=!0)}function De(e,t,a,n,r,i,d,m){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?(ft(d,"type"),e.type=d):e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_(t)):e.value!==""+_(t)&&(e.value=""+_(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Ae(e,d,_(t)):a!=null?Ae(e,d,_(a)):n!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?(ft(m,"name"),e.name=""+_(m)):e.removeAttribute("name")}function Me(e,t,a,n,r,i,d,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(ft(i,"type"),e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){ie(e);return}a=a!=null?""+_(a):"",t=t!=null?""+_(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(ft(d,"name"),e.name=d),ie(e)}function Ae(e,t,a){t==="number"&&_e(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ue(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"||cx||(cx=!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||ux||(ux=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||lx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),lx=!0)}function mt(){var e=zt();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=""+_(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<fx.length;e++){var a=fx[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||dx||(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"),dx=!0)}function qt(e,t){t.value===void 0||t.defaultValue===void 0||mx||(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",zt()||"A component"),mx=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ra(e,t,a){if(t!=null&&(t=""+_(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+_(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=_(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),ie(e)}function ka(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?ka(e.children[0],t):e}function Gt(e){return" "+" ".repeat(e)}function Nn(e){return"+ "+" ".repeat(e)}function Na(e){return"- "+" ".repeat(e)}function tn(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 px.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 os(e,t,a){var n=120-2*a;if(t===null)return Nn(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)),Nn(a)+Is(e,n)+`
|
|
42
|
+
`+Na(a)+Is(t,n)+`
|
|
43
|
+
`}return Gt(a)+Is(e,n)+`
|
|
44
|
+
`}function qn(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function rs(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===Es)return(t=k(e.type))?"<"+t+">":"<...>";var a=qn(e);if(a==="Object"){a="",t-=2;for(var n in e)if(e.hasOwnProperty(n)){var r=JSON.stringify(n);if(r!=='"'+n+'"'&&(n=r),t-=n.length-2,r=rs(e[n],15>t?t:15),t-=r.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+n+":"+r}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Gn(e,t){return typeof e!="string"||px.test(e)?"{"+rs(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=Gn(t[i],120-a.length-i.length-1);n-=i.length+d.length+2,r.push(i+"="+d)}return r.length===0?a+"<"+e+`>
|
|
45
|
+
`:0<n?a+"<"+e+" "+r.join(" ")+`>
|
|
46
|
+
`:a+"<"+e+`
|
|
47
|
+
`+a+" "+r.join(`
|
|
48
|
+
`+a+" ")+`
|
|
49
|
+
`+a+`>
|
|
50
|
+
`}function ia(e,t,a){var n="",r=Ke({},t),i;for(i in e)if(e.hasOwnProperty(i)){delete r[i];var d=120-2*a-i.length-2,m=rs(e[i],d);t.hasOwnProperty(i)?(d=rs(t[i],d),n+=Nn(a)+i+": "+m+`
|
|
51
|
+
`,n+=Na(a)+i+": "+d+`
|
|
52
|
+
`):n+=Nn(a)+i+": "+m+`
|
|
53
|
+
`}for(var b in r)r.hasOwnProperty(b)&&(e=rs(r[b],120-2*a-b.length-2),n+=Na(a)+b+": "+e+`
|
|
54
|
+
`);return n}function So(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,Gt(n));else{for(var d in t)if(t.hasOwnProperty(d)&&d!=="children"){var m=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=Gn(N,m);m=Gn(b,m),typeof N=="object"&&N!==null&&typeof b=="object"&&b!==null&&qn(N)==="Object"&&qn(b)==="Object"&&(2<Object.keys(N).length||2<Object.keys(b).length||-1<A.indexOf("...")||-1<m.indexOf("..."))?r+=Gt(n+1)+d+`={{
|
|
55
|
+
`+ia(N,b,n+2)+Gt(n+1)+`}}
|
|
56
|
+
`:(r+=Nn(n+1)+d+"="+A+`
|
|
57
|
+
`,r+=Na(n+1)+d+"="+m+`
|
|
58
|
+
`)}else r+=Gt(n+1)+d+"="+Gn(t[d],m)+`
|
|
59
|
+
`}i.forEach(function(M){if(M!=="children"){var U=120-2*(n+1)-M.length-1;r+=Na(n+1)+M+"="+Gn(a[M],U)+`
|
|
60
|
+
`}}),r=r===""?Gt(n)+"<"+e+`>
|
|
61
|
+
`:Gt(n)+"<"+e+`
|
|
62
|
+
`+r+Gt(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+=os(i,""+e,n+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+os(""+t,null,n+1):r+os(""+t,void 0,n+1)),r}function is(e,t){var a=tn(e);if(a===null){for(a="",e=e.child;e;)a+=is(e,t),e=e.sibling;return a}return Gt(t)+"<"+a+`>
|
|
64
|
+
`}function Ct(e,t){var a=ka(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Gt(t)+`...
|
|
65
|
+
`+Ct(a,t+1);a="";var n=e.fiber._debugInfo;if(n)for(var r=0;r<n.length;r++){var i=n[r].name;typeof i=="string"&&(a+=Gt(t)+"<"+i+`>
|
|
66
|
+
`,t++)}if(n="",r=e.fiber.pendingProps,e.fiber.tag===6)n=os(r,e.serverProps,t),t++;else if(i=tn(e.fiber),i!==null)if(e.serverProps===void 0){n=t;var d=120-2*n-i.length-2,m="";for(N in r)if(r.hasOwnProperty(N)&&N!=="children"){var b=Gn(r[N],15);if(d-=N.length+b.length+2,0>d){m+=" ...";break}m+=" "+N+"="+b}n=Gt(n)+"<"+i+m+`>
|
|
67
|
+
`,t++}else e.serverProps===null?(n=st(i,r,Nn(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=So(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+=Ct(d,t),i++):N+=is(r,t),r=r.sibling;for(r&&0<e.children.length&&(N+=Gt(t)+`...
|
|
68
|
+
`),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)i=r[e],N=typeof i=="string"?N+(Na(t)+Is(i,120-2*t)+`
|
|
69
|
+
`):N+st(i.type,i.props,Na(t));return a+n+N}function wo(e){try{return`
|
|
70
|
+
|
|
71
|
+
`+Ct(e,0)}catch{return""}}function dl(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?wo(r).replaceAll(/^[+-]/gm,">"):""}function du(e,t){var a=Ke({},e||gx),n={tag:t};return hx.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),uD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),cD.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 fb(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 dD.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 oE(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 mb(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||gx;var a=t.current;if(t=(a=fb(e,a&&a.tag,t.implicitRootScope)?null:a)?null:oE(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=un)?mb(t.return,n):null,i=t!==null&&r!==null?dl(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||ve(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||fb("#text",t,!1))return!0;if(a="#text|"+t,wd[a])return!1;wd[a]=!0;var n=(a=un)?mb(a,t):null;return a=a!==null&&n!==null?dl(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 fl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function rE(e){return e.replace(pD,function(t,a){return a.toUpperCase()})}function pb(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,rE(t.replace(mD,"ms-")))):fD.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))):!vx.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(vx,""))),typeof a=="number"&&(isNaN(a)?xx||(xx=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||Nx||(Nx=!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||Sx.has(t)?t==="float"?e.cssFloat=a:(Dt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function hb(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 m in t)if(t.hasOwnProperty(m)&&(!a||a[m]!==t[m]))for(r=dh[m]||[m],i=0;i<r.length;i++)n[r[i]]=m;m={};for(var b in t)for(r=dh[b]||[b],i=0;i<r.length;i++)m[r[i]]=b;b={};for(var N in n)if(r=n[N],(i=m[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 U in t)N=t[U],t.hasOwnProperty(U)&&a[U]!==N&&pb(e,U,N)}else for(n in t)t.hasOwnProperty(n)&&pb(e,n,t[n])}function ml(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 gb(e){return hD.get(e)||e}function iE(e,t){if(Zn.call(Ri,t)&&Ri[t])return!0;if(bD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=wx.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(gD.test(t)){if(e=t.toLowerCase(),e=wx.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 lE(e,t){var a=[],n;for(n in t)iE(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 cE(e,t,a,n){if(Zn.call(Aa,t)&&Aa[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Aa[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(n!=null){if(e=n.possibleRegistrationNames,n.registrationNameDependencies.hasOwnProperty(t))return!0;if(n=e.hasOwnProperty(r)?e[r]:null,n!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,n),Aa[t]=!0;if(Dx.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Aa[t]=!0}else if(Dx.test(t))return yD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Aa[t]=!0;if(vD.test(t)||xD.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Aa[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Aa[t]=!0;if(r==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Aa[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Aa[t]=!0;if(Dd.hasOwnProperty(r)){if(r=Dd[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),Aa[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),Aa[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),Aa[t]=!0)}case"function":case"symbol":return Aa[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),Aa[t]=!0}}return!0}function uE(e,t,a){var n=[],r;for(r in t)cE(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 pl(e){return ND.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xs(){}function Jf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function bb(e){var t=ue(e);if(t&&(e=t.stateNode)){var a=e[ja]||null;e:switch(e=t.stateNode,t.type){case"input":if(De(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(ft(t,"name"),a=a.querySelectorAll('input[name="'+ye(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[ja]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");De(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&ce(n)}break e;case"textarea":ra(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&We(e,!!a.multiple,t,!1)}}}function yb(e,t,a){if(mh)return e(t,a);mh=!0;try{var n=e(t);return n}finally{if(mh=!1,(Ci!==null||_i!==null)&&(pi(),Ci&&(t=Ci,e=_i,_i=Ci=null,bb(t),e)))for(t=0;t<e.length;t++)bb(e[t])}}function hl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[ja]||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 vb(){if(Rd)return Rd;var e,t=hh,a=t.length,n,r="value"in Bo?Bo.value:Bo.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 xb(){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 m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?pu:xb,this.isPropagationStopped=xb,this}return Ke(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 dE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AD[e])?!!t[e]:!1}function Pf(){return dE}function Nb(e,t){switch(e){case"keyup":return XD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Ux;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function fE(e,t){switch(e){case"compositionend":return Sb(t);case"keypress":return t.which!==Tx?null:(jx=!0,Ox);case"textInput":return e=t.data,e===Ox&&jx?null:e;default:return null}}function mE(e,t){if(Ui)return e==="compositionend"||!vh&&Nb(e,t)?(e=vb(),Rd=hh=Bo=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 kx&&t.locale!=="ko"?null:t.data;default:return null}}function wb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!QD[e.type]:t==="textarea"}function pE(e){if(!ks)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 Eb(e,t,a,n){Ci?_i?_i.push(n):_i=[n]:Ci=n,t=rd(t,"onChange"),0<t.length&&(a=new Cd("onChange","change",null,a,n),e.push({event:a,listeners:t}))}function hE(e){r0(e,0)}function hu(e){var t=Ee(e);if(ce(t))return e}function Db(e,t){if(e==="change")return t}function Rb(){Wl&&(Wl.detachEvent("onpropertychange",Cb),ec=Wl=null)}function Cb(e){if(e.propertyName==="value"&&hu(ec)){var t=[];Eb(t,ec,e,Jf(e)),yb(hE,t)}}function gE(e,t,a){e==="focusin"?(Rb(),Wl=t,ec=a,Wl.attachEvent("onpropertychange",Cb)):e==="focusout"&&Rb()}function bE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hu(ec)}function yE(e,t){if(e==="click")return hu(t)}function vE(e,t){if(e==="input"||e==="change")return hu(t)}function xE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function gl(e,t){if(Ma(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!Zn.call(t,r)||!Ma(e[r],t[r]))return!1}return!0}function _b(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ub(e,t){var a=_b(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=_b(a)}}function kb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_e(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=_e(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 Ob(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Nh||ki==null||ki!==_e(n)||(n=ki,"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}),tc&&gl(tc,n)||(tc=n,n=rd(xh,"onSelect"),0<n.length&&(t=new Cd("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=ki)))}function pr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function hr(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 Mx)return Sh[e]=t[a];return e}function In(e,t){Bx.set(e,t),at(t,[e])}function NE(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!==Ch)return Dh;t=Ch}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)Zn.call(e,r)&&r[0]!=="_"&&ls(r,e[r],t,a,n)}function ls(e,t,a,n,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Es){var i=k(t.type)||"…",d=t.key;t=t.props;var m=Object.keys(t),b=m.length;if(d==null&&b===0){t="<"+i+" />";break}if(3>n||b===1&&m[0]==="children"&&d==null){t="<"+i+" … />";break}a.push([r+" ".repeat(n)+e,"<"+i]),d!==null&&ls("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):Zn.call(t,N)&&N[0]!=="_"&&ls(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=NE(t),N===Rh||N===Ud){t=JSON.stringify(t);break}else if(N===Ch){for(a.push([r+" ".repeat(n)+e,""]),e=0;e<t.length;e++)i=t[e],ls(i[0],i[1],a,n+1,r);return}}if(i==="Promise"){if(t.status==="fulfilled"){if(i=a.length,ls(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,ls(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===tR?"…":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([kd+" ".repeat(n)+d,"…"]),r=!1);for(var i in t)if(i in e){var d=e[i],m=t[i];if(d!==m){if(n===0&&i==="children")r=" ".repeat(n)+i,a.push([kd+r,"…"],[Td+r,"…"]);else{if(!(3<=n)){if(typeof d=="object"&&typeof m=="object"&&d!==null&&m!==null&&d.$$typeof===m.$$typeof)if(m.$$typeof===Es){if(d.type===m.type&&d.key===m.key){d=k(m.type)||"…",r=" ".repeat(n)+i,d="<"+d+" … />",a.push([kd+r,d],[Td+r,d]),r=!1;continue}}else{var b=Object.prototype.toString.call(d),N=Object.prototype.toString.call(m);if(b===N&&(N==="[object Object]"||N==="[object Array]")){b=[qx+" ".repeat(n)+i,N==="[object Array]"?"Array":""],a.push(b),N=a.length,jb(d,m,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 m=="function"&&d.name===m.name&&d.length===m.length&&(b=Function.prototype.toString.call(d),N=Function.prototype.toString.call(m),b===N)){d=m.name===""?"() => {}":m.name+"() {}",a.push([qx+" ".repeat(n)+i,d+" Referentially unequal function closure. Consider memoization."]);continue}}ls(i,d,a,n,kd),ls(i,m,a,n,Td)}r=!1}}else a.push([Td+" ".repeat(n)+i,"…"]),r=!1;return r}function Xn(e){lt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function cs(e,t,a,n){_t&&(Yo.start=t,Yo.end=a,ao.color="warning",ao.tooltipText=n,ao.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,n,Yo)):performance.measure(n,Yo))}function gu(e,t,a){cs(e,t,a,"Reconnect")}function bu(e,t,a,n,r){var i=$(e);if(i!==null&&_t){var d=e.alternate,m=e.actualDuration;if(d===null||d.child!==e.child)for(var b=e.child;b!==null;b=b.sibling)m-=b.actualDuration;n=.5>m?n?"tertiary-light":"primary-light":10>m?n?"tertiary":"primary":100>m?n?"tertiary-dark":"primary-dark":"error";var N=e.memoizedProps;m=e._debugTask,N!==null&&d!==null&&d.memoizedProps!==N?(b=[aR],N=jb(d.memoizedProps,N,b,0),1<b.length&&(N&&!$o&&(d.lanes&r)===0&&100<e.actualDuration?($o=!0,b[0]=nR,ao.color="warning",ao.tooltipText=Gx):(ao.color=n,ao.tooltipText=i),ao.properties=b,Yo.start=t,Yo.end=a,m!=null?m.run(performance.measure.bind(performance,""+i,Yo)):performance.measure(""+i,Yo))):m!=null?m.run(console.timeStamp.bind(console,i,t,a,En,void 0,n)):console.timeStamp(i,t,a,En,void 0,n)}}function em(e,t,a,n){if(_t){var r=$(e);if(r!==null){for(var i=null,d=[],m=0;m<n.length;m++){var b=n[m];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&&ls("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:En,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 us(e,t,a,n,r){if(r!==null){if(_t){var i=$(e);if(i!==null){n=[];for(var d=0;d<r.length;d++){var m=r[d].value;n.push(["Error",typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m)])}e.key!==null&&ls("key",e.key,n,0,""),e.memoizedProps!==null&&Wf(e.memoizedProps,n,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:En,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&&_t&&(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,En,void 0,r)):console.timeStamp(i,t,a,En,void 0,r))}function SE(e,t,a,n){if(_t&&!(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 Ab(e,t,a,n){!_t||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 Mb(e,t,a,n){!_t||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 wE(e,t,a,n,r,i){if(_t&&!(t<=e)){a=[];for(var d=0;d<n.length;d++){var m=n[d].value;a.push(["Recoverable Error",typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m)])}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){!_t||t<=e||(n?n.run(console.timeStamp.bind(console,"Errored",e,t,lt,rt,"error")):console.timeStamp("Errored",e,t,lt,rt,"error"))}function EE(e,t,a,n){!_t||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 Vb(e,t,a,n,r){if(_t&&!(t<=e)){for(var i=[],d=0;d<a.length;d++){var m=a[d].value;i.push(["Error",typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m)])}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){!_t||t<=e||console.timeStamp("Animating",e,t,lt,rt,"secondary-dark")}function yu(){for(var e=Oi,t=_h=Oi=0;t<e;){var a=Dn[t];Dn[t++]=null;var n=Dn[t];Dn[t++]=null;var r=Dn[t];Dn[t++]=null;var i=Dn[t];if(Dn[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&&zb(a,r,i)}}function vu(e,t,a,n){Dn[Oi++]=e,Dn[Oi++]=t,Dn[Oi++]=a,Dn[Oi++]=n,_h|=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 Sa(e,t){return vu(e,null,null,t),xu(e)}function zb(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&ac||(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(Uc>vR)throw Ir=Uc=0,kc=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.");Ir>xR&&(Ir=0,kc=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&&Wv(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&Wv(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function gr(e){if(Rn===null)return e;var t=Rn(e);return t===void 0?e:t.current}function sm(e){if(Rn===null)return e;var t=Rn(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=gr(e.render),e.render!==t)?(t={$$typeof:Gl,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Lb(e,t){if(Rn===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===cn)&&(n=!0);break;case 11:(r===Gl||r===cn)&&(n=!0);break;case 14:case 15:(r===bd||r===cn)&&(n=!0);break;default:return!1}return!!(n&&(e=Rn(a),e!==void 0&&e===Rn(t)))}function Hb(e){Rn!==null&&typeof WeakSet=="function"&&(ji===null&&(ji=new WeakSet),ji.add(e))}function Bb(e,t,a){do{var n=e,r=n.alternate,i=n.child,d=n.sibling,m=n.tag;n=n.type;var b=null;switch(m){case 0:case 15:case 1:b=n;break;case 11:b=n.render}if(Rn===null)throw Error("Expected resolveFamily to be set during hot reload.");var N=!1;if(n=!1,b!==null&&(b=Rn(b),b!==void 0&&(a.has(b)?n=!0:t.has(b)&&(m===1?n=!0:N=!0))),ji!==null&&(ji.has(e)||r!==null&&ji.has(r))&&(n=!0),n&&(e._debugNeedsRemount=!0),(n||N)&&(r=Sa(e,2),r!==null&&Lt(r,e,2)),i===null||n||Bb(i,t,a),d===null)break;e=d}while(!0)}function DE(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,Ix||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function om(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fs(e,t){var a=e.alternate;switch(a===null?(a=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=gr(e.type);break;case 1:a.type=gr(e.type);break;case 11:a.type=sm(e.type)}return a}function $b(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,m=e;if(typeof e=="function")om(e)&&(d=1),m=gr(m);else if(typeof e=="string")d=fe(),d=A4(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 br(a.children,r,i,t);case gd:d=8,r|=Ea,r|=Jn;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|Xe),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 Ds:d=10;break e;case Jp:d=9;break e;case Gl:d=11,m=sm(m);break e;case bd:d=14;break e;case cn:d=16,m=null;break e}m="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" 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===Es?(a="<"+(k(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(d=n?B(n):null)&&(m+=`
|
|
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+"."+m)),m=null}return t=S(d,a,t,r),t.elementType=e,t.type=m,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 br(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 Yb(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 an(e,t){if(typeof e=="object"&&e!==null){var a=Uh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ye(t)},Uh.set(e,t),t)}return{value:e,source:t,stack:Ye(t)}}function Qs(e,t){Eo(),Ai[Mi++]=nc,Ai[Mi++]=Od,Od=e,nc=t}function qb(e,t,a){Eo(),Cn[_n++]=so,Cn[_n++]=oo,Cn[_n++]=kr,kr=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){Eo(),e.return!==null&&(Qs(e,1),qb(e,1,0))}function um(e){for(;e===Od;)Od=Ai[--Mi],Ai[Mi]=null,nc=Ai[--Mi],Ai[Mi]=null;for(;e===kr;)kr=Cn[--_n],Cn[_n]=null,oo=Cn[--_n],Cn[_n]=null,so=Cn[--_n],Cn[_n]=null}function Gb(){return Eo(),kr!==null?{id:so,overflow:oo}:null}function Ib(e,t){Eo(),Cn[_n++]=so,Cn[_n++]=oo,Cn[_n++]=kr,so=t.id,oo=t.overflow,kr=e}function Eo(){nt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function yr(e,t){if(e.return===null){if(dn===null)dn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(dn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");dn.distanceFromLeaf>t&&(dn.distanceFromLeaf=t)}return dn}var a=yr(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 Xb(){nt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Su(e,t){Ts||(e=yr(e,0),e.serverProps=null,t!==null&&(t=E0(t),e.serverTail.push(t)))}function Do(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",n=dn;throw n!==null&&(dn=null,a=wo(n)),bl(an(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)),kh}function Fb(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ga]=e,t[ja]=n,kp(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<Tc.length;a++)ot(Tc[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":oa("input",n),ot("invalid",t),ke(t,n),Me(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"option":Ue(t,n);break;case"select":oa("select",n),ot("invalid",t),Rt(t,n);break;case"textarea":oa("textarea",n),ot("invalid",t),qt(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||u0(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=Xs),t=!0):t=!1,t||Do(e,!0)}function Qb(e){for(ba=e.return;ba;)switch(ba.tag){case 5:case 31:case 13:Un=!1;return;case 27:case 3:Un=!0;return;default:ba=ba.return}}function oi(e){if(e!==ba)return!1;if(!nt)return Qb(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=yr(e,0),r=E0(a);n.serverTail.push(r),a=r.type==="Suspense"?Hp(a):ln(a.nextSibling)}Do(e)}if(Qb(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,Mo(e.type)?(e=vg,vg=null,Ut=e):Ut=t):Ut=ba?ln(e.stateNode.nextSibling):null;return!0}function vr(){Ut=ba=null,Ts=nt=!1}function dm(){var e=Go;return e!==null&&(Ha===null?Ha=e:Ha.push.apply(Ha,e),Go=null),e}function bl(e){Go===null?Go=[e]:Go.push(e)}function fm(){var e=dn;if(e!==null){dn=null;for(var t=wo(e);0<e.children.length;)e=e.children[0];ve(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=jd=null,zi=!1}function Ro(e,t,a){P(Th,t._currentValue,e),t._currentValue=a,P(Oh,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=Oh.current;q(Oh,t),e._currentRenderer=a,q(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 m=i;i=r;for(var b=0;b<t.length;b++)if(m.context===t[b]){i.lanes|=a,m=i.alternate,m!==null&&(m.lanes|=a),mm(i.return,a,e),n||(d=null);break e}i=m.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 m=r.type;Ma(r.pendingProps.value,d.value)||(e!==null?e.push(m):e=[m])}}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(Vc):e=[Vc])}r=r.return}e!==null&&pm(t,e,a,n),t.flags|=262144}function Eu(e){for(e=e.firstContext;e!==null;){if(!Ma(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xr(e){jd=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()."),Zb(jd,e)}function Du(e,t){return jd===null&&xr(e),Zb(e,t)}function Zb(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 rR,data:new Map,refCount:0}}function Nr(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 yl(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&&iR(lR,function(){e.controller.abort()})}function ds(e,t,a){(e&127)!==0?0>Os&&(Os=Jt(),oc=Ad(t),jh=t,a!=null&&(Ah=$(a)),(dt&(sa|pn))!==fa&&(Ht=!0,Xo=sc),e=Hl(),t=Ll(),e!==Li||t!==rc?Li=-1.1:t!==null&&(Xo=sc),jr=e,rc=t):(e&4194048)!==0&&0>kn&&(kn=Jt(),ic=Ad(t),Qx=t,a!=null&&(Zx=$(a)),0>co)&&(e=Hl(),t=Ll(),(e!==Qo||t!==Ar)&&(Qo=-1.1),Fo=e,Ar=t)}function RE(e){if(0>Os){Os=Jt(),oc=e._debugTask!=null?e._debugTask:null,(dt&(sa|pn))!==fa&&(Xo=sc);var t=Hl(),a=Ll();t!==Li||a!==rc?Li=-1.1:a!==null&&(Xo=sc),jr=t,rc=a}0>kn&&(kn=Jt(),ic=e._debugTask!=null?e._debugTask:null,0>co)&&(e=Hl(),t=Ll(),(e!==Qo||t!==Ar)&&(Qo=-1.1),Fo=e,Ar=t)}function Js(){var e=Tr;return Tr=0,e}function Ru(e){var t=Tr;return Tr=e,t}function vl(e){var t=Tr;return Tr+=e,t}function Cu(){Ve=Oe=-1.1}function nn(){var e=Oe;return Oe=-1.1,e}function sn(e){0<=e&&(Oe=e)}function fs(){var e=jt;return jt=-0,e}function ms(e){0<=e&&(jt=e)}function ps(){var e=Ot;return Ot=null,e}function hs(){var e=Ht;return Ht=!1,e}function gm(e){Va=Jt(),0>e.actualStartTime&&(e.actualStartTime=Va)}function bm(e){if(0<=Va){var t=Jt()-Va;e.actualDuration+=t,e.selfBaseDuration=t,Va=-1}}function Jb(e){if(0<=Va){var t=Jt()-Va;e.actualDuration+=t,Va=-1}}function gs(){if(0<=Va){var e=Jt(),t=e-Va;Va=-1,Tr+=t,jt+=t,Ve=e}}function Pb(e){Ot===null&&(Ot=[]),Ot.push(e),io===null&&(io=[]),io.push(e)}function bs(){Va=Jt(),0>Oe&&(Oe=Va)}function xl(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function CE(e,t){if(cc===null){var a=cc=[];Vh=0,Mr=Rp(),Hi={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Vh++,t.then(Kb,Kb),t}function Kb(){if(--Vh===0&&(-1<kn||(co=-1.1),cc!==null)){Hi!==null&&(Hi.status="fulfilled");var e=cc;cc=null,Mr=0,Hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _E(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=Vr.current;return e!==null?e:Nt.pooledCache}function _u(e,t){t===null?P(Vr,Vr.current,e):P(Vr,t.pool,e)}function Wb(){var e=ym();return e===null?null:{parent:Zt._currentValue,pool:e}}function ey(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function ty(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ay(e,t,a){X.actQueue!==null&&(X.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(Xs,Xs),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,sy(e),e;default:if(typeof t.status=="string")t.then(Xs,Xs);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,sy(e),e}throw Lr=t,gc=!0,Bi}}function Co(e){try{return mR(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Lr=t,gc=!0,Bi):t}}function ny(){if(Lr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Lr;return Lr=null,gc=!1,e}function sy(e){if(e===Bi||e===Yd)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ma(e){var t=Fe;return e!=null&&(Fe=t===null?e:t.concat(e)),t}function vm(){var e=Fe;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=Fe,t.return=a),ve(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 ku(e){var t=bc;return bc+=1,$i===null&&($i=ey()),ay($i,e,t)}function Nl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function oy(e,t){throw t.$$typeof===I4?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(oy.bind(null,e,t)):oy(e,t)}function ry(e,t){var a=$(e)||"Component";hN[a]||(hN[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 Ou(e,t){var a=vm();a!==null?a.run(ry.bind(null,e,t)):ry(e,t)}function iy(e,t){var a=$(e)||"Component";gN[a]||(gN[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 ju(e,t){var a=vm();a!==null?a.run(iy.bind(null,e,t)):iy(e,t)}function ly(e){function t(C,T){if(e){var O=C.deletions;O===null?(C.deletions=[T],C.flags|=16):O.push(T)}}function a(C,T){if(!e)return null;for(;T!==null;)t(C,T),T=T.sibling;return null}function n(C){for(var T=new Map;C!==null;)C.key!==null?T.set(C.key,C):T.set(C.index,C),C=C.sibling;return T}function r(C,T){return C=Fs(C,T),C.index=0,C.sibling=null,C}function i(C,T,O){return C.index=O,e?(O=C.alternate,O!==null?(O=O.index,O<T?(C.flags|=67108866,T):O):(C.flags|=67108866,T)):(C.flags|=1048576,T)}function d(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function m(C,T,O,J){return T===null||T.tag!==6?(T=im(O,C.mode,J),T.return=C,T._debugOwner=C,T._debugTask=C._debugTask,T._debugInfo=Fe,T):(T=r(T,O),T.return=C,T._debugInfo=Fe,T)}function b(C,T,O,J){var ge=O.type;return ge===Ni?(T=A(C,T,O.props.children,J,O.key),Uu(O,T,C),T):T!==null&&(T.elementType===ge||Lb(T,O)||typeof ge=="object"&&ge!==null&&ge.$$typeof===cn&&Co(ge)===T.type)?(T=r(T,O.props),Nl(T,O),T.return=C,T._debugOwner=O._owner,T._debugInfo=Fe,T):(T=Nu(O,C.mode,J),Nl(T,O),T.return=C,T._debugInfo=Fe,T)}function N(C,T,O,J){return T===null||T.tag!==4||T.stateNode.containerInfo!==O.containerInfo||T.stateNode.implementation!==O.implementation?(T=lm(O,C.mode,J),T.return=C,T._debugInfo=Fe,T):(T=r(T,O.children||[]),T.return=C,T._debugInfo=Fe,T)}function A(C,T,O,J,ge){return T===null||T.tag!==7?(T=br(O,C.mode,J,ge),T.return=C,T._debugOwner=C,T._debugTask=C._debugTask,T._debugInfo=Fe,T):(T=r(T,O),T.return=C,T._debugInfo=Fe,T)}function M(C,T,O){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=im(""+T,C.mode,O),T.return=C,T._debugOwner=C,T._debugTask=C._debugTask,T._debugInfo=Fe,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Es:return O=Nu(T,C.mode,O),Nl(O,T),O.return=C,C=ma(T._debugInfo),O._debugInfo=Fe,Fe=C,O;case xi:return T=lm(T,C.mode,O),T.return=C,T._debugInfo=Fe,T;case cn:var J=ma(T._debugInfo);return T=Co(T),C=M(C,T,O),Fe=J,C}if(aa(T)||W(T))return O=br(T,C.mode,O,null),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,C=ma(T._debugInfo),O._debugInfo=Fe,Fe=C,O;if(typeof T.then=="function")return J=ma(T._debugInfo),C=M(C,ku(T),O),Fe=J,C;if(T.$$typeof===Ds)return M(C,Du(C,T),O);Tu(C,T)}return typeof T=="function"&&Ou(C,T),typeof T=="symbol"&&ju(C,T),null}function U(C,T,O,J){var ge=T!==null?T.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ge!==null?null:m(C,T,""+O,J);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Es:return O.key===ge?(ge=ma(O._debugInfo),C=b(C,T,O,J),Fe=ge,C):null;case xi:return O.key===ge?N(C,T,O,J):null;case cn:return ge=ma(O._debugInfo),O=Co(O),C=U(C,T,O,J),Fe=ge,C}if(aa(O)||W(O))return ge!==null?null:(ge=ma(O._debugInfo),C=A(C,T,O,J,null),Fe=ge,C);if(typeof O.then=="function")return ge=ma(O._debugInfo),C=U(C,T,ku(O),J),Fe=ge,C;if(O.$$typeof===Ds)return U(C,T,Du(C,O),J);Tu(C,O)}return typeof O=="function"&&Ou(C,O),typeof O=="symbol"&&ju(C,O),null}function Y(C,T,O,J,ge){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return C=C.get(O)||null,m(T,C,""+J,ge);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case Es:return O=C.get(J.key===null?O:J.key)||null,C=ma(J._debugInfo),T=b(T,O,J,ge),Fe=C,T;case xi:return C=C.get(J.key===null?O:J.key)||null,N(T,C,J,ge);case cn:var $e=ma(J._debugInfo);return J=Co(J),T=Y(C,T,O,J,ge),Fe=$e,T}if(aa(J)||W(J))return O=C.get(O)||null,C=ma(J._debugInfo),T=A(T,O,J,ge,null),Fe=C,T;if(typeof J.then=="function")return $e=ma(J._debugInfo),T=Y(C,T,O,ku(J),ge),Fe=$e,T;if(J.$$typeof===Ds)return Y(C,T,O,Du(T,J),ge);Tu(T,J)}return typeof J=="function"&&Ou(T,J),typeof J=="symbol"&&ju(T,J),null}function me(C,T,O,J){if(typeof O!="object"||O===null)return J;switch(O.$$typeof){case Es:case xi:D(C,T,O);var ge=O.key;if(typeof ge!="string")break;if(J===null){J=new Set,J.add(ge);break}if(!J.has(ge)){J.add(ge);break}ve(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.",ge)});break;case cn:O=Co(O),me(C,T,O,J)}return J}function xe(C,T,O,J){for(var ge=null,$e=null,Te=null,Re=T,Ie=T=0,kt=null;Re!==null&&Ie<O.length;Ie++){Re.index>Ie?(kt=Re,Re=null):kt=Re.sibling;var Xt=U(C,Re,O[Ie],J);if(Xt===null){Re===null&&(Re=kt);break}ge=me(C,Xt,O[Ie],ge),e&&Re&&Xt.alternate===null&&t(C,Re),T=i(Xt,T,Ie),Te===null?$e=Xt:Te.sibling=Xt,Te=Xt,Re=kt}if(Ie===O.length)return a(C,Re),nt&&Qs(C,Ie),$e;if(Re===null){for(;Ie<O.length;Ie++)Re=M(C,O[Ie],J),Re!==null&&(ge=me(C,Re,O[Ie],ge),T=i(Re,T,Ie),Te===null?$e=Re:Te.sibling=Re,Te=Re);return nt&&Qs(C,Ie),$e}for(Re=n(Re);Ie<O.length;Ie++)kt=Y(Re,C,Ie,O[Ie],J),kt!==null&&(ge=me(C,kt,O[Ie],ge),e&&kt.alternate!==null&&Re.delete(kt.key===null?Ie:kt.key),T=i(kt,T,Ie),Te===null?$e=kt:Te.sibling=kt,Te=kt);return e&&Re.forEach(function(yo){return t(C,yo)}),nt&&Qs(C,Ie),$e}function wt(C,T,O,J){if(O==null)throw Error("An iterable object provided no iterator.");for(var ge=null,$e=null,Te=T,Re=T=0,Ie=null,kt=null,Xt=O.next();Te!==null&&!Xt.done;Re++,Xt=O.next()){Te.index>Re?(Ie=Te,Te=null):Ie=Te.sibling;var yo=U(C,Te,Xt.value,J);if(yo===null){Te===null&&(Te=Ie);break}kt=me(C,yo,Xt.value,kt),e&&Te&&yo.alternate===null&&t(C,Te),T=i(yo,T,Re),$e===null?ge=yo:$e.sibling=yo,$e=yo,Te=Ie}if(Xt.done)return a(C,Te),nt&&Qs(C,Re),ge;if(Te===null){for(;!Xt.done;Re++,Xt=O.next())Te=M(C,Xt.value,J),Te!==null&&(kt=me(C,Te,Xt.value,kt),T=i(Te,T,Re),$e===null?ge=Te:$e.sibling=Te,$e=Te);return nt&&Qs(C,Re),ge}for(Te=n(Te);!Xt.done;Re++,Xt=O.next())Ie=Y(Te,C,Re,Xt.value,J),Ie!==null&&(kt=me(C,Ie,Xt.value,kt),e&&Ie.alternate!==null&&Te.delete(Ie.key===null?Re:Ie.key),T=i(Ie,T,Re),$e===null?ge=Ie:$e.sibling=Ie,$e=Ie);return e&&Te.forEach(function(zR){return t(C,zR)}),nt&&Qs(C,Re),ge}function it(C,T,O,J){if(typeof O=="object"&&O!==null&&O.type===Ni&&O.key===null&&(Uu(O,null,C),O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Es:var ge=ma(O._debugInfo);e:{for(var $e=O.key;T!==null;){if(T.key===$e){if($e=O.type,$e===Ni){if(T.tag===7){a(C,T.sibling),J=r(T,O.props.children),J.return=C,J._debugOwner=O._owner,J._debugInfo=Fe,Uu(O,J,C),C=J;break e}}else if(T.elementType===$e||Lb(T,O)||typeof $e=="object"&&$e!==null&&$e.$$typeof===cn&&Co($e)===T.type){a(C,T.sibling),J=r(T,O.props),Nl(J,O),J.return=C,J._debugOwner=O._owner,J._debugInfo=Fe,C=J;break e}a(C,T);break}else t(C,T);T=T.sibling}O.type===Ni?(J=br(O.props.children,C.mode,J,O.key),J.return=C,J._debugOwner=C,J._debugTask=C._debugTask,J._debugInfo=Fe,Uu(O,J,C),C=J):(J=Nu(O,C.mode,J),Nl(J,O),J.return=C,J._debugInfo=Fe,C=J)}return C=d(C),Fe=ge,C;case xi:e:{for(ge=O,O=ge.key;T!==null;){if(T.key===O)if(T.tag===4&&T.stateNode.containerInfo===ge.containerInfo&&T.stateNode.implementation===ge.implementation){a(C,T.sibling),J=r(T,ge.children||[]),J.return=C,C=J;break e}else{a(C,T);break}else t(C,T);T=T.sibling}J=lm(ge,C.mode,J),J.return=C,C=J}return d(C);case cn:return ge=ma(O._debugInfo),O=Co(O),C=it(C,T,O,J),Fe=ge,C}if(aa(O))return ge=ma(O._debugInfo),C=xe(C,T,O,J),Fe=ge,C;if(W(O)){if(ge=ma(O._debugInfo),$e=W(O),typeof $e!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Te=$e.call(O);return Te===O?(C.tag!==0||Object.prototype.toString.call(C.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Te)!=="[object Generator]")&&(mN||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."),mN=!0):O.entries!==$e||Bh||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Bh=!0),C=wt(C,T,Te,J),Fe=ge,C}if(typeof O.then=="function")return ge=ma(O._debugInfo),C=it(C,T,ku(O),J),Fe=ge,C;if(O.$$typeof===Ds)return it(C,T,Du(C,O),J);Tu(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(ge=""+O,T!==null&&T.tag===6?(a(C,T.sibling),J=r(T,ge),J.return=C,C=J):(a(C,T),J=im(ge,C.mode,J),J.return=C,J._debugOwner=C,J._debugTask=C._debugTask,J._debugInfo=Fe,C=J),d(C)):(typeof O=="function"&&Ou(C,O),typeof O=="symbol"&&ju(C,O),a(C,T))}return function(C,T,O,J){var ge=Fe;Fe=null;try{bc=0;var $e=it(C,T,O,J);return $i=null,$e}catch(kt){if(kt===Bi||kt===Yd)throw kt;var Te=S(29,kt,null,C.mode);Te.lanes=J,Te.return=C;var Re=Te._debugInfo=Fe;if(Te._debugOwner=C._debugOwner,Te._debugTask=C._debugTask,Re!=null){for(var Ie=Re.length-1;0<=Ie;Ie--)if(typeof Re[Ie].stack=="string"){Te._debugOwner=Re[Ie],Te._debugTask=Re[Ie].debugTask;break}}return Te}finally{Fe=ge}}}function cy(e,t){var a=aa(e);return e=!a&&typeof W(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 _o(e){return{lane:e,tag:yN,payload:null,callback:null,next:null}}function Uo(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Yh===n&&!NN){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),NN=!0}return(dt&sa)!==fa?(r=n.pending,r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=xu(e),zb(e,null,a),t):(vu(e,n,t,a),xu(e))}function Sl(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,No(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 wl(){if(qh){var e=Hi;if(e!==null)throw e}}function El(e,t,a,n){qh=!1;var r=e.updateQueue;Zo=!1,Yh=r.shared;var i=r.firstBaseUpdate,d=r.lastBaseUpdate,m=r.shared.pending;if(m!==null){r.shared.pending=null;var b=m,N=b.next;b.next=null,d===null?i=N:d.next=N,d=b;var A=e.alternate;A!==null&&(A=A.updateQueue,m=A.lastBaseUpdate,m!==d&&(m===null?A.firstBaseUpdate=N:m.next=N,A.lastBaseUpdate=b))}if(i!==null){var M=r.baseState;d=0,A=N=b=null,m=i;do{var U=m.lane&-536870913,Y=U!==m.lane;if(Y?(Qe&U)===U:(n&U)===U){U!==0&&U===Mr&&(qh=!0),A!==null&&(A=A.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{U=e;var me=m,xe=t,wt=a;switch(me.tag){case vN:if(me=me.payload,typeof me=="function"){zi=!0;var it=me.call(wt,M,xe);if(U.mode&Ea){te(!0);try{me.call(wt,M,xe)}finally{te(!1)}}zi=!1,M=it;break e}M=me;break e;case $h:U.flags=U.flags&-65537|128;case yN:if(it=me.payload,typeof it=="function"){if(zi=!0,me=it.call(wt,M,xe),U.mode&Ea){te(!0);try{it.call(wt,M,xe)}finally{te(!1)}}zi=!1}else me=it;if(me==null)break e;M=Ke({},M,me);break e;case xN:Zo=!0}}U=m.callback,U!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=r.callbacks,Y===null?r.callbacks=[U]:Y.push(U))}else Y={lane:U,tag:m.tag,payload:m.payload,callback:m.callback,next:null},A===null?(N=A=Y,b=M):A=A.next=Y,d|=U;if(m=m.next,m===null){if(m=r.shared.pending,m===null)break;Y=m,m=Y.next,Y.next=null,r.lastBaseUpdate=Y,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),Ko|=d,e.lanes=d,e.memoizedState=M}Yh=null}function uy(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function UE(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)uy(a[e],t)}function dy(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)uy(a[e],t)}function fy(e,t){var a=As;P(Gd,a,e),P(Yi,t,e),As=a|t.baseLanes}function Sm(e){P(Gd,As,e),P(Yi,Yi.current,e)}function wm(e){As=Gd.current,q(Yi,e),q(Gd,e)}function ko(e){var t=e.alternate;P(It,It.current&qi,e),P(fn,e,e),Tn===null&&(t===null||Yi.current!==null||t.memoizedState!==null)&&(Tn=e)}function Em(e){P(It,It.current,e),P(fn,e,e),Tn===null&&(Tn=e)}function my(e){e.tag===22?(P(It,It.current,e),P(fn,e,e),Tn===null&&(Tn=e)):To(e)}function To(e){P(It,It.current,e),P(fn,fn.current,e)}function on(e){q(fn,e),Tn===e&&(Tn=null),q(It,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 Pe(){var e=G;jn===null?jn=[e]:jn.push(e)}function re(){var e=G;if(jn!==null&&(mo++,jn[mo]!==e)){var t=$(Be);if(!SN.has(t)&&(SN.add(t),jn!==null)){for(var a="",n=0;n<=mo;n++){var r=jn[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=$(Be);EN.has(e)||(EN.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Bt(){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(xc)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(!Ma(e[a],t[a]))return!1;return!0}function Rm(e,t,a,n,r,i){uo=i,Be=t,jn=e!==null?e._debugHookTypes:null,mo=-1,xc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(i=$(Be),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,X.H=e!==null&&e.memoizedState!==null?Xh:jn!==null?DN:Ih,Br=i=(t.mode&Ea)!==ze;var d=zh(a,n,r);if(Br=!1,Ii&&(d=Cm(t,a,n,r)),i){te(!0);try{d=Cm(t,a,n,r)}finally{te(!1)}}return py(e,t),d}function py(e,t){t._debugHookTypes=jn,t.dependencies===null?fo!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:fo}):t.dependencies._debugThenableState=fo,X.H=Nc;var a=xt!==null&&xt.next!==null;if(uo=0,jn=G=Pt=xt=Be=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."),Xd=!1,vc=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)),gc?(gc=!1,e=!0):e=!1,e&&(t=$(t)||"Unknown",wN.has(t)||Gh.has(t)||(wN.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 Cm(e,t,a,n){Be=e;var r=0;do{if(Ii&&(fo=null),vc=0,Ii=!1,r>=hR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,xc=!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,X.H=RN,i=zh(t,a,n)}while(Ii);return i}function kE(){var e=X.H,t=e.useState()[0];return t=typeof t.then=="function"?Dl(t):t,e=e.useState()[0],(xt!==null?xt.memoizedState:null)!==e&&(Be.flags|=1024),t}function _m(){var e=Fd!==0;return Fd=0,e}function Um(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Jn)!==ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function km(e){if(Xd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xd=!1}uo=0,jn=Pt=xt=Be=null,mo=-1,G=null,Ii=!1,vc=Fd=0,fo=null}function Ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Be.memoizedState=Pt=e:Pt=Pt.next=e,Pt}function bt(){if(xt===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=xt.next;var t=Pt===null?Be.memoizedState:Pt.next;if(t!==null)Pt=t,xt=e;else{if(e===null)throw Be.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?Be.memoizedState=Pt=e:Pt=Pt.next=e}return Pt}function zu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dl(e){var t=vc;return vc+=1,fo===null&&(fo=ey()),e=ay(fo,e,t),t=Be,(Pt===null?t.memoizedState:Pt.next)===null&&(t=t.alternate,X.H=t!==null&&t.memoizedState!==null?Xh:Ih),e}function Oo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Dl(e);if(e.$$typeof===Ds)return Tt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Sr(e){var t=null,a=Be.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=Be.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(),Be.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||xc)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=X4;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 Fn(e,t){return typeof t=="function"?t(e):t}function Tm(e,t,a){var n=Ta();if(a!==void 0){var r=a(t);if(Br){te(!0);try{a(t)}finally{te(!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=ME.bind(null,Be,e),[n.memoizedState,e]}function li(e){var t=bt();return Om(t,xt,e)}function Om(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 m=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 U=N.revertLane;if(U===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),M===Mr&&(A=!0);else if((uo&U)===U){N=N.next,U===Mr&&(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?(m=b=M,d=i):b=b.next=M,Be.lanes|=U,Ko|=U;M=N.action,Br&&a(i,M),i=N.hasEagerState?N.eagerState:a(i,M)}else U={lane:M,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(m=b=U,d=i):b=b.next=U,Be.lanes|=M,Ko|=M;N=N.next}while(N!==null&&N!==t);if(b===null?d=i:b.next=m,!Ma(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 Rl(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);Ma(i,t.memoizedState)||(Kt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,n]}function jm(e,t,a){var n=Be,r=Ta();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(),Ma(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||hy(n,t,i)}return r.memoizedState=i,a={value:i,getSnapshot:t},r.queue=a,$u(by.bind(null,n,a,e),[e]),n.flags|=2048,ui(On|La,{destroy:void 0},gy.bind(null,n,a,i,t),null),i}function Lu(e,t,a){var n=Be,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();Ma(a,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Gi=!0)}(d=!Ma((xt||r).memoizedState,a))&&(r.memoizedState=a,Kt=!0),r=r.queue;var m=by.bind(null,n,r,e);if(Ia(2048,La,m,[e]),r.getSnapshot!==t||d||Pt!==null&&Pt.memoizedState.tag&On){if(n.flags|=2048,ui(On|La,{destroy:void 0},gy.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||hy(n,t,a)}return a}function hy(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Be.updateQueue,t===null?(t=zu(),Be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function gy(e,t,a,n){t.value=a,t.getSnapshot=n,yy(t)&&vy(e)}function by(e,t,a){return a(function(){yy(t)&&(ds(2,"updateSyncExternalStore()",e),vy(e))})}function yy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ma(e,a)}catch{return!0}}function vy(e){var t=Sa(e,2);t!==null&&Lt(t,e,2)}function Am(e){var t=Ta();if(typeof e=="function"){var a=e;if(e=a(),Br){te(!0);try{a()}finally{te(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:e},t}function Mm(e){e=Am(e);var t=e.queue,a=Ly.bind(null,Be,t);return t.dispatch=a,[e.memoizedState,a]}function Vm(e){var t=Ta();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Jm.bind(null,Be,!0,a),a.dispatch=t,[e,t]}function xy(e,t){var a=bt();return Ny(a,xt,e,t)}function Ny(e,t,a,n){return e.baseState=a,Om(e,xt,typeof n=="function"?n:Fn)}function Sy(e,t){var a=bt();return xt!==null?Ny(a,xt,e,t):(a.baseState=e,[e,a.queue.dispatch])}function TE(e,t,a,n,r){if(Fu(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)}};X.T!==null?a(!0):i.isTransition=!1,n(i),a=t.pending,a===null?(i.next=t.pending=i,wy(t,i)):(i.next=a.next,t.pending=a.next=i)}}function wy(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var i=X.T,d={};d._updatedFibers=new Set,X.T=d;try{var m=a(r,n),b=X.S;b!==null&&b(d,m),Ey(e,t,m)}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),X.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),Ey(e,t,d)}catch(N){zm(e,t,N)}}function Ey(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(X.asyncTransitions++,a.then(Xu,Xu),a.then(function(n){Dy(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.")):Dy(e,t,a)}function Dy(e,t,a){t.status="fulfilled",t.value=a,Ry(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,wy(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,Ry(t),t=t.next;while(t!==n)}e.action=null}function Ry(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Cy(e,t){return t}function ci(e,t){if(nt){var a=Nt.formState;if(a!==null){e:{var n=Be;if(nt){if(Ut){t:{for(var r=Ut,i=Un;r.nodeType!==8;){if(!i){r=null;break t}if(r=ln(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i===hg||i===d1?r:null}if(r){Ut=ln(r.nextSibling),n=r.data===hg;break e}}Do(n)}n=!1}n&&(t=a[0])}}return a=Ta(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cy,lastRenderedState:t},a.queue=n,a=Ly.bind(null,Be,n),n.dispatch=a,n=Am(!1),i=Jm.bind(null,Be,!1,n.queue),n=Ta(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=TE.bind(null,Be,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=Om(e,t,Cy)[0],e=li(Fn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Dl(t)}catch(d){throw d===Bi?Yd:d}else n=t;t=bt();var r=t.queue,i=r.dispatch;return a!==t.memoizedState&&(Be.flags|=2048,ui(On|La,{destroy:void 0},OE.bind(null,r,a),null)),[n,i,e]}function OE(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=Be.updateQueue,t===null&&(t=zu(),Be.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function Lm(e){var t=Ta();return e={current:e},t.memoizedState=e}function wr(e,t,a,n){var r=Ta();Be.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):(Be.flags|=e,r.memoizedState=ui(On|t,i,a,n))}function $u(e,t){(Be.mode&Jn)!==ze?wr(276826112,La,e,t):wr(8390656,La,e,t)}function jE(e){Be.flags|=4;var t=Be.updateQueue;if(t===null)t=zu(),Be.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Hm(e){var t=Ta(),a={impl:e};return t.memoizedState=a,function(){if((dt&sa)!==fa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Yu(e){var t=bt().memoizedState;return jE({ref:t,nextImpl:e}),function(){if((dt&sa)!==fa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Bm(e,t){var a=4194308;return(Be.mode&Jn)!==ze&&(a|=134217728),wr(a,mn,e,t)}function Uy(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;(Be.mode&Jn)!==ze&&(n|=134217728),wr(n,mn,Uy.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,mn,Uy.bind(null,t,e),a)}function Ym(e,t){return Ta().memoizedState=[e,t===void 0?null:t],e}function Gu(e,t){var a=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=Ta();t=t===void 0?null:t;var n=e();if(Br){te(!0);try{e()}finally{te(!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(),Br){te(!0);try{e()}finally{te(!1)}}return a.memoizedState=[n,t],n}function Gm(e,t){var a=Ta();return Im(a,e,t)}function ky(e,t){var a=bt();return Oy(a,xt.memoizedState,e,t)}function Ty(e,t){var a=bt();return xt===null?Im(a,e,t):Oy(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(),Be.lanes|=e,Ko|=e,a)}function Oy(e,t,a,n){return Ma(a,t)?a:Yi.current!==null?(e=Im(e,a,n),Ma(e,t)||(Kt=!0),e):(uo&42)===0||(uo&1073741824)!==0&&(Qe&261930)===0?(Kt=!0,e.memoizedState=a):(e=jv(),Be.lanes|=e,Ko|=e,t)}function Xu(){X.asyncTransitions--}function jy(e,t,a,n,r){var i=gt.p;gt.p=i!==0&&i<Us?i:Us;var d=X.T,m={};m._updatedFibers=new Set,X.T=m,Jm(e,!1,t,a);try{var b=r(),N=X.S;if(N!==null&&N(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){X.asyncTransitions++,b.then(Xu,Xu);var A=_E(b,n);Cl(e,t,A,rn(e))}else Cl(e,t,n,rn(e))}catch(M){Cl(e,t,{then:function(){},status:"rejected",reason:M},rn(e))}finally{gt.p=i,d!==null&&m.types!==null&&(d.types!==null&&d.types!==m.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=m.types),X.T=d,d===null&&m._updatedFibers&&(e=m._updatedFibers.size,m._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 Xm(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=Ay(e).queue;RE(e),jy(e,r,t,Pr,a===null?v:function(){return My(e),a(n)})}function Ay(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Pr,baseState:Pr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:Pr},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function My(e){X.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Ay(e);t.next===null&&(t=e.alternate.memoizedState),Cl(e,t.next.queue,{},rn(e))}function Fm(){var e=Am(!1);return e=jy.bind(null,Be,e.queue,!0,!1),Ta().memoizedState=e,[!1,e]}function Vy(){var e=li(Fn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]}function zy(){var e=Rl(Fn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]}function Er(){return Tt(Vc)}function Qm(){var e=Ta(),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=Fd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=pR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Zm(){return Ta().memoizedState=AE.bind(null,Be)}function AE(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var n=rn(a),r=_o(n),i=Uo(a,r,n);i!==null&&(ds(n,"refresh()",e),Lt(i,a,n),Sl(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 ME(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=rn(e);var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Fu(e)?Hy(t,r):(r=nm(e,t,r,n),r!==null&&(ds(n,"dispatch()",e),Lt(r,e,n),By(r,t,n)))}function Ly(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=rn(e),Cl(e,t,a,n)&&ds(n,"setState()",e)}function Cl(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fu(e))Hy(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null)){var d=X.H;X.H=Kn;try{var m=t.lastRenderedState,b=i(m,a);if(r.hasEagerState=!0,r.eagerState=b,Ma(b,m))return vu(e,t,r,0),Nt===null&&yu(),!1}catch{}finally{X.H=d}}if(a=nm(e,t,r,n),a!==null)return Lt(a,e,n),By(a,t,n),!0}return!1}function Jm(e,t,a,n){if(X.T===null&&Mr===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),n={lane:2,revertLane:Rp(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fu(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&&(ds(2,"setOptimistic()",e),Lt(t,e,2))}function Fu(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Hy(e,t){Ii=Xd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function By(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,No(e,a)}}function Pm(e){if(e!==null&&typeof e!="function"){var t=String(e);zN.has(t)||(zN.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&Ea){te(!0);try{i=a(n,r)}finally{te(!1)}}i===void 0&&(t=k(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:Ke({},r,i),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function $y(e,t,a,n,r,i,d){var m=e.stateNode;if(typeof m.shouldComponentUpdate=="function"){if(a=m.shouldComponentUpdate(n,i,d),e.mode&Ea){te(!0);try{a=m.shouldComponentUpdate(n,i,d)}finally{te(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",k(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!gl(a,n)||!gl(r,i):!0}function Yy(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)),Fh.enqueueReplaceState(t,t.state,null))}function Dr(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=Ke({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function qy(e){Eh(e),console.warn(`%s
|
|
121
|
+
|
|
122
|
+
%s
|
|
123
|
+
`,Xi?"An error occurred in the <"+Xi+"> 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 Gy(e){var t=Xi?"The above error occurred in the <"+Xi+"> 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,v1+" "+e[0],x1,vf+n+vf,N1):e.splice(0,0,v1,x1,vf+n+vf,N1),e.unshift(console),n=MR.apply(console.error,e),n()}else console.error(`%o
|
|
130
|
+
|
|
131
|
+
%s
|
|
132
|
+
|
|
133
|
+
%s
|
|
134
|
+
`,e,t,a)}function Iy(e){Eh(e)}function Qu(e,t){try{Xi=t.source?$(t.source):null,Qh=null;var a=t.value;if(X.actQueue!==null)X.thrownErrors.push(a);else{var n=e.onUncaughtError;n(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function Xy(e,t,a){try{Xi=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=_o(a),a.tag=$h,a.payload={element:null},a.callback=function(){ve(t.source,Qu,e,t)},a}function ep(e){return e=_o(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(){Hb(a),ve(n.source,Xy,t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Hb(a),ve(n.source,Xy,t,a,n),typeof r!="function"&&(er===null?er=new Set([this]):er.add(this)),uR(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 VE(e,t,a,n,r){if(a.flags|=32768,_s&&Ml(e,r),n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&ri(t,a,r,!0),nt&&(Ts=!0),a=fn.current,a!==null){switch(a.tag){case 31:case 13:return Tn===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 Ts=!0,t=fn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==kh&&bl(an(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!==kh&&bl(an(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=an(n,a),r=Wm(e.stateNode,n,r),Au(e,r),At!==Jo&&(At=$r)),!1;var i=an(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:n}),a);if(Cc===null?Cc=[i]:Cc.push(i),At!==Jo&&(At=$r),t===null)return!0;n=an(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"&&(er===null||!er.has(i))))return a.flags|=65536,r&=-r,a.lanes|=r,r=ep(r),tp(r,e,a,n),Au(a,r),!1}a=a.return}while(a!==null);return!1}function pa(e,t,a,n){t.child=e===null?bN(t,null,a,n):Hr(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 m in n)m!=="ref"&&(d[m]=n[m])}else d=n;return xr(t),n=Rm(e,t,a,d,i,r),m=_m(),e!==null&&!Kt?(Um(e,t,r),Ps(e,t,r)):(nt&&m&&cm(t),t.flags|=1,pa(e,t,n,r),t.child)}function Qy(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=gr(i),t.tag=15,t.type=a,np(t,i),Zy(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:gl,a(d,n)&&e.ref===t.ref)return Ps(e,t,r)}return t.flags|=1,e=Fs(i,n),e.ref=t.ref,e.return=t,t.child=e}function Zy(e,t,a,n,r){if(e!==null){var i=e.memoizedProps;if(gl(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 Jy(e,t,a,n){var r=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:ac,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~i}else n=0,t.child=null;return Py(e,t,i,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_u(t,i!==null?i.cachePool:null),i!==null?fy(t,i):Sm(t),my(t);else return n=t.lanes=536870912,Py(e,t,i!==null?i.baseLanes|a:a,a,n)}else i!==null?(_u(t,i.cachePool),fy(t,i),To(t),t.memoizedState=null):(e!==null&&_u(t,null),Sm(t),To(t));return pa(e,t,r,a),t.child}function _l(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:ac,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Py(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&&_u(t,null),Sm(t),my(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 Ky(e,t,a){return Hr(t,e.child,null,a),e=Zu(t,t.pendingProps),e.flags|=2,on(t),t.memoizedState=null,e}function zE(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,_l(null,e);if(Em(t),(e=Ut)?(a=w0(e,Un),a=a!==null&&a.data===Fr?a:null,a!==null&&(n={dehydrated:a,treeContext:Gb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=Yb(a),n.return=t,t.child=n,ba=t,Ut=null)):a=null,a===null)throw Su(t,e),Do(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=Ky(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(Xb(),(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,Sa(e,d),Lt(n,e,d),Zh;nd(),t=Ky(e,t,a)}else e=i.treeContext,Ut=ln(d.nextSibling),ba=t,nt=!0,Go=null,Ts=!1,dn=null,Un=!1,e!==null&&Ib(t,e),t=Zu(t,n),t.flags|=4096;return t}return i=e.child,n={mode:n.mode,children:n.children},(a&536870912)!==0&&(a&e.lanes)!==0&&ad(t),e=Fs(i,n),e.ref=t.ref,t.child=e,e.return=t,e}function 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=k(a)||"Unknown";LN[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),LN[i]=!0)}return t.mode&Ea&&Pn.recordLegacyContextWarning(t,null),e===null&&(np(t,t.type),a.contextTypes&&(i=k(a)||"Unknown",BN[i]||(BN[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)))),xr(t),a=Rm(e,t,a,n,void 0,r),n=_m(),e!==null&&!Kt?(Um(e,t,r),Ps(e,t,r)):(nt&&n&&cm(t),t.flags|=1,pa(e,t,a,r),t.child)}function Wy(e,t,a,n,r,i){return xr(t),mo=-1,xc=e!==null&&e.type!==t.type,t.updateQueue=null,a=Cm(t,n,a,r),py(e,t),n=_m(),e!==null&&!Kt?(Um(e,t,i),Ps(e,t,i)):(nt&&n&&cm(t),t.flags|=1,pa(e,t,a,i),t.child)}function ev(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 m=r&-r;if(t.lanes|=m,d=Nt,d===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");m=ep(m),tp(m,d,t,an(i,t)),Au(t,m)}if(xr(t),t.stateNode===null){if(d=qo,i=a.contextType,"contextType"in a&&i!==null&&(i===void 0||i.$$typeof!==Ds)&&!VN.has(a)&&(VN.add(a),m=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",k(a)||"Component",m)),typeof i=="object"&&i!==null&&(d=Tt(i)),i=new a(n,d),t.mode&Ea){te(!0);try{i=new a(n,d)}finally{te(!1)}}if(d=t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Fh,t.stateNode=i,i._reactInternals=t,i._reactInternalInstance=CN,typeof a.getDerivedStateFromProps=="function"&&d===null&&(d=k(a)||"Component",UN.has(d)||(UN.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=m=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?m="componentWillReceiveProps":typeof i.UNSAFE_componentWillReceiveProps=="function"&&(m="UNSAFE_componentWillReceiveProps"),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof i.UNSAFE_componentWillUpdate=="function"&&(b="UNSAFE_componentWillUpdate"),d!==null||m!==null||b!==null){i=k(a)||"Component";var N=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";TN.has(i)||(TN.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:"",m!==null?`
|
|
143
|
+
`+m:"",b!==null?`
|
|
144
|
+
`+b:""))}}i=t.stateNode,d=k(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&&!MN.has(a)&&(MN.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&&!AN.has(a)&&(AN.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.",k(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),m=i.props!==n,i.props!==void 0&&m&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d),i.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof i.getSnapshotBeforeUpdate!="function"||typeof i.componentDidUpdate=="function"||kN.has(a)||(kN.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",k(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),(m=i.state)&&(typeof m!="object"||aa(m))&&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):qo,i.state===n&&(d=k(a)||"Component",ON.has(d)||(ON.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&Ea&&Pn.recordLegacyContextWarning(t,i),Pn.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"),Fh.enqueueReplaceState(i,i.state,null)),El(t,n,i,r),wl(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Jn)!==ze&&(t.flags|=134217728),i=!0}else if(e===null){i=t.stateNode;var A=t.memoizedProps;m=Dr(a,A),i.props=m;var M=i.context;b=a.contextType,d=qo,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)&&Yy(t,i,n,d),Zo=!1;var U=t.memoizedState;i.state=U,El(t,n,i,r),wl(),M=t.memoizedState,A||U!==M||Zo?(typeof N=="function"&&(Km(t,a,N,n),M=t.memoizedState),(m=Zo||$y(t,a,m,n,U,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&Jn)!==ze&&(t.flags|=134217728)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Jn)!==ze&&(t.flags|=134217728),t.memoizedProps=n,t.memoizedState=M),i.props=n,i.state=M,i.context=d,i=m):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Jn)!==ze&&(t.flags|=134217728),i=!1)}else{i=t.stateNode,Nm(e,t),d=t.memoizedProps,b=Dr(a,d),i.props=b,N=t.pendingProps,U=i.context,M=a.contextType,m=qo,typeof M=="object"&&M!==null&&(m=Tt(M)),A=a.getDerivedStateFromProps,(M=typeof A=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d!==N||U!==m)&&Yy(t,i,n,m),Zo=!1,U=t.memoizedState,i.state=U,El(t,n,i,r),wl();var Y=t.memoizedState;d!==N||U!==Y||Zo||e!==null&&e.dependencies!==null&&Eu(e.dependencies)?(typeof A=="function"&&(Km(t,a,A,n),Y=t.memoizedState),(b=Zo||$y(t,a,b,n,U,Y,m)||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,Y,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,Y,m)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=Y),i.props=n,i.state=Y,i.context=m,i=b):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),i=!1)}if(m=i,Ju(e,t),d=(t.flags&128)!==0,m||d){if(m=t.stateNode,Bn(t),d&&typeof a.getDerivedStateFromError!="function")a=null,Va=-1;else if(a=nN(m),t.mode&Ea){te(!0);try{nN(m)}finally{te(!1)}}t.flags|=1,e!==null&&d?(t.child=Hr(t,e.child,null,r),t.child=Hr(t,null,a,r)):pa(e,t,a,r),t.memoizedState=m.state,e=t.child}else e=Ps(e,t,r);return r=t.stateNode,i&&r.props!==n&&(Fi||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"),Fi=!0),e}function tv(e,t,a,n){return vr(),t.flags|=256,pa(e,t,a,n),t.child}function np(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
145
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=k(t)||"Unknown",$N[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),$N[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=k(t)||"Unknown",HN[t]||(console.error("%s: Function components do not support contextType.",t),HN[t]=!0))}function sp(e){return{baseLanes:e,cachePool:Wb()}}function op(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ja),e}function av(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:(It.current&yc)!==0),n&&(i=!0,t.flags&=-129),n=(t.flags&32)!==0,t.flags&=-33,e===null){if(nt){if(i?ko(t):To(t),(e=Ut)?(a=w0(e,Un),a=a!==null&&a.data!==Fr?a:null,a!==null&&(n={dehydrated:a,treeContext:Gb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=Yb(a),n.return=t,t.child=n,ba=t,Ut=null)):a=null,a===null)throw Su(t,e),Do(t);return Lp(a)?t.lanes=32:t.lanes=536870912,null}var m=r.children;if(r=r.fallback,i){To(t);var b=t.mode;return m=Pu({mode:"hidden",children:m},b),r=br(r,b,a,null),m.return=t,r.return=t,m.sibling=r,t.child=m,r=t.child,r.memoizedState=sp(a),r.childLanes=op(e,n,a),t.memoizedState=Jh,_l(null,r)}return ko(t),rp(t,m)}var N=e.memoizedState;if(N!==null){var A=N.dehydrated;if(A!==null){if(d)t.flags&256?(ko(t),t.flags&=-257,t=ip(e,t,a)):t.memoizedState!==null?(To(t),t.child=e.child,t.flags|=128,t=null):(To(t),m=r.fallback,b=t.mode,r=Pu({mode:"visible",children:r.children},b),m=br(m,b,a,null),m.flags|=2,r.return=t,m.return=t,r.sibling=m,t.child=r,Hr(t,e.child,null,a),r=t.child,r.memoizedState=sp(a),r.childLanes=op(e,n,a),t.memoizedState=Jh,t=_l(null,r));else if(ko(t),Xb(),(a&536870912)!==0&&ad(t),Lp(A)){if(n=A.nextSibling&&A.nextSibling.dataset,n){m=n.dgst;var M=n.msg;b=n.stck;var U=n.cstck}i=M,n=m,r=b,A=U,m=i,b=A,m=Error(m||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),m.stack=r||"",m.digest=n,n=b===void 0?null:b,r={value:m,source:null,stack:n},typeof n=="string"&&Uh.set(m,r),bl(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,Sa(e,r),Lt(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=ln(A.nextSibling),ba=t,nt=!0,Go=null,Ts=!1,dn=null,Un=!1,e!==null&&Ib(t,e),t=rp(t,r.children),t.flags|=4096);return t}}return i?(To(t),m=r.fallback,b=t.mode,U=e.child,A=U.sibling,r=Fs(U,{mode:"hidden",children:r.children}),r.subtreeFlags=U.subtreeFlags&65011712,A!==null?m=Fs(A,m):(m=br(m,b,a,null),m.flags|=2),m.return=t,r.return=t,r.sibling=m,t.child=r,_l(null,r),r=t.child,m=e.child.memoizedState,m===null?m=sp(a):(b=m.cachePool,b!==null?(U=Zt._currentValue,b=b.parent!==U?{parent:U,pool:U}:b):b=Wb(),m={baseLanes:m.baseLanes|a,cachePool:b}),r.memoizedState=m,r.childLanes=op(e,n,a),t.memoizedState=Jh,_l(e.child,r)):(N!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&ad(t),ko(t),a=e.child,e=a.sibling,a=Fs(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a)}function rp(e,t){return t=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 Hr(t,e.child,null,a),e=rp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nv(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 sv(e,t,a){var n=t.pendingProps,r=n.revealOrder,i=n.tail,d=n.children,m=It.current;if((n=(m&yc)!==0)?(m=m&qi|yc,t.flags|=128):m&=qi,P(It,m,t),m=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!YN[m])if(YN[m]=!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);m=i??"null",Zd[m]||(i==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(Zd[m]=!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[m]=!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[m]=!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(m=0;m<d.length;m++)if(!cy(d[m],m))break e}else if(m=W(d),typeof m=="function"){if(m=m.call(d))for(var b=m.next(),N=0;!b.done;b=m.next()){if(!cy(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(pa(e,t,d,a),nt?(Eo(),d=nc):d=0,!n&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nv(e,a,t);else if(e.tag===19)nv(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),Va=-1,Ko|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ri(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=Fs(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Fs(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function cp(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Eu(e)))}function LE(e,t,a){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),Ro(t,Zt,e.memoizedState.cache),vr();break;case 27:case 5:be(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:Ro(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?(ko(t),t.flags|=128,null):(a&t.child.childLanes)!==0?av(e,t,a):(ko(t),e=Ps(e,t,a),e!==null?e.sibling:null);ko(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 sv(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),P(It,It.current,t),n)break;return null;case 22:return t.lanes=0,Jy(e,t,a,t.pendingProps);case 24:Ro(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,LE(e,t,a);Kt=(e.flags&131072)!==0}else Kt=!1,(n=nt)&&(Eo(),n=(t.flags&1048576)!==0),n&&(n=t.index,Eo(),qb(t,nc,n));switch(t.lanes=0,t.tag){case 16:e:if(n=t.pendingProps,e=Co(t.elementType),t.type=e,typeof e=="function")om(e)?(n=Dr(e,n),t.tag=1,t.type=e=gr(e),t=ev(null,t,e,n,a)):(t.tag=0,np(t,e),t.type=e=gr(e),t=ap(null,t,e,n,a));else{if(e!=null){if(r=e.$$typeof,r===Gl){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=Qy(null,t,e,n,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===cn&&(t=" Did you wrap a component in React.lazy() more than once?"),a=k(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=Dr(n,t.pendingProps),ev(e,t,n,r,a);case 3:e:{if(Se(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),El(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Ro(t,Zt,n),n!==i.cache&&pm(t,[Zt],a,!0),wl(),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=tv(e,t,n,a);break e}else if(n!==r){r=an(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),bl(r),t=tv(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=ln(e.firstChild),ba=t,nt=!0,Go=null,Ts=!1,dn=null,Un=!0,a=bN(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(vr(),n===r){t=Ps(e,t,a);break e}pa(e,t,n,a)}t=t.child}return t;case 26:return Ju(e,t),e===null?(a=U0(t.type,null,t.pendingProps,null))?t.memoizedState=a:nt||(a=t.type,e=t.pendingProps,n=le(zo.current),n=id(n).createElement(a),n[ga]=t,n[ja]=e,ha(n,a,e),Ce(n),t.stateNode=n):t.memoizedState=U0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&nt&&(n=le(zo.current),r=fe(),n=t.stateNode=C0(t.type,t.pendingProps,n,r,!1),Ts||(r=h0(n,t.type,t.pendingProps,r),r!==null&&(yr(t,0).serverProps=r)),ba=t,Un=!0,r=Ut,Mo(t.type)?(vg=r,Ut=ln(n.firstChild)):Ut=r),pa(e,t,t.pendingProps.children,a),Ju(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&nt&&(i=fe(),n=Zf(t.type,i.ancestorInfo),r=Ut,(d=!r)||(d=R4(r,t.type,t.pendingProps,Un),d!==null?(t.stateNode=d,Ts||(i=h0(d,t.type,t.pendingProps,i),i!==null&&(yr(t,0).serverProps=i)),ba=t,Ut=ln(d.firstChild),Un=!1,i=!0):i=!1,d=!i),d&&(n&&Su(t,r),Do(t))),be(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,kE,null,null,a),Vc._currentValue=r),Ju(e,t),pa(e,t,n,a),t.child;case 6:return e===null&&nt&&(a=t.pendingProps,e=fe(),n=e.ancestorInfo.current,a=n!=null?fu(a,n.tag,e.ancestorInfo.implicitRootScope):!0,e=Ut,(n=!e)||(n=C4(e,t.pendingProps,Un),n!==null?(t.stateNode=n,ba=t,Ut=null,n=!0):n=!1,n=!n),n&&(a&&Su(t,e),Do(t))),null;case 13:return av(e,t,a);case 4:return Se(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Hr(t,null,n,a):pa(e,t,n,a),t.child;case 11:return Fy(e,t,t.type,t.pendingProps,a);case 7:return pa(e,t,t.pendingProps,a),t.child;case 8:return pa(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,n=t.stateNode,n.effectDuration=-0,n.passiveEffectDuration=-0,pa(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.type,r=t.pendingProps,i=r.value,"value"in r||qN||(qN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Ro(t,n,i),pa(e,t,r.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,typeof n!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),xr(t),r=Tt(r),n=zh(n,r,void 0),t.flags|=1,pa(e,t,n,a),t.child;case 14:return Qy(e,t,t.type,t.pendingProps,a);case 15:return Zy(e,t,t.type,t.pendingProps,a);case 19:return sv(e,t,a);case 31:return zE(e,t,a);case 22:return Jy(e,t,a,t.pendingProps);case 24:return xr(t),n=Tt(Zt),e===null?(r=ym(),r===null&&(r=Nt,i=hm(),r.pooledCache=i,Nr(i),i!==null&&(r.pooledCacheLanes|=a),r=i),t.memoizedState={parent:n,cache:r},xm(t),Ro(t,Zt,r)):((e.lanes&a)!==0&&(Nm(e,t),El(t,null,null,a),wl()),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),Ro(t,Zt,n)):(n=i.cache,Ro(t,Zt,n),n!==r.cache&&pm(t,[Zt],a,!0))),pa(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ks(e){e.flags|=4}function dp(e,t,a,n,r){if((t=(e.mode&oR)!==ze)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(zv())e.flags|=8192;else throw Lr=qd,Hh}else e.flags&=-16777217}function ov(e,t){if(t.type!=="stylesheet"||(t.state.loading&An)!==Jr)e.flags&=-16777217;else if(e.flags|=16777216,!A0(t))if(zv())e.flags|=8192;else throw Lr=qd,Hh}function Ku(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?en():536870912,e.lanes|=t,Gr|=t)}function Ul(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&Xe)!==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&Xe)!==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 HE(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),K(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),ov(t,i)):(St(t),dp(t,r,null,n,a))):i?i!==e.memoizedState?(Ks(t),St(t),ov(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(pe(t),a=le(zo.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=fe(),oi(t)?Fb(t):(e=C0(r,n,a,e,!0),t.stateNode=e,Ks(t))}return St(t),null;case 5:if(pe(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=fe();if(oi(t))Fb(t);else{switch(i=le(zo.current),Zf(r,d.ancestorInfo),d=d.context,i=id(i),d){case tl:i=i.createElementNS(Di,r);break;case gf:i=i.createElementNS(Ed,r);break;default:switch(r){case"svg":i=i.createElementNS(Di,r);break;case"math":i=i.createElementNS(Ed,r);break;case"script":i=i.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(i)!=="[object HTMLUnknownElement]"||Zn.call(m1,r)||(m1[r]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)))}}i[ga]=t,i[ja]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=i;e:switch(ha(i,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&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=le(zo.current),a=fe(),oi(t)){if(e=t.stateNode,a=t.memoizedProps,r=!Ts,n=null,i=ba,i!==null)switch(i.tag){case 3:r&&(r=D0(e,a,n),r!==null&&(yr(t,0).serverProps=r));break;case 27:case 5:n=i.memoizedProps,r&&(r=D0(e,a,n),r!==null&&(yr(t,0).serverProps=r))}e[ga]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||u0(e.nodeValue,a)),e||Do(t,!0)}else r=a.ancestorInfo.current,r!=null&&fu(n,r.tag,a.ancestorInfo.implicitRootScope),e=id(e).createTextNode(n),e[ga]=t,t.stateNode=e}return 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[ga]=t,St(t),(t.mode&Xe)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else fm(),vr(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,St(t),(t.mode&Xe)!==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?(on(t),t):(on(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[ga]=t,St(t),(t.mode&Xe)!==ze&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else fm(),vr(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,St(t),(t.mode&Xe)!==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?(on(t),t):(on(t),null)}return on(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&Xe)!==ze&&xl(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&Xe)!==ze&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return K(t),e===null&&_p(t.stateNode.containerInfo),St(t),null;case 10:return Zs(t.type,t),St(t),null;case 19:if(q(It,t),n=t.memoizedState,n===null)return St(t),null;if(r=(t.flags&128)!==0,i=n.rendering,i===null)if(r)Ul(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,Ul(n,!1),e=i.updateQueue,t.updateQueue=e,Ku(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)$b(a,e),a=a.sibling;return P(It,It.current&qi|yc,t),nt&&Qs(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ca()>af&&(t.flags|=128,r=!0,Ul(n,!1),t.lanes=4194304)}else{if(!r)if(e=Mu(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ku(t,e),Ul(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!nt)return St(t),null}else 2*ca()-n.renderingStartTime>af&&a!==536870912&&(t.flags|=128,r=!0,Ul(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ca(),e.sibling=null,a=It.current,a=r?a&qi|yc:a&qi,P(It,a,t),nt&&Qs(t,n.treeForkCount),e):(St(t),null);case 22:case 23:return on(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&&q(Vr,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 BE(e,t){switch(um(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==ze&&xl(t),t):null;case 3:return Zs(Zt,t),K(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(on(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==ze&&xl(t),t):null;case 13:if(on(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.");vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==ze&&xl(t),t):null;case 19:return q(It,t),null;case 4:return K(t),null;case 10:return Zs(t.type,t),null;case 22:case 23:return on(t),wm(t),e!==null&&q(Vr,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==ze&&xl(t),t):null;case 24:return Zs(Zt,t),null;case 25:return null;default:return null}}function rv(e,t){switch(um(t),t.tag){case 3:Zs(Zt,t),K(t);break;case 26:case 27:case 5:pe(t);break;case 4:K(t);break;case 31:t.memoizedState!==null&&on(t);break;case 13:on(t);break;case 19:q(It,t);break;case 10:Zs(t.type,t);break;case 22:case 23:on(t),wm(t),e!==null&&q(Vr,t);break;case 24:Zs(Zt,t)}}function ys(e){return(e.mode&Xe)!==ze}function iv(e,t){ys(e)?(bs(),kl(t,e),gs()):kl(t,e)}function fp(e,t,a){ys(e)?(bs(),di(a,e,t),gs()):di(a,e,t)}function kl(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e&&(n=void 0,(e&za)!==Id&&(Ki=!0),n=ve(t,dR,a),(e&za)!==Id&&(Ki=!1),n!==void 0&&typeof n!="function")){var i=void 0;i=(a.tag&mn)!==0?"useLayoutEffect":(a.tag&za)!==0?"useInsertionEffect":"useEffect";var d=void 0;d=n===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof n.then=="function"?`
|
|
146
|
+
|
|
147
|
+
It looks like you wrote `+i+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
148
|
+
|
|
149
|
+
`+i+`(() => {
|
|
150
|
+
async function fetchData() {
|
|
151
|
+
// You can await here
|
|
152
|
+
const response = await MyAPI.getData(someId);
|
|
153
|
+
// ...
|
|
154
|
+
}
|
|
155
|
+
fetchData();
|
|
156
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
157
|
+
|
|
158
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+n,ve(t,function(m,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",m,b)},i,d)}a=a.next}while(a!==r)}}catch(m){ht(t,t.return,m)}}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,m=d.destroy;m!==void 0&&(d.destroy=void 0,(e&za)!==Id&&(Ki=!0),r=t,ve(r,fR,r,a,m),(e&za)!==Id&&(Ki=!1))}n=n.next}while(n!==i)}}catch(b){ht(t,t.return,b)}}function lv(e,t){ys(e)?(bs(),kl(t,e),gs()):kl(t,e)}function mp(e,t,a){ys(e)?(bs(),di(a,e,t),gs()):di(a,e,t)}function cv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Fi||(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{ve(e,dy,t,a)}catch(n){ht(e,e.return,n)}}}function $E(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function YE(e,t){var a=t.memoizedProps,n=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Fi||(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=Dr(e.type,a),i=ve(e,$E,t,r,n);a=GN,i!==void 0||a.has(e.type)||(a.add(e.type),ve(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 uv(e,t,a){a.props=Dr(e.type,e.memoizedProps),a.state=e.memoizedState,ys(e)?(bs(),ve(e,cN,e,t,a),gs()):ve(e,cN,e,t,a)}function qE(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(ys(e))try{bs(),e.refCleanup=t(a)}finally{gs()}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 Tl(e,t){try{ve(e,qE,e)}catch(a){ht(e,t,a)}}function vs(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{if(ys(e))try{bs(),ve(e,n)}finally{gs(e)}else ve(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(ys(e))try{bs(),ve(e,a,null)}finally{gs(e)}else ve(e,a,null)}catch(r){ht(e,t,r)}else a.current=null}function dv(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 GE(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 fv(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{ve(e,p4,n,t,a,e)}catch(r){ht(e,e.return,r)}}function pp(e,t,a){try{ve(e,g4,e.stateNode,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function mv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Mo(e.type)||e.tag===4}function hp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mv(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&&Mo(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?(x0(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(x0(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=Xs));else if(n!==4&&(n===27&&Mo(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&&Mo(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 IE(e){for(var t,a=e.return;a!==null;){if(mv(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&&(v0(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 pv(e){var t=e.stateNode,a=e.memoizedProps;try{ve(e,O4,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function hv(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 XE(e,t){if(e=e.containerInfo,gg=xf,e=Tb(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,m=-1,b=-1,N=0,A=0,M=e,U=null;t:for(;;){for(var Y;M!==a||r!==0&&M.nodeType!==3||(m=d+r),M!==i||n!==0&&M.nodeType!==3||(b=d+n),M.nodeType===3&&(d+=M.nodeValue.length),(Y=M.firstChild)!==null;)U=M,M=Y;for(;;){if(M===e)break t;if(U===a&&++N===r&&(m=d),U===i&&++A===n&&(b=d),(Y=M.nextSibling)!==null)break;M=U,U=M.parentNode}M=Y}a=m===-1||b===-1?null:{start:m,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(bg={focusedElem:e,selectionRange:a},xf=!1,da=t;da!==null;)if(t=da,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,da=e;else for(;da!==null;){switch(e=t=da,a=e.alternate,r=e.flags,e.tag){case 0:if((r&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:(r&1024)!==0&&a!==null&&YE(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,da=e;break}da=t.return}}function gv(e,t,a){var n=nn(),r=fs(),i=ps(),d=hs(),m=a.flags;switch(a.tag){case 0:case 11:case 15:xs(e,a),m&4&&iv(a,mn|On);break;case 1:if(xs(e,a),m&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Fi||(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")),ys(a)?(bs(),ve(a,Lh,a,e),gs()):ve(a,Lh,a,e);else{var b=Dr(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Fi||(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")),ys(a)?(bs(),ve(a,rN,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate),gs()):ve(a,rN,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate)}m&64&&cv(a),m&512&&Tl(a,a.return);break;case 3:if(t=Js(),xs(e,a),m&64&&(m=a.updateQueue,m!==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{ve(a,dy,m,b)}catch(A){ht(a,a.return,A)}}e.effectDuration+=Ru(t);break;case 27:t===null&&m&4&&pv(a);case 26:case 5:if(xs(e,a),t===null){if(m&4)fv(a);else if(m&64){e=a.type,t=a.memoizedProps,b=a.stateNode;try{ve(a,h4,b,e,t,a)}catch(A){ht(a,a.return,A)}}}m&512&&Tl(a,a.return);break;case 12:if(m&4){m=Js(),xs(e,a),e=a.stateNode,e.effectDuration+=vl(m);try{ve(a,dv,a,t,Io,e.effectDuration)}catch(A){ht(a,a.return,A)}}else xs(e,a);break;case 31:xs(e,a),m&4&&vv(e,a);break;case 13:xs(e,a),m&4&&xv(e,a),m&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(m=t4.bind(null,a),_4(e,m))));break;case 22:if(m=a.memoizedState!==null||po,!m){t=t!==null&&t.memoizedState!==null||Wt,b=po;var N=Wt;po=m,(Wt=t)&&!N?(Ns(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&gu(a,Oe,Ve)):xs(e,a),po=b,Wt=N}break;case 30:break;default:xs(e,a)}(a.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&((Ht||.05<jt)&&us(a,Oe,Ve,jt,Ot),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Ve-Oe&&(hv(a.return.alternate,a.return)||cs(a,Oe,Ve,"Mount"))),sn(n),ms(r),Ot=i,Ht=d}function bv(e){var t=e.alternate;t!==null&&(e.alternate=null,bv(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;)yv(e,t,a),a=a.sibling}function yv(e,t,a){if(wa&&typeof wa.onCommitFiberUnmount=="function")try{wa.onCommitFiberUnmount(wi,a)}catch(N){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",N))}var n=nn(),r=fs(),i=ps(),d=hs();switch(a.tag){case 26:Wt||vs(a,t),Ws(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Wt||vs(a,t);var m=ea,b=Qa;Mo(a.type)&&(ea=a.stateNode,Qa=!1),Ws(e,t,a),ve(a,Bl,a.stateNode),ea=m,Qa=b;break;case 5:Wt||vs(a,t);case 6:if(m=ea,b=Qa,ea=null,Ws(e,t,a),ea=m,Qa=b,ea!==null)if(Qa)try{ve(a,v4,ea,a.stateNode)}catch(N){ht(a,t,N)}else try{ve(a,y4,ea,a.stateNode)}catch(N){ht(a,t,N)}break;case 18:ea!==null&&(Qa?(e=ea,N0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),vi(e)):N0(ea,a.stateNode));break;case 4:m=ea,b=Qa,ea=a.stateNode.containerInfo,Qa=!0,Ws(e,t,a),ea=m,Qa=b;break;case 0:case 11:case 14:case 15:di(za,a,t),Wt||fp(a,t,mn),Ws(e,t,a);break;case 1:Wt||(vs(a,t),m=a.stateNode,typeof m.componentWillUnmount=="function"&&uv(a,t,m)),Ws(e,t,a);break;case 21:Ws(e,t,a);break;case 22:Wt=(m=Wt)||a.memoizedState!==null,Ws(e,t,a),Wt=m;break;default:Ws(e,t,a)}(a.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&(Ht||.05<jt)&&us(a,Oe,Ve,jt,Ot),sn(n),ms(r),Ot=i,Ht=d}function vv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ve(t,k4,e)}catch(a){ht(t,t.return,a)}}}function xv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ve(t,T4,e)}catch(a){ht(t,t.return,a)}}function FE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new IN),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new IN),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function ed(e,t){var a=FE(e);t.forEach(function(n){if(!a.has(n)){if(a.add(n),_s)if(Qi!==null&&Zi!==null)Ml(Zi,Qi);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=a4.bind(null,e,n);n.then(r,r)}})}function Xa(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],m=nn(),b=i;e:for(;b!==null;){switch(b.tag){case 27:if(Mo(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.");yv(r,i,d),ea=null,Qa=!1,(d.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&cs(d,Oe,Ve,"Unmount"),sn(m),r=d,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Nv(t,e),t=t.sibling}function Nv(e,t){var a=nn(),n=fs(),r=ps(),i=hs(),d=e.alternate,m=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xa(t,e),Fa(e),m&4&&(di(za|On,e,e.return),kl(za|On,e),fp(e,e.return,mn|On));break;case 1:if(Xa(t,e),Fa(e),m&512&&(Wt||d===null||vs(d,d.return)),m&64&&po&&(m=e.updateQueue,m!==null&&(d=m.callbacks,d!==null))){var b=m.shared.hiddenCallbacks;m.shared.hiddenCallbacks=b===null?d:b.concat(d)}break;case 26:if(b=Wn,Xa(t,e),Fa(e),m&512&&(Wt||d===null||vs(d,d.return)),m&4){var N=d!==null?d.memoizedState:null;if(m=e.memoizedState,d===null)if(m===null)if(e.stateNode===null){e:{m=e.type,d=e.memoizedProps,b=b.ownerDocument||b;t:switch(m){case"title":N=b.getElementsByTagName("title")[0],(!N||N[Fl]||N[ga]||N.namespaceURI===Di||N.hasAttribute("itemprop"))&&(N=b.createElement(m),b.head.insertBefore(N,b.querySelector("head > title"))),ha(N,m,d),N[ga]=e,Ce(N),m=N;break e;case"link":var A=O0("link","href",b).get(m+(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(m),ha(N,m,d),b.head.appendChild(N);break;case"meta":if(A=O0("meta","content",b).get(m+(d.content||""))){for(M=0;M<A.length;M++)if(N=A[M],ft(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(m),ha(N,m,d),b.head.appendChild(N);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+m+'". This is a bug in React.')}N[ga]=e,Ce(N),m=N}e.stateNode=m}else j0(b,e.type,e.stateNode);else e.stateNode=T0(b,m,e.memoizedProps);else N!==m?(N===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):N.count--,m===null?j0(b,e.type,e.stateNode):T0(b,m,e.memoizedProps)):m===null&&e.stateNode!==null&&pp(e,e.memoizedProps,d.memoizedProps)}break;case 27:Xa(t,e),Fa(e),m&512&&(Wt||d===null||vs(d,d.return)),d!==null&&m&4&&pp(e,e.memoizedProps,d.memoizedProps);break;case 5:if(Xa(t,e),Fa(e),m&512&&(Wt||d===null||vs(d,d.return)),e.flags&32){b=e.stateNode;try{ve(e,v0,b)}catch(xe){ht(e,e.return,xe)}}m&4&&e.stateNode!=null&&(b=e.memoizedProps,pp(e,b,d!==null?d.memoizedProps:b)),m&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(Xa(t,e),Fa(e),m&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.");m=e.memoizedProps,d=d!==null?d.memoizedProps:m,b=e.stateNode;try{ve(e,b4,b,d,m)}catch(xe){ht(e,e.return,xe)}}break;case 3:if(b=Js(),bf=null,N=Wn,Wn=ld(t.containerInfo),Xa(t,e),Wn=N,Fa(e),m&4&&d!==null&&d.memoizedState.isDehydrated)try{ve(e,U4,t.containerInfo)}catch(xe){ht(e,e.return,xe)}Ph&&(Ph=!1,Sv(e)),t.effectDuration+=Ru(b);break;case 4:m=Wn,Wn=ld(e.stateNode.containerInfo),Xa(t,e),Fa(e),Wn=m;break;case 12:m=Js(),Xa(t,e),Fa(e),e.stateNode.effectDuration+=vl(m);break;case 31:Xa(t,e),Fa(e),m&4&&(m=e.updateQueue,m!==null&&(e.updateQueue=null,ed(e,m)));break;case 13:Xa(t,e),Fa(e),e.child.flags&8192&&e.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(tf=ca()),m&4&&(m=e.updateQueue,m!==null&&(e.updateQueue=null,ed(e,m)));break;case 22:b=e.memoizedState!==null;var U=d!==null&&d.memoizedState!==null,Y=po,me=Wt;if(po=Y||b,Wt=me||U,Xa(t,e),Wt=me,po=Y,U&&!b&&!Y&&!me&&(e.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&gu(e,Oe,Ve),Fa(e),m&8192)e:for(t=e.stateNode,t._visibility=b?t._visibility&~ac:t._visibility|ac,!b||d===null||U||po||Wt||(Rr(e),(e.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&cs(e,Oe,Ve,"Disconnect")),d=null,t=e;;){if(t.tag===5||t.tag===26){if(d===null){U=d=t;try{N=U.stateNode,b?ve(U,N4,N):ve(U,E4,U.stateNode,U.memoizedProps)}catch(xe){ht(U,U.return,xe)}}}else if(t.tag===6){if(d===null){U=t;try{A=U.stateNode,b?ve(U,S4,A):ve(U,D4,A,U.memoizedProps)}catch(xe){ht(U,U.return,xe)}}}else if(t.tag===18){if(d===null){U=t;try{M=U.stateNode,b?ve(U,x4,M):ve(U,w4,U.stateNode)}catch(xe){ht(U,U.return,xe)}}}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}m&4&&(m=e.updateQueue,m!==null&&(d=m.retryQueue,d!==null&&(m.retryQueue=null,ed(e,d))));break;case 19:Xa(t,e),Fa(e),m&4&&(m=e.updateQueue,m!==null&&(e.updateQueue=null,ed(e,m)));break;case 30:break;case 21:break;default:Xa(t,e),Fa(e)}(e.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&((Ht||.05<jt)&&us(e,Oe,Ve,jt,Ot),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Ve-Oe&&(hv(e.return.alternate,e.return)||cs(e,Oe,Ve,"Mount"))),sn(a),ms(n),Ot=r,Ht=i}function Fa(e){var t=e.flags;if(t&2){try{ve(e,IE,e)}catch(a){ht(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xs(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gv(e,t.alternate,t),t=t.sibling}function wv(e){var t=nn(),a=fs(),n=ps(),r=hs();switch(e.tag){case 0:case 11:case 14:case 15:fp(e,e.return,mn),Rr(e);break;case 1:vs(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&uv(e,e.return,i),Rr(e);break;case 27:ve(e,Bl,e.stateNode);case 26:case 5:vs(e,e.return),Rr(e);break;case 22:e.memoizedState===null&&Rr(e);break;case 30:Rr(e);break;default:Rr(e)}(e.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&(Ht||.05<jt)&&us(e,Oe,Ve,jt,Ot),sn(t),ms(a),Ot=n,Ht=r}function Rr(e){for(e=e.child;e!==null;)wv(e),e=e.sibling}function Ev(e,t,a,n){var r=nn(),i=fs(),d=ps(),m=hs(),b=a.flags;switch(a.tag){case 0:case 11:case 15:Ns(e,a,n),iv(a,mn);break;case 1:if(Ns(e,a,n),t=a.stateNode,typeof t.componentDidMount=="function"&&ve(a,Lh,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{ve(a,UE,t,e)}catch(N){ht(a,a.return,N)}}n&&b&64&&cv(a),Tl(a,a.return);break;case 27:pv(a);case 26:case 5:Ns(e,a,n),n&&t===null&&b&4&&fv(a),Tl(a,a.return);break;case 12:if(n&&b&4){b=Js(),Ns(e,a,n),n=a.stateNode,n.effectDuration+=vl(b);try{ve(a,dv,a,t,Io,n.effectDuration)}catch(N){ht(a,a.return,N)}}else Ns(e,a,n);break;case 31:Ns(e,a,n),n&&b&4&&vv(e,a);break;case 13:Ns(e,a,n),n&&b&4&&xv(e,a);break;case 22:a.memoizedState===null&&Ns(e,a,n),Tl(a,a.return);break;case 30:break;default:Ns(e,a,n)}(a.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&(Ht||.05<jt)&&us(a,Oe,Ve,jt,Ot),sn(r),ms(i),Ot=d,Ht=m}function Ns(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Ev(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&&Nr(e),a!=null&&yl(a))}function yp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Nr(t),e!=null&&yl(e))}function Qn(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var i=t.sibling;Dv(e,t,a,n,i!==null?i.actualStartTime:r),t=i}}function Dv(e,t,a,n,r){var i=nn(),d=fs(),m=ps(),b=hs(),N=$o,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Xe)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&bu(t,t.actualStartTime,r,na,a),Qn(e,t,a,n,r),A&2048&&lv(t,La|On);break;case 1:(t.mode&Xe)!==ze&&0<t.actualStartTime&&((t.flags&128)!==0?em(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&bu(t,t.actualStartTime,r,na,a)),Qn(e,t,a,n,r);break;case 3:var M=Js(),U=na;na=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Qn(e,t,a,n,r),na=U,A&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),n=t.memoizedState.cache,n!==a&&(Nr(n),a!=null&&yl(a))),e.passiveEffectDuration+=Ru(M);break;case 12:if(A&2048){A=Js(),Qn(e,t,a,n,r),e=t.stateNode,e.passiveEffectDuration+=vl(A);try{ve(t,GE,t,t.alternate,Io,e.passiveEffectDuration)}catch(Y){ht(t,t.return,Y)}}else Qn(e,t,a,n,r);break;case 31:A=na,M=t.alternate!==null?t.alternate.memoizedState:null,U=t.memoizedState,M!==null&&U===null?(U=t.deletions,U!==null&&0<U.length&&U[0].tag===18?(na=!1,M=M.hydrationErrors,M!==null&&em(t,t.actualStartTime,r,M)):na=!0):na=!1,Qn(e,t,a,n,r),na=A;break;case 13:A=na,M=t.alternate!==null?t.alternate.memoizedState:null,U=t.memoizedState,M===null||M.dehydrated===null||U!==null&&U.dehydrated!==null?na=!1:(U=t.deletions,U!==null&&0<U.length&&U[0].tag===18?(na=!1,M=M.hydrationErrors,M!==null&&em(t,t.actualStartTime,r,M)):na=!0),Qn(e,t,a,n,r),na=A;break;case 23:break;case 22:U=t.stateNode,M=t.alternate,t.memoizedState!==null?U._visibility&no?Qn(e,t,a,n,r):Ol(e,t,a,n,r):U._visibility&no?Qn(e,t,a,n,r):(U._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&Xe)===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:Qn(e,t,a,n,r),A&2048&&yp(t.alternate,t);break;default:Qn(e,t,a,n,r)}(t.mode&Xe)!==ze&&((e=!na&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<r-a&&cs(t,a,r,"Mount")),0<=Oe&&0<=Ve&&((Ht||.05<jt)&&us(t,Oe,Ve,jt,Ot),e&&.05<Ve-Oe&&cs(t,Oe,Ve,"Mount"))),sn(i),ms(d),Ot=m,Ht=b,$o=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;Rv(e,t,a,n,r,d!==null?d.actualStartTime:i),t=d}}function Rv(e,t,a,n,r,i){var d=nn(),m=fs(),b=ps(),N=hs(),A=$o;r&&(t.mode&Xe)!==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),lv(t,La);break;case 23:break;case 22:var U=t.stateNode;t.memoizedState!==null?U._visibility&no?fi(e,t,a,n,r,i):Ol(e,t,a,n,i):(U._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&Xe)!==ze&&0<=Oe&&0<=Ve&&(Ht||.05<jt)&&us(t,Oe,Ve,jt,Ot),sn(d),ms(m),Ot=b,Ht=N,$o=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,m=a,b=n,N=t!==null?t.actualStartTime:r,A=$o;(i.mode&Xe)!==ze&&0<i.actualStartTime&&(i.flags&1)!==0&&bu(i,i.actualStartTime,N,na,m);var M=i.flags;switch(i.tag){case 22:Ol(d,i,m,b,N),M&2048&&bp(i.alternate,i);break;case 24:Ol(d,i,m,b,N),M&2048&&yp(i.alternate,i);break;default:Ol(d,i,m,b,N)}$o=A,i=t}}function mi(e,t,a){if(e.subtreeFlags&Sc)for(e=e.child;e!==null;)Cv(e,t,a),e=e.sibling}function Cv(e,t,a){switch(e.tag){case 26:mi(e,t,a),e.flags&Sc&&e.memoizedState!==null&&M4(a,Wn,e.memoizedState,e.memoizedProps);break;case 5:mi(e,t,a);break;case 3:case 4:var n=Wn;Wn=ld(e.stateNode.containerInfo),mi(e,t,a),Wn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Sc,Sc=16777216,mi(e,t,a),Sc=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 jl(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=nn();da=n,Tv(n,e),(n.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&cs(n,Oe,Ve,"Unmount"),sn(r)}_v(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Uv(e),e=e.sibling}function Uv(e){var t=nn(),a=fs(),n=ps(),r=hs();switch(e.tag){case 0:case 11:case 15:jl(e),e.flags&2048&&mp(e,e.return,La|On);break;case 3:var i=Js();jl(e),e.stateNode.passiveEffectDuration+=Ru(i);break;case 12:i=Js(),jl(e),e.stateNode.passiveEffectDuration+=vl(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&Xe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&cs(e,Oe,Ve,"Disconnect")):jl(e);break;default:jl(e)}(e.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&(Ht||.05<jt)&&us(e,Oe,Ve,jt,Ot),sn(t),ms(a),Ht=r,Ot=n}function td(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],r=nn();da=n,Tv(n,e),(n.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&.05<Ve-Oe&&cs(n,Oe,Ve,"Unmount"),sn(r)}_v(e)}for(e=e.child;e!==null;)kv(e),e=e.sibling}function kv(e){var t=nn(),a=fs(),n=ps(),r=hs();switch(e.tag){case 0:case 11:case 15:mp(e,e.return,La),td(e);break;case 22:var i=e.stateNode;i._visibility&no&&(i._visibility&=~no,td(e));break;default:td(e)}(e.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&(Ht||.05<jt)&&us(e,Oe,Ve,jt,Ot),sn(t),ms(a),Ht=r,Ot=n}function Tv(e,t){for(;da!==null;){var a=da,n=a,r=t,i=nn(),d=fs(),m=ps(),b=hs();switch(n.tag){case 0:case 11:case 15:mp(n,r,La);break;case 23:case 22:n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool,r!=null&&Nr(r));break;case 24:yl(n.memoizedState.cache)}if((n.mode&Xe)!==ze&&0<=Oe&&0<=Ve&&(Ht||.05<jt)&&us(n,Oe,Ve,jt,Ot),sn(i),ms(d),Ht=b,Ot=m,n=a.child,n!==null)n.return=a,da=n;else e:for(a=e;da!==null;){if(n=da,i=n.sibling,d=n.return,bv(n),n===a){da=null;break e}if(i!==null){i.return=d,da=i;break e}da=d}}}function QE(){bR.forEach(function(e){return e()})}function Ov(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||X.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function rn(e){if((dt&sa)!==fa&&Qe!==0)return Qe&-Qe;var t=X.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Rp()):$n()}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=fn.current,e!==null&&(e.flags|=32),Ja}function Lt(e,t,a){if(Ki&&console.error("useInsertionEffect must not schedule updates."),lg&&(of=!0),(e===Nt&&(yt===Yr||yt===qr)||e.cancelPendingCommit!==null)&&(hi(e,0),jo(e,Qe,Ja,!1)),vn(e,a),(dt&sa)!==fa&&e===Nt){if(Rs)switch(t.tag){case 0:case 11:case 15:e=Je&&$(Je)||"Unknown",r1.has(e)||(r1.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:o1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),o1=!0)}}else _s&&$s(e,t,a),s4(t),e===Nt&&((dt&sa)===fa&&(Wo|=a),At===Jo&&jo(e,Qe,Ja,!1)),Ss(e)}function Av(e,t,a){if((dt&(sa|pn))!==fa)throw Error("Should not already be working.");if(Qe!==0&&Je!==null){var n=Je,r=ca();switch(Kx){case Dc:case Yr:var i=lc;_t&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Suspended",i,r,En,void 0,"primary-light")):console.timeStamp("Suspended",i,r,En,void 0,"primary-light"));break;case qr:i=lc,_t&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Action",i,r,En,void 0,"primary-light")):console.timeStamp("Action",i,r,En,void 0,"primary-light"));break;default:_t&&(n=r-lc,3>n||console.timeStamp("Blocked",lc,r,En,void 0,5>n?"primary-light":10>n?"primary":100>n?"primary-dark":"error"))}}i=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||yn(e,t))?JE(e,t):xp(e,t,!0);var d=a;do{if(i===ho){Ji&&!a&&jo(e,t,0,!1),t=yt,lc=Jt(),Kx=t;break}else{if(n=ca(),r=e.current.alternate,d&&!ZE(r)){Xn(t),r=ua,i=n,!_t||i<=r||($t?$t.run(console.timeStamp.bind(console,"Teared Render",r,i,lt,rt,"error")):console.timeStamp("Teared Render",r,i,lt,rt,"error")),Cr(t,n),i=xp(e,t,!1),d=!1;continue}if(i===$r){if(d=t,e.errorRecoveryDisabledLanes&d)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){Xn(t),tm(ua,n,t,$t),Cr(t,n),t=m;e:{n=e,i=d,d=Cc;var b=n.current.memoizedState.isDehydrated;if(b&&(hi(n,m).flags|=256),m=xp(n,m,!1),m!==$r){if(eg&&!b){n.errorRecoveryDisabledLanes|=i,Wo|=i,i=Jo;break e}n=Ha,Ha=d,n!==null&&(Ha===null?Ha=n:Ha.push.apply(Ha,n))}i=m}if(d=!1,i!==$r)continue;n=ca()}}if(i===Ec){Xn(t),tm(ua,n,t,$t),Cr(t,n),hi(e,0),jo(e,t,0,!0);break}e:{switch(a=e,i){case ho:case Ec:throw Error("Root did not complete. This is a bug in React.");case Jo:if((t&4194048)!==t)break;case Pd:Xn(t),Ab(ua,n,t,$t),Cr(t,n),r=t,(r&127)!==0?Vd=n:(r&4194048)!==0&&(zd=n),jo(a,t,Ja,!Po);break e;case $r:Ha=null;break;case Jd:case XN:break;default:throw Error("Unknown root exit status.")}if(X.actQueue!==null)Np(a,r,t,Ha,_c,ef,Ja,Wo,Gr,i,null,null,ua,n);else{if((t&62914560)===t&&(d=tf+ZN-ca(),10<d)){if(jo(a,t,Ja,!Po),$a(a,0,!0)!==0)break e;es=t,a.timeoutHandle=p1(Mv.bind(null,a,r,Ha,_c,ef,t,Ja,Wo,Gr,Po,i,"Throttled",ua,n),d);break e}Mv(a,r,Ha,_c,ef,t,Ja,Wo,Gr,Po,i,null,ua,n)}}}break}while(!0);Ss(e)}function Mv(e,t,a,n,r,i,d,m,b,N,A,M,U,Y){e.timeoutHandle=Zr;var me=t.subtreeFlags,xe=null;if((me&8192||(me&16785408)===16785408)&&(xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xs},Cv(t,i,xe),me=(i&62914560)===i?tf-ca():(i&4194048)===i?QN-ca():0,me=V4(xe,me),me!==null)){es=i,e.cancelPendingCommit=me(Np.bind(null,e,t,i,a,n,r,d,m,b,A,xe,xe.waitingForViewTransition?"Waiting for the previous Animation":0<xe.count?0<xe.imgCount?"Suspended on CSS and Images":"Suspended on CSS":xe.imgCount===1?"Suspended on an Image":0<xe.imgCount?"Suspended on Images":null,U,Y)),jo(e,i,d,!N);return}Np(e,t,i,a,n,r,d,m,b,A,xe,M,U,Y)}function ZE(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(!Ma(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 jo(e,t,a,n){t&=~tg,t&=~Wo,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&&_a(e,a,t)}function pi(){return(dt&(sa|pn))===fa?(Vl(0),!1):!0}function vp(){if(Je!==null){if(yt===Za)var e=Je.return;else e=Je,wu(),km(e),$i=null,bc=0,e=Je;for(;e!==null;)rv(e.alternate,e),e=e.return;Je=null}}function Cr(e,t){(e&127)!==0&&(Or=t),(e&4194048)!==0&&(lo=t),(e&62914560)!==0&&(Jx=t),(e&2080374784)!==0&&(Px=t)}function hi(e,t){_t&&(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=ua;if(ua=Jt(),Qe!==0&&0<a){if(Xn(Qe),At===Jd||At===Jo)Ab(a,ua,t,$t);else{var n=ua,r=$t;if(_t&&!(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)}}Cr(Qe,ua)}if(a=$t,$t=null,(t&127)!==0){$t=oc,r=0<=Os&&Os<Or?Or:Os,n=0<=jr&&jr<Or?Or:jr,i=0<=n?n:0<=r?r:ua,0<=Vd?(Xn(2),Mb(Vd,i,t,a)):Ld&127,a=r;var m=n,b=rc,N=0<Li,A=Xo===sc,M=Xo===Md;if(r=ua,n=oc,i=jh,d=Ah,_t){if(lt="Blocking",0<a?a>r&&(a=r):a=r,0<m?m>a&&(m=a):m=a,b!==null&&a>m){var U=N?"secondary-light":"warning";n?n.run(console.timeStamp.bind(console,N?"Consecutive":"Event: "+b,m,a,lt,rt,U)):console.timeStamp(N?"Consecutive":"Event: "+b,m,a,lt,rt,U)}r>a&&(m=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:m}}},n?n.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}Os=-1.1,Xo=0,Ah=jh=null,Vd=-1.1,Li=jr,jr=-1.1,Or=Jt()}if((t&4194048)!==0&&($t=ic,r=0<=co&&co<lo?lo:co,a=0<=kn&&kn<lo?lo:kn,n=0<=Fo&&Fo<lo?lo:Fo,i=0<=n?n:0<=a?a:ua,0<=zd?(Xn(256),Mb(zd,i,t,$t)):Ld&4194048,M=n,m=Ar,b=0<Qo,N=Mh===Md,i=ua,n=ic,d=Qx,A=Zx,_t&&(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&&m!==null&&(U=b?"secondary-light":"warning",n?n.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+m,M,r,lt,rt,U)):console.timeStamp(b?"Consecutive":"Event: "+m,M,r,lt,rt,U)),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))),kn=co=-1.1,Mh=0,zd=-1.1,Qo=Fo,Fo=-1.1,lo=Jt()),(t&62914560)!==0&&(Ld&62914560)!==0&&(Xn(4194304),am(Jx,ua)),(t&2080374784)!==0&&(Ld&2080374784)!==0&&(Xn(268435456),am(Px,ua)),a=e.timeoutHandle,a!==Zr&&(e.timeoutHandle=Zr,kR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),es=0,vp(),Nt=e,Je=a=Fs(e.current,null),Qe=t,yt=Za,hn=null,Po=!1,Ji=yn(e,t),eg=!1,At=ho,Gr=Ja=tg=Wo=Ko=0,Ha=Cc=null,ef=!1,(t&8)!==0&&(t|=t&32),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=t;0<n;)r=31-Oa(n),i=1<<r,t|=e[r],n&=~i;return As=t,yu(),e=Yx(),1e3<e-$x&&(X.recentlyCreatedOwnerStacks=0,$x=e),Pn.discardPendingWarnings(),a}function Vv(e,t){Be=null,X.H=Nc,X.getCurrentStack=null,Rs=!1,un=null,t===Bi||t===Yd?(t=ny(),yt=Dc):t===Hh?(t=ny(),yt=FN):yt=t===Zh?Wh:t!==null&&typeof t=="object"&&typeof t.then=="function"?Rc:Kd,hn=t;var a=Je;a===null?(At=Ec,Qu(e,an(t,e.current))):a.mode&Xe&&bm(a)}function zv(){var e=fn.current;return e===null?!0:(Qe&4194048)===Qe?Tn===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?e===Tn:!1}function Lv(){var e=X.H;return X.H=Nc,e===null?Nc:e}function Hv(){var e=X.A;return X.A=gR,e}function ad(e){$t===null&&($t=e._debugTask==null?null:e._debugTask)}function nd(){At=Jo,Po||(Qe&4194048)!==Qe&&fn.current!==null||(Ji=!0),(Ko&134217727)===0&&(Wo&134217727)===0||Nt===null||jo(Nt,Qe,Ja,!1)}function xp(e,t,a){var n=dt;dt|=sa;var r=Lv(),i=Hv();if(Nt!==e||Qe!==t){if(_s){var d=e.memoizedUpdaters;0<d.size&&(Ml(e,Qe),d.clear()),xa(e,t)}_c=null,hi(e,t)}t=!1,d=At;e:do try{if(yt!==Za&&Je!==null){var m=Je,b=hn;switch(yt){case Wh:vp(),d=Pd;break e;case Dc:case Yr:case qr:case Rc:fn.current===null&&(t=!0);var N=yt;if(yt=Za,hn=null,gi(e,m,b,N),a&&Ji){d=ho;break e}break;default:N=yt,yt=Za,hn=null,gi(e,m,b,N)}}Bv(),d=At;break}catch(A){Vv(e,A)}while(!0);return t&&e.shellSuspendCounter++,wu(),dt=n,X.H=r,X.A=i,Je===null&&(Nt=null,Qe=0,yu()),d}function Bv(){for(;Je!==null;)$v(Je)}function JE(e,t){var a=dt;dt|=sa;var n=Lv(),r=Hv();if(Nt!==e||Qe!==t){if(_s){var i=e.memoizedUpdaters;0<i.size&&(Ml(e,Qe),i.clear()),xa(e,t)}_c=null,af=ca()+JN,hi(e,t)}else Ji=yn(e,t);e:do try{if(yt!==Za&&Je!==null)t:switch(t=Je,i=hn,yt){case Kd:yt=Za,hn=null,gi(e,t,i,Kd);break;case Yr:case qr:if(ty(i)){yt=Za,hn=null,Yv(t);break}t=function(){yt!==Yr&&yt!==qr||Nt!==e||(yt=Wd),Ss(e)},i.then(t,t);break e;case Dc:yt=Wd;break e;case FN:yt=Kh;break e;case Wd:ty(i)?(yt=Za,hn=null,Yv(t)):(yt=Za,hn=null,gi(e,t,i,Wd));break;case Kh:var d=null;switch(Je.tag){case 26:d=Je.memoizedState;case 5:case 27:var m=Je;if(d?A0(d):m.stateNode.complete){yt=Za,hn=null;var b=m.sibling;if(b!==null)Je=b;else{var N=m.return;N!==null?(Je=N,sd(N)):Je=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}yt=Za,hn=null,gi(e,t,i,Kh);break;case Rc:yt=Za,hn=null,gi(e,t,i,Rc);break;case Wh:vp(),At=Pd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}X.actQueue!==null?Bv():PE();break}catch(A){Vv(e,A)}while(!0);return wu(),X.H=n,X.A=r,dt=a,Je!==null?ho:(Nt=null,Qe=0,yu(),At)}function PE(){for(;Je!==null&&!J4();)$v(Je)}function $v(e){var t=e.alternate;(e.mode&Xe)!==ze?(gm(e),t=ve(e,up,t,e,As),bm(e)):t=ve(e,up,t,e,As),e.memoizedProps=e.pendingProps,t===null?sd(e):Je=t}function Yv(e){var t=ve(e,KE,e);e.memoizedProps=e.pendingProps,t===null?sd(e):Je=t}function KE(e){var t=e.alternate,a=(e.mode&Xe)!==ze;switch(a&&gm(e),e.tag){case 15:case 0:t=Wy(t,e,e.pendingProps,e.type,void 0,Qe);break;case 11:t=Wy(t,e,e.pendingProps,e.type.render,e.ref,Qe);break;case 5:km(e);default:rv(t,e),e=Je=$b(e,As),t=up(t,e,As)}return a&&bm(e),t}function gi(e,t,a,n){wu(),km(t),$i=null,bc=0;var r=t.return;try{if(VE(e,r,t,a,Qe)){At=Ec,Qu(e,an(a,e.current)),Je=null;return}}catch(i){if(r!==null)throw Je=r,i;At=Ec,Qu(e,an(a,e.current)),Je=null;return}t.flags&32768?(nt||n===Kd?e=!0:Ji||(Qe&536870912)!==0?e=!1:(Po=e=!0,(n===Yr||n===qr||n===Dc||n===Rc)&&(n=fn.current,n!==null&&n.tag===13&&(n.flags|=16384))),qv(t,e)):sd(t)}function sd(e){var t=e;do{if((t.flags&32768)!==0){qv(t,Po);return}var a=t.alternate;if(e=t.return,gm(t),a=ve(t,HE,a,t,As),(t.mode&Xe)!==ze&&Jb(t),a!==null){Je=a;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);At===ho&&(At=XN)}function qv(e,t){do{var a=BE(e.alternate,e);if(a!==null){a.flags&=32767,Je=a;return}if((e.mode&Xe)!==ze){Jb(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)){Je=e;return}Je=e=a}while(e!==null);At=Pd,Je=null}function Np(e,t,a,n,r,i,d,m,b,N,A,M,U,Y){e.cancelPendingCommit=null;do Al();while(ta!==tr);if(Pn.flushLegacyContextWarning(),Pn.flushPendingUnsafeLifecycleWarnings(),(dt&(sa|pn))!==fa)throw Error("Should not already be working.");if(Xn(a),N===$r?tm(U,Y,a,$t):n!==null?wE(U,Y,a,n,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,$t):SE(U,Y,a,$t),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|=_h,qa(e,a,i,d,m,b),e===Nt&&(Je=Nt=null,Qe=0),Pi=t,ar=e,es=a,sg=i,rg=r,a1=n,og=Y,n1=M,ts=nf,s1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,n4(Si,function(){return Ac=window.event,ts===nf&&(ts=ng),Qv(),null})):(e.callbackNode=null,e.callbackPriority=0),io=null,Io=Jt(),M!==null&&EE(Y,Io,M,$t),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=X.T,X.T=null,r=gt.p,gt.p=wn,d=dt,dt|=pn;try{XE(e,t,a)}finally{dt=d,gt.p=r,X.T=n}}ta=KN,Gv(),Iv(),Xv()}}function Gv(){if(ta===KN){ta=tr;var e=ar,t=Pi,a=es,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=X.T,X.T=null;var r=gt.p;gt.p=wn;var i=dt;dt|=pn;try{Qi=a,Zi=e,Cu(),Nv(t,e),Zi=Qi=null,a=bg;var d=Tb(e.containerInfo),m=a.focusedElem,b=a.selectionRange;if(d!==m&&m&&m.ownerDocument&&kb(m.ownerDocument.documentElement,m)){if(b!==null&&Kf(m)){var N=b.start,A=b.end;if(A===void 0&&(A=N),"selectionStart"in m)m.selectionStart=N,m.selectionEnd=Math.min(A,m.value.length);else{var M=m.ownerDocument||document,U=M&&M.defaultView||window;if(U.getSelection){var Y=U.getSelection(),me=m.textContent.length,xe=Math.min(b.start,me),wt=b.end===void 0?xe:Math.min(b.end,me);!Y.extend&&xe>wt&&(d=wt,wt=xe,xe=d);var it=Ub(m,xe),C=Ub(m,wt);if(it&&C&&(Y.rangeCount!==1||Y.anchorNode!==it.node||Y.anchorOffset!==it.offset||Y.focusNode!==C.node||Y.focusOffset!==C.offset)){var T=M.createRange();T.setStart(it.node,it.offset),Y.removeAllRanges(),xe>wt?(Y.addRange(T),Y.extend(C.node,C.offset)):(T.setEnd(C.node,C.offset),Y.addRange(T))}}}}for(M=[],Y=m;Y=Y.parentNode;)Y.nodeType===1&&M.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<M.length;m++){var O=M[m];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}xf=!!gg,bg=gg=null}finally{dt=i,gt.p=r,X.T=n}}e.current=t,ta=WN}}function Iv(){if(ta===WN){ta=tr;var e=s1;if(e!==null){Io=Jt();var t=ro,a=Io;!_t||a<=t||console.timeStamp(e,t,a,lt,rt,"secondary-light")}e=ar,t=Pi,a=es;var n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=X.T,X.T=null;var r=gt.p;gt.p=wn;var i=dt;dt|=pn;try{Qi=a,Zi=e,Cu(),gv(e,t.alternate,t),Zi=Qi=null}finally{dt=i,gt.p=r,X.T=n}}e=og,t=n1,ro=Jt(),e=t===null?e:Io,t=ro,a=ts===ag,n=$t,io!==null?Vb(e,t,io,!1,n):!_t||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=e1}}function Xv(){if(ta===t1||ta===e1){if(ta===t1){var e=ro;ro=Jt();var t=ro,a=ts===ag;!_t||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,lt,rt,a?" error":"secondary-light"),ts!==ag&&(ts=PN)}ta=tr,P4(),e=ar;var n=Pi;t=es,a=a1;var r=n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;r?ta=sf:(ta=tr,Pi=ar=null,Fv(e,e.pendingLanes),Ir=0,kc=null);var i=e.pendingLanes;if(i===0&&(er=null),r||Kv(e),i=Ys(t),n=n.stateNode,wa&&typeof wa.onCommitFiberRoot=="function")try{var d=(n.current.flags&128)===128;switch(i){case wn:var m=rh;break;case Us:m=ih;break;case to:m=Si;break;case Sd:m=lh;break;default:m=Si}wa.onCommitFiberRoot(wi,n,m,d)}catch(M){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",M))}if(_s&&e.memoizedUpdaters.clear(),QE(),a!==null){d=X.T,m=gt.p,gt.p=wn,X.T=null;try{var b=e.onRecoverableError;for(n=0;n<a.length;n++){var N=a[n],A=WE(N.stack);ve(N.source,b,N.value,A)}}finally{X.T=d,gt.p=m}}(es&3)!==0&&Al(),Ss(e),i=e.pendingLanes,(t&261930)!==0&&(i&42)!==0?(Bd=!0,e===ig?Uc++:(Uc=0,ig=e)):Uc=0,r||Cr(t,ro),Vl(0)}}function WE(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,yl(t)))}function Al(){return Gv(),Iv(),Xv(),Qv()}function Qv(){if(ta!==sf)return!1;var e=ar,t=sg;sg=0;var a=Ys(es),n=to>a?to:a;a=X.T;var r=gt.p;try{gt.p=n,X.T=null;var i=rg;rg=null,n=ar;var d=es;if(ta=tr,Pi=ar=null,es=0,(dt&(sa|pn))!==fa)throw Error("Cannot flush passive effects while already rendering.");Xn(d),lg=!0,of=!1;var m=0;if(io=null,m=ca(),ts===PN)am(ro,m,cR);else{var b=ro,N=m,A=ts===ng;!_t||N<=b||($t?$t.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=dt,dt|=pn;var M=n.current;Cu(),Uv(M);var U=n.current;M=og,Cu(),Dv(n,U,d,i,M),Kv(n),dt=b;var Y=ca();if(U=m,M=$t,io!==null?Vb(U,Y,io,!0,M):!_t||Y<=U||(M?M.run(console.timeStamp.bind(console,"Remaining Effects",U,Y,lt,rt,"secondary-dark")):console.timeStamp("Remaining Effects",U,Y,lt,rt,"secondary-dark")),Cr(d,Y),Vl(0,!1),of?n===kc?Ir++:(Ir=0,kc=n):Ir=0,of=lg=!1,wa&&typeof wa.onPostCommitFiberRoot=="function")try{wa.onPostCommitFiberRoot(wi,n)}catch(xe){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",xe))}var me=n.current.stateNode;return me.effectDuration=0,me.passiveEffectDuration=0,!0}finally{gt.p=r,X.T=a,Fv(e,t)}}function Zv(e,t,a){t=an(a,t),Pb(t),t=Wm(e.stateNode,t,2),e=Uo(e,t,2),e!==null&&(vn(e,2),Ss(e))}function ht(e,t,a){if(Ki=!1,e.tag===3)Zv(e,e,a);else{for(;t!==null;){if(t.tag===3){Zv(t,e,a);return}if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(er===null||!er.has(n))){e=an(a,e),Pb(e),a=ep(2),n=Uo(t,a,2),n!==null&&(tp(a,n,t,e),vn(n,2),Ss(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 yR;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=e4.bind(null,e,t,a),_s&&Ml(e,a),t.then(n,n))}function e4(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Os&&(Or=Os=Jt(),oc=Ad("Promise Resolved"),Xo=Md):(a&4194048)!==0&&0>kn&&(lo=kn=Jt(),ic=Ad("Promise Resolved"),Mh=Md),Ov()&&X.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===Jo||At===Jd&&(Qe&62914560)===Qe&&ca()-tf<ZN?(dt&sa)===fa&&hi(e,0):tg|=a,Gr===Qe&&(Gr=0)),Ss(e)}function Jv(e,t){t===0&&(t=en()),e=Sa(e,t),e!==null&&(vn(e,t),Ss(e))}function t4(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Jv(e,a)}function a4(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),Jv(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&&ve(r,Pv,n,r):wp(n,r,i):r.memoizedState===null&&(i&&r.flags&8192?ve(r,Pv,n,r):r.subtreeFlags&67108864&&ve(r,wp,n,r,i)),t=t.sibling}}function Pv(e,t){te(!0);try{wv(t),kv(t),Ev(e,t.alternate,t,!1),Rv(e,t,0,null,!1,0)}finally{te(!1)}}function Kv(e){var t=!0;e.current.mode&(Ea|Jn)||(t=!1),wp(e,e.current,t)}function Wv(e){if((dt&sa)===fa){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]);ve(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Ml(e,t){_s&&e.memoizedUpdaters.forEach(function(a){$s(e,a,t)})}function n4(e,t){var a=X.actQueue;return a!==null?(a.push(t),NR):oh(e,t)}function s4(e){Ov()&&X.actQueue===null&&ve(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 Ss(e){e!==Wi&&e.next===null&&(Wi===null?lf=Wi=e:Wi=Wi.next=e),cf=!0,X.actQueue!==null?ug||(ug=!0,n0()):cg||(cg=!0,n0())}function Vl(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,m=n.pingedLanes;i=(1<<31-Oa(42|e)+1)-1,i&=r&~(d&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,a0(n,i))}else i=Qe,i=$a(n,n===Nt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==Zr),(i&3)===0||yn(n,i)||(a=!0,a0(n,i));n=n.next}while(a);dg=!1}}function o4(){Ac=window.event,Ep()}function Ep(){cf=ug=cg=!1;var e=0;nr!==0&&f4()&&(e=nr);for(var t=ca(),a=null,n=lf;n!==null;){var r=n.next,i=e0(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!==tr&&ta!==sf||Vl(e),nr!==0&&(nr=0)}function e0(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var d=31-Oa(i),m=1<<d,b=r[d];b===-1?((m&a)===0||(m&n)!==0)&&(r[d]=Ya(m,t)):b<=t&&(e.expiredLanes|=m),i&=~m}if(t=Nt,a=Qe,a=$a(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Zr),n=e.callbackNode,a===0||e===t&&(yt===Yr||yt===qr)||e.cancelPendingCommit!==null)return n!==null&&Dp(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||yn(e,a)){if(t=a&-a,t!==e.callbackPriority||X.actQueue!==null&&n!==fg)Dp(n);else return t;switch(Ys(a)){case wn:case Us:a=ih;break;case to:a=Si;break;case Sd:a=lh;break;default:a=Si}return n=t0.bind(null,e),X.actQueue!==null?(X.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 t0(e,t){if(Bd=Hd=!1,Ac=window.event,ta!==tr&&ta!==sf)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ts===nf&&(ts=ng),Al()&&e.callbackNode!==a)return null;var n=Qe;return n=$a(e,e===Nt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Zr),n===0?null:(Av(e,n,t),e0(e,ca()),e.callbackNode!=null&&e.callbackNode===a?t0.bind(null,e):null)}function a0(e,t){if(Al())return null;Hd=Bd,Bd=!1,Av(e,t,!0)}function Dp(e){e!==fg&&e!==null&&Z4(e)}function n0(){X.actQueue!==null&&X.actQueue.push(function(){return Ep(),null}),TR(function(){(dt&(sa|pn))!==fa?oh(rh,o4):Ep()})}function Rp(){if(nr===0){var e=Mr;e===0&&(e=vd,vd<<=1,(vd&261888)===0&&(vd=256)),nr=e}return nr}function s0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(ft(e,"action"),pl(""+e))}function o0(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 r4(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var i=s0((r[ja]||null).action),d=n.submitter;d&&(t=(t=d[ja]||null)?s0(t.formAction):d.getAttribute("formAction"),t!==null&&(i=t,d=null));var m=new Cd("action","action",null,n,r);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(nr!==0){var b=d?o0(r,d):new FormData(r),N={pending:!0,data:b,method:r.method,action:i};Object.freeze(N),Xm(a,N,null,b)}}else typeof i=="function"&&(m.preventDefault(),b=d?o0(r,d):new FormData(r),N={pending:!0,data:b,method:r.method,action:i},Object.freeze(N),Xm(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 r0(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 m=n[d],b=m.instance,N=m.currentTarget;if(m=m.listener,b!==r&&i.isPropagationStopped())break e;b!==null?ve(b,od,i,m,N):od(i,m,N),r=b}else for(d=0;d<n.length;d++){if(m=n[d],b=m.instance,N=m.currentTarget,m=m.listener,b!==r&&i.isPropagationStopped())break e;b!==null?ve(b,od,i,m,N):od(i,m,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)||(i0(t,e,2,!1),a.add(n))}function Cp(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),i0(a,e,n,t)}function _p(e){if(!e[uf]){e[uf]=!0,nx.forEach(function(a){a!=="selectionchange"&&(mg.has(a)||Cp(a,!1,e),Cp(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[uf]||(t[uf]=!0,Cp("selectionchange",!1,t))}}function i0(e,t,a,n){switch(B0(t)){case wn:var r=B4;break;case Us:r=$4;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 m=n.stateNode.containerInfo;if(m===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(;m!==null;){if(d=oe(m),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){n=i=d;continue e}m=m.parentNode}}n=n.return}yb(function(){var N=i,A=Jf(a),M=[];e:{var U=Bx.get(e);if(U!==void 0){var Y=Cd,me=e;switch(e){case"keypress":if(mu(a)===0)break e;case"keydown":case"keyup":Y=VD;break;case"focusin":me="focus",Y=yh;break;case"focusout":me="blur",Y=yh;break;case"beforeblur":case"afterblur":Y=yh;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Rx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=ED;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=HD;break;case Vx:case zx:case Lx:Y=CD;break;case Hx:Y=$D;break;case"scroll":case"scrollend":Y=SD;break;case"wheel":Y=qD;break;case"copy":case"cut":case"paste":Y=UD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=_x;break;case"toggle":case"beforetoggle":Y=ID}var xe=(t&4)!==0,wt=!xe&&(e==="scroll"||e==="scrollend"),it=xe?U!==null?U+"Capture":null:U;xe=[];for(var C=N,T;C!==null;){var O=C;if(T=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||T===null||it===null||(O=hl(C,it),O!=null&&xe.push(zl(C,O,T))),wt)break;C=C.return}0<xe.length&&(U=new Y(U,me,null,a,A),M.push({event:U,listeners:xe}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",U&&a!==Ql&&(me=a.relatedTarget||a.fromElement)&&(oe(me)||me[Ho]))break e;if((Y||U)&&(U=A.window===A?A:(U=A.ownerDocument)?U.defaultView||U.parentWindow:window,Y?(me=a.relatedTarget||a.toElement,Y=N,me=me?oe(me):null,me!==null&&(wt=Q(me),xe=me.tag,me!==wt||xe!==5&&xe!==27&&xe!==6)&&(me=null)):(Y=null,me=N),Y!==me)){if(xe=Rx,O="onMouseLeave",it="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(xe=_x,O="onPointerLeave",it="onPointerEnter",C="pointer"),wt=Y==null?U:Ee(Y),T=me==null?U:Ee(me),U=new xe(O,C+"leave",Y,a,A),U.target=wt,U.relatedTarget=T,O=null,oe(A)===N&&(xe=new xe(it,C+"enter",me,a,A),xe.target=T,xe.relatedTarget=wt,O=xe),wt=O,Y&&me)t:{for(xe=i4,it=Y,C=me,T=0,O=it;O;O=xe(O))T++;O=0;for(var J=C;J;J=xe(J))O++;for(;0<T-O;)it=xe(it),T--;for(;0<O-T;)C=xe(C),O--;for(;T--;){if(it===C||C!==null&&it===C.alternate){xe=it;break t}it=xe(it),C=xe(C)}xe=null}else xe=null;Y!==null&&l0(M,U,Y,xe,!1),me!==null&&wt!==null&&l0(M,wt,me,xe,!0)}}e:{if(U=N?Ee(N):window,Y=U.nodeName&&U.nodeName.toLowerCase(),Y==="select"||Y==="input"&&U.type==="file")var ge=Db;else if(wb(U))if(Ax)ge=vE;else{ge=bE;var $e=gE}else Y=U.nodeName,!Y||Y.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?N&&ml(N.elementType)&&(ge=Db):ge=yE;if(ge&&(ge=ge(e,N))){Eb(M,ge,a,A);break e}$e&&$e(e,U,N),e==="focusout"&&N&&U.type==="number"&&N.memoizedProps.value!=null&&Ae(U,"number",U.value)}switch($e=N?Ee(N):window,e){case"focusin":(wb($e)||$e.contentEditable==="true")&&(ki=$e,xh=N,tc=null);break;case"focusout":tc=xh=ki=null;break;case"mousedown":Nh=!0;break;case"contextmenu":case"mouseup":case"dragend":Nh=!1,Ob(M,a,A);break;case"selectionchange":if(ZD)break;case"keydown":case"keyup":Ob(M,a,A)}var Te;if(vh)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else Ui?Nb(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===Ux&&(Re="onCompositionStart");Re&&(kx&&a.locale!=="ko"&&(Ui||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&Ui&&(Te=vb()):(Bo=A,hh="value"in Bo?Bo.value:Bo.textContent,Ui=!0)),$e=rd(N,Re),0<$e.length&&(Re=new Cx(Re,e,null,a,A),M.push({event:Re,listeners:$e}),Te?Re.data=Te:(Te=Sb(a),Te!==null&&(Re.data=Te)))),(Te=FD?fE(e,a):mE(e,a))&&(Re=rd(N,"onBeforeInput"),0<Re.length&&($e=new TD("onBeforeInput","beforeinput",null,a,A),M.push({event:$e,listeners:Re}),$e.data=Te)),r4(M,e,N,a,A)}r0(M,t)})}function zl(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=hl(e,a),r!=null&&n.unshift(zl(e,r,i)),r=hl(e,t),r!=null&&n.push(zl(e,r,i))),e.tag===3)return n;e=e.return}return[]}function i4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function l0(e,t,a,n,r){for(var i=t._reactName,d=[];a!==null&&a!==n;){var m=a,b=m.alternate,N=m.stateNode;if(m=m.tag,b!==null&&b===n)break;m!==5&&m!==26&&m!==27||N===null||(b=N,r?(N=hl(a,i),N!=null&&d.unshift(zl(a,N,b))):r||(N=hl(a,i),N!=null&&d.push(zl(a,N,b)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}function kp(e,t){lE(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||Ex||(Ex=!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:_r,possibleRegistrationNames:uh};ml(e)||typeof t.is=="string"||uE(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function la(e,t,a,n){t!==a&&(a=Ao(a),Ao(t)!==a&&(n[e]=t))}function l4(e,t,a){t.forEach(function(n){a[d0(n)]=n==="style"?Op(e):e.getAttribute(n)})}function ws(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 c0(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 Ao(e){return va(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(SR,`
|
|
181
|
+
`).replace(wR,"")}function u0(e,t){return t=Ao(t),Ao(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===""||fl(e,n)):(typeof n=="number"||typeof n=="bigint")&&(fu(""+n,t,!1),t!=="body"&&fl(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":hb(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}ft(n,a),n=pl(""+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||c1||(c1=!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}ft(n,a),n=pl(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(typeof n!="function"&&ws(a,n),e.onclick=Xs);break;case"onScroll":n!=null&&(typeof n!="function"&&ws(a,n),ot("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&ws(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}ft(n,a),a=pl(""+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"?(ft(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"?(ft(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?(ft(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):(ft(n,a),e.setAttribute(a,n));break;case"popover":ot("beforetoggle",e),ot("toggle",e),Gs(e,"popover",n);break;case"xlinkActuate":Yn(e,Xr,"xlink:actuate",n);break;case"xlinkArcrole":Yn(e,Xr,"xlink:arcrole",n);break;case"xlinkRole":Yn(e,Xr,"xlink:role",n);break;case"xlinkShow":Yn(e,Xr,"xlink:show",n);break;case"xlinkTitle":Yn(e,Xr,"xlink:title",n);break;case"xlinkType":Yn(e,Xr,"xlink:type",n);break;case"xmlBase":Yn(e,pg,"xml:base",n);break;case"xmlLang":Yn(e,pg,"xml:lang",n);break;case"xmlSpace":Yn(e,pg,"xml:space",n);break;case"is":i!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Gs(e,"is",n);break;case"innerText":case"textContent":break;case"popoverTarget":u1||n==null||typeof n!="object"||(u1=!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=gb(a),Gs(e,a,n)):_r.hasOwnProperty(a)&&n!=null&&typeof n!="function"&&ws(a,n)}}function Tp(e,t,a,n,r,i){switch(a){case"style":hb(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"?fl(e,n):(typeof n=="number"||typeof n=="bigint")&&fl(e,""+n);break;case"onScroll":n!=null&&(typeof n!="function"&&ws(a,n),ot("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&ws(a,n),ot("scrollend",e));break;case"onClick":n!=null&&(typeof n!="function"&&ws(a,n),e.onclick=Xs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(_r.hasOwnProperty(a))n!=null&&typeof n!="function"&&ws(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[ja]||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 ha(e,t,a){switch(kp(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":oa("input",a),ot("invalid",e);var m=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":m=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)}}ke(e,a),Me(e,i,m,b,N,d,r,!1);return;case"select":oa("select",a),ot("invalid",e),n=d=i=null;for(r in a)if(a.hasOwnProperty(r)&&(m=a[r],m!=null))switch(r){case"value":i=m;break;case"defaultValue":d=m;break;case"multiple":n=m;default:vt(e,t,r,m,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":oa("textarea",a),ot("invalid",e),i=r=n=null;for(d in a)if(a.hasOwnProperty(d)&&(m=a[d],m!=null))switch(d){case"value":n=m;break;case"defaultValue":r=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:vt(e,t,d,m,a,null)}qt(e,a),pt(e,n,r,i);return;case"option":Ue(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<Tc.length;n++)ot(Tc[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(ml(t)){for(A in a)a.hasOwnProperty(A)&&(n=a[A],n!==void 0&&Tp(e,t,A,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&vt(e,t,m,n,a,null))}function c4(e,t,a,n){switch(kp(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,m=null,b=null,N=null,A=null;for(Y in a){var M=a[Y];if(a.hasOwnProperty(Y)&&M!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":b=M;default:n.hasOwnProperty(Y)||vt(e,t,Y,null,n,M)}}for(var U in n){var Y=n[U];if(M=a[U],n.hasOwnProperty(U)&&(Y!=null||M!=null))switch(U){case"type":i=Y;break;case"name":r=Y;break;case"checked":N=Y;break;case"defaultChecked":A=Y;break;case"value":d=Y;break;case"defaultValue":m=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Y!==M&&vt(e,t,U,Y,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||l1||(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"),l1=!0),!t||n||i1||(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"),i1=!0),De(e,d,m,b,N,A,i,r);return;case"select":Y=d=m=U=null;for(i in a)if(b=a[i],a.hasOwnProperty(i)&&b!=null)switch(i){case"value":break;case"multiple":Y=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":U=i;break;case"defaultValue":m=i;break;case"multiple":d=i;default:i!==b&&vt(e,t,r,i,n,b)}n=m,t=d,a=Y,U!=null?We(e,!!t,U,!1):!!a!=!!t&&(n!=null?We(e,!!t,n,!0):We(e,!!t,t?[]:"",!1));return;case"textarea":Y=U=null;for(m in a)if(r=a[m],a.hasOwnProperty(m)&&r!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:vt(e,t,m,null,n,r)}for(d in n)if(r=n[d],i=a[d],n.hasOwnProperty(d)&&(r!=null||i!=null))switch(d){case"value":U=r;break;case"defaultValue":Y=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==i&&vt(e,t,d,r,n,i)}ra(e,U,Y);return;case"option":for(var me in a)U=a[me],a.hasOwnProperty(me)&&U!=null&&!n.hasOwnProperty(me)&&(me==="selected"?e.selected=!1:vt(e,t,me,null,n,U));for(b in n)U=n[b],Y=a[b],n.hasOwnProperty(b)&&U!==Y&&(U!=null||Y!=null)&&(b==="selected"?e.selected=U&&typeof U!="function"&&typeof U!="symbol":vt(e,t,b,U,n,Y));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in a)U=a[xe],a.hasOwnProperty(xe)&&U!=null&&!n.hasOwnProperty(xe)&&vt(e,t,xe,null,n,U);for(N in n)if(U=n[N],Y=a[N],n.hasOwnProperty(N)&&U!==Y&&(U!=null||Y!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:vt(e,t,N,U,n,Y)}return;default:if(ml(t)){for(var wt in a)U=a[wt],a.hasOwnProperty(wt)&&U!==void 0&&!n.hasOwnProperty(wt)&&Tp(e,t,wt,void 0,n,U);for(A in n)U=n[A],Y=a[A],!n.hasOwnProperty(A)||U===Y||U===void 0&&Y===void 0||Tp(e,t,A,U,n,Y);return}}for(var it in a)U=a[it],a.hasOwnProperty(it)&&U!=null&&!n.hasOwnProperty(it)&&vt(e,t,it,null,n,U);for(M in n)U=n[M],Y=a[M],!n.hasOwnProperty(M)||U===Y||U==null&&Y==null||vt(e,t,M,U,n,Y)}function d0(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Op(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 f0(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||Sx.has(i)?(Dt(d,i),n+=r+i.replace(bx,"-$1").toLowerCase().replace(yx,"-ms-")+":"+(""+d).trim()):n+=r+i.replace(bx,"-$1").toLowerCase().replace(yx,"-ms-")+":"+d+"px",r=";")}n=n||null,t=e.getAttribute("style"),t!==n&&(n=Ao(n),Ao(t)!==n&&(a.style=Op(e)))}}function Sn(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(ft(n,t),e===""+n)return}la(t,e,n,i)}function m0(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof n){case"function":case"symbol":return}if(!n)return}else switch(typeof n){case"function":case"symbol":break;default:if(n)return}la(t,e,n,i)}function jp(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(ft(n,a),e===""+n)return}la(t,e,n,i)}function p0(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)&&(ft(n,t),e===""+n))return}la(t,e,n,i)}function Ap(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(ft(n,t),a=pl(""+n),e===a)return}la(t,e,n,i)}function h0(e,t,a,n){for(var r={},i=new Set,d=e.attributes,m=0;m<d.length;m++)switch(d[m].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:i.add(d[m].name)}if(ml(t)){for(var b in a)if(a.hasOwnProperty(b)){var N=a[b];if(N!=null){if(_r.hasOwnProperty(b))typeof N!="function"&&ws(b,N);else if(a.suppressHydrationWarning!==!0)switch(b){case"children":typeof N!="string"&&typeof N!="number"||la("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=c0(e,N),la(b,d,N,r));continue;case"style":i.delete(b),f0(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),la("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),la(b,d,N,r)}}}}else for(N in a)if(a.hasOwnProperty(N)&&(b=a[N],b!=null)){if(_r.hasOwnProperty(N))typeof b!="function"&&ws(N,b);else if(a.suppressHydrationWarning!==!0)switch(N){case"children":typeof b!="string"&&typeof b!="number"||la("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=c0(e,b),d!==b&&(r[N]={__html:d}));continue;case"className":Sn(e,N,"class",b,i,r);continue;case"tabIndex":Sn(e,N,"tabindex",b,i,r);continue;case"style":i.delete(N),f0(e,b,r);continue;case"multiple":i.delete(N),la(N,e.multiple,b,r);continue;case"muted":i.delete(N),la(N,e.muted,b,r);continue;case"autoFocus":i.delete("autofocus"),la(N,e.autofocus,b,r);continue;case"data":if(t!=="object"){i.delete(N),d=e.getAttribute("data"),la(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===ER){i.delete(N.toLowerCase()),la(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":jp(e,N,"contenteditable",b,i,r);continue;case"spellCheck":jp(e,N,"spellcheck",b,i,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":jp(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":m0(e,N,N.toLowerCase(),b,i,r);continue;case"capture":case"download":e:{m=e;var A=d=N,M=r;if(i.delete(A),m=m.getAttribute(A),m===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&&m==="")break e;break;default:if(ft(b,d),m===""+b)break e}la(d,m,b,M)}continue;case"cols":case"rows":case"size":case"span":e:{if(m=e,A=d=N,M=r,i.delete(A),m=m.getAttribute(A),m===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)&&(ft(b,d),m===""+b))break e}la(d,m,b,M)}continue;case"rowSpan":p0(e,N,"rowspan",b,i,r);continue;case"start":p0(e,N,N,b,i,r);continue;case"xHeight":Sn(e,N,"x-height",b,i,r);continue;case"xlinkActuate":Sn(e,N,"xlink:actuate",b,i,r);continue;case"xlinkArcrole":Sn(e,N,"xlink:arcrole",b,i,r);continue;case"xlinkRole":Sn(e,N,"xlink:role",b,i,r);continue;case"xlinkShow":Sn(e,N,"xlink:show",b,i,r);continue;case"xlinkTitle":Sn(e,N,"xlink:title",b,i,r);continue;case"xlinkType":Sn(e,N,"xlink:type",b,i,r);continue;case"xmlBase":Sn(e,N,"xml:base",b,i,r);continue;case"xmlLang":Sn(e,N,"xml:lang",b,i,r);continue;case"xmlSpace":Sn(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)),m0(e,N,N,b,i,r);continue;default:if(!(2<N.length)||N[0]!=="o"&&N[0]!=="O"||N[1]!=="n"&&N[1]!=="N"){m=gb(N),d=!1,n.context===go&&t!=="svg"&&t!=="math"?i.delete(m.toLowerCase()):(A=N.toLowerCase(),A=Dd.hasOwnProperty(A)&&Dd[A]||null,A!==null&&A!==N&&(d=!0,i.delete(A)),i.delete(m));e:if(A=e,M=m,m=b,Ua(M))if(A.hasAttribute(M))A=A.getAttribute(M),ft(m,M),m=A===""+m?m:A;else{switch(typeof m){case"function":case"symbol":break e;case"boolean":if(A=M.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}m=m===void 0?void 0:null}else m=void 0;d||la(N,m,b,r)}}}return 0<i.size&&a.suppressHydrationWarning!==!0&&l4(e,i,r),Object.keys(r).length===0?null:r}function u4(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 g0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d4(){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,m=r.duration;if(i&&m&&g0(d)){for(d=0,m=r.responseEnd,n+=1;n<a.length;n++){var b=a[n],N=b.startTime;if(N>m)break;var A=b.transferSize,M=b.initiatorType;A&&g0(M)&&(b=b.responseEnd,d+=A*(b<m?1:(m-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 b0(e){switch(e){case Di:return tl;case Ed:return gf;default:return go}}function y0(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 f4(){var e=window.event;return e&&e.type==="popstate"?e===yg?!1:(yg=e,!0):(yg=null,!1)}function Ll(){var e=window.event;return e&&e!==Ac?e.type:null}function Hl(){var e=window.event;return e&&e!==Ac?e.timeStamp:-1.1}function m4(e){setTimeout(function(){throw e})}function p4(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 h4(){}function g4(e,t,a,n){c4(e,t,a,n),e[ja]=n}function v0(e){fl(e,"")}function b4(e,t,a){e.nodeValue=a}function x0(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[ja]||null;if(t!==null){var a=ue(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,ve(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,ve(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 Mo(e){return e==="head"}function y4(e,t){e.removeChild(t)}function v4(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function N0(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===jc||a===hf){if(n===0){e.removeChild(r),vi(t);return}n--}else if(a===Oc||a===sr||a===Qr||a===el||a===Fr)n++;else if(a===RR)Bl(e.ownerDocument.documentElement);else if(a===_R){a=e.ownerDocument.head,Bl(a);for(var i=a.firstChild;i;){var d=i.nextSibling,m=i.nodeName;i[Fl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=d}}else a===CR&&Bl(e.ownerDocument.body);a=r}while(a);vi(t)}function S0(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===jc){if(e===0)break;e--}else a!==Oc&&a!==sr&&a!==Qr&&a!==el||e++;a=n}while(a)}function x4(e){S0(e,!0)}function N4(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function S4(e){e.nodeValue=""}function w4(e){S0(e,!1)}function E4(e,t){t=t[UR],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function D4(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 R4(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[Fl])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"){ft(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=ln(e.nextSibling),e===null)break}return null}function C4(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ln(e.nextSibling),e===null))return null;return e}function w0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ln(e.nextSibling),e===null))return null;return e}function zp(e){return e.data===sr||e.data===Qr}function Lp(e){return e.data===el||e.data===sr&&e.ownerDocument.readyState!==f1}function _4(e,t){var a=e.ownerDocument;if(e.data===Qr)e._reactRetry=t;else if(e.data!==sr||a.readyState!==f1)t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function ln(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===sr||t===Qr||t===Fr||t===hg||t===d1)break;if(t===jc||t===hf)return null}}return e}function E0(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[d0(i.name)]=i.name.toLowerCase()==="style"?Op(e):i.value}return{type:t,props:a}}return e.nodeType===8?e.data===Fr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function D0(e,t,a){return a===null||a[DR]!==!0?(e.nodeValue===t?e=null:(t=Ao(t),e=Ao(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===jc||a===hf){if(t===0)return ln(e.nextSibling);t--}else a!==Oc&&a!==el&&a!==sr&&a!==Qr&&a!==Fr||t++}e=e.nextSibling}return null}function R0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Oc||a===el||a===sr||a===Qr||a===Fr){if(t===0)return e;t--}else a!==jc&&a!==hf||t++}e=e.previousSibling}return null}function U4(e){vi(e)}function k4(e){vi(e)}function T4(e){vi(e)}function C0(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 O4(e,t,a,n){if(!a[Ho]&&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]);ha(a,e,t),a[ga]=n,a[ja]=t}function Bl(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=ye(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),y1.has(r)||(y1.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),ha(t,"link",e),Ce(t),n.head.appendChild(t)))}}function U0(e,t,a,n){var r=(r=zo.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=He(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=He(r).hoistableStyles,d=i.get(e);if(!d&&(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:Jr,preload:null}},i.set(e,d),(i=r.querySelector($l(e)))&&!i._p&&(d.instance=i,d.state.loading=Mc|An),!Mn.has(e))){var m={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Mn.set(e,m),i||j4(r,e,m,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=He(r).hoistableScripts,n=t.get(a),n||(n={type:"script",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function cd(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):Zn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):Zn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):Zn.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function bi(e){return'href="'+ye(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function k0(e){return Ke({},e,{"data-precedence":e.precedence,precedence:null})}function j4(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=Mc:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=Mc}),t.addEventListener("error",function(){return n.loading|=g1}),ha(t,"link",a),Ce(t),e.head.appendChild(t))}function yi(e){return'[src="'+ye(e)+'"]'}function Yl(e){return"script[async]"+e}function T0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+ye(a.href)+'"]');if(n)return t.instance=n,Ce(n),n;var r=Ke({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ce(n),ha(n,"style",r),ud(n,a.precedence,e),t.instance=n;case"stylesheet":r=bi(a.href);var i=e.querySelector($l(r));if(i)return t.state.loading|=An,t.instance=i,Ce(i),i;n=k0(a),(r=Mn.get(r))&&Bp(n,r),i=(e.ownerDocument||e).createElement("link"),Ce(i);var d=i;return d._p=new Promise(function(m,b){d.onload=m,d.onerror=b}),ha(i,"link",n),t.state.loading|=An,ud(i,a.precedence,e),t.instance=i;case"script":return i=yi(a.src),(r=e.querySelector(Yl(i)))?(t.instance=r,Ce(r),r):(n=a,(r=Mn.get(i))&&(n=Ke({},a),$p(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ce(r),ha(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&An)===Jr&&(n=t.instance,t.state.loading|=An,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 m=n[d];if(m.dataset.precedence===t)i=m;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 O0(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[Fl]||i[ga]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!==Di){var d=i.getAttribute(t)||"";d=e+d;var m=n.get(d);m?m.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 A4(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=u4(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 A0(e){return!(e.type==="stylesheet"&&(e.state.loading&b1)===Jr)}function M4(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&An)===Jr){if(a.instance===null){var r=bi(n.href),i=t.querySelector($l(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|=An,a.instance=i,Ce(i);return}i=t.ownerDocument||t,n=k0(n),(r=Mn.get(r))&&Bp(n,r),i=i.createElement("link"),Ce(i);var d=i;d._p=new Promise(function(m,b){d.onload=m,d.onerror=b}),ha(i,"link",n),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&b1)===Jr&&(e.count++,a=dd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function V4(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()}},OR+t);0<e.imgBytes&&xg===0&&(xg=125*d4()*AR);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:jR)+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(z4,e),yf=null,dd.call(e))}function z4(e,t){if(!(t.state.loading&An)){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|=An}}function L4(e,t,a,n,r,i,d,m,b){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Zr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ft(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ft(0),this.hiddenUpdates=Ft(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 M0(e,t,a,n,r,i,d,m,b,N,A,M){return e=new L4(e,t,a,d,b,N,A,M,m),t=sR,i===!0&&(t|=Ea|Jn),t|=Xe,i=S(3,null,null,t),e.current=i,i.stateNode=e,t=hm(),Nr(t),e.pooledCache=t,Nr(t),i.memoizedState={element:n,isDehydrated:a,cache:t},xm(i),e}function V0(e){return e?(e=qo,e):qo}function Yp(e,t,a,n,r,i){if(wa&&typeof wa.onScheduleFiberRoot=="function")try{wa.onScheduleFiberRoot(wi,n,a)}catch(d){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",d))}r=V0(r),n.context===null?n.context=r:n.pendingContext=r,Rs&&un!==null&&!S1&&(S1=!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.`,$(un)||"Unknown")),n=_o(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=Uo(e,n,t),a!==null&&(ds(t,"root.render()",null),Lt(a,e,t),Sl(a,e,t))}function z0(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){z0(e,t),(e=e.alternate)&&z0(e,t)}function L0(e){if(e.tag===13||e.tag===31){var t=Sa(e,67108864);t!==null&&Lt(t,e,67108864),qp(e,67108864)}}function H0(e){if(e.tag===13||e.tag===31){var t=rn(e);t=xn(t);var a=Sa(e,t);a!==null&&Lt(a,e,t),qp(e,t)}}function H4(){return un}function B4(e,t,a,n){var r=X.T;X.T=null;var i=gt.p;try{gt.p=wn,Gp(e,t,a,n)}finally{gt.p=i,X.T=r}}function $4(e,t,a,n){var r=X.T;X.T=null;var i=gt.p;try{gt.p=Us,Gp(e,t,a,n)}finally{gt.p=i,X.T=r}}function Gp(e,t,a,n){if(xf){var r=Ip(n);if(r===null)Up(e,t,n,Nf,a),$0(e,n);else if(Y4(r,e,t,a,n))n.stopPropagation();else if($0(e,n),t&4&&-1<VR.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=ut(i.pendingLanes);if(d!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;d;){var b=1<<31-Oa(d);m.entanglements[1]|=b,d&=~b}Ss(i),(dt&(sa|pn))===fa&&(af=ca()+JN,Vl(0))}}break;case 31:case 13:m=Sa(i,2),m!==null&&Lt(m,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),Xp(e)}function Xp(e){if(Nf=null,e=oe(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=ne(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 B0(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 wn;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Us;case"message":switch(K4()){case rh:return wn;case ih:return Us;case Si:case W4:return to;case lh:return Sd;default:return to}default:return to}}function $0(e,t){switch(e){case"focusin":case"focusout":or=null;break;case"dragenter":case"dragleave":rr=null;break;case"mouseover":case"mouseout":ir=null;break;case"pointerover":case"pointerout":zc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lc.delete(t.pointerId)}}function ql(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&&L0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Y4(e,t,a,n,r){switch(t){case"focusin":return or=ql(or,e,t,a,n,r),!0;case"dragenter":return rr=ql(rr,e,t,a,n,r),!0;case"mouseover":return ir=ql(ir,e,t,a,n,r),!0;case"pointerover":var i=r.pointerId;return zc.set(i,ql(zc.get(i)||null,e,t,a,n,r)),!0;case"gotpointercapture":return i=r.pointerId,Lc.set(i,ql(Lc.get(i)||null,e,t,a,n,r)),!0}return!1}function Y0(e){var t=oe(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(){H0(a)});return}}else if(t===31){if(t=ne(a),t!==null){e.blockedOn=t,w(e.priority,function(){H0(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;Ql!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ql=r,a.target.dispatchEvent(n),Ql===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."),Ql=null}else return t=ue(a),t!==null&&L0(t),e.blockedOn=a,!1;t.shift()}return!0}function q0(e,t,a){md(e)&&a.delete(t)}function q4(){Sg=!1,or!==null&&md(or)&&(or=null),rr!==null&&md(rr)&&(rr=null),ir!==null&&md(ir)&&(ir=null),zc.forEach(q0),Lc.forEach(q0)}function pd(e,t){e.blockedOn===t&&(e.blockedOn=null,Sg||(Sg=!0,Qt.unstable_scheduleCallback(Qt.unstable_NormalPriority,q4)))}function G0(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(Xp(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),Xm(i,a,n,r))}}))}function vi(e){function t(b){return pd(b,e)}or!==null&&pd(or,e),rr!==null&&pd(rr,e),ir!==null&&pd(ir,e),zc.forEach(t),Lc.forEach(t);for(var a=0;a<lr.length;a++){var n=lr[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<lr.length&&(a=lr[0],a.blockedOn===null);)Y0(a),a.blockedOn===null&&lr.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[ja]||null;if(typeof i=="function")d||G0(a);else if(d){var m=null;if(i&&i.hasAttribute("formAction")){if(r=i,d=i[ja]||null)m=d.formAction;else if(Xp(r)!==null)continue}else m=d.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),G0(a)}}}function I0(){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 Fp(e){this._internalRoot=e}function hd(e){this._internalRoot=e}function X0(e){e[Ho]&&(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=JC(),Qp=nu(),G4=KC(),Ke=Object.assign,I4=Symbol.for("react.element"),Es=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"),Ds=Symbol.for("react.context"),Gl=Symbol.for("react.forward_ref"),Pp=Symbol.for("react.suspense"),Kp=Symbol.for("react.suspense_list"),bd=Symbol.for("react.memo"),cn=Symbol.for("react.lazy"),Wp=Symbol.for("react.activity"),X4=Symbol.for("react.memo_cache_sentinel"),F0=Symbol.iterator,F4=Symbol.for("react.client.reference"),aa=Array.isArray,X=Qp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gt=G4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q4=Object.freeze({pending:!1,data:null,method:null,action:null}),eh=[],th=[],eo=-1,Vo=ae(null),Il=ae(null),zo=ae(null),yd=ae(null),Xl=0,Q0,Z0,J0,P0,K0,W0,ex;je.__reactDisabledLog=!0;var ah,tx,nh=!1,sh=new(typeof WeakMap=="function"?WeakMap:Map),un=null,Rs=!1,Zn=Object.prototype.hasOwnProperty,oh=Qt.unstable_scheduleCallback,Z4=Qt.unstable_cancelCallback,J4=Qt.unstable_shouldYield,P4=Qt.unstable_requestPaint,ca=Qt.unstable_now,K4=Qt.unstable_getCurrentPriorityLevel,rh=Qt.unstable_ImmediatePriority,ih=Qt.unstable_UserBlockingPriority,Si=Qt.unstable_NormalPriority,W4=Qt.unstable_LowPriority,lh=Qt.unstable_IdlePriority,eD=Qt.log,tD=Qt.unstable_setDisableYieldValue,wi=null,wa=null,Cs=!1,_s=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Oa=Math.clz32?Math.clz32:Ze,aD=Math.log,nD=Math.LN2,vd=256,xd=262144,Nd=4194304,wn=2,Us=8,to=32,Sd=268435456,Lo=Math.random().toString(36).slice(2),ga="__reactFiber$"+Lo,ja="__reactProps$"+Lo,Ho="__reactContainer$"+Lo,ch="__reactEvents$"+Lo,sD="__reactListeners$"+Lo,oD="__reactHandles$"+Lo,ax="__reactResources$"+Lo,Fl="__reactMarker$"+Lo,nx=new Set,_r={},uh={},rD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},iD=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]*$"),sx={},ox={},lD=/[\n"\\]/g,rx=!1,ix=!1,lx=!1,cx=!1,ux=!1,dx=!1,fx=["value","defaultValue"],mx=!1,px=/["'&<>\n\t]|^\s|\s$/,cD="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(" "),hx="applet caption html table td th marquee object template foreignObject desc title".split(" "),uD=hx.concat(["button"]),dD="dd dt li option optgroup p rp rt".split(" "),gx={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"]},bx=/([A-Z])/g,yx=/^ms-/,fD=/^(?:webkit|moz|o)[A-Z]/,mD=/^-ms-/,pD=/-(.)/g,vx=/;\s*$/,Ei={},fh={},xx=!1,Nx=!1,Sx=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",hD=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"},wx={"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={},gD=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]*$"),bD=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]*$"),Ex=!1,Aa={},Dx=/^on./,yD=/^on[^A-Z]/,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]*$"),ND=/^[\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,Ql=null,Ci=null,_i=null,mh=!1,ks=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ph=!1;if(ks)try{var Zl={};Object.defineProperty(Zl,"passive",{get:function(){ph=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{ph=!1}var Bo=null,hh=null,Rd=null,Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cd=Ga(Ur),Jl=Ke({},Ur,{view:0,detail:0}),SD=Ga(Jl),gh,bh,Pl,_d=Ke({},Jl,{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!==Pl&&(Pl&&e.type==="mousemove"?(gh=e.screenX-Pl.screenX,bh=e.screenY-Pl.screenY):bh=gh=0,Pl=e),gh)},movementY:function(e){return"movementY"in e?e.movementY:bh}}),Rx=Ga(_d),wD=Ke({},_d,{dataTransfer:0}),ED=Ga(wD),DD=Ke({},Jl,{relatedTarget:0}),yh=Ga(DD),RD=Ke({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),CD=Ga(RD),_D=Ke({},Ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),UD=Ga(_D),kD=Ke({},Ur,{data:0}),Cx=Ga(kD),TD=Cx,OD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jD={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"},AD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},MD=Ke({},Jl,{key:function(e){if(e.key){var t=OD[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"?jD[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}}),VD=Ga(MD),zD=Ke({},_d,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_x=Ga(zD),LD=Ke({},Jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pf}),HD=Ga(LD),BD=Ke({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),$D=Ga(BD),YD=Ke({},_d,{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}),qD=Ga(YD),GD=Ke({},Ur,{newState:0,oldState:0}),ID=Ga(GD),XD=[9,13,27,32],Ux=229,vh=ks&&"CompositionEvent"in window,Kl=null;ks&&"documentMode"in document&&(Kl=document.documentMode);var FD=ks&&"TextEvent"in window&&!Kl,kx=ks&&(!vh||Kl&&8<Kl&&11>=Kl),Tx=32,Ox=String.fromCharCode(Tx),jx=!1,Ui=!1,QD={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},Wl=null,ec=null,Ax=!1;ks&&(Ax=pE("input")&&(!document.documentMode||9<document.documentMode));var Ma=typeof Object.is=="function"?Object.is:xE,ZD=ks&&"documentMode"in document&&11>=document.documentMode,ki=null,xh=null,tc=null,Nh=!1,Ti={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},Sh={},Mx={};ks&&(Mx=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);var Vx=hr("animationend"),zx=hr("animationiteration"),Lx=hr("animationstart"),JD=hr("transitionrun"),PD=hr("transitionstart"),KD=hr("transitioncancel"),Hx=hr("transitionend"),Bx=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 $x=0;if(typeof performance=="object"&&typeof performance.now=="function")var WD=performance,Yx=function(){return WD.now()};else{var eR=Date;Yx=function(){return eR.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)},tR="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,Ch=3,kd="– ",Td="+ ",qx=" ",_t=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",En="Components ⚛",rt="Scheduler ⚛",lt="Blocking",$o=!1,ao={color:"primary",properties:null,tooltipText:"",track:En},Yo={start:-0,end:-0,detail:{devtools:ao}},aR=["Changed Props",""],Gx="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",nR=["Changed Props",Gx],ac=1,no=2,Dn=[],Oi=0,_h=0,qo={};Object.freeze(qo);var Rn=null,ji=null,ze=0,sR=1,Xe=2,Ea=8,Jn=16,oR=32,Ix=!1;try{var Xx=Object.preventExtensions({})}catch{Ix=!0}var Uh=new WeakMap,Ai=[],Mi=0,Od=null,nc=0,Cn=[],_n=0,kr=null,so=1,oo="",ba=null,Ut=null,nt=!1,Ts=!1,dn=null,Go=null,Un=!1,kh=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=ae(null),Oh=ae(null),Fx={},jd=null,Vi=null,zi=!1,rR=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()})}},iR=Qt.unstable_scheduleCallback,lR=Qt.unstable_NormalPriority,Zt={$$typeof:Ds,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},sc=1,Md=2,ua=-0,Io=-0,ro=-0,io=null,Va=-1.1,Tr=-0,jt=-0,Oe=-1.1,Ve=-1.1,Ot=null,Ht=!1,Or=-0,Os=-1.1,oc=null,Xo=0,jh=null,Ah=null,jr=-1.1,rc=null,Li=-1.1,Vd=-1.1,lo=-0,co=-1.1,kn=-1.1,Mh=0,ic=null,Qx=null,Zx=null,Fo=-1.1,Ar=null,Qo=-1.1,zd=-1.1,Jx=-0,Px=-0,Ld=0,cR=null,Kx=0,lc=-1.1,Hd=!1,Bd=!1,cc=null,Vh=0,Mr=0,Hi=null,Wx=X.S;X.S=function(e,t){if(QN=ca(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>co&&0>kn){co=Jt();var a=Hl(),n=Ll();(a!==Qo||n!==Ar)&&(Qo=-1.1),Fo=a,Ar=n}CE(e,t)}Wx!==null&&Wx(e,t)};var Vr=ae(null),Pn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},uc=[],dc=[],fc=[],mc=[],pc=[],hc=[],zr=new Set;Pn.recordUnsafeLifecycleWarnings=function(e,t){zr.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&uc.push(e),e.mode&Ea&&typeof t.UNSAFE_componentWillMount=="function"&&dc.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&fc.push(e),e.mode&Ea&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&mc.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&pc.push(e),e.mode&Ea&&typeof t.UNSAFE_componentWillUpdate=="function"&&hc.push(e))},Pn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<uc.length&&(uc.forEach(function(m){e.add($(m)||"Component"),zr.add(m.type)}),uc=[]);var t=new Set;0<dc.length&&(dc.forEach(function(m){t.add($(m)||"Component"),zr.add(m.type)}),dc=[]);var a=new Set;0<fc.length&&(fc.forEach(function(m){a.add($(m)||"Component"),zr.add(m.type)}),fc=[]);var n=new Set;0<mc.length&&(mc.forEach(function(m){n.add($(m)||"Component"),zr.add(m.type)}),mc=[]);var r=new Set;0<pc.length&&(pc.forEach(function(m){r.add($(m)||"Component"),zr.add(m.type)}),pc=[]);var i=new Set;if(0<hc.length&&(hc.forEach(function(m){i.add($(m)||"Component"),zr.add(m.type)}),hc=[]),0<t.size){var d=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
190
|
+
|
|
191
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
192
|
+
|
|
193
|
+
Please update the following components: %s`,d)}0<n.size&&(d=x(n),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
|
+
|
|
195
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
197
|
+
|
|
198
|
+
Please update the following components: %s`,d)),0<i.size&&(d=x(i),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
199
|
+
|
|
200
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
201
|
+
|
|
202
|
+
Please update the following components: %s`,d)),0<e.size&&(d=x(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
|
+
|
|
204
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
205
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
206
|
+
|
|
207
|
+
Please update the following components: %s`,d)),0<a.size&&(d=x(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
208
|
+
|
|
209
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
210
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
211
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
|
+
|
|
213
|
+
Please update the following components: %s`,d)),0<r.size&&(d=x(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
214
|
+
|
|
215
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
216
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
217
|
+
|
|
218
|
+
Please update the following components: %s`,d))};var $d=new Map,eN=new Set;Pn.recordLegacyContextWarning=function(e,t){for(var a=null,n=e;n!==null;)n.mode&Ea&&(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."):!eN.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))},Pn.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"),eN.add(r.type)});var n=x(a);ve(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)})}})},Pn.discardPendingWarnings=function(){uc=[],dc=[],fc=[],mc=[],pc=[],hc=[],$d=new Map};var tN={react_stack_bottom_frame:function(e,t,a){var n=Rs;Rs=!0;try{return e(t,a)}finally{Rs=n}}},zh=tN.react_stack_bottom_frame.bind(tN),aN={react_stack_bottom_frame:function(e){var t=Rs;Rs=!0;try{return e.render()}finally{Rs=t}}},nN=aN.react_stack_bottom_frame.bind(aN),sN={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){ht(e,e.return,a)}}},Lh=sN.react_stack_bottom_frame.bind(sN),oN={react_stack_bottom_frame:function(e,t,a,n,r){try{t.componentDidUpdate(a,n,r)}catch(i){ht(e,e.return,i)}}},rN=oN.react_stack_bottom_frame.bind(oN),iN={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},uR=iN.react_stack_bottom_frame.bind(iN),lN={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(n){ht(e,t,n)}}},cN=lN.react_stack_bottom_frame.bind(lN),uN={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},dR=uN.react_stack_bottom_frame.bind(uN),dN={react_stack_bottom_frame:function(e,t,a){try{a()}catch(n){ht(e,t,n)}}},fR=dN.react_stack_bottom_frame.bind(dN),fN={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},mR=fN.react_stack_bottom_frame.bind(fN),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.')}},Lr=null,gc=!1,$i=null,bc=0,Fe=null,Bh,mN=Bh=!1,pN={},hN={},gN={};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(!pN[r]){pN[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+".")),ve(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 Hr=ly(!0),bN=ly(!1),yN=0,vN=1,xN=2,$h=3,Zo=!1,NN=!1,Yh=null,qh=!1,Yi=ae(null),Gd=ae(0),fn=ae(null),Tn=null,qi=1,yc=2,It=ae(0),Id=0,On=1,za=2,mn=4,La=8,Gi,SN=new Set,wN=new Set,Gh=new Set,EN=new Set,uo=0,Be=null,xt=null,Pt=null,Xd=!1,Ii=!1,Br=!1,Fd=0,vc=0,fo=null,pR=0,hR=25,G=null,jn=null,mo=-1,xc=!1,Nc={readContext:Tt,use:Oo,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Nc.useEffectEvent=Bt;var Ih=null,DN=null,Xh=null,RN=null,js=null,Kn=null,Qd=null;Ih={readContext:function(e){return Tt(e)},use:Oo,useCallback:function(e,t){return G="useCallback",Pe(),ii(t),Ym(e,t)},useContext:function(e){return G="useContext",Pe(),Tt(e)},useEffect:function(e,t){return G="useEffect",Pe(),ii(t),$u(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",Pe(),ii(a),$m(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",Pe(),ii(t),wr(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",Pe(),ii(t),Bm(e,t)},useMemo:function(e,t){G="useMemo",Pe(),ii(t);var a=X.H;X.H=js;try{return qm(e,t)}finally{X.H=a}},useReducer:function(e,t,a){G="useReducer",Pe();var n=X.H;X.H=js;try{return Tm(e,t,a)}finally{X.H=n}},useRef:function(e){return G="useRef",Pe(),Lm(e)},useState:function(e){G="useState",Pe();var t=X.H;X.H=js;try{return Mm(e)}finally{X.H=t}},useDebugValue:function(){G="useDebugValue",Pe()},useDeferredValue:function(e,t){return G="useDeferredValue",Pe(),Gm(e,t)},useTransition:function(){return G="useTransition",Pe(),Fm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",Pe(),jm(e,t,a)},useId:function(){return G="useId",Pe(),Qm()},useFormState:function(e,t){return G="useFormState",Pe(),Vu(),ci(e,t)},useActionState:function(e,t){return G="useActionState",Pe(),ci(e,t)},useOptimistic:function(e){return G="useOptimistic",Pe(),Vm(e)},useHostTransitionStatus:Er,useMemoCache:Sr,useCacheRefresh:function(){return G="useCacheRefresh",Pe(),Zm()},useEffectEvent:function(e){return G="useEffectEvent",Pe(),Hm(e)}},DN={readContext:function(e){return Tt(e)},use:Oo,useCallback:function(e,t){return G="useCallback",re(),Ym(e,t)},useContext:function(e){return G="useContext",re(),Tt(e)},useEffect:function(e,t){return G="useEffect",re(),$u(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",re(),$m(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",re(),wr(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",re(),Bm(e,t)},useMemo:function(e,t){G="useMemo",re();var a=X.H;X.H=js;try{return qm(e,t)}finally{X.H=a}},useReducer:function(e,t,a){G="useReducer",re();var n=X.H;X.H=js;try{return Tm(e,t,a)}finally{X.H=n}},useRef:function(e){return G="useRef",re(),Lm(e)},useState:function(e){G="useState",re();var t=X.H;X.H=js;try{return Mm(e)}finally{X.H=t}},useDebugValue:function(){G="useDebugValue",re()},useDeferredValue:function(e,t){return G="useDeferredValue",re(),Gm(e,t)},useTransition:function(){return G="useTransition",re(),Fm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",re(),jm(e,t,a)},useId:function(){return G="useId",re(),Qm()},useActionState:function(e,t){return G="useActionState",re(),ci(e,t)},useFormState:function(e,t){return G="useFormState",re(),Vu(),ci(e,t)},useOptimistic:function(e){return G="useOptimistic",re(),Vm(e)},useHostTransitionStatus:Er,useMemoCache:Sr,useCacheRefresh:function(){return G="useCacheRefresh",re(),Zm()},useEffectEvent:function(e){return G="useEffectEvent",re(),Hm(e)}},Xh={readContext:function(e){return Tt(e)},use:Oo,useCallback:function(e,t){return G="useCallback",re(),Gu(e,t)},useContext:function(e){return G="useContext",re(),Tt(e)},useEffect:function(e,t){G="useEffect",re(),Ia(2048,La,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",re(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",re(),Ia(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",re(),Ia(4,mn,e,t)},useMemo:function(e,t){G="useMemo",re();var a=X.H;X.H=Kn;try{return Iu(e,t)}finally{X.H=a}},useReducer:function(e,t,a){G="useReducer",re();var n=X.H;X.H=Kn;try{return li(e,t,a)}finally{X.H=n}},useRef:function(){return G="useRef",re(),bt().memoizedState},useState:function(){G="useState",re();var e=X.H;X.H=Kn;try{return li(Fn)}finally{X.H=e}},useDebugValue:function(){G="useDebugValue",re()},useDeferredValue:function(e,t){return G="useDeferredValue",re(),ky(e,t)},useTransition:function(){return G="useTransition",re(),Vy()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",re(),Lu(e,t,a)},useId:function(){return G="useId",re(),bt().memoizedState},useFormState:function(e){return G="useFormState",re(),Vu(),Hu(e)},useActionState:function(e){return G="useActionState",re(),Hu(e)},useOptimistic:function(e,t){return G="useOptimistic",re(),xy(e,t)},useHostTransitionStatus:Er,useMemoCache:Sr,useCacheRefresh:function(){return G="useCacheRefresh",re(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",re(),Yu(e)}},RN={readContext:function(e){return Tt(e)},use:Oo,useCallback:function(e,t){return G="useCallback",re(),Gu(e,t)},useContext:function(e){return G="useContext",re(),Tt(e)},useEffect:function(e,t){G="useEffect",re(),Ia(2048,La,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",re(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",re(),Ia(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",re(),Ia(4,mn,e,t)},useMemo:function(e,t){G="useMemo",re();var a=X.H;X.H=Qd;try{return Iu(e,t)}finally{X.H=a}},useReducer:function(e,t,a){G="useReducer",re();var n=X.H;X.H=Qd;try{return Rl(e,t,a)}finally{X.H=n}},useRef:function(){return G="useRef",re(),bt().memoizedState},useState:function(){G="useState",re();var e=X.H;X.H=Qd;try{return Rl(Fn)}finally{X.H=e}},useDebugValue:function(){G="useDebugValue",re()},useDeferredValue:function(e,t){return G="useDeferredValue",re(),Ty(e,t)},useTransition:function(){return G="useTransition",re(),zy()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",re(),Lu(e,t,a)},useId:function(){return G="useId",re(),bt().memoizedState},useFormState:function(e){return G="useFormState",re(),Vu(),Bu(e)},useActionState:function(e){return G="useActionState",re(),Bu(e)},useOptimistic:function(e,t){return G="useOptimistic",re(),Sy(e,t)},useHostTransitionStatus:Er,useMemoCache:Sr,useCacheRefresh:function(){return G="useCacheRefresh",re(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",re(),Yu(e)}},js={readContext:function(e){return y(),Tt(e)},use:function(e){return g(),Oo(e)},useCallback:function(e,t){return G="useCallback",g(),Pe(),Ym(e,t)},useContext:function(e){return G="useContext",g(),Pe(),Tt(e)},useEffect:function(e,t){return G="useEffect",g(),Pe(),$u(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),Pe(),$m(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",g(),Pe(),wr(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),Pe(),Bm(e,t)},useMemo:function(e,t){G="useMemo",g(),Pe();var a=X.H;X.H=js;try{return qm(e,t)}finally{X.H=a}},useReducer:function(e,t,a){G="useReducer",g(),Pe();var n=X.H;X.H=js;try{return Tm(e,t,a)}finally{X.H=n}},useRef:function(e){return G="useRef",g(),Pe(),Lm(e)},useState:function(e){G="useState",g(),Pe();var t=X.H;X.H=js;try{return Mm(e)}finally{X.H=t}},useDebugValue:function(){G="useDebugValue",g(),Pe()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),Pe(),Gm(e,t)},useTransition:function(){return G="useTransition",g(),Pe(),Fm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),Pe(),jm(e,t,a)},useId:function(){return G="useId",g(),Pe(),Qm()},useFormState:function(e,t){return G="useFormState",g(),Pe(),ci(e,t)},useActionState:function(e,t){return G="useActionState",g(),Pe(),ci(e,t)},useOptimistic:function(e){return G="useOptimistic",g(),Pe(),Vm(e)},useMemoCache:function(e){return g(),Sr(e)},useHostTransitionStatus:Er,useCacheRefresh:function(){return G="useCacheRefresh",Pe(),Zm()},useEffectEvent:function(e){return G="useEffectEvent",g(),Pe(),Hm(e)}},Kn={readContext:function(e){return y(),Tt(e)},use:function(e){return g(),Oo(e)},useCallback:function(e,t){return G="useCallback",g(),re(),Gu(e,t)},useContext:function(e){return G="useContext",g(),re(),Tt(e)},useEffect:function(e,t){G="useEffect",g(),re(),Ia(2048,La,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),re(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",g(),re(),Ia(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),re(),Ia(4,mn,e,t)},useMemo:function(e,t){G="useMemo",g(),re();var a=X.H;X.H=Kn;try{return Iu(e,t)}finally{X.H=a}},useReducer:function(e,t,a){G="useReducer",g(),re();var n=X.H;X.H=Kn;try{return li(e,t,a)}finally{X.H=n}},useRef:function(){return G="useRef",g(),re(),bt().memoizedState},useState:function(){G="useState",g(),re();var e=X.H;X.H=Kn;try{return li(Fn)}finally{X.H=e}},useDebugValue:function(){G="useDebugValue",g(),re()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),re(),ky(e,t)},useTransition:function(){return G="useTransition",g(),re(),Vy()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),re(),Lu(e,t,a)},useId:function(){return G="useId",g(),re(),bt().memoizedState},useFormState:function(e){return G="useFormState",g(),re(),Hu(e)},useActionState:function(e){return G="useActionState",g(),re(),Hu(e)},useOptimistic:function(e,t){return G="useOptimistic",g(),re(),xy(e,t)},useMemoCache:function(e){return g(),Sr(e)},useHostTransitionStatus:Er,useCacheRefresh:function(){return G="useCacheRefresh",re(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",g(),re(),Yu(e)}},Qd={readContext:function(e){return y(),Tt(e)},use:function(e){return g(),Oo(e)},useCallback:function(e,t){return G="useCallback",g(),re(),Gu(e,t)},useContext:function(e){return G="useContext",g(),re(),Tt(e)},useEffect:function(e,t){G="useEffect",g(),re(),Ia(2048,La,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),re(),qu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",g(),re(),Ia(4,za,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),re(),Ia(4,mn,e,t)},useMemo:function(e,t){G="useMemo",g(),re();var a=X.H;X.H=Kn;try{return Iu(e,t)}finally{X.H=a}},useReducer:function(e,t,a){G="useReducer",g(),re();var n=X.H;X.H=Kn;try{return Rl(e,t,a)}finally{X.H=n}},useRef:function(){return G="useRef",g(),re(),bt().memoizedState},useState:function(){G="useState",g(),re();var e=X.H;X.H=Kn;try{return Rl(Fn)}finally{X.H=e}},useDebugValue:function(){G="useDebugValue",g(),re()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),re(),Ty(e,t)},useTransition:function(){return G="useTransition",g(),re(),zy()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),re(),Lu(e,t,a)},useId:function(){return G="useId",g(),re(),bt().memoizedState},useFormState:function(e){return G="useFormState",g(),re(),Bu(e)},useActionState:function(e){return G="useActionState",g(),re(),Bu(e)},useOptimistic:function(e,t){return G="useOptimistic",g(),re(),Sy(e,t)},useMemoCache:function(e){return g(),Sr(e)},useHostTransitionStatus:Er,useCacheRefresh:function(){return G="useCacheRefresh",re(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",g(),re(),Yu(e)}};var CN={},_N=new Set,UN=new Set,kN=new Set,TN=new Set,ON=new Set,jN=new Set,AN=new Set,MN=new Set,VN=new Set,zN=new Set;Object.freeze(CN);var Fh={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=rn(e),r=_o(n);r.payload=t,a!=null&&(Pm(a),r.callback=a),t=Uo(e,r,n),t!==null&&(ds(n,"this.setState()",e),Lt(t,e,n),Sl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=rn(e),r=_o(n);r.tag=vN,r.payload=t,a!=null&&(Pm(a),r.callback=a),t=Uo(e,r,n),t!==null&&(ds(n,"this.replaceState()",e),Lt(t,e,n),Sl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=rn(e),n=_o(a);n.tag=xN,t!=null&&(Pm(t),n.callback=t),t=Uo(e,n,a),t!==null&&(ds(a,"this.forceUpdate()",e),Lt(t,e,a),Sl(t,e,a))}},Xi=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,LN={},HN={},BN={},$N={},Fi=!1,YN={},Zd={},Jh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},qN=!1,GN=null;GN=new Set;var po=!1,Wt=!1,Ph=!1,IN=typeof WeakSet=="function"?WeakSet:Set,da=null,Qi=null,Zi=null,ea=null,Qa=!1,Wn=null,na=!1,Sc=8192,gR={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 un}};if(typeof Symbol=="function"&&Symbol.for){var wc=Symbol.for;wc("selector.component"),wc("selector.has_pseudo_class"),wc("selector.role"),wc("selector.test_id"),wc("selector.text")}var bR=[],yR=typeof WeakMap=="function"?WeakMap:Map,fa=0,sa=2,pn=4,ho=0,Ec=1,$r=2,Jd=3,Jo=4,Pd=6,XN=5,dt=fa,Nt=null,Je=null,Qe=0,Za=0,Kd=1,Yr=2,Dc=3,FN=4,Kh=5,Rc=6,Wd=7,Wh=8,qr=9,yt=Za,hn=null,Po=!1,Ji=!1,eg=!1,As=0,At=ho,Ko=0,Wo=0,tg=0,Ja=0,Gr=0,Cc=null,Ha=null,ef=!1,tf=0,QN=0,ZN=300,af=1/0,JN=500,_c=null,$t=null,er=null,nf=0,ag=1,ng=2,PN=3,tr=0,KN=1,WN=2,e1=3,t1=4,sf=5,ta=0,ar=null,Pi=null,es=0,sg=0,og=-0,rg=null,a1=null,n1=null,ts=nf,s1=null,vR=50,Uc=0,ig=null,lg=!1,of=!1,xR=50,Ir=0,kc=null,Ki=!1,rf=null,o1=!1,r1=new Set,NR={},lf=null,Wi=null,cg=!1,ug=!1,cf=!1,dg=!1,nr=0,fg={};(function(){for(var e=0;e<wh.length;e++){var t=wh[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),In(a,"on"+t)}In(Vx,"onAnimationEnd"),In(zx,"onAnimationIteration"),In(Lx,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(JD,"onTransitionRun"),In(PD,"onTransitionStart"),In(KD,"onTransitionCancel"),In(Hx,"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 Tc="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(Tc)),uf="_reactListening"+Math.random().toString(36).slice(2),i1=!1,l1=!1,df=!1,c1=!1,ff=!1,mf=!1,u1=!1,pf={},SR=/\r\n?/g,wR=/\u0000|\uFFFD/g,Xr="http://www.w3.org/1999/xlink",pg="http://www.w3.org/XML/1998/namespace",ER="javascript:throw new Error('React form unexpectedly submitted.')",DR="suppressHydrationWarning",Fr="&",hf="/&",Oc="$",jc="/$",sr="$?",Qr="$~",el="$!",RR="html",CR="body",_R="head",hg="F!",d1="F",f1="loading",UR="style",go=0,tl=1,gf=2,gg=null,bg=null,m1={dialog:!0,webview:!0},yg=null,Ac=void 0,p1=typeof setTimeout=="function"?setTimeout:void 0,kR=typeof clearTimeout=="function"?clearTimeout:void 0,Zr=-1,h1=typeof Promise=="function"?Promise:void 0,TR=typeof queueMicrotask=="function"?queueMicrotask:typeof h1<"u"?function(e){return h1.resolve(null).then(e).catch(m4)}:p1,vg=null,Jr=0,Mc=1,g1=2,b1=3,An=4,Mn=new Map,y1=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"?My(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="'+ye(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+ye(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+ye(a.imageSizes)+'"]')):r+='[href="'+ye(e)+'"]';var i=r;switch(t){case"style":i=bi(e);break;case"script":i=yi(e)}Mn.has(i)||(e=Ke({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Mn.set(i,e),n.querySelector(r)!==null||t==="style"&&n.querySelector($l(i))||t==="script"&&n.querySelector(Yl(i))||(t=n.createElement("link"),ha(t,"link",e),Ce(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="'+ye(n)+'"][href="'+ye(e)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=yi(e)}if(!Mn.has(i)&&(e=Ke({rel:"modulepreload",href:e},t),Mn.set(i,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Yl(i)))return}n=a.createElement("link"),ha(n,"link",e),Ce(n),a.head.appendChild(n)}}},X:function(e,t){bo.X(e,t);var a=al;if(a&&e){var n=He(a).hoistableScripts,r=yi(e),i=n.get(r);i||(i=a.querySelector(Yl(r)),i||(e=Ke({src:e,async:!0},t),(t=Mn.get(r))&&$p(e,t),i=a.createElement("script"),Ce(i),ha(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}},S:function(e,t,a){bo.S(e,t,a);var n=al;if(n&&e){var r=He(n).hoistableStyles,i=bi(e);t=t||"default";var d=r.get(i);if(!d){var m={loading:Jr,preload:null};if(d=n.querySelector($l(i)))m.loading=Mc|An;else{e=Ke({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Mn.get(i))&&Bp(e,a);var b=d=n.createElement("link");Ce(b),ha(b,"link",e),b._p=new Promise(function(N,A){b.onload=N,b.onerror=A}),b.addEventListener("load",function(){m.loading|=Mc}),b.addEventListener("error",function(){m.loading|=g1}),m.loading|=An,ud(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:m},r.set(i,d)}}},M:function(e,t){bo.M(e,t);var a=al;if(a&&e){var n=He(a).hoistableScripts,r=yi(e),i=n.get(r);i||(i=a.querySelector(Yl(r)),i||(e=Ke({src:e,async:!0,type:"module"},t),(t=Mn.get(r))&&$p(e,t),i=a.createElement("script"),Ce(i),ha(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}};var al=typeof document>"u"?null:document,bf=null,OR=6e4,jR=800,AR=500,xg=0,Ng=null,yf=null,Pr=Q4,Vc={$$typeof:Ds,Provider:null,Consumer:null,_currentValue:Pr,_currentValue2:Pr,_threadCount:0},v1="%c%s%c",x1="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",N1="",vf=" ",MR=Function.prototype.bind,S1=!1,w1=null,E1=null,D1=null,R1=null,C1=null,_1=null,U1=null,k1=null,T1=null,O1=null;w1=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=Ke({},e.memoizedProps),a=Sa(e,2),a!==null&&Lt(a,e,2))},E1=function(e,t,a){t=s(e,t),t!==null&&(a=u(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=Ke({},e.memoizedProps),a=Sa(e,2),a!==null&&Lt(a,e,2))},D1=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=Ke({},e.memoizedProps),a=Sa(e,2),a!==null&&Lt(a,e,2))},R1=function(e,t,a){e.pendingProps=o(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Sa(e,2),t!==null&&Lt(t,e,2)},C1=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Sa(e,2),t!==null&&Lt(t,e,2)},_1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Sa(e,2),t!==null&&Lt(t,e,2)},U1=function(e){var t=Sa(e,2);t!==null&&Lt(t,e,2)},k1=function(e){var t=en(),a=Sa(e,t);a!==null&&Lt(a,e,t)},T1=function(e){h=e},O1=function(e){f=e};var xf=!0,Nf=null,Sg=!1,or=null,rr=null,ir=null,zc=new Map,Lc=new Map,lr=[],VR="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=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var n=t.current,r=rn(n);Yp(n,r,a,t,null,null)},hd.prototype.unmount=Fp.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(dt&(sa|pn))!==fa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Yp(e.current,2,null,e,null,null),pi(),t[Ho]=null}},hd.prototype.unstable_scheduleHydration=function(e){if(e){var t=$n();e={blockedOn:null,target:e,priority:t};for(var a=0;a<lr.length&&t!==0&&t<lr[a].priority;a++);lr.splice(a,0,e),a===0&&Y0(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=se(t),e=e!==null?ee(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.4"};return e.overrideHookState=w1,e.overrideHookStateDeletePath=E1,e.overrideHookStateRenamePath=D1,e.overrideProps=R1,e.overridePropsDeletePath=C1,e.overridePropsRenamePath=_1,e.scheduleUpdate=U1,e.scheduleRetry=k1,e.setErrorHandler=T1,e.setSuspenseHandler=O1,e.scheduleRefresh=j,e.scheduleRoot=R,e.setRefreshHandler=H,e.getCurrentFiber=H4,mr(e)})()&&ks&&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")}Bc.createRoot=function(e,t){if(!L(e))throw Error("Target container is not a DOM element.");X0(e);var a=!1,n="",r=qy,i=Gy,d=Iy;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===Es&&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=M0(e,1,!1,null,null,a,n,null,r,i,d,I0),e[Ho]=t.current,_p(e),new Fp(t)},Bc.hydrateRoot=function(e,t,a){if(!L(e))throw Error("Target container is not a DOM element.");X0(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=qy,d=Gy,m=Iy,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&&(m=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=M0(e,1,!0,t,a??null,n,r,b,i,d,m,I0),t.context=V0(null),a=t.current,n=rn(a),n=xn(n),r=_o(n),r.callback=null,Uo(a,r,n),ds(n,"hydrateRoot()",null),a=n,t.current.lanes=a,vn(t,a),Ss(t),e[Ho]=t.current,_p(e),new hd(t)},Bc.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Bc}var uS;function e_(){return uS||(uS=1,kg.exports=WC()),kg.exports}var t_=e_();var pw=s=>{throw TypeError(s)},a_=(s,o,l)=>o.has(s)||pw("Cannot "+l),Ag=(s,o,l)=>(a_(s,o,"read from private field"),l?l.call(s):o.get(s)),n_=(s,o,l)=>o.has(s)?pw("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(s):o.set(s,l),dS="popstate";function fS(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function s_(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:zs(u)}return r_(o,l,null,s)}function et(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function Yt(s,o){if(!s){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function o_(){return Math.random().toString(36).substring(2,10)}function mS(s,o){return{usr:s.state,key:s.key,idx:o,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function Wc(s,o,l=null,c,u){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof o=="string"?xo(o):o,state:l,key:o&&o.key||c||o_(),unstable_mask:u}}function zs({pathname:s="/",search:o="",hash:l=""}){return o&&o!=="?"&&(s+=o.charAt(0)==="?"?o:"?"+o),l&&l!=="#"&&(s+=l.charAt(0)==="#"?l:"#"+l),s}function xo(s){let o={};if(s){let l=s.indexOf("#");l>=0&&(o.hash=s.substring(l),s=s.substring(0,l));let c=s.indexOf("?");c>=0&&(o.search=s.substring(c),s=s.substring(0,c)),s&&(o.pathname=s)}return o}function r_(s,o,l,c={}){let{window:u=document.defaultView,v5Compat:f=!1}=c,h=u.history,g="POP",y=null,v=D();v==null&&(v=0,h.replaceState({...h.state,idx:v},""));function D(){return(h.state||{idx:null}).idx}function x(){g="POP";let L=D(),Q=L==null?null:L-v;v=L,y&&y({action:g,location:H.location,delta:Q})}function S(L,Q){g="PUSH";let Z=fS(L)?L:Wc(H.location,L,Q);v=D()+1;let ne=mS(Z,v),de=H.createHref(Z.unstable_mask||Z);try{h.pushState(ne,"",de)}catch(se){if(se instanceof DOMException&&se.name==="DataCloneError")throw se;u.location.assign(de)}f&&y&&y({action:g,location:H.location,delta:1})}function R(L,Q){g="REPLACE";let Z=fS(L)?L:Wc(H.location,L,Q);v=D();let ne=mS(Z,v),de=H.createHref(Z.unstable_mask||Z);h.replaceState(ne,"",de),f&&y&&y({action:g,location:H.location,delta:0})}function j(L){return hw(L)}let H={get action(){return g},get location(){return s(u,h)},listen(L){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(dS,x),y=L,()=>{u.removeEventListener(dS,x),y=null}},createHref(L){return o(u,L)},createURL:j,encodeLocation(L){let Q=j(L);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:S,replace:R,go(L){return h.go(L)}};return H}function hw(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:zs(s);return c=c.replace(/ $/,"%20"),!o&&c.startsWith("//")&&(c=l+c),new URL(c,l)}var Fc,pS=class{constructor(s){if(n_(this,Fc,new Map),s)for(let[o,l]of s)this.set(o,l)}get(s){if(Ag(this,Fc).has(s))return Ag(this,Fc).get(s);if(s.defaultValue!==void 0)return s.defaultValue;throw new Error("No value found for context")}set(s,o){Ag(this,Fc).set(s,o)}};Fc=new WeakMap;var i_=new Set(["lazy","caseSensitive","path","id","index","children"]);function l_(s){return i_.has(s)}var c_=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function u_(s){return c_.has(s)}function d_(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`),d_(f)){let v={...f,id:y};return c[y]=hS(v,o(v)),v}else{let v={...f,id:y,children:void 0};return c[y]=hS(v,o(v)),f.children&&(v.children=eu(f.children,o,g,c,u)),v}})}function hS(s,o){return Object.assign(s,{...o,...typeof o.lazy=="object"&&o.lazy!=null?{lazy:{...s.lazy,...o.lazy}}:{}})}function cr(s,o,l="/"){return Qc(s,o,l,!1)}function Qc(s,o,l,c){let u=typeof o=="string"?xo(o):o,f=zn(u.pathname||"/",l);if(f==null)return null;let h=gw(s);m_(h);let g=null;for(let y=0;g==null&&y<h.length;++y){let v=E_(f);g=S_(h[y],v,c)}return g}function f_(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 gw(s,o=[],l=[],c="",u=!1){let f=(h,g,y=u,v)=>{let D={relativePath:v===void 0?h.path||"":v,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(D.relativePath.startsWith("/")){if(!D.relativePath.startsWith(c)&&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 x=as([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 "${x}".`),gw(h.children,o,S,x,y)),!(h.path==null&&!h.index)&&o.push({path:x,score:x_(x,h.index),routesMeta:S})};return s.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))f(h,g);else for(let y of bw(h.path))f(h,g,!0,y)}),o}function bw(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=bw(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 m_(s){s.sort((o,l)=>o.score!==l.score?l.score-o.score:N_(o.routesMeta.map(c=>c.childrenIndex),l.routesMeta.map(c=>c.childrenIndex)))}var p_=/^:[\w-]+$/,h_=3,g_=2,b_=1,y_=10,v_=-2,gS=s=>s==="*";function x_(s,o){let l=s.split("/"),c=l.length;return l.some(gS)&&(c+=v_),o&&(c+=g_),l.filter(u=>!gS(u)).reduce((u,f)=>u+(p_.test(f)?h_:f===""?b_:y_),c)}function N_(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 S_(s,o,l=!1){let{routesMeta:c}=s,u={},f="/",h=[];for(let g=0;g<c.length;++g){let y=c[g],v=g===c.length-1,D=f==="/"?o:o.slice(f.length)||"/",x=zf({path:y.relativePath,caseSensitive:y.caseSensitive,end:v},D),S=y.route;if(!x&&v&&l&&!c[c.length-1].route.index&&(x=zf({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},D)),!x)return null;Object.assign(u,x.params),h.push({params:u,pathname:as([f,x.pathname]),pathnameBase:C_(as([f,x.pathnameBase])),route:S}),x.pathnameBase!=="/"&&(f=as([f,x.pathnameBase]))}return h}function zf(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[l,c]=w_(s.path,s.caseSensitive,s.end),u=o.match(l);if(!u)return null;let f=u[0],h=f.replace(/(.)\/+$/,"$1"),g=u.slice(1);return{params:c.reduce((v,{paramName:D,isOptional:x},S)=>{if(D==="*"){let j=g[S]||"";h=f.slice(0,f.length-j.length).replace(/(.)\/+$/,"$1")}const R=g[S];return x&&!R?v[D]=void 0:v[D]=(R||"").replace(/%2F/g,"/"),v},{}),pathname:f,pathnameBase:h,pattern:s}}function w_(s,o=!1,l=!0){Yt(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,v,D)=>{if(c.push({paramName:g,isOptional:y!=null}),y){let x=D.charAt(v+h.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(c.push({paramName:"*"}),u+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?u+="\\/*$":s!==""&&s!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,o?void 0:"i"),c]}function E_(s){try{return s.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Yt(!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 zn(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 D_({basename:s,pathname:o}){return o==="/"?s:as([s,o])}var yw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wg=s=>yw.test(s);function R_(s,o="/"){let{pathname:l,search:c="",hash:u=""}=typeof s=="string"?xo(s):s,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=bS(l.substring(1),"/"):f=bS(l,o)):f=o,{pathname:f,search:__(c),hash:U_(u)}}function bS(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 vw(s){return s.filter((o,l)=>l===0||o.route.path&&o.route.path.length>0)}function Hf(s){let o=vw(s);return o.map((l,c)=>c===o.length-1?l.pathname:l.pathnameBase)}function su(s,o,l,c=!1){let u;typeof s=="string"?u=xo(s):(u={...s},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 x=o.length-1;if(!c&&h.startsWith("..")){let S=h.split("/");for(;S[0]==="..";)S.shift(),x-=1;u.pathname=S.join("/")}g=x>=0?o[x]:"/"}let y=R_(u,g),v=h&&h!=="/"&&h.endsWith("/"),D=(f||h===".")&&l.endsWith("/");return!y.pathname.endsWith("/")&&(v||D)&&(y.pathname+="/"),y}var as=s=>s.join("/").replace(/\/\/+/g,"/"),C_=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),__=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,U_=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 xw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Nw(s,o){let l=s;if(typeof l!="string"||!yw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let c=l,u=!1;if(xw)try{let f=new URL(window.location.href),h=l.startsWith("//")?new URL(f.protocol+l):new URL(l),g=zn(h.pathname,o);h.origin===f.origin&&g!=null?l=g+h.search+h.hash:u=!0}catch{Yt(!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 dr=Symbol("Uninstrumented");function k_(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[dr]??f,g=il(l[u],h,(...y)=>yS(y[0]));g&&(u==="loader"&&h.hydrate===!0&&(g.hydrate=!0),g[dr]=h,c[u]=g)}}),o.middleware&&o.middleware.length>0&&l.middleware.length>0&&(c.middleware=o.middleware.map(u=>{let f=u[dr]??u,h=il(l.middleware,f,(...g)=>yS(g[0]));return h?(h[dr]=f,h):u})),c}function T_(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[dr]??s.navigate,u=il(l.navigate,c,(...f)=>{let[h,g]=f;return{to:typeof h=="number"||typeof h=="string"?h:h?zs(h):".",...vS(s,g??{})}});u&&(u[dr]=c,s.navigate=u)}if(l.fetch.length>0){let c=s.fetch[dr]??s.fetch,u=il(l.fetch,c,(...f)=>{let[h,,g,y]=f;return{href:g??".",fetcherKey:h,...vS(s,y??{})}});u&&(u[dr]=c,s.fetch=u)}return s}function il(s,o,l){return s.length===0?null:async(...c)=>{let u=await Sw(s,l(...c),()=>o(...c),s.length-1);if(u.type==="error")throw u.value;return u.value}}async function Sw(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=Sw(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 yS(s){let{request:o,context:l,params:c,unstable_pattern:u}=s;return{request:O_(o),params:{...c},unstable_pattern:u,context:j_(l)}}function vS(s,o){return{currentUrl:zs(s.state.location),..."formMethod"in o?{formMethod:o.formMethod}:{},..."formEncType"in o?{formEncType:o.formEncType}:{},..."formData"in o?{formData:o.formData}:{},..."body"in o?{body:o.body}:{}}}function O_(s){return{method:s.method,url:s.url,headers:{get:(...o)=>s.headers.get(...o)}}}function j_(s){if(M_(s)){let o={...s};return Object.freeze(o),o}else return{get:o=>s.get(o)}}var A_=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function M_(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")===A_}var ww=["POST","PUT","PATCH","DELETE"],V_=new Set(ww),z_=["GET",...ww],L_=new Set(z_),Ew=new Set([301,302,303,307,308]),H_=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},B_={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$c={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$_=s=>({hasErrorBoundary:!!s.hasErrorBoundary}),Dw="remix-router-transitions",Rw=Symbol("ResetLoaderData");function Y_(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||$_,f=u;if(s.unstable_instrumentations){let _=s.unstable_instrumentations;f=z=>({...u(z),...k_(_.map(I=>I.route).filter(Boolean),z)})}let h={},g=eu(s.routes,f,void 0,h),y,v=s.basename||"/";v.startsWith("/")||(v=`/${v}`);let D=s.dataStrategy||F_,x={...s.future},S=null,R=new Set,j=null,H=null,L=null,Q=s.hydrationData!=null,Z=cr(g,s.history.location,v),ne=!1,de=null,se,ee;if(Z==null&&!s.patchRoutesOnNavigation){let _=Vn(404,{pathname:s.history.location.pathname}),{matches:z,route:I}=Df(g);se=!0,ee=!se,Z=z,de={[I.id]:_}}else if(Z&&!s.hydrationData&&Ua(Z,g,s.history.location.pathname).active&&(Z=null),Z)if(Z.some(_=>_.route.lazy))se=!1,ee=!se;else if(!Z.some(_=>eb(_.route)))se=!0,ee=!se;else{let _=s.hydrationData?s.hydrationData.loaderData:null,z=s.hydrationData?s.hydrationData.errors:null,I=Z;if(z){let ie=Z.findIndex(ce=>z[ce.route.id]!==void 0);I=I.slice(0,ie+1)}ee=!1,se=I.every(ie=>{let ce=Cw(ie.route,_,z);return ee=ee||ce.renderFallback,!ce.shouldLoad})}else{se=!1,ee=!se,Z=[];let _=Ua(null,g,s.history.location.pathname);_.active&&_.matches&&(ne=!0,Z=_.matches)}let W,k={historyAction:s.history.action,location:s.history.location,matches:Z,initialized:se,renderFallback:ee,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||de,fetchers:new Map,blockers:new Map},B="POP",$=null,ae=!1,q,P=!1,le=new Map,Se=null,K=!1,fe=!1,be=new Set,pe=new Map,je=0,F=-1,Ne=new Map,he=new Set,we=new Map,tt=new Map,Mt=new Set,Ye=new Map,Vt,zt=null;function Ka(){if(S=s.history.listen(({action:_,location:z,delta:I})=>{if(Vt){Vt(),Vt=void 0;return}Yt(Ye.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 ie=Ee({currentLocation:k.location,nextLocation:z,historyAction:_});if(ie&&I!=null){let ce=new Promise(_e=>{Vt=_e});s.history.go(I*-1),ue(ie,{state:"blocked",location:z,proceed(){ue(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),ce.then(()=>s.history.go(I))},reset(){let _e=new Map(k.blockers);_e.set(ie,$c),Et({blockers:_e})}}),$?.resolve(),$=null;return}return Dt(_,z)}),l){dU(o,le);let _=()=>fU(o,le);o.addEventListener("pagehide",_),Se=()=>o.removeEventListener("pagehide",_)}return k.initialized||Dt("POP",k.location,{initialHydration:!0}),W}function ve(){S&&S(),Se&&Se(),R.clear(),q&&q.abort(),k.fetchers.forEach((_,z)=>xn(z)),k.blockers.forEach((_,z)=>oe(z))}function Bn(_){return R.add(_),()=>R.delete(_)}function Et(_,z={}){_.matches&&(_.matches=_.matches.map(ce=>{let _e=h[ce.route.id],ye=ce.route;return ye.element!==_e.element||ye.errorElement!==_e.errorElement||ye.hydrateFallbackElement!==_e.hydrateFallbackElement?{...ce,route:_e}:ce})),k={...k,..._};let I=[],ie=[];k.fetchers.forEach((ce,_e)=>{ce.state==="idle"&&(Mt.has(_e)?I.push(_e):ie.push(_e))}),Mt.forEach(ce=>{!k.fetchers.has(ce)&&!pe.has(ce)&&I.push(ce)}),[...R].forEach(ce=>ce(k,{deletedFetchers:I,newErrors:_.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),I.forEach(ce=>xn(ce)),ie.forEach(ce=>k.fetchers.delete(ce))}function va(_,z,{flushSync:I}={}){let ie=k.actionData!=null&&k.navigation.formMethod!=null&&Ra(k.navigation.formMethod)&&k.navigation.state==="loading"&&_.state?._isRedirect!==!0,ce;z.actionData?Object.keys(z.actionData).length>0?ce=z.actionData:ce=null:ie?ce=k.actionData:ce=null;let _e=z.loaderData?US(k.loaderData,z.loaderData,z.matches||[],z.errors):k.loaderData,ye=k.blockers;ye.size>0&&(ye=new Map(ye),ye.forEach((Ae,Ue)=>ye.set(Ue,$c)));let ke=K?!1:oa(_,z.matches||k.matches),De=ae===!0||k.navigation.formMethod!=null&&Ra(k.navigation.formMethod)&&_.state?._isRedirect!==!0;y&&(g=y,y=void 0),K||B==="POP"||(B==="PUSH"?s.history.push(_,_.state):B==="REPLACE"&&s.history.replace(_,_.state));let Me;if(B==="POP"){let Ae=le.get(k.location.pathname);Ae&&Ae.has(_.pathname)?Me={currentLocation:k.location,nextLocation:_}:le.has(_.pathname)&&(Me={currentLocation:_,nextLocation:k.location})}else if(P){let Ae=le.get(k.location.pathname);Ae?Ae.add(_.pathname):(Ae=new Set([_.pathname]),le.set(k.location.pathname,Ae)),Me={currentLocation:k.location,nextLocation:_}}Et({...z,actionData:ce,loaderData:_e,historyAction:B,location:_,initialized:!0,renderFallback:!1,navigation:Vg,revalidation:"idle",restoreScrollPosition:ke,preventScrollReset:De,blockers:ye},{viewTransitionOpts:Me,flushSync:I===!0}),B="POP",ae=!1,P=!1,K=!1,fe=!1,$?.resolve(),$=null,zt?.resolve(),zt=null}async function Wa(_,z){if($?.resolve(),$=null,typeof _=="number"){$||($=jS());let Rt=$.promise;return s.history.go(_),Rt}let I=Xg(k.location,k.matches,v,_,z?.fromRouteId,z?.relative),{path:ie,submission:ce,error:_e}=xS(!1,I,z),ye;z?.unstable_mask&&(ye={pathname:"",search:"",hash:"",...typeof z.unstable_mask=="string"?xo(z.unstable_mask):{...k.location.unstable_mask,...z.unstable_mask}});let ke=k.location,De=Wc(ke,ie,z&&z.state,void 0,ye);De={...De,...s.history.encodeLocation(De)};let Me=z&&z.replace!=null?z.replace:void 0,Ae="PUSH";Me===!0?Ae="REPLACE":Me===!1||ce!=null&&Ra(ce.formMethod)&&ce.formAction===k.location.pathname+k.location.search&&(Ae="REPLACE");let Ue=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,mt=(z&&z.flushSync)===!0,We=Ee({currentLocation:ke,nextLocation:De,historyAction:Ae});if(We){ue(We,{state:"blocked",location:De,proceed(){ue(We,{state:"proceeding",proceed:void 0,reset:void 0,location:De}),Wa(_,z)},reset(){let Rt=new Map(k.blockers);Rt.set(We,$c),Et({blockers:Rt})}});return}await Dt(Ae,De,{submission:ce,pendingError:_e,preventScrollReset:Ue,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:mt,callSiteDefaultShouldRevalidate:z&&z.unstable_defaultShouldRevalidate})}function ft(){zt||(zt=jS()),vn(),Et({revalidation:"loading"});let _=zt.promise;return k.navigation.state==="submitting"?_:k.navigation.state==="idle"?(Dt(k.historyAction,k.location,{startUninterruptedRevalidation:!0}),_):(Dt(B||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:P===!0}),_)}async function Dt(_,z,I){q&&q.abort(),q=null,B=_,K=(I&&I.startUninterruptedRevalidation)===!0,qe(k.location,k.matches),ae=(I&&I.preventScrollReset)===!0,P=(I&&I.enableViewTransition)===!0;let ie=y||g,ce=I&&I.overrideNavigation,_e=I?.initialHydration&&k.matches&&k.matches.length>0&&!ne?k.matches:cr(ie,z,v),ye=(I&&I.flushSync)===!0;if(_e&&k.initialized&&!fe&&tU(k.location,z)&&!(I&&I.submission&&Ra(I.submission.formMethod))){va(z,{matches:_e},{flushSync:ye});return}let ke=Ua(_e,ie,z.pathname);if(ke.active&&ke.matches&&(_e=ke.matches),!_e){let{error:qt,notFoundMatches:ra,route:pt}=He(z.pathname);va(z,{matches:ra,loaderData:{},errors:{[pt.id]:qt}},{flushSync:ye});return}q=new AbortController;let De=ol(s.history,z,q.signal,I&&I.submission),Me=s.getContext?await s.getContext():new pS,Ae;if(I&&I.pendingError)Ae=[ur(_e).route.id,{type:"error",error:I.pendingError}];else if(I&&I.submission&&Ra(I.submission.formMethod)){let qt=await ss(De,z,I.submission,_e,Me,ke.active,I&&I.initialHydration===!0,{replace:I.replace,flushSync:ye});if(qt.shortCircuited)return;if(qt.pendingActionResult){let[ra,pt]=qt.pendingActionResult;if(gn(pt)&&tu(pt.error)&&pt.error.status===404){q=null,va(z,{matches:qt.matches,loaderData:{},errors:{[ra]:pt.error}});return}}_e=qt.matches||_e,Ae=qt.pendingActionResult,ce=zg(z,I.submission),ye=!1,ke.active=!1,De=ol(s.history,De.url,De.signal)}let{shortCircuited:Ue,matches:mt,loaderData:We,errors:Rt}=await mr(De,z,_e,Me,ke.active,ce,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,ye,Ae,I&&I.callSiteDefaultShouldRevalidate);Ue||(q=null,va(z,{matches:mt||_e,...kS(Ae),loaderData:We,errors:Rt}))}async function ss(_,z,I,ie,ce,_e,ye,ke={}){vn();let De=cU(z,I);if(Et({navigation:De},{flushSync:ke.flushSync===!0}),_e){let Ue=await qs(ie,z.pathname,_.signal);if(Ue.type==="aborted")return{shortCircuited:!0};if(Ue.type==="error"){if(Ue.partialMatches.length===0){let{matches:We,route:Rt}=Df(g);return{matches:We,pendingActionResult:[Rt.id,{type:"error",error:Ue.error}]}}let mt=ur(Ue.partialMatches).route.id;return{matches:Ue.partialMatches,pendingActionResult:[mt,{type:"error",error:Ue.error}]}}else if(Ue.matches)ie=Ue.matches;else{let{notFoundMatches:mt,error:We,route:Rt}=He(z.pathname);return{matches:mt,pendingActionResult:[Rt.id,{type:"error",error:We}]}}}let Me,Ae=kf(ie,z);if(!Ae.route.action&&!Ae.route.lazy)Me={type:"error",error:Vn(405,{method:_.method,pathname:z.pathname,routeId:Ae.route.id})};else{let Ue=ll(f,h,_,ie,Ae,ye?[]:c,ce),mt=await en(_,Ue,ce,null);if(Me=mt[Ae.route.id],!Me){for(let We of ie)if(mt[We.route.id]){Me=mt[We.route.id];break}}if(_.signal.aborted)return{shortCircuited:!0}}if(Wr(Me)){let Ue;return ke&&ke.replace!=null?Ue=ke.replace:Ue=RS(Me.response.headers.get("Location"),new URL(_.url),v,s.history)===k.location.pathname+k.location.search,await Ya(_,Me,!0,{submission:I,replace:Ue}),{shortCircuited:!0}}if(gn(Me)){let Ue=ur(ie,Ae.route.id);return(ke&&ke.replace)!==!0&&(B="PUSH"),{matches:ie,pendingActionResult:[Ue.route.id,Me,Ae.route.id]}}return{matches:ie,pendingActionResult:[Ae.route.id,Me]}}async function mr(_,z,I,ie,ce,_e,ye,ke,De,Me,Ae,Ue,mt){let We=_e||zg(z,ye),Rt=ye||ke||OS(We),qt=!K&&!Me;if(ce){if(qt){let ia=te(Ue);Et({navigation:We,...ia!==void 0?{actionData:ia}:{}},{flushSync:Ae})}let st=await qs(I,z.pathname,_.signal);if(st.type==="aborted")return{shortCircuited:!0};if(st.type==="error"){if(st.partialMatches.length===0){let{matches:So,route:is}=Df(g);return{matches:So,loaderData:{},errors:{[is.id]:st.error}}}let ia=ur(st.partialMatches).route.id;return{matches:st.partialMatches,loaderData:{},errors:{[ia]:st.error}}}else if(st.matches)I=st.matches;else{let{error:ia,notFoundMatches:So,route:is}=He(z.pathname);return{matches:So,loaderData:{},errors:{[is.id]:ia}}}}let ra=y||g,{dsMatches:pt,revalidatingFetchers:ka}=NS(_,ie,f,h,s.history,k,I,Rt,z,Me?[]:c,Me===!0,fe,be,Mt,we,he,ra,v,s.patchRoutesOnNavigation!=null,Ue,mt);if(F=++je,!s.dataStrategy&&!pt.some(st=>st.shouldLoad)&&!pt.some(st=>st.route.middleware&&st.route.middleware.length>0)&&ka.length===0){let st=$n();return va(z,{matches:I,loaderData:{},errors:Ue&&gn(Ue[1])?{[Ue[0]]:Ue[1].error}:null,...kS(Ue),...st?{fetchers:new Map(k.fetchers)}:{}},{flushSync:Ae}),{shortCircuited:!0}}if(qt){let st={};if(!ce){st.navigation=We;let ia=te(Ue);ia!==void 0&&(st.actionData=ia)}ka.length>0&&(st.fetchers=Ze(ka)),Et(st,{flushSync:Ae})}ka.forEach(st=>{xa(st.key),st.controller&&pe.set(st.key,st.controller)});let Gt=()=>ka.forEach(st=>xa(st.key));q&&q.signal.addEventListener("abort",Gt);let{loaderResults:Nn,fetcherResults:Na}=await Ft(pt,ka,_,ie);if(_.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",Gt),ka.forEach(st=>pe.delete(st.key));let tn=Rf(Nn);if(tn)return await Ya(_,tn.result,!0,{replace:De}),{shortCircuited:!0};if(tn=Rf(Na),tn)return he.add(tn.key),await Ya(_,tn.result,!0,{replace:De}),{shortCircuited:!0};let{loaderData:Is,errors:os}=_S(k,I,Nn,Ue,ka,Na);Me&&k.errors&&(os={...k.errors,...os});let qn=$n(),rs=w(F),Gn=qn||rs||ka.length>0;return{matches:I,loaderData:Is,errors:os,...Gn?{fetchers:new Map(k.fetchers)}:{}}}function te(_){if(_&&!gn(_[1]))return{[_[0]]:_[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function Ze(_){return _.forEach(z=>{let I=k.fetchers.get(z.key),ie=Yc(void 0,I?I.data:void 0);k.fetchers.set(z.key,ie)}),new Map(k.fetchers)}async function ut(_,z,I,ie){xa(_);let ce=(ie&&ie.flushSync)===!0,_e=y||g,ye=Xg(k.location,k.matches,v,I,z,ie?.relative),ke=cr(_e,ye,v),De=Ua(ke,_e,ye);if(De.active&&De.matches&&(ke=De.matches),!ke){_a(_,z,Vn(404,{pathname:ye}),{flushSync:ce});return}let{path:Me,submission:Ae,error:Ue}=xS(!0,ye,ie);if(Ue){_a(_,z,Ue,{flushSync:ce});return}let mt=s.getContext?await s.getContext():new pS,We=(ie&&ie.preventScrollReset)===!0;if(Ae&&Ra(Ae.formMethod)){await $a(_,z,Me,ke,mt,De.active,ce,We,Ae,ie&&ie.unstable_defaultShouldRevalidate);return}we.set(_,{routeId:z,path:Me}),await yn(_,z,Me,ke,mt,De.active,ce,We,Ae)}async function $a(_,z,I,ie,ce,_e,ye,ke,De,Me){vn(),we.delete(_);let Ae=k.fetchers.get(_);qa(_,uU(De,Ae),{flushSync:ye});let Ue=new AbortController,mt=ol(s.history,I,Ue.signal,De);if(_e){let Ct=await qs(ie,new URL(mt.url).pathname,mt.signal,_);if(Ct.type==="aborted")return;if(Ct.type==="error"){_a(_,z,Ct.error,{flushSync:ye});return}else if(Ct.matches)ie=Ct.matches;else{_a(_,z,Vn(404,{pathname:I}),{flushSync:ye});return}}let We=kf(ie,I);if(!We.route.action&&!We.route.lazy){let Ct=Vn(405,{method:De.formMethod,pathname:I,routeId:z});_a(_,z,Ct,{flushSync:ye});return}pe.set(_,Ue);let Rt=je,qt=ll(f,h,mt,ie,We,c,ce),ra=await en(mt,qt,ce,_),pt=ra[We.route.id];if(!pt){for(let Ct of qt)if(ra[Ct.route.id]){pt=ra[Ct.route.id];break}}if(mt.signal.aborted){pe.get(_)===Ue&&pe.delete(_);return}if(Mt.has(_)){if(Wr(pt)||gn(pt)){qa(_,vo(void 0));return}}else{if(Wr(pt))if(pe.delete(_),F>Rt){qa(_,vo(void 0));return}else return he.add(_),qa(_,Yc(De)),Ya(mt,pt,!1,{fetcherSubmission:De,preventScrollReset:ke});if(gn(pt)){_a(_,z,pt.error);return}}let ka=k.navigation.location||k.location,Gt=ol(s.history,ka,Ue.signal),Nn=y||g,Na=k.navigation.state!=="idle"?cr(Nn,k.navigation.location,v):k.matches;et(Na,"Didn't find any matches after fetcher action");let tn=++je;Ne.set(_,tn);let Is=Yc(De,pt.data);k.fetchers.set(_,Is);let{dsMatches:os,revalidatingFetchers:qn}=NS(Gt,ce,f,h,s.history,k,Na,De,ka,c,!1,fe,be,Mt,we,he,Nn,v,s.patchRoutesOnNavigation!=null,[We.route.id,pt],Me);qn.filter(Ct=>Ct.key!==_).forEach(Ct=>{let wo=Ct.key,dl=k.fetchers.get(wo),du=Yc(void 0,dl?dl.data:void 0);k.fetchers.set(wo,du),xa(wo),Ct.controller&&pe.set(wo,Ct.controller)}),Et({fetchers:new Map(k.fetchers)});let rs=()=>qn.forEach(Ct=>xa(Ct.key));Ue.signal.addEventListener("abort",rs);let{loaderResults:Gn,fetcherResults:st}=await Ft(os,qn,Gt,ce);if(Ue.signal.aborted)return;if(Ue.signal.removeEventListener("abort",rs),Ne.delete(_),pe.delete(_),qn.forEach(Ct=>pe.delete(Ct.key)),k.fetchers.has(_)){let Ct=vo(pt.data);k.fetchers.set(_,Ct)}let ia=Rf(Gn);if(ia)return Ya(Gt,ia.result,!1,{preventScrollReset:ke});if(ia=Rf(st),ia)return he.add(ia.key),Ya(Gt,ia.result,!1,{preventScrollReset:ke});let{loaderData:So,errors:is}=_S(k,Na,Gn,void 0,qn,st);w(tn),k.navigation.state==="loading"&&tn>F?(et(B,"Expected pending action"),q&&q.abort(),va(k.navigation.location,{matches:Na,loaderData:So,errors:is,fetchers:new Map(k.fetchers)})):(Et({errors:is,loaderData:US(k.loaderData,So,Na,is),fetchers:new Map(k.fetchers)}),fe=!1)}async function yn(_,z,I,ie,ce,_e,ye,ke,De){let Me=k.fetchers.get(_);qa(_,Yc(De,Me?Me.data:void 0),{flushSync:ye});let Ae=new AbortController,Ue=ol(s.history,I,Ae.signal);if(_e){let pt=await qs(ie,new URL(Ue.url).pathname,Ue.signal,_);if(pt.type==="aborted")return;if(pt.type==="error"){_a(_,z,pt.error,{flushSync:ye});return}else if(pt.matches)ie=pt.matches;else{_a(_,z,Vn(404,{pathname:I}),{flushSync:ye});return}}let mt=kf(ie,I);pe.set(_,Ae);let We=je,Rt=ll(f,h,Ue,ie,mt,c,ce),ra=(await en(Ue,Rt,ce,_))[mt.route.id];if(pe.get(_)===Ae&&pe.delete(_),!Ue.signal.aborted){if(Mt.has(_)){qa(_,vo(void 0));return}if(Wr(ra))if(F>We){qa(_,vo(void 0));return}else{he.add(_),await Ya(Ue,ra,!1,{preventScrollReset:ke});return}if(gn(ra)){_a(_,z,ra.error);return}qa(_,vo(ra.data))}}async function Ya(_,z,I,{submission:ie,fetcherSubmission:ce,preventScrollReset:_e,replace:ye}={}){I||($?.resolve(),$=null),z.response.headers.has("X-Remix-Revalidate")&&(fe=!0);let ke=z.response.headers.get("Location");et(ke,"Expected a Location header on the redirect Response"),ke=RS(ke,new URL(_.url),v,s.history);let De=Wc(k.location,ke,{_isRedirect:!0});if(l){let Rt=!1;if(z.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(Wg(ke)){const qt=hw(ke,!0);Rt=qt.origin!==o.location.origin||zn(qt.pathname,v)==null}if(Rt){ye?o.location.replace(ke):o.location.assign(ke);return}}q=null;let Me=ye===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ae,formAction:Ue,formEncType:mt}=k.navigation;!ie&&!ce&&Ae&&Ue&&mt&&(ie=OS(k.navigation));let We=ie||ce;if(H_.has(z.response.status)&&We&&Ra(We.formMethod))await Dt(Me,De,{submission:{...We,formAction:ke},preventScrollReset:_e||ae,enableViewTransition:I?P:void 0});else{let Rt=zg(De,ie);await Dt(Me,De,{overrideNavigation:Rt,fetcherSubmission:ce,preventScrollReset:_e||ae,enableViewTransition:I?P:void 0})}}async function en(_,z,I,ie){let ce,_e={};try{ce=await Z_(D,_,z,ie,I,!1)}catch(ye){return z.filter(ke=>ke.shouldLoad).forEach(ke=>{_e[ke.route.id]={type:"error",error:ye}}),_e}if(_.signal.aborted)return _e;if(!Ra(_.method))for(let ye of z){if(ce[ye.route.id]?.type==="error")break;!ce.hasOwnProperty(ye.route.id)&&!k.loaderData.hasOwnProperty(ye.route.id)&&(!k.errors||!k.errors.hasOwnProperty(ye.route.id))&&ye.shouldCallHandler()&&(ce[ye.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ye.route.id}`)})}for(let[ye,ke]of Object.entries(ce))if(oU(ke)){let De=ke.result;_e[ye]={type:"redirect",response:W_(De,_,ye,z,v)}}else _e[ye]=await K_(ke);return _e}async function Ft(_,z,I,ie){let ce=en(I,_,ie,null),_e=Promise.all(z.map(async De=>{if(De.matches&&De.match&&De.request&&De.controller){let Ae=(await en(De.request,De.matches,ie,De.key))[De.match.route.id];return{[De.key]:Ae}}else return Promise.resolve({[De.key]:{type:"error",error:Vn(404,{pathname:De.path})}})})),ye=await ce,ke=(await _e).reduce((De,Me)=>Object.assign(De,Me),{});return{loaderResults:ye,fetcherResults:ke}}function vn(){fe=!0,we.forEach((_,z)=>{pe.has(z)&&be.add(z),xa(z)})}function qa(_,z,I={}){k.fetchers.set(_,z),Et({fetchers:new Map(k.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function _a(_,z,I,ie={}){let ce=ur(k.matches,z);xn(_),Et({errors:{[ce.route.id]:I},fetchers:new Map(k.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function No(_){return tt.set(_,(tt.get(_)||0)+1),Mt.has(_)&&Mt.delete(_),k.fetchers.get(_)||B_}function Bs(_,z){xa(_,z?.reason),qa(_,vo(null))}function xn(_){let z=k.fetchers.get(_);pe.has(_)&&!(z&&z.state==="loading"&&Ne.has(_))&&xa(_),we.delete(_),Ne.delete(_),he.delete(_),Mt.delete(_),be.delete(_),k.fetchers.delete(_)}function $s(_){let z=(tt.get(_)||0)-1;z<=0?(tt.delete(_),Mt.add(_)):tt.set(_,z),Et({fetchers:new Map(k.fetchers)})}function xa(_,z){let I=pe.get(_);I&&(I.abort(z),pe.delete(_))}function Ys(_){for(let z of _){let I=No(z),ie=vo(I.data);k.fetchers.set(z,ie)}}function $n(){let _=[],z=!1;for(let I of he){let ie=k.fetchers.get(I);et(ie,`Expected fetcher: ${I}`),ie.state==="loading"&&(he.delete(I),_.push(I),z=!0)}return Ys(_),z}function w(_){let z=[];for(let[I,ie]of Ne)if(ie<_){let ce=k.fetchers.get(I);et(ce,`Expected fetcher: ${I}`),ce.state==="loading"&&(xa(I),Ne.delete(I),z.push(I))}return Ys(z),z.length>0}function V(_,z){let I=k.blockers.get(_)||$c;return Ye.get(_)!==z&&Ye.set(_,z),I}function oe(_){k.blockers.delete(_),Ye.delete(_)}function ue(_,z){let I=k.blockers.get(_)||$c;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 ie=new Map(k.blockers);ie.set(_,z),Et({blockers:ie})}function Ee({currentLocation:_,nextLocation:z,historyAction:I}){if(Ye.size===0)return;Ye.size>1&&Yt(!1,"A router only supports one blocker at a time");let ie=Array.from(Ye.entries()),[ce,_e]=ie[ie.length-1],ye=k.blockers.get(ce);if(!(ye&&ye.state==="proceeding")&&_e({currentLocation:_,nextLocation:z,historyAction:I}))return ce}function He(_){let z=Vn(404,{pathname:_}),I=y||g,{matches:ie,route:ce}=Df(I);return{notFoundMatches:ie,route:ce,error:z}}function Ce(_,z,I){if(j=_,L=z,H=I||null,!Q&&k.navigation===Vg){Q=!0;let ie=oa(k.location,k.matches);ie!=null&&Et({restoreScrollPosition:ie})}return()=>{j=null,L=null,H=null}}function at(_,z){return H&&H(_,z.map(ie=>f_(ie,k.loaderData)))||_.key}function qe(_,z){if(j&&L){let I=at(_,z);j[I]=L()}}function oa(_,z){if(j){let I=at(_,z),ie=j[I];if(typeof ie=="number")return ie}return null}function Ua(_,z,I){if(s.patchRoutesOnNavigation)if(_){if(Object.keys(_[0].params).length>0)return{active:!0,matches:Qc(z,I,v,!0)}}else return{active:!0,matches:Qc(z,I,v,!0)||[]};return{active:!1,matches:null}}async function qs(_,z,I,ie){if(!s.patchRoutesOnNavigation)return{type:"success",matches:_};let ce=_;for(;;){let _e=y==null,ye=y||g,ke=h;try{await s.patchRoutesOnNavigation({signal:I,path:z,matches:ce,fetcherKey:ie,patch:(Ae,Ue)=>{I.aborted||SS(Ae,Ue,ye,ke,f,!1)}})}catch(Ae){return{type:"error",error:Ae,partialMatches:ce}}finally{_e&&!I.aborted&&(g=[...g])}if(I.aborted)return{type:"aborted"};let De=cr(ye,z,v),Me=null;if(De){if(Object.keys(De[0].params).length===0)return{type:"success",matches:De};if(Me=Qc(ye,z,v,!0),!(Me&&ce.length<Me.length&&Gs(ce,Me.slice(0,ce.length))))return{type:"success",matches:De}}if(Me||(Me=Qc(ye,z,v,!0)),!Me||Gs(ce,Me))return{type:"success",matches:null};ce=Me}}function Gs(_,z){return _.length===z.length&&_.every((I,ie)=>I.route.id===z[ie].route.id)}function si(_){h={},y=eu(_,f,void 0,h)}function Yn(_,z,I=!1){let ie=y==null;SS(_,z,y||g,h,f,I),ie&&(g=[...g],Et({}))}return W={get basename(){return v},get future(){return x},get state(){return k},get routes(){return g},get window(){return o},initialize:Ka,subscribe:Bn,enableScrollRestoration:Ce,navigate:Wa,fetch:ut,revalidate:ft,createHref:_=>s.history.createHref(_),encodeLocation:_=>s.history.encodeLocation(_),getFetcher:No,resetFetcher:Bs,deleteFetcher:$s,dispose:ve,getBlocker:V,deleteBlocker:oe,patchRoutes:Yn,_internalFetchControllers:pe,_internalSetRoutes:si,_internalSetStateDoNotUseOrYouWillBreakYourApp(_){Et(_)}},s.unstable_instrumentations&&(W=T_(W,s.unstable_instrumentations.map(_=>_.router).filter(Boolean))),W}function q_(s){return s!=null&&("formData"in s&&s.formData!=null||"body"in s&&s.body!==void 0)}function Xg(s,o,l,c,u,f){let h,g;if(u){h=[];for(let v of o)if(h.push(v),v.route.id===u){g=v;break}}else h=o,g=o[o.length-1];let y=su(c||".",Hf(h),zn(s.pathname,l)||s.pathname,f==="path");if(c==null&&(y.search=s.search,y.hash=s.hash),(c==null||c===""||c===".")&&g){let v=ab(y.search);if(g.route.index&&!v)y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index";else if(!g.route.index&&v){let D=new URLSearchParams(y.search),x=D.getAll("index");D.delete("index"),x.filter(R=>R).forEach(R=>D.append("index",R));let S=D.toString();y.search=S?`?${S}`:""}}return l!=="/"&&(y.pathname=D_({basename:l,pathname:y.pathname})),zs(y)}function xS(s,o,l){if(!l||!q_(l))return{path:o};if(l.formMethod&&!lU(l.formMethod))return{path:o,error:Vn(405,{method:l.formMethod})};let c=()=>({path:o,error:Vn(400,{type:"invalid-body"})}),f=(l.formMethod||"get").toUpperCase(),h=jw(o);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!Ra(f))return c();let x=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((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:x}}}else if(l.formEncType==="application/json"){if(!Ra(f))return c();try{let x=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:o,submission:{formMethod:f,formAction:h,formEncType:l.formEncType,formData:void 0,json:x,text:void 0}}}catch{return c()}}}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=CS(g);else if(l.body==null)g=new URLSearchParams,y=new FormData;else try{g=new URLSearchParams(l.body),y=CS(g)}catch{return c()}let v={formMethod:f,formAction:h,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(Ra(v.formMethod))return{path:o,submission:v};let D=xo(o);return s&&D.search&&ab(D.search)&&g.append("index",""),D.search=`?${g}`,{path:zs(D),submission:v}}function NS(s,o,l,c,u,f,h,g,y,v,D,x,S,R,j,H,L,Q,Z,ne,de){let se=ne?gn(ne[1])?ne[1].error:ne[1].data:void 0,ee=u.createURL(f.location),W=u.createURL(y),k;if(D&&f.errors){let Se=Object.keys(f.errors)[0];k=h.findIndex(K=>K.route.id===Se)}else if(ne&&gn(ne[1])){let Se=ne[0];k=h.findIndex(K=>K.route.id===Se)-1}let B=ne?ne[1].statusCode:void 0,$=B&&B>=400,ae={currentUrl:ee,currentParams:f.matches[0]?.params||{},nextUrl:W,nextParams:h[0].params,...g,actionResult:se,actionStatus:B},q=ru(h),P=h.map((Se,K)=>{let{route:fe}=Se,be=null;if(k!=null&&K>k)be=!1;else if(fe.lazy)be=!0;else if(!eb(fe))be=!1;else if(D){let{shouldLoad:Ne}=Cw(fe,f.loaderData,f.errors);be=Ne}else G_(f.loaderData,f.matches[K],Se)&&(be=!0);if(be!==null)return Fg(l,c,s,q,Se,v,o,be);let pe=!1;typeof de=="boolean"?pe=de:$?pe=!1:(x||ee.pathname+ee.search===W.pathname+W.search||ee.search!==W.search||I_(f.matches[K],Se))&&(pe=!0);let je={...ae,defaultShouldRevalidate:pe},F=Pc(Se,je);return Fg(l,c,s,q,Se,v,o,F,je,de)}),le=[];return j.forEach((Se,K)=>{if(D||!h.some(we=>we.route.id===Se.routeId)||R.has(K))return;let fe=f.fetchers.get(K),be=fe&&fe.state!=="idle"&&fe.data===void 0,pe=cr(L,Se.path,Q);if(!pe){if(Z&&be)return;le.push({key:K,routeId:Se.routeId,path:Se.path,matches:null,match:null,request:null,controller:null});return}if(H.has(K))return;let je=kf(pe,Se.path),F=new AbortController,Ne=ol(u,Se.path,F.signal),he=null;if(S.has(K))S.delete(K),he=ll(l,c,Ne,pe,je,v,o);else if(be)x&&(he=ll(l,c,Ne,pe,je,v,o));else{let we;typeof de=="boolean"?we=de:$?we=!1:we=x;let tt={...ae,defaultShouldRevalidate:we};Pc(je,tt)&&(he=ll(l,c,Ne,pe,je,v,o,tt))}he&&le.push({key:K,routeId:Se.routeId,path:Se.path,matches:he,match:je,request:Ne,controller:F})}),{dsMatches:P,revalidatingFetchers:le}}function eb(s){return s.loader!=null||s.middleware!=null&&s.middleware.length>0}function Cw(s,o,l){if(s.lazy)return{shouldLoad:!0,renderFallback:!0};if(!eb(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 G_(s,o,l){let c=!o||l.route.id!==o.route.id,u=!s.hasOwnProperty(l.route.id);return c||u}function I_(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 SS(s,o,l,c,u,f){let h;if(s){let v=c[s];et(v,`No route found to patch children into: routeId = ${s}`),v.children||(v.children=[]),h=v.children}else h=l;let g=[],y=[];if(o.forEach(v=>{let D=h.find(x=>_w(v,x));D?y.push({existingRoute:D,newRoute:v}):g.push(v)}),g.length>0){let v=eu(g,u,[s||"_","patch",String(h?.length||"0")],c);h.push(...v)}if(f&&y.length>0)for(let v=0;v<y.length;v++){let{existingRoute:D,newRoute:x}=y[v],S=D,[R]=eu([x],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 _w(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=>_w(l,u)))??!1:!1}var wS=new WeakMap,Uw=({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=wS.get(u);h||(h={},wS.set(u,h));let g=h[s];if(g)return g;let y=(async()=>{let v=l_(s),x=u[s]!==void 0&&s!=="hasErrorBoundary";if(v)Yt(!v,"Route property "+s+" is not a supported lazy route property. This property will be ignored."),h[s]=Promise.resolve();else if(x)Yt(!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},ES=new WeakMap;function X_(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=ES.get(f);if(D)return{lazyRoutePromise:D,lazyHandlerPromise:D};let x=(async()=>{et(typeof s.lazy=="function","No lazy route function found");let S=await s.lazy(),R={};for(let j in S){let H=S[j];if(H===void 0)continue;let L=u_(j),Z=f[j]!==void 0&&j!=="hasErrorBoundary";L?Yt(!L,"Route property "+j+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Z?Yt(!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]=H}Object.assign(f,R),Object.assign(f,{...c(f),lazy:void 0})})();return ES.set(f,x),x.catch(()=>{}),{lazyRoutePromise:x,lazyHandlerPromise:x}}let h=Object.keys(s.lazy),g=[],y;for(let D of h){if(u&&u.includes(D))continue;let x=Uw({key:D,route:s,manifest:l,mapRouteProperties:c});x&&(g.push(x),D===o&&(y=x))}let v=g.length>0?Promise.all(g).then(()=>{}):void 0;return v?.catch(()=>{}),y?.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:y}}async function DS(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 F_(s){return s.matches.some(o=>o.route.middleware)?kw(s,()=>DS(s)):DS(s)}function kw(s,o){return Q_(s,o,c=>{if(iU(c))throw c;return c},nU,l);function l(c,u,f){if(f)return Promise.resolve(Object.assign(f.value,{[u]:{type:"error",result:c}}));{let{matches:h}=s,g=Math.min(Math.max(h.findIndex(v=>v.route.id===u),0),Math.max(h.findIndex(v=>v.shouldCallHandler()),0)),y=ur(h,h[g].route.id).route.id;return Promise.resolve({[y]:{type:"error",result:c}})}}}async function Q_(s,o,l,c,u){let{matches:f,request:h,params:g,context:y,unstable_pattern:v}=s,D=f.flatMap(S=>S.route.middleware?S.route.middleware.map(R=>[S.route.id,R]):[]);return await Tw({request:h,params:g,context:y,unstable_pattern:v},D,o,l,c,u)}async function Tw(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[v,D]=y,x,S=async()=>{if(x)throw new Error("You may only call `next()` once per middleware");try{return x={value:await Tw(s,o,l,c,u,f,h+1)},x.value}catch(R){return x={value:await f(R,v,x)},x.value}};try{let R=await D(s,S),j=R!=null?c(R):void 0;return u(j)?j:x?j??x.value:(x={value:await S()},x.value)}catch(R){return await f(R,v,x)}}function Ow(s,o,l,c,u){let f=Uw({key:"middleware",route:c.route,manifest:o,mapRouteProperties:s}),h=X_(c.route,Ra(l.method)?"action":"loader",o,s,u);return{middleware:f,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function Fg(s,o,l,c,u,f,h,g,y=null,v){let D=!1,x=Ow(s,o,l,u,f);return{...u,_lazyPromises:x,shouldLoad:g,shouldRevalidateArgs:y,shouldCallHandler(S){return D=!0,y?typeof v=="boolean"?Pc(u,{...y,defaultShouldRevalidate:v}):typeof S=="boolean"?Pc(u,{...y,defaultShouldRevalidate:S}):Pc(u,y):g},resolve(S){let{lazy:R,loader:j,middleware:H}=u.route,L=D||g||S&&!Ra(l.method)&&(R||j),Q=H&&H.length>0&&!j&&!R;return L&&(Ra(l.method)||!Q)?J_({request:l,unstable_pattern:c,match:u,lazyHandlerPromise:x?.handler,lazyRoutePromise:x?.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})}:Fg(s,o,l,ru(c),y,f,h,!0,g))}async function Z_(s,o,l,c,u,f){l.some(v=>v._lazyPromises?.middleware)&&await Promise.all(l.map(v=>v._lazyPromises?.middleware));let h={request:o,unstable_pattern:ru(l),params:l[0].params,context:u,matches:l},y=await s({...h,fetcherKey:c,runClientMiddleware:v=>{let D=h;return kw(D,()=>v({...D,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(v=>[v._lazyPromises?.handler,v._lazyPromises?.route]))}catch{}return y}async function J_({request:s,unstable_pattern:o,match:l,lazyHandlerPromise:c,lazyRoutePromise:u,handlerOverride:f,scopedContext:h}){let g,y,v=Ra(s.method),D=v?"action":"loader",x=S=>{let R,j=new Promise((Q,Z)=>R=Z);y=()=>R(),s.signal.addEventListener("abort",y);let H=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]:[]),L=(async()=>{try{return{type:"data",result:await(f?f(Z=>H(Z)):H())}}catch(Q){return{type:"error",result:Q}}})();return Promise.race([L,j])};try{let S=v?l.route.action:l.route.loader;if(c||u)if(S){let R,[j]=await Promise.all([x(S).catch(H=>{R=H}),c,u]);if(R!==void 0)throw R;g=j}else{await c;let R=v?l.route.action:l.route.loader;if(R)[g]=await Promise.all([x(R),u]);else if(D==="action"){let j=new URL(s.url),H=j.pathname+j.search;throw Vn(405,{method:s.method,pathname:H,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(S)g=await x(S);else{let R=new URL(s.url),j=R.pathname+R.search;throw Vn(404,{pathname:j})}}catch(S){return{type:"error",result:S}}finally{y&&s.signal.removeEventListener("abort",y)}return g}async function P_(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 K_(s){let{result:o,type:l}=s;if(tb(o)){let c;try{c=await P_(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"?TS(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:aU(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}:TS(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 W_(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"),!Wg(f)){let h=c.slice(0,c.findIndex(g=>g.route.id===l)+1);f=Xg(new URL(o.url),h,u,f),s.headers.set("Location",f)}return s}function RS(s,o,l,c){let u=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Wg(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=zn(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(jw(o)).toString(),f={signal:l};if(c&&Ra(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 CS(s){let o=new FormData;for(let[l,c]of s.entries())o.append(l,c);return o}function eU(s,o,l,c=!1,u=!1){let f={},h=null,g,y=!1,v={},D=l&&gn(l[1])?l[1].error:void 0;return s.forEach(x=>{if(!(x.route.id in o))return;let S=x.route.id,R=o[S];if(et(!Wr(R),"Cannot handle redirect results in processLoaderData"),gn(R)){let j=R.error;if(D!==void 0&&(j=D,D=void 0),h=h||{},u)h[S]=j;else{let H=ur(s,S);h[H.route.id]==null&&(h[H.route.id]=j)}c||(f[S]=Rw),y||(y=!0,g=tu(R.error)?R.error.status:500),R.headers&&(v[S]=R.headers)}else f[S]=R.data,R.statusCode&&R.statusCode!==200&&!y&&(g=R.statusCode),R.headers&&(v[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:v}}function _S(s,o,l,c,u,f){let{loaderData:h,errors:g}=eU(o,l,c);return u.filter(y=>!y.matches||y.matches.some(v=>v.shouldLoad)).forEach(y=>{let{key:v,match:D,controller:x}=y;if(x&&x.signal.aborted)return;let S=f[v];if(et(S,"Did not find corresponding fetcher result"),gn(S)){let R=ur(s.matches,D?.route.id);g&&g[R.route.id]||(g={...g,[R.route.id]:S.error}),s.fetchers.delete(v)}else if(Wr(S))et(!1,"Unhandled fetcher revalidation redirect");else{let R=vo(S.data);s.fetchers.set(v,R)}}),{loaderData:h,errors:g}}function US(s,o,l,c){let u=Object.entries(o).filter(([,f])=>f!==Rw).reduce((f,[h,g])=>(f[h]=g,f),{});for(let f of l){let h=f.route.id;if(!o.hasOwnProperty(h)&&s.hasOwnProperty(h)&&f.route.loader&&(u[h]=s[h]),c&&c.hasOwnProperty(h))break}return u}function kS(s){return s?gn(s[1])?{actionData:{}}:{actionData:{[s[0]]:s[1].data}}:{}}function ur(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 Vn(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(Wr(u))return{key:c,result:u}}}function jw(s){let o=typeof s=="string"?xo(s):s;return zs({...o,hash:""})}function tU(s,o){return s.pathname!==o.pathname||s.search!==o.search?!1:s.hash===""?o.hash!=="":s.hash===o.hash?!0:o.hash!==""}function aU(s){return new ou(s.init?.status??500,s.init?.statusText??"Internal Server Error",s.data)}function nU(s){return s!=null&&typeof s=="object"&&Object.entries(s).every(([o,l])=>typeof o=="string"&&sU(l))}function sU(s){return s!=null&&typeof s=="object"&&"type"in s&&"result"in s&&(s.type==="data"||s.type==="error")}function oU(s){return tb(s.result)&&Ew.has(s.result.status)}function gn(s){return s.type==="error"}function Wr(s){return(s&&s.type)==="redirect"}function TS(s){return typeof s=="object"&&s!=null&&"type"in s&&"data"in s&&"init"in s&&s.type==="DataWithResponseInit"}function tb(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.headers=="object"&&typeof s.body<"u"}function rU(s){return Ew.has(s)}function iU(s){return tb(s)&&rU(s.status)&&s.headers.has("Location")}function lU(s){return L_.has(s.toUpperCase())}function Ra(s){return V_.has(s.toUpperCase())}function ab(s){return new URLSearchParams(s).getAll("index").some(o=>o==="")}function kf(s,o){let l=typeof o=="string"?xo(o).search:o.search;if(s[s.length-1].route.index&&ab(l||""))return s[s.length-1];let c=vw(s);return c[c.length-1]}function OS(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 cU(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 Yc(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 uU(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 dU(s,o){try{let l=s.sessionStorage.getItem(Dw);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 fU(s,o){if(o.size>0){let l={};for(let[c,u]of o)l[c]=[...u];try{s.sessionStorage.setItem(Dw,JSON.stringify(l))}catch(c){Yt(!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 Aw=E.createContext(!1);function mU(){return E.useContext(Aw)}var nb=E.createContext({isTransitioning:!1});nb.displayName="ViewTransition";var Mw=E.createContext(new Map);Mw.displayName="Fetchers";var pU=E.createContext(null);pU.displayName="Await";var bn=E.createContext(null);bn.displayName="Navigation";var Bf=E.createContext(null);Bf.displayName="Location";var Ln=E.createContext({outlet:null,matches:[],isDataRoute:!1});Ln.displayName="Route";var sb=E.createContext(null);sb.displayName="RouteError";var Vw="REACT_ROUTER_ERROR",hU="REDIRECT",gU="ROUTE_ERROR_RESPONSE";function bU(s){if(s.startsWith(`${Vw}:${hU}:{`))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 yU(s){if(s.startsWith(`${Vw}:${gU}:{`))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 vU(s,{relative:o}={}){et(cl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:c}=E.useContext(bn),{hash:u,pathname:f,search:h}=lu(s,{relative:o}),g=f;return l!=="/"&&(g=f==="/"?l:as([l,f])),c.createHref({pathname:g,search:h,hash:u})}function cl(){return E.useContext(Bf)!=null}function ns(){return et(cl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Bf).location}var zw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Lw(s){E.useContext(bn).static||E.useLayoutEffect(s)}function fr(){let{isDataRoute:s}=E.useContext(Ln);return s?AU():xU()}function xU(){et(cl(),"useNavigate() may be used only in the context of a <Router> component.");let s=E.useContext(ni),{basename:o,navigator:l}=E.useContext(bn),{matches:c}=E.useContext(Ln),{pathname:u}=ns(),f=JSON.stringify(Hf(c)),h=E.useRef(!1);return Lw(()=>{h.current=!0}),E.useCallback((y,v={})=>{if(Yt(h.current,zw),!h.current)return;if(typeof y=="number"){l.go(y);return}let D=su(y,JSON.parse(f),u,v.relative==="path");s==null&&o!=="/"&&(D.pathname=D.pathname==="/"?o:as([o,D.pathname])),(v.replace?l.replace:l.push)(D,v.state,v)},[o,l,f,u,s])}var NU=E.createContext(null);function SU(s){let o=E.useContext(Ln).outlet;return E.useMemo(()=>o&&E.createElement(NU.Provider,{value:s},o),[o,s])}function $f(){let{matches:s}=E.useContext(Ln),o=s[s.length-1];return o?o.params:{}}function lu(s,{relative:o}={}){let{matches:l}=E.useContext(Ln),{pathname:c}=ns(),u=JSON.stringify(Hf(l));return E.useMemo(()=>su(s,JSON.parse(u),c,o==="path"),[s,u,c,o])}function wU(s,o,l){et(cl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=E.useContext(bn),{matches:u}=E.useContext(Ln),f=u[u.length-1],h=f?f.params:{},g=f?f.pathname:"/",y=f?f.pathnameBase:"/",v=f&&f.route;{let L=v&&v.path||"";Bw(g,!v||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
237
|
+
|
|
238
|
+
Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let D=ns(),x;x=D;let S=x.pathname||"/",R=S;if(y!=="/"){let L=y.replace(/^\//,"").split("/");R="/"+S.replace(/^\//,"").split("/").slice(L.length).join("/")}let j=cr(s,{pathname:R});return Yt(v||j!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Yt(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 "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),_U(j&&j.map(L=>Object.assign({},L,{params:Object.assign({},h,L.params),pathname:as([y,c.encodeLocation?c.encodeLocation(L.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?y:as([y,c.encodeLocation?c.encodeLocation(L.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),u,l)}function EU(){let s=jU(),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 DU=E.createElement(EU,null),Hw=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=yU(s.digest);l&&(s=l)}let o=s!==void 0?E.createElement(Ln.Provider,{value:this.props.routeContext},E.createElement(sb.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?E.createElement(RU,{error:s},o):o}};Hw.contextType=Aw;var Lg=new WeakMap;function RU({children:s,error:o}){let{basename:l}=E.useContext(bn);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let c=bU(o.digest);if(c){let u=Lg.get(o);if(u)throw u;let f=Nw(c.location,l);if(xw&&!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(Ln.Provider,{value:s},l)}function _U(s,o=[],l){let c=l?.state;if(s==null){if(!c)return null;if(c.errors)s=c.matches;else if(o.length===0&&!c.initialized&&c.matches.length>0)s=c.matches;else return null}let u=s,f=c?.errors;if(f!=null){let D=u.findIndex(x=>x.route.id&&f?.[x.route.id]!==void 0);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 x=u[D];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=D),x.route.id){let{loaderData:S,errors:R}=c,j=x.route.loader&&!S.hasOwnProperty(x.route.id)&&(!R||R[x.route.id]===void 0);if(x.route.lazy||j){l.isStatic&&(h=!0),g>=0?u=u.slice(0,g+1):u=[u[0]];break}}}}let y=l?.onError,v=c&&y?(D,x)=>{y(D,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:ru(c.matches),errorInfo:x})}:void 0;return u.reduceRight((D,x,S)=>{let R,j=!1,H=null,L=null;c&&(R=f&&x.route.id?f[x.route.id]:void 0,H=x.route.errorElement||DU,h&&(g<0&&S===0?(Bw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,L=null):g===S&&(j=!0,L=x.route.hydrateFallbackElement||null)));let Q=o.concat(u.slice(0,S+1)),Z=()=>{let ne;return R?ne=H:j?ne=L:x.route.Component?ne=E.createElement(x.route.Component,null):x.route.element?ne=x.route.element:ne=D,E.createElement(CU,{match:x,routeContext:{outlet:D,matches:Q,isDataRoute:c!=null},children:ne})};return c&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?E.createElement(Hw,{location:c.location,revalidation:c.revalidation,component:H,error:R,children:Z(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:v}):Z()},null)}function ob(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function UU(s){let o=E.useContext(ni);return et(o,ob(s)),o}function kU(s){let o=E.useContext(iu);return et(o,ob(s)),o}function TU(s){let o=E.useContext(Ln);return et(o,ob(s)),o}function rb(s){let o=TU(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 OU(){return rb("useRouteId")}function jU(){let s=E.useContext(sb),o=kU("useRouteError"),l=rb("useRouteError");return s!==void 0?s:o.errors?.[l]}function AU(){let{router:s}=UU("useNavigate"),o=rb("useNavigate"),l=E.useRef(!1);return Lw(()=>{l.current=!0}),E.useCallback(async(u,f={})=>{Yt(l.current,zw),l.current&&(typeof u=="number"?await s.navigate(u):await s.navigate(u,{fromRouteId:o,...f}))},[s,o])}var AS={};function Bw(s,o,l){!o&&!AS[s]&&(AS[s]=!0,Yt(!1,l))}var MS={};function VS(s,o){!s&&!MS[o]&&(MS[o]=!0,console.warn(o))}var MU="useOptimistic",zS=dC[MU],VU=()=>{};function zU(s){return zS?zS(s):[s,VU]}function LU(s){let o={hasErrorBoundary:s.hasErrorBoundary||s.ErrorBoundary!=null||s.errorElement!=null};return s.Component&&(s.element&&Yt(!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&&Yt(!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&&Yt(!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 HU=["HydrateFallback","hydrateFallbackElement"],BU=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 $U({router:s,flushSync:o,onError:l,unstable_useTransitions:c}){c=mU()||c;let[f,h]=E.useState(s.state),[g,y]=zU(f),[v,D]=E.useState(),[x,S]=E.useState({isTransitioning:!1}),[R,j]=E.useState(),[H,L]=E.useState(),[Q,Z]=E.useState(),ne=E.useRef(new Map),de=E.useCallback((k,{deletedFetchers:B,newErrors:$,flushSync:ae,viewTransitionOpts:q})=>{$&&l&&Object.values($).forEach(le=>l(le,{location:k.location,params:k.matches[0]?.params??{},unstable_pattern:ru(k.matches)})),k.fetchers.forEach((le,Se)=>{le.data!==void 0&&ne.current.set(Se,le.data)}),B.forEach(le=>ne.current.delete(le)),VS(ae===!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 P=s.window!=null&&s.window.document!=null&&typeof s.window.document.startViewTransition=="function";if(VS(q==null||P,"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."),!q||!P){o&&ae?o(()=>h(k)):c===!1?h(k):E.startTransition(()=>{c===!0&&y(le=>LS(le,k)),h(k)});return}if(o&&ae){o(()=>{H&&(R?.resolve(),H.skipTransition()),S({isTransitioning:!0,flushSync:!0,currentLocation:q.currentLocation,nextLocation:q.nextLocation})});let le=s.window.document.startViewTransition(()=>{o(()=>h(k))});le.finished.finally(()=>{o(()=>{j(void 0),L(void 0),D(void 0),S({isTransitioning:!1})})}),o(()=>L(le));return}H?(R?.resolve(),H.skipTransition(),Z({state:k,currentLocation:q.currentLocation,nextLocation:q.nextLocation})):(D(k),S({isTransitioning:!0,flushSync:!1,currentLocation:q.currentLocation,nextLocation:q.nextLocation}))},[s.window,o,H,R,c,y,l]);E.useLayoutEffect(()=>s.subscribe(de),[s,de]),E.useEffect(()=>{x.isTransitioning&&!x.flushSync&&j(new BU)},[x]),E.useEffect(()=>{if(R&&v&&s.window){let k=v,B=R.promise,$=s.window.document.startViewTransition(async()=>{c===!1?h(k):E.startTransition(()=>{c===!0&&y(ae=>LS(ae,k)),h(k)}),await B});$.finished.finally(()=>{j(void 0),L(void 0),D(void 0),S({isTransitioning:!1})}),L($)}},[v,R,s.window,c,y]),E.useEffect(()=>{R&&v&&g.location.key===v.location.key&&R.resolve()},[R,H,g.location,v]),E.useEffect(()=>{!x.isTransitioning&&Q&&(D(Q.state),S({isTransitioning:!0,flushSync:!1,currentLocation:Q.currentLocation,nextLocation:Q.nextLocation}),Z(void 0))},[x.isTransitioning,Q]);let se=E.useMemo(()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:k=>s.navigate(k),push:(k,B,$)=>s.navigate(k,{state:B,preventScrollReset:$?.preventScrollReset}),replace:(k,B,$)=>s.navigate(k,{replace:!0,state:B,preventScrollReset:$?.preventScrollReset})}),[s]),ee=s.basename||"/",W=E.useMemo(()=>({router:s,navigator:se,static:!1,basename:ee,onError:l}),[s,se,ee,l]);return E.createElement(E.Fragment,null,E.createElement(ni.Provider,{value:W},E.createElement(iu.Provider,{value:g},E.createElement(Mw.Provider,{value:ne.current},E.createElement(nb.Provider,{value:x},E.createElement(GU,{basename:ee,location:g.location,navigationType:g.historyAction,navigator:se,unstable_useTransitions:c},E.createElement(YU,{routes:s.routes,future:s.future,state:g,isStatic:!1,onError:l})))))),null)}function LS(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 YU=E.memo(qU);function qU({routes:s,future:o,state:l,isStatic:c,onError:u}){return wU(s,void 0,{state:l,isStatic:c,onError:u})}function HS({to:s,replace:o,state:l,relative:c}){et(cl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=E.useContext(bn);Yt(!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(Ln),{pathname:h}=ns(),g=fr(),y=su(s,Hf(f),h,c==="path"),v=JSON.stringify(y);return E.useEffect(()=>{g(JSON.parse(v),{replace:o,state:l,relative:c})},[g,v,c,o,l]),null}function $w(s){return SU(s.context)}function GU({basename:s="/",children:o=null,location:l,navigationType:c="POP",navigator:u,static:f=!1,unstable_useTransitions:h}){et(!cl(),"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=xo(l));let{pathname:v="/",search:D="",hash:x="",state:S=null,key:R="default",unstable_mask:j}=l,H=E.useMemo(()=>{let L=zn(v,g);return L==null?null:{location:{pathname:L,search:D,hash:x,state:S,key:R,unstable_mask:j},navigationType:c}},[g,v,D,x,S,R,c,j]);return Yt(H!=null,`<Router basename="${g}"> is not able to match the URL "${v}${D}${x}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:E.createElement(bn.Provider,{value:y},E.createElement(Bf.Provider,{children:o,value:H}))}var Tf="get",Of="application/x-www-form-urlencoded";function Yf(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function IU(s){return Yf(s)&&s.tagName.toLowerCase()==="button"}function XU(s){return Yf(s)&&s.tagName.toLowerCase()==="form"}function FU(s){return Yf(s)&&s.tagName.toLowerCase()==="input"}function QU(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function ZU(s,o){return s.button===0&&(!o||o==="_self")&&!QU(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 JU(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 Cf=null;function PU(){if(Cf===null)try{new FormData(document.createElement("form"),0),Cf=!1}catch{Cf=!0}return Cf}var KU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hg(s){return s!=null&&!KU.has(s)?(Yt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Of}"`),null):s}function WU(s,o){let l,c,u,f,h;if(XU(s)){let g=s.getAttribute("action");c=g?zn(g,o):null,l=s.getAttribute("method")||Tf,u=Hg(s.getAttribute("enctype"))||Of,f=new FormData(s)}else if(IU(s)||FU(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?zn(y,o):null,l=s.getAttribute("formmethod")||g.getAttribute("method")||Tf,u=Hg(s.getAttribute("formenctype"))||Hg(g.getAttribute("enctype"))||Of,f=new FormData(g,s),!PU()){let{name:v,type:D,value:x}=s;if(D==="image"){let S=v?`${v}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else v&&f.append(v,x)}}else{if(Yf(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=Tf,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 ib(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function ek(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&&zn(u.pathname,o)==="/"?u.pathname=`${o.replace(/\/$/,"")}/_root.${c}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${c}`,u}async function tk(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 ak(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 nk(s,o,l){let c=await Promise.all(s.map(async u=>{let f=o.routes[u.route.id];if(f){let h=await tk(f,l);return h.links?h.links():[]}return[]}));return ik(c.flat(1).filter(ak).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function BS(s,o,l,c,u,f){let h=(y,v)=>l[v]?y.route.id!==l[v].route.id:!0,g=(y,v)=>l[v].pathname!==y.pathname||l[v].route.path?.endsWith("*")&&l[v].params["*"]!==y.params["*"];return f==="assets"?o.filter((y,v)=>h(y,v)||g(y,v)):f==="data"?o.filter((y,v)=>{let D=c.routes[y.route.id];if(!D||!D.hasLoader)return!1;if(h(y,v)||g(y,v))return!0;if(y.route.shouldRevalidate){let x=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 x=="boolean")return x}return!0}):[]}function sk(s,o,{includeHydrateFallback:l}={}){return ok(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 ok(s){return[...new Set(s)]}function rk(s){let o={},l=Object.keys(s).sort();for(let c of l)o[c]=s[c];return o}function ik(s,o){let l=new Set;return new Set(o),s.reduce((c,u)=>{let f=JSON.stringify(rk(u));return l.has(f)||(l.add(f),c.push({key:f,link:u})),c},[])}function Yw(){let s=E.useContext(ni);return ib(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function lk(){let s=E.useContext(iu);return ib(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var lb=E.createContext(void 0);lb.displayName="FrameworkContext";function qw(){let s=E.useContext(lb);return ib(s,"You must render this element inside a <HydratedRouter> element"),s}function ck(s,o){let l=E.useContext(lb),[c,u]=E.useState(!1),[f,h]=E.useState(!1),{onFocus:g,onBlur:y,onMouseEnter:v,onMouseLeave:D,onTouchStart:x}=o,S=E.useRef(null);E.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let H=Q=>{Q.forEach(Z=>{h(Z.isIntersecting)})},L=new IntersectionObserver(H,{threshold:.5});return S.current&&L.observe(S.current),()=>{L.disconnect()}}},[s]),E.useEffect(()=>{if(c){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[c]);let R=()=>{u(!0)},j=()=>{u(!1),h(!1)};return l?s!=="intent"?[f,S,{}]:[f,S,{onFocus:qc(g,R),onBlur:qc(y,j),onMouseEnter:qc(v,R),onMouseLeave:qc(D,j),onTouchStart:qc(x,R)}]:[!1,S,{}]}function qc(s,o){return l=>{s&&s(l),l.defaultPrevented||o(l)}}function uk({page:s,...o}){let{router:l}=Yw(),c=E.useMemo(()=>cr(l.routes,s,l.basename),[l.routes,s,l.basename]);return c?E.createElement(fk,{page:s,matches:c,...o}):null}function dk(s){let{manifest:o,routeModules:l}=qw(),[c,u]=E.useState([]);return E.useEffect(()=>{let f=!1;return nk(s,o,l).then(h=>{f||u(h)}),()=>{f=!0}},[s,o,l]),c}function fk({page:s,matches:o,...l}){let c=ns(),{future:u,manifest:f,routeModules:h}=qw(),{basename:g}=Yw(),{loaderData:y,matches:v}=lk(),D=E.useMemo(()=>BS(s,o,v,f,c,"data"),[s,o,v,f,c]),x=E.useMemo(()=>BS(s,o,v,f,c,"assets"),[s,o,v,f,c]),S=E.useMemo(()=>{if(s===c.pathname+c.search+c.hash)return[];let H=new Set,L=!1;if(o.forEach(Z=>{let ne=f.routes[Z.route.id];!ne||!ne.hasLoader||(!D.some(de=>de.route.id===Z.route.id)&&Z.route.id in y&&h[Z.route.id]?.shouldRevalidate||ne.hasClientLoader?L=!0:H.add(Z.route.id))}),H.size===0)return[];let Q=ek(s,g,u.unstable_trailingSlashAwareDataRequests,"data");return L&&H.size>0&&Q.searchParams.set("_routes",o.filter(Z=>H.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(()=>sk(x,f),[x,f]),j=dk(x);return E.createElement(E.Fragment,null,S.map(H=>E.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...l})),R.map(H=>E.createElement("link",{key:H,rel:"modulepreload",href:H,...l})),j.map(({key:H,link:L})=>E.createElement("link",{key:H,nonce:l.nonce,...L,crossOrigin:L.crossOrigin??l.crossOrigin})))}function mk(...s){return o=>{s.forEach(l=>{typeof l=="function"?l(o):l!=null&&(l.current=o)})}}var pk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{pk&&(window.__reactRouterVersion="7.13.1")}catch{}function hk(s,o){return Y_({basename:o?.basename,getContext:o?.getContext,future:o?.future,history:s_({window:o?.window}),hydrationData:gk(),routes:s,mapRouteProperties:LU,hydrationRouteProperties:HU,dataStrategy:o?.dataStrategy,patchRoutesOnNavigation:o?.patchRoutesOnNavigation,window:o?.window,unstable_instrumentations:o?.unstable_instrumentations}).initialize()}function gk(){let s=window?.__staticRouterHydrationData;return s&&s.errors&&(s={...s,errors:bk(s.errors)}),s}function bk(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 Gw=/^(?:[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:v,to:D,preventScrollReset:x,viewTransition:S,unstable_defaultShouldRevalidate:R,...j},H){let{basename:L,navigator:Q,unstable_useTransitions:Z}=E.useContext(bn),ne=typeof D=="string"&&Gw.test(D),de=Nw(D,L);D=de.to;let se=vU(D,{relative:u}),ee=ns(),W=null;if(g){let Se=su(g,[],ee.unstable_mask?ee.unstable_mask.pathname:"/",!0);L!=="/"&&(Se.pathname=Se.pathname==="/"?L:as([L,Se.pathname])),W=Q.createHref(Se)}let[k,B,$]=ck(c,j),ae=xk(D,{replace:h,unstable_mask:g,state:y,target:v,preventScrollReset:x,relative:u,viewTransition:S,unstable_defaultShouldRevalidate:R,unstable_useTransitions:Z});function q(Se){o&&o(Se),Se.defaultPrevented||ae(Se)}let P=!(de.isExternal||f),le=E.createElement("a",{...j,...$,href:(P?W:void 0)||de.absoluteURL||se,onClick:P?q:o,ref:mk(H,B),target:v,"data-discover":!ne&&l==="render"?"true":void 0});return k&&!ne?E.createElement(E.Fragment,null,le,E.createElement(uk,{page:se})):le});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,...v},D){let x=lu(h,{relative:v.relative}),S=ns(),R=E.useContext(iu),{navigator:j,basename:H}=E.useContext(bn),L=R!=null&&Rk(x)&&g===!0,Q=j.encodeLocation?j.encodeLocation(x).pathname:x.pathname,Z=S.pathname,ne=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;l||(Z=Z.toLowerCase(),ne=ne?ne.toLowerCase():null,Q=Q.toLowerCase()),ne&&H&&(ne=zn(ne,H)||ne);const de=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let se=Z===Q||!u&&Z.startsWith(Q)&&Z.charAt(de)==="/",ee=ne!=null&&(ne===Q||!u&&ne.startsWith(Q)&&ne.charAt(Q.length)==="/"),W={isActive:se,isPending:ee,isTransitioning:L},k=se?o:void 0,B;typeof c=="function"?B=c(W):B=[c,se?"active":null,ee?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let $=typeof f=="function"?f(W):f;return E.createElement(Pa,{...v,"aria-current":k,className:B,ref:D,style:$,to:h,viewTransition:g},typeof y=="function"?y(W):y)});au.displayName="NavLink";var yk=E.forwardRef(({discover:s="render",fetcherKey:o,navigate:l,reloadDocument:c,replace:u,state:f,method:h=Tf,action:g,onSubmit:y,relative:v,preventScrollReset:D,viewTransition:x,unstable_defaultShouldRevalidate:S,...R},j)=>{let{unstable_useTransitions:H}=E.useContext(bn),L=Ek(),Q=Dk(g,{relative:v}),Z=h.toLowerCase()==="get"?"get":"post",ne=typeof g=="string"&&Gw.test(g),de=se=>{if(y&&y(se),se.defaultPrevented)return;se.preventDefault();let ee=se.nativeEvent.submitter,W=ee?.getAttribute("formmethod")||h,k=()=>L(ee||se.currentTarget,{fetcherKey:o,method:W,navigate:l,replace:u,state:f,relative:v,preventScrollReset:D,viewTransition:x,unstable_defaultShouldRevalidate:S});H&&l!==!1?E.startTransition(()=>k()):k()};return E.createElement("form",{ref:j,method:Z,action:Q,onSubmit:c?y:de,...R,"data-discover":!ne&&s==="render"?"true":void 0})});yk.displayName="Form";function vk(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Iw(s){let o=E.useContext(ni);return et(o,vk(s)),o}function xk(s,{target:o,replace:l,unstable_mask:c,state:u,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:y,unstable_useTransitions:v}={}){let D=fr(),x=ns(),S=lu(s,{relative:h});return E.useCallback(R=>{if(ZU(R,o)){R.preventDefault();let j=l!==void 0?l:zs(x)===zs(S),H=()=>D(s,{replace:j,unstable_mask:c,state:u,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:y});v?E.startTransition(()=>H()):H()}},[x,D,S,l,c,u,o,s,f,h,g,y,v])}function Nk(s){Yt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let o=E.useRef(Zg(s)),l=E.useRef(!1),c=ns(),u=E.useMemo(()=>JU(c.search,l.current?null:o.current),[c.search]),f=fr(),h=E.useCallback((g,y)=>{const v=Zg(typeof g=="function"?g(new URLSearchParams(u)):g);l.current=!0,f("?"+v,y)},[f,u]);return[u,h]}var Sk=0,wk=()=>`__${String(++Sk)}__`;function Ek(){let{router:s}=Iw("useSubmit"),{basename:o}=E.useContext(bn),l=OU(),c=s.fetch,u=s.navigate;return E.useCallback(async(f,h={})=>{let{action:g,method:y,encType:v,formData:D,body:x}=WU(f,o);if(h.navigate===!1){let S=h.fetcherKey||wk();await c(S,l,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:x,formMethod:h.method||y,formEncType:h.encType||v,flushSync:h.flushSync})}else await u(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:x,formMethod:h.method||y,formEncType:h.encType||v,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,u,o,l])}function Dk(s,{relative:o}={}){let{basename:l}=E.useContext(bn),c=E.useContext(Ln);et(c,"useFormAction must be used inside a RouteContext");let[u]=c.matches.slice(-1),f={...lu(s||".",{relative:o})},h=ns();if(s==null){f.search=h.search;let g=new URLSearchParams(f.search),y=g.getAll("index");if(y.some(D=>D==="")){g.delete("index"),y.filter(x=>x).forEach(x=>g.append("index",x));let D=g.toString();f.search=D?`?${D}`:""}}return(!s||s===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(f.pathname=f.pathname==="/"?l:as([l,f.pathname])),zs(f)}function Rk(s,{relative:o}={}){let l=E.useContext(nb);et(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Iw("useViewTransitionState"),u=lu(s,{relative:o});if(!l.isTransitioning)return!1;let f=zn(l.currentLocation.pathname,c)||l.currentLocation.pathname,h=zn(l.nextLocation.pathname,c)||l.nextLocation.pathname;return zf(u.pathname,h)!=null||zf(u.pathname,f)!=null}const Xw=(...s)=>s.filter((o,l,c)=>!!o&&o.trim()!==""&&c.indexOf(o)===l).join(" ").trim();const Ck=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const _k=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,l,c)=>c?c.toUpperCase():l.toLowerCase());const $S=s=>{const o=_k(s);return o.charAt(0).toUpperCase()+o.slice(1)};var Uk={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 kk=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const Tk=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,...Uk,width:o,height:o,stroke:s,strokeWidth:c?Number(l)*24/Number(o):l,className:Xw("lucide",u),...!f&&!kk(g)&&{"aria-hidden":"true"},...g},[...h.map(([v,D])=>E.createElement(v,D)),...Array.isArray(f)?f:[f]]));const ct=(s,o)=>{const l=E.forwardRef(({className:c,...u},f)=>E.createElement(Tk,{ref:f,iconNode:o,className:Xw(`lucide-${Ck($S(s))}`,`lucide-${s}`,c),...u}));return l.displayName=$S(s),l};const Ok=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],jk=ct("arrow-right",Ok);const Ak=[["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"}]],Mk=ct("boxes",Ak);const Vk=[["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"}]],zk=ct("brain",Vk);const Lk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qf=ct("check",Lk);const Hk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],cb=ct("chevron-down",Hk);const Bk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ti=ct("chevron-right",Bk);const $k=[["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"}]],Gf=ct("circle-alert",$k);const Yk=[["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"}]],Fw=ct("copy",Yk);const qk=[["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"}]],Gk=ct("database",qk);const Ik=[["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=ct("download",Ik);const Xk=[["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"}]],Fk=ct("ellipsis",Xk);const Qk=[["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"}]],Zk=ct("file-spreadsheet",Qk);const Jk=[["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"}]],If=ct("file-text",Jk);const Pk=[["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"}]],Qw=ct("file",Pk);const Kk=[["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"}]],Wk=ct("folder-input",Kk);const eT=[["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"}]],tT=ct("folder-open",eT);const aT=[["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"}]],Jg=ct("folder-plus",aT);const nT=[["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"}]],Vs=ct("folder",nT);const sT=[["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"}]],Pg=ct("git-branch",sT);const oT=[["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"}]],rT=ct("globe",oT);const iT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ub=ct("info",iT);const lT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ls=ct("loader-circle",lT);const cT=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],uT=ct("menu",cT);const dT=[["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"}]],fT=ct("monitor",dT);const mT=[["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"}]],pT=ct("moon",mT);const hT=[["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"}]],db=ct("package",hT);const gT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],bT=ct("panel-left",gT);const yT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Zw=ct("plus",yT);const vT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],xT=ct("search",vT);const NT=[["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"}]],ST=ct("settings",NT);const wT=[["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"}]],ET=ct("share-2",wT);const DT=[["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"}]],RT=ct("sparkles",DT);const CT=[["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"}]],_T=ct("sun",CT);const UT=[["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"}]],kT=ct("upload",UT);const TT=[["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"}]],OT=ct("users",TT);const jT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jw=ct("x",jT),qS=s=>{let o;const l=new Set,c=(v,D)=>{const x=typeof v=="function"?v(o):v;if(!Object.is(x,o)){const S=o;o=D??(typeof x!="object"||x===null)?x:Object.assign({},o,x),l.forEach(R=>R(o,S))}},u=()=>o,g={setState:c,getState:u,getInitialState:()=>y,subscribe:v=>(l.add(v),()=>l.delete(v))},y=o=s(c,u,g);return g},AT=(s=>s?qS(s):qS),MT=s=>s;function VT(s,o=MT){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 GS=s=>{const o=AT(s),l=c=>VT(o,c);return Object.assign(l,o),l},Xf=(s=>s?GS(s):GS),zT="/api/v1";class jf extends Error{constructor(o,l,c){super(c),this.status=o,this.code=l,this.name="ApiError"}}async function _f(s,o,l,c){let u=`${zT}${o}`;if(c){const g=new URLSearchParams(c).toString();g&&(u+=`?${g}`)}const f={method:s,headers:{"Content-Type":"application/json"}};l!==void 0&&(f.body=JSON.stringify(l));const h=await fetch(u,f);if(!h.ok){let g="UNKNOWN",y=h.statusText;try{const v=await h.json();v.code&&(g=v.code),v.message&&(y=v.message)}catch{}throw new jf(h.status,g,y)}return h.json()}const ya={get(s,o){return _f("GET",s,void 0,o)},post(s,o){return _f("POST",s,o)},put(s,o){return _f("PUT",s,o)},delete(s){return _f("DELETE",s)}},LT=3e4,HT=1e3,BT=3e4;class $T{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()}))},LT)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const o=Math.min(HT*2**this.reconnectAttempt,BT);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 $T,ai=Xf(s=>({status:"disconnected",onlineCount:0,connections:[],setStatus:o=>s({status:o}),fetchDaemonStatus:async()=>{try{const o=await ya.get("/daemons/status");s({onlineCount:o.online_count,connections:o.connections})}catch{}}})),YT=s=>s==="connecting"?"disconnected":s;Hs.onStatusChange(s=>{ai.getState().setStatus(YT(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 Ff="lib_cloud_default",Ca=Xf((s,o)=>({libraries:[],loading:!1,error:null,fetchLibraries:async()=>{s({loading:!0,error:null});try{const l=await ya.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 ya.post("/libraries",l);return s(u=>({libraries:[...u.libraries,c]})),c},deleteLibrary:async l=>{await ya.delete(`/libraries/${l}`),s(c=>({libraries:c.libraries.filter(u=>u.id!==l)}))},updateLibraryName:async(l,c)=>{const u=await ya.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 ya.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]},qT=s=>s.libraries.filter(o=>o.type==="daemon");Hs.on("ws:daemon:status",s=>{const o=s;o.lib_id&&Ca.getState()._updateLibraryOnline(o.lib_id,o.is_online),Ca.getState().fetchLibraries()});Hs.on("ws:daemon:connected",s=>{const o=s;o.lib_id&&Ca.getState()._updateLibraryOnline(o.lib_id,!0),Ca.getState().fetchLibraries()});Hs.on("ws:library:updated",s=>{const o=s;Ca.getState()._refreshLibrary(o.library_id)});const IS=s=>Symbol.iterator in s,XS=s=>"entries"in s,FS=(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},GT=(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 IT(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:IS(s)&&IS(o)?XS(s)&&XS(o)?FS(s,o):GT(s,o):FS({entries:()=>Object.entries(s)},{entries:()=>Object.entries(o)})}function ul(s){const o=rl.useRef(void 0);return l=>{const c=s(l);return IT(o.current,c)?o.current:o.current=c}}function Kg(){const{t:s}=Le(),o=ai(h=>h.onlineCount),l=ai(h=>h.connections.length);if(Ca(ul(qT)).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 p.jsxDEV("div",{className:"group relative flex items-center",title:f,children:[p.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),p.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 QS=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function XT(){const{t:s}=Le(),[o,l]=E.useState(!1);return p.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:[p.jsxDEV("div",{className:"flex h-14 items-center justify-between px-4",children:[p.jsxDEV(Pa,{to:"/",className:"flex items-center gap-2 text-c4a-text-primary",children:[p.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),p.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),p.jsxDEV("div",{className:"hidden items-center gap-6 md:flex",children:[p.jsxDEV("nav",{className:"flex items-center gap-4",children:QS.map(({to:c,labelKey:u})=>p.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),p.jsxDEV("div",{className:"flex items-center gap-3",children:[p.jsxDEV(Kg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:51,columnNumber:13},this),p.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),p.jsxDEV("button",{onClick:()=>l(!o),className:"text-c4a-text-secondary md:hidden",children:o?p.jsxDEV(Jw,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:23},this):p.jsxDEV(uT,{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&&p.jsxDEV("div",{className:"border-t border-c4a-border-subtle bg-c4a-bg-surface px-4 pb-4 pt-2 md:hidden",children:[p.jsxDEV("nav",{className:"flex flex-col gap-2",children:QS.map(({to:c,labelKey:u})=>p.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),p.jsxDEV("div",{className:"mt-2 border-t border-c4a-border-subtle pt-2",children:p.jsxDEV("div",{className:"flex items-center gap-3",children:[p.jsxDEV(Kg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:94,columnNumber:15},this),p.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 FT(s){return s==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s==="system"?"dark":s}function Pw(s){if(typeof window>"u")return;const o=FT(s);document.documentElement.setAttribute("data-theme",o),localStorage.setItem("theme",s)}function QT(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const Kw=Xf(s=>({theme:QT(),setTheme:o=>{Pw(o),s({theme:o})}}));let ZS=!1;function ZT(){if(ZS||typeof window>"u")return;ZS=!0;const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{const{theme:l}=Kw.getState();l==="system"&&Pw("system")};s.addEventListener("change",o)}ZT();const JT=[{mode:"light",icon:_T,labelKey:"footer.theme.light"},{mode:"dark",icon:pT,labelKey:"footer.theme.dark"},{mode:"system",icon:fT,labelKey:"footer.theme.system"}];function PT(){const{t:s}=Le(),{theme:o,setTheme:l}=Kw();return p.jsxDEV("div",{className:"flex items-center gap-1",children:JT.map(({mode:c,icon:u,labelKey:f})=>p.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:p.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 KT(){const{i18n:s}=Le(),o=()=>{const l=s.language==="en"?"zh":"en";s.changeLanguage(l)};return p.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 WT="_brandIcon_1c7st_1",eO="_iconPulse_1c7st_35",JS={brandIcon:WT,iconPulse:eO};function Ww(){const{t:s}=Le(),o=new Date().getFullYear();return p.jsxDEV("footer",{className:"border-t border-c4a-border-subtle bg-c4a-bg-base px-4 py-4",children:p.jsxDEV("div",{className:"flex items-end justify-between gap-4",children:[p.jsxDEV("div",{className:"hidden items-center gap-3 md:flex",children:[p.jsxDEV("div",{className:JS.brandIcon,children:p.jsxDEV("span",{className:JS.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),p.jsxDEV("div",{className:"flex flex-col",children:[p.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),p.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),p.jsxDEV("div",{className:"ml-auto flex flex-col items-end gap-2",children:[p.jsxDEV("div",{className:"flex items-center gap-2",children:[p.jsxDEV(PT,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:31,columnNumber:13},this),p.jsxDEV(KT,{},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),p.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 tO(){return p.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[p.jsxDEV(XT,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:8,columnNumber:7},this),p.jsxDEV("main",{className:"mx-auto flex w-full max-w-[1200px] flex-1 flex-col px-4",children:p.jsxDEV($w,{},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),p.jsxDEV(Ww,{},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 aO({onToggleSidebar:s}){const{t:o}=Le();return p.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:p.jsxDEV("div",{className:"relative flex h-14 items-center justify-between px-4",children:[p.jsxDEV("div",{className:"flex items-center gap-2",children:[s&&p.jsxDEV("button",{onClick:s,className:"text-c4a-text-secondary transition-colors duration-150 hover:text-c4a-text-primary md:hidden",children:p.jsxDEV(bT,{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),p.jsxDEV(Pa,{to:"/",className:"hidden items-center gap-2 text-c4a-text-primary md:flex",children:[p.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),p.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),p.jsxDEV(Pa,{to:"/",className:"absolute left-1/2 flex -translate-x-1/2 items-center gap-2 text-c4a-text-primary md:hidden",children:p.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),p.jsxDEV("div",{className:"flex items-center gap-3",children:[p.jsxDEV(Kg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:52,columnNumber:11},this),p.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 eE({currentName:s,onConfirm:o,onCancel:l,error:c}){const[u,f]=E.useState(s),h=E.useRef(null);E.useEffect(()=>{h.current?.select()},[]);const g=E.useCallback(()=>{const v=u.trim();v&&v!==s?o(v):l()},[u,s,o,l]),y=E.useCallback(v=>{v.key==="Enter"?(v.preventDefault(),g()):v.key==="Escape"&&l()},[g,l]);return p.jsxDEV("div",{className:"flex items-center gap-1",children:[p.jsxDEV("input",{ref:h,value:u,onChange:v=>f(v.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),p.jsxDEV("button",{onClick:v=>{v.stopPropagation(),g()},className:"rounded p-0.5 text-c4a-success hover:bg-c4a-bg-hover",children:p.jsxDEV(qf,{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),p.jsxDEV("button",{onClick:v=>{v.stopPropagation(),l()},className:"rounded p-0.5 text-c4a-error hover:bg-c4a-bg-hover",children:p.jsxDEV(Jw,{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&&p.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 tE({target:s,onConfirm:o,onCancel:l}){const{t:c}=Le(),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 p.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:f,children:p.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:[p.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),p.jsxDEV("div",{className:"mt-4 space-y-3 text-sm text-c4a-text-secondary",children:[s.type==="resource"&&p.jsxDEV(p.Fragment,{children:[p.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),p.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),p.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),p.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"&&p.jsxDEV(p.Fragment,{children:[p.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),p.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),p.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"&&p.jsxDEV(p.Fragment,{children:[p.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),p.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),p.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),p.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"&&p.jsxDEV(p.Fragment,{children:[p.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),p.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),p.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),p.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),p.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),p.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),p.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[p.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),p.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 aE="lib_cloud_default",nO=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"}`,sO=[{to:"/studio/modeling",icon:Mk,i18nKey:"studio.sidebar.modeling"},{to:"/studio/brain",icon:zk,i18nKey:"studio.sidebar.brain"},{to:"/studio/discovery",icon:xT,i18nKey:"studio.sidebar.discovery"},{to:"/studio/sharing",icon:ET,i18nKey:"studio.sidebar.sharing"},{to:"/studio/collaboration",icon:OT,i18nKey:"studio.sidebar.collaboration"},{to:"/studio/settings",icon:ST,i18nKey:"studio.sidebar.settings"}];function oO({state:s,onClose:o,onRename:l,onDelete:c}){const{t:u}=Le(),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===aE;return p.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:[p.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&&p.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 PS({onNavigate:s}){const{t:o}=Le(),l=ns(),c=fr(),u=Ca(ul(cu)),f=Ca(ae=>ae.updateLibraryName),h=Ca(ae=>ae.deleteLibrary),g=l.pathname.startsWith("/studio/sources")||l.pathname.startsWith("/studio/source/"),[y,v]=E.useState(g),[D,x]=E.useState(null),[S,R]=E.useState(null),[j,H]=E.useState(null),[L,Q]=E.useState(null);E.useEffect(()=>{g&&v(!0)},[g]);const Z=E.useCallback((ae,q)=>{ae.preventDefault(),x({x:ae.clientX,y:ae.clientY,library:q})},[]),ne=E.useCallback(()=>x(null),[]),de=E.useCallback(ae=>{R(ae.id),H(null)},[]),se=E.useCallback(async ae=>{if(S)try{await f(S,ae),R(null),H(null)}catch(q){const P=q instanceof Error?q.message:String(q);H(P)}},[S,f]),ee=E.useCallback(()=>{R(null),H(null)},[]),W=E.useCallback(ae=>{Q(ae)},[]),k=E.useCallback(async()=>{if(L){try{await h(L.id),l.pathname.includes(L.id)&&c("/studio/sources")}catch{}Q(null)}},[L,h,l.pathname,c]),B=E.useCallback(()=>{Q(null)},[]),$=ae=>ae.id===aE?o("sources.library.default_cloud_name"):ae.name;return p.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:[p.jsxDEV("nav",{className:"flex flex-col gap-1",children:[p.jsxDEV("div",{className:"group/sources",children:[p.jsxDEV("button",{onClick:()=>v(ae=>!ae),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:[p.jsxDEV(Gk,{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"),p.jsxDEV("span",{role:"button",tabIndex:0,onClick:ae=>{ae.stopPropagation(),c("/studio/sources/add-client"),s?.()},onKeyDown:ae=>{(ae.key==="Enter"||ae.key===" ")&&(ae.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:p.jsxDEV(Zw,{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),p.jsxDEV("span",{className:"ml-auto shrink-0",children:y?p.jsxDEV(cb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:251,columnNumber:17},this):p.jsxDEV(ti,{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&&p.jsxDEV("div",{className:"mt-0.5 flex flex-col gap-0.5",children:u.map(ae=>{const q=S===ae.id,P=$(ae);return q?p.jsxDEV("div",{className:"py-1.5 pl-8 pr-3",onClick:le=>le.stopPropagation(),children:p.jsxDEV(eE,{currentName:P,onConfirm:se,onCancel:ee,error:j},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:271,columnNumber:23},this)},ae.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:266,columnNumber:21},this):p.jsxDEV(au,{to:`/studio/sources/${ae.id}`,onClick:s,onContextMenu:le=>Z(le,ae),className:({isActive:le})=>`flex items-center gap-2 rounded py-1.5 pl-8 pr-3 font-mono text-xs tracking-tight transition-colors duration-150 ${le?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,children:[p.jsxDEV("span",{className:"truncate",children:P},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:295,columnNumber:21},this),ae.type==="daemon"&&p.jsxDEV("span",{className:`ml-auto h-[7px] w-[7px] shrink-0 rounded-full ${ae.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)]},ae.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),sO.map(({to:ae,icon:q,i18nKey:P})=>p.jsxDEV(au,{to:ae,onClick:s,className:({isActive:le})=>nO(le),children:[p.jsxDEV(q,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:318,columnNumber:13},this),o(P)]},ae,!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&&p.jsxDEV(oO,{state:D,onClose:ne,onRename:de,onDelete:W},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:325,columnNumber:9},this),L&&p.jsxDEV(tE,{target:{type:"client",name:$(L)},onConfirm:k,onCancel:B},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 rO(){const[s,o]=E.useState(!1);return E.useEffect(()=>{Ca.getState().fetchLibraries(),ai.getState().fetchDaemonStatus()},[]),E.useEffect(()=>Hs.onStatusChange(l=>{l==="connected"&&(Ca.getState().fetchLibraries(),ai.getState().fetchDaemonStatus())}),[]),p.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[p.jsxDEV(aO,{onToggleSidebar:()=>o(!s)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:30,columnNumber:7},this),p.jsxDEV("div",{className:"flex flex-1",children:[p.jsxDEV("div",{className:"hidden md:block",children:p.jsxDEV(PS,{},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&&p.jsxDEV(p.Fragment,{children:[p.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),p.jsxDEV("div",{className:"fixed bottom-0 left-0 top-14 z-30 md:hidden",children:p.jsxDEV(PS,{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),p.jsxDEV("main",{className:"flex flex-1 flex-col overflow-x-hidden",children:p.jsxDEV($w,{},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),p.jsxDEV(Ww,{},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 iO(){const{t:s}=Le();return p.jsxDEV("div",{className:"flex flex-1 flex-col items-center justify-center py-20 text-center",children:[p.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),p.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),p.jsxDEV("div",{className:"mt-10 flex items-center gap-4",children:[p.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"),p.jsxDEV(jk,{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),p.jsxDEV("a",{href:"https://github.com/anthropics/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 Hn({title:s,version:o,description:l}){const{t:c}=Le();return p.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:p.jsxDEV("div",{className:"max-w-md text-center",children:[p.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&&p.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),p.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 lO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 cO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 uO(){const{t:s}=Le();return p.jsxDEV("div",{className:"flex min-h-screen flex-col items-center justify-center bg-c4a-bg-base p-8 text-center",children:[p.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),p.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),p.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 dO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 fO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 mO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 pO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 hO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 gO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 bO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 yO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 vO(){const{t:s}=Le();return p.jsxDEV(Hn,{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 xO(){const{t:s}=Le();return p.jsxDEV(Hn,{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=Xf(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 ya.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 ya.get(`/sources/${o}/children`),fetchSource:async o=>{s({loading:!0,error:null});try{const l=await ya.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 ya.post("/sources",o),updateSource:async(o,l)=>{const c=await ya.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 ya.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}=Le(),l=[{label:o("sources.breadcrumb.sources")},...s],c=l.length>4?[l[0],{label:"..."},l[l.length-2],l[l.length-1]]:l;return p.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 p.jsxDEV("span",{className:"flex items-center gap-1",children:[f>0&&p.jsxDEV(ti,{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?p.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):p.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 NO=["all","indexed","not_indexed"];function SO({value:s,onChange:o}){const{t:l}=Le(),c={all:l("sources.filter.all"),indexed:l("sources.filter.indexed"),not_indexed:l("sources.filter.not_indexed")};return p.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:NO.map(u=>p.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 wO({source:s,isDaemonLibrary:o}){return s.kind==="folder"?o?p.jsxDEV(tT,{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):p.jsxDEV(Vs,{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"?p.jsxDEV(db,{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):p.jsxDEV(If,{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 KS({status:s}){const{t:o}=Le(),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 p.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 EO({type:s}){const{t:o}=Le(),l=s==="code"?"sources.type.code":"sources.type.doc";return p.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 DO({source:s,childCount:o,isDaemonLibrary:l,isRepoRoot:c,onClick:u,onRename:f,onMoveTo:h,onDelete:g}){const{t:y}=Le(),[v,D]=E.useState(!1),[x,S]=E.useState(!1),[R,j]=E.useState(null),H=E.useRef(null);E.useEffect(()=>{if(!v)return;const W=k=>{H.current&&!H.current.contains(k.target)&&D(!1)};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[v]);const L=E.useCallback(W=>{W.preventDefault(),D(!0)},[]),Q=E.useCallback(async W=>{if(!f)return;const k=await f(W);k?j(k):(S(!1),j(null))},[f]),Z=E.useCallback(()=>{S(!1),j(null)},[]),ne=!c&&f,de=s.kind==="source"&&!c&&h,se=g,ee=ne||de||se;return p.jsxDEV("div",{className:"group flex items-center gap-3 rounded px-3 py-2 transition-colors hover:bg-c4a-bg-hover cursor-pointer",onClick:x?void 0:u,onContextMenu:x?void 0:L,children:[p.jsxDEV(wO,{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),x?p.jsxDEV("div",{className:"min-w-0 flex-1",onClick:W=>W.stopPropagation(),children:p.jsxDEV(eE,{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):p.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),p.jsxDEV("div",{className:"hidden items-center gap-2 md:flex",children:[s.kind==="folder"&&o!==void 0&&p.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"&&p.jsxDEV(p.Fragment,{children:[p.jsxDEV(KS,{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&&p.jsxDEV(EO,{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),p.jsxDEV("div",{className:"flex items-center gap-2 md:hidden",children:s.kind==="source"&&p.jsxDEV(KS,{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),ee&&p.jsxDEV("div",{className:"relative",ref:H,children:[p.jsxDEV("button",{onClick:W=>{W.stopPropagation(),D(k=>!k)},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:p.jsxDEV(Fk,{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),v&&p.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:[ne&&p.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:W=>{W.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),de&&p.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:W=>{W.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),se&&p.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:W=>{W.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 RO({libraryId:s,currentParentId:o,sourceName:l,sourceId:c,onConfirm:u,onCancel:f,error:h}){const{t:g}=Le(),y=E.useRef(null),[v,D]=E.useState(null),[x,S]=E.useState([]),[R,j]=E.useState(!0),H=E.useCallback((ee,W)=>{if(W===null)return"/";for(const k of ee){if(k.id===W)return k.name;if(k.children.length>0){const B=H(k.children,W);if(B!==W)return B}}return W},[]),L=E.useMemo(()=>o===null?"/":H(x,o),[o,x,H]),Q=E.useMemo(()=>v===null?"/":H(x,v),[v,x,H]);E.useEffect(()=>{const ee=W=>{W.key==="Escape"&&f()};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[f]),E.useEffect(()=>{Z()},[s]);const Z=async()=>{try{const W=(await ya.get("/sources",{library_id:s,kind:"folder",limit:"500"})).items.filter(B=>B.id!==c),k=W.filter(B=>B.parent_id===null).map(B=>ne(B,W));S(k)}catch{}finally{j(!1)}},ne=(ee,W)=>{const k=W.filter(B=>B.parent_id===ee.id).map(B=>ne(B,W));return{id:ee.id,name:ee.name,children:k,expanded:!1,loaded:!0}},de=E.useCallback(ee=>{S(W=>sE(W,ee))},[]),se=E.useCallback(ee=>{y.current&&!y.current.contains(ee.target)&&f()},[f]);return p.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:se,children:p.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:[p.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),p.jsxDEV("div",{className:"mt-4 max-h-60 overflow-y-auto",children:R?p.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):p.jsxDEV(p.Fragment,{children:[p.jsxDEV("button",{onClick:()=>D(null),className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm ${v===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:[p.jsxDEV(Vs,{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),x.map(ee=>p.jsxDEV(nE,{node:ee,depth:1,selected:v,currentParentId:o,onSelect:D,onToggle:de},ee.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&&p.jsxDEV("div",{className:"mt-3 space-y-1 border-t border-c4a-border-subtle pt-3 text-xs",children:[p.jsxDEV("div",{className:"flex items-center gap-2",children:[p.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),p.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:[L,"/",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),v!==void 0&&p.jsxDEV("div",{className:"flex items-center gap-2",children:[p.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),p.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&&p.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),p.jsxDEV("div",{className:"mt-4 flex justify-end gap-2",children:[p.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),p.jsxDEV("button",{onClick:()=>u(v),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 nE({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 p.jsxDEV("div",{children:[p.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?p.jsxDEV("span",{onClick:v=>{v.stopPropagation(),f(s.id)},className:"shrink-0 cursor-pointer",children:s.expanded?p.jsxDEV(cb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:260,columnNumber:15},this):p.jsxDEV(ti,{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):p.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),p.jsxDEV(Vs,{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),p.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(v=>p.jsxDEV(nE,{node:v,depth:o+1,selected:l,currentParentId:c,onSelect:u,onToggle:f},v.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 sE(s,o){return s.map(l=>l.id===o?{...l,expanded:!l.expanded}:l.children.length>0?{...l,children:sE(l.children,o)}:l)}function CO({onConfirm:s,onCancel:o,error:l}){const{t:c}=Le(),[u,f]=E.useState(""),h=E.useRef(null),g=E.useRef(null);E.useEffect(()=>{h.current?.focus()},[]),E.useEffect(()=>{const x=S=>{S.key==="Escape"&&o()};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[o]);const y=E.useCallback(x=>{g.current&&!g.current.contains(x.target)&&o()},[o]),v=E.useCallback(()=>{const x=u.trim();x&&s(x)},[u,s]),D=E.useCallback(x=>{x.key==="Enter"&&(x.preventDefault(),v())},[v]);return p.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:y,children:p.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:[p.jsxDEV("div",{className:"flex items-center gap-2",children:[p.jsxDEV(Jg,{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),p.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),p.jsxDEV("div",{className:"mt-4",children:[p.jsxDEV("input",{ref:h,value:u,onChange:x=>f(x.target.value),onKeyDown:D,placeholder:c("sources.folder.name_placeholder"),className:"w-full rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-2 text-sm text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:76,columnNumber:11},this),l&&p.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),p.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[p.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),p.jsxDEV("button",{onClick:v,disabled:!u.trim(),className:"rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:90,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:64,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:60,columnNumber:5},this)}function WS({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]),p.jsxDEV("div",{ref:f,className:"relative",children:[p.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,p.jsxDEV(cb,{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&&p.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=>p.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 _O({onClose:s}){const{t:o}=Le(),l=E.useRef(null),c=E.useCallback(u=>{l.current&&!l.current.contains(u.target)&&s()},[s]);return p.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:c,children:p.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:[p.jsxDEV("div",{className:"flex items-center gap-2",children:[p.jsxDEV(RT,{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),p.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),p.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),p.jsxDEV("div",{className:"mt-6 flex justify-end",children:p.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 UO({library:s,onNewFolder:o,onImportRepo:l,onImportDir:c,onUpgrade:u}){const{t:f}=Le(),h=s.type==="daemon";return p.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:p.jsxDEV("div",{className:"max-w-2xl text-center",children:[p.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),p.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),p.jsxDEV("div",{className:"mt-6 flex justify-center gap-3",children:h?p.jsxDEV(p.Fragment,{children:[c&&p.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&&p.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):p.jsxDEV(p.Fragment,{children:[p.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&&p.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 kO(){const{t:s}=Le();return p.jsxDEV("div",{className:"rounded border border-c4a-border-subtle bg-c4a-bg-surface p-6 text-center",children:[p.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),p.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 TO(){const{t:s}=Le(),o=fr(),{libId:l}=$f(),[c,u]=Nk(),f=c.get("path")||null,g=Ca(ul(cu)).find(te=>te.id===l),{sources:y,loading:v,filter:D,fetchSources:x,fetchChildren:S,createSource:R,updateSource:j,deleteSource:H,setFilter:L}=Qf(),[Q,Z]=E.useState(!1),[ne,de]=E.useState(null),[se,ee]=E.useState(null),[W,k]=E.useState(null),[B,$]=E.useState(null),[ae,q]=E.useState(null),[P,le]=E.useState(!1),[Se,K]=E.useState({}),[fe,be]=E.useState([]);E.useEffect(()=>{l&&x({library_id:l,parent_id:f})},[l,f,x]),E.useEffect(()=>{if(!f){be([]);return}(async()=>{const te=[];let Ze=f;for(;Ze;)try{const ut=await fetch(`/api/v1/sources/${Ze}`);if(!ut.ok)break;const $a=await ut.json();te.unshift($a),Ze=$a.parent_id}catch{break}be(te)})()},[f]),E.useEffect(()=>{y.filter(Ze=>Ze.kind==="folder").forEach(async Ze=>{try{const ut=await S(Ze.id),$a=ut.filter(Ft=>Ft.kind==="folder").length,yn=ut.filter(Ft=>Ft.kind==="source").length,Ya=ut.filter(Ft=>Ft.kind==="source"&&Ft.source_type==="code").length,en=ut.filter(Ft=>Ft.kind==="source"&&Ft.source_type==="doc").length;K(Ft=>({...Ft,[Ze.id]:{folders:$a,sources:yn,codeSources:Ya,docSources:en}}))}catch{}})},[y,S]);const pe=E.useMemo(()=>{const te=[...y].sort((Ze,ut)=>Ze.kind!==ut.kind?Ze.kind==="folder"?-1:1:Ze.name.localeCompare(ut.name));return D==="all"?te:te.filter(Ze=>Ze.kind==="folder"?!0:D==="indexed"?Ze.index_status==="indexed":Ze.index_status==="none")},[y,D]),je=g?.type==="daemon",F=g?.type==="cloud",Ne=je&&f===null,he=je&&f!==null,we=E.useMemo(()=>{if(!g)return[];const te=[{label:g.id===Ff?s("sources.library.default_cloud_name"):g.name,to:`/studio/sources/${g.id}`}];return fe.forEach(Ze=>{te.push({label:Ze.name,to:`/studio/sources/${g.id}?path=${Ze.id}`})}),te},[g,fe,s]),tt=E.useCallback(async te=>{if(l)try{await R({library_id:l,parent_id:f,kind:"folder",name:te}),Z(!1),de(null),x({library_id:l,parent_id:f})}catch(Ze){Ze instanceof jf&&Ze.status===409&&de(s("sources.error.name_conflict",{name:te}))}},[l,f,R,x,s]),Mt=E.useCallback(te=>{te.kind==="folder"?u({path:te.id}):o(`/studio/source/${te.id}`)},[o,u]),Ye=E.useCallback(async(te,Ze)=>{try{return await j(te.id,{name:Ze}),x({library_id:l,parent_id:f}),null}catch(ut){return ut instanceof jf&&ut.status===409?s("sources.error.name_conflict",{name:Ze}):null}},[l,f,j,x,s]),Vt=E.useCallback(te=>{if(k(te.id),te.kind==="folder"){const Ze=te.parent_id===null,ut=Se[te.id];ee(je&&Ze?{type:"repo",name:te.name,libraryName:g.name,...ut!==void 0?{packageCount:ut.codeSources,docCount:ut.docSources}:{}}:{type:"folder",name:te.name,...ut!==void 0?{folderCount:ut.folders,sourceCount:ut.sources}:{}})}else ee({type:"resource",name:te.name})},[je,g,Se]),zt=E.useCallback(async()=>{if(!(!W||!l))try{await H(W),ee(null),k(null),x({library_id:l,parent_id:f})}catch{}},[W,l,f,H,x]),Ka=E.useCallback(async te=>{if(!(!B||!l))try{await j(B.id,{parent_id:te}),$(null),q(null),x({library_id:l,parent_id:f})}catch(Ze){Ze instanceof jf&&Ze.status===409&&q(s("sources.error.name_conflict",{name:B.name}))}},[B,l,f,j,x,s]),ve=E.useCallback(()=>{l&&o(`/studio/sources/import/${l}`)},[l,o]),Bn=E.useCallback(()=>{l&&o(`/studio/sources/import-dir/${l}`)},[l,o]);if(!g)return p.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:p.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:386,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:385,columnNumber:7},this);const Et=y.length===0&&D==="all"&&!v&&!f,va=pe.filter(te=>te.kind==="source").length===0&&D==="indexed"&&!v,Wa=!Ne,ft=F&&!f,Dt=F&&!!f,ss=Ne,mr=he;return p.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[p.jsxDEV("div",{className:"flex flex-wrap items-center gap-2",children:[p.jsxDEV(uu,{segments:we},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:410,columnNumber:9},this),p.jsxDEV("div",{className:"ml-auto flex items-center gap-2",children:[ft&&p.jsxDEV(p.Fragment,{children:[p.jsxDEV(WS,{label:s("sources.actions.upload"),icon:p.jsxDEV(kT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:417,columnNumber:23},this),items:[{label:s("sources.actions.upload_md"),icon:p.jsxDEV(If,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:421,columnNumber:27},this),onClick:()=>le(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:415,columnNumber:15},this),p.jsxDEV(WS,{label:s("sources.actions.add"),icon:p.jsxDEV(Zw,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:428,columnNumber:23},this),items:[{label:s("sources.actions.add_folder"),icon:p.jsxDEV(Jg,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:432,columnNumber:27},this),onClick:()=>Z(!0)},{label:s("sources.actions.add_web"),icon:p.jsxDEV(rT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:437,columnNumber:27},this),onClick:()=>le(!0)},{label:s("sources.actions.add_feishu"),icon:p.jsxDEV(Zk,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:442,columnNumber:27},this),onClick:()=>le(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:426,columnNumber:15},this),p.jsxDEV("button",{onClick:()=>le(!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:[p.jsxDEV(YS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:451,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:447,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:414,columnNumber:13},this),Dt&&p.jsxDEV("button",{onClick:()=>Z(!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:[p.jsxDEV(Jg,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:463,columnNumber:15},this),s("sources.actions.new_folder")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:459,columnNumber:13},this),ss&&p.jsxDEV(p.Fragment,{children:[p.jsxDEV("button",{onClick:Bn,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:[p.jsxDEV(Wk,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:481,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:471,columnNumber:15},this),p.jsxDEV("button",{onClick:ve,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:[p.jsxDEV(YS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:494,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:484,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:470,columnNumber:13},this),mr&&null,Wa&&p.jsxDEV(SO,{value:D,onChange:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:504,columnNumber:26},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:411,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:409,columnNumber:7},this),Et?p.jsxDEV(UO,{library:g,onNewFolder:()=>Z(!0),...je?{onImportRepo:ve,onImportDir:Bn}:{},...F?{onUpgrade:()=>le(!0)}:{}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:510,columnNumber:9},this):p.jsxDEV("div",{className:"mt-4 flex flex-col gap-0.5",children:v?p.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:519,columnNumber:13},this):pe.length===0?va?p.jsxDEV(kO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:524,columnNumber:15},this):p.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:526,columnNumber:15},this):pe.map(te=>{const Ze=je&&te.parent_id===null&&te.kind==="folder";return p.jsxDEV(DO,{source:te,...Se[te.id]!==void 0?{childCount:Se[te.id].folders+Se[te.id].sources}:{},isDaemonLibrary:je??!1,isRepoRoot:Ze,onClick:()=>Mt(te),...he?{}:{onRename:ut=>Ye(te,ut)},...te.kind==="source"&&!he?{onMoveTo:()=>$(te)}:{},...he?{}:{onDelete:()=>Vt(te)}},te.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:537,columnNumber:17},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:517,columnNumber:9},this),Q&&p.jsxDEV(CO,{onConfirm:tt,onCancel:()=>{Z(!1),de(null)},error:ne},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:562,columnNumber:9},this),P&&p.jsxDEV(_O,{onClose:()=>le(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:574,columnNumber:9},this),se&&p.jsxDEV(tE,{target:se,onConfirm:zt,onCancel:()=>{ee(null),k(null)}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:579,columnNumber:9},this),B&&l&&p.jsxDEV(RO,{libraryId:l,currentParentId:B.parent_id,sourceName:B.name,sourceId:B.id,onConfirm:Ka,onCancel:()=>{$(null),q(null)},error:ae},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:591,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:407,columnNumber:5},this)}function OO({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:f}=Le(),h=!!c&&c.length>0,[g,y]=E.useState(h),v=c?.[0]??"/",[D,x]=E.useState(h?"":v),[S,R]=E.useState([]),[j,H]=E.useState(!1),[L,Q]=E.useState(null),Z=E.useCallback(async P=>{H(!0),Q(null);try{const le=await s("fs/listTree",{path:P,depth:2});R(le.entries||[]),x(P),y(!1)}catch(le){const Se=le instanceof Error?le.message:String(le);Q(Se)}finally{H(!1)}},[s]);E.useEffect(()=>{h||Z(v)},[Z,v,h]);const[ne,de]=E.useState(null),[se,ee]=E.useState(null);E.useEffect(()=>{if(!o){ee(null);return}let P=!1;return(async()=>{try{const le=await s("fs/repoStatus",{path:o});P||ee({branch:le.branch,hash:le.head_hash})}catch{P||ee(null)}})(),()=>{P=!0}},[o,s]);const W=E.useMemo(()=>o?o.split("/").pop()||o:"",[o]),k=E.useMemo(()=>new Set(u??[]),[u]),B=E.useCallback(P=>{if(P.type==="directory")if(P.is_git_repo){if(k.has(P.path))return;de(null),l(P.path,P.name)}else de(P.path),Z(P.path)},[l,Z,k]),$=E.useCallback(()=>{if(h&&c.some(Se=>Se===D)){y(!0),x(""),R([]),Q(null),de(null);return}const P=D.split("/").slice(0,-1).join("/")||"/";de(null),Z(P)},[D,Z,h,c]),ae=S.filter(P=>P.type==="directory").sort((P,le)=>P.name.localeCompare(le.name)),q=S.filter(P=>P.type==="file").sort((P,le)=>P.name.localeCompare(le.name));return p.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[p.jsxDEV("div",{className:"flex items-center justify-between gap-4",children:[g?p.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[p.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:164,columnNumber:13},this),p.jsxDEV(jO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:165,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:163,columnNumber:11},this):p.jsxDEV("p",{className:"font-mono text-xs text-c4a-text-muted",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:168,columnNumber:11},this),o&&se&&p.jsxDEV("p",{className:"flex shrink-0 items-center gap-2 font-mono text-xs text-c4a-accent",children:[p.jsxDEV(Pg,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:174,columnNumber:13},this),p.jsxDEV("span",{children:W},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:175,columnNumber:13},this),p.jsxDEV("span",{children:se.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:176,columnNumber:13},this),p.jsxDEV("span",{children:se.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:177,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:173,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:161,columnNumber:7},this),p.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:182,columnNumber:7},this),g?p.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:c.map(P=>p.jsxDEV("button",{onClick:()=>Z(P),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:[p.jsxDEV(Vs,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:193,columnNumber:15},this),p.jsxDEV("span",{className:"truncate",children:P},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:194,columnNumber:15},this),p.jsxDEV(ti,{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:195,columnNumber:15},this)]},P,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:188,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:186,columnNumber:9},this):j?p.jsxDEV("div",{className:"flex items-center gap-2 py-8",children:[p.jsxDEV(Ls,{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:204,columnNumber:11},this),p.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:205,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:203,columnNumber:9},this):L?p.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:208,columnNumber:9},this):p.jsxDEV("div",{className:"mt-3 max-h-80 overflow-y-auto",children:[D!=="/"&&p.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:[p.jsxDEV(Vs,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:217,columnNumber:15},this),p.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:218,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:213,columnNumber:13},this),ae.map(P=>{const le=P.is_git_repo&&k.has(P.path);return p.jsxDEV("button",{onClick:()=>B(P),disabled:le,className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors ${le?"cursor-not-allowed opacity-50":o===P.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[p.jsxDEV(Vs,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:238,columnNumber:15},this),p.jsxDEV("span",{className:"flex-1 truncate",children:P.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:239,columnNumber:15},this),P.is_git_repo&&p.jsxDEV("span",{className:"flex items-center gap-1 rounded bg-c4a-bg-active px-1.5 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:[p.jsxDEV(Pg,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:242,columnNumber:19},this),"Git"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:241,columnNumber:17},this),le&&p.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:247,columnNumber:17},this),!P.is_git_repo&&p.jsxDEV(ti,{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:252,columnNumber:17},this)]},P.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:226,columnNumber:13},this)}),q.map(P=>p.jsxDEV("div",{className:"flex w-full items-center gap-2 px-2 py-1.5 text-sm text-c4a-text-muted",children:[p.jsxDEV(Qw,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:267,columnNumber:15},this),p.jsxDEV("span",{className:"truncate",children:P.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:268,columnNumber:15},this)]},P.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:263,columnNumber:13},this)),S.length===0&&p.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:273,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:210,columnNumber:9},this),ne&&!o&&p.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:282,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:160,columnNumber:5},this)}function jO(){const{t:s}=Le(),[o,l]=E.useState(!1),[c,u]=E.useState(!1),f=E.useRef(),h=E.useRef(),g=s("sources.import.allowed_dirs_tooltip"),v=`c4a-daemon --server ${window.location.host} --allow <dir>`,D=E.useCallback(()=>{navigator.clipboard.writeText(v),u(!0),clearTimeout(f.current),f.current=setTimeout(()=>u(!1),1500)},[v]),x=E.useCallback(()=>{clearTimeout(h.current),l(!0)},[]),S=E.useCallback(()=>{h.current=setTimeout(()=>l(!1),150)},[]);return p.jsxDEV("span",{className:"relative",onMouseEnter:x,onMouseLeave:S,children:[p.jsxDEV(Gf,{size:12,className:"text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:323,columnNumber:7},this),o&&p.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-1.5 shadow-lg",onMouseEnter:x,onMouseLeave:S,children:[p.jsxDEV("span",{className:"block whitespace-nowrap font-mono text-xs text-c4a-text-secondary",children:g},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:330,columnNumber:11},this),p.jsxDEV("span",{className:"mt-1 flex items-center gap-1.5 whitespace-nowrap",children:[p.jsxDEV("span",{className:"font-mono text-xs text-c4a-accent",children:v},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:334,columnNumber:13},this),p.jsxDEV("button",{onClick:D,className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c?p.jsxDEV(qf,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:340,columnNumber:25},this):p.jsxDEV(Fw,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:340,columnNumber:47},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:335,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:333,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:325,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:318,columnNumber:5},this)}const AO=["package.json","pyproject.toml","go.mod","Cargo.toml","pom.xml","build.gradle"],MO=/\.md$/i;function VO({rpc:s,repoPath:o,onReady:l}){const{t:c}=Le(),[u,f]=E.useState(""),[h,g]=E.useState([]),[y,v]=E.useState(""),[D,x]=E.useState([]),[S,R]=E.useState(!1),[j,H]=E.useState(!0),[L,Q]=E.useState(!1),[Z,ne]=E.useState([]),[de,se]=E.useState([]),[,ee]=E.useState([]),[W,k]=E.useState([]),B=E.useCallback(async(q,P)=>{Q(!0);try{const Se=(await s("fs/repoTree",{path:o,hash:q})).files||[];ee(Se);const K=Se.filter(he=>AO.some(we=>{const tt=he.path.split("/");return tt[tt.length-1]===we})),fe=Se.filter(he=>MO.test(he.path)).filter(he=>he.path.split("/").length<=2).map(he=>he.path);se(fe);const be=[],pe=[];await Promise.all(K.map(async he=>{try{const we=await s("fs/readFile",{path:`${o}/${he.path}`});be.push({path:he.path,content:we.content});const tt=zO(he.path,we.content);pe.push({name:tt||he.path,path:he.path.split("/").slice(0,-1).join("/")||".",isRoot:he.path.split("/").length===1||he.path==="package.json"})}catch{pe.push({name:he.path,path:he.path.split("/").slice(0,-1).join("/")||"."})}}));const je=be.find(he=>he.path==="package.json");if(je)try{const he=JSON.parse(je.content),we=Array.isArray(he.workspaces)?he.workspaces:Array.isArray(he.workspaces?.packages)?he.workspaces.packages:void 0;if(we&&we.length>0){const tt=pe.find(Ye=>Ye.isRoot&&Ye.path===".");tt&&(tt.isRoot=!0);const Mt=Ye=>we.some(Vt=>{const zt=Vt.replace(/\/\*$/,"");return Ye.startsWith(zt+"/")||Ye===zt});for(let Ye=pe.length-1;Ye>=0;Ye--){const Vt=pe[Ye];!Vt.isRoot&&!Mt(Vt.path)&&pe.splice(Ye,1)}}}catch{}ne(pe),k(be);const F=P?.branch??u,Ne=P?.isDirty??S;l({branch:F,commit:q,isDirty:Ne,repoFiles:Se,packages:pe,mdFiles:fe,repoFileContents:be})}catch{}finally{Q(!1)}},[s,o,u,S,l]);E.useEffect(()=>{(async()=>{H(!0);try{const q=await s("fs/repoStatus",{path:o});f(q.branch),g(q.branches||[q.branch]),v(q.head_hash),R(q.is_dirty),x(q.commits||[{hash:q.head_hash,message:"HEAD"}]),await B(q.head_hash,{branch:q.branch,isDirty:q.is_dirty})}catch{}finally{H(!1)}})()},[o]),E.useEffect(()=>{l({branch:u,commit:y,isDirty:S,packages:Z,mdFiles:de,repoFileContents:W})},[u,y,S]);const $=E.useCallback(async q=>{f(q);try{const P=await s("fs/repoStatus",{path:o});v(P.head_hash),await B(P.head_hash)}catch{}},[o,s,B]),ae=u&&u!=="main"&&u!=="master";return j?p.jsxDEV("div",{className:"flex items-center justify-center py-12",children:p.jsxDEV(Ls,{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:230,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:229,columnNumber:7},this):p.jsxDEV("div",{className:"space-y-4",children:[p.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[p.jsxDEV("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[p.jsxDEV("div",{children:[p.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.detail.repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:241,columnNumber:13},this),p.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:244,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:240,columnNumber:11},this),p.jsxDEV("div",{children:[p.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.import.current_path")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:249,columnNumber:13},this),p.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:252,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:248,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:239,columnNumber:9},this),p.jsxDEV("div",{className:"mt-4 grid grid-cols-2 gap-4",children:[p.jsxDEV("div",{children:[p.jsxDEV("label",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.import.branch")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:261,columnNumber:13},this),p.jsxDEV("select",{value:u,onChange:q=>$(q.target.value),className:"mt-1 w-full rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent",children:h.map(q=>p.jsxDEV("option",{value:q,children:q},q,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:270,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:264,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:260,columnNumber:11},this),p.jsxDEV("div",{children:[p.jsxDEV("label",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.import.commit")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:277,columnNumber:13},this),p.jsxDEV("select",{value:y,onChange:q=>{v(q.target.value),B(q.target.value)},className:"mt-1 w-full rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent",children:D.map(q=>p.jsxDEV("option",{value:q.hash,children:[q.hash.slice(0,7)," - ",q.message.slice(0,60)]},q.hash,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:289,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:280,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:276,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:259,columnNumber:9},this),p.jsxDEV("div",{className:"mt-3 space-y-1",children:[ae&&p.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-info",children:[p.jsxDEV(ub,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:301,columnNumber:15},this),c("sources.import.branch_warning",{branch:u})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:300,columnNumber:13},this),S&&p.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-warning",children:[p.jsxDEV(Gf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:307,columnNumber:15},this),c("sources.import.uncommitted_warning")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:306,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:298,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:238,columnNumber:7},this),p.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:L?p.jsxDEV("div",{className:"flex items-center gap-2 py-4",children:[p.jsxDEV(Ls,{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:318,columnNumber:13},this),p.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:319,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:317,columnNumber:11},this):p.jsxDEV(p.Fragment,{children:[p.jsxDEV("p",{className:"font-mono text-xs text-c4a-text-primary",children:Z.length>0?c("sources.import.recognized",{packages:Z.length,docs:de.length}):c("sources.import.no_packages")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:325,columnNumber:13},this),Z.length>0&&p.jsxDEV("div",{className:"mt-3 space-y-1",children:Z.map(q=>p.jsxDEV("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-xs",children:[p.jsxDEV(db,{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:341,columnNumber:21},this),p.jsxDEV("span",{className:"text-c4a-text-primary",children:q.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:342,columnNumber:21},this),p.jsxDEV("span",{className:"text-c4a-text-muted",children:q.path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:343,columnNumber:21},this),q.isRoot&&p.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:345,columnNumber:23},this)]},q.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:337,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:335,columnNumber:15},this),de.length>0&&p.jsxDEV("div",{className:"mt-3 space-y-1",children:de.map(q=>p.jsxDEV("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-xs",children:[p.jsxDEV(If,{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:361,columnNumber:21},this),p.jsxDEV("span",{className:"text-c4a-text-primary",children:q},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:365,columnNumber:21},this)]},q,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:357,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:355,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:324,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:315,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:236,columnNumber:5},this)}function zO(s,o){const l=s.split("/").pop()||"";try{if(l==="package.json")return JSON.parse(o).name||null;if(l==="go.mod")return o.match(/^module\s+(.+)$/m)?.[1]||null;if(l==="Cargo.toml")return o.match(/name\s*=\s*"([^"]+)"/)?.[1]||null;if(l==="pyproject.toml")return o.match(/name\s*=\s*"([^"]+)"/)?.[1]||null}catch{}return null}function LO({importState:s,libraryName:o,importing:l,onCancel:c,onConfirm:u}){const{t:f}=Le();return p.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[p.jsxDEV("p",{className:"text-sm text-c4a-text-secondary",children:f("sources.import.confirm_heading",{name:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:24,columnNumber:7},this),p.jsxDEV("div",{className:"mt-4 space-y-2 text-sm",children:[p.jsxDEV(Gc,{label:f("sources.detail.repo"),value:s.repoName},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:29,columnNumber:9},this),p.jsxDEV(Gc,{label:f("sources.import.branch"),value:s.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:33,columnNumber:9},this),p.jsxDEV(Gc,{label:f("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:37,columnNumber:9},this),p.jsxDEV(Gc,{label:f("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:41,columnNumber:9},this),p.jsxDEV(Gc,{label:f("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:45,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:28,columnNumber:7},this),p.jsxDEV("p",{className:"mt-6 flex items-start gap-2 text-xs text-c4a-text-muted",children:[p.jsxDEV(ub,{size:14,className:"mt-0.5 shrink-0 text-c4a-info"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:53,columnNumber:9},this),f("sources.safety.notice")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:52,columnNumber:7},this),l&&p.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[p.jsxDEV(Ls,{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:60,columnNumber:11},this),p.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:f("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:61,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:59,columnNumber:9},this),p.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[p.jsxDEV("button",{onClick:c,disabled: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 disabled:opacity-40",children:f("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:69,columnNumber:9},this),p.jsxDEV("button",{onClick:u,disabled:l,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-40",children:[l&&p.jsxDEV(Ls,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:81,columnNumber:25},this),f(l?"sources.import.importing":"sources.import.step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:76,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:68,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:23,columnNumber:5},this)}function Gc({label:s,value:o}){return p.jsxDEV("div",{className:"flex items-center gap-4",children:[p.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:94,columnNumber:7},this),p.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:97,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:93,columnNumber:5},this)}function HO(){const{t:s}=Le(),o=fr(),{libId:l}=$f(),u=Ca(ul(cu)).find(ee=>ee.id===l),f=Qf(ee=>ee.createSource),[h,g]=E.useState(1),[y,v]=E.useState(!1),[D,x]=E.useState({repoPath:"",repoName:"",branch:"",branches:[],commit:"",commits:[],isDirty:!1,repoFiles:[],packages:[],mdFiles:[],repoFileContents:[]}),S=u?.is_online??!1,[R,j]=E.useState([]);E.useEffect(()=>{if(!l)return;let ee=!1;return(async()=>{try{const W=await ya.get("/sources",{library_id:l,limit:"500"});if(ee)return;const k=W.items.filter(B=>!B.parent_id).map(B=>{const $=B.metadata;return typeof $?.local_path=="string"?$.local_path:null}).filter(B=>B!==null);j(k)}catch{}})(),()=>{ee=!0}},[l]);const H=E.useMemo(()=>{const ee=u?.config;return!ee||!Array.isArray(ee.allowed_paths)?[]:ee.allowed_paths},[u]),L=E.useCallback(async(ee,W)=>{if(!l)throw new Error("No library");const k=await ya.post(`/libraries/${l}/rpc`,{method:ee,params:W});if(k.error){const B=k.error;throw new Error(B.message??JSON.stringify(k.error))}return k.result??k},[l]),Q=E.useCallback((ee,W)=>{x(k=>({...k,repoPath:ee,repoName:W}))},[]),Z=E.useCallback(ee=>{x(W=>({...W,...ee}))},[]),ne=E.useCallback(async()=>{if(l){v(!0);try{const ee=await f({library_id:l,repo_name:D.repoName,repo_root_path:D.repoPath,repo_branch:D.branch,repo_commit:D.commit,repo_files:D.repoFiles.map(k=>k.path),repo_file_contents:D.repoFileContents}),W=Array.isArray(ee)?ee[0]:ee;W?.kind==="folder"?o(`/studio/sources/${l}?path=${W.id}`):o(`/studio/sources/${l}`)}catch{v(!1)}}},[l,D,f,o]),de=E.useMemo(()=>h===1?!!D.repoPath:h===2?D.repoFiles.length>0:!0,[h,D]),se=E.useMemo(()=>u?[{label:u.id===Ff?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.title")}]:[],[u,s]);return u?p.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[p.jsxDEV(uu,{segments:se},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:189,columnNumber:7},this),p.jsxDEV("div",{className:"mt-6 flex w-full items-center gap-2 font-mono text-sm md:gap-3",children:[p.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:193,columnNumber:9},this),p.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:194,columnNumber:9},this),p.jsxDEV(ew,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:197,columnNumber:9},this),p.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:198,columnNumber:9},this),p.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:199,columnNumber:9},this),p.jsxDEV(ew,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:202,columnNumber:9},this),p.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:203,columnNumber:9},this),p.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:204,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:192,columnNumber:7},this),p.jsxDEV("div",{className:"mt-6 flex-1",children:S?p.jsxDEV(p.Fragment,{children:[h===1&&p.jsxDEV(OO,{rpc:L,selectedPath:D.repoPath,onSelect:Q,allowedPaths:H,importedPaths:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:218,columnNumber:15},this),h===2&&p.jsxDEV(VO,{rpc:L,repoPath:D.repoPath,onReady:Z},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:227,columnNumber:15},this),h===3&&p.jsxDEV(LO,{importState:D,libraryName:u.name,importing:y,onCancel:()=>g(2),onConfirm:ne},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:234,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:216,columnNumber:11},this):p.jsxDEV(BO,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:212,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:210,columnNumber:7},this),p.jsxDEV("p",{className:"mt-4 text-right text-xs text-c4a-text-muted",children:s("sources.safety.notice")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:247,columnNumber:7},this),S&&h<3&&p.jsxDEV("div",{className:"mt-6 flex justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:[h>1&&p.jsxDEV("button",{onClick:()=>g(ee=>ee-1),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",children:s("common.previous")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:255,columnNumber:13},this),p.jsxDEV("button",{onClick:()=>g(ee=>ee+1),disabled:!de,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:262,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:253,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:188,columnNumber:5},this):p.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:p.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:182,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:181,columnNumber:7},this)}function Bg({active:s,current:o}){return p.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:283,columnNumber:5},this)}function ew(){return p.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:296,columnNumber:10},this)}function BO({libraryName:s}){const{t:o}=Le();return p.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[p.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:307,columnNumber:7},this),p.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:310,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:306,columnNumber:5},this)}const tw=(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 v=y.path.startsWith(o)?y.path.slice(o.length).replace(/^\//,""):y.name;f.push(v)}};return h(s),{files:l,dirs:c,gitRepos:u,mdFiles:f}};function $O({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:f}=Le(),h=!!c&&c.length>0,[g,y]=E.useState(h),v=c?.[0]??"/",[D,x]=E.useState(h?"":v),[S,R]=E.useState([]),[j,H]=E.useState(!1),[L,Q]=E.useState(null),Z=E.useMemo(()=>new Set(u??[]),[u]),ne=E.useCallback(async B=>{H(!0),Q(null);try{const $=await s("fs/listTree",{path:B,depth:2});R($.entries||[]),x(B),y(!1)}catch($){const ae=$ instanceof Error?$.message:String($);Q(ae)}finally{H(!1)}},[s]);E.useEffect(()=>{h||ne(v)},[ne,v,h]);const de=E.useCallback(B=>{if(B.type!=="directory"||Z.has(B.path))return;const $=tw(B.children||[],B.path);l(B.path,B.name,$),ne(B.path)},[l,ne,Z]),se=E.useCallback(()=>{if(h&&c.some(ae=>ae===D)){y(!0),x(""),R([]),Q(null);return}const B=D.split("/").slice(0,-1).join("/")||"/";ne(B)},[D,ne,h,c]);E.useEffect(()=>{if(D&&!g&&S.length>=0&&!j){const B=D.split("/").pop()||D,$=tw(S,D);l(D,B,$)}},[D,g,S,j]);const ee=E.useMemo(()=>o?o.split("/").pop()||o:"",[o]),W=S.filter(B=>B.type==="directory").sort((B,$)=>B.name.localeCompare($.name)),k=S.filter(B=>B.type==="file").sort((B,$)=>B.name.localeCompare($.name));return p.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[p.jsxDEV("div",{className:"flex items-center justify-between gap-4",children:[g?p.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[p.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:167,columnNumber:13},this),p.jsxDEV(YO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:168,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:166,columnNumber:11},this):p.jsxDEV("p",{className:"font-mono text-xs text-c4a-text-muted",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:171,columnNumber:11},this),o&&p.jsxDEV("p",{className:"flex shrink-0 items-center gap-2 font-mono text-xs text-c4a-accent",children:[p.jsxDEV(Vs,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:177,columnNumber:13},this),p.jsxDEV("span",{children:ee},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:178,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:176,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:164,columnNumber:7},this),p.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:183,columnNumber:7},this),g?p.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:c.map(B=>p.jsxDEV("button",{onClick:()=>ne(B),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:[p.jsxDEV(Vs,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:193,columnNumber:15},this),p.jsxDEV("span",{className:"truncate",children:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:194,columnNumber:15},this),p.jsxDEV(ti,{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:195,columnNumber:15},this)]},B,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:188,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:186,columnNumber:9},this):j?p.jsxDEV("div",{className:"flex items-center gap-2 py-8",children:[p.jsxDEV(Ls,{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:204,columnNumber:11},this),p.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:205,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:203,columnNumber:9},this):L?p.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:208,columnNumber:9},this):p.jsxDEV("div",{className:"mt-3 max-h-80 overflow-y-auto",children:[D!=="/"&&p.jsxDEV("button",{onClick:se,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:[p.jsxDEV(Vs,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:216,columnNumber:15},this),p.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:217,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:212,columnNumber:13},this),W.map(B=>{const $=Z.has(B.path);return p.jsxDEV("button",{onClick:()=>de(B),disabled:$,className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors ${$?"cursor-not-allowed opacity-50":o===B.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[p.jsxDEV(Vs,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:236,columnNumber:15},this),p.jsxDEV("span",{className:"flex-1 truncate",children:B.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:237,columnNumber:15},this),B.is_git_repo&&p.jsxDEV("span",{className:"flex items-center gap-1 rounded bg-c4a-bg-active px-1.5 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:[p.jsxDEV(Pg,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:240,columnNumber:19},this),"Git"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:239,columnNumber:17},this),$&&p.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:245,columnNumber:17},this),p.jsxDEV(ti,{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:249,columnNumber:15},this)]},B.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:224,columnNumber:13},this)}),k.map(B=>p.jsxDEV("div",{className:"flex w-full items-center gap-2 px-2 py-1.5 text-sm text-c4a-text-muted",children:[p.jsxDEV(Qw,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:262,columnNumber:15},this),p.jsxDEV("span",{className:"truncate",children:B.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:263,columnNumber:15},this)]},B.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:258,columnNumber:13},this)),S.length===0&&p.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:268,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:210,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:163,columnNumber:5},this)}function YO(){const{t:s}=Le(),[o,l]=E.useState(!1),[c,u]=E.useState(!1),f=E.useRef(),h=E.useRef(),g=s("sources.import.allowed_dirs_tooltip"),v=`c4a-daemon --server ${window.location.host} --allow <dir>`,D=E.useCallback(()=>{navigator.clipboard.writeText(v),u(!0),clearTimeout(f.current),f.current=setTimeout(()=>u(!1),1500)},[v]),x=E.useCallback(()=>{clearTimeout(h.current),l(!0)},[]),S=E.useCallback(()=>{h.current=setTimeout(()=>l(!1),150)},[]);return p.jsxDEV("span",{className:"relative",onMouseEnter:x,onMouseLeave:S,children:[p.jsxDEV(Gf,{size:12,className:"text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:311,columnNumber:7},this),o&&p.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-1.5 shadow-lg",onMouseEnter:x,onMouseLeave:S,children:[p.jsxDEV("span",{className:"block whitespace-nowrap font-mono text-xs text-c4a-text-secondary",children:g},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:318,columnNumber:11},this),p.jsxDEV("span",{className:"mt-1 flex items-center gap-1.5 whitespace-nowrap",children:[p.jsxDEV("span",{className:"font-mono text-xs text-c4a-accent",children:v},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:322,columnNumber:13},this),p.jsxDEV("button",{onClick:D,className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c?p.jsxDEV(qf,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:328,columnNumber:25},this):p.jsxDEV(Fw,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:328,columnNumber:47},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:323,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:321,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:313,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:306,columnNumber:5},this)}function qO({importState:s,libraryName:o,importing:l,onCancel:c,onConfirm:u}){const{t:f}=Le();return p.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[p.jsxDEV("p",{className:"text-sm text-c4a-text-secondary",children:f("sources.import.dir_confirm_heading",{name:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:24,columnNumber:7},this),p.jsxDEV("div",{className:"mt-4 space-y-2 text-sm",children:[p.jsxDEV(Ic,{label:f("sources.import.dir_name"),value:s.dirName},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:29,columnNumber:9},this),p.jsxDEV(Ic,{label:f("sources.import.dir_path"),value:s.dirPath},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:33,columnNumber:9},this),p.jsxDEV(Ic,{label:f("sources.import.dir_files"),value:String(s.fileCount)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:37,columnNumber:9},this),p.jsxDEV(Ic,{label:f("sources.import.dir_subdirs"),value:String(s.subDirCount)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:41,columnNumber:9},this),s.gitRepoCount>0&&p.jsxDEV(Ic,{label:f("sources.import.dir_git_repos"),value:String(s.gitRepoCount)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:46,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:28,columnNumber:7},this),s.gitRepoCount>0&&p.jsxDEV("p",{className:"mt-4 flex items-start gap-2 text-xs text-c4a-info",children:[p.jsxDEV(Gf,{size:14,className:"mt-0.5 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:56,columnNumber:11},this),f("sources.import.dir_git_hint")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:55,columnNumber:9},this),p.jsxDEV("p",{className:"mt-6 flex items-start gap-2 text-xs text-c4a-text-muted",children:[p.jsxDEV(ub,{size:14,className:"mt-0.5 shrink-0 text-c4a-info"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:63,columnNumber:9},this),f("sources.safety.notice")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:62,columnNumber:7},this),l&&p.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[p.jsxDEV(Ls,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:70,columnNumber:11},this),p.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:f("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:71,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:69,columnNumber:9},this),p.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[p.jsxDEV("button",{onClick:c,disabled: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 disabled:opacity-40",children:f("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:79,columnNumber:9},this),p.jsxDEV("button",{onClick:u,disabled:l,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-40",children:[l&&p.jsxDEV(Ls,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:91,columnNumber:25},this),f(l?"sources.import.importing":"sources.import.dir_step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:86,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:78,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:23,columnNumber:5},this)}function Ic({label:s,value:o}){return p.jsxDEV("div",{className:"flex items-center gap-4",children:[p.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/StepConfirmDirImport.tsx",lineNumber:104,columnNumber:7},this),p.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/StepConfirmDirImport.tsx",lineNumber:107,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:103,columnNumber:5},this)}function GO(){const{t:s}=Le(),o=fr(),{libId:l}=$f(),u=Ca(ul(cu)).find(se=>se.id===l),f=Qf(se=>se.createSource),[h,g]=E.useState(1),[y,v]=E.useState(!1),[D,x]=E.useState({dirPath:"",dirName:"",fileCount:0,subDirCount:0,gitRepoCount:0,mdFiles:[]}),S=u?.is_online??!1,[R,j]=E.useState([]);E.useEffect(()=>{if(!l)return;let se=!1;return(async()=>{try{const ee=await ya.get("/sources",{library_id:l,limit:"500"});if(se)return;const W=ee.items.filter(k=>!k.parent_id).map(k=>{const B=k.metadata;return typeof B?.local_path=="string"?B.local_path:null}).filter(k=>k!==null);j(W)}catch{}})(),()=>{se=!0}},[l]);const H=E.useMemo(()=>{const se=u?.config;return!se||!Array.isArray(se.allowed_paths)?[]:se.allowed_paths},[u]),L=E.useCallback(async(se,ee)=>{if(!l)throw new Error("No library");const W=await ya.post(`/libraries/${l}/rpc`,{method:se,params:ee});if(W.error){const k=W.error;throw new Error(k.message??JSON.stringify(W.error))}return W.result??W},[l]),Q=E.useCallback((se,ee,W)=>{x({dirPath:se,dirName:ee,fileCount:W.files,subDirCount:W.dirs,gitRepoCount:W.gitRepos,mdFiles:W.mdFiles})},[]),Z=E.useCallback(async()=>{if(l){v(!0);try{const se=await f({library_id:l,kind:"folder",name:D.dirName,metadata:{local_path:D.dirPath,import_type:"directory"}}),ee=Array.isArray(se)?se[0]:se;ee?.kind==="folder"?o(`/studio/sources/${l}?path=${ee.id}`):o(`/studio/sources/${l}`)}catch{v(!1)}}},[l,D,f,o]),ne=E.useMemo(()=>h===1?!!D.dirPath:!0,[h,D]),de=E.useMemo(()=>u?[{label:u.id===Ff?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.dir_title")}]:[],[u,s]);return u?p.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[p.jsxDEV(uu,{segments:de},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:165,columnNumber:7},this),p.jsxDEV("div",{className:"mt-6 flex w-full items-center gap-2 font-mono text-sm md:gap-3",children:[p.jsxDEV(aw,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:169,columnNumber:9},this),p.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:170,columnNumber:9},this),p.jsxDEV(IO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:173,columnNumber:9},this),p.jsxDEV(aw,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:174,columnNumber:9},this),p.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:175,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:168,columnNumber:7},this),p.jsxDEV("div",{className:"mt-6 flex-1",children:S?p.jsxDEV(p.Fragment,{children:[h===1&&p.jsxDEV($O,{rpc:L,selectedPath:D.dirPath,onSelect:Q,allowedPaths:H,importedPaths:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:187,columnNumber:15},this),h===2&&p.jsxDEV(qO,{importState:D,libraryName:u.name,importing:y,onCancel:()=>g(1),onConfirm:Z},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:196,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:185,columnNumber:11},this):p.jsxDEV(XO,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:183,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:181,columnNumber:7},this),p.jsxDEV("p",{className:"mt-4 text-right text-xs text-c4a-text-muted",children:s("sources.safety.notice")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:209,columnNumber:7},this),S&&h===1&&p.jsxDEV("div",{className:"mt-6 flex justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:p.jsxDEV("button",{onClick:()=>g(2),disabled:!ne,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:216,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:215,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:164,columnNumber:5},this):p.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:p.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:158,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:157,columnNumber:7},this)}function aw({active:s,current:o}){return p.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:237,columnNumber:5},this)}function IO(){return p.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:250,columnNumber:10},this)}function XO({libraryName:s}){const{t:o}=Le();return p.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[p.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:257,columnNumber:7},this),p.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:260,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:256,columnNumber:5},this)}function FO(){const{t:s}=Le(),o=fr(),l=Ca(S=>S.createLibrary),[c,u]=E.useState("waiting"),[f,h]=E.useState(null),[g,y]=E.useState(""),[v,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 x=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 p.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[p.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),p.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),p.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:p.jsxDEV("ol",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[p.jsxDEV("li",{children:[p.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),p.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),p.jsxDEV("li",{children:[p.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),p.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),p.jsxDEV("li",{children:[p.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),p.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),p.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:[c==="waiting"&&p.jsxDEV("div",{className:"flex items-center gap-3",children:[p.jsxDEV(Ls,{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),p.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&&p.jsxDEV("div",{className:"space-y-4",children:[p.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),p.jsxDEV("div",{className:"space-y-2 text-sm",children:[p.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&&p.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&&p.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),p.jsxDEV("div",{className:"flex items-center gap-2",children:[p.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),p.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),p.jsxDEV("div",{className:"flex justify-end gap-2 pt-2",children:[p.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),p.jsxDEV("button",{onClick:x,disabled:v||!g.trim(),className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-50",children:[v&&p.jsxDEV(Ls,{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&&p.jsxDEV("div",{className:"space-y-4",children:[p.jsxDEV("div",{className:"flex items-center gap-2",children:[p.jsxDEV(qf,{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),p.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&&p.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 p.jsxDEV("div",{className:"flex items-center gap-2",children:[p.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),p.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 QO(){const{t:s}=Le(),{sourceUuid:o}=$f(),{currentSource:l,loading:c,fetchSource:u}=Qf(),f=Ca(ul(cu)),[h,g]=E.useState("original"),[y,v]=E.useState([]);E.useEffect(()=>{o&&u(o)},[o,u]),E.useEffect(()=>{l&&(async()=>{const H=[];let L=l.parent_id;for(;L;)try{const Q=await fetch(`/api/v1/sources/${L}`);if(!Q.ok)break;const Z=await Q.json();H.unshift(Z),L=Z.parent_id}catch{break}v(H)})()},[l]);const D=f.find(H=>H.id===l?.library_id),x=l?.metadata?Object.fromEntries(Object.entries(l.metadata).map(([H,L])=>[H,String(L??"")])):null,S=l?.source_type==="code",R=E.useMemo(()=>{if(!l||!D)return[];const H=[{label:D.id===Ff?s("sources.library.default_cloud_name"):D.name,to:`/studio/sources/${D.id}`}];return y.forEach(L=>{H.push({label:L.name,to:`/studio/sources/${D.id}?path=${L.id}`})}),H.push({label:l.name}),H},[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?p.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:p.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):p.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[p.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),p.jsxDEV("div",{className:"mt-4 flex items-center gap-2",children:[S?p.jsxDEV(db,{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):p.jsxDEV(If,{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),p.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),p.jsxDEV("div",{className:"mt-2 flex flex-wrap gap-4 text-xs text-c4a-text-muted",children:[p.jsxDEV("span",{children:[s("sources.detail.type"),":"," ",p.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&&x?.relative_path&&p.jsxDEV("span",{children:[s("sources.detail.path"),":"," ",p.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:x.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&&p.jsxDEV("span",{children:[s("sources.detail.origin"),":"," ",p.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),p.jsxDEV("span",{children:[s("sources.detail.status"),":"," ",p.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&&x&&p.jsxDEV("div",{className:"mt-4 rounded border border-c4a-border-subtle bg-c4a-bg-surface p-4",children:p.jsxDEV("div",{className:"grid grid-cols-2 gap-x-8 gap-y-2 text-xs md:grid-cols-4",children:[x.repo_name&&p.jsxDEV(Uf,{label:s("sources.detail.repo"),value:x.repo_name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:157,columnNumber:15},this),x.pinned_branch&&p.jsxDEV(Uf,{label:s("sources.detail.branch"),value:x.pinned_branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:163,columnNumber:15},this),x.pinned_hash&&p.jsxDEV(Uf,{label:s("sources.detail.commit"),value:x.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),x.tech_stack&&p.jsxDEV(Uf,{label:s("sources.detail.tech_stack"),value:x.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),p.jsxDEV("div",{className:"mt-6 flex border-b border-c4a-border-subtle",children:j.map(H=>p.jsxDEV("button",{onClick:()=>g(H.key),className:`border-b-2 px-4 py-2 font-mono text-xs uppercase transition-colors ${h===H.key?"border-c4a-accent text-c4a-accent":"border-transparent text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:H.label},H.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),p.jsxDEV("div",{className:"mt-4 flex-1",children:[h==="original"&&p.jsxDEV(ZO,{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"&&p.jsxDEV(nw,{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"&&p.jsxDEV(nw,{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 Uf({label:s,value:o}){return p.jsxDEV("div",{children:[p.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),p.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 ZO({source:s,isCode:o}){const{t:l}=Le(),c=s.metadata;return o?p.jsxDEV("div",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[!!c?.description&&p.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&&p.jsxDEV("div",{children:[p.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),p.jsxDEV("div",{className:"mt-2 rounded bg-c4a-bg-surface p-3 font-mono text-xs",children:Object.entries(c.dependencies).map(([u,f])=>p.jsxDEV("div",{className:"flex justify-between py-0.5",children:[p.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),p.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&&p.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):p.jsxDEV("div",{className:"prose prose-invert max-w-none text-sm text-c4a-text-secondary",children:p.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 nw({message:s}){return p.jsxDEV("div",{className:"flex items-center justify-center rounded border border-dashed border-c4a-border-subtle p-12",children:p.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 JO="lib_cloud_default",PO=hk([{element:p.jsxDEV(tO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:29,columnNumber:14},void 0),children:[{path:"/",element:p.jsxDEV(iO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:31,columnNumber:29},void 0)},{path:"/login",element:p.jsxDEV(lO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:32,columnNumber:34},void 0)},{path:"/docs",element:p.jsxDEV(cO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:33,columnNumber:33},void 0)}]},{path:"/studio",element:p.jsxDEV(rO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:40,columnNumber:14},void 0),children:[{index:!0,element:p.jsxDEV(HS,{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:p.jsxDEV(HS,{to:`/studio/sources/${JO}`,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:p.jsxDEV(FO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:52,columnNumber:46},void 0)},{path:"sources/import/:libId",element:p.jsxDEV(HO,{},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:p.jsxDEV(GO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:54,columnNumber:53},void 0)},{path:"sources/:libId",element:p.jsxDEV(TO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:55,columnNumber:42},void 0)},{path:"source/:sourceUuid",element:p.jsxDEV(QO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:56,columnNumber:46},void 0)},{path:"modeling",element:p.jsxDEV(dO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:57,columnNumber:36},void 0)},{path:"modeling/code/setup",element:p.jsxDEV(bO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:58,columnNumber:47},void 0)},{path:"modeling/code/compile",element:p.jsxDEV(yO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:59,columnNumber:49},void 0)},{path:"modeling/code/review",element:p.jsxDEV(vO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:60,columnNumber:48},void 0)},{path:"modeling/code/result",element:p.jsxDEV(xO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:61,columnNumber:48},void 0)},{path:"brain",element:p.jsxDEV(fO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:62,columnNumber:33},void 0)},{path:"discovery",element:p.jsxDEV(mO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:63,columnNumber:37},void 0)},{path:"sharing",element:p.jsxDEV(pO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:64,columnNumber:35},void 0)},{path:"collaboration",element:p.jsxDEV(hO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:65,columnNumber:41},void 0)},{path:"settings",element:p.jsxDEV(gO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:66,columnNumber:36},void 0)}]},{path:"*",element:p.jsxDEV(uO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:71,columnNumber:25},void 0)}]);function KO(){return E.useEffect(()=>{const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;return Hs.connect(o),()=>{Hs.disconnect()}},[]),p.jsxDEV($U,{router:PO},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/App.tsx",lineNumber:17,columnNumber:10},this)}t_.createRoot(document.getElementById("root")).render(p.jsxDEV(E.StrictMode,{children:p.jsxDEV(KO,{},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));
|