apteva 0.4.44 → 0.4.51
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/dist/{ActivityPage.c48n83h2.js → ActivityPage.sw9p594m.js} +1 -1
- package/dist/{ApiDocsPage.yzcxx5ax.js → ApiDocsPage.90e03bz7.js} +1 -1
- package/dist/App.3vnrera5.js +4 -0
- package/dist/App.94x6mh7f.js +20 -0
- package/dist/{App.qzbx5wtj.js → App.9sryp183.js} +1 -1
- package/dist/App.9t1zc5r7.js +53 -0
- package/dist/{App.r5serxkt.js → App.jhb45d7r.js} +1 -1
- package/dist/App.k4nmqgek.js +221 -0
- package/dist/App.p7jjw1zf.js +4 -0
- package/dist/App.pfbdzrhh.js +4 -0
- package/dist/App.stgng5bx.js +13 -0
- package/dist/{App.152mbs1r.js → App.tm3k7h4b.js} +1 -1
- package/dist/App.vkg121c6.js +4 -0
- package/dist/App.vza4fxg0.js +4 -0
- package/dist/App.wghtdzsk.js +1 -0
- package/dist/App.xva0tfzh.js +4 -0
- package/dist/App.ysxy7akk.js +61 -0
- package/dist/App.yzkh4gq2.js +4 -0
- package/dist/ConnectionsPage.q5f9fd37.js +3 -0
- package/dist/McpPage.f3ccrezb.js +3 -0
- package/dist/SettingsPage.q1pqcc93.js +3 -0
- package/dist/SkillsPage.whxnez67.js +3 -0
- package/dist/TasksPage.zp4jfevw.js +3 -0
- package/dist/TelemetryPage.an0ky78c.js +3 -0
- package/dist/TestsPage.18krj0d1.js +3 -0
- package/dist/ThreadsPage.nnphgy98.js +3 -0
- package/dist/apteva-kit.css +1 -1
- package/dist/index.html +1 -1
- package/dist/styles.css +1 -1
- package/package.json +10 -9
- package/src/db.ts +60 -22
- package/src/providers.ts +14 -9
- package/src/routes/api/agent-utils.ts +25 -3
- package/src/routes/api/telemetry.ts +21 -2
- package/src/server.ts +53 -1
- package/src/web/App.tsx +2 -2
- package/src/web/components/agents/AgentCard.tsx +9 -7
- package/src/web/components/agents/AgentPanel.tsx +205 -44
- package/src/web/components/agents/CreateAgentModal.tsx +5 -5
- package/src/web/components/auth/LoginPage.tsx +2 -2
- package/src/web/components/common/LoadingSpinner.tsx +1 -1
- package/src/web/components/common/Modal.tsx +6 -6
- package/src/web/components/common/Select.tsx +2 -2
- package/src/web/components/connections/ConnectionsPage.tsx +1 -1
- package/src/web/components/connections/IntegrationsTab.tsx +3 -3
- package/src/web/components/connections/OverviewTab.tsx +3 -3
- package/src/web/components/connections/TriggersTab.tsx +8 -8
- package/src/web/components/dashboard/Dashboard.tsx +4 -4
- package/src/web/components/layout/Header.tsx +3 -3
- package/src/web/components/layout/Sidebar.tsx +6 -5
- package/src/web/components/mcp/McpPage.tsx +13 -13
- package/src/web/components/onboarding/OnboardingWizard.tsx +2 -2
- package/src/web/components/settings/SettingsPage.tsx +59 -26
- package/src/web/components/skills/SkillsPage.tsx +7 -7
- package/src/web/components/tasks/TasksPage.tsx +212 -36
- package/src/web/components/telemetry/TelemetryPage.tsx +414 -94
- package/src/web/components/tests/TestsPage.tsx +2 -2
- package/src/web/components/threads/ThreadsPage.tsx +2 -2
- package/src/web/context/TelemetryContext.tsx +1 -0
- package/src/web/context/ThemeContext.tsx +31 -10
- package/src/web/index.html +1 -6
- package/src/web/styles.css +47 -0
- package/src/web/themes.ts +68 -5
- package/src/web/types.ts +1 -1
- package/dist/App.09yb8t0b.js +0 -1
- package/dist/App.3a67nx9w.js +0 -4
- package/dist/App.9epx6785.js +0 -4
- package/dist/App.d8955awp.js +0 -4
- package/dist/App.drwb57jq.js +0 -4
- package/dist/App.gssbmajb.js +0 -4
- package/dist/App.qw70pc29.js +0 -53
- package/dist/App.tpmp9020.js +0 -20
- package/dist/App.v2wb4d7d.js +0 -61
- package/dist/App.vxmaaj0m.js +0 -13
- package/dist/App.w4p2tda9.js +0 -4
- package/dist/App.wv2ng55q.js +0 -221
- package/dist/App.yncnrn0f.js +0 -4
- package/dist/ConnectionsPage.k6cspyqq.js +0 -3
- package/dist/McpPage.cdxm48xj.js +0 -3
- package/dist/SettingsPage.evpv7c2y.js +0 -3
- package/dist/SkillsPage.pvzp6c1a.js +0 -3
- package/dist/TasksPage.6jnvbpsy.js +0 -3
- package/dist/TelemetryPage.t7vk24zc.js +0 -3
- package/dist/TestsPage.5x6658aa.js +0 -3
- package/dist/ThreadsPage.3fvhtevh.js +0 -3
package/dist/App.wv2ng55q.js
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import{a as Er}from"./App.yncnrn0f.js";import"./App.3a67nx9w.js";import{f as jc,g as U6,h as j2}from"./App.gssbmajb.js";import"./App.w4p2tda9.js";import"./App.152mbs1r.js";import{A as Fc,B as gc,C as Ac,D as Tc,E as Xb,G as Vc,H as Dc,I as Ec,J as Sc,K as Cc,k as db,l as it,m as B6,n as K6,o as H6,p as mv,q as hm,r as tv,s as rv,t as lt,u as Yb,v as vv,w as Ic,x as Pc,y as bv,z as wv}from"./App.qzbx5wtj.js";import"./App.vxmaaj0m.js";import"./App.d8955awp.js";import{N as W6,O as s2}from"./App.9epx6785.js";import{Q as xc,R as xr}from"./App.v2wb4d7d.js";import"./App.qw70pc29.js";import{U as ct}from"./App.drwb57jq.js";import{V as uY}from"./App.r5serxkt.js";import{$ as Do,X as Xa,Y as Z6,_ as Fm,aa as po,ba as pz,ca as u2,da as Hb,ea as Qb,fa as $b,ga as mz,ha as Mc,ia as Uc,ja as Xo,ka as tz,la as hc,ma as rp,na as rz,oa as Vr,pa as O6}from"./App.tpmp9020.js";var Qc=Z6((nY)=>{(function(){function l(){if(P=!1,ta){var h=nY.unstable_now();ma=h;var S=!0;try{a:{aa=!1,wa&&(wa=!1,Ma(io),io=-1),Za=!0;var ra=j;try{o:{O(h);for(A=_(F);A!==null&&!(A.expirationTime>h&&G());){var Pa=A.callback;if(typeof Pa==="function"){A.callback=null,j=A.priorityLevel;var xa=Pa(A.expirationTime<=h);if(h=nY.unstable_now(),typeof xa==="function"){A.callback=xa,O(h),S=!0;break o}A===_(F)&&H(F),O(h)}else H(F);A=_(F)}if(A!==null)S=!0;else{var yp=_(V);yp!==null&&g(B,yp.startTime-h),S=!1}}break a}finally{A=null,j=ra,Za=!1}S=void 0}}finally{S?y():ta=!1}}}function Z(h,S){var ra=h.length;h.push(S);a:for(;0<ra;){var Pa=ra-1>>>1,xa=h[Pa];if(0<M(xa,S))h[Pa]=S,h[ra]=xa,ra=Pa;else break a}}function _(h){return h.length===0?null:h[0]}function H(h){if(h.length===0)return null;var S=h[0],ra=h.pop();if(ra!==S){h[0]=ra;a:for(var Pa=0,xa=h.length,yp=xa>>>1;Pa<yp;){var Ep=2*(Pa+1)-1,vp=h[Ep],yo=Ep+1,$o=h[yo];if(0>M(vp,ra))yo<xa&&0>M($o,vp)?(h[Pa]=$o,h[yo]=ra,Pa=yo):(h[Pa]=vp,h[Ep]=ra,Pa=Ep);else if(yo<xa&&0>M($o,ra))h[Pa]=$o,h[yo]=ra,Pa=yo;else break a}}return S}function M(h,S){var ra=h.sortIndex-S.sortIndex;return ra!==0?ra:h.id-S.id}function O(h){for(var S=_(V);S!==null;){if(S.callback===null)H(V);else if(S.startTime<=h)H(V),S.sortIndex=S.expirationTime,Z(F,S);else break;S=_(V)}}function B(h){if(wa=!1,O(h),!aa)if(_(F)!==null)aa=!0,ta||(ta=!0,y());else{var S=_(V);S!==null&&g(B,S.startTime-h)}}function G(){return P?!0:nY.unstable_now()-ma<L?!1:!0}function g(h,S){io=Na(function(){h(nY.unstable_now())},S)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),nY.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var T=performance;nY.unstable_now=function(){return T.now()}}else{var K=Date,n=K.now();nY.unstable_now=function(){return K.now()-n}}var F=[],V=[],C=1,A=null,j=3,Za=!1,aa=!1,wa=!1,P=!1,Na=typeof setTimeout==="function"?setTimeout:null,Ma=typeof clearTimeout==="function"?clearTimeout:null,Wa=typeof setImmediate<"u"?setImmediate:null,ta=!1,io=-1,L=5,ma=-1;if(typeof Wa==="function")var y=function(){Wa(l)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,k=U.port2;U.port1.onmessage=l,y=function(){k.postMessage(null)}}else y=function(){Na(l,0)};nY.unstable_IdlePriority=5,nY.unstable_ImmediatePriority=1,nY.unstable_LowPriority=4,nY.unstable_NormalPriority=3,nY.unstable_Profiling=null,nY.unstable_UserBlockingPriority=2,nY.unstable_cancelCallback=function(h){h.callback=null},nY.unstable_forceFrameRate=function(h){0>h||125<h?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<h?Math.floor(1000/h):5},nY.unstable_getCurrentPriorityLevel=function(){return j},nY.unstable_next=function(h){switch(j){case 1:case 2:case 3:var S=3;break;default:S=j}var ra=j;j=S;try{return h()}finally{j=ra}},nY.unstable_requestPaint=function(){P=!0},nY.unstable_runWithPriority=function(h,S){switch(h){case 1:case 2:case 3:case 4:case 5:break;default:h=3}var ra=j;j=h;try{return S()}finally{j=ra}},nY.unstable_scheduleCallback=function(h,S,ra){var Pa=nY.unstable_now();switch(typeof ra==="object"&&ra!==null?(ra=ra.delay,ra=typeof ra==="number"&&0<ra?Pa+ra:Pa):ra=Pa,h){case 1:var xa=-1;break;case 2:xa=250;break;case 5:xa=1073741823;break;case 4:xa=1e4;break;default:xa=5000}return xa=ra+xa,h={id:C++,callback:S,priorityLevel:h,startTime:ra,expirationTime:xa,sortIndex:-1},ra>Pa?(h.sortIndex=ra,Z(V,h),_(F)===null&&h===_(V)&&(wa?(Ma(io),io=-1):wa=!0,g(B,ra-Pa))):(h.sortIndex=xa,Z(F,h),aa||Za||(aa=!0,ta||(ta=!0,y()))),h},nY.unstable_shouldYield=G,nY.unstable_wrapCallback=function(h){var S=j;return function(){var ra=j;j=S;try{return h.apply(this,arguments)}finally{j=ra}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Bc=Z6((xY)=>{var ka=Xa(Qc()),pv=Xa(Do()),G6=Xa(uY());(function(){function l(a,o){for(a=a.memoizedState;a!==null&&0<o;)a=a.next,o--;return a}function Z(a,o,p,m){if(p>=o.length)return m;var t=o[p],r=Ro(a)?a.slice():Ka({},a);return r[t]=Z(a[t],o,p+1,m),r}function _(a,o,p){if(o.length!==p.length)console.warn("copyWithRename() expects paths of the same length");else{for(var m=0;m<p.length-1;m++)if(o[m]!==p[m]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return H(a,o,p,0)}}function H(a,o,p,m){var t=o[m],r=Ro(a)?a.slice():Ka({},a);return m+1===o.length?(r[p[m]]=r[t],Ro(r)?r.splice(t,1):delete r[t]):r[t]=H(a[t],o,p,m+1),r}function M(a,o,p){var m=o[p],t=Ro(a)?a.slice():Ka({},a);if(p+1===o.length)return Ro(t)?t.splice(m,1):delete t[m],t;return t[m]=M(a[m],o,p+1),t}function O(){return!1}function B(){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 g(){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 T(){}function K(){}function n(a){var o=[];return a.forEach(function(p){o.push(p)}),o.sort().join(", ")}function F(a,o,p,m){return new Nz(a,o,p,m)}function V(a,o){a.context===Nt&&(g4(a.current,2,o,a,null,null),z0())}function C(a,o){if(gp!==null){var p=o.staleFamilies;o=o.updatedFamilies,Iv(),U7(a.current,o,p),z0()}}function A(a){gp=a}function j(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function Za(a){var o=a,p=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(p=o.return),a=o.return;while(a)}return o.tag===3?p:null}function aa(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function wa(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function P(a){if(Za(a)!==a)throw Error("Unable to find node on an unmounted component.")}function Na(a){var o=a.alternate;if(!o){if(o=Za(a),o===null)throw Error("Unable to find node on an unmounted component.");return o!==a?null:a}for(var p=a,m=o;;){var t=p.return;if(t===null)break;var r=t.alternate;if(r===null){if(m=t.return,m!==null){p=m;continue}break}if(t.child===r.child){for(r=t.child;r;){if(r===p)return P(t),a;if(r===m)return P(t),o;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(p.return!==m.return)p=t,m=r;else{for(var v=!1,b=t.child;b;){if(b===p){v=!0,p=t,m=r;break}if(b===m){v=!0,m=t,p=r;break}b=b.sibling}if(!v){for(b=r.child;b;){if(b===p){v=!0,p=r,m=t;break}if(b===m){v=!0,m=r,p=t;break}b=b.sibling}if(!v)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(p.alternate!==m)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(p.tag!==3)throw Error("Unable to find node on an unmounted component.");return p.stateNode.current===p?a:o}function Ma(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=Ma(a),o!==null)return o;a=a.sibling}return null}function Wa(a){if(a===null||typeof a!=="object")return null;return a=h8&&a[h8]||a["@@iterator"],typeof a==="function"?a:null}function ta(a){if(a==null)return null;if(typeof a==="function")return a.$$typeof===oJ?null:a.displayName||a.name||null;if(typeof a==="string")return a;switch(a){case _0:return"Fragment";case S4:return"Profiler";case w1:return"StrictMode";case u4:return"Suspense";case x4:return"SuspenseList";case V4:return"Activity"}if(typeof a==="object")switch(typeof a.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case G0:return"Portal";case Km:return a.displayName||"Context";case n4:return(a._context.displayName||"Context")+".Consumer";case Ev:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case f1:return o=a.displayName||null,o!==null?o:ta(a.type)||"Memo";case Qp:o=a._payload,a=a._init;try{return ta(a(o))}catch(p){}}return null}function io(a){return typeof a.tag==="number"?L(a):typeof a.name==="string"?a.name:null}function L(a){var o=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(o._context.displayName||"Context")+".Consumer";case 10:return o.displayName||"Context";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ta(o);case 8:return o===w1?"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 o==="function")return o.displayName||o.name||null;if(typeof o==="string")return o;break;case 29:if(o=a._debugInfo,o!=null){for(var p=o.length-1;0<=p;p--)if(typeof o[p].name==="string")return o[p].name}if(a.return!==null)return L(a.return)}return null}function ma(a){return{current:a}}function y(a,o){0>xm?console.error("Unexpected pop."):(o!==E4[xm]&&console.error("Unexpected Fiber popped."),a.current=D4[xm],D4[xm]=null,E4[xm]=null,xm--)}function U(a,o,p){xm++,D4[xm]=a.current,E4[xm]=p,a.current=o}function k(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function h(a,o){U(Ut,o,a),U(jv,a,a),U(Wt,null,a);var p=o.nodeType;switch(p){case 9:case 11:p=p===9?"#document":"#fragment",o=(o=o.documentElement)?(o=o.namespaceURI)?v8(o):bt:bt;break;default:if(p=o.tagName,o=o.namespaceURI)o=v8(o),o=b8(o,p);else switch(p){case"svg":o=av;break;case"math":o=bb;break;default:o=bt}}p=p.toLowerCase(),p=e6(null,p),p={context:o,ancestorInfo:p},y(Wt,a),U(Wt,p,a)}function S(a){y(Wt,a),y(jv,a),y(Ut,a)}function ra(){return k(Wt.current)}function Pa(a){a.memoizedState!==null&&U(i1,a,a);var o=k(Wt.current),p=a.type,m=b8(o.context,p);p=e6(o.ancestorInfo,p),m={context:m,ancestorInfo:p},o!==m&&(U(jv,a,a),U(Wt,m,a))}function xa(a){jv.current===a&&(y(Wt,a),y(jv,a)),i1.current===a&&(y(i1,a),A2._currentValue=Sr)}function yp(){}function Ep(){if(sv===0){F8=console.log,g8=console.info,C8=console.warn,I8=console.error,P8=console.group,A8=console.groupCollapsed,T8=console.groupEnd;var a={configurable:!0,enumerable:!0,value:yp,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}sv++}function vp(){if(sv--,sv===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ka({},a,{value:F8}),info:Ka({},a,{value:g8}),warn:Ka({},a,{value:C8}),error:Ka({},a,{value:I8}),group:Ka({},a,{value:P8}),groupCollapsed:Ka({},a,{value:A8}),groupEnd:Ka({},a,{value:T8})})}0>sv&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function yo(a){var o=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=o,a.startsWith(`Error: react-stack-top-frame
|
|
2
|
-
`)&&(a=a.slice(29)),o=a.indexOf(`
|
|
3
|
-
`),o!==-1&&(a=a.slice(o+1)),o=a.indexOf("react_stack_bottom_frame"),o!==-1&&(o=a.lastIndexOf(`
|
|
4
|
-
`,o)),o!==-1)a=a.slice(0,o);else return"";return a}function $o(a){if(j4===void 0)try{throw Error()}catch(p){var o=p.stack.trim().match(/\n( *(at )?)/);j4=o&&o[1]||"",S8=-1<p.stack.indexOf(`
|
|
5
|
-
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
6
|
-
`+j4+a+S8}function mr(a,o){if(!a||s4)return"";var p=e4.get(a);if(p!==void 0)return p;s4=!0,p=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var m=null;m=Q.H,Q.H=null,Ep();try{var t={DetermineComponentFrameRoot:function(){try{if(o){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(u){var q=u}Reflect.construct(a,[],z)}else{try{z.call()}catch(u){q=u}a.call(z.prototype)}}else{try{throw Error()}catch(u){q=u}(z=a())&&typeof z.catch==="function"&&z.catch(function(){})}}catch(u){if(u&&q&&typeof u.stack==="string")return[u.stack,q.stack]}return[null,null]}};t.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(t.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(t.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=t.DetermineComponentFrameRoot(),b=v[0],w=v[1];if(b&&w){var f=b.split(`
|
|
7
|
-
`),Y=w.split(`
|
|
8
|
-
`);for(v=r=0;r<f.length&&!f[r].includes("DetermineComponentFrameRoot");)r++;for(;v<Y.length&&!Y[v].includes("DetermineComponentFrameRoot");)v++;if(r===f.length||v===Y.length)for(r=f.length-1,v=Y.length-1;1<=r&&0<=v&&f[r]!==Y[v];)v--;for(;1<=r&&0<=v;r--,v--)if(f[r]!==Y[v]){if(r!==1||v!==1)do if(r--,v--,0>v||f[r]!==Y[v]){var X=`
|
|
9
|
-
`+f[r].replace(" at new "," at ");return a.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",a.displayName)),typeof a==="function"&&e4.set(a,X),X}while(1<=r&&0<=v);break}}}finally{s4=!1,Q.H=m,vp(),Error.prepareStackTrace=p}return f=(f=a?a.displayName||a.name:"")?$o(f):"",typeof a==="function"&&e4.set(a,f),f}function iv(a,o){switch(a.tag){case 26:case 27:case 5:return $o(a.type);case 16:return $o("Lazy");case 13:return a.child!==o&&o!==null?$o("Suspense Fallback"):$o("Suspense");case 19:return $o("SuspenseList");case 0:case 15:return mr(a.type,!1);case 11:return mr(a.type.render,!1);case 1:return mr(a.type,!0);case 31:return $o("Activity");default:return""}}function tr(a){try{var o="",p=null;do{o+=iv(a,p);var m=a._debugInfo;if(m)for(var t=m.length-1;0<=t;t--){var r=m[t];if(typeof r.name==="string"){var v=o;a:{var{name:b,env:w,debugLocation:f}=r;if(f!=null){var Y=yo(f),X=Y.lastIndexOf(`
|
|
10
|
-
`),z=X===-1?Y:Y.slice(X+1);if(z.indexOf(b)!==-1){var q=`
|
|
11
|
-
`+z;break a}}q=$o(b+(w?" ["+w+"]":""))}o=v+q}}p=a,a=a.return}while(a);return o}catch(u){return`
|
|
12
|
-
Error generating stack: `+u.message+`
|
|
13
|
-
`+u.stack}}function R(a){return(a=a?a.displayName||a.name:"")?$o(a):""}function s(){if(Bp===null)return null;var a=Bp._debugOwner;return a!=null?io(a):null}function Ta(){if(Bp===null)return"";var a=Bp;try{var o="";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:o+=$o(a.type);break;case 13:o+=$o("Suspense");break;case 19:o+=$o("SuspenseList");break;case 31:o+=$o("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||o!==""||(o+=R(a.type));break;case 11:a._debugOwner||o!==""||(o+=R(a.type.render))}for(;a;)if(typeof a.tag==="number"){var p=a;a=p._debugOwner;var m=p._debugStack;if(a&&m){var t=yo(m);t!==""&&(o+=`
|
|
14
|
-
`+t)}}else if(a.debugStack!=null){var r=a.debugStack;(a=a.owner)&&r&&(o+=`
|
|
15
|
-
`+yo(r))}else break;var v=o}catch(b){v=`
|
|
16
|
-
Error generating stack: `+b.message+`
|
|
17
|
-
`+b.stack}return v}function N(a,o,p,m,t,r,v){var b=Bp;lo(a);try{return a!==null&&a._debugTask?a._debugTask.run(o.bind(null,p,m,t,r,v)):o(p,m,t,r,v)}finally{lo(b)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function lo(a){Q.getCurrentStack=a===null?null:Ta,Hm=!1,Bp=a}function ko(a){return typeof Symbol==="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function $p(a){try{return lv(a),!1}catch(o){return!0}}function lv(a){return""+a}function sa(a,o){if($p(a))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",o,ko(a)),lv(a)}function Lb(a,o){if($p(a))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.",o,ko(a)),lv(a)}function yb(a){if($p(a))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.",ko(a)),lv(a)}function bz(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.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{d0=o.inject(a),xo=o}catch(p){console.error("React instrumentation encountered an error: %o.",p)}return o.checkDCE?!0:!1}function bo(a){if(typeof wJ==="function"&&fJ(a),xo&&typeof xo.setStrictMode==="function")try{xo.setStrictMode(d0,a)}catch(o){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",o))}}function wz(a){return a>>>=0,a===0?32:31-(iJ(a)/lJ|0)|0}function rr(a){var o=a&42;if(o!==0)return o;switch(a&-a){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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&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."),a}}function e2(a,o,p){var m=a.pendingLanes;if(m===0)return 0;var t=0,r=a.suspendedLanes,v=a.pingedLanes;a=a.warmLanes;var b=m&134217727;return b!==0?(m=b&~r,m!==0?t=rr(m):(v&=b,v!==0?t=rr(v):p||(p=b&~a,p!==0&&(t=rr(p))))):(b=m&~r,b!==0?t=rr(b):v!==0?t=rr(v):p||(p=m&~a,p!==0&&(t=rr(p)))),t===0?0:o!==0&&o!==t&&(o&r)===0&&(r=t&-t,p=o&-o,r>=p||r===32&&(p&4194048)!==0)?o:t}function cv(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function fz(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+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 o+5000;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 kb(){var a=z1;return z1<<=1,(z1&62914560)===0&&(z1=4194304),a}function Nb(a){for(var o=[],p=0;31>p;p++)o.push(a);return o}function zv(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function iz(a,o,p,m,t,r){var v=a.pendingLanes;a.pendingLanes=p,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=p,a.entangledLanes&=p,a.errorRecoveryDisabledLanes&=p,a.shellSuspendCounter=0;var{entanglements:b,expirationTimes:w,hiddenUpdates:f}=a;for(p=v&~p;0<p;){var Y=31-jo(p),X=1<<Y;b[Y]=0,w[Y]=-1;var z=f[Y];if(z!==null)for(f[Y]=null,Y=0;Y<z.length;Y++){var q=z[Y];q!==null&&(q.lane&=-536870913)}p&=~X}m!==0&&L6(a,m,0),r!==0&&t===0&&a.tag!==0&&(a.suspendedLanes|=r&~(v&~o))}function L6(a,o,p){a.pendingLanes|=o,a.suspendedLanes&=~o;var m=31-jo(o);a.entangledLanes|=o,a.entanglements[m]=a.entanglements[m]|1073741824|p&261930}function y6(a,o){var p=a.entangledLanes|=o;for(a=a.entanglements;p;){var m=31-jo(p),t=1<<m;t&o|a[m]&o&&(a[m]|=o),p&=~t}}function k6(a,o){var p=o&-o;return p=(p&42)!==0?1:Mb(p),(p&(a.suspendedLanes|o))!==0?0:p}function Mb(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function N6(a,o,p){if(Um)for(a=a.pendingUpdatersLaneMap;0<p;){var m=31-jo(p),t=1<<m;a[m].add(o),p&=~t}}function M6(a,o){if(Um)for(var{pendingUpdatersLaneMap:p,memoizedUpdaters:m}=a;0<o;){var t=31-jo(o);a=1<<t,t=p[t],0<t.size&&(t.forEach(function(r){var v=r.alternate;v!==null&&m.has(v)||m.add(r)}),t.clear()),o&=~a}}function hb(a){return a&=-a,Kp!==0&&Kp<a?om!==0&&om<a?(a&134217727)!==0?Rm:$1:om:Kp}function h6(){var a=Fa.p;if(a!==0)return a;return a=window.event,a===void 0?Rm:R8(a.type)}function F6(a,o){var p=Fa.p;try{return Fa.p=a,o()}finally{Fa.p=p}}function Fb(a){delete a[To],delete a[so],delete a[tw],delete a[cJ],delete a[zJ]}function jr(a){var o=a[To];if(o)return o;for(var p=a.parentNode;p;){if(o=p[Ot]||p[To]){if(p=o.alternate,o.child!==null||p!==null&&p.child!==null)for(a=J8(a);a!==null;){if(p=a[To])return p;a=J8(a)}return o}a=p,p=a.parentNode}return null}function $t(a){if(a=a[To]||a[Ot]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function $v(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function sr(a){var o=a[n8];return o||(o=a[n8]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function No(a){a[ev]=!0}function vr(a,o){er(a,o),er(a+"Capture",o)}function er(a,o){dr[a]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),dr[a]=o;var p=a.toLowerCase();rw[p]=a,a==="onDoubleClick"&&(rw.ondblclick=a);for(a=0;a<o.length;a++)u8.add(o[a])}function a0(a,o){$J[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||(a==="select"?console.error("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`."):console.error("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`.")),o.onChange||o.readOnly||o.disabled||o.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 gb(a){if(am.call(V8,a))return!0;if(am.call(x8,a))return!1;if(JJ.test(a))return V8[a]=!0;return x8[a]=!0,console.error("Invalid attribute name: `%s`",a),!1}function g6(a,o,p){if(gb(o)){if(!a.hasAttribute(o)){switch(typeof p){case"symbol":case"object":return p;case"function":return p;case"boolean":if(p===!1)return p}return p===void 0?void 0:null}if(a=a.getAttribute(o),a===""&&p===!0)return!0;return sa(p,o),a===""+p?p:a}}function a5(a,o,p){if(gb(o))if(p===null)a.removeAttribute(o);else{switch(typeof p){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var m=o.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(o);return}}sa(p,o),a.setAttribute(o,""+p)}}function o5(a,o,p){if(p===null)a.removeAttribute(o);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}sa(p,o),a.setAttribute(o,""+p)}}function gm(a,o,p,m){if(m===null)a.removeAttribute(p);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(p);return}sa(m,p),a.setAttributeNS(o,p,""+m)}}function kp(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return yb(a),a;default:return""}}function C6(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function lz(a,o,p){var m=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof m<"u"&&typeof m.get==="function"&&typeof m.set==="function"){var{get:t,set:r}=m;return Object.defineProperty(a,o,{configurable:!0,get:function(){return t.call(this)},set:function(v){yb(v),p=""+v,r.call(this,v)}}),Object.defineProperty(a,o,{enumerable:m.enumerable}),{getValue:function(){return p},setValue:function(v){yb(v),p=""+v},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Cb(a){if(!a._valueTracker){var o=C6(a)?"checked":"value";a._valueTracker=lz(a,o,""+a[o])}}function I6(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var p=o.getValue(),m="";return a&&(m=C6(a)?a.checked?"true":"false":a.value),a=m,a!==p?(o.setValue(a),!0):!1}function p5(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch(o){return a.body}}function Np(a){return a.replace(YJ,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function P6(a,o){o.checked===void 0||o.defaultChecked===void 0||E8||(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",s()||"A component",o.type),E8=!0),o.value===void 0||o.defaultValue===void 0||D8||(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",s()||"A component",o.type),D8=!0)}function Ib(a,o,p,m,t,r,v,b){if(a.name="",v!=null&&typeof v!=="function"&&typeof v!=="symbol"&&typeof v!=="boolean"?(sa(v,"type"),a.type=v):a.removeAttribute("type"),o!=null)if(v==="number"){if(o===0&&a.value===""||a.value!=o)a.value=""+kp(o)}else a.value!==""+kp(o)&&(a.value=""+kp(o));else v!=="submit"&&v!=="reset"||a.removeAttribute("value");o!=null?Pb(a,v,kp(o)):p!=null?Pb(a,v,kp(p)):m!=null&&a.removeAttribute("value"),t==null&&r!=null&&(a.defaultChecked=!!r),t!=null&&(a.checked=t&&typeof t!=="function"&&typeof t!=="symbol"),b!=null&&typeof b!=="function"&&typeof b!=="symbol"&&typeof b!=="boolean"?(sa(b,"name"),a.name=""+kp(b)):a.removeAttribute("name")}function A6(a,o,p,m,t,r,v,b){if(r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&typeof r!=="boolean"&&(sa(r,"type"),a.type=r),o!=null||p!=null){if(!(r!=="submit"&&r!=="reset"||o!==void 0&&o!==null)){Cb(a);return}p=p!=null?""+kp(p):"",o=o!=null?""+kp(o):p,b||o===a.value||(a.value=o),a.defaultValue=o}m=m!=null?m:t,m=typeof m!=="function"&&typeof m!=="symbol"&&!!m,a.checked=b?a.checked:!!m,a.defaultChecked=!!m,v!=null&&typeof v!=="function"&&typeof v!=="symbol"&&typeof v!=="boolean"&&(sa(v,"name"),a.name=v),Cb(a)}function Pb(a,o,p){o==="number"&&p5(a.ownerDocument)===a||a.defaultValue===""+p||(a.defaultValue=""+p)}function T6(a,o){o.value==null&&(typeof o.children==="object"&&o.children!==null?pv.Children.forEach(o.children,function(p){p==null||typeof p==="string"||typeof p==="number"||typeof p==="bigint"||s8||(s8=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):o.dangerouslySetInnerHTML==null||e8||(e8=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),o.selected==null||j8||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),j8=!0)}function S6(){var a=s();return a?`
|
|
18
|
-
|
|
19
|
-
Check the render method of \``+a+"`.":""}function o0(a,o,p,m){if(a=a.options,o){o={};for(var t=0;t<p.length;t++)o["$"+p[t]]=!0;for(p=0;p<a.length;p++)t=o.hasOwnProperty("$"+a[p].value),a[p].selected!==t&&(a[p].selected=t),t&&m&&(a[p].defaultSelected=!0)}else{p=""+kp(p),o=null;for(t=0;t<a.length;t++){if(a[t].value===p){a[t].selected=!0,m&&(a[t].defaultSelected=!0);return}o!==null||a[t].disabled||(o=a[t])}o!==null&&(o.selected=!0)}}function n6(a,o){for(a=0;a<ol.length;a++){var p=ol[a];if(o[p]!=null){var m=Ro(o[p]);o.multiple&&!m?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",p,S6()):!o.multiple&&m&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",p,S6())}}o.value===void 0||o.defaultValue===void 0||al||(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"),al=!0)}function u6(a,o){o.value===void 0||o.defaultValue===void 0||pl||(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",s()||"A component"),pl=!0),o.children!=null&&o.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function x6(a,o,p){if(o!=null&&(o=""+kp(o),o!==a.value&&(a.value=o),p==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=p!=null?""+kp(p):""}function V6(a,o,p,m){if(o==null){if(m!=null){if(p!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ro(m)){if(1<m.length)throw Error("<textarea> can only have at most one child.");m=m[0]}p=m}p==null&&(p=""),o=p}p=kp(o),a.defaultValue=p,m=a.textContent,m===p&&m!==""&&m!==null&&(a.value=m),Cb(a)}function D6(a,o){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-o?D6(a.children[0],o):a}function Jp(a){return" "+" ".repeat(a)}function p0(a){return"+ "+" ".repeat(a)}function br(a){return"- "+" ".repeat(a)}function E6(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function Jv(a,o){return ml.test(a)?(a=JSON.stringify(a),a.length>o-2?8>o?'{"..."}':"{"+a.slice(0,o-7)+'..."}':"{"+a+"}"):a.length>o?5>o?'{"..."}':a.slice(0,o-3)+"...":a}function m5(a,o,p){var m=120-2*p;if(o===null)return p0(p)+Jv(a,m)+`
|
|
20
|
-
`;if(typeof o==="string"){for(var t=0;t<o.length&&t<a.length&&o.charCodeAt(t)===a.charCodeAt(t);t++);return t>m-8&&10<t&&(a="..."+a.slice(t-8),o="..."+o.slice(t-8)),p0(p)+Jv(a,m)+`
|
|
21
|
-
`+br(p)+Jv(o,m)+`
|
|
22
|
-
`}return Jp(p)+Jv(a,m)+`
|
|
23
|
-
`}function Ab(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(o,p){return p})}function Yv(a,o){switch(typeof a){case"string":return a=JSON.stringify(a),a.length>o?5>o?'"..."':a.slice(0,o-4)+'..."':a;case"object":if(a===null)return"null";if(Ro(a))return"[...]";if(a.$$typeof===Bm)return(o=ta(a.type))?"<"+o+">":"<...>";var p=Ab(a);if(p==="Object"){p="",o-=2;for(var m in a)if(a.hasOwnProperty(m)){var t=JSON.stringify(m);if(t!=='"'+m+'"'&&(m=t),o-=m.length-2,t=Yv(a[m],15>o?o:15),o-=t.length,0>o){p+=p===""?"...":", ...";break}p+=(p===""?"":",")+m+":"+t}return"{"+p+"}"}return p;case"function":return(o=a.displayName||a.name)?"function "+o:"function";default:return String(a)}}function m0(a,o){return typeof a!=="string"||ml.test(a)?"{"+Yv(a,o-2)+"}":a.length>o-2?5>o?'"..."':'"'+a.slice(0,o-5)+'..."':'"'+a+'"'}function Tb(a,o,p){var m=120-p.length-a.length,t=[],r;for(r in o)if(o.hasOwnProperty(r)&&r!=="children"){var v=m0(o[r],120-p.length-r.length-1);m-=r.length+v.length+2,t.push(r+"="+v)}return t.length===0?p+"<"+a+`>
|
|
24
|
-
`:0<m?p+"<"+a+" "+t.join(" ")+`>
|
|
25
|
-
`:p+"<"+a+`
|
|
26
|
-
`+p+" "+t.join(`
|
|
27
|
-
`+p+" ")+`
|
|
28
|
-
`+p+`>
|
|
29
|
-
`}function cz(a,o,p){var m="",t=Ka({},o),r;for(r in a)if(a.hasOwnProperty(r)){delete t[r];var v=120-2*p-r.length-2,b=Yv(a[r],v);o.hasOwnProperty(r)?(v=Yv(o[r],v),m+=p0(p)+r+": "+b+`
|
|
30
|
-
`,m+=br(p)+r+": "+v+`
|
|
31
|
-
`):m+=p0(p)+r+": "+b+`
|
|
32
|
-
`}for(var w in t)t.hasOwnProperty(w)&&(a=Yv(t[w],120-2*p-w.length-2),m+=br(p)+w+": "+a+`
|
|
33
|
-
`);return m}function zz(a,o,p,m){var t="",r=new Map;for(f in p)p.hasOwnProperty(f)&&r.set(f.toLowerCase(),f);if(r.size===1&&r.has("children"))t+=Tb(a,o,Jp(m));else{for(var v in o)if(o.hasOwnProperty(v)&&v!=="children"){var b=120-2*(m+1)-v.length-1,w=r.get(v.toLowerCase());if(w!==void 0){r.delete(v.toLowerCase());var f=o[v];w=p[w];var Y=m0(f,b);b=m0(w,b),typeof f==="object"&&f!==null&&typeof w==="object"&&w!==null&&Ab(f)==="Object"&&Ab(w)==="Object"&&(2<Object.keys(f).length||2<Object.keys(w).length||-1<Y.indexOf("...")||-1<b.indexOf("..."))?t+=Jp(m+1)+v+`={{
|
|
34
|
-
`+cz(f,w,m+2)+Jp(m+1)+`}}
|
|
35
|
-
`:(t+=p0(m+1)+v+"="+Y+`
|
|
36
|
-
`,t+=br(m+1)+v+"="+b+`
|
|
37
|
-
`)}else t+=Jp(m+1)+v+"="+m0(o[v],b)+`
|
|
38
|
-
`}r.forEach(function(X){if(X!=="children"){var z=120-2*(m+1)-X.length-1;t+=br(m+1)+X+"="+m0(p[X],z)+`
|
|
39
|
-
`}}),t=t===""?Jp(m)+"<"+a+`>
|
|
40
|
-
`:Jp(m)+"<"+a+`
|
|
41
|
-
`+t+Jp(m)+`>
|
|
42
|
-
`}if(a=p.children,o=o.children,typeof a==="string"||typeof a==="number"||typeof a==="bigint"){if(r="",typeof o==="string"||typeof o==="number"||typeof o==="bigint")r=""+o;t+=m5(r,""+a,m+1)}else if(typeof o==="string"||typeof o==="number"||typeof o==="bigint")t=a==null?t+m5(""+o,null,m+1):t+m5(""+o,void 0,m+1);return t}function j6(a,o){var p=E6(a);if(p===null){p="";for(a=a.child;a;)p+=j6(a,o),a=a.sibling;return p}return Jp(o)+"<"+p+`>
|
|
43
|
-
`}function Sb(a,o){var p=D6(a,o);if(p!==a&&(a.children.length!==1||a.children[0]!==p))return Jp(o)+`...
|
|
44
|
-
`+Sb(p,o+1);p="";var m=a.fiber._debugInfo;if(m)for(var t=0;t<m.length;t++){var r=m[t].name;typeof r==="string"&&(p+=Jp(o)+"<"+r+`>
|
|
45
|
-
`,o++)}if(m="",t=a.fiber.pendingProps,a.fiber.tag===6)m=m5(t,a.serverProps,o),o++;else if(r=E6(a.fiber),r!==null)if(a.serverProps===void 0){m=o;var v=120-2*m-r.length-2,b="";for(f in t)if(t.hasOwnProperty(f)&&f!=="children"){var w=m0(t[f],15);if(v-=f.length+w.length+2,0>v){b+=" ...";break}b+=" "+f+"="+w}m=Jp(m)+"<"+r+b+`>
|
|
46
|
-
`,o++}else a.serverProps===null?(m=Tb(r,t,p0(o)),o++):typeof a.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(m=zz(r,t,a.serverProps,o),o++);var f="";t=a.fiber.child;for(r=0;t&&r<a.children.length;)v=a.children[r],v.fiber===t?(f+=Sb(v,o),r++):f+=j6(t,o),t=t.sibling;t&&0<a.children.length&&(f+=Jp(o)+`...
|
|
47
|
-
`),t=a.serverTail,a.serverProps===null&&o--;for(a=0;a<t.length;a++)r=t[a],f=typeof r==="string"?f+(br(o)+Jv(r,120-2*o)+`
|
|
48
|
-
`):f+Tb(r.type,r.props,br(o));return p+m+f}function nb(a){try{return`
|
|
49
|
-
|
|
50
|
-
`+Sb(a,0)}catch(o){return""}}function s6(a,o,p){for(var m=o,t=null,r=0;m;)m===a&&(r=0),t={fiber:m,children:t!==null?[t]:[],serverProps:m===o?p:m===a?null:void 0,serverTail:[],distanceFromLeaf:r},r++,m=m.return;return t!==null?nb(t).replaceAll(/^[+-]/gm,">"):""}function e6(a,o){var p=Ka({},a||rl),m={tag:o};if(tl.indexOf(o)!==-1&&(p.aTagInScope=null,p.buttonTagInScope=null,p.nobrTagInScope=null),ZJ.indexOf(o)!==-1&&(p.pTagInButtonScope=null),XJ.indexOf(o)!==-1&&o!=="address"&&o!=="div"&&o!=="p"&&(p.listItemTagAutoclosing=null,p.dlItemTagAutoclosing=null),p.current=m,o==="form"&&(p.formTag=m),o==="a"&&(p.aTagInScope=m),o==="button"&&(p.buttonTagInScope=m),o==="nobr"&&(p.nobrTagInScope=m),o==="p"&&(p.pTagInButtonScope=m),o==="li"&&(p.listItemTagAutoclosing=m),o==="dd"||o==="dt")p.dlItemTagAutoclosing=m;return o==="#document"||o==="html"?p.containerTagInScope=null:p.containerTagInScope||(p.containerTagInScope=m),a!==null||o!=="#document"&&o!=="html"&&o!=="body"?p.implicitRootScope===!0&&(p.implicitRootScope=!1):p.implicitRootScope=!0,p}function a7(a,o,p){switch(o){case"select":return a==="hr"||a==="option"||a==="optgroup"||a==="script"||a==="template"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":if(p)break;return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":if(!p)return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o!=="h1"&&o!=="h2"&&o!=="h3"&&o!=="h4"&&o!=="h5"&&o!=="h6";case"rp":case"rt":return GJ.indexOf(o)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return o==null;case"head":return p||o===null;case"html":return p&&o==="#document"||o===null;case"body":return p&&(o==="#document"||o==="html")||o===null}return!0}function $z(a,o){switch(a){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 o.pTagInButtonScope;case"form":return o.formTag||o.pTagInButtonScope;case"li":return o.listItemTagAutoclosing;case"dd":case"dt":return o.dlItemTagAutoclosing;case"button":return o.buttonTagInScope;case"a":return o.aTagInScope;case"nobr":return o.nobrTagInScope}return null}function o7(a,o){for(;a;){switch(a.tag){case 5:case 26:case 27:if(a.type===o)return a}a=a.return}return null}function ub(a,o){o=o||rl;var p=o.current;if(o=(p=a7(a,p&&p.tag,o.implicitRootScope)?null:p)?null:$z(a,o),o=p||o,!o)return!0;var m=o.tag;if(o=String(!!p)+"|"+a+"|"+m,J1[o])return!1;J1[o]=!0;var t=(o=Bp)?o7(o.return,m):null,r=o!==null&&t!==null?s6(t,o,null):"",v="<"+a+">";return p?(p="",m==="table"&&a==="tr"&&(p+=" 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
|
|
51
|
-
This will cause a hydration error.%s`,v,m,p,r)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
52
|
-
This will cause a hydration error.%s`,v,m,r),o&&(a=o.return,t===null||a===null||t===a&&a._debugOwner===o._debugOwner||N(t,function(){console.error(`<%s> cannot contain a nested %s.
|
|
53
|
-
See this log for the ancestor stack trace.`,m,v)})),!1}function t5(a,o,p){if(p||a7("#text",o,!1))return!0;if(p="#text|"+o,J1[p])return!1;J1[p]=!0;var m=(p=Bp)?o7(p,o):null;return p=p!==null&&m!==null?s6(m,p,p.tag!==6?{children:null}:null):"",/\S/.test(a)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
54
|
-
This will cause a hydration error.%s`,o,p):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.
|
|
55
|
-
This will cause a hydration error.%s`,o,p),!1}function Xv(a,o){if(o){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=o;return}}a.textContent=o}function Jz(a){return a.replace(dJ,function(o,p){return p.toUpperCase()})}function p7(a,o,p){var m=o.indexOf("--")===0;m||(-1<o.indexOf("-")?Q0.hasOwnProperty(o)&&Q0[o]||(Q0[o]=!0,console.error("Unsupported style property %s. Did you mean %s?",o,Jz(o.replace(qJ,"ms-")))):_J.test(o)?Q0.hasOwnProperty(o)&&Q0[o]||(Q0[o]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",o,o.charAt(0).toUpperCase()+o.slice(1))):!wl.test(p)||bw.hasOwnProperty(p)&&bw[p]||(bw[p]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,o,p.replace(wl,""))),typeof p==="number"&&(isNaN(p)?fl||(fl=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",o)):isFinite(p)||il||(il=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",o)))),p==null||typeof p==="boolean"||p===""?m?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":m?a.setProperty(o,p):typeof p!=="number"||p===0||ll.has(o)?o==="float"?a.cssFloat=p:(Lb(p,o),a[o]=(""+p).trim()):a[o]=p+"px"}function m7(a,o,p){if(o!=null&&typeof o!=="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(o&&Object.freeze(o),a=a.style,p!=null){if(o){var m={};if(p){for(var t in p)if(p.hasOwnProperty(t)&&!o.hasOwnProperty(t))for(var r=vw[t]||[t],v=0;v<r.length;v++)m[r[v]]=t}for(var b in o)if(o.hasOwnProperty(b)&&(!p||p[b]!==o[b]))for(t=vw[b]||[b],r=0;r<t.length;r++)m[t[r]]=b;b={};for(var w in o)for(t=vw[w]||[w],r=0;r<t.length;r++)b[t[r]]=w;w={};for(var f in m)if(t=m[f],(r=b[f])&&t!==r&&(v=t+","+r,!w[v])){w[v]=!0,v=console;var Y=o[t];v.error.call(v,"%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.",Y==null||typeof Y==="boolean"||Y===""?"Removing":"Updating",t,r)}}for(var X in p)!p.hasOwnProperty(X)||o!=null&&o.hasOwnProperty(X)||(X.indexOf("--")===0?a.setProperty(X,""):X==="float"?a.cssFloat="":a[X]="");for(var z in o)f=o[z],o.hasOwnProperty(z)&&p[z]!==f&&p7(a,z,f)}else for(m in o)o.hasOwnProperty(m)&&p7(a,m,o[m])}function Zv(a){if(a.indexOf("-")===-1)return!1;switch(a){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 t7(a){return QJ.get(a)||a}function Yz(a,o){if(am.call(K0,o)&&K0[o])return!0;if(KJ.test(o)){if(a="aria-"+o.slice(4).toLowerCase(),a=cl.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),K0[o]=!0;if(o!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,a),K0[o]=!0}if(BJ.test(o)){if(a=o.toLowerCase(),a=cl.hasOwnProperty(a)?a:null,a==null)return K0[o]=!0,!1;o!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,a),K0[o]=!0)}return!0}function Xz(a,o){var p=[],m;for(m in o)Yz(a,m)||p.push(m);o=p.map(function(t){return"`"+t+"`"}).join(", "),p.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,a):1<p.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,a)}function Zz(a,o,p,m){if(am.call(eo,o)&&eo[o])return!0;var t=o.toLowerCase();if(t==="onfocusin"||t==="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."),eo[o]=!0;if(typeof p==="function"&&(a==="form"&&o==="action"||a==="input"&&o==="formAction"||a==="button"&&o==="formAction"))return!0;if(m!=null){if(a=m.possibleRegistrationNames,m.registrationNameDependencies.hasOwnProperty(o))return!0;if(m=a.hasOwnProperty(t)?a[t]:null,m!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",o,m),eo[o]=!0;if($l.test(o))return console.error("Unknown event handler property `%s`. It will be ignored.",o),eo[o]=!0}else if($l.test(o))return HJ.test(o)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),eo[o]=!0;if(WJ.test(o)||UJ.test(o))return!0;if(t==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),eo[o]=!0;if(t==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),eo[o]=!0;if(t==="is"&&p!==null&&p!==void 0&&typeof p!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof p),eo[o]=!0;if(typeof p==="number"&&isNaN(p))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),eo[o]=!0;if(X1.hasOwnProperty(t)){if(t=X1[t],t!==o)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",o,t),eo[o]=!0}else if(o!==t)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.",o,t),eo[o]=!0;switch(o){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 p){case"boolean":switch(o){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:if(t=o.toLowerCase().slice(0,5),t==="data-"||t==="aria-")return!0;return p?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()}.',p,o,o,p,o):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.',p,o,o,p,o,o,o),eo[o]=!0}case"function":case"symbol":return eo[o]=!0,!1;case"string":if(p==="false"||p==="true"){switch(o){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}?",p,o,p==="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".',o,p),eo[o]=!0}}return!0}function Gz(a,o,p){var m=[],t;for(t in o)Zz(a,t,o[t],p)||m.push(t);o=m.map(function(r){return"`"+r+"`"}).join(", "),m.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 ",o,a):1<m.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 ",o,a)}function Gv(a){return RJ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Cm(){}function xb(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function r7(a){var o=$t(a);if(o&&(a=o.stateNode)){var p=a[so]||null;a:switch(a=o.stateNode,o.type){case"input":if(Ib(a,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),o=p.name,p.type==="radio"&&o!=null){for(p=a;p.parentNode;)p=p.parentNode;sa(o,"name"),p=p.querySelectorAll('input[name="'+Np(""+o)+'"][type="radio"]');for(o=0;o<p.length;o++){var m=p[o];if(m!==a&&m.form===a.form){var t=m[so]||null;if(!t)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ib(m,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name)}}for(o=0;o<p.length;o++)m=p[o],m.form===a.form&&I6(m)}break a;case"textarea":x6(a,p.value,p.defaultValue);break a;case"select":o=p.value,o!=null&&o0(a,!!p.multiple,o,!1)}}}function v7(a,o,p){if(ww)return a(o,p);ww=!0;try{var m=a(o);return m}finally{if(ww=!1,H0!==null||W0!==null){if(z0(),H0&&(o=H0,a=W0,W0=H0=null,r7(o),a))for(o=0;o<a.length;o++)r7(a[o])}}}function _v(a,o){var p=a.stateNode;if(p===null)return null;var m=p[so]||null;if(m===null)return null;p=m[o];a:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break a;default:a=!1}if(a)return null;if(p&&typeof p!=="function")throw Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}function b7(){if(Z1)return Z1;var a,o=iw,p=o.length,m,t="value"in Lt?Lt.value:Lt.textContent,r=t.length;for(a=0;a<p&&o[a]===t[a];a++);var v=p-a;for(m=1;m<=v&&o[p-m]===t[r-m];m++);return Z1=t.slice(a,1<m?1-m:void 0)}function r5(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function v5(){return!0}function w7(){return!1}function bp(a){function o(p,m,t,r,v){this._reactName=p,this._targetInst=t,this.type=m,this.nativeEvent=r,this.target=v,this.currentTarget=null;for(var b in a)a.hasOwnProperty(b)&&(p=a[b],this[b]=p?p(r):r[b]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?v5:w7,this.isPropagationStopped=w7,this}return Ka(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!=="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=v5)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!=="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=v5)},persist:function(){},isPersistent:v5}),o}function _z(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=AJ[a])?!!o[a]:!1}function Vb(){return _z}function f7(a,o){switch(a){case"keyup":return aY.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==Zl;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function i7(a){return a=a.detail,typeof a==="object"&&"data"in a?a.data:null}function qz(a,o){switch(a){case"compositionend":return i7(o);case"keypress":if(o.which!==_l)return null;return dl=!0,ql;case"textInput":return a=o.data,a===ql&&dl?null:a;default:return null}}function dz(a,o){if(U0)return a==="compositionend"||!$w&&f7(a,o)?(a=b7(),Z1=iw=Lt=null,U0=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Gl&&o.locale!=="ko"?null:o.data;default:return null}}function l7(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!pY[a.type]:o==="textarea"?!0:!1}function Qz(a){if(!Om)return!1;a="on"+a;var o=a in document;return o||(o=document.createElement("div"),o.setAttribute(a,"return;"),o=typeof o[a]==="function"),o}function c7(a,o,p,m){H0?W0?W0.push(m):W0=[m]:H0=m,o=s5(o,"onChange"),0<o.length&&(p=new G1("onChange","change",null,p,m),a.push({event:p,listeners:o}))}function Bz(a){Di(a,0)}function b5(a){var o=$v(a);if(I6(o))return a}function z7(a,o){if(a==="change")return o}function $7(){r2&&(r2.detachEvent("onpropertychange",J7),v2=r2=null)}function J7(a){if(a.propertyName==="value"&&b5(v2)){var o=[];c7(o,v2,a,xb(a)),v7(Bz,o)}}function Kz(a,o,p){a==="focusin"?($7(),r2=o,v2=p,r2.attachEvent("onpropertychange",J7)):a==="focusout"&&$7()}function Hz(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return b5(v2)}function Wz(a,o){if(a==="click")return b5(o)}function Uz(a,o){if(a==="input"||a==="change")return b5(o)}function Rz(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}function qv(a,o){if(ap(a,o))return!0;if(typeof a!=="object"||a===null||typeof o!=="object"||o===null)return!1;var p=Object.keys(a),m=Object.keys(o);if(p.length!==m.length)return!1;for(m=0;m<p.length;m++){var t=p[m];if(!am.call(o,t)||!ap(a[t],o[t]))return!1}return!0}function Y7(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function X7(a,o){var p=Y7(a);a=0;for(var m;p;){if(p.nodeType===3){if(m=a+p.textContent.length,a<=o&&m>=o)return{node:p,offset:o-a};a=m}a:{for(;p;){if(p.nextSibling){p=p.nextSibling;break a}p=p.parentNode}p=void 0}p=Y7(p)}}function Z7(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?Z7(a,o.parentNode):("contains"in a)?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function G7(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=p5(a.document);o instanceof a.HTMLIFrameElement;){try{var p=typeof o.contentWindow.location.href==="string"}catch(m){p=!1}if(p)a=o.contentWindow;else break;o=p5(a.document)}return o}function Db(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function _7(a,o,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Yw||R0==null||R0!==p5(m)||(m=R0,("selectionStart"in m)&&Db(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),b2&&qv(b2,m)||(b2=m,m=s5(Jw,"onSelect"),0<m.length&&(o=new G1("onSelect","select",null,o,p),a.push({event:o,listeners:m}),o.target=R0)))}function wr(a,o){var p={};return p[a.toLowerCase()]=o.toLowerCase(),p["Webkit"+a]="webkit"+o,p["Moz"+a]="moz"+o,p}function fr(a){if(Xw[a])return Xw[a];if(!O0[a])return a;var o=O0[a],p;for(p in o)if(o.hasOwnProperty(p)&&p in Bl)return Xw[a]=o[p];return a}function jp(a,o){Rl.set(a,o),vr(o,[a])}function Oz(a){for(var o=q1,p=0;p<a.length;p++){var m=a[p];if(typeof m==="object"&&m!==null)if(Ro(m)&&m.length===2&&typeof m[0]==="string"){if(o!==q1&&o!==dw)return _w;o=dw}else return _w;else{if(typeof m==="function"||typeof m==="string"&&50<m.length||o!==q1&&o!==qw)return _w;o=qw}}return o}function Eb(a,o,p,m){for(var t in a)am.call(a,t)&&t[0]!=="_"&&wm(t,a[t],o,p,m)}function wm(a,o,p,m,t){switch(typeof o){case"object":if(o===null){o="null";break}else{if(o.$$typeof===Bm){var r=ta(o.type)||"…",v=o.key;o=o.props;var b=Object.keys(o),w=b.length;if(v==null&&w===0){o="<"+r+" />";break}if(3>m||w===1&&b[0]==="children"&&v==null){o="<"+r+" … />";break}p.push([t+" ".repeat(m)+a,"<"+r]),v!==null&&wm("key",v,p,m+1,t),a=!1;for(var f in o)f==="children"?o.children!=null&&(!Ro(o.children)||0<o.children.length)&&(a=!0):am.call(o,f)&&f[0]!=="_"&&wm(f,o[f],p,m+1,t);p.push(["",a?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(o),r=r.slice(8,r.length-1),r==="Array"){if(f=Oz(o),f===qw||f===q1){o=JSON.stringify(o);break}else if(f===dw){p.push([t+" ".repeat(m)+a,""]);for(a=0;a<o.length;a++)r=o[a],wm(r[0],r[1],p,m+1,t);return}}if(r==="Promise"){if(o.status==="fulfilled"){if(r=p.length,wm(a,o.value,p,m,t),p.length>r){p=p[r],p[1]="Promise<"+(p[1]||"Object")+">";return}}else if(o.status==="rejected"&&(r=p.length,wm(a,o.reason,p,m,t),p.length>r)){p=p[r],p[1]="Rejected Promise<"+p[1]+">";return}p.push([" ".repeat(m)+a,"Promise"]);return}r==="Object"&&(f=Object.getPrototypeOf(o))&&typeof f.constructor==="function"&&(r=f.constructor.name),p.push([t+" ".repeat(m)+a,r==="Object"?3>m?"":"…":r]),3>m&&Eb(o,p,m+1,t);return}case"function":o=o.name===""?"() => {}":o.name+"() {}";break;case"string":o=o===fY?"…":JSON.stringify(o);break;case"undefined":o="undefined";break;case"boolean":o=o?"true":"false";break;default:o=String(o)}p.push([t+" ".repeat(m)+a,o])}function q7(a,o,p,m){var t=!0;for(v in a)v in o||(p.push([d1+" ".repeat(m)+v,"…"]),t=!1);for(var r in o)if(r in a){var v=a[r],b=o[r];if(v!==b){if(m===0&&r==="children")t=" ".repeat(m)+r,p.push([d1+t,"…"],[Q1+t,"…"]);else{if(!(3<=m)){if(typeof v==="object"&&typeof b==="object"&&v!==null&&b!==null&&v.$$typeof===b.$$typeof)if(b.$$typeof===Bm){if(v.type===b.type&&v.key===b.key){v=ta(b.type)||"…",t=" ".repeat(m)+r,v="<"+v+" … />",p.push([d1+t,v],[Q1+t,v]),t=!1;continue}}else{var w=Object.prototype.toString.call(v),f=Object.prototype.toString.call(b);if(w===f&&(f==="[object Object]"||f==="[object Array]")){w=[yl+" ".repeat(m)+r,f==="[object Array]"?"Array":""],p.push(w),f=p.length,q7(v,b,p,m+1)?f===p.length&&(w[1]="Referentially unequal but deeply equal objects. Consider memoization."):t=!1;continue}}else if(typeof v==="function"&&typeof b==="function"&&v.name===b.name&&v.length===b.length&&(w=Function.prototype.toString.call(v),f=Function.prototype.toString.call(b),w===f)){v=b.name===""?"() => {}":b.name+"() {}",p.push([yl+" ".repeat(m)+r,v+" Referentially unequal function closure. Consider memoization."]);continue}}wm(r,v,p,m,d1),wm(r,b,p,m,Q1)}t=!1}}else p.push([Q1+" ".repeat(m)+r,"…"]),t=!1;return t}function Yp(a){Ua=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function fm(a,o,p,m){ea&&(kt.start=o,kt.end=p,Vm.color="warning",Vm.tooltipText=m,Vm.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,m,kt)):performance.measure(m,kt))}function w5(a,o,p){fm(a,o,p,"Reconnect")}function f5(a,o,p,m,t){var r=L(a);if(r!==null&&ea){var{alternate:v,actualDuration:b}=a;if(v===null||v.child!==a.child)for(var w=a.child;w!==null;w=w.sibling)b-=w.actualDuration;m=0.5>b?m?"tertiary-light":"primary-light":10>b?m?"tertiary":"primary":100>b?m?"tertiary-dark":"primary-dark":"error";var f=a.memoizedProps;b=a._debugTask,f!==null&&v!==null&&v.memoizedProps!==f?(w=[iY],f=q7(v.memoizedProps,f,w,0),1<w.length&&(f&&!yt&&(v.lanes&t)===0&&100<a.actualDuration?(yt=!0,w[0]=lY,Vm.color="warning",Vm.tooltipText=kl):(Vm.color=m,Vm.tooltipText=r),Vm.properties=w,kt.start=o,kt.end=p,b!=null?b.run(performance.measure.bind(performance,""+r,kt)):performance.measure(""+r,kt))):b!=null?b.run(console.timeStamp.bind(console,r,o,p,hp,void 0,m)):console.timeStamp(r,o,p,hp,void 0,m)}}function jb(a,o,p,m){if(ea){var t=L(a);if(t!==null){for(var r=null,v=[],b=0;b<m.length;b++){var w=m[b];r==null&&w.source!==null&&(r=w.source._debugTask),w=w.value,v.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}a.key!==null&&wm("key",a.key,v,0,""),a.memoizedProps!==null&&Eb(a.memoizedProps,v,0,""),r==null&&(r=a._debugTask),a={start:o,end:p,detail:{devtools:{color:"error",track:hp,tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:v}}},r?r.run(performance.measure.bind(performance,""+t,a)):performance.measure(""+t,a)}}}function im(a,o,p,m,t){if(t!==null){if(ea){var r=L(a);if(r!==null){m=[];for(var v=0;v<t.length;v++){var b=t[v].value;m.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a.key!==null&&wm("key",a.key,m,0,""),a.memoizedProps!==null&&Eb(a.memoizedProps,m,0,""),o={start:o,end:p,detail:{devtools:{color:"error",track:hp,tooltipText:"A lifecycle or effect errored",properties:m}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,""+r,o)):performance.measure(""+r,o)}}}else r=L(a),r!==null&&ea&&(t=1>m?"secondary-light":100>m?"secondary":500>m?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,r,o,p,hp,void 0,t)):console.timeStamp(r,o,p,hp,void 0,t))}function Lz(a,o,p,m){if(ea&&!(o<=a)){var t=(p&738197653)===p?"tertiary-dark":"primary-dark";p=(p&536870912)===p?"Prepared":(p&201326741)===p?"Hydrated":"Render",m?m.run(console.timeStamp.bind(console,p,a,o,Ua,Ha,t)):console.timeStamp(p,a,o,Ua,Ha,t)}}function d7(a,o,p,m){!ea||o<=a||(p=(p&738197653)===p?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Prewarm",a,o,Ua,Ha,p)):console.timeStamp("Prewarm",a,o,Ua,Ha,p))}function Q7(a,o,p,m){!ea||o<=a||(p=(p&738197653)===p?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Suspended",a,o,Ua,Ha,p)):console.timeStamp("Suspended",a,o,Ua,Ha,p))}function yz(a,o,p,m,t,r){if(ea&&!(o<=a)){p=[];for(var v=0;v<m.length;v++){var b=m[v].value;p.push(["Recoverable Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a={start:a,end:o,detail:{devtools:{color:"primary-dark",track:Ua,trackGroup:Ha,tooltipText:t?"Hydration Failed":"Recovered after Error",properties:p}}},r?r.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function sb(a,o,p,m){!ea||o<=a||(m?m.run(console.timeStamp.bind(console,"Errored",a,o,Ua,Ha,"error")):console.timeStamp("Errored",a,o,Ua,Ha,"error"))}function kz(a,o,p,m){!ea||o<=a||(m?m.run(console.timeStamp.bind(console,p,a,o,Ua,Ha,"secondary-light")):console.timeStamp(p,a,o,Ua,Ha,"secondary-light"))}function B7(a,o,p,m,t){if(ea&&!(o<=a)){for(var r=[],v=0;v<p.length;v++){var b=p[v].value;r.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a={start:a,end:o,detail:{devtools:{color:"error",track:Ua,trackGroup:Ha,tooltipText:m?"Remaining Effects Errored":"Commit Errored",properties:r}}},t?t.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function dv(a,o,p){!ea||o<=a||(p?p.run(console.timeStamp.bind(console,"Animating",a,o,Ua,Ha,"secondary-dark")):console.timeStamp("Animating",a,o,Ua,Ha,"secondary-dark"))}function i5(){for(var a=L0,o=Qw=L0=0;o<a;){var p=Fp[o];Fp[o++]=null;var m=Fp[o];Fp[o++]=null;var t=Fp[o];Fp[o++]=null;var r=Fp[o];if(Fp[o++]=null,m!==null&&t!==null){var v=m.pending;v===null?t.next=t:(t.next=v.next,v.next=t),m.pending=t}r!==0&&K7(p,t,r)}}function l5(a,o,p,m){Fp[L0++]=a,Fp[L0++]=o,Fp[L0++]=p,Fp[L0++]=m,Qw|=m,a.lanes|=m,a=a.alternate,a!==null&&(a.lanes|=m)}function eb(a,o,p,m){return l5(a,o,p,m),c5(a)}function uo(a,o){return l5(a,null,null,o),c5(a)}function K7(a,o,p){a.lanes|=p;var m=a.alternate;m!==null&&(m.lanes|=p);for(var t=!1,r=a.return;r!==null;)r.childLanes|=p,m=r.alternate,m!==null&&(m.childLanes|=p),r.tag===22&&(a=r.stateNode,a===null||a._visibility&w2||(t=!0)),a=r,r=r.return;return a.tag===3?(r=a.stateNode,t&&o!==null&&(t=31-jo(p),a=r.hiddenUpdates,m=a[t],m===null?a[t]=[o]:m.push(o),o.lane=p|536870912),r):null}function c5(a){if(M2>HY)throw gr=M2=0,h2=p6=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.");gr>WY&&(gr=0,h2=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.")),a.alternate===null&&(a.flags&4098)!==0&&Ai(a);for(var o=a,p=o.return;p!==null;)o.alternate===null&&(o.flags&4098)!==0&&Ai(a),o=p,p=o.return;return o.tag===3?o.stateNode:null}function ir(a){if(gp===null)return a;var o=gp(a);return o===void 0?a:o.current}function a3(a){if(gp===null)return a;var o=gp(a);return o===void 0?a!==null&&a!==void 0&&typeof a.render==="function"&&(o=ir(a.render),a.render!==o)?(o={$$typeof:Ev,render:o},a.displayName!==void 0&&(o.displayName=a.displayName),o):a:o.current}function H7(a,o){if(gp===null)return!1;var p=a.elementType;o=o.type;var m=!1,t=typeof o==="object"&&o!==null?o.$$typeof:null;switch(a.tag){case 1:typeof o==="function"&&(m=!0);break;case 0:typeof o==="function"?m=!0:t===Qp&&(m=!0);break;case 11:t===Ev?m=!0:t===Qp&&(m=!0);break;case 14:case 15:t===f1?m=!0:t===Qp&&(m=!0);break;default:return!1}return m&&(a=gp(p),a!==void 0&&a===gp(o))?!0:!1}function W7(a){gp!==null&&typeof WeakSet==="function"&&(y0===null&&(y0=new WeakSet),y0.add(a))}function U7(a,o,p){do{var m=a,t=m.alternate,r=m.child,v=m.sibling,b=m.tag;m=m.type;var w=null;switch(b){case 0:case 15:case 1:w=m;break;case 11:w=m.render}if(gp===null)throw Error("Expected resolveFamily to be set during hot reload.");var f=!1;if(m=!1,w!==null&&(w=gp(w),w!==void 0&&(p.has(w)?m=!0:o.has(w)&&(b===1?m=!0:f=!0))),y0!==null&&(y0.has(a)||t!==null&&y0.has(t))&&(m=!0),m&&(a._debugNeedsRemount=!0),m||f)t=uo(a,2),t!==null&&co(t,a,2);if(r===null||m||U7(r,o,p),v===null)break;a=v}while(1)}function Nz(a,o,p,m){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,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,Nl||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function o3(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Im(a,o){var p=a.alternate;switch(p===null?(p=F(a.tag,o,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p._debugOwner=a._debugOwner,p._debugStack=a._debugStack,p._debugTask=a._debugTask,p._debugHookTypes=a._debugHookTypes,p.alternate=a,a.alternate=p):(p.pendingProps=o,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null,p.actualDuration=-0,p.actualStartTime=-1.1),p.flags=a.flags&65011712,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,o=a.dependencies,p.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p.refCleanup=a.refCleanup,p.selfBaseDuration=a.selfBaseDuration,p.treeBaseDuration=a.treeBaseDuration,p._debugInfo=a._debugInfo,p._debugNeedsRemount=a._debugNeedsRemount,p.tag){case 0:case 15:p.type=ir(a.type);break;case 1:p.type=ir(a.type);break;case 11:p.type=a3(a.type)}return p}function R7(a,o){a.flags&=65011714;var p=a.alternate;return p===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0):(a.childLanes=p.childLanes,a.lanes=p.lanes,a.child=p.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=p.memoizedProps,a.memoizedState=p.memoizedState,a.updateQueue=p.updateQueue,a.type=p.type,o=p.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},a.selfBaseDuration=p.selfBaseDuration,a.treeBaseDuration=p.treeBaseDuration),a}function p3(a,o,p,m,t,r){var v=0,b=a;if(typeof a==="function")o3(a)&&(v=1),b=ir(b);else if(typeof a==="string")v=ra(),v=T$(a,p,v)?26:a==="html"||a==="head"||a==="body"?27:5;else a:switch(a){case V4:return o=F(31,p,o,t),o.elementType=V4,o.lanes=r,o;case _0:return lr(p.children,t,r,o);case w1:v=8,t|=Vo,t|=pm;break;case S4:return a=p,m=t,typeof a.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof a.id),o=F(12,a,o,m|_a),o.elementType=S4,o.lanes=r,o.stateNode={effectDuration:0,passiveEffectDuration:0},o;case u4:return o=F(13,p,o,t),o.elementType=u4,o.lanes=r,o;case x4:return o=F(19,p,o,t),o.elementType=x4,o.lanes=r,o;default:if(typeof a==="object"&&a!==null)switch(a.$$typeof){case Km:v=10;break a;case n4:v=9;break a;case Ev:v=11,b=a3(b);break a;case f1:v=14;break a;case Qp:v=16,b=null;break a}if(b="",a===void 0||typeof a==="object"&&a!==null&&Object.keys(a).length===0)b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";a===null?p="null":Ro(a)?p="array":a!==void 0&&a.$$typeof===Bm?(p="<"+(ta(a.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):p=typeof a,(v=m?io(m):null)&&(b+=`
|
|
56
|
-
|
|
57
|
-
Check the render method of \``+v+"`."),v=29,p=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(p+"."+b)),b=null}return o=F(v,p,o,t),o.elementType=a,o.type=b,o.lanes=r,o._debugOwner=m,o}function z5(a,o,p){return o=p3(a.type,a.key,a.props,a._owner,o,p),o._debugOwner=a._owner,o._debugStack=a._debugStack,o._debugTask=a._debugTask,o}function lr(a,o,p,m){return a=F(7,a,m,o),a.lanes=p,a}function m3(a,o,p){return a=F(6,a,null,o),a.lanes=p,a}function O7(a){var o=F(18,null,null,la);return o.stateNode=a,o}function t3(a,o,p){return o=F(4,a.children!==null?a.children:[],a.key,o),o.lanes=p,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function Xp(a,o){if(typeof a==="object"&&a!==null){var p=Bw.get(a);if(p!==void 0)return p;return o={value:a,source:o,stack:tr(o)},Bw.set(a,o),o}return{value:a,source:o,stack:tr(o)}}function Pm(a,o){Jt(),k0[N0++]=f2,k0[N0++]=B1,B1=a,f2=o}function L7(a,o,p){Jt(),Cp[Ip++]=Em,Cp[Ip++]=jm,Cp[Ip++]=Br,Br=a;var m=Em;a=jm;var t=32-jo(m)-1;m&=~(1<<t),p+=1;var r=32-jo(o)+t;if(30<r){var v=t-t%5;r=(m&(1<<v)-1).toString(32),m>>=v,t-=v,Em=1<<32-jo(o)+t|p<<t|m,jm=r+a}else Em=1<<r|p<<t|m,jm=a}function r3(a){Jt(),a.return!==null&&(Pm(a,1),L7(a,1,0))}function v3(a){for(;a===B1;)B1=k0[--N0],k0[N0]=null,f2=k0[--N0],k0[N0]=null;for(;a===Br;)Br=Cp[--Ip],Cp[Ip]=null,jm=Cp[--Ip],Cp[Ip]=null,Em=Cp[--Ip],Cp[Ip]=null}function y7(){return Jt(),Br!==null?{id:Em,overflow:jm}:null}function k7(a,o){Jt(),Cp[Ip++]=Em,Cp[Ip++]=jm,Cp[Ip++]=Br,Em=o.id,jm=o.overflow,Br=a}function Jt(){Ra||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function cr(a,o){if(a.return===null){if(Hp===null)Hp={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o};else{if(Hp.fiber!==a)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Hp.distanceFromLeaf>o&&(Hp.distanceFromLeaf=o)}return Hp}var p=cr(a.return,o+1).children;if(0<p.length&&p[p.length-1].fiber===a)return p=p[p.length-1],p.distanceFromLeaf>o&&(p.distanceFromLeaf=o),p;return o={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o},p.push(o),o}function N7(){Ra&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function $5(a,o){Lm||(a=cr(a,0),a.serverProps=null,o!==null&&(o=z8(o),a.serverTail.push(o)))}function Yt(a){var o=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,p="",m=Hp;throw m!==null&&(Hp=null,p=nb(m)),Qv(Xp(Error("Hydration failed because the server rendered "+(o?"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:
|
|
58
|
-
|
|
59
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
60
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
61
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
62
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
63
|
-
- Invalid HTML tag nesting.
|
|
64
|
-
|
|
65
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
66
|
-
|
|
67
|
-
https://react.dev/link/hydration-mismatch`+p),a)),Kw}function M7(a){var{stateNode:o,type:p,memoizedProps:m}=a;switch(o[To]=a,o[so]=m,H4(p,m),p){case"dialog":Oa("cancel",o),Oa("close",o);break;case"iframe":case"object":case"embed":Oa("load",o);break;case"video":case"audio":for(p=0;p<F2.length;p++)Oa(F2[p],o);break;case"source":Oa("error",o);break;case"img":case"image":case"link":Oa("error",o),Oa("load",o);break;case"details":Oa("toggle",o);break;case"input":a0("input",m),Oa("invalid",o),P6(o,m),A6(o,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"option":T6(o,m);break;case"select":a0("select",m),Oa("invalid",o),n6(o,m);break;case"textarea":a0("textarea",m),Oa("invalid",o),u6(o,m),V6(o,m.value,m.defaultValue,m.children)}p=m.children,typeof p!=="string"&&typeof p!=="number"&&typeof p!=="bigint"||o.textContent===""+p||m.suppressHydrationWarning===!0||ei(o.textContent,p)?(m.popover!=null&&(Oa("beforetoggle",o),Oa("toggle",o)),m.onScroll!=null&&Oa("scroll",o),m.onScrollEnd!=null&&Oa("scrollend",o),m.onClick!=null&&(o.onclick=Cm),o=!0):o=!1,o||Yt(a,!0)}function h7(a){for(So=a.return;So;)switch(So.tag){case 5:case 31:case 13:Pp=!1;return;case 27:case 3:Pp=!0;return;default:So=So.return}}function t0(a){if(a!==So)return!1;if(!Ra)return h7(a),Ra=!0,!1;var o=a.tag,p;if(p=o!==3&&o!==27){if(p=o===5)p=a.type,p=!(p!=="form"&&p!=="button")||L4(a.type,a.memoizedProps);p=!p}if(p&&ao){for(p=ao;p;){var m=cr(a,0),t=z8(p);m.serverTail.push(t),p=t.type==="Suspense"?M4(p):dp(p.nextSibling)}Yt(a)}if(h7(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ao=M4(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ao=M4(a)}else o===27?(o=ao,Ht(a.type)?(a=$6,$6=null,ao=a):ao=o):ao=So?dp(a.stateNode.nextSibling):null;return!0}function zr(){ao=So=null,Lm=Ra=!1}function b3(){var a=Mt;return a!==null&&(tp===null?tp=a:tp.push.apply(tp,a),Mt=null),a}function Qv(a){Mt===null?Mt=[a]:Mt.push(a)}function w3(){var a=Hp;if(a!==null){Hp=null;for(var o=nb(a);0<a.children.length;)a=a.children[0];N(a.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:
|
|
68
|
-
|
|
69
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
70
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
71
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
72
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
73
|
-
- Invalid HTML tag nesting.
|
|
74
|
-
|
|
75
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
76
|
-
|
|
77
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",o)})}}function J5(){M0=K1=null,h0=!1}function Xt(a,o,p){U(Hw,o._currentValue,a),o._currentValue=p,U(Ww,o._currentRenderer,a),o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==hl&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=hl}function Am(a,o){a._currentValue=Hw.current;var p=Ww.current;y(Ww,o),a._currentRenderer=p,y(Hw,o)}function f3(a,o,p){for(;a!==null;){var m=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),a===p)break;a=a.return}a!==p&&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 i3(a,o,p,m){var t=a.child;t!==null&&(t.return=a);for(;t!==null;){var r=t.dependencies;if(r!==null){var v=t.child;r=r.firstContext;a:for(;r!==null;){var b=r;r=t;for(var w=0;w<o.length;w++)if(b.context===o[w]){r.lanes|=p,b=r.alternate,b!==null&&(b.lanes|=p),f3(r.return,p,a),m||(v=null);break a}r=b.next}}else if(t.tag===18){if(v=t.return,v===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");v.lanes|=p,r=v.alternate,r!==null&&(r.lanes|=p),f3(v,p,a),v=null}else v=t.child;if(v!==null)v.return=t;else for(v=t;v!==null;){if(v===a){v=null;break}if(t=v.sibling,t!==null){t.return=v.return,v=t;break}v=v.return}t=v}}function r0(a,o,p,m){a=null;for(var t=o,r=!1;t!==null;){if(!r){if((t.flags&524288)!==0)r=!0;else if((t.flags&262144)!==0)break}if(t.tag===10){var v=t.alternate;if(v===null)throw Error("Should have a current fiber. This is a bug in React.");if(v=v.memoizedProps,v!==null){var b=t.type;ap(t.pendingProps.value,v.value)||(a!==null?a.push(b):a=[b])}}else if(t===i1.current){if(v=t.alternate,v===null)throw Error("Should have a current fiber. This is a bug in React.");v.memoizedState.memoizedState!==t.memoizedState.memoizedState&&(a!==null?a.push(A2):a=[A2])}t=t.return}a!==null&&i3(o,a,p,m),o.flags|=262144}function Y5(a){for(a=a.firstContext;a!==null;){if(!ap(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function $r(a){K1=a,M0=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function to(a){return h0&&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()."),F7(K1,a)}function X5(a,o){return K1===null&&$r(a),F7(a,o)}function F7(a,o){var p=o._currentValue;if(o={context:o,memoizedValue:p,next:null},M0===null){if(a===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().");M0=o,a.dependencies={lanes:0,firstContext:o,_debugThenableState:null},a.flags|=524288}else M0=M0.next=o;return p}function l3(){return{controller:new $Y,data:new Map,refCount:0}}function Jr(a){a.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),a.refCount++}function Bv(a){a.refCount--,0>a.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),a.refCount===0&&JY(YY,function(){a.controller.abort()})}function lm(a,o,p){if((a&127)!==0)0>ym&&(ym=qo(),l2=H1(o),Uw=o,p!=null&&(Rw=L(p)),(ya&(Lo|Rp))!==Co&&(zo=!0,gt=i2),a=nv(),o=Sv(),a!==F0||o!==c2?F0=-1.1:o!==null&&(gt=i2),Hr=a,c2=o);else if((a&4194048)!==0&&0>Ap&&(Ap=qo(),z2=H1(o),Fl=o,p!=null&&(gl=L(p)),0>at)){if(a=nv(),o=Sv(),a!==It||o!==Wr)It=-1.1;Ct=a,Wr=o}}function Mz(a){if(0>ym){ym=qo(),l2=a._debugTask!=null?a._debugTask:null,(ya&(Lo|Rp))!==Co&&(gt=i2);var o=nv(),p=Sv();o!==F0||p!==c2?F0=-1.1:p!==null&&(gt=i2),Hr=o,c2=p}if(0>Ap&&(Ap=qo(),z2=a._debugTask!=null?a._debugTask:null,0>at)){if(a=nv(),o=Sv(),a!==It||o!==Wr)It=-1.1;Ct=a,Wr=o}}function Tm(){var a=Kr;return Kr=0,a}function Z5(a){var o=Kr;return Kr=a,o}function Kv(a){var o=Kr;return Kr+=a,o}function G5(){fa=ba=-1.1}function Zp(){var a=ba;return ba=-1.1,a}function Gp(a){0<=a&&(ba=a)}function cm(){var a=wo;return wo=-0,a}function zm(a){0<=a&&(wo=a)}function $m(){var a=ro;return ro=null,a}function Jm(){var a=zo;return zo=!1,a}function c3(a){op=qo(),0>a.actualStartTime&&(a.actualStartTime=op)}function z3(a){if(0<=op){var o=qo()-op;a.actualDuration+=o,a.selfBaseDuration=o,op=-1}}function g7(a){if(0<=op){var o=qo()-op;a.actualDuration+=o,op=-1}}function Ym(){if(0<=op){var a=qo(),o=a-op;op=-1,Kr+=o,wo+=o,fa=a}}function C7(a){ro===null&&(ro=[]),ro.push(a),em===null&&(em=[]),em.push(a)}function Xm(){op=qo(),0>ba&&(ba=op)}function Hv(a){for(var o=a.child;o;)a.actualDuration+=o.actualDuration,o=o.sibling}function hz(a,o){if(J2===null){var p=J2=[];Lw=0,Ur=d4(),g0={status:"pending",value:void 0,then:function(m){p.push(m)}}}return Lw++,o.then(I7,I7),o}function I7(){if(--Lw===0&&(-1<Ap||(at=-1.1),J2!==null)){g0!==null&&(g0.status="fulfilled");var a=J2;J2=null,Ur=0,g0=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function Fz(a,o){var p=[],m={status:"pending",value:null,reason:null,then:function(t){p.push(t)}};return a.then(function(){m.status="fulfilled",m.value=o;for(var t=0;t<p.length;t++)(0,p[t])(o)},function(t){m.status="rejected",m.reason=t;for(t=0;t<p.length;t++)(0,p[t])(void 0)}),m}function $3(){var a=Rr.current;return a!==null?a:ua.pooledCache}function _5(a,o){o===null?U(Rr,Rr.current,a):U(Rr,o.pool,a)}function P7(){var a=$3();return a===null?null:{parent:_o._currentValue,pool:a}}function A7(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function T7(a){return a=a.status,a==="fulfilled"||a==="rejected"}function S7(a,o,p){Q.actQueue!==null&&(Q.didUsePromise=!0);var m=a.thenables;if(p=m[p],p===void 0?m.push(o):p!==o&&(a.didWarnAboutUncachedPromise||(a.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.")),o.then(Cm,Cm),o=p),o._debugInfo===void 0){a=performance.now(),m=o.displayName;var t={name:typeof m==="string"?m:"Promise",start:a,end:a,value:o};o._debugInfo=[{awaited:t}],o.status!=="fulfilled"&&o.status!=="rejected"&&(a=function(){t.end=performance.now()},o.then(a,a))}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,u7(a),a;default:if(typeof o.status==="string")o.then(Cm,Cm);else{if(a=ua,a!==null&&100<a.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.");a=o,a.status="pending",a.then(function(r){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=r}},function(r){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=r}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,u7(a),a}throw Lr=o,d2=!0,C0}}function Zt(a){try{return _Y(a)}catch(o){if(o!==null&&typeof o==="object"&&typeof o.then==="function")throw Lr=o,d2=!0,C0;throw o}}function n7(){if(Lr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Lr;return Lr=null,d2=!1,a}function u7(a){if(a===C0||a===N1)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 Io(a){var o=qa;return a!=null&&(qa=o===null?a:o.concat(a)),o}function J3(){var a=qa;if(a!=null){for(var o=a.length-1;0<=o;o--)if(a[o].name!=null){var p=a[o].debugTask;if(p!=null)return p}}return null}function q5(a,o,p){for(var m=Object.keys(a.props),t=0;t<m.length;t++){var r=m[t];if(r!=="children"&&r!=="key"){o===null&&(o=z5(a,p.mode,0),o._debugInfo=qa,o.return=p),N(o,function(v){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v)},r);break}}}function d5(a){var o=Q2;return Q2+=1,I0===null&&(I0=A7()),S7(I0,a,o)}function Wv(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function x7(a,o){if(o.$$typeof===e$)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
78
|
-
- Multiple copies of the "react" package is used.
|
|
79
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
80
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`);throw a=Object.prototype.toString.call(o),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}function Q5(a,o){var p=J3();p!==null?p.run(x7.bind(null,a,o)):x7(a,o)}function V7(a,o){var p=L(a)||"Component";t9[p]||(t9[p]=!0,o=o.displayName||o.name||"Component",a.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.
|
|
81
|
-
root.render(%s)`,o,o,o):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.
|
|
82
|
-
<%s>{%s}</%s>`,o,o,p,o,p))}function B5(a,o){var p=J3();p!==null?p.run(V7.bind(null,a,o)):V7(a,o)}function D7(a,o){var p=L(a)||"Component";r9[p]||(r9[p]=!0,o=String(o),a.tag===3?console.error(`Symbols are not valid as a React child.
|
|
83
|
-
root.render(%s)`,o):console.error(`Symbols are not valid as a React child.
|
|
84
|
-
<%s>%s</%s>`,p,o,p))}function K5(a,o){var p=J3();p!==null?p.run(D7.bind(null,a,o)):D7(a,o)}function E7(a){function o(c,$){if(a){var J=c.deletions;J===null?(c.deletions=[$],c.flags|=16):J.push($)}}function p(c,$){if(!a)return null;for(;$!==null;)o(c,$),$=$.sibling;return null}function m(c){for(var $=new Map;c!==null;)c.key!==null?$.set(c.key,c):$.set(c.index,c),c=c.sibling;return $}function t(c,$){return c=Im(c,$),c.index=0,c.sibling=null,c}function r(c,$,J){if(c.index=J,!a)return c.flags|=1048576,$;if(J=c.alternate,J!==null)return J=J.index,J<$?(c.flags|=67108866,$):J;return c.flags|=67108866,$}function v(c){return a&&c.alternate===null&&(c.flags|=67108866),c}function b(c,$,J,W){if($===null||$.tag!==6)return $=m3(J,c.mode,W),$.return=c,$._debugOwner=c,$._debugTask=c._debugTask,$._debugInfo=qa,$;return $=t($,J),$.return=c,$._debugInfo=qa,$}function w(c,$,J,W){var D=J.type;if(D===_0)return $=Y(c,$,J.props.children,W,J.key),q5(J,$,c),$;if($!==null&&($.elementType===D||H7($,J)||typeof D==="object"&&D!==null&&D.$$typeof===Qp&&Zt(D)===$.type))return $=t($,J.props),Wv($,J),$.return=c,$._debugOwner=J._owner,$._debugInfo=qa,$;return $=z5(J,c.mode,W),Wv($,J),$.return=c,$._debugInfo=qa,$}function f(c,$,J,W){if($===null||$.tag!==4||$.stateNode.containerInfo!==J.containerInfo||$.stateNode.implementation!==J.implementation)return $=t3(J,c.mode,W),$.return=c,$._debugInfo=qa,$;return $=t($,J.children||[]),$.return=c,$._debugInfo=qa,$}function Y(c,$,J,W,D){if($===null||$.tag!==7)return $=lr(J,c.mode,W,D),$.return=c,$._debugOwner=c,$._debugTask=c._debugTask,$._debugInfo=qa,$;return $=t($,J),$.return=c,$._debugInfo=qa,$}function X(c,$,J){if(typeof $==="string"&&$!==""||typeof $==="number"||typeof $==="bigint")return $=m3(""+$,c.mode,J),$.return=c,$._debugOwner=c,$._debugTask=c._debugTask,$._debugInfo=qa,$;if(typeof $==="object"&&$!==null){switch($.$$typeof){case Bm:return J=z5($,c.mode,J),Wv(J,$),J.return=c,c=Io($._debugInfo),J._debugInfo=qa,qa=c,J;case G0:return $=t3($,c.mode,J),$.return=c,$._debugInfo=qa,$;case Qp:var W=Io($._debugInfo);return $=Zt($),c=X(c,$,J),qa=W,c}if(Ro($)||Wa($))return J=lr($,c.mode,J,null),J.return=c,J._debugOwner=c,J._debugTask=c._debugTask,c=Io($._debugInfo),J._debugInfo=qa,qa=c,J;if(typeof $.then==="function")return W=Io($._debugInfo),c=X(c,d5($),J),qa=W,c;if($.$$typeof===Km)return X(c,X5(c,$),J);Q5(c,$)}return typeof $==="function"&&B5(c,$),typeof $==="symbol"&&K5(c,$),null}function z(c,$,J,W){var D=$!==null?$.key:null;if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return D!==null?null:b(c,$,""+J,W);if(typeof J==="object"&&J!==null){switch(J.$$typeof){case Bm:return J.key===D?(D=Io(J._debugInfo),c=w(c,$,J,W),qa=D,c):null;case G0:return J.key===D?f(c,$,J,W):null;case Qp:return D=Io(J._debugInfo),J=Zt(J),c=z(c,$,J,W),qa=D,c}if(Ro(J)||Wa(J)){if(D!==null)return null;return D=Io(J._debugInfo),c=Y(c,$,J,W,null),qa=D,c}if(typeof J.then==="function")return D=Io(J._debugInfo),c=z(c,$,d5(J),W),qa=D,c;if(J.$$typeof===Km)return z(c,$,X5(c,J),W);Q5(c,J)}return typeof J==="function"&&B5(c,J),typeof J==="symbol"&&K5(c,J),null}function q(c,$,J,W,D){if(typeof W==="string"&&W!==""||typeof W==="number"||typeof W==="bigint")return c=c.get(J)||null,b($,c,""+W,D);if(typeof W==="object"&&W!==null){switch(W.$$typeof){case Bm:return J=c.get(W.key===null?J:W.key)||null,c=Io(W._debugInfo),$=w($,J,W,D),qa=c,$;case G0:return c=c.get(W.key===null?J:W.key)||null,f($,c,W,D);case Qp:var $a=Io(W._debugInfo);return W=Zt(W),$=q(c,$,J,W,D),qa=$a,$}if(Ro(W)||Wa(W))return J=c.get(J)||null,c=Io(W._debugInfo),$=Y($,J,W,D,null),qa=c,$;if(typeof W.then==="function")return $a=Io(W._debugInfo),$=q(c,$,J,d5(W),D),qa=$a,$;if(W.$$typeof===Km)return q(c,$,J,X5($,W),D);Q5($,W)}return typeof W==="function"&&B5($,W),typeof W==="symbol"&&K5($,W),null}function u(c,$,J,W){if(typeof J!=="object"||J===null)return W;switch(J.$$typeof){case Bm:case G0:K(c,$,J);var D=J.key;if(typeof D!=="string")break;if(W===null){W=new Set,W.add(D);break}if(!W.has(D)){W.add(D);break}N($,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.",D)});break;case Qp:J=Zt(J),u(c,$,J,W)}return W}function E(c,$,J,W){for(var D=null,$a=null,va=null,oa=$,Ga=$=0,oo=null;oa!==null&&Ga<J.length;Ga++){oa.index>Ga?(oo=oa,oa=null):oo=oa.sibling;var Go=z(c,oa,J[Ga],W);if(Go===null){oa===null&&(oa=oo);break}D=u(c,Go,J[Ga],D),a&&oa&&Go.alternate===null&&o(c,oa),$=r(Go,$,Ga),va===null?$a=Go:va.sibling=Go,va=Go,oa=oo}if(Ga===J.length)return p(c,oa),Ra&&Pm(c,Ga),$a;if(oa===null){for(;Ga<J.length;Ga++)oa=X(c,J[Ga],W),oa!==null&&(D=u(c,oa,J[Ga],D),$=r(oa,$,Ga),va===null?$a=oa:va.sibling=oa,va=oa);return Ra&&Pm(c,Ga),$a}for(oa=m(oa);Ga<J.length;Ga++)oo=q(oa,c,Ga,J[Ga],W),oo!==null&&(D=u(c,oo,J[Ga],D),a&&oo.alternate!==null&&oa.delete(oo.key===null?Ga:oo.key),$=r(oo,$,Ga),va===null?$a=oo:va.sibling=oo,va=oo);return a&&oa.forEach(function(ft){return o(c,ft)}),Ra&&Pm(c,Ga),$a}function Da(c,$,J,W){if(J==null)throw Error("An iterable object provided no iterator.");for(var D=null,$a=null,va=$,oa=$=0,Ga=null,oo=null,Go=J.next();va!==null&&!Go.done;oa++,Go=J.next()){va.index>oa?(Ga=va,va=null):Ga=va.sibling;var ft=z(c,va,Go.value,W);if(ft===null){va===null&&(va=Ga);break}oo=u(c,ft,Go.value,oo),a&&va&&ft.alternate===null&&o(c,va),$=r(ft,$,oa),$a===null?D=ft:$a.sibling=ft,$a=ft,va=Ga}if(Go.done)return p(c,va),Ra&&Pm(c,oa),D;if(va===null){for(;!Go.done;oa++,Go=J.next())va=X(c,Go.value,W),va!==null&&(oo=u(c,va,Go.value,oo),$=r(va,$,oa),$a===null?D=va:$a.sibling=va,$a=va);return Ra&&Pm(c,oa),D}for(va=m(va);!Go.done;oa++,Go=J.next())Ga=q(va,c,oa,Go.value,W),Ga!==null&&(oo=u(c,Ga,Go.value,oo),a&&Ga.alternate!==null&&va.delete(Ga.key===null?oa:Ga.key),$=r(Ga,$,oa),$a===null?D=Ga:$a.sibling=Ga,$a=Ga);return a&&va.forEach(function(SY){return o(c,SY)}),Ra&&Pm(c,oa),D}function La(c,$,J,W){if(typeof J==="object"&&J!==null&&J.type===_0&&J.key===null&&(q5(J,null,c),J=J.props.children),typeof J==="object"&&J!==null){switch(J.$$typeof){case Bm:var D=Io(J._debugInfo);a:{for(var $a=J.key;$!==null;){if($.key===$a){if($a=J.type,$a===_0){if($.tag===7){p(c,$.sibling),W=t($,J.props.children),W.return=c,W._debugOwner=J._owner,W._debugInfo=qa,q5(J,W,c),c=W;break a}}else if($.elementType===$a||H7($,J)||typeof $a==="object"&&$a!==null&&$a.$$typeof===Qp&&Zt($a)===$.type){p(c,$.sibling),W=t($,J.props),Wv(W,J),W.return=c,W._debugOwner=J._owner,W._debugInfo=qa,c=W;break a}p(c,$);break}else o(c,$);$=$.sibling}J.type===_0?(W=lr(J.props.children,c.mode,W,J.key),W.return=c,W._debugOwner=c,W._debugTask=c._debugTask,W._debugInfo=qa,q5(J,W,c),c=W):(W=z5(J,c.mode,W),Wv(W,J),W.return=c,W._debugInfo=qa,c=W)}return c=v(c),qa=D,c;case G0:a:{D=J;for(J=D.key;$!==null;){if($.key===J)if($.tag===4&&$.stateNode.containerInfo===D.containerInfo&&$.stateNode.implementation===D.implementation){p(c,$.sibling),W=t($,D.children||[]),W.return=c,c=W;break a}else{p(c,$);break}else o(c,$);$=$.sibling}W=t3(D,c.mode,W),W.return=c,c=W}return v(c);case Qp:return D=Io(J._debugInfo),J=Zt(J),c=La(c,$,J,W),qa=D,c}if(Ro(J))return D=Io(J._debugInfo),c=E(c,$,J,W),qa=D,c;if(Wa(J)){if(D=Io(J._debugInfo),$a=Wa(J),typeof $a!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var va=$a.call(J);if(va===J){if(c.tag!==0||Object.prototype.toString.call(c.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(va)!=="[object Generator]")p9||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."),p9=!0}else J.entries!==$a||Mw||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mw=!0);return c=Da(c,$,va,W),qa=D,c}if(typeof J.then==="function")return D=Io(J._debugInfo),c=La(c,$,d5(J),W),qa=D,c;if(J.$$typeof===Km)return La(c,$,X5(c,J),W);Q5(c,J)}if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return D=""+J,$!==null&&$.tag===6?(p(c,$.sibling),W=t($,D),W.return=c,c=W):(p(c,$),W=m3(D,c.mode,W),W.return=c,W._debugOwner=c,W._debugTask=c._debugTask,W._debugInfo=qa,c=W),v(c);return typeof J==="function"&&B5(c,J),typeof J==="symbol"&&K5(c,J),p(c,$)}return function(c,$,J,W){var D=qa;qa=null;try{Q2=0;var $a=La(c,$,J,W);return I0=null,$a}catch(oo){if(oo===C0||oo===N1)throw oo;var va=F(29,oo,null,c.mode);va.lanes=W,va.return=c;var oa=va._debugInfo=qa;if(va._debugOwner=c._debugOwner,va._debugTask=c._debugTask,oa!=null){for(var Ga=oa.length-1;0<=Ga;Ga--)if(typeof oa[Ga].stack==="string"){va._debugOwner=oa[Ga],va._debugTask=oa[Ga].debugTask;break}}return va}finally{qa=D}}}function j7(a,o){var p=Ro(a);return a=!p&&typeof Wa(a)==="function",p||a?(p=p?"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>",p,o,p),!1):!0}function Y3(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function X3(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Gt(a){return{lane:a,tag:b9,payload:null,callback:null,next:null}}function _t(a,o,p){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,Fw===m&&!i9){var t=L(a);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.
|
|
85
|
-
|
|
86
|
-
Please update the following component: %s`,t),i9=!0}if((ya&Lo)!==Co)return t=m.pending,t===null?o.next=o:(o.next=t.next,t.next=o),m.pending=o,o=c5(a),K7(a,null,p),o;return l5(a,m,o,p),c5(a)}function Uv(a,o,p){if(o=o.updateQueue,o!==null&&(o=o.shared,(p&4194048)!==0)){var m=o.lanes;m&=a.pendingLanes,p|=m,o.lanes=p,y6(a,p)}}function H5(a,o){var{updateQueue:p,alternate:m}=a;if(m!==null&&(m=m.updateQueue,p===m)){var t=null,r=null;if(p=p.firstBaseUpdate,p!==null){do{var v={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};r===null?t=r=v:r=r.next=v,p=p.next}while(p!==null);r===null?t=r=o:r=r.next=o}else t=r=o;p={baseState:m.baseState,firstBaseUpdate:t,lastBaseUpdate:r,shared:m.shared,callbacks:m.callbacks},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=o:a.next=o,p.lastBaseUpdate=o}function Rv(){if(gw){var a=g0;if(a!==null)throw a}}function Ov(a,o,p,m){gw=!1;var t=a.updateQueue;Pt=!1,Fw=t.shared;var{firstBaseUpdate:r,lastBaseUpdate:v}=t,b=t.shared.pending;if(b!==null){t.shared.pending=null;var w=b,f=w.next;w.next=null,v===null?r=f:v.next=f,v=w;var Y=a.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==v&&(b===null?Y.firstBaseUpdate=f:b.next=f,Y.lastBaseUpdate=w))}if(r!==null){var X=t.baseState;v=0,Y=f=w=null,b=r;do{var z=b.lane&-536870913,q=z!==b.lane;if(q?(da&z)===z:(m&z)===z){z!==0&&z===Ur&&(gw=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});a:{z=a;var u=b,E=o,Da=p;switch(u.tag){case w9:if(u=u.payload,typeof u==="function"){h0=!0;var La=u.call(Da,X,E);if(z.mode&Vo){bo(!0);try{u.call(Da,X,E)}finally{bo(!1)}}h0=!1,X=La;break a}X=u;break a;case hw:z.flags=z.flags&-65537|128;case b9:if(La=u.payload,typeof La==="function"){if(h0=!0,u=La.call(Da,X,E),z.mode&Vo){bo(!0);try{La.call(Da,X,E)}finally{bo(!1)}}h0=!1}else u=La;if(u===null||u===void 0)break a;X=Ka({},X,u);break a;case f9:Pt=!0}}z=b.callback,z!==null&&(a.flags|=64,q&&(a.flags|=8192),q=t.callbacks,q===null?t.callbacks=[z]:q.push(z))}else q={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(f=Y=q,w=X):Y=Y.next=q,v|=z;if(b=b.next,b===null)if(b=t.shared.pending,b===null)break;else q=b,b=q.next,q.next=null,t.lastBaseUpdate=q,t.shared.pending=null}while(1);Y===null&&(w=X),t.baseState=w,t.firstBaseUpdate=f,t.lastBaseUpdate=Y,r===null&&(t.shared.lanes=0),St|=v,a.lanes=v,a.memoizedState=X}Fw=null}function s7(a,o){if(typeof a!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(o)}function gz(a,o){var p=a.shared.hiddenCallbacks;if(p!==null)for(a.shared.hiddenCallbacks=null,a=0;a<p.length;a++)s7(p[a],o)}function e7(a,o){var p=a.callbacks;if(p!==null)for(a.callbacks=null,a=0;a<p.length;a++)s7(p[a],o)}function af(a,o){var p=Mm;U(h1,p,a),U(P0,o,a),Mm=p|o.baseLanes}function Z3(a){U(h1,Mm,a),U(P0,P0.current,a)}function G3(a){Mm=h1.current,y(P0,a),y(h1,a)}function qt(a){var o=a.alternate;U(Zo,Zo.current&A0,a),U(Wp,a,a),Tp===null&&(o===null||P0.current!==null?Tp=a:o.memoizedState!==null&&(Tp=a))}function _3(a){U(Zo,Zo.current,a),U(Wp,a,a),Tp===null&&(Tp=a)}function of(a){a.tag===22?(U(Zo,Zo.current,a),U(Wp,a,a),Tp===null&&(Tp=a)):dt(a)}function dt(a){U(Zo,Zo.current,a),U(Wp,Wp.current,a)}function _p(a){y(Wp,a),Tp===a&&(Tp=null),y(Zo,a)}function W5(a){for(var o=a;o!==null;){if(o.tag===13){var p=o.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||k4(p)||N4(p)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function Ba(){var a=d;np===null?np=[a]:np.push(a)}function I(){var a=d;if(np!==null&&(tt++,np[tt]!==a)){var o=L(za);if(!l9.has(o)&&(l9.add(o),np!==null)){for(var p="",m=0;m<=tt;m++){var t=np[m],r=m===tt?a:t;for(t=m+1+". "+t;30>t.length;)t+=" ";t+=r+`
|
|
87
|
-
`,p+=t}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
|
|
88
|
-
|
|
89
|
-
Previous render Next render
|
|
90
|
-
------------------------------------------------------
|
|
91
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
92
|
-
`,o,p)}}}function v0(a){a===void 0||a===null||Ro(a)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",d,typeof a)}function U5(){var a=L(za);z9.has(a)||(z9.add(a),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",a))}function Jo(){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:
|
|
93
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
94
|
-
2. You might be breaking the Rules of Hooks
|
|
95
|
-
3. You might have more than one copy of React in the same app
|
|
96
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function q3(a,o){if(H2)return!1;if(o===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.",d),!1;a.length!==o.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
97
|
-
|
|
98
|
-
Previous: %s
|
|
99
|
-
Incoming: %s`,d,"["+o.join(", ")+"]","["+a.join(", ")+"]");for(var p=0;p<o.length&&p<a.length;p++)if(!ap(a[p],o[p]))return!1;return!0}function d3(a,o,p,m,t,r){if(pt=r,za=o,np=a!==null?a._debugHookTypes:null,tt=-1,H2=a!==null&&a.type!==o.type,Object.prototype.toString.call(p)==="[object AsyncFunction]"||Object.prototype.toString.call(p)==="[object AsyncGeneratorFunction]")r=L(za),Cw.has(r)||(Cw.add(r),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.",r===null?"An unknown Component":"<"+r+">"));o.memoizedState=null,o.updateQueue=null,o.lanes=0,Q.H=a!==null&&a.memoizedState!==null?Pw:np!==null?$9:Iw,kr=r=(o.mode&Vo)!==la;var v=yw(p,m,t);if(kr=!1,S0&&(v=Q3(o,p,m,t)),r){bo(!0);try{v=Q3(o,p,m,t)}finally{bo(!1)}}return pf(a,o),v}function pf(a,o){o._debugHookTypes=np,o.dependencies===null?mt!==null&&(o.dependencies={lanes:0,firstContext:null,_debugThenableState:mt}):o.dependencies._debugThenableState=mt,Q.H=W2;var p=na!==null&&na.next!==null;if(pt=0,np=d=Qo=na=za=null,tt=-1,a!==null&&(a.flags&65011712)!==(o.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),g1=!1,K2=0,mt=null,p)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||Bo||(a=a.dependencies,a!==null&&Y5(a)&&(Bo=!0)),d2?(d2=!1,a=!0):a=!1,a&&(o=L(o)||"Unknown",c9.has(o)||Cw.has(o)||(c9.add(o),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 Q3(a,o,p,m){za=a;var t=0;do{if(S0&&(mt=null),K2=0,S0=!1,t>=dY)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(t+=1,H2=!1,Qo=na=null,a.updateQueue!=null){var r=a.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}tt=-1,Q.H=J9,r=yw(o,p,m)}while(S0);return r}function Cz(){var a=Q.H,o=a.useState()[0];return o=typeof o.then==="function"?Lv(o):o,a=a.useState()[0],(na!==null?na.memoizedState:null)!==a&&(za.flags|=1024),o}function B3(){var a=C1!==0;return C1=0,a}function K3(a,o,p){o.updateQueue=a.updateQueue,o.flags=(o.mode&pm)!==la?o.flags&-402655237:o.flags&-2053,a.lanes&=~p}function H3(a){if(g1){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}g1=!1}pt=0,np=Qo=na=za=null,tt=-1,d=null,S0=!1,K2=C1=0,mt=null}function Eo(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qo===null?za.memoizedState=Qo=a:Qo=Qo.next=a,Qo}function ga(){if(na===null){var a=za.alternate;a=a!==null?a.memoizedState:null}else a=na.next;var o=Qo===null?za.memoizedState:Qo.next;if(o!==null)Qo=o,na=a;else{if(a===null){if(za.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}na=a,a={memoizedState:na.memoizedState,baseState:na.baseState,baseQueue:na.baseQueue,queue:na.queue,next:null},Qo===null?za.memoizedState=Qo=a:Qo=Qo.next=a}return Qo}function R5(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Lv(a){var o=K2;return K2+=1,mt===null&&(mt=A7()),a=S7(mt,a,o),o=za,(Qo===null?o.memoizedState:Qo.next)===null&&(o=o.alternate,Q.H=o!==null&&o.memoizedState!==null?Pw:Iw),a}function Qt(a){if(a!==null&&typeof a==="object"){if(typeof a.then==="function")return Lv(a);if(a.$$typeof===Km)return to(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function Yr(a){var o=null,p=za.updateQueue;if(p!==null&&(o=p.memoCache),o==null){var m=za.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(o={data:m.data.map(function(t){return t.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),p===null&&(p=R5(),za.updateQueue=p),p.memoCache=o,p=o.data[o.index],p===void 0||H2)for(p=o.data[o.index]=Array(a),m=0;m<a;m++)p[m]=aJ;else p.length!==a&&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.",p.length,a);return o.index++,p}function sp(a,o){return typeof o==="function"?o(a):o}function W3(a,o,p){var m=Eo();if(p!==void 0){var t=p(o);if(kr){bo(!0);try{p(o)}finally{bo(!1)}}}else t=o;return m.memoizedState=m.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:t},m.queue=a,a=a.dispatch=Sz.bind(null,za,a),[m.memoizedState,a]}function b0(a){var o=ga();return U3(o,na,a)}function U3(a,o,p){var m=a.queue;if(m===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");m.lastRenderedReducer=p;var t=a.baseQueue,r=m.pending;if(r!==null){if(t!==null){var v=t.next;t.next=r.next,r.next=v}o.baseQueue!==t&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),o.baseQueue=t=r,m.pending=null}if(r=a.baseState,t===null)a.memoizedState=r;else{o=t.next;var b=v=null,w=null,f=o,Y=!1;do{var X=f.lane&-536870913;if(X!==f.lane?(da&X)===X:(pt&X)===X){var z=f.revertLane;if(z===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),X===Ur&&(Y=!0);else if((pt&z)===z){f=f.next,z===Ur&&(Y=!0);continue}else X={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},w===null?(b=w=X,v=r):w=w.next=X,za.lanes|=z,St|=z;X=f.action,kr&&p(r,X),r=f.hasEagerState?f.eagerState:p(r,X)}else z={lane:X,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},w===null?(b=w=z,v=r):w=w.next=z,za.lanes|=X,St|=X;f=f.next}while(f!==null&&f!==o);if(w===null?v=r:w.next=b,!ap(r,a.memoizedState)&&(Bo=!0,Y&&(p=g0,p!==null)))throw p;a.memoizedState=r,a.baseState=v,a.baseQueue=w,m.lastRenderedState=r}return t===null&&(m.lanes=0),[a.memoizedState,m.dispatch]}function yv(a){var o=ga(),p=o.queue;if(p===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");p.lastRenderedReducer=a;var{dispatch:m,pending:t}=p,r=o.memoizedState;if(t!==null){p.pending=null;var v=t=t.next;do r=a(r,v.action),v=v.next;while(v!==t);ap(r,o.memoizedState)||(Bo=!0),o.memoizedState=r,o.baseQueue===null&&(o.baseState=r),p.lastRenderedState=r}return[r,m]}function R3(a,o,p){var m=za,t=Eo();if(Ra){if(p===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=p();T0||r===p()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),T0=!0)}else{if(r=o(),T0||(p=o(),ap(r,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T0=!0)),ua===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(da&127)!==0||mf(m,o,r)}return t.memoizedState=r,p={value:r,getSnapshot:o},t.queue=p,k5(rf.bind(null,m,p,a),[a]),m.flags|=2048,f0(Sp|mp,{destroy:void 0},tf.bind(null,m,p,r,o),null),r}function O5(a,o,p){var m=za,t=ga(),r=Ra;if(r){if(p===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");p=p()}else if(p=o(),!T0){var v=o();ap(p,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T0=!0)}if(v=!ap((na||t).memoizedState,p))t.memoizedState=p,Bo=!0;t=t.queue;var b=rf.bind(null,m,t,a);if(wp(2048,mp,b,[a]),t.getSnapshot!==o||v||Qo!==null&&Qo.memoizedState.tag&Sp){if(m.flags|=2048,f0(Sp|mp,{destroy:void 0},tf.bind(null,m,t,p,o),null),ua===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(pt&127)!==0||mf(m,o,p)}return p}function mf(a,o,p){a.flags|=16384,a={getSnapshot:o,value:p},o=za.updateQueue,o===null?(o=R5(),za.updateQueue=o,o.stores=[a]):(p=o.stores,p===null?o.stores=[a]:p.push(a))}function tf(a,o,p,m){o.value=p,o.getSnapshot=m,vf(o)&&bf(a)}function rf(a,o,p){return p(function(){vf(o)&&(lm(2,"updateSyncExternalStore()",a),bf(a))})}function vf(a){var o=a.getSnapshot;a=a.value;try{var p=o();return!ap(a,p)}catch(m){return!0}}function bf(a){var o=uo(a,2);o!==null&&co(o,a,2)}function O3(a){var o=Eo();if(typeof a==="function"){var p=a;if(a=p(),kr){bo(!0);try{p()}finally{bo(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sp,lastRenderedState:a},o}function L3(a){a=O3(a);var o=a.queue,p=Wf.bind(null,za,o);return o.dispatch=p,[a.memoizedState,p]}function y3(a){var o=Eo();o.memoizedState=o.baseState=a;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=p,o=u3.bind(null,za,!0,p),p.dispatch=o,[a,o]}function wf(a,o){var p=ga();return ff(p,na,a,o)}function ff(a,o,p,m){return a.baseState=p,U3(a,na,typeof m==="function"?m:sp)}function lf(a,o){var p=ga();if(na!==null)return ff(p,na,a,o);return p.baseState=a,[a,p.queue.dispatch]}function Iz(a,o,p,m,t){if(C5(a))throw Error("Cannot update form state while rendering.");if(a=o.action,a!==null){var r={payload:t,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){r.listeners.push(v)}};Q.T!==null?p(!0):r.isTransition=!1,m(r),p=o.pending,p===null?(r.next=o.pending=r,cf(o,r)):(r.next=p.next,o.pending=p.next=r)}}function cf(a,o){var{action:p,payload:m}=o,t=a.state;if(o.isTransition){var r=Q.T,v={};v._updatedFibers=new Set,Q.T=v;try{var b=p(t,m),w=Q.S;w!==null&&w(v,b),zf(a,o,b)}catch(f){k3(a,o,f)}finally{r!==null&&v.types!==null&&(r.types!==null&&r.types!==v.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."),r.types=v.types),Q.T=r,r===null&&v._updatedFibers&&(a=v._updatedFibers.size,v._updatedFibers.clear(),10<a&&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{v=p(t,m),zf(a,o,v)}catch(f){k3(a,o,f)}}function zf(a,o,p){p!==null&&typeof p==="object"&&typeof p.then==="function"?(Q.asyncTransitions++,p.then(g5,g5),p.then(function(m){$f(a,o,m)},function(m){return k3(a,o,m)}),o.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.")):$f(a,o,p)}function $f(a,o,p){o.status="fulfilled",o.value=p,Jf(o),a.state=p,o=a.pending,o!==null&&(p=o.next,p===o?a.pending=null:(p=p.next,o.next=p,cf(a,p)))}function k3(a,o,p){var m=a.pending;if(a.pending=null,m!==null){m=m.next;do o.status="rejected",o.reason=p,Jf(o),o=o.next;while(o!==m)}a.action=null}function Jf(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function Yf(a,o){return o}function w0(a,o){if(Ra){var p=ua.formState;if(p!==null){a:{var m=za;if(Ra){if(ao){o:{var t=ao;for(var r=Pp;t.nodeType!==8;){if(!r){t=null;break o}if(t=dp(t.nextSibling),t===null){t=null;break o}}r=t.data,t=r===i6||r===ac?t:null}if(t){ao=dp(t.nextSibling),m=t.data===i6;break a}}Yt(m)}m=!1}m&&(o=p[0])}}return p=Eo(),p.memoizedState=p.baseState=o,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yf,lastRenderedState:o},p.queue=m,p=Wf.bind(null,za,m),m.dispatch=p,m=O3(!1),r=u3.bind(null,za,!1,m.queue),m=Eo(),t={state:o,dispatch:null,action:a,pending:null},m.queue=t,p=Iz.bind(null,za,t,r,p),t.dispatch=p,m.memoizedState=a,[o,p,!1]}function L5(a){var o=ga();return Xf(o,na,a)}function Xf(a,o,p){if(o=U3(a,o,Yf)[0],a=b0(sp)[0],typeof o==="object"&&o!==null&&typeof o.then==="function")try{var m=Lv(o)}catch(v){if(v===C0)throw N1;throw v}else m=o;o=ga();var t=o.queue,r=t.dispatch;return p!==o.memoizedState&&(za.flags|=2048,f0(Sp|mp,{destroy:void 0},Pz.bind(null,t,p),null)),[m,r,a]}function Pz(a,o){a.action=o}function y5(a){var o=ga(),p=na;if(p!==null)return Xf(o,p,a);ga(),o=o.memoizedState,p=ga();var m=p.queue.dispatch;return p.memoizedState=a,[o,m,!1]}function f0(a,o,p,m){return a={tag:a,create:p,deps:m,inst:o,next:null},o=za.updateQueue,o===null&&(o=R5(),za.updateQueue=o),p=o.lastEffect,p===null?o.lastEffect=a.next=a:(m=p.next,p.next=a,a.next=m,o.lastEffect=a),a}function N3(a){var o=Eo();return a={current:a},o.memoizedState=a}function Xr(a,o,p,m){var t=Eo();za.flags|=a,t.memoizedState=f0(Sp|o,{destroy:void 0},p,m===void 0?null:m)}function wp(a,o,p,m){var t=ga();m=m===void 0?null:m;var r=t.memoizedState.inst;na!==null&&m!==null&&q3(m,na.memoizedState.deps)?t.memoizedState=f0(o,r,p,m):(za.flags|=a,t.memoizedState=f0(Sp|o,r,p,m))}function k5(a,o){(za.mode&pm)!==la?Xr(276826112,mp,a,o):Xr(8390656,mp,a,o)}function Az(a){za.flags|=4;var o=za.updateQueue;if(o===null)o=R5(),za.updateQueue=o,o.events=[a];else{var p=o.events;p===null?o.events=[a]:p.push(a)}}function M3(a){var o=Eo(),p={impl:a};return o.memoizedState=p,function(){if((ya&Lo)!==Co)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return p.impl.apply(void 0,arguments)}}function N5(a){var o=ga().memoizedState;return Az({ref:o,nextImpl:a}),function(){if((ya&Lo)!==Co)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function h3(a,o){var p=4194308;return(za.mode&pm)!==la&&(p|=134217728),Xr(p,Up,a,o)}function Zf(a,o){if(typeof o==="function"){a=a();var p=o(a);return function(){typeof p==="function"?p():o(null)}}if(o!==null&&o!==void 0)return o.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(o).join(", ")+"}"),a=a(),o.current=a,function(){o.current=null}}function F3(a,o,p){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),p=p!==null&&p!==void 0?p.concat([a]):null;var m=4194308;(za.mode&pm)!==la&&(m|=134217728),Xr(m,Up,Zf.bind(null,o,a),p)}function M5(a,o,p){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),p=p!==null&&p!==void 0?p.concat([a]):null,wp(4,Up,Zf.bind(null,o,a),p)}function g3(a,o){return Eo().memoizedState=[a,o===void 0?null:o],a}function h5(a,o){var p=ga();o=o===void 0?null:o;var m=p.memoizedState;if(o!==null&&q3(o,m[1]))return m[0];return p.memoizedState=[a,o],a}function C3(a,o){var p=Eo();o=o===void 0?null:o;var m=a();if(kr){bo(!0);try{a()}finally{bo(!1)}}return p.memoizedState=[m,o],m}function F5(a,o){var p=ga();o=o===void 0?null:o;var m=p.memoizedState;if(o!==null&&q3(o,m[1]))return m[0];if(m=a(),kr){bo(!0);try{a()}finally{bo(!1)}}return p.memoizedState=[m,o],m}function I3(a,o){var p=Eo();return P3(p,a,o)}function Gf(a,o){var p=ga();return qf(p,na.memoizedState,a,o)}function _f(a,o){var p=ga();return na===null?P3(p,a,o):qf(p,na.memoizedState,a,o)}function P3(a,o,p){if(p===void 0||(pt&1073741824)!==0&&(da&261930)===0)return a.memoizedState=o;return a.memoizedState=p,a=di(),za.lanes|=a,St|=a,p}function qf(a,o,p,m){if(ap(p,o))return p;if(P0.current!==null)return a=P3(a,p,m),ap(a,o)||(Bo=!0),a;if((pt&42)===0||(pt&1073741824)!==0&&(da&261930)===0)return Bo=!0,a.memoizedState=p;return a=di(),za.lanes|=a,St|=a,o}function g5(){Q.asyncTransitions--}function df(a,o,p,m,t){var r=Fa.p;Fa.p=r!==0&&r<om?r:om;var v=Q.T,b={};b._updatedFibers=new Set,Q.T=b,u3(a,!1,o,p);try{var w=t(),f=Q.S;if(f!==null&&f(b,w),w!==null&&typeof w==="object"&&typeof w.then==="function"){Q.asyncTransitions++,w.then(g5,g5);var Y=Fz(w,m);kv(a,o,Y,qp(a))}else kv(a,o,m,qp(a))}catch(X){kv(a,o,{then:function(){},status:"rejected",reason:X},qp(a))}finally{Fa.p=r,v!==null&&b.types!==null&&(v.types!==null&&v.types!==b.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=b.types),Q.T=v,v===null&&b._updatedFibers&&(a=b._updatedFibers.size,b._updatedFibers.clear(),10<a&&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 A3(a,o,p,m){if(a.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var t=Qf(a).queue;Mz(a),df(a,t,o,Sr,p===null?T:function(){return Bf(a),p(m)})}function Qf(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:Sr,baseState:Sr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sp,lastRenderedState:Sr},next:null};var p={};return o.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sp,lastRenderedState:p},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function Bf(a){Q.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var o=Qf(a);o.next===null&&(o=a.alternate.memoizedState),kv(a,o.next.queue,{},qp(a))}function T3(){var a=O3(!1);return a=df.bind(null,za,a.queue,!0,!1),Eo().memoizedState=a,[!1,a]}function Kf(){var a=b0(sp)[0],o=ga().memoizedState;return[typeof a==="boolean"?a:Lv(a),o]}function Hf(){var a=yv(sp)[0],o=ga().memoizedState;return[typeof a==="boolean"?a:Lv(a),o]}function Zr(){return to(A2)}function S3(){var a=Eo(),o=ua.identifierPrefix;if(Ra){var p=jm,m=Em;p=(m&~(1<<32-jo(m)-1)).toString(32)+p,o="_"+o+"R_"+p,p=C1++,0<p&&(o+="H"+p.toString(32)),o+="_"}else p=qY++,o="_"+o+"r_"+p.toString(32)+"_";return a.memoizedState=o}function n3(){return Eo().memoizedState=Tz.bind(null,za)}function Tz(a,o){for(var p=a.return;p!==null;){switch(p.tag){case 24:case 3:var m=qp(p),t=Gt(m),r=_t(p,t,m);r!==null&&(lm(m,"refresh()",a),co(r,p,m),Uv(r,p,m)),a=l3(),o!==null&&o!==void 0&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),t.payload={cache:a};return}p=p.return}}function Sz(a,o,p){var m=arguments;typeof m[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()."),m=qp(a);var t={lane:m,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};C5(a)?Uf(o,t):(t=eb(a,o,t,m),t!==null&&(lm(m,"dispatch()",a),co(t,a,m),Rf(t,o,m)))}function Wf(a,o,p){var m=arguments;typeof m[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()."),m=qp(a),kv(a,o,p,m)&&lm(m,"setState()",a)}function kv(a,o,p,m){var t={lane:m,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(C5(a))Uf(o,t);else{var r=a.alternate;if(a.lanes===0&&(r===null||r.lanes===0)&&(r=o.lastRenderedReducer,r!==null)){var v=Q.H;Q.H=tm;try{var b=o.lastRenderedState,w=r(b,p);if(t.hasEagerState=!0,t.eagerState=w,ap(w,b))return l5(a,o,t,0),ua===null&&i5(),!1}catch(f){}finally{Q.H=v}}if(p=eb(a,o,t,m),p!==null)return co(p,a,m),Rf(p,o,m),!0}return!1}function u3(a,o,p,m){if(Q.T===null&&Ur===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."),m={lane:2,revertLane:d4(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},C5(a)){if(o)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else o=eb(a,p,m,2),o!==null&&(lm(2,"setOptimistic()",a),co(o,a,2))}function C5(a){var o=a.alternate;return a===za||o!==null&&o===za}function Uf(a,o){S0=g1=!0;var p=a.pending;p===null?o.next=o:(o.next=p.next,p.next=o),a.pending=o}function Rf(a,o,p){if((p&4194048)!==0){var m=o.lanes;m&=a.pendingLanes,p|=m,o.lanes=p,y6(a,p)}}function x3(a){if(a!==null&&typeof a!=="function"){var o=String(a);H9.has(o)||(H9.add(o),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function V3(a,o,p,m){var t=a.memoizedState,r=p(m,t);if(a.mode&Vo){bo(!0);try{r=p(m,t)}finally{bo(!1)}}r===void 0&&(o=ta(o)||"Component",d9.has(o)||(d9.add(o),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))),t=r===null||r===void 0?t:Ka({},t,r),a.memoizedState=t,a.lanes===0&&(a.updateQueue.baseState=t)}function Of(a,o,p,m,t,r,v){var b=a.stateNode;if(typeof b.shouldComponentUpdate==="function"){if(p=b.shouldComponentUpdate(m,r,v),a.mode&Vo){bo(!0);try{p=b.shouldComponentUpdate(m,r,v)}finally{bo(!1)}}return p===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ta(o)||"Component"),p}return o.prototype&&o.prototype.isPureReactComponent?!qv(p,m)||!qv(t,r):!0}function Lf(a,o,p,m){var t=o.state;typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps(p,m),typeof o.UNSAFE_componentWillReceiveProps==="function"&&o.UNSAFE_componentWillReceiveProps(p,m),o.state!==t&&(a=L(a)||"Component",X9.has(a)||(X9.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),Aw.enqueueReplaceState(o,o.state,null))}function Gr(a,o){var p=o;if("ref"in o){p={};for(var m in o)m!=="ref"&&(p[m]=o[m])}if(a=a.defaultProps){p===o&&(p=Ka({},p));for(var t in a)p[t]===void 0&&(p[t]=a[t])}return p}function yf(a){Gw(a),console.warn(`%s
|
|
100
|
-
|
|
101
|
-
%s
|
|
102
|
-
`,n0?"An error occurred in the <"+n0+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
103
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function kf(a){var o=n0?"The above error occurred in the <"+n0+"> component.":"The above error occurred in one of your React components.",p="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Tw||"Anonymous")+".");if(typeof a==="object"&&a!==null&&typeof a.environmentName==="string"){var m=a.environmentName;a=[`%o
|
|
104
|
-
|
|
105
|
-
%s
|
|
106
|
-
|
|
107
|
-
%s
|
|
108
|
-
`,a,o,p].slice(0),typeof a[0]==="string"?a.splice(0,1,wc+" "+a[0],fc,ib+m+ib,ic):a.splice(0,0,wc,fc,ib+m+ib,ic),a.unshift(console),m=AY.apply(console.error,a),m()}else console.error(`%o
|
|
109
|
-
|
|
110
|
-
%s
|
|
111
|
-
|
|
112
|
-
%s
|
|
113
|
-
`,a,o,p)}function Nf(a){Gw(a)}function I5(a,o){try{n0=o.source?L(o.source):null,Tw=null;var p=o.value;if(Q.actQueue!==null)Q.thrownErrors.push(p);else{var m=a.onUncaughtError;m(p,{componentStack:o.stack})}}catch(t){setTimeout(function(){throw t})}}function Mf(a,o,p){try{n0=p.source?L(p.source):null,Tw=L(o);var m=a.onCaughtError;m(p.value,{componentStack:p.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(t){setTimeout(function(){throw t})}}function D3(a,o,p){return p=Gt(p),p.tag=hw,p.payload={element:null},p.callback=function(){N(o.source,I5,a,o)},p}function E3(a){return a=Gt(a),a.tag=hw,a}function j3(a,o,p,m){var t=p.type.getDerivedStateFromError;if(typeof t==="function"){var r=m.value;a.payload=function(){return t(r)},a.callback=function(){W7(p),N(m.source,Mf,o,p,m)}}var v=p.stateNode;v!==null&&typeof v.componentDidCatch==="function"&&(a.callback=function(){W7(p),N(m.source,Mf,o,p,m),typeof t!=="function"&&(ut===null?ut=new Set([this]):ut.add(this)),XY(this,m),typeof t==="function"||(p.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.",L(p)||"Unknown")})}function nz(a,o,p,m,t){if(p.flags|=32768,Um&&Pv(a,t),m!==null&&typeof m==="object"&&typeof m.then==="function"){if(o=p.alternate,o!==null&&r0(o,p,t,!0),Ra&&(Lm=!0),p=Wp.current,p!==null){switch(p.tag){case 31:case 13:return Tp===null?D5():p.alternate===null&&fo===vt&&(fo=A1),p.flags&=-257,p.flags|=65536,p.lanes=t,m===M1?p.flags|=16384:(o=p.updateQueue,o===null?p.updateQueue=new Set([m]):o.add(m),Z4(a,m,t)),!1;case 22:return p.flags|=65536,m===M1?p.flags|=16384:(o=p.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([m])},p.updateQueue=o):(p=o.retryQueue,p===null?o.retryQueue=new Set([m]):p.add(m)),Z4(a,m,t)),!1}throw Error("Unexpected Suspense handler tag ("+p.tag+"). This is a bug in React.")}return Z4(a,m,t),D5(),!1}if(Ra)return Lm=!0,o=Wp.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=t,m!==Kw&&Qv(Xp(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:m}),p))):(m!==Kw&&Qv(Xp(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:m}),p)),a=a.current.alternate,a.flags|=65536,t&=-t,a.lanes|=t,m=Xp(m,p),t=D3(a.stateNode,m,t),H5(a,t),fo!==At&&(fo=Nr)),!1;var r=Xp(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:m}),p);if(k2===null?k2=[r]:k2.push(r),fo!==At&&(fo=Nr),o===null)return!0;m=Xp(m,p),p=o;do{switch(p.tag){case 3:return p.flags|=65536,a=t&-t,p.lanes|=a,a=D3(p.stateNode,m,a),H5(p,a),!1;case 1:if(o=p.type,r=p.stateNode,(p.flags&128)===0&&(typeof o.getDerivedStateFromError==="function"||r!==null&&typeof r.componentDidCatch==="function"&&(ut===null||!ut.has(r))))return p.flags|=65536,t&=-t,p.lanes|=t,t=E3(t),j3(t,a,p,m),H5(p,t),!1}p=p.return}while(p!==null);return!1}function Po(a,o,p,m){o.child=a===null?v9(o,null,p,m):yr(o,a.child,p,m)}function hf(a,o,p,m,t){p=p.render;var r=o.ref;if("ref"in m){var v={};for(var b in m)b!=="ref"&&(v[b]=m[b])}else v=m;if($r(o),m=d3(a,o,p,v,r,t),b=B3(),a!==null&&!Bo)return K3(a,o,t),Sm(a,o,t);return Ra&&b&&r3(o),o.flags|=1,Po(a,o,m,t),o.child}function Ff(a,o,p,m,t){if(a===null){var r=p.type;if(typeof r==="function"&&!o3(r)&&r.defaultProps===void 0&&p.compare===null)return p=ir(r),o.tag=15,o.type=p,e3(o,r),gf(a,o,p,m,t);return a=p3(p.type,null,m,o,o.mode,t),a.ref=o.ref,a.return=o,o.child=a}if(r=a.child,!r4(a,t)){var v=r.memoizedProps;if(p=p.compare,p=p!==null?p:qv,p(v,m)&&a.ref===o.ref)return Sm(a,o,t)}return o.flags|=1,a=Im(r,m),a.ref=o.ref,a.return=o,o.child=a}function gf(a,o,p,m,t){if(a!==null){var r=a.memoizedProps;if(qv(r,m)&&a.ref===o.ref&&o.type===a.type)if(Bo=!1,o.pendingProps=m=r,r4(a,t))(a.flags&131072)!==0&&(Bo=!0);else return o.lanes=a.lanes,Sm(a,o,t)}return s3(a,o,p,m,t)}function Cf(a,o,p,m){var t=m.children,r=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:w2,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((o.flags&128)!==0){if(r=r!==null?r.baseLanes|p:p,a!==null){m=o.child=a.child;for(t=0;m!==null;)t=t|m.lanes|m.childLanes,m=m.sibling;m=t&~r}else m=0,o.child=null;return If(a,o,r,p,m)}if((p&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&_5(o,r!==null?r.cachePool:null),r!==null?af(o,r):Z3(o),of(o);else return m=o.lanes=536870912,If(a,o,r!==null?r.baseLanes|p:p,p,m)}else r!==null?(_5(o,r.cachePool),af(o,r),dt(o),o.memoizedState=null):(a!==null&&_5(o,null),Z3(o),dt(o));return Po(a,o,t,p),o.child}function Nv(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:w2,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function If(a,o,p,m,t){var r=$3();return r=r===null?null:{parent:_o._currentValue,pool:r},o.memoizedState={baseLanes:p,cachePool:r},a!==null&&_5(o,null),Z3(o),of(o),a!==null&&r0(a,o,m,!0),o.childLanes=t,null}function P5(a,o){var p=o.hidden;return p!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
114
|
-
- <Activity %s>
|
|
115
|
-
+ <Activity %s>`,p===!0?"hidden":p===!1?"hidden={false}":"hidden={...}",p?'mode="hidden"':'mode="visible"'),o=T5({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function Pf(a,o,p){return yr(o,a.child,null,p),a=P5(o,o.pendingProps),a.flags|=2,_p(o),o.memoizedState=null,a}function uz(a,o,p){var m=o.pendingProps,t=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Ra){if(m.mode==="hidden")return a=P5(o,m),o.lanes=536870912,Nv(null,a);if(_3(o),(a=ao)?(p=c8(a,Pp),p=p!==null&&p.data===Ir?p:null,p!==null&&(m={dehydrated:p,treeContext:y7(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=O7(p),m.return=o,o.child=m,So=o,ao=null)):p=null,p===null)throw $5(o,a),Yt(o);return o.lanes=536870912,null}return P5(o,m)}var r=a.memoizedState;if(r!==null){var v=r.dehydrated;if(_3(o),t)if(o.flags&256)o.flags&=-257,o=Pf(a,o,p);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(N7(),(p&536870912)!==0&&V5(o),Bo||r0(a,o,p,!1),t=(p&a.childLanes)!==0,Bo||t){if(m=ua,m!==null&&(v=k6(m,p),v!==0&&v!==r.retryLane))throw r.retryLane=v,uo(a,v),co(m,a,v),Sw;D5(),o=Pf(a,o,p)}else a=r.treeContext,ao=dp(v.nextSibling),So=o,Ra=!0,Mt=null,Lm=!1,Hp=null,Pp=!1,a!==null&&k7(o,a),o=P5(o,m),o.flags|=4096;return o}return r=a.child,m={mode:m.mode,children:m.children},(p&536870912)!==0&&(p&a.lanes)!==0&&V5(o),a=Im(r,m),a.ref=o.ref,o.child=a,a.return=o,a}function A5(a,o){var p=o.ref;if(p===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof p!=="function"&&typeof p!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(a===null||a.ref!==p)o.flags|=4194816}}function s3(a,o,p,m,t){if(p.prototype&&typeof p.prototype.render==="function"){var r=ta(p)||"Unknown";W9[r]||(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.",r,r),W9[r]=!0)}if(o.mode&Vo&&mm.recordLegacyContextWarning(o,null),a===null&&(e3(o,o.type),p.contextTypes&&(r=ta(p)||"Unknown",R9[r]||(R9[r]=!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)",r)))),$r(o),p=d3(a,o,p,m,void 0,t),m=B3(),a!==null&&!Bo)return K3(a,o,t),Sm(a,o,t);return Ra&&m&&r3(o),o.flags|=1,Po(a,o,p,t),o.child}function Af(a,o,p,m,t,r){if($r(o),tt=-1,H2=a!==null&&a.type!==o.type,o.updateQueue=null,p=Q3(o,m,p,t),pf(a,o),m=B3(),a!==null&&!Bo)return K3(a,o,r),Sm(a,o,r);return Ra&&m&&r3(o),o.flags|=1,Po(a,o,p,r),o.child}function Tf(a,o,p,m,t){switch(B(o)){case!1:var r=o.stateNode,v=new o.type(o.memoizedProps,r.context).state;r.updater.enqueueSetState(r,v,null);break;case!0:o.flags|=128,o.flags|=65536,r=Error("Simulated error coming from DevTools");var b=t&-t;if(o.lanes|=b,v=ua,v===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");b=E3(b),j3(b,v,o,Xp(r,o)),H5(o,b)}if($r(o),o.stateNode===null){if(v=Nt,r=p.contextType,"contextType"in p&&r!==null&&(r===void 0||r.$$typeof!==Km)&&!K9.has(p)&&(K9.add(p),b=r===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 r!=="object"?" However, it is set to a "+typeof r+".":r.$$typeof===n4?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(r).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ta(p)||"Component",b)),typeof r==="object"&&r!==null&&(v=to(r)),r=new p(m,v),o.mode&Vo){bo(!0);try{r=new p(m,v)}finally{bo(!1)}}if(v=o.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Aw,o.stateNode=r,r._reactInternals=o,r._reactInternalInstance=Y9,typeof p.getDerivedStateFromProps==="function"&&v===null&&(v=ta(p)||"Component",Z9.has(v)||(Z9.add(v),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.",v,r.state===null?"null":"undefined",v))),typeof p.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"){var w=b=v=null;if(typeof r.componentWillMount==="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0?v="componentWillMount":typeof r.UNSAFE_componentWillMount==="function"&&(v="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps==="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0?b="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps==="function"&&(b="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate==="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0?w="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate==="function"&&(w="UNSAFE_componentWillUpdate"),v!==null||b!==null||w!==null){r=ta(p)||"Component";var f=typeof p.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";_9.has(r)||(_9.add(r),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
116
|
-
|
|
117
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
118
|
-
|
|
119
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
120
|
-
https://react.dev/link/unsafe-component-lifecycles`,r,f,v!==null?`
|
|
121
|
-
`+v:"",b!==null?`
|
|
122
|
-
`+b:"",w!==null?`
|
|
123
|
-
`+w:""))}}r=o.stateNode,v=ta(p)||"Component",r.render||(p.prototype&&typeof p.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",v):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",v)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.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?",v),r.getDefaultProps&&!r.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.",v),r.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),p.childContextTypes&&!B9.has(p)&&(B9.add(p),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",v)),p.contextTypes&&!Q9.has(p)&&(Q9.add(p),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)",v)),typeof r.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.",v),p.prototype&&p.prototype.isPureReactComponent&&typeof r.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.",ta(p)||"A pure component"),typeof r.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof r.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().",v),typeof r.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof r.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v),b=r.props!==m,r.props!==void 0&&b&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v),r.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.",v,v),typeof r.getSnapshotBeforeUpdate!=="function"||typeof r.componentDidUpdate==="function"||G9.has(p)||(G9.add(p),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ta(p))),typeof r.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof r.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof p.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v),(b=r.state)&&(typeof b!=="object"||Ro(b))&&console.error("%s.state: must be set to an object or null",v),typeof r.getChildContext==="function"&&typeof p.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v),r=o.stateNode,r.props=m,r.state=o.memoizedState,r.refs={},Y3(o),v=p.contextType,r.context=typeof v==="object"&&v!==null?to(v):Nt,r.state===m&&(v=ta(p)||"Component",q9.has(v)||(q9.add(v),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.",v))),o.mode&Vo&&mm.recordLegacyContextWarning(o,r),mm.recordUnsafeLifecycleWarnings(o,r),r.state=o.memoizedState,v=p.getDerivedStateFromProps,typeof v==="function"&&(V3(o,p,v,m),r.state=o.memoizedState),typeof p.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(v=r.state,typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount(),v!==r.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",L(o)||"Component"),Aw.enqueueReplaceState(r,r.state,null)),Ov(o,m,r,t),Rv(),r.state=o.memoizedState),typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&pm)!==la&&(o.flags|=134217728),r=!0}else if(a===null){r=o.stateNode;var Y=o.memoizedProps;b=Gr(p,Y),r.props=b;var X=r.context;w=p.contextType,v=Nt,typeof w==="object"&&w!==null&&(v=to(w)),f=p.getDerivedStateFromProps,w=typeof f==="function"||typeof r.getSnapshotBeforeUpdate==="function",Y=o.pendingProps!==Y,w||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(Y||X!==v)&&Lf(o,r,m,v),Pt=!1;var z=o.memoizedState;r.state=z,Ov(o,m,r,t),Rv(),X=o.memoizedState,Y||z!==X||Pt?(typeof f==="function"&&(V3(o,p,f,m),X=o.memoizedState),(b=Pt||Of(o,p,b,m,z,X,v))?(w||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&pm)!==la&&(o.flags|=134217728)):(typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&pm)!==la&&(o.flags|=134217728),o.memoizedProps=m,o.memoizedState=X),r.props=m,r.state=X,r.context=v,r=b):(typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&pm)!==la&&(o.flags|=134217728),r=!1)}else{r=o.stateNode,X3(a,o),v=o.memoizedProps,w=Gr(p,v),r.props=w,f=o.pendingProps,z=r.context,X=p.contextType,b=Nt,typeof X==="object"&&X!==null&&(b=to(X)),Y=p.getDerivedStateFromProps,(X=typeof Y==="function"||typeof r.getSnapshotBeforeUpdate==="function")||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(v!==f||z!==b)&&Lf(o,r,m,b),Pt=!1,z=o.memoizedState,r.state=z,Ov(o,m,r,t),Rv();var q=o.memoizedState;v!==f||z!==q||Pt||a!==null&&a.dependencies!==null&&Y5(a.dependencies)?(typeof Y==="function"&&(V3(o,p,Y,m),q=o.memoizedState),(w=Pt||Of(o,p,w,m,z,q,b)||a!==null&&a.dependencies!==null&&Y5(a.dependencies))?(X||typeof r.UNSAFE_componentWillUpdate!=="function"&&typeof r.componentWillUpdate!=="function"||(typeof r.componentWillUpdate==="function"&&r.componentWillUpdate(m,q,b),typeof r.UNSAFE_componentWillUpdate==="function"&&r.UNSAFE_componentWillUpdate(m,q,b)),typeof r.componentDidUpdate==="function"&&(o.flags|=4),typeof r.getSnapshotBeforeUpdate==="function"&&(o.flags|=1024)):(typeof r.componentDidUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=q),r.props=m,r.state=q,r.context=b,r=w):(typeof r.componentDidUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=1024),r=!1)}if(b=r,A5(a,o),v=(o.flags&128)!==0,b||v){if(b=o.stateNode,lo(o),v&&typeof p.getDerivedStateFromError!=="function")p=null,op=-1;else if(p=ul(b),o.mode&Vo){bo(!0);try{ul(b)}finally{bo(!1)}}o.flags|=1,a!==null&&v?(o.child=yr(o,a.child,null,t),o.child=yr(o,null,p,t)):Po(a,o,p,t),o.memoizedState=b.state,a=o.child}else a=Sm(a,o,t);return t=o.stateNode,r&&t.props!==m&&(u0||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",L(o)||"a component"),u0=!0),a}function Sf(a,o,p,m){return zr(),o.flags|=256,Po(a,o,p,m),o.child}function e3(a,o){o&&o.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
124
|
-
%s.childContextTypes = ...`,o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps==="function"&&(a=ta(o)||"Unknown",O9[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),O9[a]=!0)),typeof o.contextType==="object"&&o.contextType!==null&&(o=ta(o)||"Unknown",U9[o]||(console.error("%s: Function components do not support contextType.",o),U9[o]=!0))}function a4(a){return{baseLanes:a,cachePool:P7()}}function o4(a,o,p){return a=a!==null?a.childLanes&~p:0,o&&(a|=zp),a}function nf(a,o,p){var m,t=o.pendingProps;O(o)&&(o.flags|=128);var r=!1,v=(o.flags&128)!==0;if((m=v)||(m=a!==null&&a.memoizedState===null?!1:(Zo.current&B2)!==0),m&&(r=!0,o.flags&=-129),m=(o.flags&32)!==0,o.flags&=-33,a===null){if(Ra){if(r?qt(o):dt(o),(a=ao)?(p=c8(a,Pp),p=p!==null&&p.data!==Ir?p:null,p!==null&&(m={dehydrated:p,treeContext:y7(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=O7(p),m.return=o,o.child=m,So=o,ao=null)):p=null,p===null)throw $5(o,a),Yt(o);return N4(p)?o.lanes=32:o.lanes=536870912,null}var b=t.children;if(t=t.fallback,r){dt(o);var w=o.mode;return b=T5({mode:"hidden",children:b},w),t=lr(t,w,p,null),b.return=o,t.return=o,b.sibling=t,o.child=b,t=o.child,t.memoizedState=a4(p),t.childLanes=o4(a,m,p),o.memoizedState=nw,Nv(null,t)}return qt(o),p4(o,b)}var f=a.memoizedState;if(f!==null){var Y=f.dehydrated;if(Y!==null){if(v)o.flags&256?(qt(o),o.flags&=-257,o=m4(a,o,p)):o.memoizedState!==null?(dt(o),o.child=a.child,o.flags|=128,o=null):(dt(o),b=t.fallback,w=o.mode,t=T5({mode:"visible",children:t.children},w),b=lr(b,w,p,null),b.flags|=2,t.return=o,b.return=o,t.sibling=b,o.child=t,yr(o,a.child,null,p),t=o.child,t.memoizedState=a4(p),t.childLanes=o4(a,m,p),o.memoizedState=nw,o=Nv(null,t));else if(qt(o),N7(),(p&536870912)!==0&&V5(o),N4(Y)){if(m=Y.nextSibling&&Y.nextSibling.dataset,m){b=m.dgst;var X=m.msg;w=m.stck;var z=m.cstck}r=X,m=b,t=w,Y=z,b=r,w=Y,b=b?Error(b):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),b.stack=t||"",b.digest=m,m=w===void 0?null:w,t={value:b,source:null,stack:m},typeof m==="string"&&Bw.set(b,t),Qv(t),o=m4(a,o,p)}else if(Bo||r0(a,o,p,!1),m=(p&a.childLanes)!==0,Bo||m){if(m=ua,m!==null&&(t=k6(m,p),t!==0&&t!==f.retryLane))throw f.retryLane=t,uo(a,t),co(m,a,t),Sw;k4(Y)||D5(),o=m4(a,o,p)}else k4(Y)?(o.flags|=192,o.child=a.child,o=null):(a=f.treeContext,ao=dp(Y.nextSibling),So=o,Ra=!0,Mt=null,Lm=!1,Hp=null,Pp=!1,a!==null&&k7(o,a),o=p4(o,t.children),o.flags|=4096);return o}}if(r)return dt(o),b=t.fallback,w=o.mode,z=a.child,Y=z.sibling,t=Im(z,{mode:"hidden",children:t.children}),t.subtreeFlags=z.subtreeFlags&65011712,Y!==null?b=Im(Y,b):(b=lr(b,w,p,null),b.flags|=2),b.return=o,t.return=o,t.sibling=b,o.child=t,Nv(null,t),t=o.child,b=a.child.memoizedState,b===null?b=a4(p):(w=b.cachePool,w!==null?(z=_o._currentValue,w=w.parent!==z?{parent:z,pool:z}:w):w=P7(),b={baseLanes:b.baseLanes|p,cachePool:w}),t.memoizedState=b,t.childLanes=o4(a,m,p),o.memoizedState=nw,Nv(a.child,t);return f!==null&&(p&62914560)===p&&(p&a.lanes)!==0&&V5(o),qt(o),p=a.child,a=p.sibling,p=Im(p,{mode:"visible",children:t.children}),p.return=o,p.sibling=null,a!==null&&(m=o.deletions,m===null?(o.deletions=[a],o.flags|=16):m.push(a)),o.child=p,o.memoizedState=null,p}function p4(a,o){return o=T5({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function T5(a,o){return a=F(22,a,null,o),a.lanes=0,a}function m4(a,o,p){return yr(o,a.child,null,p),a=p4(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function uf(a,o,p){a.lanes|=o;var m=a.alternate;m!==null&&(m.lanes|=o),f3(a.return,o,p)}function t4(a,o,p,m,t,r){var v=a.memoizedState;v===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:p,tailMode:t,treeForkCount:r}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=m,v.tail=p,v.tailMode=t,v.treeForkCount=r)}function xf(a,o,p){var m=o.pendingProps,t=m.revealOrder,r=m.tail,v=m.children,b=Zo.current;if((m=(b&B2)!==0)?(b=b&A0|B2,o.flags|=128):b&=A0,U(Zo,b,o),b=t==null?"null":t,t!=="forwards"&&t!=="unstable_legacy-backwards"&&t!=="together"&&t!=="independent"&&!L9[b])if(L9[b]=!0,t==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(t==="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 t==="string")switch(t.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.',t,t.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.',t,t.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',t)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',t);if(b=r==null?"null":r,!P1[b])if(r==null){if(t==="forwards"||t==="backwards"||t==="unstable_legacy-backwards")P1[b]=!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".')}else r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(P1[b]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):t!=="forwards"&&t!=="backwards"&&t!=="unstable_legacy-backwards"&&(P1[b]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r));a:if((t==="forwards"||t==="backwards"||t==="unstable_legacy-backwards")&&v!==void 0&&v!==null&&v!==!1)if(Ro(v)){for(b=0;b<v.length;b++)if(!j7(v[b],b))break a}else if(b=Wa(v),typeof b==="function"){if(b=b.call(v))for(var w=b.next(),f=0;!w.done;w=b.next()){if(!j7(w.value,f))break a;f++}}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?',t);if(Po(a,o,v,p),Ra?(Jt(),v=f2):v=0,!m&&a!==null&&(a.flags&128)!==0)a:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&uf(a,p,o);else if(a.tag===19)uf(a,p,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break a;for(;a.sibling===null;){if(a.return===null||a.return===o)break a;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(t){case"forwards":p=o.child;for(t=null;p!==null;)a=p.alternate,a!==null&&W5(a)===null&&(t=p),p=p.sibling;p=t,p===null?(t=o.child,o.child=null):(t=p.sibling,p.sibling=null),t4(o,!1,t,p,r,v);break;case"backwards":case"unstable_legacy-backwards":p=null,t=o.child;for(o.child=null;t!==null;){if(a=t.alternate,a!==null&&W5(a)===null){o.child=t;break}a=t.sibling,t.sibling=p,p=t,t=a}t4(o,!0,p,null,r,v);break;case"together":t4(o,!1,null,null,void 0,v);break;default:o.memoizedState=null}return o.child}function Sm(a,o,p){if(a!==null&&(o.dependencies=a.dependencies),op=-1,St|=o.lanes,(p&o.childLanes)===0)if(a!==null){if(r0(a,o,p,!1),(p&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error("Resuming work not yet implemented.");if(o.child!==null){a=o.child,p=Im(a,a.pendingProps),o.child=p;for(p.return=o;a.sibling!==null;)a=a.sibling,p=p.sibling=Im(a,a.pendingProps),p.return=o;p.sibling=null}return o.child}function r4(a,o){if((a.lanes&o)!==0)return!0;return a=a.dependencies,a!==null&&Y5(a)?!0:!1}function xz(a,o,p){switch(o.tag){case 3:h(o,o.stateNode.containerInfo),Xt(o,_o,a.memoizedState.cache),zr();break;case 27:case 5:Pa(o);break;case 4:h(o,o.stateNode.containerInfo);break;case 10:Xt(o,o.type,o.memoizedProps.value);break;case 12:(p&o.childLanes)!==0&&(o.flags|=4),o.flags|=2048;var m=o.stateNode;m.effectDuration=-0,m.passiveEffectDuration=-0;break;case 31:if(o.memoizedState!==null)return o.flags|=128,_3(o),null;break;case 13:if(m=o.memoizedState,m!==null){if(m.dehydrated!==null)return qt(o),o.flags|=128,null;if((p&o.child.childLanes)!==0)return nf(a,o,p);return qt(o),a=Sm(a,o,p),a!==null?a.sibling:null}qt(o);break;case 19:var t=(a.flags&128)!==0;if(m=(p&o.childLanes)!==0,m||(r0(a,o,p,!1),m=(p&o.childLanes)!==0),t){if(m)return xf(a,o,p);o.flags|=128}if(t=o.memoizedState,t!==null&&(t.rendering=null,t.tail=null,t.lastEffect=null),U(Zo,Zo.current,o),m)break;else return null;case 22:return o.lanes=0,Cf(a,o,p,o.pendingProps);case 24:Xt(o,_o,a.memoizedState.cache)}return Sm(a,o,p)}function v4(a,o,p){if(o._debugNeedsRemount&&a!==null){p=p3(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes),p._debugStack=o._debugStack,p._debugTask=o._debugTask;var m=o.return;if(m===null)throw Error("Cannot swap the root fiber.");if(a.alternate=null,o.alternate=null,p.index=o.index,p.sibling=o.sibling,p.return=o.return,p.ref=o.ref,p._debugInfo=o._debugInfo,o===m.child)m.child=p;else{var t=m.child;if(t===null)throw Error("Expected parent to have a child.");for(;t.sibling!==o;)if(t=t.sibling,t===null)throw Error("Expected to find the previous sibling.");t.sibling=p}return o=m.deletions,o===null?(m.deletions=[a],m.flags|=16):o.push(a),p.flags|=2,p}if(a!==null)if(a.memoizedProps!==o.pendingProps||o.type!==a.type)Bo=!0;else{if(!r4(a,p)&&(o.flags&128)===0)return Bo=!1,xz(a,o,p);Bo=(a.flags&131072)!==0?!0:!1}else{if(Bo=!1,m=Ra)Jt(),m=(o.flags&1048576)!==0;m&&(m=o.index,Jt(),L7(o,f2,m))}switch(o.lanes=0,o.tag){case 16:a:if(m=o.pendingProps,a=Zt(o.elementType),o.type=a,typeof a==="function")o3(a)?(m=Gr(a,m),o.tag=1,o.type=a=ir(a),o=Tf(null,o,a,m,p)):(o.tag=0,e3(o,a),o.type=a=ir(a),o=s3(null,o,a,m,p));else{if(a!==void 0&&a!==null){if(t=a.$$typeof,t===Ev){o.tag=11,o.type=a=a3(a),o=hf(null,o,a,m,p);break a}else if(t===f1){o.tag=14,o=Ff(null,o,a,m,p);break a}}throw o="",a!==null&&typeof a==="object"&&a.$$typeof===Qp&&(o=" Did you wrap a component in React.lazy() more than once?"),p=ta(a)||a,Error("Element type is invalid. Received a promise that resolves to: "+p+". Lazy element type must resolve to a class or function."+o)}return o;case 0:return s3(a,o,o.type,o.pendingProps,p);case 1:return m=o.type,t=Gr(m,o.pendingProps),Tf(a,o,m,t,p);case 3:a:{if(h(o,o.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");m=o.pendingProps;var r=o.memoizedState;t=r.element,X3(a,o),Ov(o,m,null,p);var v=o.memoizedState;if(m=v.cache,Xt(o,_o,m),m!==r.cache&&i3(o,[_o],p,!0),Rv(),m=v.element,r.isDehydrated)if(r={element:m,isDehydrated:!1,cache:v.cache},o.updateQueue.baseState=r,o.memoizedState=r,o.flags&256){o=Sf(a,o,m,p);break a}else if(m!==t){t=Xp(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o),Qv(t),o=Sf(a,o,m,p);break a}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}ao=dp(a.firstChild),So=o,Ra=!0,Mt=null,Lm=!1,Hp=null,Pp=!0,p=v9(o,null,m,p);for(o.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(zr(),m===t){o=Sm(a,o,p);break a}Po(a,o,m,p)}o=o.child}return o;case 26:return A5(a,o),a===null?(p=Z8(o.type,null,o.pendingProps,null))?o.memoizedState=p:Ra||(p=o.type,a=o.pendingProps,m=k(Ut.current),m=e5(m).createElement(p),m[To]=o,m[so]=a,Ao(m,p,a),No(m),o.stateNode=m):o.memoizedState=Z8(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return Pa(o),a===null&&Ra&&(m=k(Ut.current),t=ra(),m=o.stateNode=Y8(o.type,o.pendingProps,m,t,!1),Lm||(t=t8(m,o.type,o.pendingProps,t),t!==null&&(cr(o,0).serverProps=t)),So=o,Pp=!0,t=ao,Ht(o.type)?($6=t,ao=dp(m.firstChild)):ao=t),Po(a,o,o.pendingProps.children,p),A5(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Ra&&(r=ra(),m=ub(o.type,r.ancestorInfo),t=ao,(v=!t)||(v=M$(t,o.type,o.pendingProps,Pp),v!==null?(o.stateNode=v,Lm||(r=t8(v,o.type,o.pendingProps,r),r!==null&&(cr(o,0).serverProps=r)),So=o,ao=dp(v.firstChild),Pp=!1,r=!0):r=!1,v=!r),v&&(m&&$5(o,t),Yt(o))),Pa(o),t=o.type,r=o.pendingProps,v=a!==null?a.memoizedProps:null,m=r.children,L4(t,r)?m=null:v!==null&&L4(t,v)&&(o.flags|=32),o.memoizedState!==null&&(t=d3(a,o,Cz,null,null,p),A2._currentValue=t),A5(a,o),Po(a,o,m,p),o.child;case 6:return a===null&&Ra&&(p=o.pendingProps,a=ra(),m=a.ancestorInfo.current,p=m!=null?t5(p,m.tag,a.ancestorInfo.implicitRootScope):!0,a=ao,(m=!a)||(m=h$(a,o.pendingProps,Pp),m!==null?(o.stateNode=m,So=o,ao=null,m=!0):m=!1,m=!m),m&&(p&&$5(o,a),Yt(o))),null;case 13:return nf(a,o,p);case 4:return h(o,o.stateNode.containerInfo),m=o.pendingProps,a===null?o.child=yr(o,null,m,p):Po(a,o,m,p),o.child;case 11:return hf(a,o,o.type,o.pendingProps,p);case 7:return Po(a,o,o.pendingProps,p),o.child;case 8:return Po(a,o,o.pendingProps.children,p),o.child;case 12:return o.flags|=4,o.flags|=2048,m=o.stateNode,m.effectDuration=-0,m.passiveEffectDuration=-0,Po(a,o,o.pendingProps.children,p),o.child;case 10:return m=o.type,t=o.pendingProps,r=t.value,"value"in t||y9||(y9=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Xt(o,m,r),Po(a,o,t.children,p),o.child;case 9:return t=o.type._context,m=o.pendingProps.children,typeof m!=="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."),$r(o),t=to(t),m=yw(m,t,void 0),o.flags|=1,Po(a,o,m,p),o.child;case 14:return Ff(a,o,o.type,o.pendingProps,p);case 15:return gf(a,o,o.type,o.pendingProps,p);case 19:return xf(a,o,p);case 31:return uz(a,o,p);case 22:return Cf(a,o,p,o.pendingProps);case 24:return $r(o),m=to(_o),a===null?(t=$3(),t===null&&(t=ua,r=l3(),t.pooledCache=r,Jr(r),r!==null&&(t.pooledCacheLanes|=p),t=r),o.memoizedState={parent:m,cache:t},Y3(o),Xt(o,_o,t)):((a.lanes&p)!==0&&(X3(a,o),Ov(o,null,null,p),Rv()),t=a.memoizedState,r=o.memoizedState,t.parent!==m?(t={parent:m,cache:m},o.memoizedState=t,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=t),Xt(o,_o,m)):(m=r.cache,Xt(o,_o,m),m!==t.cache&&i3(o,[_o],p,!0))),Po(a,o,o.pendingProps.children,p),o.child;case 29:throw o.pendingProps}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function nm(a){a.flags|=4}function b4(a,o,p,m,t){if(o=(a.mode&zY)!==la)o=!1;if(o){if(a.flags|=16777216,(t&335544128)===t)if(a.stateNode.complete)a.flags|=8192;else if(Hi())a.flags|=8192;else throw Lr=M1,Nw}else a.flags&=-16777217}function Vf(a,o){if(o.type!=="stylesheet"||(o.state.loading&up)!==Tr)a.flags&=-16777217;else if(a.flags|=16777216,!Q8(o))if(Hi())a.flags|=8192;else throw Lr=M1,Nw}function S5(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?kb():536870912,a.lanes|=o,Fr|=o)}function Mv(a,o){if(!Ra)switch(a.tailMode){case"hidden":o=a.tail;for(var p=null;o!==null;)o.alternate!==null&&(p=o),o=o.sibling;p===null?a.tail=null:p.sibling=null;break;case"collapsed":p=a.tail;for(var m=null;p!==null;)p.alternate!==null&&(m=p),p=p.sibling;m===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function Va(a){var o=a.alternate!==null&&a.alternate.child===a.child,p=0,m=0;if(o)if((a.mode&_a)!==la){for(var{selfBaseDuration:t,child:r}=a;r!==null;)p|=r.lanes|r.childLanes,m|=r.subtreeFlags&65011712,m|=r.flags&65011712,t+=r.treeBaseDuration,r=r.sibling;a.treeBaseDuration=t}else for(t=a.child;t!==null;)p|=t.lanes|t.childLanes,m|=t.subtreeFlags&65011712,m|=t.flags&65011712,t.return=a,t=t.sibling;else if((a.mode&_a)!==la){t=a.actualDuration,r=a.selfBaseDuration;for(var v=a.child;v!==null;)p|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,t+=v.actualDuration,r+=v.treeBaseDuration,v=v.sibling;a.actualDuration=t,a.treeBaseDuration=r}else for(t=a.child;t!==null;)p|=t.lanes|t.childLanes,m|=t.subtreeFlags,m|=t.flags,t.return=a,t=t.sibling;return a.subtreeFlags|=m,a.childLanes=p,o}function Vz(a,o,p){var m=o.pendingProps;switch(v3(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Va(o),null;case 1:return Va(o),null;case 3:if(p=o.stateNode,m=null,a!==null&&(m=a.memoizedState.cache),o.memoizedState.cache!==m&&(o.flags|=2048),Am(_o,o),S(o),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),a===null||a.child===null)t0(o)?(w3(),nm(o)):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,b3());return Va(o),null;case 26:var{type:t,memoizedState:r}=o;return a===null?(nm(o),r!==null?(Va(o),Vf(o,r)):(Va(o),b4(o,t,null,m,p))):r?r!==a.memoizedState?(nm(o),Va(o),Vf(o,r)):(Va(o),o.flags&=-16777217):(a=a.memoizedProps,a!==m&&nm(o),Va(o),b4(o,t,a,m,p)),null;case 27:if(xa(o),p=k(Ut.current),t=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==m&&nm(o);else{if(!m){if(o.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 Va(o),null}a=ra(),t0(o)?M7(o,a):(a=Y8(t,m,p,a,!0),o.stateNode=a,nm(o))}return Va(o),null;case 5:if(xa(o),t=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==m&&nm(o);else{if(!m){if(o.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 Va(o),null}var v=ra();if(t0(o))M7(o,v);else{switch(r=k(Ut.current),ub(t,v.ancestorInfo),v=v.context,r=e5(r),v){case av:r=r.createElementNS(B0,t);break;case bb:r=r.createElementNS(Y1,t);break;default:switch(t){case"svg":r=r.createElementNS(B0,t);break;case"math":r=r.createElementNS(Y1,t);break;case"script":r=r.createElement("div"),r.innerHTML="<script></script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof m.is==="string"?r.createElement("select",{is:m.is}):r.createElement("select"),m.multiple?r.multiple=!0:m.size&&(r.size=m.size);break;default:r=typeof m.is==="string"?r.createElement(t,{is:m.is}):r.createElement(t),t.indexOf("-")===-1&&(t!==t.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||am.call(pc,t)||(pc[t]=!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.",t)))}}r[To]=o,r[so]=m;a:for(v=o.child;v!==null;){if(v.tag===5||v.tag===6)r.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===o)break a;for(;v.sibling===null;){if(v.return===null||v.return===o)break a;v=v.return}v.sibling.return=v.return,v=v.sibling}o.stateNode=r;a:switch(Ao(r,t,m),t){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break a;case"img":m=!0;break a;default:m=!1}m&&nm(o)}}return Va(o),b4(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,p),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==m&&nm(o);else{if(typeof m!=="string"&&o.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(a=k(Ut.current),p=ra(),t0(o)){if(a=o.stateNode,p=o.memoizedProps,t=!Lm,m=null,r=So,r!==null)switch(r.tag){case 3:t&&(t=$8(a,p,m),t!==null&&(cr(o,0).serverProps=t));break;case 27:case 5:m=r.memoizedProps,t&&(t=$8(a,p,m),t!==null&&(cr(o,0).serverProps=t))}a[To]=o,a=a.nodeValue===p||m!==null&&m.suppressHydrationWarning===!0||ei(a.nodeValue,p)?!0:!1,a||Yt(o,!0)}else t=p.ancestorInfo.current,t!=null&&t5(m,t.tag,p.ancestorInfo.implicitRootScope),a=e5(a).createTextNode(m),a[To]=o,o.stateNode=a}return Va(o),null;case 31:if(p=o.memoizedState,a===null||a.memoizedState!==null){if(m=t0(o),p!==null){if(a===null){if(!m)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");a[To]=o,Va(o),(o.mode&_a)!==la&&p!==null&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration))}else w3(),zr(),(o.flags&128)===0&&(p=o.memoizedState=null),o.flags|=4,Va(o),(o.mode&_a)!==la&&p!==null&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration));a=!1}else p=b3(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),a=!0;if(!a){if(o.flags&256)return _p(o),o;return _p(o),null}if((o.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Va(o),null;case 13:if(m=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(t=m,r=t0(o),t!==null&&t.dehydrated!==null){if(a===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[To]=o,Va(o),(o.mode&_a)!==la&&t!==null&&(t=o.child,t!==null&&(o.treeBaseDuration-=t.treeBaseDuration))}else w3(),zr(),(o.flags&128)===0&&(t=o.memoizedState=null),o.flags|=4,Va(o),(o.mode&_a)!==la&&t!==null&&(t=o.child,t!==null&&(o.treeBaseDuration-=t.treeBaseDuration));t=!1}else t=b3(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=t),t=!0;if(!t){if(o.flags&256)return _p(o),o;return _p(o),null}}if(_p(o),(o.flags&128)!==0)return o.lanes=p,(o.mode&_a)!==la&&Hv(o),o;return p=m!==null,a=a!==null&&a.memoizedState!==null,p&&(m=o.child,t=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(t=m.alternate.memoizedState.cachePool.pool),r=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(r=m.memoizedState.cachePool.pool),r!==t&&(m.flags|=2048)),p!==a&&p&&(o.child.flags|=8192),S5(o,o.updateQueue),Va(o),(o.mode&_a)!==la&&p&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration)),null;case 4:return S(o),a===null&&B4(o.stateNode.containerInfo),Va(o),null;case 10:return Am(o.type,o),Va(o),null;case 19:if(y(Zo,o),m=o.memoizedState,m===null)return Va(o),null;if(t=(o.flags&128)!==0,r=m.rendering,r===null)if(t)Mv(m,!1);else{if(fo!==vt||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(r=W5(a),r!==null){o.flags|=128,Mv(m,!1),a=r.updateQueue,o.updateQueue=a,S5(o,a),o.subtreeFlags=0,a=p;for(p=o.child;p!==null;)R7(p,a),p=p.sibling;return U(Zo,Zo.current&A0|B2,o),Ra&&Pm(o,m.treeForkCount),o.child}a=a.sibling}m.tail!==null&&ho()>V1&&(o.flags|=128,t=!0,Mv(m,!1),o.lanes=4194304)}else{if(!t)if(a=W5(r),a!==null){if(o.flags|=128,t=!0,a=a.updateQueue,o.updateQueue=a,S5(o,a),Mv(m,!0),m.tail===null&&m.tailMode==="hidden"&&!r.alternate&&!Ra)return Va(o),null}else 2*ho()-m.renderingStartTime>V1&&p!==536870912&&(o.flags|=128,t=!0,Mv(m,!1),o.lanes=4194304);m.isBackwards?(r.sibling=o.child,o.child=r):(a=m.last,a!==null?a.sibling=r:o.child=r,m.last=r)}if(m.tail!==null)return a=m.tail,m.rendering=a,m.tail=a.sibling,m.renderingStartTime=ho(),a.sibling=null,p=Zo.current,p=t?p&A0|B2:p&A0,U(Zo,p,o),Ra&&Pm(o,m.treeForkCount),a;return Va(o),null;case 22:case 23:return _p(o),G3(o),m=o.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(o.flags|=8192):m&&(o.flags|=8192),m?(p&536870912)!==0&&(o.flags&128)===0&&(Va(o),o.subtreeFlags&6&&(o.flags|=8192)):Va(o),p=o.updateQueue,p!==null&&S5(o,p.retryQueue),p=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(p=a.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==p&&(o.flags|=2048),a!==null&&y(Rr,o),null;case 24:return p=null,a!==null&&(p=a.memoizedState.cache),o.memoizedState.cache!==p&&(o.flags|=2048),Am(_o,o),Va(o),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Dz(a,o){switch(v3(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&_a)!==la&&Hv(o),o):null;case 3:return Am(_o,o),S(o),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return xa(o),null;case 31:if(o.memoizedState!==null){if(_p(o),o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zr()}return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&_a)!==la&&Hv(o),o):null;case 13:if(_p(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zr()}return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&_a)!==la&&Hv(o),o):null;case 19:return y(Zo,o),null;case 4:return S(o),null;case 10:return Am(o.type,o),null;case 22:case 23:return _p(o),G3(o),a!==null&&y(Rr,o),a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&_a)!==la&&Hv(o),o):null;case 24:return Am(_o,o),null;case 25:return null;default:return null}}function Df(a,o){switch(v3(o),o.tag){case 3:Am(_o,o),S(o);break;case 26:case 27:case 5:xa(o);break;case 4:S(o);break;case 31:o.memoizedState!==null&&_p(o);break;case 13:_p(o);break;case 19:y(Zo,o);break;case 10:Am(o.type,o);break;case 22:case 23:_p(o),G3(o),a!==null&&y(Rr,o);break;case 24:Am(_o,o)}}function Zm(a){return(a.mode&_a)!==la}function Ef(a,o){Zm(a)?(Xm(),hv(o,a),Ym()):hv(o,a)}function w4(a,o,p){Zm(a)?(Xm(),i0(p,a,o),Ym()):i0(p,a,o)}function hv(a,o){try{var p=o.updateQueue,m=p!==null?p.lastEffect:null;if(m!==null){var t=m.next;p=t;do{if((p.tag&a)===a&&(m=void 0,(a&pp)!==F1&&(j0=!0),m=N(o,ZY,p),(a&pp)!==F1&&(j0=!1),m!==void 0&&typeof m!=="function")){var r=void 0;r=(p.tag&Up)!==0?"useLayoutEffect":(p.tag&pp)!==0?"useInsertionEffect":"useEffect";var v=void 0;v=m===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof m.then==="function"?`
|
|
125
|
-
|
|
126
|
-
It looks like you wrote `+r+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
127
|
-
|
|
128
|
-
`+r+`(() => {
|
|
129
|
-
async function fetchData() {
|
|
130
|
-
// You can await here
|
|
131
|
-
const response = await MyAPI.getData(someId);
|
|
132
|
-
// ...
|
|
133
|
-
}
|
|
134
|
-
fetchData();
|
|
135
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
136
|
-
|
|
137
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+m,N(o,function(b,w){console.error("%s must not return anything besides a function, which is used for clean-up.%s",b,w)},r,v)}p=p.next}while(p!==t)}}catch(b){ha(o,o.return,b)}}function i0(a,o,p){try{var m=o.updateQueue,t=m!==null?m.lastEffect:null;if(t!==null){var r=t.next;m=r;do{if((m.tag&a)===a){var v=m.inst,b=v.destroy;b!==void 0&&(v.destroy=void 0,(a&pp)!==F1&&(j0=!0),t=o,N(t,GY,t,p,b),(a&pp)!==F1&&(j0=!1))}m=m.next}while(m!==r)}}catch(w){ha(o,o.return,w)}}function jf(a,o){Zm(a)?(Xm(),hv(o,a),Ym()):hv(o,a)}function f4(a,o,p){Zm(a)?(Xm(),i0(p,a,o),Ym()):i0(p,a,o)}function sf(a){var o=a.updateQueue;if(o!==null){var p=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||u0||(p.props!==a.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.",L(a)||"instance"),p.state!==a.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.",L(a)||"instance"));try{N(a,e7,o,p)}catch(m){ha(a,a.return,m)}}}function Ez(a,o,p){return a.getSnapshotBeforeUpdate(o,p)}function jz(a,o){var{memoizedProps:p,memoizedState:m}=o;o=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||u0||(o.props!==a.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.",L(a)||"instance"),o.state!==a.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.",L(a)||"instance"));try{var t=Gr(a.type,p),r=N(a,Ez,o,t,m);p=k9,r!==void 0||p.has(a.type)||(p.add(a.type),N(a,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",L(a))})),o.__reactInternalSnapshotBeforeUpdate=r}catch(v){ha(a,a.return,v)}}function ef(a,o,p){p.props=Gr(a.type,a.memoizedProps),p.state=a.memoizedState,Zm(a)?(Xm(),N(a,sl,a,o,p),Ym()):N(a,sl,a,o,p)}function sz(a){var o=a.ref;if(o!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:p=a.stateNode;break;default:p=a.stateNode}if(typeof o==="function")if(Zm(a))try{Xm(),a.refCleanup=o(p)}finally{Ym()}else a.refCleanup=o(p);else typeof o==="string"?console.error("String refs are no longer supported."):o.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",L(a)),o.current=p}}function Fv(a,o){try{N(a,sz,a)}catch(p){ha(a,o,p)}}function Gm(a,o){var{ref:p,refCleanup:m}=a;if(p!==null)if(typeof m==="function")try{if(Zm(a))try{Xm(),N(a,m)}finally{Ym(a)}else N(a,m)}catch(t){ha(a,o,t)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof p==="function")try{if(Zm(a))try{Xm(),N(a,p,null)}finally{Ym(a)}else N(a,p,null)}catch(t){ha(a,o,t)}else p.current=null}function ai(a,o,p,m){var t=a.memoizedProps,r=t.id,v=t.onCommit;t=t.onRender,o=o===null?"mount":"update",L1&&(o="nested-update"),typeof t==="function"&&t(r,o,a.actualDuration,a.treeBaseDuration,a.actualStartTime,p),typeof v==="function"&&v(r,o,m,p)}function ez(a,o,p,m){var t=a.memoizedProps;a=t.id,t=t.onPostCommit,o=o===null?"mount":"update",L1&&(o="nested-update"),typeof t==="function"&&t(a,o,m,p)}function oi(a){var{type:o,memoizedProps:p,stateNode:m}=a;try{N(a,Q$,m,o,p,a)}catch(t){ha(a,a.return,t)}}function i4(a,o,p){try{N(a,K$,a.stateNode,a.type,p,o,a)}catch(m){ha(a,a.return,m)}}function pi(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ht(a.type)||a.tag===4}function l4(a){a:for(;;){for(;a.sibling===null;){if(a.return===null||pi(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Ht(a.type))continue a;if(a.flags&2)continue a;if(a.child===null||a.tag===4)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function c4(a,o,p){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?(f8(p),(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(a,o)):(f8(p),o=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,o.appendChild(a),p=p._reactRootContainer,p!==null&&p!==void 0||o.onclick!==null||(o.onclick=Cm));else if(m!==4&&(m===27&&Ht(a.type)&&(p=a.stateNode,o=null),a=a.child,a!==null))for(c4(a,o,p),a=a.sibling;a!==null;)c4(a,o,p),a=a.sibling}function n5(a,o,p){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?p.insertBefore(a,o):p.appendChild(a);else if(m!==4&&(m===27&&Ht(a.type)&&(p=a.stateNode),a=a.child,a!==null))for(n5(a,o,p),a=a.sibling;a!==null;)n5(a,o,p),a=a.sibling}function a$(a){for(var o,p=a.return;p!==null;){if(pi(p)){o=p;break}p=p.return}if(o==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(o.tag){case 27:o=o.stateNode,p=l4(a),n5(a,p,o);break;case 5:p=o.stateNode,o.flags&32&&(w8(p),o.flags&=-33),o=l4(a),n5(a,o,p);break;case 3:case 4:o=o.stateNode.containerInfo,p=l4(a),c4(a,p,o);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function mi(a){var{stateNode:o,memoizedProps:p}=a;try{N(a,P$,a.type,p,o,a)}catch(m){ha(a,a.return,m)}}function ti(a,o){return o.tag===31?(o=o.memoizedState,a.memoizedState!==null&&o===null):o.tag===13?(a=a.memoizedState,o=o.memoizedState,a!==null&&a.dehydrated!==null&&(o===null||o.dehydrated===null)):o.tag===3?a.memoizedState.isDehydrated&&(o.flags&256)===0:!1}function o$(a,o){if(a=a.containerInfo,l6=lb,a=G7(a),Db(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else a:{p=(p=a.ownerDocument)&&p.defaultView||window;var m=p.getSelection&&p.getSelection();if(m&&m.rangeCount!==0){p=m.anchorNode;var{anchorOffset:t,focusNode:r}=m;m=m.focusOffset;try{p.nodeType,r.nodeType}catch(u){p=null;break a}var v=0,b=-1,w=-1,f=0,Y=0,X=a,z=null;o:for(;;){for(var q;;){if(X!==p||t!==0&&X.nodeType!==3||(b=v+t),X!==r||m!==0&&X.nodeType!==3||(w=v+m),X.nodeType===3&&(v+=X.nodeValue.length),(q=X.firstChild)===null)break;z=X,X=q}for(;;){if(X===a)break o;if(z===p&&++f===t&&(b=v),z===r&&++Y===m&&(w=v),(q=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=q}p=b===-1||w===-1?null:{start:b,end:w}}else p=null}p=p||{start:0,end:0}}else p=null;c6={focusedElem:a,selectionRange:p},lb=!1;for(go=o;go!==null;)if(o=go,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,go=a;else for(;go!==null;){switch(a=o=go,p=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(a=a.updateQueue,a=a!==null?a.events:null,a!==null))for(p=0;p<a.length;p++)t=a[p],t.ref.impl=t.nextImpl;break;case 11:case 15:break;case 1:(t&1024)!==0&&p!==null&&jz(a,p);break;case 3:if((t&1024)!==0){if(a=a.stateNode.containerInfo,p=a.nodeType,p===9)y4(a);else if(p===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":y4(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&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(a=o.sibling,a!==null){a.return=o.return,go=a;break}go=o.return}}function ri(a,o,p){var m=Zp(),t=cm(),r=$m(),v=Jm(),b=p.flags;switch(p.tag){case 0:case 11:case 15:_m(a,p),b&4&&Ef(p,Up|Sp);break;case 1:if(_m(a,p),b&4)if(a=p.stateNode,o===null)p.type.defaultProps||"ref"in p.memoizedProps||u0||(a.props!==p.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.",L(p)||"instance"),a.state!==p.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.",L(p)||"instance")),Zm(p)?(Xm(),N(p,kw,p,a),Ym()):N(p,kw,p,a);else{var w=Gr(p.type,o.memoizedProps);o=o.memoizedState,p.type.defaultProps||"ref"in p.memoizedProps||u0||(a.props!==p.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.",L(p)||"instance"),a.state!==p.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.",L(p)||"instance")),Zm(p)?(Xm(),N(p,Dl,p,a,w,o,a.__reactInternalSnapshotBeforeUpdate),Ym()):N(p,Dl,p,a,w,o,a.__reactInternalSnapshotBeforeUpdate)}b&64&&sf(p),b&512&&Fv(p,p.return);break;case 3:if(o=Tm(),_m(a,p),b&64&&(b=p.updateQueue,b!==null)){if(w=null,p.child!==null)switch(p.child.tag){case 27:case 5:w=p.child.stateNode;break;case 1:w=p.child.stateNode}try{N(p,e7,b,w)}catch(Y){ha(p,p.return,Y)}}a.effectDuration+=Z5(o);break;case 27:o===null&&b&4&&mi(p);case 26:case 5:if(_m(a,p),o===null){if(b&4)oi(p);else if(b&64){a=p.type,o=p.memoizedProps,w=p.stateNode;try{N(p,B$,w,a,o,p)}catch(Y){ha(p,p.return,Y)}}}b&512&&Fv(p,p.return);break;case 12:if(b&4){b=Tm(),_m(a,p),a=p.stateNode,a.effectDuration+=Kv(b);try{N(p,ai,p,o,ht,a.effectDuration)}catch(Y){ha(p,p.return,Y)}}else _m(a,p);break;case 31:_m(a,p),b&4&&wi(a,p);break;case 13:_m(a,p),b&4&&fi(a,p),b&64&&(a=p.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(b=i$.bind(null,p),F$(a,b))));break;case 22:if(b=p.memoizedState!==null||rt,!b){o=o!==null&&o.memoizedState!==null||Ko,w=rt;var f=Ko;rt=b,(Ko=o)&&!f?(qm(a,p,(p.subtreeFlags&8772)!==0),(p.mode&_a)!==la&&0<=ba&&0<=fa&&0.05<fa-ba&&w5(p,ba,fa)):_m(a,p),rt=w,Ko=f}break;case 30:break;default:_m(a,p)}(p.mode&_a)!==la&&0<=ba&&0<=fa&&((zo||0.05<wo)&&im(p,ba,fa,wo,ro),p.alternate===null&&p.return!==null&&p.return.alternate!==null&&0.05<fa-ba&&(ti(p.return.alternate,p.return)||fm(p,ba,fa,"Mount"))),Gp(m),zm(t),ro=r,zo=v}function vi(a){var o=a.alternate;o!==null&&(a.alternate=null,vi(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&Fb(o)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function um(a,o,p){for(p=p.child;p!==null;)bi(a,o,p),p=p.sibling}function bi(a,o,p){if(xo&&typeof xo.onCommitFiberUnmount==="function")try{xo.onCommitFiberUnmount(d0,p)}catch(f){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",f))}var m=Zp(),t=cm(),r=$m(),v=Jm();switch(p.tag){case 26:Ko||Gm(p,o),um(a,o,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(a=p.stateNode,a.parentNode.removeChild(a));break;case 27:Ko||Gm(p,o);var b=Ho,w=lp;Ht(p.type)&&(Ho=p.stateNode,lp=!1),um(a,o,p),N(p,uv,p.stateNode),Ho=b,lp=w;break;case 5:Ko||Gm(p,o);case 6:if(b=Ho,w=lp,Ho=null,um(a,o,p),Ho=b,lp=w,Ho!==null)if(lp)try{N(p,U$,Ho,p.stateNode)}catch(f){ha(p,o,f)}else try{N(p,W$,Ho,p.stateNode)}catch(f){ha(p,o,f)}break;case 18:Ho!==null&&(lp?(a=Ho,i8(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,p.stateNode),Z0(a)):i8(Ho,p.stateNode));break;case 4:b=Ho,w=lp,Ho=p.stateNode.containerInfo,lp=!0,um(a,o,p),Ho=b,lp=w;break;case 0:case 11:case 14:case 15:i0(pp,p,o),Ko||w4(p,o,Up),um(a,o,p);break;case 1:Ko||(Gm(p,o),b=p.stateNode,typeof b.componentWillUnmount==="function"&&ef(p,o,b)),um(a,o,p);break;case 21:um(a,o,p);break;case 22:Ko=(b=Ko)||p.memoizedState!==null,um(a,o,p),Ko=b;break;default:um(a,o,p)}(p.mode&_a)!==la&&0<=ba&&0<=fa&&(zo||0.05<wo)&&im(p,ba,fa,wo,ro),Gp(m),zm(t),ro=r,zo=v}function wi(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{N(o,C$,a)}catch(p){ha(o,o.return,p)}}}function fi(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{N(o,I$,a)}catch(p){ha(o,o.return,p)}}function p$(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new N9),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new N9),o;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function u5(a,o){var p=p$(a);o.forEach(function(m){if(!p.has(m)){if(p.add(m),Um)if(x0!==null&&V0!==null)Pv(V0,x0);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var t=l$.bind(null,a,m);m.then(t,t)}})}function fp(a,o){var p=o.deletions;if(p!==null)for(var m=0;m<p.length;m++){var t=a,r=o,v=p[m],b=Zp(),w=r;a:for(;w!==null;){switch(w.tag){case 27:if(Ht(w.type)){Ho=w.stateNode,lp=!1;break a}break;case 5:Ho=w.stateNode,lp=!1;break a;case 3:case 4:Ho=w.stateNode.containerInfo,lp=!0;break a}w=w.return}if(Ho===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");bi(t,r,v),Ho=null,lp=!1,(v.mode&_a)!==la&&0<=ba&&0<=fa&&0.05<fa-ba&&fm(v,ba,fa,"Unmount"),Gp(b),t=v,r=t.alternate,r!==null&&(r.return=null),t.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)ii(o,a),o=o.sibling}function ii(a,o){var p=Zp(),m=cm(),t=$m(),r=Jm(),v=a.alternate,b=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:fp(o,a),ip(a),b&4&&(i0(pp|Sp,a,a.return),hv(pp|Sp,a),w4(a,a.return,Up|Sp));break;case 1:if(fp(o,a),ip(a),b&512&&(Ko||v===null||Gm(v,v.return)),b&64&&rt&&(b=a.updateQueue,b!==null&&(v=b.callbacks,v!==null))){var w=b.shared.hiddenCallbacks;b.shared.hiddenCallbacks=w===null?v:w.concat(v)}break;case 26:if(w=rm,fp(o,a),ip(a),b&512&&(Ko||v===null||Gm(v,v.return)),b&4){var f=v!==null?v.memoizedState:null;if(b=a.memoizedState,v===null)if(b===null)if(a.stateNode===null){a:{b=a.type,v=a.memoizedProps,w=w.ownerDocument||w;o:switch(b){case"title":if(f=w.getElementsByTagName("title")[0],!f||f[ev]||f[To]||f.namespaceURI===B0||f.hasAttribute("itemprop"))f=w.createElement(b),w.head.insertBefore(f,w.querySelector("head > title"));Ao(f,b,v),f[To]=a,No(f),b=f;break a;case"link":var Y=q8("link","href",w).get(b+(v.href||""));if(Y){for(var X=0;X<Y.length;X++)if(f=Y[X],f.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&f.getAttribute("rel")===(v.rel==null?null:v.rel)&&f.getAttribute("title")===(v.title==null?null:v.title)&&f.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){Y.splice(X,1);break o}}f=w.createElement(b),Ao(f,b,v),w.head.appendChild(f);break;case"meta":if(Y=q8("meta","content",w).get(b+(v.content||""))){for(X=0;X<Y.length;X++)if(f=Y[X],sa(v.content,"content"),f.getAttribute("content")===(v.content==null?null:""+v.content)&&f.getAttribute("name")===(v.name==null?null:v.name)&&f.getAttribute("property")===(v.property==null?null:v.property)&&f.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&f.getAttribute("charset")===(v.charSet==null?null:v.charSet)){Y.splice(X,1);break o}}f=w.createElement(b),Ao(f,b,v),w.head.appendChild(f);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+b+'". This is a bug in React.')}f[To]=a,No(f),b=f}a.stateNode=b}else d8(w,a.type,a.stateNode);else a.stateNode=_8(w,b,a.memoizedProps);else f!==b?(f===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):f.count--,b===null?d8(w,a.type,a.stateNode):_8(w,b,a.memoizedProps)):b===null&&a.stateNode!==null&&i4(a,a.memoizedProps,v.memoizedProps)}break;case 27:fp(o,a),ip(a),b&512&&(Ko||v===null||Gm(v,v.return)),v!==null&&b&4&&i4(a,a.memoizedProps,v.memoizedProps);break;case 5:if(fp(o,a),ip(a),b&512&&(Ko||v===null||Gm(v,v.return)),a.flags&32){w=a.stateNode;try{N(a,w8,w)}catch(E){ha(a,a.return,E)}}b&4&&a.stateNode!=null&&(w=a.memoizedProps,i4(a,w,v!==null?v.memoizedProps:w)),b&1024&&(uw=!0,a.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(fp(o,a),ip(a),b&4){if(a.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.");b=a.memoizedProps,v=v!==null?v.memoizedProps:b,w=a.stateNode;try{N(a,H$,w,v,b)}catch(E){ha(a,a.return,E)}}break;case 3:if(w=Tm(),wb=null,f=rm,rm=a1(o.containerInfo),fp(o,a),rm=f,ip(a),b&4&&v!==null&&v.memoizedState.isDehydrated)try{N(a,g$,o.containerInfo)}catch(E){ha(a,a.return,E)}uw&&(uw=!1,li(a)),o.effectDuration+=Z5(w);break;case 4:b=rm,rm=a1(a.stateNode.containerInfo),fp(o,a),ip(a),rm=b;break;case 12:b=Tm(),fp(o,a),ip(a),a.stateNode.effectDuration+=Kv(b);break;case 31:fp(o,a),ip(a),b&4&&(b=a.updateQueue,b!==null&&(a.updateQueue=null,u5(a,b)));break;case 13:fp(o,a),ip(a),a.child.flags&8192&&a.memoizedState!==null!==(v!==null&&v.memoizedState!==null)&&(x1=ho()),b&4&&(b=a.updateQueue,b!==null&&(a.updateQueue=null,u5(a,b)));break;case 22:w=a.memoizedState!==null;var z=v!==null&&v.memoizedState!==null,q=rt,u=Ko;if(rt=q||w,Ko=u||z,fp(o,a),Ko=u,rt=q,z&&!w&&!q&&!u&&(a.mode&_a)!==la&&0<=ba&&0<=fa&&0.05<fa-ba&&w5(a,ba,fa),ip(a),b&8192)a:for(o=a.stateNode,o._visibility=w?o._visibility&~w2:o._visibility|w2,!w||v===null||z||rt||Ko||(_r(a),(a.mode&_a)!==la&&0<=ba&&0<=fa&&0.05<fa-ba&&fm(a,ba,fa,"Disconnect")),v=null,o=a;;){if(o.tag===5||o.tag===26){if(v===null){z=v=o;try{f=z.stateNode,w?N(z,O$,f):N(z,k$,z.stateNode,z.memoizedProps)}catch(E){ha(z,z.return,E)}}}else if(o.tag===6){if(v===null){z=o;try{Y=z.stateNode,w?N(z,L$,Y):N(z,N$,Y,z.memoizedProps)}catch(E){ha(z,z.return,E)}}}else if(o.tag===18){if(v===null){z=o;try{X=z.stateNode,w?N(z,R$,X):N(z,y$,z.stateNode)}catch(E){ha(z,z.return,E)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break a;for(;o.sibling===null;){if(o.return===null||o.return===a)break a;v===o&&(v=null),o=o.return}v===o&&(v=null),o.sibling.return=o.return,o=o.sibling}b&4&&(b=a.updateQueue,b!==null&&(v=b.retryQueue,v!==null&&(b.retryQueue=null,u5(a,v))));break;case 19:fp(o,a),ip(a),b&4&&(b=a.updateQueue,b!==null&&(a.updateQueue=null,u5(a,b)));break;case 30:break;case 21:break;default:fp(o,a),ip(a)}(a.mode&_a)!==la&&0<=ba&&0<=fa&&((zo||0.05<wo)&&im(a,ba,fa,wo,ro),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<fa-ba&&(ti(a.return.alternate,a.return)||fm(a,ba,fa,"Mount"))),Gp(p),zm(m),ro=t,zo=r}function ip(a){var o=a.flags;if(o&2){try{N(a,a$,a)}catch(p){ha(a,a.return,p)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function li(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;li(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function _m(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)ri(a,o.alternate,o),o=o.sibling}function ci(a){var o=Zp(),p=cm(),m=$m(),t=Jm();switch(a.tag){case 0:case 11:case 14:case 15:w4(a,a.return,Up),_r(a);break;case 1:Gm(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount==="function"&&ef(a,a.return,r),_r(a);break;case 27:N(a,uv,a.stateNode);case 26:case 5:Gm(a,a.return),_r(a);break;case 22:a.memoizedState===null&&_r(a);break;case 30:_r(a);break;default:_r(a)}(a.mode&_a)!==la&&0<=ba&&0<=fa&&(zo||0.05<wo)&&im(a,ba,fa,wo,ro),Gp(o),zm(p),ro=m,zo=t}function _r(a){for(a=a.child;a!==null;)ci(a),a=a.sibling}function zi(a,o,p,m){var t=Zp(),r=cm(),v=$m(),b=Jm(),w=p.flags;switch(p.tag){case 0:case 11:case 15:qm(a,p,m),Ef(p,Up);break;case 1:if(qm(a,p,m),o=p.stateNode,typeof o.componentDidMount==="function"&&N(p,kw,p,o),o=p.updateQueue,o!==null){a=p.stateNode;try{N(p,gz,o,a)}catch(f){ha(p,p.return,f)}}m&&w&64&&sf(p),Fv(p,p.return);break;case 27:mi(p);case 26:case 5:qm(a,p,m),m&&o===null&&w&4&&oi(p),Fv(p,p.return);break;case 12:if(m&&w&4){w=Tm(),qm(a,p,m),m=p.stateNode,m.effectDuration+=Kv(w);try{N(p,ai,p,o,ht,m.effectDuration)}catch(f){ha(p,p.return,f)}}else qm(a,p,m);break;case 31:qm(a,p,m),m&&w&4&&wi(a,p);break;case 13:qm(a,p,m),m&&w&4&&fi(a,p);break;case 22:p.memoizedState===null&&qm(a,p,m),Fv(p,p.return);break;case 30:break;default:qm(a,p,m)}(p.mode&_a)!==la&&0<=ba&&0<=fa&&(zo||0.05<wo)&&im(p,ba,fa,wo,ro),Gp(t),zm(r),ro=v,zo=b}function qm(a,o,p){p=p&&(o.subtreeFlags&8772)!==0;for(o=o.child;o!==null;)zi(a,o.alternate,o,p),o=o.sibling}function z4(a,o){var p=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(p=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==p&&(a!=null&&Jr(a),p!=null&&Bv(p))}function $4(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(Jr(o),a!=null&&Bv(a))}function ep(a,o,p,m,t){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(o=o.child;o!==null;){var r=o.sibling;$i(a,o,p,m,r!==null?r.actualStartTime:t),o=r}}function $i(a,o,p,m,t){var r=Zp(),v=cm(),b=$m(),w=Jm(),f=yt,Y=o.flags;switch(o.tag){case 0:case 11:case 15:(o.mode&_a)!==la&&0<o.actualStartTime&&(o.flags&1)!==0&&f5(o,o.actualStartTime,t,Oo,p),ep(a,o,p,m,t),Y&2048&&jf(o,mp|Sp);break;case 1:(o.mode&_a)!==la&&0<o.actualStartTime&&((o.flags&128)!==0?jb(o,o.actualStartTime,t,[]):(o.flags&1)!==0&&f5(o,o.actualStartTime,t,Oo,p)),ep(a,o,p,m,t);break;case 3:var X=Tm(),z=Oo;Oo=o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)===0,ep(a,o,p,m,t),Oo=z,Y&2048&&(p=null,o.alternate!==null&&(p=o.alternate.memoizedState.cache),m=o.memoizedState.cache,m!==p&&(Jr(m),p!=null&&Bv(p))),a.passiveEffectDuration+=Z5(X);break;case 12:if(Y&2048){Y=Tm(),ep(a,o,p,m,t),a=o.stateNode,a.passiveEffectDuration+=Kv(Y);try{N(o,ez,o,o.alternate,ht,a.passiveEffectDuration)}catch(q){ha(o,o.return,q)}}else ep(a,o,p,m,t);break;case 31:Y=Oo,X=o.alternate!==null?o.alternate.memoizedState:null,z=o.memoizedState,X!==null&&z===null?(z=o.deletions,z!==null&&0<z.length&&z[0].tag===18?(Oo=!1,X=X.hydrationErrors,X!==null&&jb(o,o.actualStartTime,t,X)):Oo=!0):Oo=!1,ep(a,o,p,m,t),Oo=Y;break;case 13:Y=Oo,X=o.alternate!==null?o.alternate.memoizedState:null,z=o.memoizedState,X===null||X.dehydrated===null||z!==null&&z.dehydrated!==null?Oo=!1:(z=o.deletions,z!==null&&0<z.length&&z[0].tag===18?(Oo=!1,X=X.hydrationErrors,X!==null&&jb(o,o.actualStartTime,t,X)):Oo=!0),ep(a,o,p,m,t),Oo=Y;break;case 23:break;case 22:z=o.stateNode,X=o.alternate,o.memoizedState!==null?z._visibility&Dm?ep(a,o,p,m,t):gv(a,o,p,m,t):z._visibility&Dm?ep(a,o,p,m,t):(z._visibility|=Dm,l0(a,o,p,m,(o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child),t),(o.mode&_a)===la||Oo||(a=o.actualStartTime,0<=a&&0.05<t-a&&w5(o,a,t),0<=ba&&0<=fa&&0.05<fa-ba&&w5(o,ba,fa))),Y&2048&&z4(X,o);break;case 24:ep(a,o,p,m,t),Y&2048&&$4(o.alternate,o);break;default:ep(a,o,p,m,t)}if((o.mode&_a)!==la){if(a=!Oo&&o.alternate===null&&o.return!==null&&o.return.alternate!==null)p=o.actualStartTime,0<=p&&0.05<t-p&&fm(o,p,t,"Mount");0<=ba&&0<=fa&&((zo||0.05<wo)&&im(o,ba,fa,wo,ro),a&&0.05<fa-ba&&fm(o,ba,fa,"Mount"))}Gp(r),zm(v),ro=b,zo=w,yt=f}function l0(a,o,p,m,t,r){t=t&&((o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child));for(o=o.child;o!==null;){var v=o.sibling;Ji(a,o,p,m,t,v!==null?v.actualStartTime:r),o=v}}function Ji(a,o,p,m,t,r){var v=Zp(),b=cm(),w=$m(),f=Jm(),Y=yt;t&&(o.mode&_a)!==la&&0<o.actualStartTime&&(o.flags&1)!==0&&f5(o,o.actualStartTime,r,Oo,p);var X=o.flags;switch(o.tag){case 0:case 11:case 15:l0(a,o,p,m,t,r),jf(o,mp);break;case 23:break;case 22:var z=o.stateNode;o.memoizedState!==null?z._visibility&Dm?l0(a,o,p,m,t,r):gv(a,o,p,m,r):(z._visibility|=Dm,l0(a,o,p,m,t,r)),t&&X&2048&&z4(o.alternate,o);break;case 24:l0(a,o,p,m,t,r),t&&X&2048&&$4(o.alternate,o);break;default:l0(a,o,p,m,t,r)}(o.mode&_a)!==la&&0<=ba&&0<=fa&&(zo||0.05<wo)&&im(o,ba,fa,wo,ro),Gp(v),zm(b),ro=w,zo=f,yt=Y}function gv(a,o,p,m,t){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(var r=o.child;r!==null;){o=r.sibling;var v=a,b=p,w=m,f=o!==null?o.actualStartTime:t,Y=yt;(r.mode&_a)!==la&&0<r.actualStartTime&&(r.flags&1)!==0&&f5(r,r.actualStartTime,f,Oo,b);var X=r.flags;switch(r.tag){case 22:gv(v,r,b,w,f),X&2048&&z4(r.alternate,r);break;case 24:gv(v,r,b,w,f),X&2048&&$4(r.alternate,r);break;default:gv(v,r,b,w,f)}yt=Y,r=o}}function c0(a,o,p){if(a.subtreeFlags&U2)for(a=a.child;a!==null;)Yi(a,o,p),a=a.sibling}function Yi(a,o,p){switch(a.tag){case 26:c0(a,o,p),a.flags&U2&&a.memoizedState!==null&&S$(p,rm,a.memoizedState,a.memoizedProps);break;case 5:c0(a,o,p);break;case 3:case 4:var m=rm;rm=a1(a.stateNode.containerInfo),c0(a,o,p),rm=m;break;case 22:a.memoizedState===null&&(m=a.alternate,m!==null&&m.memoizedState!==null?(m=U2,U2=16777216,c0(a,o,p),U2=m):c0(a,o,p));break;default:c0(a,o,p)}}function Xi(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function Cv(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var p=0;p<o.length;p++){var m=o[p],t=Zp();go=m,_i(m,a),(m.mode&_a)!==la&&0<=ba&&0<=fa&&0.05<fa-ba&&fm(m,ba,fa,"Unmount"),Gp(t)}Xi(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Zi(a),a=a.sibling}function Zi(a){var o=Zp(),p=cm(),m=$m(),t=Jm();switch(a.tag){case 0:case 11:case 15:Cv(a),a.flags&2048&&f4(a,a.return,mp|Sp);break;case 3:var r=Tm();Cv(a),a.stateNode.passiveEffectDuration+=Z5(r);break;case 12:r=Tm(),Cv(a),a.stateNode.passiveEffectDuration+=Kv(r);break;case 22:r=a.stateNode,a.memoizedState!==null&&r._visibility&Dm&&(a.return===null||a.return.tag!==13)?(r._visibility&=~Dm,x5(a),(a.mode&_a)!==la&&0<=ba&&0<=fa&&0.05<fa-ba&&fm(a,ba,fa,"Disconnect")):Cv(a);break;default:Cv(a)}(a.mode&_a)!==la&&0<=ba&&0<=fa&&(zo||0.05<wo)&&im(a,ba,fa,wo,ro),Gp(o),zm(p),zo=t,ro=m}function x5(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var p=0;p<o.length;p++){var m=o[p],t=Zp();go=m,_i(m,a),(m.mode&_a)!==la&&0<=ba&&0<=fa&&0.05<fa-ba&&fm(m,ba,fa,"Unmount"),Gp(t)}Xi(a)}for(a=a.child;a!==null;)Gi(a),a=a.sibling}function Gi(a){var o=Zp(),p=cm(),m=$m(),t=Jm();switch(a.tag){case 0:case 11:case 15:f4(a,a.return,mp),x5(a);break;case 22:var r=a.stateNode;r._visibility&Dm&&(r._visibility&=~Dm,x5(a));break;default:x5(a)}(a.mode&_a)!==la&&0<=ba&&0<=fa&&(zo||0.05<wo)&&im(a,ba,fa,wo,ro),Gp(o),zm(p),zo=t,ro=m}function _i(a,o){for(;go!==null;){var p=go,m=p,t=o,r=Zp(),v=cm(),b=$m(),w=Jm();switch(m.tag){case 0:case 11:case 15:f4(m,t,mp);break;case 23:case 22:m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(t=m.memoizedState.cachePool.pool,t!=null&&Jr(t));break;case 24:Bv(m.memoizedState.cache)}if((m.mode&_a)!==la&&0<=ba&&0<=fa&&(zo||0.05<wo)&&im(m,ba,fa,wo,ro),Gp(r),zm(v),zo=w,ro=b,m=p.child,m!==null)m.return=p,go=m;else a:for(p=a;go!==null;){if(m=go,r=m.sibling,v=m.return,vi(m),m===p){go=null;break a}if(r!==null){r.return=v,go=r;break a}go=v}}}function m$(){BY.forEach(function(a){return a()})}function qi(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||Q.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function qp(a){if((ya&Lo)!==Co&&da!==0)return da&-da;var o=Q.T;return o!==null?(o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(a),d4()):h6()}function di(){if(zp===0)if((da&536870912)===0||Ra){var a=c1;c1<<=1,(c1&3932160)===0&&(c1=262144),zp=a}else zp=536870912;return a=Wp.current,a!==null&&(a.flags|=32),zp}function co(a,o,p){if(j0&&console.error("useInsertionEffect must not schedule updates."),m6&&(j1=!0),a===ua&&(Ca===Mr||Ca===hr)||a.cancelPendingCommit!==null)$0(a,0),Bt(a,da,zp,!1);if(zv(a,p),(ya&Lo)!==Co&&a===ua){if(Hm)switch(o.tag){case 0:case 11:case 15:a=Qa&&L(Qa)||"Unknown",D9.has(a)||(D9.add(a),o=L(o)||"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",o,a,a));break;case 1:V9||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),V9=!0)}}else Um&&N6(a,o,p),z$(o),a===ua&&((ya&Lo)===Co&&(nt|=p),fo===At&&Bt(a,da,zp,!1)),dm(a)}function Qi(a,o,p){if((ya&(Lo|Rp))!==Co)throw Error("Should not already be working.");if(da!==0&&Qa!==null){var m=Qa,t=ho();switch(Pl){case L2:case Mr:var r=$2;ea&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Suspended",r,t,hp,void 0,"primary-light")):console.timeStamp("Suspended",r,t,hp,void 0,"primary-light"));break;case hr:r=$2,ea&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Action",r,t,hp,void 0,"primary-light")):console.timeStamp("Action",r,t,hp,void 0,"primary-light"));break;default:ea&&(m=t-$2,3>m||console.timeStamp("Blocked",$2,t,hp,void 0,5>m?"primary-light":10>m?"primary":100>m?"primary-dark":"error"))}}r=(p=!p&&(o&127)===0&&(o&a.expiredLanes)===0||cv(a,o))?r$(a,o):Y4(a,o,!0);var v=p;do{if(r===vt){D0&&!p&&Bt(a,o,0,!1),o=Ca,$2=qo(),Pl=o;break}else{if(m=ho(),t=a.current.alternate,v&&!t$(t)){Yp(o),t=Fo,r=m,!ea||r<=t||(Yo?Yo.run(console.timeStamp.bind(console,"Teared Render",t,r,Ua,Ha,"error")):console.timeStamp("Teared Render",t,r,Ua,Ha,"error")),qr(o,m),r=Y4(a,o,!1),v=!1;continue}if(r===Nr){if(v=o,a.errorRecoveryDisabledLanes&v)var b=0;else b=a.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){Yp(o),sb(Fo,m,o,Yo),qr(o,m),o=b;a:{m=a,r=v,v=k2;var w=m.current.memoizedState.isDehydrated;if(w&&($0(m,b).flags|=256),b=Y4(m,b,!1),b!==Nr){if(Dw&&!w){m.errorRecoveryDisabledLanes|=r,nt|=r,r=At;break a}m=tp,tp=v,m!==null&&(tp===null?tp=m:tp.push.apply(tp,m))}r=b}if(v=!1,r!==Nr)continue;else m=ho()}}if(r===O2){Yp(o),sb(Fo,m,o,Yo),qr(o,m),$0(a,0),Bt(a,o,0,!0);break}a:{switch(p=a,r){case vt:case O2:throw Error("Root did not complete. This is a bug in React.");case At:if((o&4194048)!==o)break;case T1:Yp(o),d7(Fo,m,o,Yo),qr(o,m),t=o,(t&127)!==0?U1=m:(t&4194048)!==0&&(R1=m),Bt(p,o,zp,!Tt);break a;case Nr:tp=null;break;case A1:case M9:break;default:throw Error("Unknown root exit status.")}if(Q.actQueue!==null)X4(p,t,o,tp,N2,u1,zp,nt,Fr,r,null,null,Fo,m);else{if((o&62914560)===o&&(v=x1+g9-ho(),10<v)){if(Bt(p,o,zp,!Tt),e2(p,0,!0)!==0)break a;vm=o,p.timeoutHandle=mc(Bi.bind(null,p,t,tp,N2,u1,o,zp,nt,Fr,Tt,r,"Throttled",Fo,m),v);break a}Bi(p,t,tp,N2,u1,o,zp,nt,Fr,Tt,r,null,Fo,m)}}}break}while(1);dm(a)}function Bi(a,o,p,m,t,r,v,b,w,f,Y,X,z,q){a.timeoutHandle=Ar;var u=o.subtreeFlags,E=null;if(u&8192||(u&16785408)===16785408){if(E={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cm},Yi(o,r,E),u=(r&62914560)===r?x1-ho():(r&4194048)===r?F9-ho():0,u=n$(E,u),u!==null){vm=r,a.cancelPendingCommit=u(X4.bind(null,a,o,r,p,m,t,v,b,w,Y,E,E.waitingForViewTransition?"Waiting for the previous Animation":0<E.count?0<E.imgCount?"Suspended on CSS and Images":"Suspended on CSS":E.imgCount===1?"Suspended on an Image":0<E.imgCount?"Suspended on Images":null,z,q)),Bt(a,r,v,!f);return}}X4(a,o,r,p,m,t,v,b,w,Y,E,X,z,q)}function t$(a){for(var o=a;;){var p=o.tag;if((p===0||p===11||p===15)&&o.flags&16384&&(p=o.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var m=0;m<p.length;m++){var t=p[m],r=t.getSnapshot;t=t.value;try{if(!ap(r(),t))return!1}catch(v){return!1}}if(p=o.child,o.subtreeFlags&16384&&p!==null)p.return=o,o=p;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Bt(a,o,p,m){o&=~Ew,o&=~nt,a.suspendedLanes|=o,a.pingedLanes&=~o,m&&(a.warmLanes|=o),m=a.expirationTimes;for(var t=o;0<t;){var r=31-jo(t),v=1<<r;m[r]=-1,t&=~v}p!==0&&L6(a,p,o)}function z0(){return(ya&(Lo|Rp))===Co?(Av(0,!1),!1):!0}function J4(){if(Qa!==null){if(Ca===cp)var a=Qa.return;else a=Qa,J5(),H3(a),I0=null,Q2=0,a=Qa;for(;a!==null;)Df(a.alternate,a),a=a.return;Qa=null}}function qr(a,o){(a&127)!==0&&(Ft=o),(a&4194048)!==0&&(km=o),(a&62914560)!==0&&(Cl=o),(a&2080374784)!==0&&(Il=o)}function $0(a,o){ea&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",Ha,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",Ha,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",Ha,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",Ha,"primary-light"));var p=Fo;if(Fo=qo(),da!==0&&0<p){if(Yp(da),fo===A1||fo===At)d7(p,Fo,o,Yo);else{var m=Fo,t=Yo;if(ea&&!(m<=p)){var r=(o&738197653)===o?"tertiary-dark":"primary-dark",v=(o&536870912)===o?"Prewarm":(o&201326741)===o?"Interrupted Hydration":"Interrupted Render";t?t.run(console.timeStamp.bind(console,v,p,m,Ua,Ha,r)):console.timeStamp(v,p,m,Ua,Ha,r)}}qr(da,Fo)}if(p=Yo,Yo=null,(o&127)!==0){Yo=l2,t=0<=ym&&ym<Ft?Ft:ym,m=0<=Hr&&Hr<Ft?Ft:Hr,r=0<=m?m:0<=t?t:Fo,0<=U1?(Yp(2),Q7(U1,r,o,p)):(O1&127)!==0&&(Yp(2),dv(Ft,r,ot)),p=t;var b=m,w=c2,f=0<F0,Y=gt===i2,X=gt===W1;if(t=Fo,m=l2,r=Uw,v=Rw,ea){if(Ua="Blocking",0<p?p>t&&(p=t):p=t,0<b?b>p&&(b=p):b=p,w!==null&&p>b){var z=f?"secondary-light":"warning";m?m.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+w,b,p,Ua,Ha,z)):console.timeStamp(f?"Consecutive":"Event: "+w,b,p,Ua,Ha,z)}t>p&&(b=Y?"error":(o&738197653)===o?"tertiary-light":"primary-light",Y=X?"Promise Resolved":Y?"Cascading Update":5<t-p?"Update Blocked":"Update",X=[],v!=null&&X.push(["Component name",v]),r!=null&&X.push(["Method name",r]),p={start:p,end:t,detail:{devtools:{properties:X,track:Ua,trackGroup:Ha,color:b}}},m?m.run(performance.measure.bind(performance,Y,p)):performance.measure(Y,p))}ym=-1.1,gt=0,Rw=Uw=null,U1=-1.1,F0=Hr,Hr=-1.1,Ft=qo()}if((o&4194048)!==0&&(Yo=z2,t=0<=at&&at<km?km:at,p=0<=Ap&&Ap<km?km:Ap,m=0<=Ct&&Ct<km?km:Ct,r=0<=m?m:0<=p?p:Fo,0<=R1?(Yp(256),Q7(R1,r,o,Yo)):(O1&4194048)!==0&&(Yp(256),dv(km,r,ot)),X=m,b=Wr,w=0<It,f=Ow===W1,r=Fo,m=z2,v=Fl,Y=gl,ea&&(Ua="Transition",0<p?p>r&&(p=r):p=r,0<t?t>p&&(t=p):t=p,0<X?X>t&&(X=t):X=t,t>X&&b!==null&&(z=w?"secondary-light":"warning",m?m.run(console.timeStamp.bind(console,w?"Consecutive":"Event: "+b,X,t,Ua,Ha,z)):console.timeStamp(w?"Consecutive":"Event: "+b,X,t,Ua,Ha,z)),p>t&&(m?m.run(console.timeStamp.bind(console,"Action",t,p,Ua,Ha,"primary-dark")):console.timeStamp("Action",t,p,Ua,Ha,"primary-dark")),r>p&&(t=f?"Promise Resolved":5<r-p?"Update Blocked":"Update",X=[],Y!=null&&X.push(["Component name",Y]),v!=null&&X.push(["Method name",v]),p={start:p,end:r,detail:{devtools:{properties:X,track:Ua,trackGroup:Ha,color:"primary-light"}}},m?m.run(performance.measure.bind(performance,t,p)):performance.measure(t,p))),Ap=at=-1.1,Ow=0,R1=-1.1,It=Ct,Ct=-1.1,km=qo()),(o&62914560)!==0&&(O1&62914560)!==0&&(Yp(4194304),dv(Cl,Fo,ot)),(o&2080374784)!==0&&(O1&2080374784)!==0&&(Yp(268435456),dv(Il,Fo,ot)),p=a.timeoutHandle,p!==Ar&&(a.timeoutHandle=Ar,FY(p)),p=a.cancelPendingCommit,p!==null&&(a.cancelPendingCommit=null,p()),vm=0,J4(),ua=a,Qa=p=Im(a.current,null),da=o,Ca=cp,Op=null,Tt=!1,D0=cv(a,o),Dw=!1,fo=vt,Fr=zp=Ew=nt=St=0,tp=k2=null,u1=!1,(o&8)!==0&&(o|=o&32),m=a.entangledLanes,m!==0)for(a=a.entanglements,m&=o;0<m;)t=31-jo(m),r=1<<t,o|=a[t],m&=~r;return Mm=o,i5(),a=Ll(),1000<a-Ol&&(Q.recentlyCreatedOwnerStacks=0,Ol=a),mm.discardPendingWarnings(),p}function Ki(a,o){za=null,Q.H=W2,Q.getCurrentStack=null,Hm=!1,Bp=null,o===C0||o===N1?(o=n7(),Ca=L2):o===Nw?(o=n7(),Ca=h9):Ca=o===Sw?Vw:o!==null&&typeof o==="object"&&typeof o.then==="function"?y2:S1,Op=o;var p=Qa;p===null?(fo=O2,I5(a,Xp(o,a.current))):p.mode&_a&&z3(p)}function Hi(){var a=Wp.current;return a===null?!0:(da&4194048)===da?Tp===null?!0:!1:(da&62914560)===da||(da&536870912)!==0?a===Tp:!1}function Wi(){var a=Q.H;return Q.H=W2,a===null?W2:a}function Ui(){var a=Q.A;return Q.A=QY,a}function V5(a){Yo===null&&(Yo=a._debugTask==null?null:a._debugTask)}function D5(){fo=At,Tt||(da&4194048)!==da&&Wp.current!==null||(D0=!0),(St&134217727)===0&&(nt&134217727)===0||ua===null||Bt(ua,da,zp,!1)}function Y4(a,o,p){var m=ya;ya|=Lo;var t=Wi(),r=Ui();if(ua!==a||da!==o){if(Um){var v=a.memoizedUpdaters;0<v.size&&(Pv(a,da),v.clear()),M6(a,o)}N2=null,$0(a,o)}o=!1,v=fo;a:do try{if(Ca!==cp&&Qa!==null){var b=Qa,w=Op;switch(Ca){case Vw:J4(),v=T1;break a;case L2:case Mr:case hr:case y2:Wp.current===null&&(o=!0);var f=Ca;if(Ca=cp,Op=null,J0(a,b,w,f),p&&D0){v=vt;break a}break;default:f=Ca,Ca=cp,Op=null,J0(a,b,w,f)}}Ri(),v=fo;break}catch(Y){Ki(a,Y)}while(1);return o&&a.shellSuspendCounter++,J5(),ya=m,Q.H=t,Q.A=r,Qa===null&&(ua=null,da=0,i5()),v}function Ri(){for(;Qa!==null;)Oi(Qa)}function r$(a,o){var p=ya;ya|=Lo;var m=Wi(),t=Ui();if(ua!==a||da!==o){if(Um){var r=a.memoizedUpdaters;0<r.size&&(Pv(a,da),r.clear()),M6(a,o)}N2=null,V1=ho()+C9,$0(a,o)}else D0=cv(a,o);a:do try{if(Ca!==cp&&Qa!==null)o:switch(o=Qa,r=Op,Ca){case S1:Ca=cp,Op=null,J0(a,o,r,S1);break;case Mr:case hr:if(T7(r)){Ca=cp,Op=null,Li(o);break}o=function(){Ca!==Mr&&Ca!==hr||ua!==a||(Ca=n1),dm(a)},r.then(o,o);break a;case L2:Ca=n1;break a;case h9:Ca=xw;break a;case n1:T7(r)?(Ca=cp,Op=null,Li(o)):(Ca=cp,Op=null,J0(a,o,r,n1));break;case xw:var v=null;switch(Qa.tag){case 26:v=Qa.memoizedState;case 5:case 27:var b=Qa;if(v?Q8(v):b.stateNode.complete){Ca=cp,Op=null;var w=b.sibling;if(w!==null)Qa=w;else{var f=b.return;f!==null?(Qa=f,E5(f)):Qa=null}break o}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Ca=cp,Op=null,J0(a,o,r,xw);break;case y2:Ca=cp,Op=null,J0(a,o,r,y2);break;case Vw:J4(),fo=T1;break a;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Q.actQueue!==null?Ri():v$();break}catch(Y){Ki(a,Y)}while(1);if(J5(),Q.H=m,Q.A=t,ya=p,Qa!==null)return vt;return ua=null,da=0,i5(),fo}function v$(){for(;Qa!==null&&!tJ();)Oi(Qa)}function Oi(a){var o=a.alternate;(a.mode&_a)!==la?(c3(a),o=N(a,v4,o,a,Mm),z3(a)):o=N(a,v4,o,a,Mm),a.memoizedProps=a.pendingProps,o===null?E5(a):Qa=o}function Li(a){var o=N(a,b$,a);a.memoizedProps=a.pendingProps,o===null?E5(a):Qa=o}function b$(a){var o=a.alternate,p=(a.mode&_a)!==la;switch(p&&c3(a),a.tag){case 15:case 0:o=Af(o,a,a.pendingProps,a.type,void 0,da);break;case 11:o=Af(o,a,a.pendingProps,a.type.render,a.ref,da);break;case 5:H3(a);default:Df(o,a),a=Qa=R7(a,Mm),o=v4(o,a,Mm)}return p&&z3(a),o}function J0(a,o,p,m){J5(),H3(o),I0=null,Q2=0;var t=o.return;try{if(nz(a,t,o,p,da)){fo=O2,I5(a,Xp(p,a.current)),Qa=null;return}}catch(r){if(t!==null)throw Qa=t,r;fo=O2,I5(a,Xp(p,a.current)),Qa=null;return}if(o.flags&32768){if(Ra||m===S1)a=!0;else if(D0||(da&536870912)!==0)a=!1;else if(Tt=a=!0,m===Mr||m===hr||m===L2||m===y2)m=Wp.current,m!==null&&m.tag===13&&(m.flags|=16384);yi(o,a)}else E5(o)}function E5(a){var o=a;do{if((o.flags&32768)!==0){yi(o,Tt);return}var p=o.alternate;if(a=o.return,c3(o),p=N(o,Vz,p,o,Mm),(o.mode&_a)!==la&&g7(o),p!==null){Qa=p;return}if(o=o.sibling,o!==null){Qa=o;return}Qa=o=a}while(o!==null);fo===vt&&(fo=M9)}function yi(a,o){do{var p=Dz(a.alternate,a);if(p!==null){p.flags&=32767,Qa=p;return}if((a.mode&_a)!==la){g7(a),p=a.actualDuration;for(var m=a.child;m!==null;)p+=m.actualDuration,m=m.sibling;a.actualDuration=p}if(p=a.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!o&&(a=a.sibling,a!==null)){Qa=a;return}Qa=a=p}while(a!==null);fo=T1,Qa=null}function X4(a,o,p,m,t,r,v,b,w,f,Y,X,z,q){a.cancelPendingCommit=null;do Iv();while(Wo!==xt);if(mm.flushLegacyContextWarning(),mm.flushPendingUnsafeLifecycleWarnings(),(ya&(Lo|Rp))!==Co)throw Error("Should not already be working.");if(Yp(p),f===Nr?sb(z,q,p,Yo):m!==null?yz(z,q,p,m,o!==null&&o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)!==0,Yo):Lz(z,q,p,Yo),o!==null){if(p===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),o===a.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(r=o.lanes|o.childLanes,r|=Qw,iz(a,p,r,v,b,w),a===ua&&(Qa=ua=null,da=0),E0=o,Vt=a,vm=p,ew=r,o6=t,n9=m,a6=q,u9=X,bm=D1,x9=null,o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,c$(q0,function(){return I2=window.event,bm===D1&&(bm=sw),Fi(),null})):(a.callbackNode=null,a.callbackPriority=0),em=null,ht=qo(),X!==null&&kz(q,ht,X,Yo),m=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||m){m=Q.T,Q.T=null,t=Fa.p,Fa.p=Kp,v=ya,ya|=Rp;try{o$(a,o,p)}finally{ya=v,Fa.p=t,Q.T=m}}Wo=P9,ki(),Ni(),Mi()}}function ki(){if(Wo===P9){Wo=xt;var a=Vt,o=E0,p=vm,m=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||m){m=Q.T,Q.T=null;var t=Fa.p;Fa.p=Kp;var r=ya;ya|=Rp;try{x0=p,V0=a,G5(),ii(o,a),V0=x0=null,p=c6;var v=G7(a.containerInfo),b=p.focusedElem,w=p.selectionRange;if(v!==b&&b&&b.ownerDocument&&Z7(b.ownerDocument.documentElement,b)){if(w!==null&&Db(b)){var{start:f,end:Y}=w;if(Y===void 0&&(Y=f),"selectionStart"in b)b.selectionStart=f,b.selectionEnd=Math.min(Y,b.value.length);else{var X=b.ownerDocument||document,z=X&&X.defaultView||window;if(z.getSelection){var q=z.getSelection(),u=b.textContent.length,E=Math.min(w.start,u),Da=w.end===void 0?E:Math.min(w.end,u);!q.extend&&E>Da&&(v=Da,Da=E,E=v);var La=X7(b,E),c=X7(b,Da);if(La&&c&&(q.rangeCount!==1||q.anchorNode!==La.node||q.anchorOffset!==La.offset||q.focusNode!==c.node||q.focusOffset!==c.offset)){var $=X.createRange();$.setStart(La.node,La.offset),q.removeAllRanges(),E>Da?(q.addRange($),q.extend(c.node,c.offset)):($.setEnd(c.node,c.offset),q.addRange($))}}}}X=[];for(q=b;q=q.parentNode;)q.nodeType===1&&X.push({element:q,left:q.scrollLeft,top:q.scrollTop});typeof b.focus==="function"&&b.focus();for(b=0;b<X.length;b++){var J=X[b];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}lb=!!l6,c6=l6=null}finally{ya=r,Fa.p=t,Q.T=m}}a.current=o,Wo=A9}}function Ni(){if(Wo===A9){Wo=xt;var a=x9;if(a!==null){ht=qo();var o=sm,p=ht;!ea||p<=o||(ot?ot.run(console.timeStamp.bind(console,a,o,p,Ua,Ha,"secondary-light")):console.timeStamp(a,o,p,Ua,Ha,"secondary-light"))}a=Vt,o=E0,p=vm;var m=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||m){m=Q.T,Q.T=null;var t=Fa.p;Fa.p=Kp;var r=ya;ya|=Rp;try{x0=p,V0=a,G5(),ri(a,o.alternate,o),V0=x0=null}finally{ya=r,Fa.p=t,Q.T=m}}a=a6,o=u9,sm=qo(),a=o===null?a:ht,o=sm,p=bm===jw,m=Yo,em!==null?B7(a,o,em,!1,m):!ea||o<=a||(m?m.run(console.timeStamp.bind(console,p?"Commit Interrupted View Transition":"Commit",a,o,Ua,Ha,p?"error":"secondary-dark")):console.timeStamp(p?"Commit Interrupted View Transition":"Commit",a,o,Ua,Ha,p?"error":"secondary-dark")),Wo=T9}}function Mi(){if(Wo===S9||Wo===T9){if(Wo===S9){var a=sm;sm=qo();var o=sm,p=bm===jw;!ea||o<=a||(ot?ot.run(console.timeStamp.bind(console,p?"Interrupted View Transition":"Starting Animation",a,o,Ua,Ha,p?"error":"secondary-light")):console.timeStamp(p?"Interrupted View Transition":"Starting Animation",a,o,Ua,Ha,p?" error":"secondary-light")),bm!==jw&&(bm=I9)}Wo=xt,rJ(),a=Vt;var m=E0;o=vm,p=n9;var t=m.actualDuration!==0||(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0;t?Wo=E1:(Wo=xt,E0=Vt=null,hi(a,a.pendingLanes),gr=0,h2=null);var r=a.pendingLanes;if(r===0&&(ut=null),t||Pi(a),r=hb(o),m=m.stateNode,xo&&typeof xo.onCommitFiberRoot==="function")try{var v=(m.current.flags&128)===128;switch(r){case Kp:var b=ow;break;case om:b=pw;break;case Rm:b=q0;break;case $1:b=mw;break;default:b=q0}xo.onCommitFiberRoot(d0,m,b,v)}catch(X){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",X))}if(Um&&a.memoizedUpdaters.clear(),m$(),p!==null){v=Q.T,b=Fa.p,Fa.p=Kp,Q.T=null;try{var w=a.onRecoverableError;for(m=0;m<p.length;m++){var f=p[m],Y=w$(f.stack);N(f.source,w,f.value,Y)}}finally{Q.T=v,Fa.p=b}}(vm&3)!==0&&Iv(),dm(a),r=a.pendingLanes,(o&261930)!==0&&(r&42)!==0?(y1=!0,a===p6?M2++:(M2=0,p6=a)):M2=0,t||qr(o,sm),Av(0,!1)}}function w$(a){return a={componentStack:a},Object.defineProperty(a,"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.')}}),a}function hi(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,Bv(o)))}function Iv(){return ki(),Ni(),Mi(),Fi()}function Fi(){if(Wo!==E1)return!1;var a=Vt,o=ew;ew=0;var p=hb(vm),m=Rm===0||Rm>p?Rm:p;p=Q.T;var t=Fa.p;try{Fa.p=m,Q.T=null;var r=o6;o6=null,m=Vt;var v=vm;if(Wo=xt,E0=Vt=null,vm=0,(ya&(Lo|Rp))!==Co)throw Error("Cannot flush passive effects while already rendering.");Yp(v),m6=!0,j1=!1;var b=0;if(em=null,b=ho(),bm===I9)dv(sm,b,ot);else{var w=sm,f=b,Y=bm===sw;!ea||f<=w||(Yo?Yo.run(console.timeStamp.bind(console,Y?"Waiting for Paint":"Waiting",w,f,Ua,Ha,"secondary-light")):console.timeStamp(Y?"Waiting for Paint":"Waiting",w,f,Ua,Ha,"secondary-light"))}w=ya,ya|=Rp;var X=m.current;G5(),Zi(X);var z=m.current;X=a6,G5(),$i(m,z,v,r,X),Pi(m),ya=w;var q=ho();if(z=b,X=Yo,em!==null?B7(z,q,em,!0,X):!ea||q<=z||(X?X.run(console.timeStamp.bind(console,"Remaining Effects",z,q,Ua,Ha,"secondary-dark")):console.timeStamp("Remaining Effects",z,q,Ua,Ha,"secondary-dark")),qr(v,q),Av(0,!1),j1?m===h2?gr++:(gr=0,h2=m):gr=0,j1=m6=!1,xo&&typeof xo.onPostCommitFiberRoot==="function")try{xo.onPostCommitFiberRoot(d0,m)}catch(E){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",E))}var u=m.current.stateNode;return u.effectDuration=0,u.passiveEffectDuration=0,!0}finally{Fa.p=t,Q.T=p,hi(a,o)}}function gi(a,o,p){o=Xp(p,o),C7(o),o=D3(a.stateNode,o,2),a=_t(a,o,2),a!==null&&(zv(a,2),dm(a))}function ha(a,o,p){if(j0=!1,a.tag===3)gi(a,a,p);else{for(;o!==null;){if(o.tag===3){gi(o,a,p);return}if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError==="function"||typeof m.componentDidCatch==="function"&&(ut===null||!ut.has(m))){a=Xp(p,a),C7(a),p=E3(2),m=_t(o,p,2),m!==null&&(j3(p,m,o,a),zv(m,2),dm(m));return}}o=o.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.
|
|
138
|
-
|
|
139
|
-
Error message:
|
|
140
|
-
|
|
141
|
-
%s`,p)}}function Z4(a,o,p){var m=a.pingCache;if(m===null){m=a.pingCache=new KY;var t=new Set;m.set(o,t)}else t=m.get(o),t===void 0&&(t=new Set,m.set(o,t));t.has(p)||(Dw=!0,t.add(p),m=f$.bind(null,a,o,p),Um&&Pv(a,p),o.then(m,m))}function f$(a,o,p){var m=a.pingCache;m!==null&&m.delete(o),a.pingedLanes|=a.suspendedLanes&p,a.warmLanes&=~p,(p&127)!==0?0>ym&&(Ft=ym=qo(),l2=H1("Promise Resolved"),gt=W1):(p&4194048)!==0&&0>Ap&&(km=Ap=qo(),z2=H1("Promise Resolved"),Ow=W1),qi()&&Q.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
142
|
-
|
|
143
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
144
|
-
|
|
145
|
-
act(() => {
|
|
146
|
-
/* finish loading suspended data */
|
|
147
|
-
});
|
|
148
|
-
/* assert on the output */
|
|
149
|
-
|
|
150
|
-
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`),ua===a&&(da&p)===p&&(fo===At||fo===A1&&(da&62914560)===da&&ho()-x1<g9?(ya&Lo)===Co&&$0(a,0):Ew|=p,Fr===da&&(Fr=0)),dm(a)}function Ci(a,o){o===0&&(o=kb()),a=uo(a,o),a!==null&&(zv(a,o),dm(a))}function i$(a){var o=a.memoizedState,p=0;o!==null&&(p=o.retryLane),Ci(a,p)}function l$(a,o){var p=0;switch(a.tag){case 31:case 13:var{stateNode:m,memoizedState:t}=a;t!==null&&(p=t.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}m!==null&&m.delete(o),Ci(a,p)}function G4(a,o,p){if((o.subtreeFlags&67117056)!==0)for(o=o.child;o!==null;){var m=a,t=o,r=t.type===w1;r=p||r,t.tag!==22?t.flags&67108864?r&&N(t,Ii,m,t):G4(m,t,r):t.memoizedState===null&&(r&&t.flags&8192?N(t,Ii,m,t):t.subtreeFlags&67108864&&N(t,G4,m,t,r)),o=o.sibling}}function Ii(a,o){bo(!0);try{ci(o),Gi(o),zi(a,o.alternate,o,!1),Ji(a,o,0,null,!1,0)}finally{bo(!1)}}function Pi(a){var o=!0;a.current.mode&(Vo|pm)||(o=!1),G4(a,a.current,o)}function Ai(a){if((ya&Lo)===Co){var o=a.tag;if(o===3||o===1||o===0||o===11||o===14||o===15){if(o=L(a)||"ReactComponent",s1!==null){if(s1.has(o))return;s1.add(o)}else s1=new Set([o]);N(a,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 Pv(a,o){Um&&a.memoizedUpdaters.forEach(function(p){N6(a,p,o)})}function c$(a,o){var p=Q.actQueue;return p!==null?(p.push(o),UY):aw(a,o)}function z$(a){qi()&&Q.actQueue===null&&N(a,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
151
|
-
|
|
152
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
153
|
-
|
|
154
|
-
act(() => {
|
|
155
|
-
/* fire events that update state */
|
|
156
|
-
});
|
|
157
|
-
/* assert on the output */
|
|
158
|
-
|
|
159
|
-
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`,L(a))})}function dm(a){a!==s0&&a.next===null&&(s0===null?e1=s0=a:s0=s0.next=a),ab=!0,Q.actQueue!==null?r6||(r6=!0,ui()):t6||(t6=!0,ui())}function Av(a,o){if(!v6&&ab){v6=!0;do{var p=!1;for(var m=e1;m!==null;){if(!o)if(a!==0){var t=m.pendingLanes;if(t===0)var r=0;else{var{suspendedLanes:v,pingedLanes:b}=m;r=(1<<31-jo(42|a)+1)-1,r&=t&~(v&~b),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(p=!0,ni(m,r))}else r=da,r=e2(m,m===ua?r:0,m.cancelPendingCommit!==null||m.timeoutHandle!==Ar),(r&3)===0||cv(m,r)||(p=!0,ni(m,r));m=m.next}}while(p);v6=!1}}function $$(){I2=window.event,_4()}function _4(){ab=r6=t6=!1;var a=0;Dt!==0&&q$()&&(a=Dt);for(var o=ho(),p=null,m=e1;m!==null;){var t=m.next,r=Ti(m,o);if(r===0)m.next=null,p===null?e1=t:p.next=t,t===null&&(s0=p);else if(p=m,a!==0||(r&3)!==0)ab=!0;m=t}Wo!==xt&&Wo!==E1||Av(a,!1),Dt!==0&&(Dt=0)}function Ti(a,o){for(var{suspendedLanes:p,pingedLanes:m,expirationTimes:t}=a,r=a.pendingLanes&-62914561;0<r;){var v=31-jo(r),b=1<<v,w=t[v];if(w===-1){if((b&p)===0||(b&m)!==0)t[v]=fz(b,o)}else w<=o&&(a.expiredLanes|=b);r&=~b}if(o=ua,p=da,p=e2(a,a===o?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Ar),m=a.callbackNode,p===0||a===o&&(Ca===Mr||Ca===hr)||a.cancelPendingCommit!==null)return m!==null&&q4(m),a.callbackNode=null,a.callbackPriority=0;if((p&3)===0||cv(a,p)){if(o=p&-p,o!==a.callbackPriority||Q.actQueue!==null&&m!==b6)q4(m);else return o;switch(hb(p)){case Kp:case om:p=pw;break;case Rm:p=q0;break;case $1:p=mw;break;default:p=q0}return m=Si.bind(null,a),Q.actQueue!==null?(Q.actQueue.push(m),p=b6):p=aw(p,m),a.callbackPriority=o,a.callbackNode=p,o}return m!==null&&q4(m),a.callbackPriority=2,a.callbackNode=null,2}function Si(a,o){if(y1=L1=!1,I2=window.event,Wo!==xt&&Wo!==E1)return a.callbackNode=null,a.callbackPriority=0,null;var p=a.callbackNode;if(bm===D1&&(bm=sw),Iv()&&a.callbackNode!==p)return null;var m=da;if(m=e2(a,a===ua?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Ar),m===0)return null;return Qi(a,m,o),Ti(a,ho()),a.callbackNode!=null&&a.callbackNode===p?Si.bind(null,a):null}function ni(a,o){if(Iv())return null;L1=y1,y1=!1,Qi(a,o,!0)}function q4(a){a!==b6&&a!==null&&mJ(a)}function ui(){Q.actQueue!==null&&Q.actQueue.push(function(){return _4(),null}),gY(function(){(ya&(Lo|Rp))!==Co?aw(ow,$$):_4()})}function d4(){if(Dt===0){var a=Ur;a===0&&(a=l1,l1<<=1,(l1&261888)===0&&(l1=256)),Dt=a}return Dt}function xi(a){if(a==null||typeof a==="symbol"||typeof a==="boolean")return null;if(typeof a==="function")return a;return sa(a,"action"),Gv(""+a)}function Vi(a,o){var p=o.ownerDocument.createElement("input");return p.name=o.name,p.value=o.value,a.id&&p.setAttribute("form",a.id),o.parentNode.insertBefore(p,o),a=new FormData(a),p.parentNode.removeChild(p),a}function J$(a,o,p,m,t){if(o==="submit"&&p&&p.stateNode===t){var r=xi((t[so]||null).action),v=m.submitter;v&&(o=(o=v[so]||null)?xi(o.formAction):v.getAttribute("formAction"),o!==null&&(r=o,v=null));var b=new G1("action","action",null,m,t);a.push({event:b,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Dt!==0){var w=v?Vi(t,v):new FormData(t),f={pending:!0,data:w,method:t.method,action:r};Object.freeze(f),A3(p,f,null,w)}}else typeof r==="function"&&(b.preventDefault(),w=v?Vi(t,v):new FormData(t),f={pending:!0,data:w,method:t.method,action:r},Object.freeze(f),A3(p,f,r,w))},currentTarget:t}]})}}function j5(a,o,p){a.currentTarget=p;try{o(a)}catch(m){Gw(m)}a.currentTarget=null}function Di(a,o){o=(o&4)!==0;for(var p=0;p<a.length;p++){var m=a[p];a:{var t=void 0,r=m.event;if(m=m.listeners,o)for(var v=m.length-1;0<=v;v--){var b=m[v],w=b.instance,f=b.currentTarget;if(b=b.listener,w!==t&&r.isPropagationStopped())break a;w!==null?N(w,j5,r,b,f):j5(r,b,f),t=w}else for(v=0;v<m.length;v++){if(b=m[v],w=b.instance,f=b.currentTarget,b=b.listener,w!==t&&r.isPropagationStopped())break a;w!==null?N(w,j5,r,b,f):j5(r,b,f),t=w}}}}function Oa(a,o){w6.has(a)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',a);var p=o[tw];p===void 0&&(p=o[tw]=new Set);var m=a+"__bubble";p.has(m)||(Ei(o,a,2,!1),p.add(m))}function Q4(a,o,p){w6.has(a)&&!o&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',a);var m=0;o&&(m|=4),Ei(p,a,m,o)}function B4(a){if(!a[ob]){a[ob]=!0,u8.forEach(function(p){p!=="selectionchange"&&(w6.has(p)||Q4(p,!1,a),Q4(p,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[ob]||(o[ob]=!0,Q4("selectionchange",!1,o))}}function Ei(a,o,p,m){switch(R8(o)){case Kp:var t=D$;break;case om:t=E$;break;default:t=I4}p=t.bind(null,o,p,a),t=void 0,!fw||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(t=!0),m?t!==void 0?a.addEventListener(o,p,{capture:!0,passive:t}):a.addEventListener(o,p,!0):t!==void 0?a.addEventListener(o,p,{passive:t}):a.addEventListener(o,p,!1)}function K4(a,o,p,m,t){var r=m;if((o&1)===0&&(o&2)===0&&m!==null)a:for(;;){if(m===null)return;var v=m.tag;if(v===3||v===4){var b=m.stateNode.containerInfo;if(b===t)break;if(v===4)for(v=m.return;v!==null;){var w=v.tag;if((w===3||w===4)&&v.stateNode.containerInfo===t)return;v=v.return}for(;b!==null;){if(v=jr(b),v===null)return;if(w=v.tag,w===5||w===6||w===26||w===27){m=r=v;continue a}b=b.parentNode}}m=m.return}v7(function(){var f=r,Y=xb(p),X=[];a:{var z=Rl.get(a);if(z!==void 0){var q=G1,u=a;switch(a){case"keypress":if(r5(p)===0)break a;case"keydown":case"keyup":q=SJ;break;case"focusin":u="focus",q=zw;break;case"focusout":u="blur",q=zw;break;case"beforeblur":case"afterblur":q=zw;break;case"click":if(p.button===2)break a;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=Jl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=yJ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=xJ;break;case Kl:case Hl:case Wl:q=MJ;break;case Ul:q=DJ;break;case"scroll":case"scrollend":q=OJ;break;case"wheel":q=jJ;break;case"copy":case"cut":case"paste":q=FJ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Xl;break;case"toggle":case"beforetoggle":q=eJ}var E=(o&4)!==0,Da=!E&&(a==="scroll"||a==="scrollend"),La=E?z!==null?z+"Capture":null:z;E=[];for(var c=f,$;c!==null;){var J=c;if($=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||$===null||La===null||(J=_v(c,La),J!=null&&E.push(Tv(c,J,$))),Da)break;c=c.return}0<E.length&&(z=new q(z,u,null,p,Y),X.push({event:z,listeners:E}))}}if((o&7)===0){a:{if(z=a==="mouseover"||a==="pointerover",q=a==="mouseout"||a==="pointerout",z&&p!==a2&&(u=p.relatedTarget||p.fromElement)&&(jr(u)||u[Ot]))break a;if(q||z){if(z=Y.window===Y?Y:(z=Y.ownerDocument)?z.defaultView||z.parentWindow:window,q){if(u=p.relatedTarget||p.toElement,q=f,u=u?jr(u):null,u!==null&&(Da=Za(u),E=u.tag,u!==Da||E!==5&&E!==27&&E!==6))u=null}else q=null,u=f;if(q!==u){if(E=Jl,J="onMouseLeave",La="onMouseEnter",c="mouse",a==="pointerout"||a==="pointerover")E=Xl,J="onPointerLeave",La="onPointerEnter",c="pointer";if(Da=q==null?z:$v(q),$=u==null?z:$v(u),z=new E(J,c+"leave",q,p,Y),z.target=Da,z.relatedTarget=$,J=null,jr(Y)===f&&(E=new E(La,c+"enter",u,p,Y),E.target=$,E.relatedTarget=Da,J=E),Da=J,q&&u)o:{E=Y$,La=q,c=u,$=0;for(J=La;J;J=E(J))$++;J=0;for(var W=c;W;W=E(W))J++;for(;0<$-J;)La=E(La),$--;for(;0<J-$;)c=E(c),J--;for(;$--;){if(La===c||c!==null&&La===c.alternate){E=La;break o}La=E(La),c=E(c)}E=null}else E=null;q!==null&&ji(X,z,q,E,!1),u!==null&&Da!==null&&ji(X,Da,u,E,!0)}}}a:{if(z=f?$v(f):window,q=z.nodeName&&z.nodeName.toLowerCase(),q==="select"||q==="input"&&z.type==="file")var D=z7;else if(l7(z))if(Ql)D=Uz;else{D=Hz;var $a=Kz}else q=z.nodeName,!q||q.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?f&&Zv(f.elementType)&&(D=z7):D=Wz;if(D&&(D=D(a,f))){c7(X,D,p,Y);break a}$a&&$a(a,z,f),a==="focusout"&&f&&z.type==="number"&&f.memoizedProps.value!=null&&Pb(z,"number",z.value)}switch($a=f?$v(f):window,a){case"focusin":if(l7($a)||$a.contentEditable==="true")R0=$a,Jw=f,b2=null;break;case"focusout":b2=Jw=R0=null;break;case"mousedown":Yw=!0;break;case"contextmenu":case"mouseup":case"dragend":Yw=!1,_7(X,p,Y);break;case"selectionchange":if(mY)break;case"keydown":case"keyup":_7(X,p,Y)}var va;if($w)a:{switch(a){case"compositionstart":var oa="onCompositionStart";break a;case"compositionend":oa="onCompositionEnd";break a;case"compositionupdate":oa="onCompositionUpdate";break a}oa=void 0}else U0?f7(a,p)&&(oa="onCompositionEnd"):a==="keydown"&&p.keyCode===Zl&&(oa="onCompositionStart");if(oa&&(Gl&&p.locale!=="ko"&&(U0||oa!=="onCompositionStart"?oa==="onCompositionEnd"&&U0&&(va=b7()):(Lt=Y,iw=("value"in Lt)?Lt.value:Lt.textContent,U0=!0)),$a=s5(f,oa),0<$a.length&&(oa=new Yl(oa,a,null,p,Y),X.push({event:oa,listeners:$a}),va?oa.data=va:(va=i7(p),va!==null&&(oa.data=va)))),va=oY?qz(a,p):dz(a,p))oa=s5(f,"onBeforeInput"),0<oa.length&&($a=new CJ("onBeforeInput","beforeinput",null,p,Y),X.push({event:$a,listeners:oa}),$a.data=va);J$(X,a,f,p,Y)}Di(X,o)})}function Tv(a,o,p){return{instance:a,listener:o,currentTarget:p}}function s5(a,o){for(var p=o+"Capture",m=[];a!==null;){var t=a,r=t.stateNode;if(t=t.tag,t!==5&&t!==26&&t!==27||r===null||(t=_v(a,p),t!=null&&m.unshift(Tv(a,t,r)),t=_v(a,o),t!=null&&m.push(Tv(a,t,r))),a.tag===3)return m;a=a.return}return[]}function Y$(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a?a:null}function ji(a,o,p,m,t){for(var r=o._reactName,v=[];p!==null&&p!==m;){var b=p,w=b.alternate,f=b.stateNode;if(b=b.tag,w!==null&&w===m)break;b!==5&&b!==26&&b!==27||f===null||(w=f,t?(f=_v(p,r),f!=null&&v.unshift(Tv(p,f,w))):t||(f=_v(p,r),f!=null&&v.push(Tv(p,f,w)))),p=p.return}v.length!==0&&a.push({event:o,listeners:v})}function H4(a,o){Xz(a,o),a!=="input"&&a!=="textarea"&&a!=="select"||o==null||o.value!==null||zl||(zl=!0,a==="select"&&o.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.",a):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a));var p={registrationNameDependencies:dr,possibleRegistrationNames:rw};Zv(a)||typeof o.is==="string"||Gz(a,o,p),o.contentEditable&&!o.suppressContentEditableWarning&&o.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 Mo(a,o,p,m){o!==p&&(p=Kt(p),Kt(o)!==p&&(m[a]=o))}function X$(a,o,p){o.forEach(function(m){p[a8(m)]=m==="style"?U4(a):a.getAttribute(m)})}function Qm(a,o){o===!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.",a,a,a):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",a,typeof o)}function si(a,o){return a=a.namespaceURI===Y1||a.namespaceURI===B0?a.ownerDocument.createElementNS(a.namespaceURI,a.tagName):a.ownerDocument.createElement(a.tagName),a.innerHTML=o,a.innerHTML}function Kt(a){return $p(a)&&(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.",ko(a)),lv(a)),(typeof a==="string"?a:""+a).replace(RY,`
|
|
160
|
-
`).replace(OY,"")}function ei(a,o){return o=Kt(o),Kt(a)===o?!0:!1}function Sa(a,o,p,m,t,r){switch(p){case"children":if(typeof m==="string")t5(m,o,!1),o==="body"||o==="textarea"&&m===""||Xv(a,m);else if(typeof m==="number"||typeof m==="bigint")t5(""+m,o,!1),o!=="body"&&Xv(a,""+m);break;case"className":o5(a,"class",m);break;case"tabIndex":o5(a,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":o5(a,p,m);break;case"style":m7(a,m,r);break;case"data":if(o!=="object"){o5(a,"data",m);break}case"src":case"href":if(m===""&&(o!=="a"||p!=="href")){p==="src"?console.error('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.',p,p):console.error('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.',p,p),a.removeAttribute(p);break}if(m==null||typeof m==="function"||typeof m==="symbol"||typeof m==="boolean"){a.removeAttribute(p);break}sa(m,p),m=Gv(""+m),a.setAttribute(p,m);break;case"action":case"formAction":if(m!=null&&(o==="form"?p==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof m==="function"&&(t.encType==null&&t.method==null||tb||(tb=!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.")),t.target==null||mb||(mb=!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."))):o==="input"||o==="button"?p==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):o!=="input"||t.type==="submit"||t.type==="image"||pb?o!=="button"||t.type==null||t.type==="submit"||pb?typeof m==="function"&&(t.name==null||s9||(s9=!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.')),t.formEncType==null&&t.formMethod==null||tb||(tb=!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.")),t.formTarget==null||mb||(mb=!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."))):(pb=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(pb=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):p==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof m==="function"){a.setAttribute(p,"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 r==="function"&&(p==="formAction"?(o!=="input"&&Sa(a,o,"name",t.name,t,null),Sa(a,o,"formEncType",t.formEncType,t,null),Sa(a,o,"formMethod",t.formMethod,t,null),Sa(a,o,"formTarget",t.formTarget,t,null)):(Sa(a,o,"encType",t.encType,t,null),Sa(a,o,"method",t.method,t,null),Sa(a,o,"target",t.target,t,null)));if(m==null||typeof m==="symbol"||typeof m==="boolean"){a.removeAttribute(p);break}sa(m,p),m=Gv(""+m),a.setAttribute(p,m);break;case"onClick":m!=null&&(typeof m!=="function"&&Qm(p,m),a.onclick=Cm);break;case"onScroll":m!=null&&(typeof m!=="function"&&Qm(p,m),Oa("scroll",a));break;case"onScrollEnd":m!=null&&(typeof m!=="function"&&Qm(p,m),Oa("scrollend",a));break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!=="object"||!("__html"in m))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(p=m.__html,p!=null){if(t.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=p}}break;case"multiple":a.multiple=m&&typeof m!=="function"&&typeof m!=="symbol";break;case"muted":a.muted=m&&typeof m!=="function"&&typeof m!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m==="function"||typeof m==="boolean"||typeof m==="symbol"){a.removeAttribute("xlink:href");break}sa(m,p),p=Gv(""+m),a.setAttributeNS(Cr,"xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!=="function"&&typeof m!=="symbol"?(sa(m,p),a.setAttribute(p,""+m)):a.removeAttribute(p);break;case"inert":m!==""||rb[p]||(rb[p]=!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.",p));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":m&&typeof m!=="function"&&typeof m!=="symbol"?a.setAttribute(p,""):a.removeAttribute(p);break;case"capture":case"download":m===!0?a.setAttribute(p,""):m!==!1&&m!=null&&typeof m!=="function"&&typeof m!=="symbol"?(sa(m,p),a.setAttribute(p,m)):a.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&!isNaN(m)&&1<=m?(sa(m,p),a.setAttribute(p,m)):a.removeAttribute(p);break;case"rowSpan":case"start":m==null||typeof m==="function"||typeof m==="symbol"||isNaN(m)?a.removeAttribute(p):(sa(m,p),a.setAttribute(p,m));break;case"popover":Oa("beforetoggle",a),Oa("toggle",a),a5(a,"popover",m);break;case"xlinkActuate":gm(a,Cr,"xlink:actuate",m);break;case"xlinkArcrole":gm(a,Cr,"xlink:arcrole",m);break;case"xlinkRole":gm(a,Cr,"xlink:role",m);break;case"xlinkShow":gm(a,Cr,"xlink:show",m);break;case"xlinkTitle":gm(a,Cr,"xlink:title",m);break;case"xlinkType":gm(a,Cr,"xlink:type",m);break;case"xmlBase":gm(a,f6,"xml:base",m);break;case"xmlLang":gm(a,f6,"xml:lang",m);break;case"xmlSpace":gm(a,f6,"xml:space",m);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),a5(a,"is",m);break;case"innerText":case"textContent":break;case"popoverTarget":e9||m==null||typeof m!=="object"||(e9=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",m));default:!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N"?(p=t7(p),a5(a,p,m)):dr.hasOwnProperty(p)&&m!=null&&typeof m!=="function"&&Qm(p,m)}}function W4(a,o,p,m,t,r){switch(p){case"style":m7(a,m,r);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!=="object"||!("__html"in m))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(p=m.__html,p!=null){if(t.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=p}}break;case"children":typeof m==="string"?Xv(a,m):(typeof m==="number"||typeof m==="bigint")&&Xv(a,""+m);break;case"onScroll":m!=null&&(typeof m!=="function"&&Qm(p,m),Oa("scroll",a));break;case"onScrollEnd":m!=null&&(typeof m!=="function"&&Qm(p,m),Oa("scrollend",a));break;case"onClick":m!=null&&(typeof m!=="function"&&Qm(p,m),a.onclick=Cm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(dr.hasOwnProperty(p))m!=null&&typeof m!=="function"&&Qm(p,m);else a:{if(p[0]==="o"&&p[1]==="n"&&(t=p.endsWith("Capture"),o=p.slice(2,t?p.length-7:void 0),r=a[so]||null,r=r!=null?r[p]:null,typeof r==="function"&&a.removeEventListener(o,r,t),typeof m==="function")){typeof r!=="function"&&r!==null&&(p in a?a[p]=null:a.hasAttribute(p)&&a.removeAttribute(p)),a.addEventListener(o,m,t);break a}p in a?a[p]=m:m===!0?a.setAttribute(p,""):a5(a,p,m)}}}function Ao(a,o,p){switch(H4(o,p),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oa("error",a),Oa("load",a);var m=!1,t=!1,r;for(r in p)if(p.hasOwnProperty(r)){var v=p[r];if(v!=null)switch(r){case"src":m=!0;break;case"srcSet":t=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Sa(a,o,r,v,p,null)}}t&&Sa(a,o,"srcSet",p.srcSet,p,null),m&&Sa(a,o,"src",p.src,p,null);return;case"input":a0("input",p),Oa("invalid",a);var b=r=v=t=null,w=null,f=null;for(m in p)if(p.hasOwnProperty(m)){var Y=p[m];if(Y!=null)switch(m){case"name":t=Y;break;case"type":v=Y;break;case"checked":w=Y;break;case"defaultChecked":f=Y;break;case"value":r=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Sa(a,o,m,Y,p,null)}}P6(a,p),A6(a,r,b,w,f,v,t,!1);return;case"select":a0("select",p),Oa("invalid",a),m=v=r=null;for(t in p)if(p.hasOwnProperty(t)&&(b=p[t],b!=null))switch(t){case"value":r=b;break;case"defaultValue":v=b;break;case"multiple":m=b;default:Sa(a,o,t,b,p,null)}n6(a,p),o=r,p=v,a.multiple=!!m,o!=null?o0(a,!!m,o,!1):p!=null&&o0(a,!!m,p,!0);return;case"textarea":a0("textarea",p),Oa("invalid",a),r=t=m=null;for(v in p)if(p.hasOwnProperty(v)&&(b=p[v],b!=null))switch(v){case"value":m=b;break;case"defaultValue":t=b;break;case"children":r=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Sa(a,o,v,b,p,null)}u6(a,p),V6(a,m,t,r);return;case"option":T6(a,p);for(w in p)if(p.hasOwnProperty(w)&&(m=p[w],m!=null))switch(w){case"selected":a.selected=m&&typeof m!=="function"&&typeof m!=="symbol";break;default:Sa(a,o,w,m,p,null)}return;case"dialog":Oa("beforetoggle",a),Oa("toggle",a),Oa("cancel",a),Oa("close",a);break;case"iframe":case"object":Oa("load",a);break;case"video":case"audio":for(m=0;m<F2.length;m++)Oa(F2[m],a);break;case"image":Oa("error",a),Oa("load",a);break;case"details":Oa("toggle",a);break;case"embed":case"source":case"link":Oa("error",a),Oa("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(f in p)if(p.hasOwnProperty(f)&&(m=p[f],m!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Sa(a,o,f,m,p,null)}return;default:if(Zv(o)){for(Y in p)p.hasOwnProperty(Y)&&(m=p[Y],m!==void 0&&W4(a,o,Y,m,p,void 0));return}}for(b in p)p.hasOwnProperty(b)&&(m=p[b],m!=null&&Sa(a,o,b,m,p,null))}function Z$(a,o,p,m){switch(H4(o,m),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var t=null,r=null,v=null,b=null,w=null,f=null,Y=null;for(q in p){var X=p[q];if(p.hasOwnProperty(q)&&X!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":w=X;default:m.hasOwnProperty(q)||Sa(a,o,q,null,m,X)}}for(var z in m){var q=m[z];if(X=p[z],m.hasOwnProperty(z)&&(q!=null||X!=null))switch(z){case"type":r=q;break;case"name":t=q;break;case"checked":f=q;break;case"defaultChecked":Y=q;break;case"value":v=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:q!==X&&Sa(a,o,z,q,m,X)}}o=p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null,m=m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null,o||!m||j9||(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"),j9=!0),!o||m||E9||(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"),E9=!0),Ib(a,v,b,w,f,Y,r,t);return;case"select":q=v=b=z=null;for(r in p)if(w=p[r],p.hasOwnProperty(r)&&w!=null)switch(r){case"value":break;case"multiple":q=w;default:m.hasOwnProperty(r)||Sa(a,o,r,null,m,w)}for(t in m)if(r=m[t],w=p[t],m.hasOwnProperty(t)&&(r!=null||w!=null))switch(t){case"value":z=r;break;case"defaultValue":b=r;break;case"multiple":v=r;default:r!==w&&Sa(a,o,t,r,m,w)}m=b,o=v,p=q,z!=null?o0(a,!!o,z,!1):!!p!==!!o&&(m!=null?o0(a,!!o,m,!0):o0(a,!!o,o?[]:"",!1));return;case"textarea":q=z=null;for(b in p)if(t=p[b],p.hasOwnProperty(b)&&t!=null&&!m.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Sa(a,o,b,null,m,t)}for(v in m)if(t=m[v],r=p[v],m.hasOwnProperty(v)&&(t!=null||r!=null))switch(v){case"value":z=t;break;case"defaultValue":q=t;break;case"children":break;case"dangerouslySetInnerHTML":if(t!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:t!==r&&Sa(a,o,v,t,m,r)}x6(a,z,q);return;case"option":for(var u in p)if(z=p[u],p.hasOwnProperty(u)&&z!=null&&!m.hasOwnProperty(u))switch(u){case"selected":a.selected=!1;break;default:Sa(a,o,u,null,m,z)}for(w in m)if(z=m[w],q=p[w],m.hasOwnProperty(w)&&z!==q&&(z!=null||q!=null))switch(w){case"selected":a.selected=z&&typeof z!=="function"&&typeof z!=="symbol";break;default:Sa(a,o,w,z,m,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var E in p)z=p[E],p.hasOwnProperty(E)&&z!=null&&!m.hasOwnProperty(E)&&Sa(a,o,E,null,m,z);for(f in m)if(z=m[f],q=p[f],m.hasOwnProperty(f)&&z!==q&&(z!=null||q!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Sa(a,o,f,z,m,q)}return;default:if(Zv(o)){for(var Da in p)z=p[Da],p.hasOwnProperty(Da)&&z!==void 0&&!m.hasOwnProperty(Da)&&W4(a,o,Da,void 0,m,z);for(Y in m)z=m[Y],q=p[Y],!m.hasOwnProperty(Y)||z===q||z===void 0&&q===void 0||W4(a,o,Y,z,m,q);return}}for(var La in p)z=p[La],p.hasOwnProperty(La)&&z!=null&&!m.hasOwnProperty(La)&&Sa(a,o,La,null,m,z);for(X in m)z=m[X],q=p[X],!m.hasOwnProperty(X)||z===q||z==null&&q==null||Sa(a,o,X,z,m,q)}function a8(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function U4(a){var o={};a=a.style;for(var p=0;p<a.length;p++){var m=a[p];o[m]=a.getPropertyValue(m)}return o}function o8(a,o,p){if(o!=null&&typeof o!=="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 m,t=m="",r;for(r in o)if(o.hasOwnProperty(r)){var v=o[r];v!=null&&typeof v!=="boolean"&&v!==""&&(r.indexOf("--")===0?(Lb(v,r),m+=t+r+":"+(""+v).trim()):typeof v!=="number"||v===0||ll.has(r)?(Lb(v,r),m+=t+r.replace(vl,"-$1").toLowerCase().replace(bl,"-ms-")+":"+(""+v).trim()):m+=t+r.replace(vl,"-$1").toLowerCase().replace(bl,"-ms-")+":"+v+"px",t=";")}m=m||null,o=a.getAttribute("style"),o!==m&&(m=Kt(m),Kt(o)!==m&&(p.style=U4(a)))}}function Mp(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":return}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(sa(m,o),a===""+m)return}Mo(o,a,m,r)}function p8(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null){switch(typeof m){case"function":case"symbol":return}if(!m)return}else switch(typeof m){case"function":case"symbol":break;default:if(m)return}Mo(o,a,m,r)}function R4(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":return}else if(m!=null)switch(typeof m){case"function":case"symbol":break;default:if(sa(m,p),a===""+m)return}Mo(o,a,m,r)}function m8(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(m))return}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!isNaN(m)&&(sa(m,o),a===""+m))return}Mo(o,a,m,r)}function O4(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":return}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(sa(m,o),p=Gv(""+m),a===p)return}Mo(o,a,m,r)}function t8(a,o,p,m){for(var t={},r=new Set,v=a.attributes,b=0;b<v.length;b++)switch(v[b].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:r.add(v[b].name)}if(Zv(o)){for(var w in p)if(p.hasOwnProperty(w)){var f=p[w];if(f!=null){if(dr.hasOwnProperty(w))typeof f!=="function"&&Qm(w,f);else if(p.suppressHydrationWarning!==!0)switch(w){case"children":typeof f!=="string"&&typeof f!=="number"||Mo("children",a.textContent,f,t);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=a.innerHTML,f=f?f.__html:void 0,f!=null&&(f=si(a,f),Mo(w,v,f,t));continue;case"style":r.delete(w),o8(a,f,t);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(w.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",w);continue;case"className":r.delete("class"),v=g6(a,"class",f),Mo("className",v,f,t);continue;default:m.context===bt&&o!=="svg"&&o!=="math"?r.delete(w.toLowerCase()):r.delete(w),v=g6(a,w,f),Mo(w,v,f,t)}}}}else for(f in p)if(p.hasOwnProperty(f)&&(w=p[f],w!=null)){if(dr.hasOwnProperty(f))typeof w!=="function"&&Qm(f,w);else if(p.suppressHydrationWarning!==!0)switch(f){case"children":typeof w!=="string"&&typeof w!=="number"||Mo("children",a.textContent,w,t);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=a.innerHTML,w=w?w.__html:void 0,w!=null&&(w=si(a,w),v!==w&&(t[f]={__html:v}));continue;case"className":Mp(a,f,"class",w,r,t);continue;case"tabIndex":Mp(a,f,"tabindex",w,r,t);continue;case"style":r.delete(f),o8(a,w,t);continue;case"multiple":r.delete(f),Mo(f,a.multiple,w,t);continue;case"muted":r.delete(f),Mo(f,a.muted,w,t);continue;case"autoFocus":r.delete("autofocus"),Mo(f,a.autofocus,w,t);continue;case"data":if(o!=="object"){r.delete(f),v=a.getAttribute("data"),Mo(f,v,w,t);continue}case"src":case"href":if(!(w!==""||o==="a"&&f==="href"||o==="object"&&f==="data")){f==="src"?console.error('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.',f,f):console.error('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.',f,f);continue}O4(a,f,f,w,r,t);continue;case"action":case"formAction":if(v=a.getAttribute(f),typeof w==="function"){r.delete(f.toLowerCase()),f==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(v===LY){r.delete(f.toLowerCase()),Mo(f,"function",w,t);continue}O4(a,f,f.toLowerCase(),w,r,t);continue;case"xlinkHref":O4(a,f,"xlink:href",w,r,t);continue;case"contentEditable":R4(a,f,"contenteditable",w,r,t);continue;case"spellCheck":R4(a,f,"spellcheck",w,r,t);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":R4(a,f,f,w,r,t);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":p8(a,f,f.toLowerCase(),w,r,t);continue;case"capture":case"download":a:{b=a;var Y=v=f,X=t;if(r.delete(Y),b=b.getAttribute(Y),b===null)switch(typeof w){case"undefined":case"function":case"symbol":break a;default:if(w===!1)break a}else if(w!=null)switch(typeof w){case"function":case"symbol":break;case"boolean":if(w===!0&&b==="")break a;break;default:if(sa(w,v),b===""+w)break a}Mo(v,b,w,X)}continue;case"cols":case"rows":case"size":case"span":a:{if(b=a,Y=v=f,X=t,r.delete(Y),b=b.getAttribute(Y),b===null)switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":break a;default:if(isNaN(w)||1>w)break a}else if(w!=null)switch(typeof w){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(w)||1>w)&&(sa(w,v),b===""+w))break a}Mo(v,b,w,X)}continue;case"rowSpan":m8(a,f,"rowspan",w,r,t);continue;case"start":m8(a,f,f,w,r,t);continue;case"xHeight":Mp(a,f,"x-height",w,r,t);continue;case"xlinkActuate":Mp(a,f,"xlink:actuate",w,r,t);continue;case"xlinkArcrole":Mp(a,f,"xlink:arcrole",w,r,t);continue;case"xlinkRole":Mp(a,f,"xlink:role",w,r,t);continue;case"xlinkShow":Mp(a,f,"xlink:show",w,r,t);continue;case"xlinkTitle":Mp(a,f,"xlink:title",w,r,t);continue;case"xlinkType":Mp(a,f,"xlink:type",w,r,t);continue;case"xmlBase":Mp(a,f,"xml:base",w,r,t);continue;case"xmlLang":Mp(a,f,"xml:lang",w,r,t);continue;case"xmlSpace":Mp(a,f,"xml:space",w,r,t);continue;case"inert":w!==""||rb[f]||(rb[f]=!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.",f)),p8(a,f,f,w,r,t);continue;default:if(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N"){b=t7(f),v=!1,m.context===bt&&o!=="svg"&&o!=="math"?r.delete(b.toLowerCase()):(Y=f.toLowerCase(),Y=X1.hasOwnProperty(Y)?X1[Y]||null:null,Y!==null&&Y!==f&&(v=!0,r.delete(Y)),r.delete(b));a:if(Y=a,X=b,b=w,gb(X))if(Y.hasAttribute(X))Y=Y.getAttribute(X),sa(b,X),b=Y===""+b?b:Y;else{switch(typeof b){case"function":case"symbol":break a;case"boolean":if(Y=X.toLowerCase().slice(0,5),Y!=="data-"&&Y!=="aria-")break a}b=b===void 0?void 0:null}else b=void 0;v||Mo(f,b,w,t)}}}return 0<r.size&&p.suppressHydrationWarning!==!0&&X$(a,r,t),Object.keys(t).length===0?null:t}function G$(a,o){switch(a.length){case 0:return"";case 1:return a[0];case 2:return a[0]+" "+o+" "+a[1];default:return a.slice(0,-1).join(", ")+", "+o+" "+a[a.length-1]}}function r8(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _$(){if(typeof performance.getEntriesByType==="function"){for(var a=0,o=0,p=performance.getEntriesByType("resource"),m=0;m<p.length;m++){var t=p[m],r=t.transferSize,v=t.initiatorType,b=t.duration;if(r&&b&&r8(v)){v=0,b=t.responseEnd;for(m+=1;m<p.length;m++){var w=p[m],f=w.startTime;if(f>b)break;var{transferSize:Y,initiatorType:X}=w;Y&&r8(X)&&(w=w.responseEnd,v+=Y*(w<b?1:(b-f)/(w-f)))}if(--m,o+=8*(r+v)/(t.duration/1000),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a==="number")?a:5}function e5(a){return a.nodeType===9?a:a.ownerDocument}function v8(a){switch(a){case B0:return av;case Y1:return bb;default:return bt}}function b8(a,o){if(a===bt)switch(o){case"svg":return av;case"math":return bb;default:return bt}return a===av&&o==="foreignObject"?bt:a}function L4(a,o){return a==="textarea"||a==="noscript"||typeof o.children==="string"||typeof o.children==="number"||typeof o.children==="bigint"||typeof o.dangerouslySetInnerHTML==="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}function q$(){var a=window.event;if(a&&a.type==="popstate"){if(a===z6)return!1;return z6=a,!0}return z6=null,!1}function Sv(){var a=window.event;return a&&a!==I2?a.type:null}function nv(){var a=window.event;return a&&a!==I2?a.timeStamp:-1.1}function d$(a){setTimeout(function(){throw a})}function Q$(a,o,p){switch(o){case"button":case"input":case"select":case"textarea":p.autoFocus&&a.focus();break;case"img":p.src?a.src=p.src:p.srcSet&&(a.srcset=p.srcSet)}}function B$(){}function K$(a,o,p,m){Z$(a,o,p,m),a[so]=m}function w8(a){Xv(a,"")}function H$(a,o,p){a.nodeValue=p}function f8(a){if(!a.__reactWarnedAboutChildrenConflict){var o=a[so]||null;if(o!==null){var p=$t(a);p!==null&&(typeof o.children==="string"||typeof o.children==="number"?(a.__reactWarnedAboutChildrenConflict=!0,N(p,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.')})):o.dangerouslySetInnerHTML!=null&&(a.__reactWarnedAboutChildrenConflict=!0,N(p,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 Ht(a){return a==="head"}function W$(a,o){a.removeChild(o)}function U$(a,o){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(o)}function i8(a,o){var p=o,m=0;do{var t=p.nextSibling;if(a.removeChild(p),t&&t.nodeType===8)if(p=t.data,p===C2||p===vb){if(m===0){a.removeChild(t),Z0(o);return}m--}else if(p===g2||p===Et||p===Pr||p===e0||p===Ir)m++;else if(p===kY)uv(a.ownerDocument.documentElement);else if(p===MY){p=a.ownerDocument.head,uv(p);for(var r=p.firstChild;r;){var{nextSibling:v,nodeName:b}=r;r[ev]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&r.rel.toLowerCase()==="stylesheet"||p.removeChild(r),r=v}}else p===NY&&uv(a.ownerDocument.body);p=t}while(p);Z0(o)}function l8(a,o){var p=a;a=0;do{var m=p.nextSibling;if(p.nodeType===1?o?(p._stashedDisplay=p.style.display,p.style.display="none"):(p.style.display=p._stashedDisplay||"",p.getAttribute("style")===""&&p.removeAttribute("style")):p.nodeType===3&&(o?(p._stashedText=p.nodeValue,p.nodeValue=""):p.nodeValue=p._stashedText||""),m&&m.nodeType===8)if(p=m.data,p===C2)if(a===0)break;else a--;else p!==g2&&p!==Et&&p!==Pr&&p!==e0||a++;p=m}while(p)}function R$(a){l8(a,!0)}function O$(a){a=a.style,typeof a.setProperty==="function"?a.setProperty("display","none","important"):a.display="none"}function L$(a){a.nodeValue=""}function y$(a){l8(a,!1)}function k$(a,o){o=o[hY],o=o!==void 0&&o!==null&&o.hasOwnProperty("display")?o.display:null,a.style.display=o==null||typeof o==="boolean"?"":(""+o).trim()}function N$(a,o){a.nodeValue=o}function y4(a){var o=a.firstChild;o&&o.nodeType===10&&(o=o.nextSibling);for(;o;){var p=o;switch(o=o.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":y4(p),Fb(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}a.removeChild(p)}}function M$(a,o,p,m){for(;a.nodeType===1;){var t=p;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!m&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(!m)if(o==="input"&&a.type==="hidden"){sa(t.name,"name");var r=t.name==null?null:""+t.name;if(t.type==="hidden"&&a.getAttribute("name")===r)return a}else return a;else if(!a[ev])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(r=a.getAttribute("rel"),r==="stylesheet"&&a.hasAttribute("data-precedence"))break;else if(r!==t.rel||a.getAttribute("href")!==(t.href==null||t.href===""?null:t.href)||a.getAttribute("crossorigin")!==(t.crossOrigin==null?null:t.crossOrigin)||a.getAttribute("title")!==(t.title==null?null:t.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(r=a.getAttribute("src"),(r!==(t.src==null?null:t.src)||a.getAttribute("type")!==(t.type==null?null:t.type)||a.getAttribute("crossorigin")!==(t.crossOrigin==null?null:t.crossOrigin))&&r&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}if(a=dp(a.nextSibling),a===null)break}return null}function h$(a,o,p){if(o==="")return null;for(;a.nodeType!==3;){if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!p)return null;if(a=dp(a.nextSibling),a===null)return null}return a}function c8(a,o){for(;a.nodeType!==8;){if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o)return null;if(a=dp(a.nextSibling),a===null)return null}return a}function k4(a){return a.data===Et||a.data===Pr}function N4(a){return a.data===e0||a.data===Et&&a.ownerDocument.readyState!==oc}function F$(a,o){var p=a.ownerDocument;if(a.data===Pr)a._reactRetry=o;else if(a.data!==Et||p.readyState!==oc)o();else{var m=function(){o(),p.removeEventListener("DOMContentLoaded",m)};p.addEventListener("DOMContentLoaded",m),a._reactRetry=m}}function dp(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o===g2||o===e0||o===Et||o===Pr||o===Ir||o===i6||o===ac)break;if(o===C2||o===vb)return null}}return a}function z8(a){if(a.nodeType===1){for(var o=a.nodeName.toLowerCase(),p={},m=a.attributes,t=0;t<m.length;t++){var r=m[t];p[a8(r.name)]=r.name.toLowerCase()==="style"?U4(a):r.value}return{type:o,props:p}}return a.nodeType===8?a.data===Ir?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:a.nodeValue}function $8(a,o,p){return p===null||p[yY]!==!0?(a.nodeValue===o?a=null:(o=Kt(o),a=Kt(a.nodeValue)===o?null:a.nodeValue),a):null}function M4(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var p=a.data;if(p===C2||p===vb){if(o===0)return dp(a.nextSibling);o--}else p!==g2&&p!==e0&&p!==Et&&p!==Pr&&p!==Ir||o++}a=a.nextSibling}return null}function J8(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var p=a.data;if(p===g2||p===e0||p===Et||p===Pr||p===Ir){if(o===0)return a;o--}else p!==C2&&p!==vb||o++}a=a.previousSibling}return null}function g$(a){Z0(a)}function C$(a){Z0(a)}function I$(a){Z0(a)}function Y8(a,o,p,m,t){switch(t&&ub(a,m.ancestorInfo),o=e5(p),a){case"html":if(a=o.documentElement,!a)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 a;case"head":if(a=o.head,!a)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 a;case"body":if(a=o.body,!a)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 a;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function P$(a,o,p,m){if(!p[Ot]&&$t(p)){var t=p.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.",t,t,t)}switch(a){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(t=p.attributes;t.length;)p.removeAttributeNode(t[0]);Ao(p,a,o),p[To]=m,p[so]=o}function uv(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);Fb(a)}function a1(a){return typeof a.getRootNode==="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function X8(a,o,p){var m=ov;if(m&&typeof o==="string"&&o){var t=Np(o);t='link[rel="'+a+'"][href="'+t+'"]',typeof p==="string"&&(t+='[crossorigin="'+p+'"]'),bc.has(t)||(bc.add(t),a={rel:a,crossOrigin:p,href:o},m.querySelector(t)===null&&(o=m.createElement("link"),Ao(o,"link",a),No(o),m.head.appendChild(o)))}}function Z8(a,o,p,m){var t=(t=Ut.current)?a1(t):null;if(!t)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(a){case"meta":case"title":return null;case"style":return typeof p.precedence==="string"&&typeof p.href==="string"?(p=Y0(p.href),o=sr(t).hoistableStyles,m=o.get(p),m||(m={type:"style",instance:null,count:0,state:null},o.set(p,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href==="string"&&typeof p.precedence==="string"){a=Y0(p.href);var r=sr(t).hoistableStyles,v=r.get(a);if(!v&&(t=t.ownerDocument||t,v={type:"stylesheet",instance:null,count:0,state:{loading:Tr,preload:null}},r.set(a,v),(r=t.querySelector(xv(a)))&&!r._p&&(v.instance=r,v.state.loading=P2|up),!xp.has(a))){var b={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy};xp.set(a,b),r||A$(t,a,b,v.state)}if(o&&m===null)throw p=`
|
|
161
|
-
|
|
162
|
-
- `+o1(o)+`
|
|
163
|
-
+ `+o1(p),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."+p);return v}if(o&&m!==null)throw p=`
|
|
164
|
-
|
|
165
|
-
- `+o1(o)+`
|
|
166
|
-
+ `+o1(p),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."+p);return null;case"script":return o=p.async,p=p.src,typeof p==="string"&&o&&typeof o!=="function"&&typeof o!=="symbol"?(p=X0(p),o=sr(t).hoistableScripts,m=o.get(p),m||(m={type:"script",instance:null,count:0,state:null},o.set(p,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+a+'". this is a bug in React.')}}function o1(a){var o=0,p="<link";return typeof a.rel==="string"?(o++,p+=' rel="'+a.rel+'"'):am.call(a,"rel")&&(o++,p+=' rel="'+(a.rel===null?"null":"invalid type "+typeof a.rel)+'"'),typeof a.href==="string"?(o++,p+=' href="'+a.href+'"'):am.call(a,"href")&&(o++,p+=' href="'+(a.href===null?"null":"invalid type "+typeof a.href)+'"'),typeof a.precedence==="string"?(o++,p+=' precedence="'+a.precedence+'"'):am.call(a,"precedence")&&(o++,p+=" precedence={"+(a.precedence===null?"null":"invalid type "+typeof a.precedence)+"}"),Object.getOwnPropertyNames(a).length>o&&(p+=" ..."),p+" />"}function Y0(a){return'href="'+Np(a)+'"'}function xv(a){return'link[rel="stylesheet"]['+a+"]"}function G8(a){return Ka({},a,{"data-precedence":a.precedence,precedence:null})}function A$(a,o,p,m){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?m.loading=P2:(o=a.createElement("link"),m.preload=o,o.addEventListener("load",function(){return m.loading|=P2}),o.addEventListener("error",function(){return m.loading|=rc}),Ao(o,"link",p),No(o),a.head.appendChild(o))}function X0(a){return'[src="'+Np(a)+'"]'}function Vv(a){return"script[async]"+a}function _8(a,o,p){if(o.count++,o.instance===null)switch(o.type){case"style":var m=a.querySelector('style[data-href~="'+Np(p.href)+'"]');if(m)return o.instance=m,No(m),m;var t=Ka({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),No(m),Ao(m,"style",t),p1(m,p.precedence,a),o.instance=m;case"stylesheet":t=Y0(p.href);var r=a.querySelector(xv(t));if(r)return o.state.loading|=up,o.instance=r,No(r),r;m=G8(p),(t=xp.get(t))&&h4(m,t),r=(a.ownerDocument||a).createElement("link"),No(r);var v=r;return v._p=new Promise(function(b,w){v.onload=b,v.onerror=w}),Ao(r,"link",m),o.state.loading|=up,p1(r,p.precedence,a),o.instance=r;case"script":if(r=X0(p.src),t=a.querySelector(Vv(r)))return o.instance=t,No(t),t;if(m=p,t=xp.get(r))m=Ka({},p),F4(m,t);return a=a.ownerDocument||a,t=a.createElement("script"),No(t),Ao(t,"link",m),a.head.appendChild(t),o.instance=t;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+o.type+'". this is a bug in React.')}else o.type==="stylesheet"&&(o.state.loading&up)===Tr&&(m=o.instance,o.state.loading|=up,p1(m,p.precedence,a));return o.instance}function p1(a,o,p){for(var m=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),t=m.length?m[m.length-1]:null,r=t,v=0;v<m.length;v++){var b=m[v];if(b.dataset.precedence===o)r=b;else if(r!==t)break}r?r.parentNode.insertBefore(a,r.nextSibling):(o=p.nodeType===9?p.head:p,o.insertBefore(a,o.firstChild))}function h4(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function F4(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}function q8(a,o,p){if(wb===null){var m=new Map,t=wb=new Map;t.set(p,m)}else t=wb,m=t.get(p),m||(m=new Map,t.set(p,m));if(m.has(a))return m;m.set(a,null),p=p.getElementsByTagName(a);for(t=0;t<p.length;t++){var r=p[t];if(!(r[ev]||r[To]||a==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==B0){var v=r.getAttribute(o)||"";v=a+v;var b=m.get(v);b?b.push(r):m.set(v,[r])}}return m}function d8(a,o,p){a=a.ownerDocument||a,a.head.insertBefore(p,o==="title"?a.querySelector("head > title"):null)}function T$(a,o,p){var m=!p.ancestorInfo.containerTagInScope;if(p.context===av||o.itemProp!=null)return!m||o.itemProp==null||a!=="meta"&&a!=="title"&&a!=="style"&&a!=="link"&&a!=="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.",a,a),!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!=="string"||typeof o.href!=="string"||o.href===""){m&&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 o.rel!=="string"||typeof o.href!=="string"||o.href===""||o.onLoad||o.onError){if(o.rel==="stylesheet"&&typeof o.precedence==="string"){a=o.href;var{onError:t,disabled:r}=o;p=[],o.onLoad&&p.push("`onLoad`"),t&&p.push("`onError`"),r!=null&&p.push("`disabled`"),t=G$(p,"and"),t+=p.length===1?" prop":" props",r=p.length===1?"an "+t:"the "+t,p.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.',a,r,t)}m&&(typeof o.rel!=="string"||typeof o.href!=="string"||o.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"):(o.onError||o.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}switch(o.rel){case"stylesheet":return a=o.precedence,o=o.disabled,typeof a!=="string"&&m&&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 a==="string"&&o==null;default:return!0}case"script":if(a=o.async&&typeof o.async!=="function"&&typeof o.async!=="symbol",!a||o.onLoad||o.onError||!o.src||typeof o.src!=="string"){m&&(a?o.onLoad||o.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":m&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",a)}return!1}function Q8(a){return a.type==="stylesheet"&&(a.state.loading&vc)===Tr?!1:!0}function S$(a,o,p,m){if(p.type==="stylesheet"&&(typeof m.media!=="string"||matchMedia(m.media).matches!==!1)&&(p.state.loading&up)===Tr){if(p.instance===null){var t=Y0(m.href),r=o.querySelector(xv(t));if(r){o=r._p,o!==null&&typeof o==="object"&&typeof o.then==="function"&&(a.count++,a=m1.bind(a),o.then(a,a)),p.state.loading|=up,p.instance=r,No(r);return}r=o.ownerDocument||o,m=G8(m),(t=xp.get(t))&&h4(m,t),r=r.createElement("link"),No(r);var v=r;v._p=new Promise(function(b,w){v.onload=b,v.onerror=w}),Ao(r,"link",m),p.instance=r}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(p,o),(o=p.state.preload)&&(p.state.loading&vc)===Tr&&(a.count++,p=m1.bind(a),o.addEventListener("load",p),o.addEventListener("error",p))}}function n$(a,o){return a.stylesheets&&a.count===0&&t1(a,a.stylesheets),0<a.count||0<a.imgCount?function(p){var m=setTimeout(function(){if(a.stylesheets&&t1(a,a.stylesheets),a.unsuspend){var r=a.unsuspend;a.unsuspend=null,r()}},CY+o);0<a.imgBytes&&J6===0&&(J6=125*_$()*PY);var t=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&t1(a,a.stylesheets),a.unsuspend)){var r=a.unsuspend;a.unsuspend=null,r()}},(a.imgBytes>J6?50:IY)+o);return a.unsuspend=p,function(){a.unsuspend=null,clearTimeout(m),clearTimeout(t)}}:null}function m1(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)t1(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function t1(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,fb=new Map,o.forEach(u$,a),fb=null,m1.call(a))}function u$(a,o){if(!(o.state.loading&up)){var p=fb.get(a);if(p)var m=p.get(Y6);else{p=new Map,fb.set(a,p);for(var t=a.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<t.length;r++){var v=t[r];if(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")p.set(v.dataset.precedence,v),m=v}m&&p.set(Y6,m)}t=o.instance,v=t.getAttribute("data-precedence"),r=p.get(v)||m,r===m&&p.set(Y6,t),p.set(v,t),this.count++,m=m1.bind(this),t.addEventListener("load",m),t.addEventListener("error",m),r?r.parentNode.insertBefore(t,r.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(t,a.firstChild)),o.state.loading|=up}}function x$(a,o,p,m,t,r,v,b,w){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ar,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Nb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nb(0),this.hiddenUpdates=Nb(null),this.identifierPrefix=m,this.onUncaughtError=t,this.onCaughtError=r,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,a=this.pendingUpdatersLaneMap=[];for(o=0;31>o;o++)a.push(new Set);this._debugRootType=p?"hydrateRoot()":"createRoot()"}function B8(a,o,p,m,t,r,v,b,w,f,Y,X){return a=new x$(a,o,p,v,w,f,Y,X,b),o=cY,r===!0&&(o|=Vo|pm),o|=_a,r=F(3,null,null,o),a.current=r,r.stateNode=a,o=l3(),Jr(o),a.pooledCache=o,Jr(o),r.memoizedState={element:m,isDehydrated:p,cache:o},Y3(r),a}function K8(a){if(!a)return Nt;return a=Nt,a}function g4(a,o,p,m,t,r){if(xo&&typeof xo.onScheduleFiberRoot==="function")try{xo.onScheduleFiberRoot(d0,m,p)}catch(v){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",v))}t=K8(t),m.context===null?m.context=t:m.pendingContext=t,Hm&&Bp!==null&&!lc&&(lc=!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.
|
|
167
|
-
|
|
168
|
-
Check the render method of %s.`,L(Bp)||"Unknown")),m=Gt(o),m.payload={element:p},r=r===void 0?null:r,r!==null&&(typeof r!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),m.callback=r),p=_t(a,m,o),p!==null&&(lm(o,"root.render()",null),co(p,a,o),Uv(p,a,o))}function H8(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var p=a.retryLane;a.retryLane=p!==0&&p<o?p:o}}function C4(a,o){H8(a,o),(a=a.alternate)&&H8(a,o)}function W8(a){if(a.tag===13||a.tag===31){var o=uo(a,67108864);o!==null&&co(o,a,67108864),C4(a,67108864)}}function U8(a){if(a.tag===13||a.tag===31){var o=qp(a);o=Mb(o);var p=uo(a,o);p!==null&&co(p,a,o),C4(a,o)}}function V$(){return Bp}function D$(a,o,p,m){var t=Q.T;Q.T=null;var r=Fa.p;try{Fa.p=Kp,I4(a,o,p,m)}finally{Fa.p=r,Q.T=t}}function E$(a,o,p,m){var t=Q.T;Q.T=null;var r=Fa.p;try{Fa.p=om,I4(a,o,p,m)}finally{Fa.p=r,Q.T=t}}function I4(a,o,p,m){if(lb){var t=P4(m);if(t===null)K4(a,o,m,cb,p),O8(a,m);else if(j$(t,a,o,p,m))m.stopPropagation();else if(O8(a,m),o&4&&-1<TY.indexOf(a)){for(;t!==null;){var r=$t(t);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var v=rr(r.pendingLanes);if(v!==0){var b=r;b.pendingLanes|=2;for(b.entangledLanes|=2;v;){var w=1<<31-jo(v);b.entanglements[1]|=w,v&=~w}dm(r),(ya&(Lo|Rp))===Co&&(V1=ho()+C9,Av(0,!1))}}break;case 31:case 13:b=uo(r,2),b!==null&&co(b,r,2),z0(),C4(r,2)}if(r=P4(m),r===null&&K4(a,o,m,cb,p),r===t)break;t=r}t!==null&&m.stopPropagation()}else K4(a,o,m,null,p)}}function P4(a){return a=xb(a),A4(a)}function A4(a){if(cb=null,a=jr(a),a!==null){var o=Za(a);if(o===null)a=null;else{var p=o.tag;if(p===13){if(a=aa(o),a!==null)return a;a=null}else if(p===31){if(a=wa(o),a!==null)return a;a=null}else if(p===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return cb=a,null}function R8(a){switch(a){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 Kp;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 om;case"message":switch(vJ()){case ow:return Kp;case pw:return om;case q0:case bJ:return Rm;case mw:return $1;default:return Rm}default:return Rm}}function O8(a,o){switch(a){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":et=null;break;case"pointerover":case"pointerout":T2.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":S2.delete(o.pointerId)}}function Dv(a,o,p,m,t,r){if(a===null||a.nativeEvent!==r)return a={blockedOn:o,domEventName:p,eventSystemFlags:m,nativeEvent:r,targetContainers:[t]},o!==null&&(o=$t(o),o!==null&&W8(o)),a;return a.eventSystemFlags|=m,o=a.targetContainers,t!==null&&o.indexOf(t)===-1&&o.push(t),a}function j$(a,o,p,m,t){switch(o){case"focusin":return jt=Dv(jt,a,o,p,m,t),!0;case"dragenter":return st=Dv(st,a,o,p,m,t),!0;case"mouseover":return et=Dv(et,a,o,p,m,t),!0;case"pointerover":var r=t.pointerId;return T2.set(r,Dv(T2.get(r)||null,a,o,p,m,t)),!0;case"gotpointercapture":return r=t.pointerId,S2.set(r,Dv(S2.get(r)||null,a,o,p,m,t)),!0}return!1}function L8(a){var o=jr(a.target);if(o!==null){var p=Za(o);if(p!==null){if(o=p.tag,o===13){if(o=aa(p),o!==null){a.blockedOn=o,F6(a.priority,function(){U8(p)});return}}else if(o===31){if(o=wa(p),o!==null){a.blockedOn=o,F6(a.priority,function(){U8(p)});return}}else if(o===3&&p.stateNode.current.memoizedState.isDehydrated){a.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}a.blockedOn=null}function r1(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var p=P4(a.nativeEvent);if(p===null){p=a.nativeEvent;var m=new p.constructor(p.type,p),t=m;a2!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),a2=t,p.target.dispatchEvent(m),a2===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."),a2=null}else return o=$t(p),o!==null&&W8(o),a.blockedOn=p,!1;o.shift()}return!0}function y8(a,o,p){r1(a)&&p.delete(o)}function s$(){X6=!1,jt!==null&&r1(jt)&&(jt=null),st!==null&&r1(st)&&(st=null),et!==null&&r1(et)&&(et=null),T2.forEach(y8),S2.forEach(y8)}function v1(a,o){a.blockedOn===o&&(a.blockedOn=null,X6||(X6=!0,ka.unstable_scheduleCallback(ka.unstable_NormalPriority,s$)))}function k8(a){zb!==a&&(zb=a,ka.unstable_scheduleCallback(ka.unstable_NormalPriority,function(){zb===a&&(zb=null);for(var o=0;o<a.length;o+=3){var p=a[o],m=a[o+1],t=a[o+2];if(typeof m!=="function")if(A4(m||p)===null)continue;else break;var r=$t(p);r!==null&&(a.splice(o,3),o-=3,p={pending:!0,data:t,method:p.method,action:m},Object.freeze(p),A3(r,p,m,t))}}))}function Z0(a){function o(w){return v1(w,a)}jt!==null&&v1(jt,a),st!==null&&v1(st,a),et!==null&&v1(et,a),T2.forEach(o),S2.forEach(o);for(var p=0;p<ar.length;p++){var m=ar[p];m.blockedOn===a&&(m.blockedOn=null)}for(;0<ar.length&&(p=ar[0],p.blockedOn===null);)L8(p),p.blockedOn===null&&ar.shift();if(p=(a.ownerDocument||a).$$reactFormReplay,p!=null)for(m=0;m<p.length;m+=3){var t=p[m],r=p[m+1],v=t[so]||null;if(typeof r==="function")v||k8(p);else if(v){var b=null;if(r&&r.hasAttribute("formAction")){if(t=r,v=r[so]||null)b=v.formAction;else if(A4(t)!==null)continue}else b=v.action;typeof b==="function"?p[m+1]=b:(p.splice(m,3),m-=3),k8(p)}}}function N8(){function a(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(v){return t=v})},focusReset:"manual",scroll:"manual"})}function o(){t!==null&&(t(),t=null),m||setTimeout(p,20)}function p(){if(!m&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var m=!1,t=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(p,100),function(){m=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),t!==null&&(t(),t=null)}}}function T4(a){this._internalRoot=a}function b1(a){this._internalRoot=a}function M8(a){a[Ot]&&(a._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 Ka=Object.assign,e$=Symbol.for("react.element"),Bm=Symbol.for("react.transitional.element"),G0=Symbol.for("react.portal"),_0=Symbol.for("react.fragment"),w1=Symbol.for("react.strict_mode"),S4=Symbol.for("react.profiler"),n4=Symbol.for("react.consumer"),Km=Symbol.for("react.context"),Ev=Symbol.for("react.forward_ref"),u4=Symbol.for("react.suspense"),x4=Symbol.for("react.suspense_list"),f1=Symbol.for("react.memo"),Qp=Symbol.for("react.lazy"),V4=Symbol.for("react.activity"),aJ=Symbol.for("react.memo_cache_sentinel"),h8=Symbol.iterator,oJ=Symbol.for("react.client.reference"),Ro=Array.isArray,Q=pv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fa=G6.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pJ=Object.freeze({pending:!1,data:null,method:null,action:null}),D4=[],E4=[],xm=-1,Wt=ma(null),jv=ma(null),Ut=ma(null),i1=ma(null),sv=0,F8,g8,C8,I8,P8,A8,T8;yp.__reactDisabledLog=!0;var j4,S8,s4=!1,e4=new(typeof WeakMap==="function"?WeakMap:Map),Bp=null,Hm=!1,am=Object.prototype.hasOwnProperty,aw=ka.unstable_scheduleCallback,mJ=ka.unstable_cancelCallback,tJ=ka.unstable_shouldYield,rJ=ka.unstable_requestPaint,ho=ka.unstable_now,vJ=ka.unstable_getCurrentPriorityLevel,ow=ka.unstable_ImmediatePriority,pw=ka.unstable_UserBlockingPriority,q0=ka.unstable_NormalPriority,bJ=ka.unstable_LowPriority,mw=ka.unstable_IdlePriority,wJ=ka.log,fJ=ka.unstable_setDisableYieldValue,d0=null,xo=null,Wm=!1,Um=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",jo=Math.clz32?Math.clz32:wz,iJ=Math.log,lJ=Math.LN2,l1=256,c1=262144,z1=4194304,Kp=2,om=8,Rm=32,$1=268435456,Rt=Math.random().toString(36).slice(2),To="__reactFiber$"+Rt,so="__reactProps$"+Rt,Ot="__reactContainer$"+Rt,tw="__reactEvents$"+Rt,cJ="__reactListeners$"+Rt,zJ="__reactHandles$"+Rt,n8="__reactResources$"+Rt,ev="__reactMarker$"+Rt,u8=new Set,dr={},rw={},$J={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},JJ=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]*$"),x8={},V8={},YJ=/[\n"\\]/g,D8=!1,E8=!1,j8=!1,s8=!1,e8=!1,al=!1,ol=["value","defaultValue"],pl=!1,ml=/["'&<>\n\t]|^\s|\s$/,XJ="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(" "),tl="applet caption html table td th marquee object template foreignObject desc title".split(" "),ZJ=tl.concat(["button"]),GJ="dd dt li option optgroup p rp rt".split(" "),rl={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},J1={},vw={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"]},vl=/([A-Z])/g,bl=/^ms-/,_J=/^(?:webkit|moz|o)[A-Z]/,qJ=/^-ms-/,dJ=/-(.)/g,wl=/;\s*$/,Q0={},bw={},fl=!1,il=!1,ll=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(" ")),Y1="http://www.w3.org/1998/Math/MathML",B0="http://www.w3.org/2000/svg",QJ=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"]]),X1={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"},cl={"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},K0={},BJ=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]*$"),KJ=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]*$"),zl=!1,eo={},$l=/^on./,HJ=/^on[^A-Z]/,WJ=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]*$"),UJ=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]*$"),RJ=/^[\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,a2=null,H0=null,W0=null,ww=!1,Om=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fw=!1;if(Om)try{var o2={};Object.defineProperty(o2,"passive",{get:function(){fw=!0}}),window.addEventListener("test",o2,o2),window.removeEventListener("test",o2,o2)}catch(a){fw=!1}var Lt=null,iw=null,Z1=null,Qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},G1=bp(Qr),p2=Ka({},Qr,{view:0,detail:0}),OJ=bp(p2),lw,cw,m2,_1=Ka({},p2,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vb,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if("movementX"in a)return a.movementX;return a!==m2&&(m2&&a.type==="mousemove"?(lw=a.screenX-m2.screenX,cw=a.screenY-m2.screenY):cw=lw=0,m2=a),lw},movementY:function(a){return"movementY"in a?a.movementY:cw}}),Jl=bp(_1),LJ=Ka({},_1,{dataTransfer:0}),yJ=bp(LJ),kJ=Ka({},p2,{relatedTarget:0}),zw=bp(kJ),NJ=Ka({},Qr,{animationName:0,elapsedTime:0,pseudoElement:0}),MJ=bp(NJ),hJ=Ka({},Qr,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),FJ=bp(hJ),gJ=Ka({},Qr,{data:0}),Yl=bp(gJ),CJ=Yl,IJ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PJ={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"},AJ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},TJ=Ka({},p2,{key:function(a){if(a.key){var o=IJ[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=r5(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?PJ[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vb,charCode:function(a){return a.type==="keypress"?r5(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?r5(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),SJ=bp(TJ),nJ=Ka({},_1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xl=bp(nJ),uJ=Ka({},p2,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vb}),xJ=bp(uJ),VJ=Ka({},Qr,{propertyName:0,elapsedTime:0,pseudoElement:0}),DJ=bp(VJ),EJ=Ka({},_1,{deltaX:function(a){return"deltaX"in a?a.deltaX:("wheelDeltaX"in a)?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:("wheelDeltaY"in a)?-a.wheelDeltaY:("wheelDelta"in a)?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),jJ=bp(EJ),sJ=Ka({},Qr,{newState:0,oldState:0}),eJ=bp(sJ),aY=[9,13,27,32],Zl=229,$w=Om&&"CompositionEvent"in window,t2=null;Om&&"documentMode"in document&&(t2=document.documentMode);var oY=Om&&"TextEvent"in window&&!t2,Gl=Om&&(!$w||t2&&8<t2&&11>=t2),_l=32,ql=String.fromCharCode(_l),dl=!1,U0=!1,pY={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},r2=null,v2=null,Ql=!1;Om&&(Ql=Qz("input")&&(!document.documentMode||9<document.documentMode));var ap=typeof Object.is==="function"?Object.is:Rz,mY=Om&&"documentMode"in document&&11>=document.documentMode,R0=null,Jw=null,b2=null,Yw=!1,O0={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionrun:wr("Transition","TransitionRun"),transitionstart:wr("Transition","TransitionStart"),transitioncancel:wr("Transition","TransitionCancel"),transitionend:wr("Transition","TransitionEnd")},Xw={},Bl={};Om&&(Bl=document.createElement("div").style,("AnimationEvent"in window)||(delete O0.animationend.animation,delete O0.animationiteration.animation,delete O0.animationstart.animation),("TransitionEvent"in window)||delete O0.transitionend.transition);var Kl=fr("animationend"),Hl=fr("animationiteration"),Wl=fr("animationstart"),tY=fr("transitionrun"),rY=fr("transitionstart"),vY=fr("transitioncancel"),Ul=fr("transitionend"),Rl=new Map,Zw="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(" ");Zw.push("scrollEnd");var Ol=0;if(typeof performance==="object"&&typeof performance.now==="function")var bY=performance,Ll=function(){return bY.now()};else{var wY=Date;Ll=function(){return wY.now()}}var Gw=typeof reportError==="function"?reportError:function(a){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a==="object"&&a!==null&&typeof a.message==="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",a);return}console.error(a)},fY="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.",q1=0,_w=1,qw=2,dw=3,d1="– ",Q1="+ ",yl=" ",ea=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",hp="Components ⚛",Ha="Scheduler ⚛",Ua="Blocking",yt=!1,Vm={color:"primary",properties:null,tooltipText:"",track:hp},kt={start:-0,end:-0,detail:{devtools:Vm}},iY=["Changed Props",""],kl="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",lY=["Changed Props",kl],w2=1,Dm=2,Fp=[],L0=0,Qw=0,Nt={};Object.freeze(Nt);var gp=null,y0=null,la=0,cY=1,_a=2,Vo=8,pm=16,zY=32,Nl=!1;try{var Ml=Object.preventExtensions({})}catch(a){Nl=!0}var Bw=new WeakMap,k0=[],N0=0,B1=null,f2=0,Cp=[],Ip=0,Br=null,Em=1,jm="",So=null,ao=null,Ra=!1,Lm=!1,Hp=null,Mt=null,Pp=!1,Kw=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."),Hw=ma(null),Ww=ma(null),hl={},K1=null,M0=null,h0=!1,$Y=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(p,m){a.push(m)}};this.abort=function(){o.aborted=!0,a.forEach(function(p){return p()})}},JY=ka.unstable_scheduleCallback,YY=ka.unstable_NormalPriority,_o={$$typeof:Km,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},qo=ka.unstable_now,H1=console.createTask?console.createTask:function(){return null},i2=1,W1=2,Fo=-0,ht=-0,sm=-0,em=null,op=-1.1,Kr=-0,wo=-0,ba=-1.1,fa=-1.1,ro=null,zo=!1,Ft=-0,ym=-1.1,l2=null,gt=0,Uw=null,Rw=null,Hr=-1.1,c2=null,F0=-1.1,U1=-1.1,km=-0,at=-1.1,Ap=-1.1,Ow=0,z2=null,Fl=null,gl=null,Ct=-1.1,Wr=null,It=-1.1,R1=-1.1,Cl=-0,Il=-0,O1=0,ot=null,Pl=0,$2=-1.1,L1=!1,y1=!1,J2=null,Lw=0,Ur=0,g0=null,Al=Q.S;Q.S=function(a,o){if(F9=ho(),typeof o==="object"&&o!==null&&typeof o.then==="function"){if(0>at&&0>Ap){at=qo();var p=nv(),m=Sv();if(p!==It||m!==Wr)It=-1.1;Ct=p,Wr=m}hz(a,o)}Al!==null&&Al(a,o)};var Rr=ma(null),mm={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Y2=[],X2=[],Z2=[],G2=[],_2=[],q2=[],Or=new Set;mm.recordUnsafeLifecycleWarnings=function(a,o){Or.has(a.type)||(typeof o.componentWillMount==="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&Y2.push(a),a.mode&Vo&&typeof o.UNSAFE_componentWillMount==="function"&&X2.push(a),typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Z2.push(a),a.mode&Vo&&typeof o.UNSAFE_componentWillReceiveProps==="function"&&G2.push(a),typeof o.componentWillUpdate==="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&_2.push(a),a.mode&Vo&&typeof o.UNSAFE_componentWillUpdate==="function"&&q2.push(a))},mm.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<Y2.length&&(Y2.forEach(function(b){a.add(L(b)||"Component"),Or.add(b.type)}),Y2=[]);var o=new Set;0<X2.length&&(X2.forEach(function(b){o.add(L(b)||"Component"),Or.add(b.type)}),X2=[]);var p=new Set;0<Z2.length&&(Z2.forEach(function(b){p.add(L(b)||"Component"),Or.add(b.type)}),Z2=[]);var m=new Set;0<G2.length&&(G2.forEach(function(b){m.add(L(b)||"Component"),Or.add(b.type)}),G2=[]);var t=new Set;0<_2.length&&(_2.forEach(function(b){t.add(L(b)||"Component"),Or.add(b.type)}),_2=[]);var r=new Set;if(0<q2.length&&(q2.forEach(function(b){r.add(L(b)||"Component"),Or.add(b.type)}),q2=[]),0<o.size){var v=n(o);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.
|
|
169
|
-
|
|
170
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
171
|
-
|
|
172
|
-
Please update the following components: %s`,v)}0<m.size&&(v=n(m),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.
|
|
173
|
-
|
|
174
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
175
|
-
* 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
|
|
176
|
-
|
|
177
|
-
Please update the following components: %s`,v)),0<r.size&&(v=n(r),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.
|
|
178
|
-
|
|
179
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
180
|
-
|
|
181
|
-
Please update the following components: %s`,v)),0<a.size&&(v=n(a),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
182
|
-
|
|
183
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
184
|
-
* 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.
|
|
185
|
-
|
|
186
|
-
Please update the following components: %s`,v)),0<p.size&&(v=n(p),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
187
|
-
|
|
188
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
189
|
-
* 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
|
|
190
|
-
* 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.
|
|
191
|
-
|
|
192
|
-
Please update the following components: %s`,v)),0<t.size&&(v=n(t),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
193
|
-
|
|
194
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
195
|
-
* 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.
|
|
196
|
-
|
|
197
|
-
Please update the following components: %s`,v))};var k1=new Map,Tl=new Set;mm.recordLegacyContextWarning=function(a,o){var p=null;for(var m=a;m!==null;)m.mode&Vo&&(p=m),m=m.return;p===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."):!Tl.has(a.type)&&(m=k1.get(p),a.type.contextTypes!=null||a.type.childContextTypes!=null||o!==null&&typeof o.getChildContext==="function")&&(m===void 0&&(m=[],k1.set(p,m)),m.push(a))},mm.flushLegacyContextWarning=function(){k1.forEach(function(a){if(a.length!==0){var o=a[0],p=new Set;a.forEach(function(t){p.add(L(t)||"Component"),Tl.add(t.type)});var m=n(p);N(o,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
198
|
-
|
|
199
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
200
|
-
|
|
201
|
-
Please update the following components: %s
|
|
202
|
-
|
|
203
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,m)})}})},mm.discardPendingWarnings=function(){Y2=[],X2=[],Z2=[],G2=[],_2=[],q2=[],k1=new Map};var Sl={react_stack_bottom_frame:function(a,o,p){var m=Hm;Hm=!0;try{return a(o,p)}finally{Hm=m}}},yw=Sl.react_stack_bottom_frame.bind(Sl),nl={react_stack_bottom_frame:function(a){var o=Hm;Hm=!0;try{return a.render()}finally{Hm=o}}},ul=nl.react_stack_bottom_frame.bind(nl),xl={react_stack_bottom_frame:function(a,o){try{o.componentDidMount()}catch(p){ha(a,a.return,p)}}},kw=xl.react_stack_bottom_frame.bind(xl),Vl={react_stack_bottom_frame:function(a,o,p,m,t){try{o.componentDidUpdate(p,m,t)}catch(r){ha(a,a.return,r)}}},Dl=Vl.react_stack_bottom_frame.bind(Vl),El={react_stack_bottom_frame:function(a,o){var p=o.stack;a.componentDidCatch(o.value,{componentStack:p!==null?p:""})}},XY=El.react_stack_bottom_frame.bind(El),jl={react_stack_bottom_frame:function(a,o,p){try{p.componentWillUnmount()}catch(m){ha(a,o,m)}}},sl=jl.react_stack_bottom_frame.bind(jl),el={react_stack_bottom_frame:function(a){var o=a.create;return a=a.inst,o=o(),a.destroy=o}},ZY=el.react_stack_bottom_frame.bind(el),a9={react_stack_bottom_frame:function(a,o,p){try{p()}catch(m){ha(a,o,m)}}},GY=a9.react_stack_bottom_frame.bind(a9),o9={react_stack_bottom_frame:function(a){var o=a._init;return o(a._payload)}},_Y=o9.react_stack_bottom_frame.bind(o9),C0=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`."),Nw=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."),N1=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."),M1={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,d2=!1,I0=null,Q2=0,qa=null,Mw,p9=Mw=!1,m9={},t9={},r9={};K=function(a,o,p){if(p!==null&&typeof p==="object"&&p._store&&(!p._store.validated&&p.key==null||p._store.validated===2)){if(typeof p._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.");p._store.validated=1;var m=L(a),t=m||"null";if(!m9[t]){m9[t]=!0,p=p._owner,a=a._debugOwner;var r="";a&&typeof a.tag==="number"&&(t=L(a))&&(r=`
|
|
204
|
-
|
|
205
|
-
Check the render method of \``+t+"`."),r||m&&(r=`
|
|
206
|
-
|
|
207
|
-
Check the top-level render call using <`+m+">.");var v="";p!=null&&a!==p&&(m=null,typeof p.tag==="number"?m=L(p):typeof p.name==="string"&&(m=p.name),m&&(v=" It was passed a child from "+m+".")),N(o,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.',r,v)})}}};var yr=E7(!0),v9=E7(!1),b9=0,w9=1,f9=2,hw=3,Pt=!1,i9=!1,Fw=null,gw=!1,P0=ma(null),h1=ma(0),Wp=ma(null),Tp=null,A0=1,B2=2,Zo=ma(0),F1=0,Sp=1,pp=2,Up=4,mp=8,T0,l9=new Set,c9=new Set,Cw=new Set,z9=new Set,pt=0,za=null,na=null,Qo=null,g1=!1,S0=!1,kr=!1,C1=0,K2=0,mt=null,qY=0,dY=25,d=null,np=null,tt=-1,H2=!1,W2={readContext:to,use:Qt,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo};W2.useEffectEvent=Jo;var Iw=null,$9=null,Pw=null,J9=null,Nm=null,tm=null,I1=null;Iw={readContext:function(a){return to(a)},use:Qt,useCallback:function(a,o){return d="useCallback",Ba(),v0(o),g3(a,o)},useContext:function(a){return d="useContext",Ba(),to(a)},useEffect:function(a,o){return d="useEffect",Ba(),v0(o),k5(a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",Ba(),v0(p),F3(a,o,p)},useInsertionEffect:function(a,o){d="useInsertionEffect",Ba(),v0(o),Xr(4,pp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",Ba(),v0(o),h3(a,o)},useMemo:function(a,o){d="useMemo",Ba(),v0(o);var p=Q.H;Q.H=Nm;try{return C3(a,o)}finally{Q.H=p}},useReducer:function(a,o,p){d="useReducer",Ba();var m=Q.H;Q.H=Nm;try{return W3(a,o,p)}finally{Q.H=m}},useRef:function(a){return d="useRef",Ba(),N3(a)},useState:function(a){d="useState",Ba();var o=Q.H;Q.H=Nm;try{return L3(a)}finally{Q.H=o}},useDebugValue:function(){d="useDebugValue",Ba()},useDeferredValue:function(a,o){return d="useDeferredValue",Ba(),I3(a,o)},useTransition:function(){return d="useTransition",Ba(),T3()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",Ba(),R3(a,o,p)},useId:function(){return d="useId",Ba(),S3()},useFormState:function(a,o){return d="useFormState",Ba(),U5(),w0(a,o)},useActionState:function(a,o){return d="useActionState",Ba(),w0(a,o)},useOptimistic:function(a){return d="useOptimistic",Ba(),y3(a)},useHostTransitionStatus:Zr,useMemoCache:Yr,useCacheRefresh:function(){return d="useCacheRefresh",Ba(),n3()},useEffectEvent:function(a){return d="useEffectEvent",Ba(),M3(a)}},$9={readContext:function(a){return to(a)},use:Qt,useCallback:function(a,o){return d="useCallback",I(),g3(a,o)},useContext:function(a){return d="useContext",I(),to(a)},useEffect:function(a,o){return d="useEffect",I(),k5(a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",I(),F3(a,o,p)},useInsertionEffect:function(a,o){d="useInsertionEffect",I(),Xr(4,pp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",I(),h3(a,o)},useMemo:function(a,o){d="useMemo",I();var p=Q.H;Q.H=Nm;try{return C3(a,o)}finally{Q.H=p}},useReducer:function(a,o,p){d="useReducer",I();var m=Q.H;Q.H=Nm;try{return W3(a,o,p)}finally{Q.H=m}},useRef:function(a){return d="useRef",I(),N3(a)},useState:function(a){d="useState",I();var o=Q.H;Q.H=Nm;try{return L3(a)}finally{Q.H=o}},useDebugValue:function(){d="useDebugValue",I()},useDeferredValue:function(a,o){return d="useDeferredValue",I(),I3(a,o)},useTransition:function(){return d="useTransition",I(),T3()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",I(),R3(a,o,p)},useId:function(){return d="useId",I(),S3()},useActionState:function(a,o){return d="useActionState",I(),w0(a,o)},useFormState:function(a,o){return d="useFormState",I(),U5(),w0(a,o)},useOptimistic:function(a){return d="useOptimistic",I(),y3(a)},useHostTransitionStatus:Zr,useMemoCache:Yr,useCacheRefresh:function(){return d="useCacheRefresh",I(),n3()},useEffectEvent:function(a){return d="useEffectEvent",I(),M3(a)}},Pw={readContext:function(a){return to(a)},use:Qt,useCallback:function(a,o){return d="useCallback",I(),h5(a,o)},useContext:function(a){return d="useContext",I(),to(a)},useEffect:function(a,o){d="useEffect",I(),wp(2048,mp,a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",I(),M5(a,o,p)},useInsertionEffect:function(a,o){return d="useInsertionEffect",I(),wp(4,pp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",I(),wp(4,Up,a,o)},useMemo:function(a,o){d="useMemo",I();var p=Q.H;Q.H=tm;try{return F5(a,o)}finally{Q.H=p}},useReducer:function(a,o,p){d="useReducer",I();var m=Q.H;Q.H=tm;try{return b0(a,o,p)}finally{Q.H=m}},useRef:function(){return d="useRef",I(),ga().memoizedState},useState:function(){d="useState",I();var a=Q.H;Q.H=tm;try{return b0(sp)}finally{Q.H=a}},useDebugValue:function(){d="useDebugValue",I()},useDeferredValue:function(a,o){return d="useDeferredValue",I(),Gf(a,o)},useTransition:function(){return d="useTransition",I(),Kf()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",I(),O5(a,o,p)},useId:function(){return d="useId",I(),ga().memoizedState},useFormState:function(a){return d="useFormState",I(),U5(),L5(a)},useActionState:function(a){return d="useActionState",I(),L5(a)},useOptimistic:function(a,o){return d="useOptimistic",I(),wf(a,o)},useHostTransitionStatus:Zr,useMemoCache:Yr,useCacheRefresh:function(){return d="useCacheRefresh",I(),ga().memoizedState},useEffectEvent:function(a){return d="useEffectEvent",I(),N5(a)}},J9={readContext:function(a){return to(a)},use:Qt,useCallback:function(a,o){return d="useCallback",I(),h5(a,o)},useContext:function(a){return d="useContext",I(),to(a)},useEffect:function(a,o){d="useEffect",I(),wp(2048,mp,a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",I(),M5(a,o,p)},useInsertionEffect:function(a,o){return d="useInsertionEffect",I(),wp(4,pp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",I(),wp(4,Up,a,o)},useMemo:function(a,o){d="useMemo",I();var p=Q.H;Q.H=I1;try{return F5(a,o)}finally{Q.H=p}},useReducer:function(a,o,p){d="useReducer",I();var m=Q.H;Q.H=I1;try{return yv(a,o,p)}finally{Q.H=m}},useRef:function(){return d="useRef",I(),ga().memoizedState},useState:function(){d="useState",I();var a=Q.H;Q.H=I1;try{return yv(sp)}finally{Q.H=a}},useDebugValue:function(){d="useDebugValue",I()},useDeferredValue:function(a,o){return d="useDeferredValue",I(),_f(a,o)},useTransition:function(){return d="useTransition",I(),Hf()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",I(),O5(a,o,p)},useId:function(){return d="useId",I(),ga().memoizedState},useFormState:function(a){return d="useFormState",I(),U5(),y5(a)},useActionState:function(a){return d="useActionState",I(),y5(a)},useOptimistic:function(a,o){return d="useOptimistic",I(),lf(a,o)},useHostTransitionStatus:Zr,useMemoCache:Yr,useCacheRefresh:function(){return d="useCacheRefresh",I(),ga().memoizedState},useEffectEvent:function(a){return d="useEffectEvent",I(),N5(a)}},Nm={readContext:function(a){return g(),to(a)},use:function(a){return G(),Qt(a)},useCallback:function(a,o){return d="useCallback",G(),Ba(),g3(a,o)},useContext:function(a){return d="useContext",G(),Ba(),to(a)},useEffect:function(a,o){return d="useEffect",G(),Ba(),k5(a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",G(),Ba(),F3(a,o,p)},useInsertionEffect:function(a,o){d="useInsertionEffect",G(),Ba(),Xr(4,pp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",G(),Ba(),h3(a,o)},useMemo:function(a,o){d="useMemo",G(),Ba();var p=Q.H;Q.H=Nm;try{return C3(a,o)}finally{Q.H=p}},useReducer:function(a,o,p){d="useReducer",G(),Ba();var m=Q.H;Q.H=Nm;try{return W3(a,o,p)}finally{Q.H=m}},useRef:function(a){return d="useRef",G(),Ba(),N3(a)},useState:function(a){d="useState",G(),Ba();var o=Q.H;Q.H=Nm;try{return L3(a)}finally{Q.H=o}},useDebugValue:function(){d="useDebugValue",G(),Ba()},useDeferredValue:function(a,o){return d="useDeferredValue",G(),Ba(),I3(a,o)},useTransition:function(){return d="useTransition",G(),Ba(),T3()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",G(),Ba(),R3(a,o,p)},useId:function(){return d="useId",G(),Ba(),S3()},useFormState:function(a,o){return d="useFormState",G(),Ba(),w0(a,o)},useActionState:function(a,o){return d="useActionState",G(),Ba(),w0(a,o)},useOptimistic:function(a){return d="useOptimistic",G(),Ba(),y3(a)},useMemoCache:function(a){return G(),Yr(a)},useHostTransitionStatus:Zr,useCacheRefresh:function(){return d="useCacheRefresh",Ba(),n3()},useEffectEvent:function(a){return d="useEffectEvent",G(),Ba(),M3(a)}},tm={readContext:function(a){return g(),to(a)},use:function(a){return G(),Qt(a)},useCallback:function(a,o){return d="useCallback",G(),I(),h5(a,o)},useContext:function(a){return d="useContext",G(),I(),to(a)},useEffect:function(a,o){d="useEffect",G(),I(),wp(2048,mp,a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",G(),I(),M5(a,o,p)},useInsertionEffect:function(a,o){return d="useInsertionEffect",G(),I(),wp(4,pp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",G(),I(),wp(4,Up,a,o)},useMemo:function(a,o){d="useMemo",G(),I();var p=Q.H;Q.H=tm;try{return F5(a,o)}finally{Q.H=p}},useReducer:function(a,o,p){d="useReducer",G(),I();var m=Q.H;Q.H=tm;try{return b0(a,o,p)}finally{Q.H=m}},useRef:function(){return d="useRef",G(),I(),ga().memoizedState},useState:function(){d="useState",G(),I();var a=Q.H;Q.H=tm;try{return b0(sp)}finally{Q.H=a}},useDebugValue:function(){d="useDebugValue",G(),I()},useDeferredValue:function(a,o){return d="useDeferredValue",G(),I(),Gf(a,o)},useTransition:function(){return d="useTransition",G(),I(),Kf()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",G(),I(),O5(a,o,p)},useId:function(){return d="useId",G(),I(),ga().memoizedState},useFormState:function(a){return d="useFormState",G(),I(),L5(a)},useActionState:function(a){return d="useActionState",G(),I(),L5(a)},useOptimistic:function(a,o){return d="useOptimistic",G(),I(),wf(a,o)},useMemoCache:function(a){return G(),Yr(a)},useHostTransitionStatus:Zr,useCacheRefresh:function(){return d="useCacheRefresh",I(),ga().memoizedState},useEffectEvent:function(a){return d="useEffectEvent",G(),I(),N5(a)}},I1={readContext:function(a){return g(),to(a)},use:function(a){return G(),Qt(a)},useCallback:function(a,o){return d="useCallback",G(),I(),h5(a,o)},useContext:function(a){return d="useContext",G(),I(),to(a)},useEffect:function(a,o){d="useEffect",G(),I(),wp(2048,mp,a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",G(),I(),M5(a,o,p)},useInsertionEffect:function(a,o){return d="useInsertionEffect",G(),I(),wp(4,pp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",G(),I(),wp(4,Up,a,o)},useMemo:function(a,o){d="useMemo",G(),I();var p=Q.H;Q.H=tm;try{return F5(a,o)}finally{Q.H=p}},useReducer:function(a,o,p){d="useReducer",G(),I();var m=Q.H;Q.H=tm;try{return yv(a,o,p)}finally{Q.H=m}},useRef:function(){return d="useRef",G(),I(),ga().memoizedState},useState:function(){d="useState",G(),I();var a=Q.H;Q.H=tm;try{return yv(sp)}finally{Q.H=a}},useDebugValue:function(){d="useDebugValue",G(),I()},useDeferredValue:function(a,o){return d="useDeferredValue",G(),I(),_f(a,o)},useTransition:function(){return d="useTransition",G(),I(),Hf()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",G(),I(),O5(a,o,p)},useId:function(){return d="useId",G(),I(),ga().memoizedState},useFormState:function(a){return d="useFormState",G(),I(),y5(a)},useActionState:function(a){return d="useActionState",G(),I(),y5(a)},useOptimistic:function(a,o){return d="useOptimistic",G(),I(),lf(a,o)},useMemoCache:function(a){return G(),Yr(a)},useHostTransitionStatus:Zr,useCacheRefresh:function(){return d="useCacheRefresh",I(),ga().memoizedState},useEffectEvent:function(a){return d="useEffectEvent",G(),I(),N5(a)}};var Y9={},X9=new Set,Z9=new Set,G9=new Set,_9=new Set,q9=new Set,d9=new Set,Q9=new Set,B9=new Set,K9=new Set,H9=new Set;Object.freeze(Y9);var Aw={enqueueSetState:function(a,o,p){a=a._reactInternals;var m=qp(a),t=Gt(m);t.payload=o,p!==void 0&&p!==null&&(x3(p),t.callback=p),o=_t(a,t,m),o!==null&&(lm(m,"this.setState()",a),co(o,a,m),Uv(o,a,m))},enqueueReplaceState:function(a,o,p){a=a._reactInternals;var m=qp(a),t=Gt(m);t.tag=w9,t.payload=o,p!==void 0&&p!==null&&(x3(p),t.callback=p),o=_t(a,t,m),o!==null&&(lm(m,"this.replaceState()",a),co(o,a,m),Uv(o,a,m))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var p=qp(a),m=Gt(p);m.tag=f9,o!==void 0&&o!==null&&(x3(o),m.callback=o),o=_t(a,m,p),o!==null&&(lm(p,"this.forceUpdate()",a),co(o,a,p),Uv(o,a,p))}},n0=null,Tw=null,Sw=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."),Bo=!1,W9={},U9={},R9={},O9={},u0=!1,L9={},P1={},nw={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},y9=!1,k9=null;k9=new Set;var rt=!1,Ko=!1,uw=!1,N9=typeof WeakSet==="function"?WeakSet:Set,go=null,x0=null,V0=null,Ho=null,lp=!1,rm=null,Oo=!1,U2=8192,QY={getCacheForType:function(a){var o=to(_o),p=o.data.get(a);return p===void 0&&(p=a(),o.data.set(a,p)),p},cacheSignal:function(){return to(_o).controller.signal},getOwner:function(){return Bp}};if(typeof Symbol==="function"&&Symbol.for){var R2=Symbol.for;R2("selector.component"),R2("selector.has_pseudo_class"),R2("selector.role"),R2("selector.test_id"),R2("selector.text")}var BY=[],KY=typeof WeakMap==="function"?WeakMap:Map,Co=0,Lo=2,Rp=4,vt=0,O2=1,Nr=2,A1=3,At=4,T1=6,M9=5,ya=Co,ua=null,Qa=null,da=0,cp=0,S1=1,Mr=2,L2=3,h9=4,xw=5,y2=6,n1=7,Vw=8,hr=9,Ca=cp,Op=null,Tt=!1,D0=!1,Dw=!1,Mm=0,fo=vt,St=0,nt=0,Ew=0,zp=0,Fr=0,k2=null,tp=null,u1=!1,x1=0,F9=0,g9=300,V1=1/0,C9=500,N2=null,Yo=null,ut=null,D1=0,jw=1,sw=2,I9=3,xt=0,P9=1,A9=2,T9=3,S9=4,E1=5,Wo=0,Vt=null,E0=null,vm=0,ew=0,a6=-0,o6=null,n9=null,u9=null,bm=D1,x9=null,HY=50,M2=0,p6=null,m6=!1,j1=!1,WY=50,gr=0,h2=null,j0=!1,s1=null,V9=!1,D9=new Set,UY={},e1=null,s0=null,t6=!1,r6=!1,ab=!1,v6=!1,Dt=0,b6={};(function(){for(var a=0;a<Zw.length;a++){var o=Zw[a],p=o.toLowerCase();o=o[0].toUpperCase()+o.slice(1),jp(p,"on"+o)}jp(Kl,"onAnimationEnd"),jp(Hl,"onAnimationIteration"),jp(Wl,"onAnimationStart"),jp("dblclick","onDoubleClick"),jp("focusin","onFocus"),jp("focusout","onBlur"),jp(tY,"onTransitionRun"),jp(rY,"onTransitionStart"),jp(vY,"onTransitionCancel"),jp(Ul,"onTransitionEnd")})(),er("onMouseEnter",["mouseout","mouseover"]),er("onMouseLeave",["mouseout","mouseover"]),er("onPointerEnter",["pointerout","pointerover"]),er("onPointerLeave",["pointerout","pointerover"]),vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vr("onBeforeInput",["compositionend","keypress","textInput","paste"]),vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var F2="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(" "),w6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(F2)),ob="_reactListening"+Math.random().toString(36).slice(2),E9=!1,j9=!1,pb=!1,s9=!1,mb=!1,tb=!1,e9=!1,rb={},RY=/\r\n?/g,OY=/\u0000|\uFFFD/g,Cr="http://www.w3.org/1999/xlink",f6="http://www.w3.org/XML/1998/namespace",LY="javascript:throw new Error('React form unexpectedly submitted.')",yY="suppressHydrationWarning",Ir="&",vb="/&",g2="$",C2="/$",Et="$?",Pr="$~",e0="$!",kY="html",NY="body",MY="head",i6="F!",ac="F",oc="loading",hY="style",bt=0,av=1,bb=2,l6=null,c6=null,pc={dialog:!0,webview:!0},z6=null,I2=void 0,mc=typeof setTimeout==="function"?setTimeout:void 0,FY=typeof clearTimeout==="function"?clearTimeout:void 0,Ar=-1,tc=typeof Promise==="function"?Promise:void 0,gY=typeof queueMicrotask==="function"?queueMicrotask:typeof tc<"u"?function(a){return tc.resolve(null).then(a).catch(d$)}:mc,$6=null,Tr=0,P2=1,rc=2,vc=3,up=4,xp=new Map,bc=new Set,wt=Fa.d;Fa.d={f:function(){var a=wt.f(),o=z0();return a||o},r:function(a){var o=$t(a);o!==null&&o.tag===5&&o.type==="form"?Bf(o):wt.r(a)},D:function(a){wt.D(a),X8("dns-prefetch",a,null)},C:function(a,o){wt.C(a,o),X8("preconnect",a,o)},L:function(a,o,p){wt.L(a,o,p);var m=ov;if(m&&a&&o){var t='link[rel="preload"][as="'+Np(o)+'"]';o==="image"?p&&p.imageSrcSet?(t+='[imagesrcset="'+Np(p.imageSrcSet)+'"]',typeof p.imageSizes==="string"&&(t+='[imagesizes="'+Np(p.imageSizes)+'"]')):t+='[href="'+Np(a)+'"]':t+='[href="'+Np(a)+'"]';var r=t;switch(o){case"style":r=Y0(a);break;case"script":r=X0(a)}xp.has(r)||(a=Ka({rel:"preload",href:o==="image"&&p&&p.imageSrcSet?void 0:a,as:o},p),xp.set(r,a),m.querySelector(t)!==null||o==="style"&&m.querySelector(xv(r))||o==="script"&&m.querySelector(Vv(r))||(o=m.createElement("link"),Ao(o,"link",a),No(o),m.head.appendChild(o)))}},m:function(a,o){wt.m(a,o);var p=ov;if(p&&a){var m=o&&typeof o.as==="string"?o.as:"script",t='link[rel="modulepreload"][as="'+Np(m)+'"][href="'+Np(a)+'"]',r=t;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=X0(a)}if(!xp.has(r)&&(a=Ka({rel:"modulepreload",href:a},o),xp.set(r,a),p.querySelector(t)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(Vv(r)))return}m=p.createElement("link"),Ao(m,"link",a),No(m),p.head.appendChild(m)}}},X:function(a,o){wt.X(a,o);var p=ov;if(p&&a){var m=sr(p).hoistableScripts,t=X0(a),r=m.get(t);r||(r=p.querySelector(Vv(t)),r||(a=Ka({src:a,async:!0},o),(o=xp.get(t))&&F4(a,o),r=p.createElement("script"),No(r),Ao(r,"link",a),p.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},m.set(t,r))}},S:function(a,o,p){wt.S(a,o,p);var m=ov;if(m&&a){var t=sr(m).hoistableStyles,r=Y0(a);o=o||"default";var v=t.get(r);if(!v){var b={loading:Tr,preload:null};if(v=m.querySelector(xv(r)))b.loading=P2|up;else{a=Ka({rel:"stylesheet",href:a,"data-precedence":o},p),(p=xp.get(r))&&h4(a,p);var w=v=m.createElement("link");No(w),Ao(w,"link",a),w._p=new Promise(function(f,Y){w.onload=f,w.onerror=Y}),w.addEventListener("load",function(){b.loading|=P2}),w.addEventListener("error",function(){b.loading|=rc}),b.loading|=up,p1(v,o,m)}v={type:"stylesheet",instance:v,count:1,state:b},t.set(r,v)}}},M:function(a,o){wt.M(a,o);var p=ov;if(p&&a){var m=sr(p).hoistableScripts,t=X0(a),r=m.get(t);r||(r=p.querySelector(Vv(t)),r||(a=Ka({src:a,async:!0,type:"module"},o),(o=xp.get(t))&&F4(a,o),r=p.createElement("script"),No(r),Ao(r,"link",a),p.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},m.set(t,r))}}};var ov=typeof document>"u"?null:document,wb=null,CY=60000,IY=800,PY=500,J6=0,Y6=null,fb=null,Sr=pJ,A2={$$typeof:Km,Provider:null,Consumer:null,_currentValue:Sr,_currentValue2:Sr,_threadCount:0},wc="%c%s%c",fc="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",ic="",ib=" ",AY=Function.prototype.bind,lc=!1,cc=null,zc=null,$c=null,Jc=null,Yc=null,Xc=null,Zc=null,Gc=null,_c=null,qc=null;cc=function(a,o,p,m){o=l(a,o),o!==null&&(p=Z(o.memoizedState,p,0,m),o.memoizedState=p,o.baseState=p,a.memoizedProps=Ka({},a.memoizedProps),p=uo(a,2),p!==null&&co(p,a,2))},zc=function(a,o,p){o=l(a,o),o!==null&&(p=M(o.memoizedState,p,0),o.memoizedState=p,o.baseState=p,a.memoizedProps=Ka({},a.memoizedProps),p=uo(a,2),p!==null&&co(p,a,2))},$c=function(a,o,p,m){o=l(a,o),o!==null&&(p=_(o.memoizedState,p,m),o.memoizedState=p,o.baseState=p,a.memoizedProps=Ka({},a.memoizedProps),p=uo(a,2),p!==null&&co(p,a,2))},Jc=function(a,o,p){a.pendingProps=Z(a.memoizedProps,o,0,p),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=uo(a,2),o!==null&&co(o,a,2)},Yc=function(a,o){a.pendingProps=M(a.memoizedProps,o,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=uo(a,2),o!==null&&co(o,a,2)},Xc=function(a,o,p){a.pendingProps=_(a.memoizedProps,o,p),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=uo(a,2),o!==null&&co(o,a,2)},Zc=function(a){var o=uo(a,2);o!==null&&co(o,a,2)},Gc=function(a){var o=kb(),p=uo(a,o);p!==null&&co(p,a,o)},_c=function(a){B=a},qc=function(a){O=a};var lb=!0,cb=null,X6=!1,jt=null,st=null,et=null,T2=new Map,S2=new Map,ar=[],TY="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(" "),zb=null;if(b1.prototype.render=T4.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error("Cannot update an unmounted root.");var p=arguments;typeof p[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()."):j(p[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 p[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),p=a;var m=o.current,t=qp(m);g4(m,t,p,o,null,null)},b1.prototype.unmount=T4.prototype.unmount=function(){var a=arguments;if(typeof a[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()."),a=this._internalRoot,a!==null){this._internalRoot=null;var o=a.containerInfo;(ya&(Lo|Rp))!==Co&&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."),g4(a.current,2,null,a,null,null),z0(),o[Ot]=null}},b1.prototype.unstable_scheduleHydration=function(a){if(a){var o=h6();a={blockedOn:null,target:a,priority:o};for(var p=0;p<ar.length&&o!==0&&o<ar[p].priority;p++);ar.splice(p,0,a),p===0&&L8(a)}},function(){var a=pv.version;if(a!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
208
|
-
- react: `+(a+`
|
|
209
|
-
- react-dom: 19.2.4
|
|
210
|
-
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"),Fa.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0){if(typeof a.render==="function")throw Error("Unable to find node on an unmounted component.");throw a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a)}return a=Na(o),a=a!==null?Ma(a):null,a=a===null?null:a.stateNode,a},!function(){var a={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.2.4"};return a.overrideHookState=cc,a.overrideHookStateDeletePath=zc,a.overrideHookStateRenamePath=$c,a.overrideProps=Jc,a.overridePropsDeletePath=Yc,a.overridePropsRenamePath=Xc,a.scheduleUpdate=Zc,a.scheduleRetry=Gc,a.setErrorHandler=_c,a.setSuspenseHandler=qc,a.scheduleRefresh=C,a.scheduleRoot=V,a.setRefreshHandler=A,a.getCurrentFiber=V$,bz(a)}()&&Om&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var dc=window.location.protocol;/^(https?|file):$/.test(dc)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(dc==="file:"?`
|
|
211
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}xY.createRoot=function(a,o){if(!j(a))throw Error("Target container is not a DOM element.");M8(a);var p=!1,m="",t=yf,r=kf,v=Nf;return o!==null&&o!==void 0&&(o.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o==="object"&&o!==null&&o.$$typeof===Bm&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
212
|
-
|
|
213
|
-
let root = createRoot(domContainer);
|
|
214
|
-
root.render(<App />);`),o.unstable_strictMode===!0&&(p=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(t=o.onUncaughtError),o.onCaughtError!==void 0&&(r=o.onCaughtError),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),o=B8(a,1,!1,null,null,p,m,null,t,r,v,N8),a[Ot]=o.current,B4(a),new T4(o)},xY.hydrateRoot=function(a,o,p){if(!j(a))throw Error("Target container is not a DOM element.");M8(a),o===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var m=!1,t="",r=yf,v=kf,b=Nf,w=null;return p!==null&&p!==void 0&&(p.unstable_strictMode===!0&&(m=!0),p.identifierPrefix!==void 0&&(t=p.identifierPrefix),p.onUncaughtError!==void 0&&(r=p.onUncaughtError),p.onCaughtError!==void 0&&(v=p.onCaughtError),p.onRecoverableError!==void 0&&(b=p.onRecoverableError),p.formState!==void 0&&(w=p.formState)),o=B8(a,1,!0,o,p!=null?p:null,m,t,w,r,v,b,N8),o.context=K8(null),p=o.current,m=qp(p),m=Mb(m),t=Gt(m),t.callback=null,_t(p,t,m),lm(m,"hydrateRoot()",null),p=m,o.current.lanes=p,zv(o,p),dm(o),a[Ot]=o.current,B4(a),new b1(o)},xY.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Hc=Z6((vZ,Kc)=>{var VY=Xa(Bc());Kc.exports=VY});var Ia=Xa(Do(),1),vz=Xa(Hc(),1);var _6={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1,files:!1,agents:!1,builtinTools:{webSearch:!1,webFetch:!1}};function n2(l){let Z=l.operator;if(typeof Z==="boolean")return{enabled:Z};return Z}var or=Xa(Do(),1);function q6(l,Z){let{accessToken:_}=Xo(),[H,M]=or.useState([]),[O,B]=or.useState(!0),G=or.useCallback(()=>{let A={"Content-Type":"application/json"};if(_)A.Authorization=`Bearer ${_}`;return A},[_]),g=or.useCallback(async()=>{let A="/api/agents";if(Z!==void 0&&Z!==null)A+=`?project_id=${encodeURIComponent(Z)}`;let Za=await(await fetch(A,{headers:G()})).json();M(Za.agents||[]),B(!1)},[G,Z]),T=$b();or.useEffect(()=>{if(l)g()},[l,T,g]);let K=async(A)=>{await fetch("/api/agents",{method:"POST",headers:G(),body:JSON.stringify(A)}),await g()},n=async(A)=>{await fetch(`/api/agents/${A}`,{method:"DELETE",headers:G()}),await g()},F=async(A,j)=>{let Za=await fetch(`/api/agents/${A}`,{method:"PUT",headers:G(),body:JSON.stringify(j)}),aa=await Za.json();if(await g(),!Za.ok&&aa.error)return{error:aa.error};return{}},V=async(A)=>{let j=A.status==="running"?"stop":"start";M((aa)=>aa.map((wa)=>wa.id===A.id?{...wa,status:j==="start"?"starting":"stopping"}:wa));let Za=await fetch(`/api/agents/${A.id}/${j}`,{method:"POST",headers:G()});if(!Za.ok){let aa=await Za.json();return M((wa)=>wa.map((P)=>P.id===A.id?{...P,status:A.status}:P)),{error:aa.error}}return{}},C=H.filter((A)=>A.status==="running").length;return{agents:H,loading:O,runningCount:C,fetchAgents:g,createAgent:K,updateAgent:F,deleteAgent:n,toggleAgent:V}}var ur=Xa(Do(),1);function d6(l){let{accessToken:Z}=Xo(),[_,H]=ur.useState([]),M=ur.useCallback(()=>{let T={"Content-Type":"application/json"};if(Z)T.Authorization=`Bearer ${Z}`;return T},[Z]),O=ur.useCallback(async()=>{let K=await(await fetch("/api/providers",{headers:M()})).json();H(K.providers||[])},[M]);ur.useEffect(()=>{if(l)O()},[l,O]);let B=_.filter((T)=>T.hasKey);return{providers:_,configuredProviders:B,fetchProviders:O,saveKey:async(T,K)=>{let F=await(await fetch(`/api/keys/${T}/test`,{method:"POST",headers:M(),body:JSON.stringify({key:K})})).json();if(!F.valid)return{success:!1,error:F.error||"API key is invalid"};let V=await fetch(`/api/keys/${T}`,{method:"POST",headers:M(),body:JSON.stringify({key:K})});if(!V.ok)return{success:!1,error:(await V.json()).error||"Failed to save key"};return await O(),{success:!0}},deleteKey:async(T)=>{await fetch(`/api/keys/${T}`,{method:"DELETE",headers:M()}),await O()}}}var Wc=Xa(Do(),1);function Q6(){let{authFetch:l,onboardingComplete:Z,setOnboardingComplete:_}=Xo(),H=Wc.useCallback(async()=>{await l("/api/onboarding/complete",{method:"POST"}),_(!0)},[l,_]);return{isComplete:Z,setIsComplete:_,complete:H}}var no=Xa(Do(),1);var Lp=Xa(Do(),1);var Aa=Xa(po(),1),Rc=Lp.createContext(null);function Oc(){return Lp.useContext(Rc)}function Lc({children:l}){let{authFetch:Z,isAuthenticated:_,isLoading:H}=Xo(),[M,O]=Lp.useState(null),[B,G]=Lp.useState(!1),[g,T]=Lp.useState(!1),[K,n]=Lp.useState(null),F=async()=>{try{let wa=await(await Z("/api/meta-agent/status")).json();O(wa)}catch(aa){console.error("[MetaAgent] Failed to fetch status:",aa)}};Lp.useEffect(()=>{if(!H&&_)F()},[Z,_,H]);let V=async()=>{T(!0),n(null);try{let aa=await Z("/api/meta-agent/start",{method:"POST"}),wa=await aa.json();if(!aa.ok)n(wa.error||"Failed to start assistant");else await F()}catch(aa){n("Failed to start assistant")}T(!1)},C=!!(M?.enabled&&M?.available),A=M?.agent,j=!!(A?.status==="running"&&A?.port),Za={status:M,isOpen:B,isStarting:g,error:K,isAvailable:C,isRunning:j,agent:A,toggle:()=>G(!B),close:()=>G(!1),startAgent:V};return Aa.jsxDEV(Rc.Provider,{value:Za,children:l},void 0,!1,void 0,this)}function yc(){let l=Oc();if(!l?.isAvailable)return null;return Aa.jsxDEV("button",{onClick:l.toggle,className:`hidden md:flex items-center gap-2 px-3 py-2 rounded transition ${l.isOpen?"bg-[var(--color-accent)] text-white":"bg-[var(--color-bg-secondary)] hover:bg-[var(--color-surface-raised)] text-[var(--color-text-secondary)] hover:text-white"}`,title:"Apteva Assistant",children:[Aa.jsxDEV(Nc,{className:"w-5 h-5"},void 0,!1,void 0,this),Aa.jsxDEV("span",{className:"text-sm",children:"Assistant"},void 0,!1,void 0,this),l.isRunning&&Aa.jsxDEV("span",{className:"w-2 h-2 rounded-full bg-green-400"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kc(){let{theme:l}=Vr(),Z=Oc(),{currentProjectId:_,currentProject:H}=rp(),M=Uc();if(!Z?.isAvailable||!Z.isOpen)return null;let{agent:O,isRunning:B,error:G,isStarting:g,startAgent:T,close:K}=Z,n=Lp.useMemo(()=>{let F=[];if(H)F.push(`Current project: "${H.name}" (id: ${H.id})`);else if(_==="unassigned")F.push("Viewing: unassigned agents (no project)");else F.push("Viewing: All Projects");return F.join(`
|
|
215
|
-
`)},[_,H]);return Aa.jsxDEV(Aa.Fragment,{children:[Aa.jsxDEV("div",{className:"hidden md:block fixed inset-0 bg-black/20 z-40",onClick:K},void 0,!1,void 0,this),Aa.jsxDEV("div",{className:"hidden md:flex fixed top-0 right-0 h-full w-[480px] lg:w-[540px] bg-[var(--color-bg)] border-l border-[var(--color-border)] shadow-2xl z-50 flex-col",children:[Aa.jsxDEV("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[var(--color-border)] bg-[var(--color-surface)]",children:[Aa.jsxDEV("div",{className:"flex items-center gap-2",children:[Aa.jsxDEV("div",{className:`w-2 h-2 rounded-full ${B?"bg-green-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),Aa.jsxDEV("span",{className:"font-medium text-sm",children:"Apteva Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Aa.jsxDEV("button",{onClick:K,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition",children:Aa.jsxDEV(DY,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Aa.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col",children:B?Aa.jsxDEV(xr,{agentId:"default",apiUrl:`/api/agents/${O.id}`,placeholder:"Ask me anything about Apteva...",variant:"terminal",theme:l.id,showHeader:!1,context:n,onToolResult:M},void 0,!1,void 0,this):Aa.jsxDEV("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:[Aa.jsxDEV(Nc,{className:"w-12 h-12 text-[var(--color-border-light)] mb-4"},void 0,!1,void 0,this),Aa.jsxDEV("h3",{className:"font-medium mb-2",children:"Apteva Assistant"},void 0,!1,void 0,this),Aa.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-6",children:"I can help you navigate Apteva, create agents, set up MCP servers, and more."},void 0,!1,void 0,this),G&&Aa.jsxDEV("p",{className:"text-sm text-red-400 mb-4",children:G},void 0,!1,void 0,this),Aa.jsxDEV("button",{onClick:T,disabled:g,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-white px-6 py-2 rounded font-medium transition",children:g?"Starting...":"Start Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Nc({className:l="w-6 h-6"}){return Aa.jsxDEV("svg",{className:l,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Aa.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function DY(){return Aa.jsxDEV("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Aa.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var ia=Xa(po(),1);function Jb({onMenuClick:l,agents:Z=[]}){let{connected:_}=u2(),H=hc(),{projects:M,currentProjectId:O,currentProject:B,setCurrentProjectId:G,unassignedCount:g,projectsEnabled:T}=rp(),[K,n]=no.useState(!1),[F,V]=no.useState(!1),[C,A]=no.useState(0),[j,Za]=no.useState([]),aa=Mc(),{events:wa}=u2(),{accessToken:P}=Xo(),Na=no.useRef(!1),Ma=no.default.useMemo(()=>{let U={};for(let k of Z)U[k.id]=k.name;return U},[Z]),Wa=no.default.useMemo(()=>{if(!T||O===null)return null;if(O==="unassigned")return new Set(Z.filter((U)=>!U.projectId).map((U)=>U.id));return new Set(Z.filter((U)=>U.projectId===O).map((U)=>U.id))},[Z,O,T]);no.useEffect(()=>{if(Na.current||!P)return;Na.current=!0,fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${P}`}}).then((U)=>U.json()).then((U)=>A(U.count||0)).catch(()=>{})},[P]),no.useEffect(()=>{if(aa===0)return;let U=wa.find((k)=>k.level==="error"||k.category==="ERROR"||k.category==="system"&&k.type==="agent_stopped");if(U&&(!Wa||Wa.has(U.agent_id)))A((k)=>k+1)},[aa]);let ta=no.useRef(O);no.useEffect(()=>{if(ta.current===O)return;if(ta.current=O,!P)return;fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${P}`}}).then((U)=>U.json()).then((U)=>{if(!Wa)A(U.count||0);else fetch("/api/notifications?limit=200",{headers:{Authorization:`Bearer ${P}`}}).then((k)=>k.json()).then((k)=>{let h=(k.notifications||[]).filter((S)=>!S.seen&&Wa.has(S.agent_id));A(h.length)}).catch(()=>{})}).catch(()=>{})},[O,P,Wa]);let io=no.useCallback(async()=>{if(V((U)=>!U),!F)try{let U={"Content-Type":"application/json"};if(P)U.Authorization=`Bearer ${P}`;let S=(await(await fetch("/api/notifications?limit=50",{headers:U})).json()).notifications||[];if(Wa)S=S.filter((ra)=>Wa.has(ra.agent_id));if(Za(S),C>0)await fetch("/api/notifications/mark-seen",{method:"POST",headers:U,body:JSON.stringify({all:!0})}),A(0)}catch{}},[F,C,P,Wa]),L=(U)=>{G(U),n(!1)},ma=()=>{if(O===null)return"All Projects";if(O==="unassigned")return"Unassigned";return B?.name||"Select Project"},y=()=>{if(O===null)return"var(--color-text-muted)";if(O==="unassigned")return"var(--color-text-secondary)";return B?.color||"#6366f1"};return ia.jsxDEV("header",{className:"px-4 md:px-6 py-4 flex-shrink-0",style:{borderBottom:"1px solid var(--color-border)"},children:ia.jsxDEV("div",{className:"flex items-center justify-between",children:[ia.jsxDEV("div",{className:"flex items-center gap-3",children:[ia.jsxDEV("button",{onClick:l,className:"p-2 -ml-2 transition md:hidden",style:{color:"var(--color-text-muted)"},children:ia.jsxDEV(Fc,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),ia.jsxDEV("div",{className:"flex items-center gap-2",children:[ia.jsxDEV("span",{style:{color:"var(--color-accent)"},children:">_"},void 0,!1,void 0,this),ia.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T&&M.length>0&&ia.jsxDEV("div",{className:"relative ml-2 md:ml-4",children:[ia.jsxDEV("button",{onClick:()=>n(!K),className:"flex items-center gap-2 px-3 py-1.5 rounded transition text-sm",style:{border:"1px solid var(--color-border-light)",backgroundColor:"var(--color-surface)"},children:[ia.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:y()}},void 0,!1,void 0,this),ia.jsxDEV("span",{className:"hidden sm:inline max-w-[120px] md:max-w-[180px] truncate",children:ma()},void 0,!1,void 0,this),ia.jsxDEV(gc,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K&&ia.jsxDEV("div",{className:"absolute left-0 top-full mt-1 w-56 rounded-lg shadow-xl z-50",style:{backgroundColor:"var(--color-surface)",border:"1px solid var(--color-border-light)"},children:ia.jsxDEV("div",{className:"py-1 max-h-64 overflow-y-auto",children:[ia.jsxDEV("button",{onClick:()=>L(null),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:O===null?"var(--color-surface-raised)":"transparent",color:O===null?"var(--color-accent)":"var(--color-text)"},children:[ia.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:"var(--color-text-muted)"}},void 0,!1,void 0,this),"All Projects"]},void 0,!0,void 0,this),M.map((U)=>ia.jsxDEV("button",{onClick:()=>L(U.id),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:O===U.id?"var(--color-surface-raised)":"transparent",color:O===U.id?"var(--color-accent)":"var(--color-text)"},children:[ia.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:U.color}},void 0,!1,void 0,this),ia.jsxDEV("span",{className:"truncate",children:U.name},void 0,!1,void 0,this),ia.jsxDEV("span",{className:"ml-auto text-xs",style:{color:"var(--color-text-muted)"},children:U.agentCount},void 0,!1,void 0,this)]},U.id,!0,void 0,this)),g>0&&ia.jsxDEV("button",{onClick:()=>L("unassigned"),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:O==="unassigned"?"var(--color-surface-raised)":"transparent",color:O==="unassigned"?"var(--color-accent)":"var(--color-text)"},children:[ia.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:"var(--color-text-secondary)"}},void 0,!1,void 0,this),ia.jsxDEV("span",{className:"truncate",children:"Unassigned"},void 0,!1,void 0,this),ia.jsxDEV("span",{className:"ml-auto text-xs",style:{color:"var(--color-text-muted)"},children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ia.jsxDEV("div",{className:"flex items-center gap-3 md:gap-4",children:[ia.jsxDEV("div",{className:"flex items-center gap-2",children:[ia.jsxDEV("span",{className:`w-2 h-2 rounded-full ${_?"bg-green-400":"bg-red-400"}`},void 0,!1,void 0,this),ia.jsxDEV("span",{className:"text-xs hidden sm:inline",style:{color:"var(--color-text-muted)"},children:_?"Live":"Offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ia.jsxDEV("div",{className:"relative",children:[ia.jsxDEV("button",{onClick:io,className:"relative p-2 transition rounded",style:{color:"var(--color-text-muted)"},children:[ia.jsxDEV(Cc,{className:"w-5 h-5"},void 0,!1,void 0,this),C>0&&ia.jsxDEV("span",{className:"absolute flex items-center justify-center bg-red-500 text-white font-bold rounded-full pointer-events-none",style:{top:2,right:2,fontSize:9,lineHeight:1,minWidth:16,height:16,padding:"0 4px"},children:C>99?"99+":C},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F&&ia.jsxDEV(ia.Fragment,{children:[ia.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>V(!1)},void 0,!1,void 0,this),ia.jsxDEV("div",{className:"absolute right-0 top-full mt-1 w-80 rounded-lg shadow-xl z-50 max-h-96 overflow-y-auto",style:{backgroundColor:"var(--color-surface)",border:"1px solid var(--color-border-light)"},children:[ia.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",style:{borderBottom:"1px solid var(--color-border-light)"},children:[ia.jsxDEV("span",{className:"text-sm font-medium",children:"Notifications"},void 0,!1,void 0,this),j.length>0&&ia.jsxDEV("span",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[j.length," recent"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.length===0?ia.jsxDEV("div",{className:"px-4 py-8 text-center text-sm",style:{color:"var(--color-text-muted)"},children:"No notifications"},void 0,!1,void 0,this):ia.jsxDEV("div",{className:"py-1",children:j.map((U)=>ia.jsxDEV("div",{className:"px-4 py-3 transition",style:{borderBottom:"1px solid var(--color-border)",backgroundColor:!U.seen?"var(--color-bg-secondary)":"transparent"},children:[ia.jsxDEV("div",{className:"flex items-center gap-2 mb-1",children:[ia.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${!U.seen?U.level==="error"||U.category==="ERROR"?"bg-red-400":"":""}`,style:{backgroundColor:!U.seen?U.level==="error"||U.category==="ERROR"?void 0:"var(--color-accent)":"var(--color-surface-raised)"}},void 0,!1,void 0,this),ia.jsxDEV("span",{className:"text-xs font-medium truncate",style:{color:!U.seen?"var(--color-text)":"var(--color-text-muted)"},children:U.category==="system"&&U.type==="agent_stopped"?"Agent Stopped":U.category==="ERROR"?"Error":`${U.category} / ${U.type}`},void 0,!1,void 0,this),ia.jsxDEV("span",{className:"text-[10px] ml-auto flex-shrink-0",style:{color:"var(--color-text-faint)"},children:EY(U.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ia.jsxDEV("div",{className:"text-xs truncate",style:{color:!U.seen?"var(--color-text-secondary)":"var(--color-text-muted)"},children:U.error||U.data?.message||U.data?.error||`${U.type} event`},void 0,!1,void 0,this),ia.jsxDEV("div",{className:"text-[10px] mt-1",style:{color:"var(--color-text-faint)"},children:Ma[U.agent_id]||U.agent_id.slice(0,8)},void 0,!1,void 0,this)]},U.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ia.jsxDEV(yc,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function EY(l){let Z=Date.now()-new Date(l).getTime(),_=Math.floor(Z/60000);if(_<1)return"just now";if(_<60)return`${_}m ago`;let H=Math.floor(_/60);if(H<24)return`${H}h ago`;return`${Math.floor(H/24)}d ago`}var nc=Xa(Do(),1);var ca=Xa(po(),1);function Zb({route:l,agentCount:Z,taskCount:_,onNavigate:H,isOpen:M,onClose:O}){let{user:B,logout:G}=Xo(),[g,T]=nc.useState(!1),K=(F)=>{H(F),O?.()},n=async()=>{await G(),T(!1)};return ca.jsxDEV(ca.Fragment,{children:[M&&ca.jsxDEV("div",{className:"fixed inset-0 bg-black/60 z-40 md:hidden",onClick:O},void 0,!1,void 0,this),ca.jsxDEV("aside",{className:`
|
|
216
|
-
fixed inset-y-0 left-0 z-50 w-64 p-4 flex flex-col transform transition-transform duration-200 ease-in-out
|
|
217
|
-
md:relative md:w-56 md:translate-x-0 md:z-auto
|
|
218
|
-
${M?"translate-x-0":"-translate-x-full"}
|
|
219
|
-
`,style:{backgroundColor:"var(--color-bg)",borderRight:"1px solid var(--color-border)"},children:[ca.jsxDEV("div",{className:"flex items-center justify-between mb-4 md:hidden",children:[ca.jsxDEV("div",{className:"flex items-center gap-2",children:[ca.jsxDEV("span",{style:{color:"var(--color-accent)"},children:">_"},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"text-lg tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ca.jsxDEV("button",{onClick:O,className:"p-2 transition",style:{color:"var(--color-text-muted)"},children:ca.jsxDEV(it,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ca.jsxDEV("nav",{className:"space-y-1 flex-1",children:[ca.jsxDEV(Vp,{icon:ca.jsxDEV(B6,{},void 0,!1,void 0,this),label:"Dashboard",active:l==="dashboard",onClick:()=>K("dashboard")},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(K6,{},void 0,!1,void 0,this),label:"Agents",active:l==="agents",onClick:()=>K("agents"),badge:Z>0?String(Z):void 0},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(Sc,{},void 0,!1,void 0,this),label:"Threads",active:l==="threads",onClick:()=>K("threads")},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(Xb,{},void 0,!1,void 0,this),label:"Activity",active:l==="activity",onClick:()=>K("activity")},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(hm,{},void 0,!1,void 0,this),label:"Tasks",active:l==="tasks",onClick:()=>K("tasks"),badge:_&&_>0?String(_):void 0},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(lt,{},void 0,!1,void 0,this),label:"MCP",active:l==="mcp",onClick:()=>K("mcp")},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(Yb,{},void 0,!1,void 0,this),label:"Skills",active:l==="skills",onClick:()=>K("skills")},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(Tc,{},void 0,!1,void 0,this),label:"Connections",active:l==="connections",onClick:()=>K("connections")},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(Ac,{},void 0,!1,void 0,this),label:"Tests",active:l==="tests",onClick:()=>K("tests")},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(Ic,{},void 0,!1,void 0,this),label:"Telemetry",active:l==="telemetry",onClick:()=>K("telemetry")},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(Pc,{},void 0,!1,void 0,this),label:"API",active:l==="api",onClick:()=>K("api")},void 0,!1,void 0,this),ca.jsxDEV(Vp,{icon:ca.jsxDEV(H6,{},void 0,!1,void 0,this),label:"Settings",active:l==="settings",onClick:()=>K("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B&&ca.jsxDEV("div",{className:"relative pt-3 mt-3",style:{borderTop:"1px solid var(--color-border)"},children:[ca.jsxDEV("button",{onClick:()=>T(!g),className:"w-full flex items-center gap-3 px-3 py-2 rounded transition",style:{color:"var(--color-text)"},onMouseEnter:(F)=>F.currentTarget.style.backgroundColor="var(--color-surface)",onMouseLeave:(F)=>F.currentTarget.style.backgroundColor="transparent",children:[ca.jsxDEV("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-black font-medium text-sm flex-shrink-0",style:{backgroundColor:"var(--color-accent)"},children:B.username.charAt(0).toUpperCase()},void 0,!1,void 0,this),ca.jsxDEV("div",{className:"flex-1 min-w-0 text-left",children:[ca.jsxDEV("p",{className:"text-sm font-medium truncate",children:B.username},void 0,!1,void 0,this),ca.jsxDEV("p",{className:"text-xs",style:{color:"var(--color-text-faint)"},children:B.role},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g&&ca.jsxDEV(ca.Fragment,{children:[ca.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>T(!1)},void 0,!1,void 0,this),ca.jsxDEV("div",{className:"absolute left-3 bottom-full mb-1 w-48 rounded-lg shadow-xl z-50",style:{backgroundColor:"var(--color-surface)",border:"1px solid var(--color-border-light)"},children:ca.jsxDEV("button",{onClick:n,className:"w-full px-4 py-2.5 text-left text-sm text-red-400 transition rounded-lg",onMouseEnter:(F)=>F.currentTarget.style.backgroundColor="var(--color-surface-raised)",onMouseLeave:(F)=>F.currentTarget.style.backgroundColor="transparent",children:"Sign out"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Vp({icon:l,label:Z,active:_,onClick:H,badge:M}){return ca.jsxDEV("button",{onClick:H,className:"w-full flex items-center gap-3 px-3 py-2 rounded font-medium transition",style:{backgroundColor:_?"var(--color-surface)":"transparent",color:_?"var(--color-text)":"var(--color-text-muted)"},onMouseEnter:(O)=>{if(!_)O.currentTarget.style.backgroundColor="var(--color-surface)",O.currentTarget.style.color="var(--color-text-secondary)"},onMouseLeave:(O)=>{if(!_)O.currentTarget.style.backgroundColor="transparent",O.currentTarget.style.color="var(--color-text-muted)"},children:[l,Z,M&&ca.jsxDEV("span",{className:"ml-auto text-xs px-2 py-0.5 rounded-full",style:{backgroundColor:"var(--color-surface-raised)",color:"var(--color-text-secondary)"},children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var x2=Xa(po(),1);function Gb({message:l,onDismiss:Z}){return x2.jsxDEV("div",{className:"bg-red-500/10 border-b border-red-500/30 px-6 py-3 text-red-400 text-sm flex items-center justify-between",children:[x2.jsxDEV("span",{children:l},void 0,!1,void 0,this),x2.jsxDEV("button",{onClick:Z,className:"hover:text-red-300",children:x2.jsxDEV(it,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var V2=Xa(Do(),1);var Uo=Xa(po(),1);function _b(){let{login:l}=Xo(),[Z,_]=V2.useState(""),[H,M]=V2.useState(""),[O,B]=V2.useState(null),[G,g]=V2.useState(!1);return Uo.jsxDEV("div",{className:"min-h-screen bg-[var(--color-bg)] text-[var(--color-text)] font-mono flex items-center justify-center p-8",children:Uo.jsxDEV("div",{className:"w-full max-w-md",children:[Uo.jsxDEV("div",{className:"text-center mb-8",children:[Uo.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[Uo.jsxDEV("span",{className:"text-[var(--color-accent)] text-3xl",children:">_"},void 0,!1,void 0,this),Uo.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Uo.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Uo.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded-lg border border-[var(--color-border)] p-8",children:[Uo.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome back"},void 0,!1,void 0,this),Uo.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Sign in to continue to apteva"},void 0,!1,void 0,this),Uo.jsxDEV("form",{onSubmit:async(K)=>{K.preventDefault(),B(null),g(!0);let n=await l(Z,H);if(!n.success)B(n.error||"Login failed");g(!1)},className:"space-y-4",children:[Uo.jsxDEV("div",{children:[Uo.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Username"},void 0,!1,void 0,this),Uo.jsxDEV("input",{id:"username",type:"text",value:Z,onChange:(K)=>_(K.target.value),placeholder:"Enter your username",autoFocus:!0,required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Uo.jsxDEV("div",{children:[Uo.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Password"},void 0,!1,void 0,this),Uo.jsxDEV("input",{id:"password",type:"password",value:H,onChange:(K)=>M(K.target.value),placeholder:"Enter your password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O&&Uo.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:O},void 0,!1,void 0,this),Uo.jsxDEV("button",{type:"submit",disabled:G||!Z||!H,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:G?"Signing in...":"Sign In"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var pr=Xa(Do(),1),Ea=Xa(po(),1);function qb({onComplete:l}){let[Z,_]=pr.useState(""),[H,M]=pr.useState(""),[O,B]=pr.useState(""),[G,g]=pr.useState(""),[T,K]=pr.useState(!1),[n,F]=pr.useState(null),[V,C]=pr.useState(!1);return Ea.jsxDEV(Ea.Fragment,{children:[Ea.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Create your account"},void 0,!1,void 0,this),Ea.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Set up your admin account to get started with apteva."},void 0,!1,void 0,this),Ea.jsxDEV("form",{onSubmit:async(j)=>{if(j.preventDefault(),F(null),H!==O){F("Passwords do not match");return}C(!0);try{let Za=await fetch("/api/onboarding/user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Z,password:H,...G&&{email:G}})}),aa=await Za.json();if(!Za.ok){F(aa.error||"Failed to create account"),C(!1);return}let wa=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:Z,password:H})});if(!wa.ok){F("Account created but login failed. Please try logging in."),C(!1);return}let P=await wa.json();if(P.accessToken)sessionStorage.setItem("accessToken",P.accessToken);l({username:Z})}catch(Za){F("Failed to create account"),C(!1)}},className:"space-y-4",children:[Ea.jsxDEV("div",{children:[Ea.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Username"},void 0,!1,void 0,this),Ea.jsxDEV("input",{id:"username",type:"text",value:Z,onChange:(j)=>_(j.target.value),placeholder:"Choose a username",autoFocus:!0,required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),Ea.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"3-20 characters, letters, numbers, underscore"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ea.jsxDEV("div",{children:[Ea.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Password"},void 0,!1,void 0,this),Ea.jsxDEV("input",{id:"password",type:"password",value:H,onChange:(j)=>M(j.target.value),placeholder:"Enter a password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),Ea.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Min 8 characters, uppercase, lowercase, number"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ea.jsxDEV("div",{children:[Ea.jsxDEV("label",{htmlFor:"confirmPassword",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Confirm Password"},void 0,!1,void 0,this),Ea.jsxDEV("input",{id:"confirmPassword",type:"password",value:O,onChange:(j)=>B(j.target.value),placeholder:"Confirm your password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!T?Ea.jsxDEV("button",{type:"button",onClick:()=>K(!0),className:"text-sm text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition",children:"+ Add email for password recovery (optional)"},void 0,!1,void 0,this):Ea.jsxDEV("div",{children:[Ea.jsxDEV("label",{htmlFor:"email",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:["Email ",Ea.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ea.jsxDEV("input",{id:"email",type:"email",value:G,onChange:(j)=>g(j.target.value),placeholder:"For password recovery only",className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),Ea.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Only used for password recovery, never shared"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n&&Ea.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:n},void 0,!1,void 0,this),Ea.jsxDEV("button",{type:"submit",disabled:V||!Z||!H||!O,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:V?"Creating account...":"Create Account"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ea.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-4 text-center",children:"This will be your admin account with full access to apteva."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Dp=Xa(Do(),1);var e=Xa(po(),1);function D2({onComplete:l,needsAccount:Z=!1}){let[_,H]=Dp.useState(Z?0:1),[M,O]=Dp.useState([]),[B,G]=Dp.useState(null),[g,T]=Dp.useState(""),[K,n]=Dp.useState(!1),[F,V]=Dp.useState(!1),[C,A]=Dp.useState(null),[j,Za]=Dp.useState(null),[aa,wa]=Dp.useState(!1),P=()=>{let ma=sessionStorage.getItem("accessToken");return ma?{Authorization:`Bearer ${ma}`}:{}};Dp.useEffect(()=>{if(Z&&!aa&&_===0)return;fetch("/api/providers",{headers:P()}).then((ma)=>ma.json()).then((ma)=>{let y=(ma.providers||[]).filter((U)=>U.type==="llm");O(y)})},[aa,_,Z]);let Na=M.filter((ma)=>ma.hasKey),Ma=async()=>{if(!B||!g)return;n(!0),A(null),Za(null);try{V(!0);let y=await(await fetch(`/api/keys/${B}/test`,{method:"POST",headers:{"Content-Type":"application/json",...P()},body:JSON.stringify({key:g})})).json();if(V(!1),!y.valid){A(y.error||"API key is invalid"),n(!1);return}let U=await fetch(`/api/keys/${B}`,{method:"POST",headers:{"Content-Type":"application/json",...P()},body:JSON.stringify({key:g})}),k=await U.json();if(!U.ok)A(k.error||"Failed to save key");else{Za("API key saved successfully!"),T("");let S=await(await fetch("/api/providers",{headers:P()})).json();O(S.providers||[]),G(null)}}catch(ma){A("Failed to save key")}n(!1)},Wa=async()=>{try{let ma=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json",...P()},body:JSON.stringify({name:"My Project",description:"Default project for organizing agents",color:"#f97316"})});if(ma.ok){let y=await ma.json();if(y.project?.id)localStorage.setItem("apteva_current_project",y.project.id)}}catch(ma){console.error("Failed to create default project:",ma)}await fetch("/api/onboarding/complete",{method:"POST",headers:P()}),l()},ta=()=>{wa(!0),H(1)},io=Z?3:2,L=Z?_:_-1;return e.jsxDEV("div",{className:"min-h-screen bg-[var(--color-bg)] text-[var(--color-text)] font-mono flex items-center justify-center p-8",children:e.jsxDEV("div",{className:"w-full max-w-2xl",children:[e.jsxDEV("div",{className:"text-center mb-8",children:[e.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[e.jsxDEV("span",{className:"text-[var(--color-accent)] text-3xl",children:">_"},void 0,!1,void 0,this),e.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[Z&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=0?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),e.jsxDEV("div",{className:`w-16 h-0.5 ${_>=1?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=1?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),e.jsxDEV("div",{className:`w-16 h-0.5 ${_>=2?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),e.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=2?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded-lg border border-[var(--color-border)] p-8",children:[_===0&&Z&&e.jsxDEV(qb,{onComplete:ta},void 0,!1,void 0,this),_===1&&e.jsxDEV(jY,{providers:M,configuredProviders:Na,selectedProvider:B,apiKey:g,saving:K,testing:F,error:C,success:j,onSelectProvider:G,onApiKeyChange:T,onSaveKey:Ma,onContinue:()=>H(2)},void 0,!1,void 0,this),_===2&&e.jsxDEV(eY,{configuredProviders:Na,onAddMore:()=>H(1),onComplete:Wa},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function jY({providers:l,configuredProviders:Z,selectedProvider:_,apiKey:H,saving:M,testing:O,error:B,success:G,onSelectProvider:g,onApiKeyChange:T,onSaveKey:K,onContinue:n}){let F=l.find((V)=>V.id===_);if(_&&F)return e.jsxDEV(e.Fragment,{children:[e.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",F.name," Key"]},void 0,!0,void 0,this),e.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Enter your API key below. It will be encrypted and stored locally."},void 0,!1,void 0,this),e.jsxDEV("div",{className:"mb-6",children:[e.jsxDEV("div",{className:"p-4 rounded border border-[var(--color-accent)] bg-[var(--color-accent-5)] mb-4",children:e.jsxDEV("div",{className:"flex items-center justify-between",children:[e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"font-medium",children:F.name},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[F.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("a",{href:F.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"Get API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),e.jsxDEV("div",{className:"space-y-3",children:[e.jsxDEV("input",{type:"password",value:H,onChange:(V)=>T(V.target.value),placeholder:"Enter your API key...",autoFocus:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)] text-lg"},void 0,!1,void 0,this),B&&e.jsxDEV("p",{className:"text-red-400 text-sm",children:B},void 0,!1,void 0,this),G&&e.jsxDEV("p",{className:"text-green-400 text-sm",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"flex gap-3",children:[e.jsxDEV("button",{onClick:()=>{g(null),T("")},className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-text-muted)] px-4 py-3 rounded font-medium transition",children:"Back"},void 0,!1,void 0,this),e.jsxDEV("button",{onClick:K,disabled:!H||M,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:O?"Testing...":M?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return e.jsxDEV(e.Fragment,{children:[e.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"To get started, you'll need to add at least one AI provider API key. Your keys are encrypted and stored locally."},void 0,!1,void 0,this),e.jsxDEV("div",{className:"space-y-3 mb-6",children:l.map((V)=>e.jsxDEV(sY,{provider:V,selected:!1,onSelect:()=>!V.hasKey&&g(V.id)},V.id,!1,void 0,this))},void 0,!1,void 0,this),e.jsxDEV("button",{onClick:n,disabled:Z.length===0,className:"w-full bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)] disabled:opacity-50 disabled:cursor-not-allowed px-4 py-3 rounded font-medium transition",children:Z.length===0?"Add at least one API key to continue":`Continue with ${Z.length} provider${Z.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sY({provider:l,selected:Z,onSelect:_}){return e.jsxDEV("div",{onClick:_,className:`p-4 rounded border transition cursor-pointer ${l.hasKey?"border-green-500/30 bg-green-500/5":Z?"border-[var(--color-accent)] bg-[var(--color-accent-5)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:e.jsxDEV("div",{className:"flex items-center justify-between",children:[e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"font-medium",children:l.name},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[l.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),l.hasKey?e.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[e.jsxDEV(db,{},void 0,!1,void 0,this),"Configured (",l.keyHint,")"]},void 0,!0,void 0,this):e.jsxDEV("a",{href:l.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(H)=>H.stopPropagation(),className:"text-sm text-[#3b82f6] hover:underline",children:"Get API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function eY({configuredProviders:l,onAddMore:Z,onComplete:_}){return e.jsxDEV(e.Fragment,{children:[e.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:["You've configured ",l.length," provider",l.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"space-y-2 mb-6",children:l.map((H)=>e.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[var(--color-bg)] rounded",children:[e.jsxDEV(db,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),e.jsxDEV("span",{children:H.name},void 0,!1,void 0,this),e.jsxDEV("span",{className:"text-[var(--color-text-muted)] text-sm",children:["(",H.keyHint,")"]},void 0,!0,void 0,this)]},H.id,!0,void 0,this))},void 0,!1,void 0,this),e.jsxDEV("div",{className:"flex gap-3",children:[e.jsxDEV("button",{onClick:Z,className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-accent)] px-4 py-3 rounded font-medium transition",children:"Add More"},void 0,!1,void 0,this),e.jsxDEV("button",{onClick:_,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] text-black px-4 py-3 rounded font-medium transition",children:"Start Using apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var uc=Xa(Do(),1);var mo=Xa(po(),1),oX=[{key:"memory",icon:mv,label:"Memory"},{key:"tasks",icon:hm,label:"Tasks"},{key:"files",icon:bv,label:"Files"},{key:"vision",icon:tv,label:"Vision"},{key:"operator",icon:rv,label:"Operator"},{key:"mcp",icon:lt,label:"MCP"},{key:"realtime",icon:vv,label:"Realtime"},{key:"agents",icon:wv,label:"Multi-Agent"}],Bb=uc.default.memo(function({agent:Z,selected:_,onSelect:H,onToggle:M,showProject:O}){let B=oX.filter((C)=>Z.features?.[C.key]),G=Z.mcpServerDetails||[],g=Z.skillDetails||[],{isActive:T,label:K}=Qb(Z.id),{projects:n}=rp(),F=Z.projectId?n.find((C)=>C.id===Z.projectId):null,V=Z.subscriptions||[];return mo.jsxDEV("div",{onClick:H,className:`bg-[var(--color-surface)] rounded p-5 border transition cursor-pointer flex flex-col h-full ${_?"border-[var(--color-accent)]":"border-[var(--color-border)] hover:border-[var(--color-border-light)]"}`,children:[mo.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[mo.jsxDEV("div",{children:[mo.jsxDEV("h3",{className:"font-semibold text-lg",children:Z.name},void 0,!1,void 0,this),mo.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[Z.provider," / ",Z.model,Z.port&&mo.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:[" · :",Z.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),O&&F&&mo.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] flex items-center gap-1.5 mt-1",children:[mo.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:F.color}},void 0,!1,void 0,this),F.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),mo.jsxDEV(pX,{status:Z.status,isActive:T&&Z.status==="running",activityLabel:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B.length>0&&mo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:B.map(({key:C,icon:A,label:j})=>mo.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-[var(--color-accent-10)] text-[var(--color-accent-70)] text-xs",title:j,children:[mo.jsxDEV(A,{className:"w-3 h-3"},void 0,!1,void 0,this),j]},C,!0,void 0,this))},void 0,!1,void 0,this),G.length>0&&mo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:G.map((C)=>{let A=C.type==="http"&&C.url||C.status==="running";return mo.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${A?"bg-green-500/10 text-green-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`MCP: ${C.name} (${A?"available":C.status})`,children:[mo.jsxDEV(lt,{className:"w-3 h-3"},void 0,!1,void 0,this),C.name]},C.id,!0,void 0,this)})},void 0,!1,void 0,this),g.length>0&&mo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:g.map((C)=>mo.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${C.enabled?"bg-purple-500/10 text-purple-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`Skill: ${C.name} v${C.version}`,children:[mo.jsxDEV(Yb,{className:"w-3 h-3"},void 0,!1,void 0,this),C.name]},C.id,!0,void 0,this))},void 0,!1,void 0,this),V.length>0&&mo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:V.map((C)=>mo.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${C.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`Trigger: ${C.trigger_slug.replace(/_/g," ")}`,children:[mo.jsxDEV(Xb,{className:"w-3 h-3"},void 0,!1,void 0,this),C.trigger_slug.replace(/_/g," ")]},C.id,!0,void 0,this))},void 0,!1,void 0,this),mo.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] line-clamp-2 mb-4 flex-1",children:Z.systemPrompt},void 0,!1,void 0,this),mo.jsxDEV("button",{onClick:M,disabled:Z.status==="starting"||Z.status==="stopping",className:`w-full px-3 py-1.5 rounded text-sm font-medium transition mt-auto ${Z.status==="starting"||Z.status==="stopping"?"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)] cursor-wait":Z.status==="running"?"bg-red-500/15 text-red-500 hover:bg-red-500/25 border border-red-500/20":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:Z.status==="starting"?"Starting...":Z.status==="stopping"?"Stopping...":Z.status==="running"?"Stop":"Start"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});function pX({status:l,isActive:Z,activityLabel:_}){if(l==="running"&&Z&&_)return mo.jsxDEV("span",{className:"px-2 py-1 rounded text-xs font-medium bg-green-500/20 text-green-400 animate-pulse",children:_},void 0,!1,void 0,this);return mo.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ${l==="starting"||l==="stopping"?"bg-yellow-500/20 text-yellow-400 animate-pulse":l==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,children:l},void 0,!1,void 0,this)}var E2=Xa(Do(),1);var Ja=Xa(po(),1),mX=[{key:"memory",label:"Memory",description:"Persistent recall",icon:mv},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:hm},{key:"files",label:"Files",description:"File storage and management",icon:bv},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:tv},{key:"operator",label:"Operator",description:"Browser automation",icon:rv},{key:"mcp",label:"MCP",description:"External tools/services",icon:lt},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:vv},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:wv}];function Kb({form:l,providers:Z,configuredProviders:_,onFormChange:H,onProviderChange:M,onCreate:O,onClose:B,onGoToSettings:G}){let{projects:g,currentProjectId:T}=rp(),K=Z.find((P)=>P.id===l.provider),[n,F]=E2.default.useState([]),[V,C]=E2.default.useState(!1);E2.default.useEffect(()=>{if(l.provider==="ollama")C(!0),fetch("/api/providers/ollama/models").then((P)=>P.json()).then((P)=>{if(P.models&&P.models.length>0){if(F(P.models.map((Na)=>({value:Na.value,label:Na.label||Na.value}))),!l.model&&P.models.length>0)H({...l,model:P.models[0].value})}}).catch(()=>F([])).finally(()=>C(!1))},[l.provider]);let A=_.filter((P)=>P.type==="llm").map((P)=>({value:P.id,label:P.name})),j=l.provider==="ollama"&&n.length>0?n:K?.models.map((P)=>({value:P.value,label:P.label,recommended:P.recommended}))||[],Za=g.map((P)=>({value:P.id,label:P.name}));E2.default.useEffect(()=>{if(l.projectId===void 0&&T&&T!=="unassigned")H({...l,projectId:T})},[T]);let aa=(P)=>{if(P==="agents")if(typeof l.features.agents==="boolean"?l.features.agents:l.features.agents?.enabled??!1)H({...l,features:{...l.features,agents:!1}});else H({...l,features:{...l.features,agents:{enabled:!0,group:l.projectId||void 0}}});else H({...l,features:{...l.features,[P]:!l.features[P]}})},wa=()=>{let P=l.features.agents;if(typeof P==="boolean")return P;return P?.enabled??!1};return Ja.jsxDEV(W6,{children:[Ja.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),A.length===0?Ja.jsxDEV(tX,{onGoToSettings:G},void 0,!1,void 0,this):Ja.jsxDEV(Ja.Fragment,{children:[Ja.jsxDEV("div",{className:"space-y-4",children:[Ja.jsxDEV(Dr,{label:"Name",children:Ja.jsxDEV("input",{type:"text",value:l.name,onChange:(P)=>H({...l,name:P.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]",placeholder:"My Agent"},void 0,!1,void 0,this)},void 0,!1,void 0,this),g.length>0&&Ja.jsxDEV(Dr,{label:"Project",children:Ja.jsxDEV(ct,{value:l.projectId||"",options:Za,onChange:(P)=>H({...l,projectId:P||null}),placeholder:"Select project..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ja.jsxDEV(Dr,{label:"Provider",children:Ja.jsxDEV(ct,{value:l.provider,options:A,onChange:M,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ja.jsxDEV(Dr,{label:"Model",children:V?Ja.jsxDEV("div",{className:"text-sm text-[var(--color-text-muted)] py-2",children:"Loading Ollama models..."},void 0,!1,void 0,this):l.provider==="ollama"&&j.length===0?Ja.jsxDEV("div",{className:"text-sm text-yellow-400/80 py-2",children:["No models found. Run ",Ja.jsxDEV("code",{className:"bg-[var(--color-surface-raised)] px-1 rounded",children:"ollama pull llama3.3"},void 0,!1,void 0,this)," to download a model."]},void 0,!0,void 0,this):Ja.jsxDEV(ct,{value:l.model,options:j,onChange:(P)=>H({...l,model:P}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ja.jsxDEV(Dr,{label:"System Prompt",children:Ja.jsxDEV("textarea",{value:l.systemPrompt,onChange:(P)=>H({...l,systemPrompt:P.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ja.jsxDEV(Dr,{label:"Features",children:Ja.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:mX.map(({key:P,label:Na,description:Ma,icon:Wa})=>{let ta=P==="agents"?wa():!!l.features[P];return Ja.jsxDEV("button",{type:"button",onClick:()=>aa(P),className:`flex items-center gap-3 p-3 rounded border text-left transition ${ta?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[Ja.jsxDEV(Wa,{className:`w-5 h-5 flex-shrink-0 ${ta?"text-[var(--color-accent)]":"text-[var(--color-text-muted)]"}`},void 0,!1,void 0,this),Ja.jsxDEV("div",{className:"flex-1 min-w-0",children:[Ja.jsxDEV("div",{className:`text-sm font-medium ${ta?"text-[var(--color-accent)]":""}`,children:Na},void 0,!1,void 0,this),Ja.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:Ma},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},P,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),l.provider==="anthropic"&&Ja.jsxDEV(Dr,{label:"Agent Built-in Tools",children:[Ja.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[Ja.jsxDEV("button",{type:"button",onClick:()=>H({...l,features:{...l.features,builtinTools:{...l.features.builtinTools,webSearch:!l.features.builtinTools?.webSearch}}}),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${l.features.builtinTools?.webSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[Ja.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Ja.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ja.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ja.jsxDEV("button",{type:"button",onClick:()=>H({...l,features:{...l.features,builtinTools:{...l.features.builtinTools,webFetch:!l.features.builtinTools?.webFetch}}}),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${l.features.builtinTools?.webFetch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[Ja.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Ja.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ja.jsxDEV("span",{className:"text-sm",children:"Web Fetch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ja.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ja.jsxDEV("div",{className:"flex gap-3 mt-6",children:[Ja.jsxDEV("button",{onClick:B,className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-accent)] hover:text-[var(--color-accent)] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),Ja.jsxDEV("button",{onClick:O,disabled:!l.name,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-black px-4 py-2 rounded font-medium transition",children:"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Dr({label:l,children:Z}){return Ja.jsxDEV("div",{children:[Ja.jsxDEV("label",{className:"block text-sm text-[var(--color-text-muted)] mb-1",children:l},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this)}function tX({onGoToSettings:l}){return Ja.jsxDEV("div",{className:"text-center py-6",children:[Ja.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),Ja.jsxDEV("button",{onClick:l,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] text-black px-4 py-2 rounded font-medium transition",children:"Go to Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var pa=Xa(Do(),1);var i=Xa(po(),1),rX=[{key:"memory",label:"Memory",description:"Persistent recall",icon:mv},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:hm},{key:"files",label:"Files",description:"File storage and management",icon:bv},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:tv},{key:"operator",label:"Operator",description:"Browser automation",icon:rv},{key:"mcp",label:"MCP",description:"External tools/services",icon:lt},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:vv},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:wv}];function Wb({agent:l,providers:Z,onClose:_,onStartAgent:H,onUpdateAgent:M,onDeleteAgent:O}){let[B,G]=pa.useState("chat");return i.jsxDEV("div",{className:"w-full h-full flex flex-col overflow-hidden bg-[var(--color-bg)] border-l border-[var(--color-border)]",children:[i.jsxDEV("div",{className:"border-b border-[var(--color-border)] flex items-center",children:[i.jsxDEV("div",{className:"flex-1 overflow-x-auto scrollbar-hide px-2 md:px-4",children:i.jsxDEV("div",{className:"flex gap-1",children:[i.jsxDEV(fv,{active:B==="chat",onClick:()=>G("chat"),children:"Chat"},void 0,!1,void 0,this),i.jsxDEV(fv,{active:B==="threads",onClick:()=>G("threads"),children:"Threads"},void 0,!1,void 0,this),i.jsxDEV(fv,{active:B==="tasks",onClick:()=>G("tasks"),children:"Tasks"},void 0,!1,void 0,this),i.jsxDEV(fv,{active:B==="memory",onClick:()=>G("memory"),children:"Memory"},void 0,!1,void 0,this),i.jsxDEV(fv,{active:B==="files",onClick:()=>G("files"),children:"Files"},void 0,!1,void 0,this),i.jsxDEV(fv,{active:B==="settings",onClick:()=>G("settings"),children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:_,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition p-2 flex-shrink-0 mr-2",children:i.jsxDEV(it,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[B==="chat"&&i.jsxDEV(vX,{agent:l,onStartAgent:H},void 0,!1,void 0,this),B==="threads"&&i.jsxDEV(bX,{agent:l},void 0,!1,void 0,this),B==="tasks"&&i.jsxDEV(wX,{agent:l},void 0,!1,void 0,this),B==="memory"&&i.jsxDEV(iX,{agent:l},void 0,!1,void 0,this),B==="files"&&i.jsxDEV(lX,{agent:l},void 0,!1,void 0,this),B==="settings"&&i.jsxDEV(cX,{agent:l,providers:Z,onUpdateAgent:M,onDeleteAgent:O},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function fv({active:l,onClick:Z,children:_}){return i.jsxDEV("button",{onClick:Z,className:`px-4 py-3 text-sm font-medium border-b-2 transition ${l?"border-[var(--color-accent)] text-[var(--color-text)]":"border-transparent text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]"}`,children:_},void 0,!1,void 0,this)}function vX({agent:l,onStartAgent:Z}){let{theme:_}=Vr();if(l.status==="running"&&l.port)return i.jsxDEV(xr,{agentId:"default",apiUrl:`/api/agents/${l.id}`,placeholder:"Message this agent...",context:l.systemPrompt,variant:"terminal",theme:_.id,headerTitle:l.name},void 0,!1,void 0,this);return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("div",{className:"text-center",children:[i.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:Z,className:"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30 px-4 py-2 rounded font-medium transition",children:"Start Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function bX({agent:l}){let{theme:Z}=Vr(),[_,H]=pa.useState([]),[M,O]=pa.useState(!0),[B,G]=pa.useState(null),[g,T]=pa.useState(null),[K,n]=pa.useState([]),[F,V]=pa.useState(!1),{confirm:C,ConfirmDialog:A}=s2();pa.useEffect(()=>{H([]),T(null),G(null),O(!0)},[l.id]),pa.useEffect(()=>{if(l.status!=="running"){O(!1);return}(async()=>{try{let wa=await fetch(`/api/agents/${l.id}/threads`);if(!wa.ok)throw Error("Failed to fetch threads");let P=await wa.json();H(P.threads||[]),G(null)}catch(wa){G(wa instanceof Error?wa.message:"Failed to load threads")}finally{O(!1)}})()},[l.id,l.status]);let j=async(aa)=>{V(!0),T(aa);try{let wa=await fetch(`/api/agents/${l.id}/threads/${aa}/messages`);if(wa.ok){let P=await wa.json();n(xc(P.messages||[]))}else n([])}catch{n([])}V(!1)},Za=async(aa,wa)=>{if(wa.stopPropagation(),!await C("Delete this thread?",{confirmText:"Delete",title:"Delete Thread"}))return;try{if(await fetch(`/api/agents/${l.id}/threads/${aa}`,{method:"DELETE"}),H((Na)=>Na.filter((Ma)=>Ma.id!==aa)),g===aa)T(null)}catch{}};if(l.status!=="running")return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("p",{children:"Start the agent to view threads"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(M)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("p",{children:"Loading threads..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(B)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:i.jsxDEV("p",{children:B},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(g)return i.jsxDEV(i.Fragment,{children:[A,i.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:F?i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:"Loading messages..."},void 0,!1,void 0,this):i.jsxDEV(xr,{agentId:"default",apiUrl:`/api/agents/${l.id}`,threadId:g,initialMessages:K,placeholder:"Continue this conversation...",context:l.systemPrompt,variant:"terminal",theme:Z.id,showHeader:!0,onHeaderBack:()=>{T(null),n([])}},g,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i.jsxDEV(i.Fragment,{children:[A,i.jsxDEV("div",{className:"flex-1 overflow-auto",children:_.length===0?i.jsxDEV("div",{className:"flex items-center justify-center h-full text-[var(--color-text-muted)]",children:i.jsxDEV("p",{children:"No conversation threads yet"},void 0,!1,void 0,this)},void 0,!1,void 0,this):i.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:_.map((aa)=>i.jsxDEV("div",{onClick:()=>j(aa.id),className:"p-4 cursor-pointer hover:bg-[var(--color-surface)] transition flex items-center justify-between",children:[i.jsxDEV("div",{className:"flex-1 min-w-0",children:[i.jsxDEV("p",{className:"text-sm font-medium truncate",children:aa.title||`Thread ${aa.id.slice(0,8)}`},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:[new Date(aa.updated_at||aa.created_at).toLocaleString(),aa.message_count!==void 0&&` • ${aa.message_count} messages`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("button",{onClick:(wa)=>Za(aa.id,wa),className:"text-[var(--color-text-muted)] hover:text-red-400 text-lg ml-4",children:"×"},void 0,!1,void 0,this)]},aa.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wX({agent:l}){let{authFetch:Z}=Xo(),[_,H]=pa.useState([]),[M,O]=pa.useState(!0),[B,G]=pa.useState(null),[g,T]=pa.useState("all"),[K,n]=pa.useState(null),[F,V]=pa.useState(!1),[C,A]=pa.useState(!1),[j,Za]=pa.useState(!1),[aa,wa]=pa.useState(!1),{confirm:P,ConfirmDialog:Na}=s2(),{events:Ma}=Hb({agent_id:l.id,category:"task"});pa.useEffect(()=>{H([]),G(null),O(!0),n(null)},[l.id]);let Wa=async()=>{if(l.status!=="running"){O(!1);return}try{let k=await fetch(`/api/agents/${l.id}/tasks?status=${g}`);if(!k.ok)throw Error("Failed to fetch tasks");let h=await k.json();H(h.tasks||[]),G(null)}catch(k){G(k instanceof Error?k.message:"Failed to load tasks")}finally{O(!1)}},ta=async(k)=>{n(k),V(!0);try{let h=await Z(`/api/tasks/${k.agentId||l.id}/${k.id}`);if(h.ok){let S=await h.json();if(S.task)n({...S.task,agentId:k.agentId||l.id,agentName:k.agentName||l.name})}}catch(h){console.error("Failed to fetch task details:",h)}finally{V(!1)}},io=async()=>{if(!K||j)return;Za(!0);try{await Z(`/api/tasks/${l.id}/${K.id}/execute`,{method:"POST"}),n(null),Wa()}catch(k){console.error("Failed to execute task:",k)}finally{Za(!1)}},L=async()=>{if(!K||aa)return;if(!await P(`Are you sure you want to delete "${K.title}"?`,{title:"Delete Task",confirmText:"Delete",confirmVariant:"danger"}))return;wa(!0);try{await Z(`/api/tasks/${l.id}/${K.id}`,{method:"DELETE"}),n(null),Wa()}catch(h){console.error("Failed to delete task:",h)}finally{wa(!1)}},ma=async(k)=>{try{let h={...k};if(k.execute_at)h.execute_at=new Date(k.execute_at).toISOString();if((await Z(`/api/tasks/${l.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)})).ok)A(!1),Wa()}catch(h){console.error("Failed to create task:",h)}};pa.useEffect(()=>{O(!0),Wa()},[l.id,l.status,g,Ma.length]);let y={pending:"bg-yellow-500/20 text-yellow-400",running:"bg-blue-500/20 text-blue-400",completed:"bg-green-500/20 text-green-400",failed:"bg-red-500/20 text-red-400",cancelled:"bg-gray-500/20 text-gray-400"};if(l.status!=="running")return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("p",{children:"Start the agent to view tasks"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!l.features?.tasks)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("div",{className:"text-center",children:[i.jsxDEV("p",{className:"mb-2",children:"Tasks feature is not enabled"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to schedule tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(M)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("p",{children:"Loading tasks..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(B)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:i.jsxDEV("p",{children:B},void 0,!1,void 0,this)},void 0,!1,void 0,this);let U=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}];if(K)return i.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:[Na,i.jsxDEV("div",{className:"px-4 pt-3 pb-2 border-b border-[var(--color-border)] shrink-0 flex items-center justify-between",children:[i.jsxDEV("button",{onClick:()=>n(null),className:"text-sm text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition flex items-center gap-1",children:[i.jsxDEV("span",{children:"←"},void 0,!1,void 0,this)," Back to tasks"]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"flex items-center gap-2",children:[(K.status==="pending"||K.status==="completed")&&i.jsxDEV("button",{onClick:io,disabled:j,title:"Execute now",className:"text-[var(--color-accent)] hover:opacity-80 transition disabled:opacity-50",children:i.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[i.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"},void 0,!1,void 0,this),i.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:L,disabled:aa,title:"Delete task",className:"text-red-400 hover:text-red-300 transition disabled:opacity-50",children:i.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"flex-1 overflow-auto p-4 space-y-4",children:[i.jsxDEV("div",{children:i.jsxDEV("div",{className:"flex items-start justify-between gap-2 mb-1",children:[i.jsxDEV("h3",{className:"text-lg font-medium",children:K.title},void 0,!1,void 0,this),i.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium flex-shrink-0 ${y[K.status]}`,children:K.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K.description&&i.jsxDEV("div",{children:[i.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1",children:"Description"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-sm text-[var(--color-text-secondary)] whitespace-pre-wrap",children:K.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[i.jsxDEV("div",{children:[i.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Type"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"capitalize",children:K.type},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{children:[i.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Priority"},void 0,!1,void 0,this),i.jsxDEV("p",{children:K.priority},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.recurrence&&i.jsxDEV("div",{children:[i.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Recurrence"},void 0,!1,void 0,this),i.jsxDEV("p",{children:U6(K.recurrence)},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-0.5 font-mono",children:K.recurrence},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"space-y-2 text-sm",children:[i.jsxDEV("div",{className:"flex justify-between",children:[i.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Created"},void 0,!1,void 0,this),i.jsxDEV("span",{children:new Date(K.created_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.execute_at&&i.jsxDEV("div",{className:"flex justify-between",children:[i.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Scheduled"},void 0,!1,void 0,this),i.jsxDEV("span",{className:"text-[var(--color-accent)]",children:j2(K.execute_at)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.executed_at&&i.jsxDEV("div",{className:"flex justify-between",children:[i.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Started"},void 0,!1,void 0,this),i.jsxDEV("span",{children:new Date(K.executed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.completed_at&&i.jsxDEV("div",{className:"flex justify-between",children:[i.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Completed"},void 0,!1,void 0,this),i.jsxDEV("span",{children:new Date(K.completed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.next_run&&i.jsxDEV("div",{className:"flex justify-between",children:[i.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Next Run"},void 0,!1,void 0,this),i.jsxDEV("span",{className:"text-[var(--color-accent)]",children:j2(K.next_run)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),K.status==="failed"&&K.error&&i.jsxDEV("div",{className:"min-w-0",children:[i.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),i.jsxDEV("div",{className:"bg-red-500/10 border border-red-500/20 rounded p-3 overflow-x-auto",children:i.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:K.error},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.status==="completed"&&K.result&&i.jsxDEV("div",{className:"min-w-0",children:[i.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),i.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/20 rounded p-3 overflow-x-auto",children:i.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof K.result==="string"?K.result:JSON.stringify(K.result,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F&&!K.trajectory&&i.jsxDEV("div",{children:[i.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-2",children:"Trajectory"},void 0,!1,void 0,this),i.jsxDEV("div",{className:"text-sm text-[var(--color-text-faint)]",children:"Loading trajectory..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.trajectory&&K.trajectory.length>0&&i.jsxDEV("div",{children:[i.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-2",children:["Trajectory (",K.trajectory.length," steps)"]},void 0,!0,void 0,this),i.jsxDEV(jc,{trajectory:K.trajectory},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return i.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[i.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[i.jsxDEV("div",{className:"flex gap-2",children:U.map((k)=>i.jsxDEV("button",{onClick:()=>T(k.value),className:`px-3 py-1.5 rounded text-sm transition ${g===k.value?"bg-[var(--color-accent)] text-black":"bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)]"}`,children:k.label},k.value,!1,void 0,this))},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:()=>A(!C),className:"px-3 py-1.5 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition flex items-center gap-1 flex-shrink-0",children:[i.jsxDEV("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"New"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C&&i.jsxDEV(fX,{onSubmit:ma,onCancel:()=>A(!1)},void 0,!1,void 0,this),_.length===0?i.jsxDEV("div",{className:"text-center py-10",children:[i.jsxDEV(hm,{className:"w-10 h-10 mx-auto mb-3 text-[var(--color-border-light)]"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:["No ",g==="all"?"":g+" ","tasks"]},void 0,!0,void 0,this),i.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Tasks will appear here when created"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):i.jsxDEV("div",{className:"space-y-3",children:_.map((k)=>i.jsxDEV("div",{onClick:()=>ta(k),className:"bg-[var(--color-surface)] border border-[var(--color-border)] rounded-lg p-4 cursor-pointer hover:border-[var(--color-border-light)] transition",children:[i.jsxDEV("div",{className:"flex items-start justify-between mb-2",children:[i.jsxDEV("div",{className:"flex-1 min-w-0",children:i.jsxDEV("h3",{className:"font-medium",children:k.title||k.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),i.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ml-2 ${y[k.status]||y.pending}`,children:k.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k.description&&i.jsxDEV("p",{className:"text-sm text-[var(--color-text-secondary)] mb-2 line-clamp-2",children:k.description},void 0,!1,void 0,this),i.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-[var(--color-text-faint)]",children:[i.jsxDEV("span",{className:"flex items-center gap-1",children:[k.type==="recurring"?i.jsxDEV(Vc,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):k.execute_at?i.jsxDEV(Dc,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):i.jsxDEV(Ec,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this),k.type==="recurring"&&k.recurrence?U6(k.recurrence):k.type||"once"]},void 0,!0,void 0,this),k.priority!==void 0&&i.jsxDEV("span",{children:["Priority: ",k.priority]},void 0,!0,void 0,this),k.next_run&&i.jsxDEV("span",{className:"text-[var(--color-accent)]",children:j2(k.next_run)},void 0,!1,void 0,this),!k.next_run&&k.execute_at&&i.jsxDEV("span",{className:"text-[var(--color-accent)]",children:j2(k.execute_at)},void 0,!1,void 0,this),i.jsxDEV("span",{children:["Created: ",new Date(k.created_at).toLocaleDateString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),k.status==="completed"&&k.result&&i.jsxDEV("div",{className:"mt-3 bg-green-500/10 border border-green-500/20 rounded p-3",children:[i.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),i.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof k.result==="string"?k.result:JSON.stringify(k.result,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k.status==="failed"&&k.error&&i.jsxDEV("div",{className:"mt-3 bg-red-500/10 border border-red-500/20 rounded p-3",children:[i.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),i.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:k.error},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},k.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function fX({onSubmit:l,onCancel:Z}){let[_,H]=pa.useState(""),[M,O]=pa.useState(""),[B,G]=pa.useState("once"),[g,T]=pa.useState(5),[K,n]=pa.useState(""),[F,V]=pa.useState("");return i.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-accent)]/30 rounded-lg p-3 mb-4 space-y-3",children:[i.jsxDEV("input",{type:"text",value:_,onChange:(C)=>H(C.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm",placeholder:"Task title...",autoFocus:!0},void 0,!1,void 0,this),i.jsxDEV("textarea",{value:M,onChange:(C)=>O(C.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm resize-none",rows:2,placeholder:"Description (optional)..."},void 0,!1,void 0,this),i.jsxDEV("div",{className:"grid grid-cols-2 gap-2",children:[i.jsxDEV("select",{value:B,onChange:(C)=>G(C.target.value),className:"bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-2 py-1.5 text-sm",children:[i.jsxDEV("option",{value:"once",children:"One-time"},void 0,!1,void 0,this),i.jsxDEV("option",{value:"recurring",children:"Recurring"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("input",{type:"number",min:1,max:10,value:g,onChange:(C)=>T(Number(C.target.value)),className:"bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-2 py-1.5 text-sm",placeholder:"Priority"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B==="once"&&i.jsxDEV("input",{type:"datetime-local",value:K,onChange:(C)=>n(C.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm"},void 0,!1,void 0,this),B==="recurring"&&i.jsxDEV("input",{type:"text",value:F,onChange:(C)=>V(C.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm font-mono",placeholder:"*/30 * * * * (cron)"},void 0,!1,void 0,this),i.jsxDEV("div",{className:"flex justify-end gap-2",children:[i.jsxDEV("button",{onClick:Z,className:"px-3 py-1.5 rounded text-sm bg-[var(--color-surface-raised)] hover:bg-[var(--color-border)] transition",children:"Cancel"},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:()=>_.trim()&&l({title:_.trim(),description:M.trim(),type:B,priority:g,execute_at:K||void 0,recurrence:F||void 0}),disabled:!_.trim(),className:"px-3 py-1.5 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition disabled:opacity-50",children:"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function iX({agent:l}){let[Z,_]=pa.useState([]),[H,M]=pa.useState(!0),[O,B]=pa.useState(null),[G,g]=pa.useState(!1),{confirm:T,ConfirmDialog:K}=s2();pa.useEffect(()=>{_([]),B(null),M(!0)},[l.id]);let n=async()=>{if(l.status!=="running"){M(!1);return}try{let C=await fetch(`/api/agents/${l.id}/memories`);if(!C.ok)throw Error("Failed to fetch memories");let A=await C.json();_(A.memories||[]),g(A.enabled??!1),B(null)}catch(C){B(C instanceof Error?C.message:"Failed to load memories")}finally{M(!1)}};pa.useEffect(()=>{n()},[l.id,l.status]);let F=async(C)=>{try{await fetch(`/api/agents/${l.id}/memories/${C}`,{method:"DELETE"}),_((A)=>A.filter((j)=>j.id!==C))}catch{}},V=async()=>{if(!await T("Clear all memories?",{confirmText:"Clear",title:"Clear Memories"}))return;try{await fetch(`/api/agents/${l.id}/memories`,{method:"DELETE"}),_([])}catch{}};if(!l.features?.memory)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("div",{className:"text-center",children:[i.jsxDEV("p",{className:"mb-2",children:"Memory feature is not enabled"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to persist knowledge"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(l.status!=="running")return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("p",{children:"Start the agent to view memories"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(H)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("p",{children:"Loading memories..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(O)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:i.jsxDEV("p",{children:O},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!G)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("div",{className:"text-center",children:[i.jsxDEV("p",{className:"mb-2",children:"Memory system not initialized"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-sm",children:"Check OPENAI_API_KEY for embeddings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return i.jsxDEV(i.Fragment,{children:[K,i.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[i.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[i.jsxDEV("h3",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:["Stored Memories (",Z.length,")"]},void 0,!0,void 0,this),Z.length>0&&i.jsxDEV("button",{onClick:V,className:"text-xs text-red-400 hover:text-red-300",children:"Clear All"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.length===0?i.jsxDEV("div",{className:"text-center py-10 text-[var(--color-text-muted)]",children:[i.jsxDEV("p",{children:"No memories stored yet"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-sm mt-1",children:"The agent will remember important information from conversations"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):i.jsxDEV("div",{className:"space-y-3",children:Z.map((C)=>i.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-border)] rounded p-3",children:[i.jsxDEV("div",{className:"flex items-start justify-between gap-2",children:[i.jsxDEV("p",{className:"text-sm text-[var(--color-text)] flex-1",children:C.content},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:()=>F(C.id),className:"text-[var(--color-text-muted)] hover:text-red-400 text-sm flex-shrink-0",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"flex items-center gap-3 mt-2",children:[i.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${C.type==="preference"?"bg-purple-500/20 text-purple-400":C.type==="fact"?"bg-green-500/20 text-green-400":"bg-blue-500/20 text-blue-400"}`,children:C.type},void 0,!1,void 0,this),i.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:new Date(C.created_at).toLocaleString()},void 0,!1,void 0,this),C.importance&&i.jsxDEV("span",{className:"text-xs text-[var(--color-text-faint)]",children:["importance: ",C.importance.toFixed(1)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},C.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function lX({agent:l}){let[Z,_]=pa.useState([]),[H,M]=pa.useState(!0),[O,B]=pa.useState(null),[G,g]=pa.useState(!1),[T,K]=pa.useState(null),[n,F]=pa.useState(!1),V=pa.default.useRef(null),{confirm:C,ConfirmDialog:A}=s2();pa.useEffect(()=>{_([]),B(null),M(!0)},[l.id]);let j=async()=>{if(l.status!=="running"){M(!1);return}try{let L=await fetch(`/api/agents/${l.id}/files`);if(!L.ok)throw Error("Failed to fetch files");let ma=await L.json();_(ma.files||[]),B(null)}catch(L){B(L instanceof Error?L.message:"Failed to load files")}finally{M(!1)}};pa.useEffect(()=>{j()},[l.id,l.status]);let Za=async(L)=>{if(!await C("Delete this file?",{confirmText:"Delete",title:"Delete File"}))return;try{await fetch(`/api/agents/${l.id}/files/${L}`,{method:"DELETE"}),_((y)=>y.filter((U)=>U.id!==L))}catch{}},aa=(L,ma)=>{let y=document.createElement("a");y.href=`/api/agents/${l.id}/files/${L}/download`,y.download=ma,y.click()},wa=(L)=>{if(L<1024)return`${L} B`;if(L<1048576)return`${(L/1024).toFixed(1)} KB`;return`${(L/1048576).toFixed(1)} MB`},P=async(L)=>{g(!0),K(null);try{let ma=new FormData;ma.append("file",L);let y=await fetch(`/api/agents/${l.id}/files`,{method:"POST",body:ma});if(!y.ok){let U=await y.json();throw Error(U.error||"Upload failed")}await j()}catch(ma){K(ma instanceof Error?ma.message:"Upload failed")}finally{g(!1)}},Na=(L)=>{let ma=L.target.files?.[0];if(ma)P(ma);L.target.value=""},Ma=(L)=>{L.preventDefault(),F(!1);let ma=L.dataTransfer.files?.[0];if(ma)P(ma)},Wa=(L)=>{L.preventDefault(),F(!0)},ta=(L)=>{L.preventDefault(),F(!1)},io=(L)=>{if(L.startsWith("image/"))return"\uD83D\uDDBC";if(L.includes("pdf"))return"\uD83D\uDCD5";if(L.includes("json"))return"{}";if(L.includes("javascript")||L.includes("typescript"))return"⚡";if(L.startsWith("text/"))return"\uD83D\uDCC4";if(L.startsWith("audio/"))return"\uD83C\uDFB5";if(L.startsWith("video/"))return"\uD83C\uDFAC";return"\uD83D\uDCC1"};if(!l.features?.files)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("div",{className:"text-center",children:[i.jsxDEV("p",{className:"mb-2",children:"Files feature is not enabled"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to manage files"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(l.status!=="running")return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("p",{children:"Start the agent to view files"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(H)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:i.jsxDEV("p",{children:"Loading files..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(O)return i.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:i.jsxDEV("p",{children:O},void 0,!1,void 0,this)},void 0,!1,void 0,this);return i.jsxDEV(i.Fragment,{children:[A,i.jsxDEV("div",{className:`flex-1 overflow-auto p-4 transition ${n?"bg-[var(--color-accent-5)]":""}`,onDrop:Ma,onDragOver:Wa,onDragLeave:ta,children:[i.jsxDEV("input",{ref:V,type:"file",className:"hidden",onChange:Na},void 0,!1,void 0,this),i.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[i.jsxDEV("h3",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:["Agent Files (",Z.length,")"]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"flex items-center gap-2",children:[i.jsxDEV("button",{onClick:()=>V.current?.click(),disabled:G,className:"text-xs bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-black px-3 py-1 rounded font-medium transition",children:G?"Uploading...":"Upload"},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:j,className:"text-xs text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]",children:"Refresh"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),T&&i.jsxDEV("div",{className:"mb-4 text-sm bg-red-500/10 text-red-400 px-3 py-2 rounded",children:T},void 0,!1,void 0,this),n&&i.jsxDEV("div",{className:"mb-4 border-2 border-dashed border-[var(--color-accent)] rounded-lg p-8 text-center",children:i.jsxDEV("p",{className:"text-[var(--color-accent)]",children:"Drop file to upload"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z.length===0&&!n&&i.jsxDEV("div",{className:"text-center py-10 text-[var(--color-text-muted)]",children:[i.jsxDEV("p",{children:"No files stored yet"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-sm mt-1",children:"Drop files here, click Upload, or attach files in Chat"},void 0,!1,void 0,this),l.features?.memory&&i.jsxDEV("p",{className:"text-xs mt-2 text-[var(--color-text-faint)]",children:"Files will be auto-ingested into memory"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.length>0&&i.jsxDEV("div",{className:"space-y-2",children:Z.map((L)=>i.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-border)] rounded p-3 flex items-center gap-3",children:[i.jsxDEV("div",{className:"w-10 h-10 bg-[var(--color-surface-raised)] rounded flex items-center justify-center text-[var(--color-text-muted)]",children:io(L.mime_type)},void 0,!1,void 0,this),i.jsxDEV("div",{className:"flex-1 min-w-0",children:[i.jsxDEV("p",{className:"text-sm text-[var(--color-text)] truncate",children:L.filename},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)]",children:[wa(L.size_bytes)," • ",new Date(L.created_at).toLocaleString(),L.source&&L.source!=="upload"&&` • ${L.source}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"flex items-center gap-2",children:[i.jsxDEV("button",{onClick:()=>aa(L.id,L.filename),className:"text-xs text-[var(--color-text-muted)] hover:text-[var(--color-accent)] px-2 py-1",children:"↓"},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:()=>Za(L.id),className:"text-[var(--color-text-muted)] hover:text-red-400 text-sm",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},L.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cX({agent:l,providers:Z,onUpdateAgent:_,onDeleteAgent:H}){let{authFetch:M,isDev:O}=Xo(),[B,G]=pa.useState({name:l.name,provider:l.provider,model:l.model,systemPrompt:l.systemPrompt,features:{...l.features,builtinTools:l.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...l.mcpServers||[]],skills:[...l.skills||[]]}),[g,T]=pa.useState(!1),[K,n]=pa.useState(!1),[F,V]=pa.useState(null),[C,A]=pa.useState([]),[j,Za]=pa.useState([]),[aa,wa]=pa.useState(null),[P,Na]=pa.useState(null),[Ma,Wa]=pa.useState(!1),[ta,io]=pa.useState([]),[L,ma]=pa.useState(null),[y,U]=pa.useState(!1);pa.useEffect(()=>{M(`/api/subscriptions?agent_id=${l.id}`).then((R)=>R.ok?R.json():{subscriptions:[]}).then((R)=>io(R.subscriptions||[])).catch(()=>{})},[l.id,M]),pa.useEffect(()=>{(async()=>{try{let Ta=await(await M("/api/mcp/servers")).json();A(Ta.servers||[])}catch(s){console.error("Failed to fetch MCP servers:",s)}})()},[M]),pa.useEffect(()=>{(async()=>{try{let s=await M(`/api/agents/${l.id}/api-key`);if(s.ok){let Ta=await s.json();wa(Ta.apiKey),Na(Ta.fullKey||null)}}catch(s){}})()},[l.id,M]),pa.useEffect(()=>{(async()=>{try{let s=await M(`/api/agents/${l.id}/share-token`);if(s.ok){let Ta=await s.json();ma(Ta.token||null)}}catch{}})()},[l.id,M]),pa.useEffect(()=>{(async()=>{try{let Ta=await(await M("/api/skills")).json();Za(Ta.skills||[])}catch(s){console.error("Failed to fetch skills:",s)}})()},[M]),pa.useEffect(()=>{G({name:l.name,provider:l.provider,model:l.model,systemPrompt:l.systemPrompt,features:{...l.features,builtinTools:l.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...l.mcpServers||[]],skills:[...l.skills||[]]}),V(null)},[l.id]);let k=Z.find((R)=>R.id===B.provider),h=Z.filter((R)=>R.hasKey&&R.type==="llm").map((R)=>({value:R.id,label:R.name})),S=k?.models.map((R)=>({value:R.value,label:R.label,recommended:R.recommended}))||[],ra=(R)=>{let s=Z.find((N)=>N.id===R),Ta=s?.models.find((N)=>N.recommended)?.value||s?.models[0]?.value||"";G((N)=>({...N,provider:R,model:Ta}))},Pa=(R)=>{if(R==="agents")G((s)=>{if(typeof s.features.agents==="boolean"?s.features.agents:s.features.agents?.enabled??!1)return{...s,features:{...s.features,agents:!1}};else return{...s,features:{...s.features,agents:{enabled:!0,group:l.projectId||void 0}}}});else if(R==="operator")G((s)=>{if(n2(s.features).enabled)return{...s,features:{...s.features,operator:!1}};else return{...s,features:{...s.features,operator:{enabled:!0}}}});else G((s)=>({...s,features:{...s.features,[R]:!s.features[R]}}))},xa=()=>{let R=B.features.agents;if(typeof R==="boolean")return R;return R?.enabled??!1},yp=()=>{return n2(B.features).enabled},Ep=()=>{return n2(B.features)},vp=Z.filter((R)=>R.type==="browser"&&R.hasKey),yo=(R)=>{G((s)=>{let Ta=n2(s.features);return{...s,features:{...s.features,operator:{...Ta,enabled:!0,browser_provider:R}}}})},$o=(R)=>{G((s)=>({...s,mcpServers:s.mcpServers.includes(R)?s.mcpServers.filter((Ta)=>Ta!==R):[...s.mcpServers,R]}))},mr=(R)=>{G((s)=>({...s,skills:s.skills.includes(R)?s.skills.filter((Ta)=>Ta!==R):[...s.skills,R]}))},iv=async()=>{T(!0),V(null);let R=await _(B);if(T(!1),R.error)V({type:"error",text:R.error});else V({type:"success",text:"Settings saved"}),setTimeout(()=>V(null),2000)},tr=B.name!==l.name||B.provider!==l.provider||B.model!==l.model||B.systemPrompt!==l.systemPrompt||JSON.stringify(B.features)!==JSON.stringify(l.features)||JSON.stringify(B.mcpServers.sort())!==JSON.stringify((l.mcpServers||[]).sort())||JSON.stringify(B.skills.sort())!==JSON.stringify((l.skills||[]).sort());return i.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:i.jsxDEV("div",{className:"space-y-4",children:[i.jsxDEV(zt,{label:"Name",children:i.jsxDEV("input",{type:"text",value:B.name,onChange:(R)=>G((s)=>({...s,name:R.target.value})),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i.jsxDEV(zt,{label:"Provider",children:i.jsxDEV(ct,{value:B.provider,options:h,onChange:ra},void 0,!1,void 0,this)},void 0,!1,void 0,this),i.jsxDEV(zt,{label:"Model",children:i.jsxDEV(ct,{value:B.model,options:S,onChange:(R)=>G((s)=>({...s,model:R}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),i.jsxDEV(zt,{label:"System Prompt",children:i.jsxDEV("textarea",{value:B.systemPrompt,onChange:(R)=>G((s)=>({...s,systemPrompt:R.target.value})),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i.jsxDEV(zt,{label:"Features",children:i.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:rX.map(({key:R,label:s,description:Ta,icon:N})=>{let lo=R==="agents"?xa():R==="operator"?yp():!!B.features[R];return i.jsxDEV("button",{type:"button",onClick:()=>Pa(R),className:`flex items-center gap-3 p-3 rounded border text-left transition ${lo?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[i.jsxDEV(N,{className:`w-5 h-5 flex-shrink-0 ${lo?"text-[var(--color-accent)]":"text-[var(--color-text-muted)]"}`},void 0,!1,void 0,this),i.jsxDEV("div",{className:"flex-1 min-w-0",children:[i.jsxDEV("div",{className:`text-sm font-medium ${lo?"text-[var(--color-accent)]":""}`,children:s},void 0,!1,void 0,this),i.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:Ta},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},R,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),yp()&&i.jsxDEV(zt,{label:"Browser Provider",children:vp.length>0?i.jsxDEV(ct,{value:Ep().browser_provider||"",options:[{value:"",label:"Auto (first available)"},...vp.map((R)=>({value:R.id,label:R.name}))],onChange:(R)=>yo(R)},void 0,!1,void 0,this):i.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] p-3 border border-[var(--color-border-light)] rounded bg-[var(--color-bg)]",children:"No browser providers configured. Go to Settings → Providers to add one."},void 0,!1,void 0,this)},void 0,!1,void 0,this),B.provider==="anthropic"&&i.jsxDEV(zt,{label:"Agent Built-in Tools",children:[i.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[i.jsxDEV("button",{type:"button",onClick:()=>G((R)=>({...R,features:{...R.features,builtinTools:{...R.features.builtinTools,webSearch:!R.features.builtinTools?.webSearch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${B.features.builtinTools?.webSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[i.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("button",{type:"button",onClick:()=>G((R)=>({...R,features:{...R.features,builtinTools:{...R.features.builtinTools,webFetch:!R.features.builtinTools?.webFetch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${B.features.builtinTools?.webFetch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[i.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i.jsxDEV("span",{className:"text-sm",children:"Web Fetch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B.features.mcp&&i.jsxDEV(zt,{label:"MCP Servers",children:C.length===0?i.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:"No MCP servers configured. Add servers in the MCP page first."},void 0,!1,void 0,this):i.jsxDEV("div",{className:"space-y-2",children:[C.filter((R)=>R.project_id===null||R.project_id===l.projectId).map((R)=>{let s=R.type==="http"&&R.url,Ta=s||R.status==="running",N=s?`${R.source||"remote"} • http`:`${R.type} • ${R.package||R.command||"custom"}${R.status==="running"&&R.port?` • :${R.port}`:""}`;return i.jsxDEV("button",{type:"button",onClick:()=>$o(R.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${B.mcpServers.includes(R.id)?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[i.jsxDEV("div",{className:`w-2 h-2 rounded-full flex-shrink-0 ${Ta?"bg-green-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),i.jsxDEV("div",{className:"flex-1 min-w-0",children:[i.jsxDEV("div",{className:"flex items-center gap-2",children:[i.jsxDEV("span",{className:`text-sm font-medium ${B.mcpServers.includes(R.id)?"text-[var(--color-accent)]":""}`,children:R.name},void 0,!1,void 0,this),R.project_id===null&&i.jsxDEV("span",{className:"text-[10px] text-[var(--color-text-muted)] bg-[var(--color-surface-raised)] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:N},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:`text-xs px-2 py-0.5 rounded ${Ta?"bg-green-500/20 text-green-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,children:s?"remote":R.status},void 0,!1,void 0,this)]},R.id,!0,void 0,this)}),i.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-2",children:"Remote servers are always available. Local servers must be running."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),i.jsxDEV(zt,{label:"Skills",children:j.length===0?i.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:"No skills configured. Add skills in the Skills page first."},void 0,!1,void 0,this):i.jsxDEV("div",{className:"space-y-2",children:[j.filter((R)=>R.enabled&&(R.project_id===null||R.project_id===l.projectId)).map((R)=>i.jsxDEV("button",{type:"button",onClick:()=>mr(R.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${B.skills.includes(R.id)?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[i.jsxDEV("div",{className:"flex-1 min-w-0",children:[i.jsxDEV("div",{className:"flex items-center gap-2",children:[i.jsxDEV("span",{className:`text-sm font-medium ${B.skills.includes(R.id)?"text-[var(--color-accent)]":""}`,children:R.name},void 0,!1,void 0,this),R.project_id===null&&i.jsxDEV("span",{className:"text-[10px] text-[var(--color-text-muted)] bg-[var(--color-surface-raised)] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:R.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"text-xs px-2 py-0.5 rounded bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]",children:["v",R.version]},void 0,!0,void 0,this)]},R.id,!0,void 0,this)),i.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-2",children:"Skills provide reusable instructions for the agent."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F&&i.jsxDEV("div",{className:`text-sm px-3 py-2 rounded ${F.type==="success"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"}`,children:F.text},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:iv,disabled:!tr||g||!B.name,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:g?"Saving...":"Save Changes"},void 0,!1,void 0,this),l.status==="running"&&tr&&i.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] text-center",children:"Changes will be applied to the running agent"},void 0,!1,void 0,this),i.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[i.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Subscriptions"},void 0,!1,void 0,this),ta.length===0?i.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)]",children:"No subscriptions. Set up triggers in Connections to have this agent listen to external events."},void 0,!1,void 0,this):i.jsxDEV("div",{className:"space-y-2",children:ta.map((R)=>i.jsxDEV("div",{className:"flex items-center gap-2 px-3 py-2 bg-[var(--color-surface)] rounded border border-[var(--color-border)]",children:[i.jsxDEV("span",{className:`w-2 h-2 rounded-full shrink-0 ${R.enabled?"bg-cyan-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),i.jsxDEV("span",{className:`text-sm flex-1 ${R.enabled?"text-cyan-400":"text-[var(--color-text-muted)]"}`,children:R.trigger_slug.replace(/_/g," ")},void 0,!1,void 0,this),i.jsxDEV("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${R.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-faint)]"}`,children:R.enabled?"active":"disabled"},void 0,!1,void 0,this)]},R.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),aa&&i.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[i.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Developer Info"},void 0,!1,void 0,this),i.jsxDEV("div",{className:"space-y-2",children:[i.jsxDEV("div",{className:"flex items-center justify-between",children:[i.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Agent ID"},void 0,!1,void 0,this),i.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)]",children:l.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"flex items-center justify-between",children:[i.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Port"},void 0,!1,void 0,this),i.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)]",children:l.port||"N/A"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"flex flex-col gap-1",children:[i.jsxDEV("div",{className:"flex items-center justify-between",children:[i.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"API Key"},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:()=>Wa(!Ma),className:"text-xs text-[var(--color-accent)] hover:text-[var(--color-accent-hover)]",children:Ma?"Hide":"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)] break-all",children:Ma?P||aa:aa},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.status==="running"&&l.port&&i.jsxDEV("div",{className:"flex flex-col gap-1 mt-2",children:[i.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Test with curl"},void 0,!1,void 0,this),i.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1.5 rounded text-[var(--color-text-muted)] break-all",children:['curl -H "X-API-Key: ',Ma?P||aa:"***",'" http://localhost:',l.port,"/config"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),L&&i.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[i.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Share Link"},void 0,!1,void 0,this),i.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mb-3",children:"Anyone with this link can chat with this agent. No login required. Regenerate the API key to invalidate."},void 0,!1,void 0,this),i.jsxDEV("div",{className:"flex gap-2",children:[i.jsxDEV("code",{className:"flex-1 text-xs bg-[var(--color-surface-raised)] px-3 py-2 rounded text-[var(--color-text-secondary)] break-all border border-[var(--color-border-light)]",children:`${window.location.origin}/share/${L}`},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:()=>{navigator.clipboard.writeText(`${window.location.origin}/share/${L}`),U(!0),setTimeout(()=>U(!1),2000)},className:"px-3 py-2 text-xs bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)] border border-[var(--color-border-light)] rounded text-[var(--color-text-secondary)] hover:text-[var(--color-text)] transition flex-shrink-0",children:y?"Copied!":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"mt-3",children:[i.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mb-1",children:"Embed"},void 0,!1,void 0,this),i.jsxDEV("code",{className:"block text-xs bg-[var(--color-surface-raised)] px-3 py-2 rounded text-[var(--color-text-muted)] break-all border border-[var(--color-border-light)]",children:`<iframe src="${window.location.origin}/share/${L}" width="400" height="600" style="border:none; border-radius:12px;" />`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[i.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Danger Zone"},void 0,!1,void 0,this),K?i.jsxDEV("div",{className:"flex gap-2",children:[i.jsxDEV("button",{onClick:()=>n(!1),className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-scrollbar)] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),i.jsxDEV("button",{onClick:H,className:"flex-1 bg-red-500/20 text-red-400 hover:bg-red-500/30 px-4 py-2 rounded font-medium transition",children:"Confirm Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):i.jsxDEV("button",{onClick:()=>n(!0),className:"w-full border border-red-500/30 text-red-400/70 hover:border-red-500/50 hover:text-red-400 px-4 py-2 rounded font-medium transition",children:"Delete Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function zt({label:l,children:Z}){return i.jsxDEV("div",{children:[i.jsxDEV("label",{className:"block text-sm text-[var(--color-text-muted)] mb-1",children:l},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this)}var sc=Xa(Do(),1);var ja=Xa(po(),1);function Ub({agents:l,loading:Z,selectedAgent:_,providers:H,onSelectAgent:M,onCloseAgent:O,onToggleAgent:B,onDeleteAgent:G,onUpdateAgent:g,onNewAgent:T,canCreateAgent:K=!0}){let{currentProjectId:n,currentProject:F}=rp(),V=sc.useMemo(()=>{if(n===null)return l;if(n==="unassigned")return l.filter((A)=>!A.projectId);return l.filter((A)=>A.projectId===n)},[l,n]),C=n===null?"Agents":n==="unassigned"?"Unassigned Agents":F?.name||"Agents";return ja.jsxDEV("div",{className:"flex-1 flex overflow-hidden relative",children:[ja.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[ja.jsxDEV("div",{className:"flex items-center justify-between mb-6",children:[ja.jsxDEV("div",{className:"flex items-center gap-3",children:[F&&ja.jsxDEV("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:F.color}},void 0,!1,void 0,this),ja.jsxDEV("h1",{className:"text-xl font-semibold",children:C},void 0,!1,void 0,this),n!==null&&ja.jsxDEV("span",{className:"text-sm text-[var(--color-text-muted)]",children:["(",V.length," agent",V.length!==1?"s":"",")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),T&&ja.jsxDEV("button",{onClick:T,disabled:!K,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z?ja.jsxDEV(Er,{message:"Loading agents..."},void 0,!1,void 0,this):V.length===0?ja.jsxDEV(zX,{onNewAgent:T,canCreateAgent:K,hasProjectFilter:n!==null},void 0,!1,void 0,this):ja.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:V.map((A)=>ja.jsxDEV(Bb,{agent:A,selected:_?.id===A.id,onSelect:()=>M(A),onToggle:(j)=>B(A,j),showProject:n===null},A.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&ja.jsxDEV("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px] z-10",onClick:O},void 0,!1,void 0,this),_&&ja.jsxDEV("div",{className:"absolute right-0 top-0 bottom-0 w-full sm:w-[500px] lg:w-[600px] xl:w-[700px] z-20",children:ja.jsxDEV(Wb,{agent:_,providers:H,onClose:O,onStartAgent:(A)=>B(_,A),onUpdateAgent:(A)=>g(_.id,A),onDeleteAgent:()=>G(_.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zX({onNewAgent:l,canCreateAgent:Z,hasProjectFilter:_}){return ja.jsxDEV("div",{className:"text-center py-20 text-[var(--color-text-muted)]",children:[_?ja.jsxDEV(ja.Fragment,{children:[ja.jsxDEV("p",{className:"text-lg",children:"No agents in this project"},void 0,!1,void 0,this),ja.jsxDEV("p",{className:"text-sm mt-1",children:"Create an agent or assign existing agents to this project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):ja.jsxDEV(ja.Fragment,{children:[ja.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),ja.jsxDEV("p",{className:"text-sm mt-1",children:"Create your first agent to get started"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l&&ja.jsxDEV("button",{onClick:l,disabled:!Z,className:"mt-4 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var vo=Xa(Do(),1);var x=Xa(po(),1);function Ob({agents:l,loading:Z,runningCount:_,configuredProviders:H,onNavigate:M,onSelectAgent:O}){let{authFetch:B}=Xo(),{currentProjectId:G}=rp(),{events:g,statusChangeCounter:T}=u2(),{events:K}=Hb({category:"TASK"}),n=vo.useRef(null),[F,V]=vo.useState(null),[C,A]=vo.useState([]),[j,Za]=vo.useState([]),[aa,wa]=vo.useState(null),P=vo.useMemo(()=>{if(!G)return l;if(G==="unassigned")return l.filter((y)=>!y.projectId);return l.filter((y)=>y.projectId===G)},[l,G]),Na=vo.useMemo(()=>{return P.filter((y)=>y.status==="running").length},[P]),Ma=vo.useMemo(()=>{return new Set(P.map((y)=>y.id))},[P]),Wa=vo.useCallback(async()=>{try{let y=G?`project_id=${encodeURIComponent(G)}`:"",[U,k,h]=await Promise.all([B(`/api/dashboard${y?`?${y}`:""}`),B(`/api/tasks?status=all${y?`&${y}`:""}`),B(`/api/telemetry/events?type=thread_activity&limit=20${y?`&${y}`:""}`)]);if(U.ok){let S=await U.json();V(S)}if(k.ok){let S=await k.json();A(S.tasks||[])}if(h.ok){let S=await h.json();Za(S.events||[])}}catch(y){console.error("Failed to fetch dashboard data:",y)}},[B,G]);vo.useEffect(()=>{Wa()},[Wa,T]),vo.useEffect(()=>{if(!K.length)return;let y=K[0];if(!y||y.id===n.current)return;if(y.type==="task_created"||y.type==="task_updated"||y.type==="task_deleted")n.current=y.id,Wa()},[K,Wa]);let ta=vo.useMemo(()=>{let y=G?C.filter((U)=>Ma.has(U.agentId)):C;return GX(y)},[C,G,Ma]),io=vo.useMemo(()=>{if(!G)return F?.tasks||{total:0,pending:0,running:0,completed:0};let y=ta.length,U=ta.filter((S)=>S.status==="pending").length,k=ta.filter((S)=>S.status==="running").length,h=ta.filter((S)=>S.status==="completed").length;return{total:y,pending:U,running:k,completed:h}},[F,G,ta]),L=vo.useMemo(()=>{let y=g.filter((S)=>S.type==="thread_activity"&&!S.data?.parent_id),U=new Set(y.map((S)=>S.id)),k=[...y];for(let S of j)if(!U.has(S.id)&&!S.data?.parent_id)k.push(S),U.add(S.id);let h=k;if(G)h=k.filter((S)=>Ma.has(S.agent_id));return h.sort((S,ra)=>new Date(ra.timestamp).getTime()-new Date(S.timestamp).getTime()),h.slice(0,12)},[g,j,G,Ma]),ma=vo.useMemo(()=>{let y=new Map;for(let U of l)y.set(U.id,U.name);return y},[l]);return x.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[x.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-6",children:[x.jsxDEV(Rb,{label:"Agents",value:P.length,subValue:`${Na} running`},void 0,!1,void 0,this),x.jsxDEV(Rb,{label:"Tasks",value:io.total,subValue:`${io.pending} pending`},void 0,!1,void 0,this),x.jsxDEV(Rb,{label:"Completed",value:io.completed,color:"text-green-400"},void 0,!1,void 0,this),x.jsxDEV(Rb,{label:"Providers",value:H.length,color:"text-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[x.jsxDEV(R6,{title:"Agents",actionLabel:"View All",onAction:()=>M("agents"),children:Z?x.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:"Loading..."},void 0,!1,void 0,this):P.length===0?x.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:"No agents yet"},void 0,!1,void 0,this):x.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:P.slice(0,5).map((y)=>x.jsxDEV($X,{agent:y,onSelect:()=>O(y),onMessage:y.status==="running"?()=>wa(y):void 0,showProject:!G},y.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),x.jsxDEV(R6,{title:"Activity",actionLabel:"Telemetry",onAction:()=>M("telemetry"),children:L.length===0?x.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:[x.jsxDEV("p",{children:"No activity yet"},void 0,!1,void 0,this),x.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Agent activity will appear here in real-time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):x.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:L.map((y)=>x.jsxDEV(YX,{activity:y.data?.activity||"Working...",agentName:ma.get(y.agent_id)||y.agent_id,timestamp:y.timestamp},y.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),x.jsxDEV(R6,{title:"Tasks",actionLabel:"View All",onAction:()=>M("tasks"),children:ta.length===0?x.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:[x.jsxDEV("p",{children:"No tasks yet"},void 0,!1,void 0,this),x.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Tasks will appear when agents create them"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):x.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:ta.slice(0,5).map((y)=>x.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[x.jsxDEV("div",{className:"flex-1 min-w-0",children:[x.jsxDEV("p",{className:"font-medium truncate",children:y.title},void 0,!1,void 0,this),x.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[y.agentName,y.recurrence&&x.jsxDEV("span",{className:"ml-1 text-[var(--color-text-faint)]",children:["· ",_X(y.recurrence)]},void 0,!0,void 0,this),y.next_run&&x.jsxDEV("span",{className:"ml-1 text-[var(--color-accent)]",children:["· ",az(y.next_run)]},void 0,!0,void 0,this),!y.next_run&&y.execute_at&&x.jsxDEV("span",{className:"ml-1 text-[var(--color-accent)]",children:["· ",az(y.execute_at)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),x.jsxDEV(XX,{status:y.status},void 0,!1,void 0,this)]},`${y.agentId}-${y.id}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),aa&&x.jsxDEV(ZX,{agent:aa,onClose:()=>wa(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Rb({label:l,value:Z,subValue:_,color:H}){return x.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded p-4 border border-[var(--color-border)]",children:[x.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-1",children:l},void 0,!1,void 0,this),x.jsxDEV("p",{className:`text-2xl font-semibold ${H||""}`,children:Z},void 0,!1,void 0,this),_&&x.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-1",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function R6({title:l,actionLabel:Z,onAction:_,children:H}){return x.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded border border-[var(--color-border)] overflow-hidden",children:[x.jsxDEV("div",{className:"px-4 py-3 border-b border-[var(--color-border)] flex items-center justify-between",children:[x.jsxDEV("h3",{className:"font-semibold",children:l},void 0,!1,void 0,this),x.jsxDEV("button",{onClick:_,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H]},void 0,!0,void 0,this)}function $X({agent:l,onSelect:Z,onMessage:_,showProject:H}){let{isActive:M,label:O}=Qb(l.id),{projects:B}=rp(),G=l.projectId?B.find((g)=>g.id===l.projectId):null;return x.jsxDEV("div",{onClick:Z,className:"px-4 py-3 hover:bg-[var(--color-surface-raised)] cursor-pointer flex items-center justify-between group",children:[x.jsxDEV("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[x.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${l.status==="running"?M?"bg-green-400 animate-pulse":"bg-[#3b82f6]":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),x.jsxDEV("div",{className:"flex-1 min-w-0",children:[x.jsxDEV("p",{className:"font-medium truncate",children:l.name},void 0,!1,void 0,this),x.jsxDEV("div",{className:"flex items-center gap-2 text-sm text-[var(--color-text-muted)]",children:[M&&O?x.jsxDEV("span",{className:"text-green-400 truncate",children:O},void 0,!1,void 0,this):x.jsxDEV("span",{children:[l.provider," · ",l.status==="running"?"idle":"stopped"]},void 0,!0,void 0,this),H&&G&&x.jsxDEV(x.Fragment,{children:[x.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:"·"},void 0,!1,void 0,this),x.jsxDEV("span",{className:"flex items-center gap-1",children:[x.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:G.color}},void 0,!1,void 0,this),G.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_&&x.jsxDEV("button",{onClick:(g)=>{g.stopPropagation(),_()},className:"opacity-0 group-hover:opacity-100 transition px-2 py-1 text-xs text-[var(--color-accent)] hover:bg-[var(--color-accent-10)] rounded",title:"Send message",children:x.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JX(l){let Z=Math.floor((Date.now()-new Date(l).getTime())/1000);if(Z<5)return"just now";if(Z<60)return`${Z}s ago`;let _=Math.floor(Z/60);if(_<60)return`${_}m ago`;let H=Math.floor(_/60);if(H<24)return`${H}h ago`;return`${Math.floor(H/24)}d ago`}function YX({activity:l,agentName:Z,timestamp:_}){return x.jsxDEV("div",{className:"px-4 py-3",children:[x.jsxDEV("p",{className:"text-sm truncate",children:l},void 0,!1,void 0,this),x.jsxDEV("div",{className:"flex items-center gap-2 text-xs text-[var(--color-text-faint)] mt-1",children:[x.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:Z},void 0,!1,void 0,this),x.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:"·"},void 0,!1,void 0,this),x.jsxDEV("span",{children:JX(_)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function XX({status:l}){let Z={pending:"bg-yellow-500/20 text-yellow-400",running:"bg-blue-500/20 text-blue-400",completed:"bg-green-500/20 text-green-400",failed:"bg-red-500/20 text-red-400",cancelled:"bg-gray-500/20 text-gray-400"};return x.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${Z[l]||Z.pending}`,children:l},void 0,!1,void 0,this)}function ZX({agent:l,onClose:Z}){let{authFetch:_}=Xo(),[H,M]=vo.useState(""),[O,B]=vo.useState(!1),[G,g]=vo.useState(!1),T=vo.useRef(null);vo.useEffect(()=>{T.current?.focus()},[]);let K=async()=>{if(!H.trim()||O)return;B(!0);try{if((await _(`/api/agents/${l.id}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:H.trim(),agent_id:l.id})})).ok)g(!0),setTimeout(Z,1200)}catch{}finally{B(!1)}};return x.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[x.jsxDEV("div",{className:"absolute inset-0 bg-black/60",onClick:Z},void 0,!1,void 0,this),x.jsxDEV("div",{className:"relative bg-[var(--color-surface)] border border-[var(--color-border-light)] rounded-xl shadow-2xl w-full max-w-md mx-4 p-5",children:[x.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[x.jsxDEV("div",{className:"flex items-center gap-3",children:[x.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-green-400 animate-pulse"},void 0,!1,void 0,this),x.jsxDEV("h3",{className:"font-medium",children:l.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x.jsxDEV("button",{onClick:Z,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition",children:x.jsxDEV(it,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G?x.jsxDEV("div",{className:"py-6 text-center",children:[x.jsxDEV("p",{className:"text-green-400 font-medium",children:"Message sent"},void 0,!1,void 0,this),x.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"The agent will process your message"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):x.jsxDEV("div",{className:"flex gap-2",children:[x.jsxDEV("input",{ref:T,type:"text",value:H,onChange:(n)=>M(n.target.value),onKeyDown:(n)=>n.key==="Enter"&&K(),placeholder:`Message ${l.name}...`,disabled:O,className:"flex-1 bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:border-[var(--color-accent)] placeholder-[#444] disabled:opacity-50"},void 0,!1,void 0,this),x.jsxDEV("button",{onClick:K,disabled:O||!H.trim(),className:"px-4 py-2.5 bg-[var(--color-accent)] text-black rounded-lg text-sm font-medium hover:bg-[var(--color-accent-hover)] transition disabled:opacity-30",children:O?"...":"Send"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ec(l){if(l.status==="running")return 0;if(l.status==="pending")return 1;if(l.status==="completed")return 2;if(l.status==="failed")return 3;return 4}function GX(l){return[...l].sort((Z,_)=>{let H=ec(Z),M=ec(_);if(H!==M)return H-M;if(H<=1){let G=Z.next_run||Z.execute_at||null,g=_.next_run||_.execute_at||null,T=G?new Date(G).getTime():1/0,K=g?new Date(g).getTime():1/0;return T-K}let O=Z.completed_at||Z.executed_at||Z.created_at,B=_.completed_at||_.executed_at||_.created_at;return new Date(B).getTime()-new Date(O).getTime()})}var oz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function _X(l){try{let Z=l.trim().split(/\s+/);if(Z.length!==5)return l;let[_,H,M,O,B]=Z;if(_.startsWith("*/")&&H==="*"&&M==="*"&&O==="*"&&B==="*"){let g=parseInt(_.slice(2));return g===1?"Every min":`Every ${g}min`}if(_!=="*"&&!_.includes("/")&&H==="*"&&M==="*"&&O==="*"&&B==="*")return"Hourly";if(H.startsWith("*/")&&M==="*"&&O==="*"&&B==="*"){let g=parseInt(H.slice(2));return g===1?"Hourly":`Every ${g}h`}let G=(g,T)=>{let K=parseInt(g),n=parseInt(T);if(isNaN(K))return"";let F=K>=12?"PM":"AM";return`${K===0?12:K>12?K-12:K}:${n.toString().padStart(2,"0")} ${F}`};if(H!=="*"&&!H.includes("/")&&M==="*"&&O==="*"){let g=G(H,_);if(B==="*")return`Daily ${g}`;let T=B.split(",").map((K)=>oz[parseInt(K.trim())]||K);if(T.length===1)return`${T[0]} ${g}`;return`${T.join(" & ")} ${g}`}return l}catch{return l}}function az(l){let Z=new Date(l),_=new Date,H=Z.getTime()-_.getTime(),M=H>0,O=Math.abs(H),B=Math.floor(O/60000),G=Math.floor(O/3600000),g=Z.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),T=Z.toDateString()===_.toDateString(),K=new Date(_);K.setDate(K.getDate()+1);let n=Z.toDateString()===K.toDateString();if(T){if(B<1)return"now";if(B<60)return M?`in ${B}m`:`${B}m ago`;return M?`in ${G}h`:`${G}h ago`}if(n)return`Tomorrow ${g}`;return`${oz[Z.getDay()]} ${g}`}var Ya=Xa(po(),1),QX=Ia.lazy(()=>import("./SettingsPage.evpv7c2y.js").then((l)=>({default:l.SettingsPage}))),BX=Ia.lazy(()=>import("./TasksPage.6jnvbpsy.js").then((l)=>({default:l.TasksPage}))),KX=Ia.lazy(()=>import("./McpPage.cdxm48xj.js").then((l)=>({default:l.McpPage}))),HX=Ia.lazy(()=>import("./SkillsPage.pvzp6c1a.js").then((l)=>({default:l.SkillsPage}))),WX=Ia.lazy(()=>import("./TestsPage.5x6658aa.js").then((l)=>({default:l.TestsPage}))),UX=Ia.lazy(()=>import("./ThreadsPage.3fvhtevh.js").then((l)=>({default:l.ThreadsPage}))),RX=Ia.lazy(()=>import("./TelemetryPage.t7vk24zc.js").then((l)=>({default:l.TelemetryPage}))),OX=Ia.lazy(()=>import("./ConnectionsPage.k6cspyqq.js").then((l)=>({default:l.ConnectionsPage}))),LX=Ia.lazy(()=>import("./ActivityPage.c48n83h2.js").then((l)=>({default:l.ActivityPage}))),yX=Ia.lazy(()=>import("./ApiDocsPage.yzcxx5ax.js").then((l)=>({default:l.ApiDocsPage})));function kX(){let{isAuthenticated:l,isLoading:Z,hasUsers:_,accessToken:H,checkAuth:M}=Xo(),{currentProjectId:O,refreshProjects:B}=rp(),G=$b(),g=mz(),{isComplete:T,setIsComplete:K}=Q6(),n=()=>{return H?{Authorization:`Bearer ${H}`}:{}},F=l&&T===!0,{agents:V,loading:C,runningCount:A,fetchAgents:j,createAgent:Za,updateAgent:aa,deleteAgent:wa,toggleAgent:P}=q6(F,O),{providers:Na,configuredProviders:Ma,fetchProviders:Wa}=d6(F),ta=Ma.filter((N)=>N.type==="llm"),io=Ia.useMemo(()=>{if(O===null)return V.length;if(O==="unassigned")return V.filter((N)=>!N.projectId).length;return V.filter((N)=>N.projectId===O).length},[V,O]),[L,ma]=Ia.useState(!1),[y,U]=Ia.useState(null),[k,h]=Ia.useState("dashboard"),[S,ra]=Ia.useState(null),[Pa,xa]=Ia.useState(0),[yp,Ep]=Ia.useState(!1);Ia.useEffect(()=>{if(!F)return;(async()=>{try{let lo="/api/tasks?status=pending";if(O!==null)lo+=`&project_id=${encodeURIComponent(O)}`;let ko=await fetch(lo,{headers:n()});if(ko.ok){let $p=await ko.json();xa($p.count??($p.tasks||[]).length)}}catch{}})()},[F,H,O,G,g]);let[vp,yo]=Ia.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{..._6},mcpServers:[],skills:[]});Ia.useEffect(()=>{if(ta.length>0&&!vp.provider){let N=ta[0],lo=N.models.find((ko)=>ko.recommended)?.value||N.models[0]?.value||"";yo((ko)=>({...ko,provider:N.id,model:lo}))}},[ta,vp.provider]),Ia.useEffect(()=>{if(y){let N=V.find((lo)=>lo.id===y.id);if(N)U(N);else U(null)}},[V,y]);let $o=(N)=>{let lo=Na.find(($p)=>$p.id===N),ko=lo?.models.find(($p)=>$p.recommended)?.value||lo?.models[0]?.value||"";yo(($p)=>({...$p,provider:N,model:ko}))},mr=async()=>{if(!vp.name)return;await Za(vp),await B();let N=ta[0],lo=N?.models.find((ko)=>ko.recommended)?.value||N?.models[0]?.value||"";yo({name:"",model:lo,provider:N?.id||"",systemPrompt:"You are a helpful assistant.",features:{..._6},mcpServers:[],skills:[]}),ma(!1)},iv=async(N,lo)=>{lo?.stopPropagation(),ra(null);let ko=await P(N);if(ko.error)ra(ko.error)},tr=async(N,lo)=>{if(lo?.stopPropagation(),y?.id===N)U(null);await wa(N),await B()},R=(N)=>{U(N),ra(null),h("agents")},s=(N)=>{h(N),U(null)},Ta=()=>{K(!0),Wa(),M()};if(Z||_===null)return Ya.jsxDEV(Er,{fullScreen:!0},void 0,!1,void 0,this);if(!_)return Ya.jsxDEV(D2,{onComplete:Ta,needsAccount:!0},void 0,!1,void 0,this);if(!l)return Ya.jsxDEV(_b,{},void 0,!1,void 0,this);if(T===null)return Ya.jsxDEV(Er,{fullScreen:!0},void 0,!1,void 0,this);if(!T)return Ya.jsxDEV(D2,{onComplete:Ta,needsAccount:!1},void 0,!1,void 0,this);return Ya.jsxDEV("div",{className:"h-screen font-mono flex flex-col overflow-hidden",style:{backgroundColor:"var(--color-bg)",color:"var(--color-text)"},children:[Ya.jsxDEV(Jb,{onMenuClick:()=>Ep(!0),agents:V},void 0,!1,void 0,this),S&&Ya.jsxDEV(Gb,{message:S,onDismiss:()=>ra(null)},void 0,!1,void 0,this),Ya.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[Ya.jsxDEV(Zb,{route:k,agentCount:io,taskCount:Pa,onNavigate:s,isOpen:yp,onClose:()=>Ep(!1)},void 0,!1,void 0,this),Ya.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:Ya.jsxDEV(Ia.Suspense,{fallback:Ya.jsxDEV(Er,{},void 0,!1,void 0,this),children:[k==="settings"&&Ya.jsxDEV(QX,{},void 0,!1,void 0,this),k==="agents"&&Ya.jsxDEV(Ub,{agents:V,loading:C,selectedAgent:y,providers:Na,onSelectAgent:R,onCloseAgent:()=>U(null),onToggleAgent:iv,onDeleteAgent:tr,onUpdateAgent:aa,onNewAgent:()=>ma(!0),canCreateAgent:ta.length>0},void 0,!1,void 0,this),k==="dashboard"&&Ya.jsxDEV(Ob,{agents:V,loading:C,runningCount:A,configuredProviders:Ma,onNavigate:s,onSelectAgent:R},void 0,!1,void 0,this),k==="threads"&&Ya.jsxDEV(UX,{agents:V,onNavigate:h},void 0,!1,void 0,this),k==="activity"&&Ya.jsxDEV(LX,{agents:V,loading:C,onNavigate:s},void 0,!1,void 0,this),k==="tasks"&&Ya.jsxDEV(BX,{},void 0,!1,void 0,this),k==="connections"&&Ya.jsxDEV(OX,{},void 0,!1,void 0,this),k==="mcp"&&Ya.jsxDEV(KX,{},void 0,!1,void 0,this),k==="skills"&&Ya.jsxDEV(HX,{},void 0,!1,void 0,this),k==="tests"&&Ya.jsxDEV(WX,{},void 0,!1,void 0,this),k==="telemetry"&&Ya.jsxDEV(RX,{},void 0,!1,void 0,this),k==="api"&&Ya.jsxDEV(yX,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L&&Ya.jsxDEV(Kb,{form:vp,providers:Na,configuredProviders:Ma,onFormChange:yo,onProviderChange:$o,onCreate:mr,onClose:()=>ma(!1),onGoToSettings:()=>{ma(!1),h("settings")}},void 0,!1,void 0,this),Ya.jsxDEV(kc,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function NX({token:l}){let{theme:Z}=Vr(),[_,H]=Ia.useState("checking"),[M,O]=Ia.useState("Agent");if(Ia.useEffect(()=>{let B=async()=>{try{let g=await fetch(`/share/${l}/info`);if(g.ok){let T=await g.json();O(T.name||"Agent"),H(T.status==="running"?"online":"offline")}else H("offline")}catch{H("offline")}};B();let G=setInterval(B,15000);return()=>clearInterval(G)},[l]),_==="checking")return Ya.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center",style:{backgroundColor:"var(--color-bg)"},children:Ya.jsxDEV("div",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Connecting..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(_==="offline")return Ya.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center",style:{backgroundColor:"var(--color-bg)"},children:Ya.jsxDEV("div",{className:"text-center",children:[Ya.jsxDEV("div",{className:"w-2.5 h-2.5 rounded-full mx-auto mb-3",style:{backgroundColor:"var(--color-text-muted)"}},void 0,!1,void 0,this),Ya.jsxDEV("div",{className:"text-base font-semibold mb-1.5",style:{color:"var(--color-text)"},children:M},void 0,!1,void 0,this),Ya.jsxDEV("div",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"This agent is currently offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return Ya.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center p-0 md:p-4",style:{backgroundColor:"var(--color-bg)"},children:Ya.jsxDEV("div",{className:"w-full max-w-[640px] h-[100dvh] md:h-[calc(100dvh-32px)] md:max-h-[800px] md:rounded-xl overflow-hidden md:border flex flex-col",style:{backgroundColor:"var(--color-bg)",borderColor:"var(--color-border)"},children:Ya.jsxDEV(xr,{agentId:"default",apiUrl:`/share/${l}`,placeholder:"Type a message...",variant:"terminal",theme:Z.id,headerTitle:M,enableMarkdown:!0,enableWidgets:!0,availableWidgets:["form","kpi"]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function MX(){let l=window.location.pathname.match(/^\/share\/([a-f0-9]{32})$/);if(l)return Ya.jsxDEV(O6,{children:Ya.jsxDEV(NX,{token:l[1]},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Ya.jsxDEV(O6,{children:Ya.jsxDEV(tz,{children:Ya.jsxDEV(rz,{children:Ya.jsxDEV(Lc,{children:Ya.jsxDEV(pz,{children:Ya.jsxDEV(kX,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var hX=vz.createRoot(document.getElementById("root"));hX.render(Ya.jsxDEV(MX,{},void 0,!1,void 0,this));
|
|
220
|
-
|
|
221
|
-
//# debugId=85B22FCCB19FC18164756E2164756E21
|