@apteva/apteva-linux-x64 0.4.31
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/apteva +0 -0
- package/dist/ActivityPage.41nbye4r.js +3 -0
- package/dist/ActivityPage.41nbye4r.js.map +9 -0
- package/dist/ApiDocsPage.4smnt8m3.js +4 -0
- package/dist/ApiDocsPage.4smnt8m3.js.map +10 -0
- package/dist/App.0sbax9et.js +4 -0
- package/dist/App.0sbax9et.js.map +10 -0
- package/dist/App.0ws427h8.js +4 -0
- package/dist/App.0ws427h8.js.map +10 -0
- package/dist/App.6q6bar8b.js +4 -0
- package/dist/App.6q6bar8b.js.map +10 -0
- package/dist/App.80301vdb.js +4 -0
- package/dist/App.80301vdb.js.map +10 -0
- package/dist/App.af2wg84v.js +267 -0
- package/dist/App.af2wg84v.js.map +35 -0
- package/dist/App.ca1rz1ph.js +4 -0
- package/dist/App.ca1rz1ph.js.map +14 -0
- package/dist/App.ensa6z0r.js +4 -0
- package/dist/App.ensa6z0r.js.map +10 -0
- package/dist/App.f8g7tych.js +13 -0
- package/dist/App.f8g7tych.js.map +10 -0
- package/dist/App.mvtqv6qc.js +20 -0
- package/dist/App.mvtqv6qc.js.map +14 -0
- package/dist/App.ncgc9cxy.js +4 -0
- package/dist/App.ncgc9cxy.js.map +10 -0
- package/dist/App.p02f4ret.js +1 -0
- package/dist/App.p0fb1pds.js +4 -0
- package/dist/App.p0fb1pds.js.map +10 -0
- package/dist/App.pmaq48sj.js +4 -0
- package/dist/App.pmaq48sj.js.map +10 -0
- package/dist/App.yv87t9m5.js +4 -0
- package/dist/App.yv87t9m5.js.map +10 -0
- package/dist/App.zjmfm8p6.js +4 -0
- package/dist/App.zjmfm8p6.js.map +10 -0
- package/dist/ConnectionsPage.anb3rv9a.js +3 -0
- package/dist/ConnectionsPage.anb3rv9a.js.map +9 -0
- package/dist/McpPage.y396h6fy.js +3 -0
- package/dist/McpPage.y396h6fy.js.map +9 -0
- package/dist/SettingsPage.p1hc60gk.js +3 -0
- package/dist/SettingsPage.p1hc60gk.js.map +9 -0
- package/dist/SkillsPage.yj3xdsay.js +3 -0
- package/dist/SkillsPage.yj3xdsay.js.map +9 -0
- package/dist/TasksPage.sjv0khtv.js +3 -0
- package/dist/TasksPage.sjv0khtv.js.map +9 -0
- package/dist/TelemetryPage.2qm4w16r.js +3 -0
- package/dist/TelemetryPage.2qm4w16r.js.map +9 -0
- package/dist/TestsPage.zzs4qfj8.js +3 -0
- package/dist/TestsPage.zzs4qfj8.js.map +9 -0
- package/dist/apteva-kit.css +1 -0
- package/dist/icon.png +0 -0
- package/dist/index.html +16 -0
- package/dist/styles.css +1 -0
- package/index.js +1 -0
- package/package.json +10 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import{a as tz}from"./App.ca1rz1ph.js";import"./App.80301vdb.js";import"./App.6q6bar8b.js";import{g as m2,h as sH,i as UY}from"./App.pmaq48sj.js";import"./App.zjmfm8p6.js";import"./App.ensa6z0r.js";import{A as LX,B as A2,C as v2,D as y2,E as V2,F as hJ,H as D2,I as E2,J as f2,K as T2,l as uJ,m as nz,n as oH,o as rH,p as nH,q as KX,r as k7,s as _X,t as BX,u as Q8,v as mJ,w as UX,x as I2,y as k2,z as OX}from"./App.ncgc9cxy.js";import"./App.f8g7tych.js";import"./App.0sbax9et.js";import{N as tH,O as iJ}from"./App.yv87t9m5.js";import"./App.0ws427h8.js";import{R as G8}from"./App.p0fb1pds.js";import{$ as yJ,S as n,T as $X,U as q8,V as e0,W as C1,X as x2,Y as qY,Z as S2,_ as lJ,aa as u2,ba as b2,ca as c1,da as l2,ea as P2,fa as u4,ga as c2}from"./App.mvtqv6qc.js";var VL=$X((vF)=>{(function(){function G(){if(a=!1,c){var t=vF.unstable_now();e=t;var Z0=!0;try{z:{s=!1,p&&(p=!1,d(v0),v0=-1),i=!0;var K0=g;try{$:{N(t);for(V=_(P);V!==null&&!(V.expirationTime>t&&U());){var h0=V.callback;if(typeof h0==="function"){V.callback=null,g=V.priorityLevel;var f0=h0(V.expirationTime<=t);if(t=vF.unstable_now(),typeof f0==="function"){V.callback=f0,N(t),Z0=!0;break $}V===_(P)&&L(P),N(t)}else L(P);V=_(P)}if(V!==null)Z0=!0;else{var m=_(S);m!==null&&I(M,m.startTime-t),Z0=!1}}break z}finally{V=null,g=K0,i=!1}Z0=void 0}}finally{Z0?l():c=!1}}}function H(t,Z0){var K0=t.length;t.push(Z0);z:for(;0<K0;){var h0=K0-1>>>1,f0=t[h0];if(0<R(f0,Z0))t[h0]=Z0,t[K0]=f0,K0=h0;else break z}}function _(t){return t.length===0?null:t[0]}function L(t){if(t.length===0)return null;var Z0=t[0],K0=t.pop();if(K0!==Z0){t[0]=K0;z:for(var h0=0,f0=t.length,m=f0>>>1;h0<m;){var Q0=2*(h0+1)-1,k0=t[Q0],D0=Q0+1,r0=t[D0];if(0>R(k0,K0))D0<f0&&0>R(r0,k0)?(t[h0]=r0,t[D0]=K0,h0=D0):(t[h0]=k0,t[Q0]=K0,h0=Q0);else if(D0<f0&&0>R(r0,K0))t[h0]=r0,t[D0]=K0,h0=D0;else break z}}return Z0}function R(t,Z0){var K0=t.sortIndex-Z0.sortIndex;return K0!==0?K0:t.id-Z0.id}function N(t){for(var Z0=_(S);Z0!==null;){if(Z0.callback===null)L(S);else if(Z0.startTime<=t)L(S),Z0.sortIndex=Z0.expirationTime,H(P,Z0);else break;Z0=_(S)}}function M(t){if(p=!1,N(t),!s)if(_(P)!==null)s=!0,c||(c=!0,l());else{var Z0=_(S);Z0!==null&&I(M,Z0.startTime-t)}}function U(){return a?!0:vF.unstable_now()-e<C?!1:!0}function I(t,Z0){v0=H0(function(){t(vF.unstable_now())},Z0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),vF.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var y=performance;vF.unstable_now=function(){return y.now()}}else{var O=Date,F=O.now();vF.unstable_now=function(){return O.now()-F}}var P=[],S=[],E=1,V=null,g=3,i=!1,s=!1,p=!1,a=!1,H0=typeof setTimeout==="function"?setTimeout:null,d=typeof clearTimeout==="function"?clearTimeout:null,B0=typeof setImmediate<"u"?setImmediate:null,c=!1,v0=-1,C=5,e=-1;if(typeof B0==="function")var l=function(){B0(G)};else if(typeof MessageChannel<"u"){var u=new MessageChannel,q0=u.port2;u.port1.onmessage=G,l=function(){q0.postMessage(null)}}else l=function(){H0(G,0)};vF.unstable_IdlePriority=5,vF.unstable_ImmediatePriority=1,vF.unstable_LowPriority=4,vF.unstable_NormalPriority=3,vF.unstable_Profiling=null,vF.unstable_UserBlockingPriority=2,vF.unstable_cancelCallback=function(t){t.callback=null},vF.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<t?Math.floor(1000/t):5},vF.unstable_getCurrentPriorityLevel=function(){return g},vF.unstable_next=function(t){switch(g){case 1:case 2:case 3:var Z0=3;break;default:Z0=g}var K0=g;g=Z0;try{return t()}finally{g=K0}},vF.unstable_requestPaint=function(){a=!0},vF.unstable_runWithPriority=function(t,Z0){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var K0=g;g=t;try{return Z0()}finally{g=K0}},vF.unstable_scheduleCallback=function(t,Z0,K0){var h0=vF.unstable_now();switch(typeof K0==="object"&&K0!==null?(K0=K0.delay,K0=typeof K0==="number"&&0<K0?h0+K0:h0):K0=h0,t){case 1:var f0=-1;break;case 2:f0=250;break;case 5:f0=1073741823;break;case 4:f0=1e4;break;default:f0=5000}return f0=K0+f0,t={id:E++,callback:Z0,priorityLevel:t,startTime:K0,expirationTime:f0,sortIndex:-1},K0>h0?(t.sortIndex=K0,H(S,t),_(P)===null&&t===_(S)&&(p?(d(v0),v0=-1):p=!0,I(M,K0-h0))):(t.sortIndex=f0,H(P,t),s||i||(s=!0,c||(c=!0,l()))),t},vF.unstable_shouldYield=U,vF.unstable_wrapCallback=function(t){var Z0=g;return function(){var K0=g;g=Z0;try{return t.apply(this,arguments)}finally{g=K0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var CL=$X((TF)=>{var VH=n(e0());(function(){function G(){}function H(O){return""+O}function _(O,F,P){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{H(S);var E=!1}catch(V){E=!0}return E&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object"),H(S)),{$$typeof:I,key:S==null?null:""+S,children:O,containerInfo:F,implementation:P}}function L(O,F){if(O==="font")return"";if(typeof F==="string")return F==="use-credentials"?F:""}function R(O){return O===null?"`null`":O===void 0?"`undefined`":O===""?"an empty string":'something with type "'+typeof O+'"'}function N(O){return O===null?"`null`":O===void 0?"`undefined`":O===""?"an empty string":typeof O==="string"?JSON.stringify(O):typeof O==="number"?"`"+O+"`":'something with type "'+typeof O+'"'}function M(){var O=y.H;return O===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
2
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
3
|
+
2. You might be breaking the Rules of Hooks
|
|
4
|
+
3. You might have more than one copy of React in the same app
|
|
5
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),O}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U={d:{f:G,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:G,C:G,L:G,m:G,X:G,S:G,M:G},p:0,findDOMNode:null},I=Symbol.for("react.portal"),y=VH.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),TF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,TF.createPortal=function(O,F){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!F||F.nodeType!==1&&F.nodeType!==9&&F.nodeType!==11)throw Error("Target container is not a DOM element.");return _(O,F,null,P)},TF.flushSync=function(O){var F=y.T,P=U.p;try{if(y.T=null,U.p=2,O)return O()}finally{y.T=F,U.p=P,U.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},TF.preconnect=function(O,F){typeof O==="string"&&O?F!=null&&typeof F!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",N(F)):F!=null&&typeof F.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",R(F.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",R(O)),typeof O==="string"&&(F?(F=F.crossOrigin,F=typeof F==="string"?F==="use-credentials"?F:"":void 0):F=null,U.d.C(O,F))},TF.prefetchDNS=function(O){if(typeof O!=="string"||!O)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",R(O));else if(1<arguments.length){var F=arguments[1];typeof F==="object"&&F.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",N(F)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",N(F))}typeof O==="string"&&U.d.D(O)},TF.preinit=function(O,F){if(typeof O==="string"&&O?F==null||typeof F!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",N(F)):F.as!=="style"&&F.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',N(F.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",R(O)),typeof O==="string"&&F&&typeof F.as==="string"){var P=F.as,S=L(P,F.crossOrigin),E=typeof F.integrity==="string"?F.integrity:void 0,V=typeof F.fetchPriority==="string"?F.fetchPriority:void 0;P==="style"?U.d.S(O,typeof F.precedence==="string"?F.precedence:void 0,{crossOrigin:S,integrity:E,fetchPriority:V}):P==="script"&&U.d.X(O,{crossOrigin:S,integrity:E,fetchPriority:V,nonce:typeof F.nonce==="string"?F.nonce:void 0})}},TF.preinitModule=function(O,F){var P="";if(typeof O==="string"&&O||(P+=" The `href` argument encountered was "+R(O)+"."),F!==void 0&&typeof F!=="object"?P+=" The `options` argument encountered was "+R(F)+".":F&&("as"in F)&&F.as!=="script"&&(P+=" The `as` option encountered was "+N(F.as)+"."),P)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",P);else switch(P=F&&typeof F.as==="string"?F.as:"script",P){case"script":break;default:P=N(P),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',P,O)}if(typeof O==="string")if(typeof F==="object"&&F!==null){if(F.as==null||F.as==="script")P=L(F.as,F.crossOrigin),U.d.M(O,{crossOrigin:P,integrity:typeof F.integrity==="string"?F.integrity:void 0,nonce:typeof F.nonce==="string"?F.nonce:void 0})}else F==null&&U.d.M(O)},TF.preload=function(O,F){var P="";if(typeof O==="string"&&O||(P+=" The `href` argument encountered was "+R(O)+"."),F==null||typeof F!=="object"?P+=" The `options` argument encountered was "+R(F)+".":typeof F.as==="string"&&F.as||(P+=" The `as` option encountered was "+R(F.as)+"."),P&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',P),typeof O==="string"&&typeof F==="object"&&F!==null&&typeof F.as==="string"){P=F.as;var S=L(P,F.crossOrigin);U.d.L(O,P,{crossOrigin:S,integrity:typeof F.integrity==="string"?F.integrity:void 0,nonce:typeof F.nonce==="string"?F.nonce:void 0,type:typeof F.type==="string"?F.type:void 0,fetchPriority:typeof F.fetchPriority==="string"?F.fetchPriority:void 0,referrerPolicy:typeof F.referrerPolicy==="string"?F.referrerPolicy:void 0,imageSrcSet:typeof F.imageSrcSet==="string"?F.imageSrcSet:void 0,imageSizes:typeof F.imageSizes==="string"?F.imageSizes:void 0,media:typeof F.media==="string"?F.media:void 0})}},TF.preloadModule=function(O,F){var P="";typeof O==="string"&&O||(P+=" The `href` argument encountered was "+R(O)+"."),F!==void 0&&typeof F!=="object"?P+=" The `options` argument encountered was "+R(F)+".":F&&("as"in F)&&typeof F.as!=="string"&&(P+=" The `as` option encountered was "+R(F.as)+"."),P&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',P),typeof O==="string"&&(F?(P=L(F.as,F.crossOrigin),U.d.m(O,{as:typeof F.as==="string"&&F.as!=="script"?F.as:void 0,crossOrigin:P,integrity:typeof F.integrity==="string"?F.integrity:void 0})):U.d.m(O))},TF.requestFormReset=function(O){U.d.r(O)},TF.unstable_batchedUpdates=function(O,F){return O(F)},TF.useFormState=function(O,F,P){return M().useFormState(O,F,P)},TF.useFormStatus=function(){return M().useHostTransitionStatus()},TF.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var DL=$X((Fw,SL)=>{var IF=n(CL());SL.exports=IF});var EL=$X((kF)=>{var X1=n(VL()),XX=n(e0()),CH=n(DL());(function(){function G(z,$){for(z=z.memoizedState;z!==null&&0<$;)z=z.next,$--;return z}function H(z,$,X,Y){if(X>=$.length)return Y;var Z=$[X],J=q4(z)?z.slice():d0({},z);return J[Z]=H(z[Z],$,X+1,Y),J}function _(z,$,X){if($.length!==X.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<X.length-1;Y++)if($[Y]!==X[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return L(z,$,X,0)}}function L(z,$,X,Y){var Z=$[Y],J=q4(z)?z.slice():d0({},z);return Y+1===$.length?(J[X[Y]]=J[Z],q4(J)?J.splice(Z,1):delete J[Z]):J[Z]=L(z[Z],$,X,Y+1),J}function R(z,$,X){var Y=$[X],Z=q4(z)?z.slice():d0({},z);if(X+1===$.length)return q4(Z)?Z.splice(Y,1):delete Z[Y],Z;return Z[Y]=R(z[Y],$,X+1),Z}function N(){return!1}function M(){return null}function U(){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 I(){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 y(){}function O(){}function F(z){var $=[];return z.forEach(function(X){$.push(X)}),$.sort().join(", ")}function P(z,$,X,Y){return new OW(z,$,X,Y)}function S(z,$){z.context===f8&&(nG(z.current,2,$,z,null,null),B$())}function E(z,$){if(N6!==null){var X=$.staleFamilies;$=$.updatedFamilies,tX(),mK(z.current,$,X),B$()}}function V(z){N6=z}function g(z){return!(!z||z.nodeType!==1&&z.nodeType!==9&&z.nodeType!==11)}function i(z){var $=z,X=z;if(z.alternate)for(;$.return;)$=$.return;else{z=$;do $=z,($.flags&4098)!==0&&(X=$.return),z=$.return;while(z)}return $.tag===3?X:null}function s(z){if(z.tag===13){var $=z.memoizedState;if($===null&&(z=z.alternate,z!==null&&($=z.memoizedState)),$!==null)return $.dehydrated}return null}function p(z){if(z.tag===31){var $=z.memoizedState;if($===null&&(z=z.alternate,z!==null&&($=z.memoizedState)),$!==null)return $.dehydrated}return null}function a(z){if(i(z)!==z)throw Error("Unable to find node on an unmounted component.")}function H0(z){var $=z.alternate;if(!$){if($=i(z),$===null)throw Error("Unable to find node on an unmounted component.");return $!==z?null:z}for(var X=z,Y=$;;){var Z=X.return;if(Z===null)break;var J=Z.alternate;if(J===null){if(Y=Z.return,Y!==null){X=Y;continue}break}if(Z.child===J.child){for(J=Z.child;J;){if(J===X)return a(Z),z;if(J===Y)return a(Z),$;J=J.sibling}throw Error("Unable to find node on an unmounted component.")}if(X.return!==Y.return)X=Z,Y=J;else{for(var Q=!1,q=Z.child;q;){if(q===X){Q=!0,X=Z,Y=J;break}if(q===Y){Q=!0,Y=Z,X=J;break}q=q.sibling}if(!Q){for(q=J.child;q;){if(q===X){Q=!0,X=J,Y=Z;break}if(q===Y){Q=!0,Y=J,X=Z;break}q=q.sibling}if(!Q)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(X.alternate!==Y)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(X.tag!==3)throw Error("Unable to find node on an unmounted component.");return X.stateNode.current===X?z:$}function d(z){var $=z.tag;if($===5||$===26||$===27||$===6)return z;for(z=z.child;z!==null;){if($=d(z),$!==null)return $;z=z.sibling}return null}function B0(z){if(z===null||typeof z!=="object")return null;return z=lU&&z[lU]||z["@@iterator"],typeof z==="function"?z:null}function c(z){if(z==null)return null;if(typeof z==="function")return z.$$typeof===f3?null:z.displayName||z.name||null;if(typeof z==="string")return z;switch(z){case N$:return"Fragment";case Xq:return"Profiler";case PZ:return"StrictMode";case Zq:return"Suspense";case Jq:return"SuspenseList";case Qq:return"Activity"}if(typeof z==="object")switch(typeof z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),z.$$typeof){case F$:return"Portal";case W7:return z.displayName||"Context";case Yq:return(z._context.displayName||"Context")+".Consumer";case G5:var $=z.render;return z=z.displayName,z||(z=$.displayName||$.name||"",z=z!==""?"ForwardRef("+z+")":"ForwardRef"),z;case AZ:return $=z.displayName||null,$!==null?$:c(z.type)||"Memo";case J6:$=z._payload,z=z._init;try{return c(z($))}catch(X){}}return null}function v0(z){return typeof z.tag==="number"?C(z):typeof z.name==="string"?z.name:null}function C(z){var $=z.type;switch(z.tag){case 31:return"Activity";case 24:return"Cache";case 9:return($._context.displayName||"Context")+".Consumer";case 10:return $.displayName||"Context";case 18:return"DehydratedFragment";case 11:return z=$.render,z=z.displayName||z.name||"",$.displayName||(z!==""?"ForwardRef("+z+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return $;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return c($);case 8:return $===PZ?"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 $==="function")return $.displayName||$.name||null;if(typeof $==="string")return $;break;case 29:if($=z._debugInfo,$!=null){for(var X=$.length-1;0<=X;X--)if(typeof $[X].name==="string")return $[X].name}if(z.return!==null)return C(z.return)}return null}function e(z){return{current:z}}function l(z,$){0>g7?console.error("Unexpected pop."):($!==qq[g7]&&console.error("Unexpected Fiber popped."),z.current=Gq[g7],Gq[g7]=null,qq[g7]=null,g7--)}function u(z,$,X){g7++,Gq[g7]=z.current,qq[g7]=X,z.current=$}function q0(z){return z===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),z}function t(z,$){u(y8,$,z),u(q5,z,z),u(k8,null,z);var X=$.nodeType;switch(X){case 9:case 11:X=X===9?"#document":"#fragment",$=($=$.documentElement)?($=$.namespaceURI)?UU($):z8:z8;break;default:if(X=$.tagName,$=$.namespaceURI)$=UU($),$=OU($,X);else switch(X){case"svg":$=e$;break;case"math":$=bJ;break;default:$=z8}}X=X.toLowerCase(),X=GK(null,X),X={context:$,ancestorInfo:X},l(k8,z),u(k8,X,z)}function Z0(z){l(k8,z),l(q5,z),l(y8,z)}function K0(){return q0(k8.current)}function h0(z){z.memoizedState!==null&&u(vZ,z,z);var $=q0(k8.current),X=z.type,Y=OU($.context,X);X=GK($.ancestorInfo,X),Y={context:Y,ancestorInfo:X},$!==Y&&(u(q5,z,z),u(k8,Y,z))}function f0(z){q5.current===z&&(l(k8,z),l(q5,z)),vZ.current===z&&(l(vZ,z),e5._currentValue=cz)}function m(){}function Q0(){if(H5===0){cU=console.log,dU=console.info,aU=console.warn,iU=console.error,oU=console.group,rU=console.groupCollapsed,nU=console.groupEnd;var z={configurable:!0,enumerable:!0,value:m,writable:!0};Object.defineProperties(console,{info:z,log:z,warn:z,error:z,group:z,groupCollapsed:z,groupEnd:z})}H5++}function k0(){if(H5--,H5===0){var z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:d0({},z,{value:cU}),info:d0({},z,{value:dU}),warn:d0({},z,{value:aU}),error:d0({},z,{value:iU}),group:d0({},z,{value:oU}),groupCollapsed:d0({},z,{value:rU}),groupEnd:d0({},z,{value:nU})})}0>H5&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function D0(z){var $=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,z=z.stack,Error.prepareStackTrace=$,z.startsWith(`Error: react-stack-top-frame
|
|
6
|
+
`)&&(z=z.slice(29)),$=z.indexOf(`
|
|
7
|
+
`),$!==-1&&(z=z.slice($+1)),$=z.indexOf("react_stack_bottom_frame"),$!==-1&&($=z.lastIndexOf(`
|
|
8
|
+
`,$)),$!==-1)z=z.slice(0,$);else return"";return z}function r0(z){if(Hq===void 0)try{throw Error()}catch(X){var $=X.stack.trim().match(/\n( *(at )?)/);Hq=$&&$[1]||"",tU=-1<X.stack.indexOf(`
|
|
9
|
+
at`)?" (<anonymous>)":-1<X.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
10
|
+
`+Hq+z+tU}function G4(z,$){if(!z||Kq)return"";var X=_q.get(z);if(X!==void 0)return X;Kq=!0,X=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=j.H,j.H=null,Q0();try{var Z={DetermineComponentFrameRoot:function(){try{if($){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(z0){var D=z0}Reflect.construct(z,[],b)}else{try{b.call()}catch(z0){D=z0}z.call(b.prototype)}}else{try{throw Error()}catch(z0){D=z0}(b=z())&&typeof b.catch==="function"&&b.catch(function(){})}}catch(z0){if(z0&&D&&typeof z0.stack==="string")return[z0.stack,D.stack]}return[null,null]}};Z.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var J=Object.getOwnPropertyDescriptor(Z.DetermineComponentFrameRoot,"name");J&&J.configurable&&Object.defineProperty(Z.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Q=Z.DetermineComponentFrameRoot(),q=Q[0],K=Q[1];if(q&&K){var B=q.split(`
|
|
11
|
+
`),T=K.split(`
|
|
12
|
+
`);for(Q=J=0;J<B.length&&!B[J].includes("DetermineComponentFrameRoot");)J++;for(;Q<T.length&&!T[Q].includes("DetermineComponentFrameRoot");)Q++;if(J===B.length||Q===T.length)for(J=B.length-1,Q=T.length-1;1<=J&&0<=Q&&B[J]!==T[Q];)Q--;for(;1<=J&&0<=Q;J--,Q--)if(B[J]!==T[Q]){if(J!==1||Q!==1)do if(J--,Q--,0>Q||B[J]!==T[Q]){var k=`
|
|
13
|
+
`+B[J].replace(" at new "," at ");return z.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",z.displayName)),typeof z==="function"&&_q.set(z,k),k}while(1<=J&&0<=Q);break}}}finally{Kq=!1,j.H=Y,k0(),Error.prepareStackTrace=X}return B=(B=z?z.displayName||z.name:"")?r0(B):"",typeof z==="function"&&_q.set(z,B),B}function f(z,$){switch(z.tag){case 26:case 27:case 5:return r0(z.type);case 16:return r0("Lazy");case 13:return z.child!==$&&$!==null?r0("Suspense Fallback"):r0("Suspense");case 19:return r0("SuspenseList");case 0:case 15:return G4(z.type,!1);case 11:return G4(z.type.render,!1);case 1:return G4(z.type,!0);case 31:return r0("Activity");default:return""}}function Y0(z){try{var $="",X=null;do{$+=f(z,X);var Y=z._debugInfo;if(Y)for(var Z=Y.length-1;0<=Z;Z--){var J=Y[Z];if(typeof J.name==="string"){var Q=$;z:{var{name:q,env:K,debugLocation:B}=J;if(B!=null){var T=D0(B),k=T.lastIndexOf(`
|
|
14
|
+
`),b=k===-1?T:T.slice(k+1);if(b.indexOf(q)!==-1){var D=`
|
|
15
|
+
`+b;break z}}D=r0(q+(K?" ["+K+"]":""))}$=Q+D}}X=z,z=z.return}while(z);return $}catch(z0){return`
|
|
16
|
+
Error generating stack: `+z0.message+`
|
|
17
|
+
`+z0.stack}}function i0(z){return(z=z?z.displayName||z.name:"")?r0(z):""}function U1(){if(Q6===null)return null;var z=Q6._debugOwner;return z!=null?v0(z):null}function O6(){if(Q6===null)return"";var z=Q6;try{var $="";switch(z.tag===6&&(z=z.return),z.tag){case 26:case 27:case 5:$+=r0(z.type);break;case 13:$+=r0("Suspense");break;case 19:$+=r0("SuspenseList");break;case 31:$+=r0("Activity");break;case 30:case 0:case 15:case 1:z._debugOwner||$!==""||($+=i0(z.type));break;case 11:z._debugOwner||$!==""||($+=i0(z.type.render))}for(;z;)if(typeof z.tag==="number"){var X=z;z=X._debugOwner;var Y=X._debugStack;if(z&&Y){var Z=D0(Y);Z!==""&&($+=`
|
|
18
|
+
`+Z)}}else if(z.debugStack!=null){var J=z.debugStack;(z=z.owner)&&J&&($+=`
|
|
19
|
+
`+D0(J))}else break;var Q=$}catch(q){Q=`
|
|
20
|
+
Error generating stack: `+q.message+`
|
|
21
|
+
`+q.stack}return Q}function o(z,$,X,Y,Z,J,Q){var q=Q6;n1(z);try{return z!==null&&z._debugTask?z._debugTask.run($.bind(null,X,Y,Z,J,Q)):$(X,Y,Z,J,Q)}finally{n1(q)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function n1(z){j.getCurrentStack=z===null?null:O6,R7=!1,Q6=z}function d1(z){return typeof Symbol==="function"&&Symbol.toStringTag&&z[Symbol.toStringTag]||z.constructor.name||"Object"}function U4(z){try{return V7(z),!1}catch($){return!0}}function V7(z){return""+z}function m0(z,$){if(U4(z))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",$,d1(z)),V7(z)}function sz(z,$){if(U4(z))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.",$,d1(z)),V7(z)}function r6(z){if(U4(z))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.",d1(z)),V7(z)}function sJ(z){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var $=__REACT_DEVTOOLS_GLOBAL_HOOK__;if($.isDisabled)return!0;if(!$.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{w$=$.inject(z),y4=$}catch(X){console.error("React instrumentation encountered an error: %o.",X)}return $.checkDCE?!0:!1}function $1(z){if(typeof u3==="function"&&l3(z),y4&&typeof y4.setStrictMode==="function")try{y4.setStrictMode(w$,z)}catch($){F7||(F7=!0,console.error("React instrumentation encountered an error: %o",$))}}function zK(z){return z>>>=0,z===0?32:31-(c3(z)/d3|0)|0}function N4(z){var $=z&42;if($!==0)return $;switch(z&-z){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 z&261888;case 262144:case 524288:case 1048576:case 2097152:return z&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return z&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."),z}}function ez(z,$,X){var Y=z.pendingLanes;if(Y===0)return 0;var Z=0,J=z.suspendedLanes,Q=z.pingedLanes;z=z.warmLanes;var q=Y&134217727;return q!==0?(Y=q&~J,Y!==0?Z=N4(Y):(Q&=q,Q!==0?Z=N4(Q):X||(X=q&~z,X!==0&&(Z=N4(X))))):(q=Y&~J,q!==0?Z=N4(q):Q!==0?Z=N4(Q):X||(X=Y&~z,X!==0&&(Z=N4(X)))),Z===0?0:$!==0&&$!==Z&&($&J)===0&&(J=Z&-Z,X=$&-$,J>=X||J===32&&(X&4194048)!==0)?$:Z}function C6(z,$){return(z.pendingLanes&~(z.suspendedLanes&~z.pingedLanes)&$)===0}function eJ(z,$){switch(z){case 1:case 2:case 4:case 8:case 64:return $+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 $+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 n6(){var z=kZ;return kZ<<=1,(kZ&62914560)===0&&(kZ=4194304),z}function RX(z){for(var $=[],X=0;31>X;X++)$.push(z);return $}function S6(z,$){z.pendingLanes|=$,$!==268435456&&(z.suspendedLanes=0,z.pingedLanes=0,z.warmLanes=0)}function OY(z,$,X,Y,Z,J){var Q=z.pendingLanes;z.pendingLanes=X,z.suspendedLanes=0,z.pingedLanes=0,z.warmLanes=0,z.expiredLanes&=X,z.entangledLanes&=X,z.errorRecoveryDisabledLanes&=X,z.shellSuspendCounter=0;var{entanglements:q,expirationTimes:K,hiddenUpdates:B}=z;for(X=Q&~X;0<X;){var T=31-E4(X),k=1<<T;q[T]=0,K[T]=-1;var b=B[T];if(b!==null)for(B[T]=null,T=0;T<b.length;T++){var D=b[T];D!==null&&(D.lane&=-536870913)}X&=~k}Y!==0&&t6(z,Y,0),J!==0&&Z===0&&z.tag!==0&&(z.suspendedLanes|=J&~(Q&~$))}function t6(z,$,X){z.pendingLanes|=$,z.suspendedLanes&=~$;var Y=31-E4($);z.entangledLanes|=$,z.entanglements[Y]=z.entanglements[Y]|1073741824|X&261930}function FX(z,$){var X=z.entangledLanes|=$;for(z=z.entanglements;X;){var Y=31-E4(X),Z=1<<Y;Z&$|z[Y]&$&&(z[Y]|=$),X&=~Z}}function H8(z,$){var X=$&-$;return X=(X&42)!==0?1:NX(X),(X&(z.suspendedLanes|$))!==0?0:X}function NX(z){switch(z){case 2:z=1;break;case 8:z=4;break;case 32:z=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:z=128;break;case 268435456:z=134217728;break;default:z=0}return z}function K8(z,$,X){if(N7)for(z=z.pendingUpdatersLaneMap;0<X;){var Y=31-E4(X),Z=1<<Y;z[Y].add($),X&=~Z}}function LY(z,$){if(N7)for(var{pendingUpdatersLaneMap:X,memoizedUpdaters:Y}=z;0<$;){var Z=31-E4($);z=1<<Z,Z=X[Z],0<Z.size&&(Z.forEach(function(J){var Q=J.alternate;Q!==null&&Y.has(Q)||Y.add(J)}),Z.clear()),$&=~z}}function MX(z){return z&=-z,G6!==0&&G6<z?j6!==0&&j6<z?(z&134217727)!==0?M7:yZ:j6:G6}function wX(){var z=B1.p;if(z!==0)return z;return z=window.event,z===void 0?M7:mU(z.type)}function WY(z,$){var X=B1.p;try{return B1.p=z,$()}finally{B1.p=X}}function RY(z){delete z[P4],delete z[f4],delete z[Wq],delete z[a3],delete z[i3]}function L6(z){var $=z[P4];if($)return $;for(var X=z.parentNode;X;){if($=X[C8]||X[P4]){if(X=$.alternate,$.child!==null||X!==null&&X.child!==null)for(z=bU(z);z!==null;){if(X=z[P4])return X;z=bU(z)}return $}z=X,X=z.parentNode}return null}function S4(z){if(z=z[P4]||z[C8]){var $=z.tag;if($===5||$===6||$===13||$===31||$===26||$===27||$===3)return z}return null}function _8(z){var $=z.tag;if($===5||$===26||$===27||$===6)return z.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function B8(z){var $=z[sU];return $||($=z[sU]={hoistableStyles:new Map,hoistableScripts:new Map}),$}function a1(z){z[K5]=!0}function s6(z,$){U8(z,$),U8(z+"Capture",$)}function U8(z,$){bz[z]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",z),bz[z]=$;var X=z.toLowerCase();Rq[X]=z,z==="onDoubleClick"&&(Rq.ondblclick=z);for(z=0;z<$.length;z++)eU.add($[z])}function O8(z,$){o3[$.type]||$.onChange||$.onInput||$.readOnly||$.disabled||$.value==null||(z==="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`.")),$.onChange||$.readOnly||$.disabled||$.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 bX(z){if(p6.call($9,z))return!0;if(p6.call(z9,z))return!1;if(r3.test(z))return $9[z]=!0;return z9[z]=!0,console.error("Invalid attribute name: `%s`",z),!1}function PX(z,$,X){if(bX($)){if(!z.hasAttribute($)){switch(typeof X){case"symbol":case"object":return X;case"function":return X;case"boolean":if(X===!1)return X}return X===void 0?void 0:null}if(z=z.getAttribute($),z===""&&X===!0)return!0;return m0(X,$),z===""+X?X:z}}function AX(z,$,X){if(bX($))if(X===null)z.removeAttribute($);else{switch(typeof X){case"undefined":case"function":case"symbol":z.removeAttribute($);return;case"boolean":var Y=$.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){z.removeAttribute($);return}}m0(X,$),z.setAttribute($,""+X)}}function G1(z,$,X){if(X===null)z.removeAttribute($);else{switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":z.removeAttribute($);return}m0(X,$),z.setAttribute($,""+X)}}function T1(z,$,X,Y){if(Y===null)z.removeAttribute(X);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":z.removeAttribute(X);return}m0(Y,X),z.setAttributeNS($,X,""+Y)}}function I1(z){switch(typeof z){case"bigint":case"boolean":case"number":case"string":case"undefined":return z;case"object":return r6(z),z;default:return""}}function p1(z){var $=z.type;return(z=z.nodeName)&&z.toLowerCase()==="input"&&($==="checkbox"||$==="radio")}function E1(z,$,X){var Y=Object.getOwnPropertyDescriptor(z.constructor.prototype,$);if(!z.hasOwnProperty($)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:Z,set:J}=Y;return Object.defineProperty(z,$,{configurable:!0,get:function(){return Z.call(this)},set:function(Q){r6(Q),X=""+Q,J.call(this,Q)}}),Object.defineProperty(z,$,{enumerable:Y.enumerable}),{getValue:function(){return X},setValue:function(Q){r6(Q),X=""+Q},stopTracking:function(){z._valueTracker=null,delete z[$]}}}}function W1(z){if(!z._valueTracker){var $=p1(z)?"checked":"value";z._valueTracker=E1(z,$,""+z[$])}}function q1(z){if(!z)return!1;var $=z._valueTracker;if(!$)return!0;var X=$.getValue(),Y="";return z&&(Y=p1(z)?z.checked?"true":"false":z.value),z=Y,z!==X?($.setValue(z),!0):!1}function Z1(z){if(z=z||(typeof document<"u"?document:void 0),typeof z>"u")return null;try{return z.activeElement||z.body}catch($){return z.body}}function E0(z){return z.replace(n3,function($){return"\\"+$.charCodeAt(0).toString(16)+" "})}function D6(z,$){$.checked===void 0||$.defaultChecked===void 0||Y9||(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",U1()||"A component",$.type),Y9=!0),$.value===void 0||$.defaultValue===void 0||X9||(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",U1()||"A component",$.type),X9=!0)}function C7(z,$,X,Y,Z,J,Q,q){if(z.name="",Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&typeof Q!=="boolean"?(m0(Q,"type"),z.type=Q):z.removeAttribute("type"),$!=null)if(Q==="number"){if($===0&&z.value===""||z.value!=$)z.value=""+I1($)}else z.value!==""+I1($)&&(z.value=""+I1($));else Q!=="submit"&&Q!=="reset"||z.removeAttribute("value");$!=null?vX(z,Q,I1($)):X!=null?vX(z,Q,I1(X)):Y!=null&&z.removeAttribute("value"),Z==null&&J!=null&&(z.defaultChecked=!!J),Z!=null&&(z.checked=Z&&typeof Z!=="function"&&typeof Z!=="symbol"),q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&typeof q!=="boolean"?(m0(q,"name"),z.name=""+I1(q)):z.removeAttribute("name")}function z$(z,$,X,Y,Z,J,Q,q){if(J!=null&&typeof J!=="function"&&typeof J!=="symbol"&&typeof J!=="boolean"&&(m0(J,"type"),z.type=J),$!=null||X!=null){if(!(J!=="submit"&&J!=="reset"||$!==void 0&&$!==null)){W1(z);return}X=X!=null?""+I1(X):"",$=$!=null?""+I1($):X,q||$===z.value||(z.value=$),z.defaultValue=$}Y=Y!=null?Y:Z,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,z.checked=q?z.checked:!!Y,z.defaultChecked=!!Y,Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&typeof Q!=="boolean"&&(m0(Q,"name"),z.name=Q),W1(z)}function vX(z,$,X){$==="number"&&Z1(z.ownerDocument)===z||z.defaultValue===""+X||(z.defaultValue=""+X)}function E6(z,$){$.value==null&&(typeof $.children==="object"&&$.children!==null?XX.Children.forEach($.children,function(X){X==null||typeof X==="string"||typeof X==="number"||typeof X==="bigint"||J9||(J9=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):$.dangerouslySetInnerHTML==null||Q9||(Q9=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),$.selected==null||Z9||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Z9=!0)}function N0(){var z=U1();return z?`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+z+"`.":""}function W0(z,$,X,Y){if(z=z.options,$){$={};for(var Z=0;Z<X.length;Z++)$["$"+X[Z]]=!0;for(X=0;X<z.length;X++)Z=$.hasOwnProperty("$"+z[X].value),z[X].selected!==Z&&(z[X].selected=Z),Z&&Y&&(z[X].defaultSelected=!0)}else{X=""+I1(X),$=null;for(Z=0;Z<z.length;Z++){if(z[Z].value===X){z[Z].selected=!0,Y&&(z[Z].defaultSelected=!0);return}$!==null||z[Z].disabled||($=z[Z])}$!==null&&($.selected=!0)}}function K1(z,$){for(z=0;z<q9.length;z++){var X=q9[z];if($[X]!=null){var Y=q4($[X]);$.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",X,N0()):!$.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",X,N0())}}$.value===void 0||$.defaultValue===void 0||G9||(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"),G9=!0)}function L8(z,$){$.value===void 0||$.defaultValue===void 0||H9||(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",U1()||"A component"),H9=!0),$.children!=null&&$.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function $K(z,$,X){if($!=null&&($=""+I1($),$!==z.value&&(z.value=$),X==null)){z.defaultValue!==$&&(z.defaultValue=$);return}z.defaultValue=X!=null?""+I1(X):""}function XK(z,$,X,Y){if($==null){if(Y!=null){if(X!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(q4(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}X=Y}X==null&&(X=""),$=X}X=I1($),z.defaultValue=X,Y=z.textContent,Y===X&&Y!==""&&Y!==null&&(z.value=Y),W1(z)}function YK(z,$){return z.serverProps===void 0&&z.serverTail.length===0&&z.children.length===1&&3<z.distanceFromLeaf&&z.distanceFromLeaf>15-$?YK(z.children[0],$):z}function t4(z){return" "+" ".repeat(z)}function $$(z){return"+ "+" ".repeat(z)}function Gz(z){return"- "+" ".repeat(z)}function ZK(z){switch(z.tag){case 26:case 27:case 5:return z.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return z=z.type,z.displayName||z.name||null;case 11:return z=z.type.render,z.displayName||z.name||null;case 1:return z=z.type,z.displayName||z.name||null;default:return null}}function TX(z,$){return K9.test(z)?(z=JSON.stringify(z),z.length>$-2?8>$?'{"..."}':"{"+z.slice(0,$-7)+'..."}':"{"+z+"}"):z.length>$?5>$?'{"..."}':z.slice(0,$-3)+"...":z}function FY(z,$,X){var Y=120-2*X;if($===null)return $$(X)+TX(z,Y)+`
|
|
24
|
+
`;if(typeof $==="string"){for(var Z=0;Z<$.length&&Z<z.length&&$.charCodeAt(Z)===z.charCodeAt(Z);Z++);return Z>Y-8&&10<Z&&(z="..."+z.slice(Z-8),$="..."+$.slice(Z-8)),$$(X)+TX(z,Y)+`
|
|
25
|
+
`+Gz(X)+TX($,Y)+`
|
|
26
|
+
`}return t4(X)+TX(z,Y)+`
|
|
27
|
+
`}function zQ(z){return Object.prototype.toString.call(z).replace(/^\[object (.*)\]$/,function($,X){return X})}function IX(z,$){switch(typeof z){case"string":return z=JSON.stringify(z),z.length>$?5>$?'"..."':z.slice(0,$-4)+'..."':z;case"object":if(z===null)return"null";if(q4(z))return"[...]";if(z.$$typeof===L7)return($=c(z.type))?"<"+$+">":"<...>";var X=zQ(z);if(X==="Object"){X="",$-=2;for(var Y in z)if(z.hasOwnProperty(Y)){var Z=JSON.stringify(Y);if(Z!=='"'+Y+'"'&&(Y=Z),$-=Y.length-2,Z=IX(z[Y],15>$?$:15),$-=Z.length,0>$){X+=X===""?"...":", ...";break}X+=(X===""?"":",")+Y+":"+Z}return"{"+X+"}"}return X;case"function":return($=z.displayName||z.name)?"function "+$:"function";default:return String(z)}}function X$(z,$){return typeof z!=="string"||K9.test(z)?"{"+IX(z,$-2)+"}":z.length>$-2?5>$?'"..."':'"'+z.slice(0,$-5)+'..."':'"'+z+'"'}function $Q(z,$,X){var Y=120-X.length-z.length,Z=[],J;for(J in $)if($.hasOwnProperty(J)&&J!=="children"){var Q=X$($[J],120-X.length-J.length-1);Y-=J.length+Q.length+2,Z.push(J+"="+Q)}return Z.length===0?X+"<"+z+`>
|
|
28
|
+
`:0<Y?X+"<"+z+" "+Z.join(" ")+`>
|
|
29
|
+
`:X+"<"+z+`
|
|
30
|
+
`+X+" "+Z.join(`
|
|
31
|
+
`+X+" ")+`
|
|
32
|
+
`+X+`>
|
|
33
|
+
`}function a2(z,$,X){var Y="",Z=d0({},$),J;for(J in z)if(z.hasOwnProperty(J)){delete Z[J];var Q=120-2*X-J.length-2,q=IX(z[J],Q);$.hasOwnProperty(J)?(Q=IX($[J],Q),Y+=$$(X)+J+": "+q+`
|
|
34
|
+
`,Y+=Gz(X)+J+": "+Q+`
|
|
35
|
+
`):Y+=$$(X)+J+": "+q+`
|
|
36
|
+
`}for(var K in Z)Z.hasOwnProperty(K)&&(z=IX(Z[K],120-2*X-K.length-2),Y+=Gz(X)+K+": "+z+`
|
|
37
|
+
`);return Y}function i2(z,$,X,Y){var Z="",J=new Map;for(B in X)X.hasOwnProperty(B)&&J.set(B.toLowerCase(),B);if(J.size===1&&J.has("children"))Z+=$Q(z,$,t4(Y));else{for(var Q in $)if($.hasOwnProperty(Q)&&Q!=="children"){var q=120-2*(Y+1)-Q.length-1,K=J.get(Q.toLowerCase());if(K!==void 0){J.delete(Q.toLowerCase());var B=$[Q];K=X[K];var T=X$(B,q);q=X$(K,q),typeof B==="object"&&B!==null&&typeof K==="object"&&K!==null&&zQ(B)==="Object"&&zQ(K)==="Object"&&(2<Object.keys(B).length||2<Object.keys(K).length||-1<T.indexOf("...")||-1<q.indexOf("..."))?Z+=t4(Y+1)+Q+`={{
|
|
38
|
+
`+a2(B,K,Y+2)+t4(Y+1)+`}}
|
|
39
|
+
`:(Z+=$$(Y+1)+Q+"="+T+`
|
|
40
|
+
`,Z+=Gz(Y+1)+Q+"="+q+`
|
|
41
|
+
`)}else Z+=t4(Y+1)+Q+"="+X$($[Q],q)+`
|
|
42
|
+
`}J.forEach(function(k){if(k!=="children"){var b=120-2*(Y+1)-k.length-1;Z+=Gz(Y+1)+k+"="+X$(X[k],b)+`
|
|
43
|
+
`}}),Z=Z===""?t4(Y)+"<"+z+`>
|
|
44
|
+
`:t4(Y)+"<"+z+`
|
|
45
|
+
`+Z+t4(Y)+`>
|
|
46
|
+
`}if(z=X.children,$=$.children,typeof z==="string"||typeof z==="number"||typeof z==="bigint"){if(J="",typeof $==="string"||typeof $==="number"||typeof $==="bigint")J=""+$;Z+=FY(J,""+z,Y+1)}else if(typeof $==="string"||typeof $==="number"||typeof $==="bigint")Z=z==null?Z+FY(""+$,null,Y+1):Z+FY(""+$,void 0,Y+1);return Z}function JK(z,$){var X=ZK(z);if(X===null){X="";for(z=z.child;z;)X+=JK(z,$),z=z.sibling;return X}return t4($)+"<"+X+`>
|
|
47
|
+
`}function XQ(z,$){var X=YK(z,$);if(X!==z&&(z.children.length!==1||z.children[0]!==X))return t4($)+`...
|
|
48
|
+
`+XQ(X,$+1);X="";var Y=z.fiber._debugInfo;if(Y)for(var Z=0;Z<Y.length;Z++){var J=Y[Z].name;typeof J==="string"&&(X+=t4($)+"<"+J+`>
|
|
49
|
+
`,$++)}if(Y="",Z=z.fiber.pendingProps,z.fiber.tag===6)Y=FY(Z,z.serverProps,$),$++;else if(J=ZK(z.fiber),J!==null)if(z.serverProps===void 0){Y=$;var Q=120-2*Y-J.length-2,q="";for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var K=X$(Z[B],15);if(Q-=B.length+K.length+2,0>Q){q+=" ...";break}q+=" "+B+"="+K}Y=t4(Y)+"<"+J+q+`>
|
|
50
|
+
`,$++}else z.serverProps===null?(Y=$Q(J,Z,$$($)),$++):typeof z.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(Y=i2(J,Z,z.serverProps,$),$++);var B="";Z=z.fiber.child;for(J=0;Z&&J<z.children.length;)Q=z.children[J],Q.fiber===Z?(B+=XQ(Q,$),J++):B+=JK(Z,$),Z=Z.sibling;Z&&0<z.children.length&&(B+=t4($)+`...
|
|
51
|
+
`),Z=z.serverTail,z.serverProps===null&&$--;for(z=0;z<Z.length;z++)J=Z[z],B=typeof J==="string"?B+(Gz($)+TX(J,120-2*$)+`
|
|
52
|
+
`):B+$Q(J.type,J.props,Gz($));return X+Y+B}function YQ(z){try{return`
|
|
53
|
+
|
|
54
|
+
`+XQ(z,0)}catch($){return""}}function QK(z,$,X){for(var Y=$,Z=null,J=0;Y;)Y===z&&(J=0),Z={fiber:Y,children:Z!==null?[Z]:[],serverProps:Y===$?X:Y===z?null:void 0,serverTail:[],distanceFromLeaf:J},J++,Y=Y.return;return Z!==null?YQ(Z).replaceAll(/^[+-]/gm,">"):""}function GK(z,$){var X=d0({},z||B9),Y={tag:$};if(_9.indexOf($)!==-1&&(X.aTagInScope=null,X.buttonTagInScope=null,X.nobrTagInScope=null),s3.indexOf($)!==-1&&(X.pTagInButtonScope=null),t3.indexOf($)!==-1&&$!=="address"&&$!=="div"&&$!=="p"&&(X.listItemTagAutoclosing=null,X.dlItemTagAutoclosing=null),X.current=Y,$==="form"&&(X.formTag=Y),$==="a"&&(X.aTagInScope=Y),$==="button"&&(X.buttonTagInScope=Y),$==="nobr"&&(X.nobrTagInScope=Y),$==="p"&&(X.pTagInButtonScope=Y),$==="li"&&(X.listItemTagAutoclosing=Y),$==="dd"||$==="dt")X.dlItemTagAutoclosing=Y;return $==="#document"||$==="html"?X.containerTagInScope=null:X.containerTagInScope||(X.containerTagInScope=Y),z!==null||$!=="#document"&&$!=="html"&&$!=="body"?X.implicitRootScope===!0&&(X.implicitRootScope=!1):X.implicitRootScope=!0,X}function qK(z,$,X){switch($){case"select":return z==="hr"||z==="option"||z==="optgroup"||z==="script"||z==="template"||z==="#text";case"optgroup":return z==="option"||z==="#text";case"option":return z==="#text";case"tr":return z==="th"||z==="td"||z==="style"||z==="script"||z==="template";case"tbody":case"thead":case"tfoot":return z==="tr"||z==="style"||z==="script"||z==="template";case"colgroup":return z==="col"||z==="template";case"table":return z==="caption"||z==="colgroup"||z==="tbody"||z==="tfoot"||z==="thead"||z==="style"||z==="script"||z==="template";case"head":return z==="base"||z==="basefont"||z==="bgsound"||z==="link"||z==="meta"||z==="title"||z==="noscript"||z==="noframes"||z==="style"||z==="script"||z==="template";case"html":if(X)break;return z==="head"||z==="body"||z==="frameset";case"frameset":return z==="frame";case"#document":if(!X)return z==="html"}switch(z){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return $!=="h1"&&$!=="h2"&&$!=="h3"&&$!=="h4"&&$!=="h5"&&$!=="h6";case"rp":case"rt":return e3.indexOf($)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return $==null;case"head":return X||$===null;case"html":return X&&$==="#document"||$===null;case"body":return X&&($==="#document"||$==="html")||$===null}return!0}function o2(z,$){switch(z){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 $.pTagInButtonScope;case"form":return $.formTag||$.pTagInButtonScope;case"li":return $.listItemTagAutoclosing;case"dd":case"dt":return $.dlItemTagAutoclosing;case"button":return $.buttonTagInScope;case"a":return $.aTagInScope;case"nobr":return $.nobrTagInScope}return null}function HK(z,$){for(;z;){switch(z.tag){case 5:case 26:case 27:if(z.type===$)return z}z=z.return}return null}function ZQ(z,$){$=$||B9;var X=$.current;if($=(X=qK(z,X&&X.tag,$.implicitRootScope)?null:X)?null:o2(z,$),$=X||$,!$)return!0;var Y=$.tag;if($=String(!!X)+"|"+z+"|"+Y,VZ[$])return!1;VZ[$]=!0;var Z=($=Q6)?HK($.return,Y):null,J=$!==null&&Z!==null?QK(Z,$,null):"",Q="<"+z+">";return X?(X="",Y==="table"&&z==="tr"&&(X+=" 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
|
|
55
|
+
This will cause a hydration error.%s`,Q,Y,X,J)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
56
|
+
This will cause a hydration error.%s`,Q,Y,J),$&&(z=$.return,Z===null||z===null||Z===z&&z._debugOwner===$._debugOwner||o(Z,function(){console.error(`<%s> cannot contain a nested %s.
|
|
57
|
+
See this log for the ancestor stack trace.`,Y,Q)})),!1}function NY(z,$,X){if(X||qK("#text",$,!1))return!0;if(X="#text|"+$,VZ[X])return!1;VZ[X]=!0;var Y=(X=Q6)?HK(X,$):null;return X=X!==null&&Y!==null?QK(Y,X,X.tag!==6?{children:null}:null):"",/\S/.test(z)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
58
|
+
This will cause a hydration error.%s`,$,X):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.
|
|
59
|
+
This will cause a hydration error.%s`,$,X),!1}function kX(z,$){if($){var X=z.firstChild;if(X&&X===z.lastChild&&X.nodeType===3){X.nodeValue=$;return}}z.textContent=$}function r2(z){return z.replace(XR,function($,X){return X.toUpperCase()})}function KK(z,$,X){var Y=$.indexOf("--")===0;Y||(-1<$.indexOf("-")?b$.hasOwnProperty($)&&b$[$]||(b$[$]=!0,console.error("Unsupported style property %s. Did you mean %s?",$,r2($.replace($R,"ms-")))):zR.test($)?b$.hasOwnProperty($)&&b$[$]||(b$[$]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",$,$.charAt(0).toUpperCase()+$.slice(1))):!L9.test(X)||Nq.hasOwnProperty(X)&&Nq[X]||(Nq[X]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,$,X.replace(L9,""))),typeof X==="number"&&(isNaN(X)?W9||(W9=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",$)):isFinite(X)||R9||(R9=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",$)))),X==null||typeof X==="boolean"||X===""?Y?z.setProperty($,""):$==="float"?z.cssFloat="":z[$]="":Y?z.setProperty($,X):typeof X!=="number"||X===0||F9.has($)?$==="float"?z.cssFloat=X:(sz(X,$),z[$]=(""+X).trim()):z[$]=X+"px"}function _K(z,$,X){if($!=null&&typeof $!=="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($&&Object.freeze($),z=z.style,X!=null){if($){var Y={};if(X){for(var Z in X)if(X.hasOwnProperty(Z)&&!$.hasOwnProperty(Z))for(var J=Fq[Z]||[Z],Q=0;Q<J.length;Q++)Y[J[Q]]=Z}for(var q in $)if($.hasOwnProperty(q)&&(!X||X[q]!==$[q]))for(Z=Fq[q]||[q],J=0;J<Z.length;J++)Y[Z[J]]=q;q={};for(var K in $)for(Z=Fq[K]||[K],J=0;J<Z.length;J++)q[Z[J]]=K;K={};for(var B in Y)if(Z=Y[B],(J=q[B])&&Z!==J&&(Q=Z+","+J,!K[Q])){K[Q]=!0,Q=console;var T=$[Z];Q.error.call(Q,"%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.",T==null||typeof T==="boolean"||T===""?"Removing":"Updating",Z,J)}}for(var k in X)!X.hasOwnProperty(k)||$!=null&&$.hasOwnProperty(k)||(k.indexOf("--")===0?z.setProperty(k,""):k==="float"?z.cssFloat="":z[k]="");for(var b in $)B=$[b],$.hasOwnProperty(b)&&X[b]!==B&&KK(z,b,B)}else for(Y in $)$.hasOwnProperty(Y)&&KK(z,Y,$[Y])}function yX(z){if(z.indexOf("-")===-1)return!1;switch(z){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 BK(z){return YR.get(z)||z}function n2(z,$){if(p6.call(A$,$)&&A$[$])return!0;if(JR.test($)){if(z="aria-"+$.slice(4).toLowerCase(),z=N9.hasOwnProperty(z)?z:null,z==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",$),A$[$]=!0;if($!==z)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",$,z),A$[$]=!0}if(ZR.test($)){if(z=$.toLowerCase(),z=N9.hasOwnProperty(z)?z:null,z==null)return A$[$]=!0,!1;$!==z&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",$,z),A$[$]=!0)}return!0}function t2(z,$){var X=[],Y;for(Y in $)n2(z,Y)||X.push(Y);$=X.map(function(Z){return"`"+Z+"`"}).join(", "),X.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",$,z):1<X.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",$,z)}function s2(z,$,X,Y){if(p6.call(m4,$)&&m4[$])return!0;var Z=$.toLowerCase();if(Z==="onfocusin"||Z==="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."),m4[$]=!0;if(typeof X==="function"&&(z==="form"&&$==="action"||z==="input"&&$==="formAction"||z==="button"&&$==="formAction"))return!0;if(Y!=null){if(z=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty($))return!0;if(Y=z.hasOwnProperty(Z)?z[Z]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",$,Y),m4[$]=!0;if(w9.test($))return console.error("Unknown event handler property `%s`. It will be ignored.",$),m4[$]=!0}else if(w9.test($))return QR.test($)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",$),m4[$]=!0;if(GR.test($)||qR.test($))return!0;if(Z==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),m4[$]=!0;if(Z==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),m4[$]=!0;if(Z==="is"&&X!==null&&X!==void 0&&typeof X!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof X),m4[$]=!0;if(typeof X==="number"&&isNaN(X))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",$),m4[$]=!0;if(SZ.hasOwnProperty(Z)){if(Z=SZ[Z],Z!==$)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",$,Z),m4[$]=!0}else if($!==Z)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.",$,Z),m4[$]=!0;switch($){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 X){case"boolean":switch($){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(Z=$.toLowerCase().slice(0,5),Z==="data-"||Z==="aria-")return!0;return X?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()}.',X,$,$,X,$):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.',X,$,$,X,$,$,$),m4[$]=!0}case"function":case"symbol":return m4[$]=!0,!1;case"string":if(X==="false"||X==="true"){switch($){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}?",X,$,X==="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".',$,X),m4[$]=!0}}return!0}function e2(z,$,X){var Y=[],Z;for(Z in $)s2(z,Z,$[Z],X)||Y.push(Z);$=Y.map(function(J){return"`"+J+"`"}).join(", "),Y.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 ",$,z):1<Y.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 ",$,z)}function VX(z){return HR.test(""+z)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":z}function S7(){}function JQ(z){return z=z.target||z.srcElement||window,z.correspondingUseElement&&(z=z.correspondingUseElement),z.nodeType===3?z.parentNode:z}function UK(z){var $=S4(z);if($&&(z=$.stateNode)){var X=z[f4]||null;z:switch(z=$.stateNode,$.type){case"input":if(C7(z,X.value,X.defaultValue,X.defaultValue,X.checked,X.defaultChecked,X.type,X.name),$=X.name,X.type==="radio"&&$!=null){for(X=z;X.parentNode;)X=X.parentNode;m0($,"name"),X=X.querySelectorAll('input[name="'+E0(""+$)+'"][type="radio"]');for($=0;$<X.length;$++){var Y=X[$];if(Y!==z&&Y.form===z.form){var Z=Y[f4]||null;if(!Z)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");C7(Y,Z.value,Z.defaultValue,Z.defaultValue,Z.checked,Z.defaultChecked,Z.type,Z.name)}}for($=0;$<X.length;$++)Y=X[$],Y.form===z.form&&q1(Y)}break z;case"textarea":$K(z,X.value,X.defaultValue);break z;case"select":$=X.value,$!=null&&W0(z,!!X.multiple,$,!1)}}}function OK(z,$,X){if(Mq)return z($,X);Mq=!0;try{var Y=z($);return Y}finally{if(Mq=!1,v$!==null||T$!==null){if(B$(),v$&&($=v$,z=T$,T$=v$=null,UK($),z))for($=0;$<z.length;$++)UK(z[$])}}}function CX(z,$){var X=z.stateNode;if(X===null)return null;var Y=X[f4]||null;if(Y===null)return null;X=Y[$];z:switch($){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||(z=z.type,Y=!(z==="button"||z==="input"||z==="select"||z==="textarea")),z=!Y;break z;default:z=!1}if(z)return null;if(X&&typeof X!=="function")throw Error("Expected `"+$+"` listener to be a function, instead got a value of `"+typeof X+"` type.");return X}function LK(){if(DZ)return DZ;var z,$=bq,X=$.length,Y,Z="value"in S8?S8.value:S8.textContent,J=Z.length;for(z=0;z<X&&$[z]===Z[z];z++);var Q=X-z;for(Y=1;Y<=Q&&$[X-Y]===Z[J-Y];Y++);return DZ=Z.slice(z,1<Y?1-Y:void 0)}function MY(z){var $=z.keyCode;return"charCode"in z?(z=z.charCode,z===0&&$===13&&(z=13)):z=$,z===10&&(z=13),32<=z||z===13?z:0}function wY(){return!0}function WK(){return!1}function l4(z){function $(X,Y,Z,J,Q){this._reactName=X,this._targetInst=Z,this.type=Y,this.nativeEvent=J,this.target=Q,this.currentTarget=null;for(var q in z)z.hasOwnProperty(q)&&(X=z[q],this[q]=X?X(J):J[q]);return this.isDefaultPrevented=(J.defaultPrevented!=null?J.defaultPrevented:J.returnValue===!1)?wY:WK,this.isPropagationStopped=WK,this}return d0($.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;X&&(X.preventDefault?X.preventDefault():typeof X.returnValue!=="unknown"&&(X.returnValue=!1),this.isDefaultPrevented=wY)},stopPropagation:function(){var X=this.nativeEvent;X&&(X.stopPropagation?X.stopPropagation():typeof X.cancelBubble!=="unknown"&&(X.cancelBubble=!0),this.isPropagationStopped=wY)},persist:function(){},isPersistent:wY}),$}function zW(z){var $=this.nativeEvent;return $.getModifierState?$.getModifierState(z):(z=bR[z])?!!$[z]:!1}function QQ(){return zW}function RK(z,$){switch(z){case"keyup":return ER.indexOf($.keyCode)!==-1;case"keydown":return $.keyCode!==v9;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FK(z){return z=z.detail,typeof z==="object"&&"data"in z?z.data:null}function $W(z,$){switch(z){case"compositionend":return FK($);case"keypress":if($.which!==I9)return null;return y9=!0,k9;case"textInput":return z=$.data,z===k9&&y9?null:z;default:return null}}function XW(z,$){if(I$)return z==="compositionend"||!Tq&&RK(z,$)?(z=LK(),DZ=bq=S8=null,I$=!1,z):null;switch(z){case"paste":return null;case"keypress":if(!($.ctrlKey||$.altKey||$.metaKey)||$.ctrlKey&&$.altKey){if($.char&&1<$.char.length)return $.char;if($.which)return String.fromCharCode($.which)}return null;case"compositionend":return T9&&$.locale!=="ko"?null:$.data;default:return null}}function NK(z){var $=z&&z.nodeName&&z.nodeName.toLowerCase();return $==="input"?!!mR[z.type]:$==="textarea"?!0:!1}function YW(z){if(!w7)return!1;z="on"+z;var $=z in document;return $||($=document.createElement("div"),$.setAttribute(z,"return;"),$=typeof $[z]==="function"),$}function MK(z,$,X,Y){v$?T$?T$.push(Y):T$=[Y]:v$=Y,$=UZ($,"onChange"),0<$.length&&(X=new EZ("onChange","change",null,X,Y),z.push({event:X,listeners:$}))}function ZW(z){XU(z,0)}function bY(z){var $=_8(z);if(q1($))return z}function wK(z,$){if(z==="change")return $}function bK(){W5&&(W5.detachEvent("onpropertychange",PK),R5=W5=null)}function PK(z){if(z.propertyName==="value"&&bY(R5)){var $=[];MK($,R5,z,JQ(z)),OK(ZW,$)}}function JW(z,$,X){z==="focusin"?(bK(),W5=$,R5=X,W5.attachEvent("onpropertychange",PK)):z==="focusout"&&bK()}function QW(z){if(z==="selectionchange"||z==="keyup"||z==="keydown")return bY(R5)}function GW(z,$){if(z==="click")return bY($)}function qW(z,$){if(z==="input"||z==="change")return bY($)}function HW(z,$){return z===$&&(z!==0||1/z===1/$)||z!==z&&$!==$}function SX(z,$){if(h4(z,$))return!0;if(typeof z!=="object"||z===null||typeof $!=="object"||$===null)return!1;var X=Object.keys(z),Y=Object.keys($);if(X.length!==Y.length)return!1;for(Y=0;Y<X.length;Y++){var Z=X[Y];if(!p6.call($,Z)||!h4(z[Z],$[Z]))return!1}return!0}function AK(z){for(;z&&z.firstChild;)z=z.firstChild;return z}function vK(z,$){var X=AK(z);z=0;for(var Y;X;){if(X.nodeType===3){if(Y=z+X.textContent.length,z<=$&&Y>=$)return{node:X,offset:$-z};z=Y}z:{for(;X;){if(X.nextSibling){X=X.nextSibling;break z}X=X.parentNode}X=void 0}X=AK(X)}}function TK(z,$){return z&&$?z===$?!0:z&&z.nodeType===3?!1:$&&$.nodeType===3?TK(z,$.parentNode):("contains"in z)?z.contains($):z.compareDocumentPosition?!!(z.compareDocumentPosition($)&16):!1:!1}function IK(z){z=z!=null&&z.ownerDocument!=null&&z.ownerDocument.defaultView!=null?z.ownerDocument.defaultView:window;for(var $=Z1(z.document);$ instanceof z.HTMLIFrameElement;){try{var X=typeof $.contentWindow.location.href==="string"}catch(Y){X=!1}if(X)z=$.contentWindow;else break;$=Z1(z.document)}return $}function GQ(z){var $=z&&z.nodeName&&z.nodeName.toLowerCase();return $&&($==="input"&&(z.type==="text"||z.type==="search"||z.type==="tel"||z.type==="url"||z.type==="password")||$==="textarea"||z.contentEditable==="true")}function kK(z,$,X){var Y=X.window===X?X.document:X.nodeType===9?X:X.ownerDocument;kq||k$==null||k$!==Z1(Y)||(Y=k$,("selectionStart"in Y)&&GQ(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),F5&&SX(F5,Y)||(F5=Y,Y=UZ(Iq,"onSelect"),0<Y.length&&($=new EZ("onSelect","select",null,$,X),z.push({event:$,listeners:Y}),$.target=k$)))}function qz(z,$){var X={};return X[z.toLowerCase()]=$.toLowerCase(),X["Webkit"+z]="webkit"+$,X["Moz"+z]="moz"+$,X}function Hz(z){if(yq[z])return yq[z];if(!y$[z])return z;var $=y$[z],X;for(X in $)if($.hasOwnProperty(X)&&X in C9)return yq[z]=$[X];return z}function f6(z,$){m9.set(z,$),s6($,[z])}function KW(z){for(var $=mZ,X=0;X<z.length;X++){var Y=z[X];if(typeof Y==="object"&&Y!==null)if(q4(Y)&&Y.length===2&&typeof Y[0]==="string"){if($!==mZ&&$!==Eq)return Sq;$=Eq}else return Sq;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||$!==mZ&&$!==Dq)return Sq;$=Dq}}return $}function qQ(z,$,X,Y){for(var Z in z)p6.call(z,Z)&&Z[0]!=="_"&&e6(Z,z[Z],$,X,Y)}function e6(z,$,X,Y,Z){switch(typeof $){case"object":if($===null){$="null";break}else{if($.$$typeof===L7){var J=c($.type)||"…",Q=$.key;$=$.props;var q=Object.keys($),K=q.length;if(Q==null&&K===0){$="<"+J+" />";break}if(3>Y||K===1&&q[0]==="children"&&Q==null){$="<"+J+" … />";break}X.push([Z+" ".repeat(Y)+z,"<"+J]),Q!==null&&e6("key",Q,X,Y+1,Z),z=!1;for(var B in $)B==="children"?$.children!=null&&(!q4($.children)||0<$.children.length)&&(z=!0):p6.call($,B)&&B[0]!=="_"&&e6(B,$[B],X,Y+1,Z);X.push(["",z?">…</"+J+">":"/>"]);return}if(J=Object.prototype.toString.call($),J=J.slice(8,J.length-1),J==="Array"){if(B=KW($),B===Dq||B===mZ){$=JSON.stringify($);break}else if(B===Eq){X.push([Z+" ".repeat(Y)+z,""]);for(z=0;z<$.length;z++)J=$[z],e6(J[0],J[1],X,Y+1,Z);return}}if(J==="Promise"){if($.status==="fulfilled"){if(J=X.length,e6(z,$.value,X,Y,Z),X.length>J){X=X[J],X[1]="Promise<"+(X[1]||"Object")+">";return}}else if($.status==="rejected"&&(J=X.length,e6(z,$.reason,X,Y,Z),X.length>J)){X=X[J],X[1]="Rejected Promise<"+X[1]+">";return}X.push([" ".repeat(Y)+z,"Promise"]);return}J==="Object"&&(B=Object.getPrototypeOf($))&&typeof B.constructor==="function"&&(J=B.constructor.name),X.push([Z+" ".repeat(Y)+z,J==="Object"?3>Y?"":"…":J]),3>Y&&qQ($,X,Y+1,Z);return}case"function":$=$.name===""?"() => {}":$.name+"() {}";break;case"string":$=$===lR?"…":JSON.stringify($);break;case"undefined":$="undefined";break;case"boolean":$=$?"true":"false";break;default:$=String($)}X.push([Z+" ".repeat(Y)+z,$])}function yK(z,$,X,Y){var Z=!0;for(Q in z)Q in $||(X.push([hZ+" ".repeat(Y)+Q,"…"]),Z=!1);for(var J in $)if(J in z){var Q=z[J],q=$[J];if(Q!==q){if(Y===0&&J==="children")Z=" ".repeat(Y)+J,X.push([hZ+Z,"…"],[pZ+Z,"…"]);else{if(!(3<=Y)){if(typeof Q==="object"&&typeof q==="object"&&Q!==null&&q!==null&&Q.$$typeof===q.$$typeof)if(q.$$typeof===L7){if(Q.type===q.type&&Q.key===q.key){Q=c(q.type)||"…",Z=" ".repeat(Y)+J,Q="<"+Q+" … />",X.push([hZ+Z,Q],[pZ+Z,Q]),Z=!1;continue}}else{var K=Object.prototype.toString.call(Q),B=Object.prototype.toString.call(q);if(K===B&&(B==="[object Object]"||B==="[object Array]")){K=[j9+" ".repeat(Y)+J,B==="[object Array]"?"Array":""],X.push(K),B=X.length,yK(Q,q,X,Y+1)?B===X.length&&(K[1]="Referentially unequal but deeply equal objects. Consider memoization."):Z=!1;continue}}else if(typeof Q==="function"&&typeof q==="function"&&Q.name===q.name&&Q.length===q.length&&(K=Function.prototype.toString.call(Q),B=Function.prototype.toString.call(q),K===B)){Q=q.name===""?"() => {}":q.name+"() {}",X.push([j9+" ".repeat(Y)+J,Q+" Referentially unequal function closure. Consider memoization."]);continue}}e6(J,Q,X,Y,hZ),e6(J,q,X,Y,pZ)}Z=!1}}else X.push([pZ+" ".repeat(Y)+J,"…"]),Z=!1;return Z}function s4(z){o0=z&63?"Blocking":z&64?"Gesture":z&4194176?"Transition":z&62914560?"Suspense":z&2080374784?"Idle":"Other"}function z7(z,$,X,Y){k1&&(E8.start=$,E8.end=X,x7.color="warning",x7.tooltipText=Y,x7.properties=null,(z=z._debugTask)?z.run(performance.measure.bind(performance,Y,E8)):performance.measure(Y,E8))}function PY(z,$,X){z7(z,$,X,"Reconnect")}function AY(z,$,X,Y,Z){var J=C(z);if(J!==null&&k1){var{alternate:Q,actualDuration:q}=z;if(Q===null||Q.child!==z.child)for(var K=z.child;K!==null;K=K.sibling)q-=K.actualDuration;Y=0.5>q?Y?"tertiary-light":"primary-light":10>q?Y?"tertiary":"primary":100>q?Y?"tertiary-dark":"primary-dark":"error";var B=z.memoizedProps;q=z._debugTask,B!==null&&Q!==null&&Q.memoizedProps!==B?(K=[cR],B=yK(Q.memoizedProps,B,K,0),1<K.length&&(B&&!D8&&(Q.lanes&Z)===0&&100<z.actualDuration?(D8=!0,K[0]=dR,x7.color="warning",x7.tooltipText=g9):(x7.color=Y,x7.tooltipText=J),x7.properties=K,E8.start=$,E8.end=X,q!=null?q.run(performance.measure.bind(performance,""+J,E8)):performance.measure(""+J,E8))):q!=null?q.run(console.timeStamp.bind(console,J,$,X,R6,void 0,Y)):console.timeStamp(J,$,X,R6,void 0,Y)}}function HQ(z,$,X,Y){if(k1){var Z=C(z);if(Z!==null){for(var J=null,Q=[],q=0;q<Y.length;q++){var K=Y[q];J==null&&K.source!==null&&(J=K.source._debugTask),K=K.value,Q.push(["Error",typeof K==="object"&&K!==null&&typeof K.message==="string"?String(K.message):String(K)])}z.key!==null&&e6("key",z.key,Q,0,""),z.memoizedProps!==null&&qQ(z.memoizedProps,Q,0,""),J==null&&(J=z._debugTask),z={start:$,end:X,detail:{devtools:{color:"error",track:R6,tooltipText:z.tag===13?"Hydration failed":"Error boundary caught an error",properties:Q}}},J?J.run(performance.measure.bind(performance,""+Z,z)):performance.measure(""+Z,z)}}}function $7(z,$,X,Y,Z){if(Z!==null){if(k1){var J=C(z);if(J!==null){Y=[];for(var Q=0;Q<Z.length;Q++){var q=Z[Q].value;Y.push(["Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}z.key!==null&&e6("key",z.key,Y,0,""),z.memoizedProps!==null&&qQ(z.memoizedProps,Y,0,""),$={start:$,end:X,detail:{devtools:{color:"error",track:R6,tooltipText:"A lifecycle or effect errored",properties:Y}}},(z=z._debugTask)?z.run(performance.measure.bind(performance,""+J,$)):performance.measure(""+J,$)}}}else J=C(z),J!==null&&k1&&(Z=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",(z=z._debugTask)?z.run(console.timeStamp.bind(console,J,$,X,R6,void 0,Z)):console.timeStamp(J,$,X,R6,void 0,Z))}function _W(z,$,X,Y){if(k1&&!($<=z)){var Z=(X&738197653)===X?"tertiary-dark":"primary-dark";X=(X&536870912)===X?"Prepared":(X&201326741)===X?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,X,z,$,o0,a0,Z)):console.timeStamp(X,z,$,o0,a0,Z)}}function VK(z,$,X,Y){!k1||$<=z||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",z,$,o0,a0,X)):console.timeStamp("Prewarm",z,$,o0,a0,X))}function CK(z,$,X,Y){!k1||$<=z||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",z,$,o0,a0,X)):console.timeStamp("Suspended",z,$,o0,a0,X))}function BW(z,$,X,Y,Z,J){if(k1&&!($<=z)){X=[];for(var Q=0;Q<Y.length;Q++){var q=Y[Q].value;X.push(["Recoverable Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}z={start:z,end:$,detail:{devtools:{color:"primary-dark",track:o0,trackGroup:a0,tooltipText:Z?"Hydration Failed":"Recovered after Error",properties:X}}},J?J.run(performance.measure.bind(performance,"Recovered",z)):performance.measure("Recovered",z)}}function KQ(z,$,X,Y){!k1||$<=z||(Y?Y.run(console.timeStamp.bind(console,"Errored",z,$,o0,a0,"error")):console.timeStamp("Errored",z,$,o0,a0,"error"))}function UW(z,$,X,Y){!k1||$<=z||(Y?Y.run(console.timeStamp.bind(console,X,z,$,o0,a0,"secondary-light")):console.timeStamp(X,z,$,o0,a0,"secondary-light"))}function SK(z,$,X,Y,Z){if(k1&&!($<=z)){for(var J=[],Q=0;Q<X.length;Q++){var q=X[Q].value;J.push(["Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}z={start:z,end:$,detail:{devtools:{color:"error",track:o0,trackGroup:a0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:J}}},Z?Z.run(performance.measure.bind(performance,"Errored",z)):performance.measure("Errored",z)}}function DX(z,$,X){!k1||$<=z||(X?X.run(console.timeStamp.bind(console,"Animating",z,$,o0,a0,"secondary-dark")):console.timeStamp("Animating",z,$,o0,a0,"secondary-dark"))}function vY(){for(var z=V$,$=fq=V$=0;$<z;){var X=F6[$];F6[$++]=null;var Y=F6[$];F6[$++]=null;var Z=F6[$];F6[$++]=null;var J=F6[$];if(F6[$++]=null,Y!==null&&Z!==null){var Q=Y.pending;Q===null?Z.next=Z:(Z.next=Q.next,Q.next=Z),Y.pending=Z}J!==0&&DK(X,Z,J)}}function TY(z,$,X,Y){F6[V$++]=z,F6[V$++]=$,F6[V$++]=X,F6[V$++]=Y,fq|=Y,z.lanes|=Y,z=z.alternate,z!==null&&(z.lanes|=Y)}function _Q(z,$,X,Y){return TY(z,$,X,Y),IY(z)}function k4(z,$){return TY(z,null,null,$),IY(z)}function DK(z,$,X){z.lanes|=X;var Y=z.alternate;Y!==null&&(Y.lanes|=X);for(var Z=!1,J=z.return;J!==null;)J.childLanes|=X,Y=J.alternate,Y!==null&&(Y.childLanes|=X),J.tag===22&&(z=J.stateNode,z===null||z._visibility&N5||(Z=!0)),z=J,J=J.return;return z.tag===3?(J=z.stateNode,Z&&$!==null&&(Z=31-E4(X),z=J.hiddenUpdates,Y=z[Z],Y===null?z[Z]=[$]:Y.push($),$.lane=X|536870912),J):null}function IY(z){if(a5>QF)throw pz=a5=0,i5=OH=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.");pz>GF&&(pz=0,i5=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.")),z.alternate===null&&(z.flags&4098)!==0&&rB(z);for(var $=z,X=$.return;X!==null;)$.alternate===null&&($.flags&4098)!==0&&rB(z),$=X,X=$.return;return $.tag===3?$.stateNode:null}function Kz(z){if(N6===null)return z;var $=N6(z);return $===void 0?z:$.current}function BQ(z){if(N6===null)return z;var $=N6(z);return $===void 0?z!==null&&z!==void 0&&typeof z.render==="function"&&($=Kz(z.render),z.render!==$)?($={$$typeof:G5,render:$},z.displayName!==void 0&&($.displayName=z.displayName),$):z:$.current}function EK(z,$){if(N6===null)return!1;var X=z.elementType;$=$.type;var Y=!1,Z=typeof $==="object"&&$!==null?$.$$typeof:null;switch(z.tag){case 1:typeof $==="function"&&(Y=!0);break;case 0:typeof $==="function"?Y=!0:Z===J6&&(Y=!0);break;case 11:Z===G5?Y=!0:Z===J6&&(Y=!0);break;case 14:case 15:Z===AZ?Y=!0:Z===J6&&(Y=!0);break;default:return!1}return Y&&(z=N6(X),z!==void 0&&z===N6($))?!0:!1}function fK(z){N6!==null&&typeof WeakSet==="function"&&(C$===null&&(C$=new WeakSet),C$.add(z))}function mK(z,$,X){do{var Y=z,Z=Y.alternate,J=Y.child,Q=Y.sibling,q=Y.tag;Y=Y.type;var K=null;switch(q){case 0:case 15:case 1:K=Y;break;case 11:K=Y.render}if(N6===null)throw Error("Expected resolveFamily to be set during hot reload.");var B=!1;if(Y=!1,K!==null&&(K=N6(K),K!==void 0&&(X.has(K)?Y=!0:$.has(K)&&(q===1?Y=!0:B=!0))),C$!==null&&(C$.has(z)||Z!==null&&C$.has(Z))&&(Y=!0),Y&&(z._debugNeedsRemount=!0),Y||B)Z=k4(z,2),Z!==null&&u1(Z,z,2);if(J===null||Y||mK(J,$,X),Q===null)break;z=Q}while(1)}function OW(z,$,X,Y){this.tag=z,this.key=X,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=$,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,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,x9||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function UQ(z){return z=z.prototype,!(!z||!z.isReactComponent)}function D7(z,$){var X=z.alternate;switch(X===null?(X=P(z.tag,$,z.key,z.mode),X.elementType=z.elementType,X.type=z.type,X.stateNode=z.stateNode,X._debugOwner=z._debugOwner,X._debugStack=z._debugStack,X._debugTask=z._debugTask,X._debugHookTypes=z._debugHookTypes,X.alternate=z,z.alternate=X):(X.pendingProps=$,X.type=z.type,X.flags=0,X.subtreeFlags=0,X.deletions=null,X.actualDuration=-0,X.actualStartTime=-1.1),X.flags=z.flags&65011712,X.childLanes=z.childLanes,X.lanes=z.lanes,X.child=z.child,X.memoizedProps=z.memoizedProps,X.memoizedState=z.memoizedState,X.updateQueue=z.updateQueue,$=z.dependencies,X.dependencies=$===null?null:{lanes:$.lanes,firstContext:$.firstContext,_debugThenableState:$._debugThenableState},X.sibling=z.sibling,X.index=z.index,X.ref=z.ref,X.refCleanup=z.refCleanup,X.selfBaseDuration=z.selfBaseDuration,X.treeBaseDuration=z.treeBaseDuration,X._debugInfo=z._debugInfo,X._debugNeedsRemount=z._debugNeedsRemount,X.tag){case 0:case 15:X.type=Kz(z.type);break;case 1:X.type=Kz(z.type);break;case 11:X.type=BQ(z.type)}return X}function hK(z,$){z.flags&=65011714;var X=z.alternate;return X===null?(z.childLanes=0,z.lanes=$,z.child=null,z.subtreeFlags=0,z.memoizedProps=null,z.memoizedState=null,z.updateQueue=null,z.dependencies=null,z.stateNode=null,z.selfBaseDuration=0,z.treeBaseDuration=0):(z.childLanes=X.childLanes,z.lanes=X.lanes,z.child=X.child,z.subtreeFlags=0,z.deletions=null,z.memoizedProps=X.memoizedProps,z.memoizedState=X.memoizedState,z.updateQueue=X.updateQueue,z.type=X.type,$=X.dependencies,z.dependencies=$===null?null:{lanes:$.lanes,firstContext:$.firstContext,_debugThenableState:$._debugThenableState},z.selfBaseDuration=X.selfBaseDuration,z.treeBaseDuration=X.treeBaseDuration),z}function OQ(z,$,X,Y,Z,J){var Q=0,q=z;if(typeof z==="function")UQ(z)&&(Q=1),q=Kz(q);else if(typeof z==="string")Q=K0(),Q=P3(z,X,Q)?26:z==="html"||z==="head"||z==="body"?27:5;else z:switch(z){case Qq:return $=P(31,X,$,Z),$.elementType=Qq,$.lanes=J,$;case N$:return _z(X.children,Z,J,$);case PZ:Q=8,Z|=V4,Z|=g6;break;case Xq:return z=X,Y=Z,typeof z.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof z.id),$=P(12,z,$,Y|j0),$.elementType=Xq,$.lanes=J,$.stateNode={effectDuration:0,passiveEffectDuration:0},$;case Zq:return $=P(13,X,$,Z),$.elementType=Zq,$.lanes=J,$;case Jq:return $=P(19,X,$,Z),$.elementType=Jq,$.lanes=J,$;default:if(typeof z==="object"&&z!==null)switch(z.$$typeof){case W7:Q=10;break z;case Yq:Q=9;break z;case G5:Q=11,q=BQ(q);break z;case AZ:Q=14;break z;case J6:Q=16,q=null;break z}if(q="",z===void 0||typeof z==="object"&&z!==null&&Object.keys(z).length===0)q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";z===null?X="null":q4(z)?X="array":z!==void 0&&z.$$typeof===L7?(X="<"+(c(z.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):X=typeof z,(Q=Y?v0(Y):null)&&(q+=`
|
|
60
|
+
|
|
61
|
+
Check the render method of \``+Q+"`."),Q=29,X=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(X+"."+q)),q=null}return $=P(Q,X,$,Z),$.elementType=z,$.type=q,$.lanes=J,$._debugOwner=Y,$}function kY(z,$,X){return $=OQ(z.type,z.key,z.props,z._owner,$,X),$._debugOwner=z._owner,$._debugStack=z._debugStack,$._debugTask=z._debugTask,$}function _z(z,$,X,Y){return z=P(7,z,Y,$),z.lanes=X,z}function LQ(z,$,X){return z=P(6,z,null,$),z.lanes=X,z}function pK(z){var $=P(18,null,null,T0);return $.stateNode=z,$}function WQ(z,$,X){return $=P(4,z.children!==null?z.children:[],z.key,$),$.lanes=X,$.stateNode={containerInfo:z.containerInfo,pendingChildren:null,implementation:z.implementation},$}function e4(z,$){if(typeof z==="object"&&z!==null){var X=mq.get(z);if(X!==void 0)return X;return $={value:z,source:$,stack:Y0($)},mq.set(z,$),$}return{value:z,source:$,stack:Y0($)}}function E7(z,$){W8(),S$[D$++]=M5,S$[D$++]=jZ,jZ=z,M5=$}function jK(z,$,X){W8(),M6[w6++]=l7,M6[w6++]=c7,M6[w6++]=Az,Az=z;var Y=l7;z=c7;var Z=32-E4(Y)-1;Y&=~(1<<Z),X+=1;var J=32-E4($)+Z;if(30<J){var Q=Z-Z%5;J=(Y&(1<<Q)-1).toString(32),Y>>=Q,Z-=Q,l7=1<<32-E4($)+Z|X<<Z|Y,c7=J+z}else l7=1<<J|X<<Z|Y,c7=z}function RQ(z){W8(),z.return!==null&&(E7(z,1),jK(z,1,0))}function FQ(z){for(;z===jZ;)jZ=S$[--D$],S$[D$]=null,M5=S$[--D$],S$[D$]=null;for(;z===Az;)Az=M6[--w6],M6[w6]=null,c7=M6[--w6],M6[w6]=null,l7=M6[--w6],M6[w6]=null}function gK(){return W8(),Az!==null?{id:l7,overflow:c7}:null}function xK(z,$){W8(),M6[w6++]=l7,M6[w6++]=c7,M6[w6++]=Az,l7=$.id,c7=$.overflow,Az=z}function W8(){n0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Bz(z,$){if(z.return===null){if(q6===null)q6={fiber:z,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:$};else{if(q6.fiber!==z)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");q6.distanceFromLeaf>$&&(q6.distanceFromLeaf=$)}return q6}var X=Bz(z.return,$+1).children;if(0<X.length&&X[X.length-1].fiber===z)return X=X[X.length-1],X.distanceFromLeaf>$&&(X.distanceFromLeaf=$),X;return $={fiber:z,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:$},X.push($),$}function uK(){n0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function yY(z,$){b7||(z=Bz(z,0),z.serverProps=null,$!==null&&($=MU($),z.serverTail.push($)))}function R8(z){var $=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,X="",Y=q6;throw Y!==null&&(q6=null,X=YQ(Y)),EX(e4(Error("Hydration failed because the server rendered "+($?"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:
|
|
62
|
+
|
|
63
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
64
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
65
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
66
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
67
|
+
- Invalid HTML tag nesting.
|
|
68
|
+
|
|
69
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
70
|
+
|
|
71
|
+
https://react.dev/link/hydration-mismatch`+X),z)),hq}function lK(z){var{stateNode:$,type:X,memoizedProps:Y}=z;switch($[P4]=z,$[f4]=Y,pG(X,Y),X){case"dialog":t0("cancel",$),t0("close",$);break;case"iframe":case"object":case"embed":t0("load",$);break;case"video":case"audio":for(X=0;X<o5.length;X++)t0(o5[X],$);break;case"source":t0("error",$);break;case"img":case"image":case"link":t0("error",$),t0("load",$);break;case"details":t0("toggle",$);break;case"input":O8("input",Y),t0("invalid",$),D6($,Y),z$($,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":E6($,Y);break;case"select":O8("select",Y),t0("invalid",$),K1($,Y);break;case"textarea":O8("textarea",Y),t0("invalid",$),L8($,Y),XK($,Y.value,Y.defaultValue,Y.children)}X=Y.children,typeof X!=="string"&&typeof X!=="number"&&typeof X!=="bigint"||$.textContent===""+X||Y.suppressHydrationWarning===!0||QU($.textContent,X)?(Y.popover!=null&&(t0("beforetoggle",$),t0("toggle",$)),Y.onScroll!=null&&t0("scroll",$),Y.onScrollEnd!=null&&t0("scrollend",$),Y.onClick!=null&&($.onclick=S7),$=!0):$=!1,$||R8(z,!0)}function cK(z){for(A4=z.return;A4;)switch(A4.tag){case 5:case 31:case 13:b6=!1;return;case 27:case 3:b6=!0;return;default:A4=A4.return}}function Y$(z){if(z!==A4)return!1;if(!n0)return cK(z),n0=!0,!1;var $=z.tag,X;if(X=$!==3&&$!==27){if(X=$===5)X=z.type,X=!(X!=="form"&&X!=="button")||lG(z.type,z.memoizedProps);X=!X}if(X&&y1){for(X=y1;X;){var Y=Bz(z,0),Z=MU(X);Y.serverTail.push(Z),X=Z.type==="Suspense"?iG(X):Z6(X.nextSibling)}R8(z)}if(cK(z),$===13){if(z=z.memoizedState,z=z!==null?z.dehydrated:null,!z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");y1=iG(z)}else if($===31){if(z=z.memoizedState,z=z!==null?z.dehydrated:null,!z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");y1=iG(z)}else $===27?($=y1,I8(z.type)?(z=TH,TH=null,y1=z):y1=$):y1=A4?Z6(z.stateNode.nextSibling):null;return!0}function Uz(){y1=A4=null,b7=n0=!1}function NQ(){var z=m8;return z!==null&&(x4===null?x4=z:x4.push.apply(x4,z),m8=null),z}function EX(z){m8===null?m8=[z]:m8.push(z)}function MQ(){var z=q6;if(z!==null){q6=null;for(var $=YQ(z);0<z.children.length;)z=z.children[0];o(z.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:
|
|
72
|
+
|
|
73
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
74
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
75
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
76
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
77
|
+
- Invalid HTML tag nesting.
|
|
78
|
+
|
|
79
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
80
|
+
|
|
81
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",$)})}}function VY(){E$=gZ=null,f$=!1}function F8(z,$,X){u(pq,$._currentValue,z),$._currentValue=X,u(jq,$._currentRenderer,z),$._currentRenderer!==void 0&&$._currentRenderer!==null&&$._currentRenderer!==l9&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),$._currentRenderer=l9}function f7(z,$){z._currentValue=pq.current;var X=jq.current;l(jq,$),z._currentRenderer=X,l(pq,$)}function wQ(z,$,X){for(;z!==null;){var Y=z.alternate;if((z.childLanes&$)!==$?(z.childLanes|=$,Y!==null&&(Y.childLanes|=$)):Y!==null&&(Y.childLanes&$)!==$&&(Y.childLanes|=$),z===X)break;z=z.return}z!==X&&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 bQ(z,$,X,Y){var Z=z.child;Z!==null&&(Z.return=z);for(;Z!==null;){var J=Z.dependencies;if(J!==null){var Q=Z.child;J=J.firstContext;z:for(;J!==null;){var q=J;J=Z;for(var K=0;K<$.length;K++)if(q.context===$[K]){J.lanes|=X,q=J.alternate,q!==null&&(q.lanes|=X),wQ(J.return,X,z),Y||(Q=null);break z}J=q.next}}else if(Z.tag===18){if(Q=Z.return,Q===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");Q.lanes|=X,J=Q.alternate,J!==null&&(J.lanes|=X),wQ(Q,X,z),Q=null}else Q=Z.child;if(Q!==null)Q.return=Z;else for(Q=Z;Q!==null;){if(Q===z){Q=null;break}if(Z=Q.sibling,Z!==null){Z.return=Q.return,Q=Z;break}Q=Q.return}Z=Q}}function Z$(z,$,X,Y){z=null;for(var Z=$,J=!1;Z!==null;){if(!J){if((Z.flags&524288)!==0)J=!0;else if((Z.flags&262144)!==0)break}if(Z.tag===10){var Q=Z.alternate;if(Q===null)throw Error("Should have a current fiber. This is a bug in React.");if(Q=Q.memoizedProps,Q!==null){var q=Z.type;h4(Z.pendingProps.value,Q.value)||(z!==null?z.push(q):z=[q])}}else if(Z===vZ.current){if(Q=Z.alternate,Q===null)throw Error("Should have a current fiber. This is a bug in React.");Q.memoizedState.memoizedState!==Z.memoizedState.memoizedState&&(z!==null?z.push(e5):z=[e5])}Z=Z.return}z!==null&&bQ($,z,X,Y),$.flags|=262144}function CY(z){for(z=z.firstContext;z!==null;){if(!h4(z.context._currentValue,z.memoizedValue))return!0;z=z.next}return!1}function Oz(z){gZ=z,E$=null,z=z.dependencies,z!==null&&(z.firstContext=null)}function f1(z){return f$&&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()."),dK(gZ,z)}function SY(z,$){return gZ===null&&Oz(z),dK(z,$)}function dK(z,$){var X=$._currentValue;if($={context:$,memoizedValue:X,next:null},E$===null){if(z===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().");E$=$,z.dependencies={lanes:0,firstContext:$,_debugThenableState:null},z.flags|=524288}else E$=E$.next=$;return X}function PQ(){return{controller:new oR,data:new Map,refCount:0}}function Lz(z){z.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),z.refCount++}function fX(z){z.refCount--,0>z.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),z.refCount===0&&rR(nR,function(){z.controller.abort()})}function X7(z,$,X){if((z&127)!==0)0>P7&&(P7=z4(),b5=xZ($),gq=$,X!=null&&(xq=C(X)),(z1&(K4|_6))!==F4&&(l1=!0,j8=w5),z=X5(),$=$5(),z!==m$||$!==P5?m$=-1.1:$!==null&&(j8=w5),Tz=z,P5=$);else if((z&4194048)!==0&&0>P6&&(P6=z4(),A5=xZ($),c9=$,X!=null&&(d9=C(X)),0>i7)){if(z=X5(),$=$5(),z!==x8||$!==Iz)x8=-1.1;g8=z,Iz=$}}function LW(z){if(0>P7){P7=z4(),b5=z._debugTask!=null?z._debugTask:null,(z1&(K4|_6))!==F4&&(j8=w5);var $=X5(),X=$5();$!==m$||X!==P5?m$=-1.1:X!==null&&(j8=w5),Tz=$,P5=X}if(0>P6&&(P6=z4(),A5=z._debugTask!=null?z._debugTask:null,0>i7)){if(z=X5(),$=$5(),z!==x8||$!==Iz)x8=-1.1;g8=z,Iz=$}}function m7(){var z=vz;return vz=0,z}function DY(z){var $=vz;return vz=z,$}function mX(z){var $=vz;return vz+=z,$}function EY(){b0=M0=-1.1}function z6(){var z=M0;return M0=-1.1,z}function $6(z){0<=z&&(M0=z)}function Y7(){var z=j1;return j1=-0,z}function Z7(z){0<=z&&(j1=z)}function J7(){var z=m1;return m1=null,z}function Q7(){var z=l1;return l1=!1,z}function AQ(z){p4=z4(),0>z.actualStartTime&&(z.actualStartTime=p4)}function vQ(z){if(0<=p4){var $=z4()-p4;z.actualDuration+=$,z.selfBaseDuration=$,p4=-1}}function aK(z){if(0<=p4){var $=z4()-p4;z.actualDuration+=$,p4=-1}}function G7(){if(0<=p4){var z=z4(),$=z-p4;p4=-1,vz+=$,j1+=$,b0=z}}function iK(z){m1===null&&(m1=[]),m1.push(z),a7===null&&(a7=[]),a7.push(z)}function q7(){p4=z4(),0>M0&&(M0=p4)}function hX(z){for(var $=z.child;$;)z.actualDuration+=$.actualDuration,$=$.sibling}function WW(z,$){if(T5===null){var X=T5=[];lq=0,kz=EG(),h$={status:"pending",value:void 0,then:function(Y){X.push(Y)}}}return lq++,$.then(oK,oK),$}function oK(){if(--lq===0&&(-1<P6||(i7=-1.1),T5!==null)){h$!==null&&(h$.status="fulfilled");var z=T5;T5=null,kz=0,h$=null;for(var $=0;$<z.length;$++)(0,z[$])()}}function RW(z,$){var X=[],Y={status:"pending",value:null,reason:null,then:function(Z){X.push(Z)}};return z.then(function(){Y.status="fulfilled",Y.value=$;for(var Z=0;Z<X.length;Z++)(0,X[Z])($)},function(Z){Y.status="rejected",Y.reason=Z;for(Z=0;Z<X.length;Z++)(0,X[Z])(void 0)}),Y}function TQ(){var z=yz.current;return z!==null?z:M1.pooledCache}function fY(z,$){$===null?u(yz,yz.current,z):u(yz,$.pool,z)}function rK(){var z=TQ();return z===null?null:{parent:e1._currentValue,pool:z}}function nK(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function tK(z){return z=z.status,z==="fulfilled"||z==="rejected"}function sK(z,$,X){j.actQueue!==null&&(j.didUsePromise=!0);var Y=z.thenables;if(X=Y[X],X===void 0?Y.push($):X!==$&&(z.didWarnAboutUncachedPromise||(z.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.")),$.then(S7,S7),$=X),$._debugInfo===void 0){z=performance.now(),Y=$.displayName;var Z={name:typeof Y==="string"?Y:"Promise",start:z,end:z,value:$};$._debugInfo=[{awaited:Z}],$.status!=="fulfilled"&&$.status!=="rejected"&&(z=function(){Z.end=performance.now()},$.then(z,z))}switch($.status){case"fulfilled":return $.value;case"rejected":throw z=$.reason,z_(z),z;default:if(typeof $.status==="string")$.then(S7,S7);else{if(z=M1,z!==null&&100<z.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.");z=$,z.status="pending",z.then(function(J){if($.status==="pending"){var Q=$;Q.status="fulfilled",Q.value=J}},function(J){if($.status==="pending"){var Q=$;Q.status="rejected",Q.reason=J}})}switch($.status){case"fulfilled":return $.value;case"rejected":throw z=$.reason,z_(z),z}throw Cz=$,D5=!0,p$}}function N8(z){try{return zF(z)}catch($){if($!==null&&typeof $==="object"&&typeof $.then==="function")throw Cz=$,D5=!0,p$;throw $}}function eK(){if(Cz===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var z=Cz;return Cz=null,D5=!1,z}function z_(z){if(z===p$||z===rZ)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 M4(z){var $=g0;return z!=null&&(g0=$===null?z:$.concat(z)),$}function IQ(){var z=g0;if(z!=null){for(var $=z.length-1;0<=$;$--)if(z[$].name!=null){var X=z[$].debugTask;if(X!=null)return X}}return null}function mY(z,$,X){for(var Y=Object.keys(z.props),Z=0;Z<Y.length;Z++){var J=Y[Z];if(J!=="children"&&J!=="key"){$===null&&($=kY(z,X.mode,0),$._debugInfo=g0,$.return=X),o($,function(Q){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Q)},J);break}}}function hY(z){var $=E5;return E5+=1,j$===null&&(j$=nK()),sK(j$,z,$)}function pX(z,$){$=$.props.ref,z.ref=$!==void 0?$:null}function $_(z,$){if($.$$typeof===D3)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
82
|
+
- Multiple copies of the "react" package is used.
|
|
83
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
84
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw z=Object.prototype.toString.call($),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}function pY(z,$){var X=IQ();X!==null?X.run($_.bind(null,z,$)):$_(z,$)}function X_(z,$){var X=C(z)||"Component";_O[X]||(_O[X]=!0,$=$.displayName||$.name||"Component",z.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.
|
|
85
|
+
root.render(%s)`,$,$,$):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.
|
|
86
|
+
<%s>{%s}</%s>`,$,$,X,$,X))}function jY(z,$){var X=IQ();X!==null?X.run(X_.bind(null,z,$)):X_(z,$)}function Y_(z,$){var X=C(z)||"Component";BO[X]||(BO[X]=!0,$=String($),z.tag===3?console.error(`Symbols are not valid as a React child.
|
|
87
|
+
root.render(%s)`,$):console.error(`Symbols are not valid as a React child.
|
|
88
|
+
<%s>%s</%s>`,X,$,X))}function gY(z,$){var X=IQ();X!==null?X.run(Y_.bind(null,z,$)):Y_(z,$)}function Z_(z){function $(w,A){if(z){var v=w.deletions;v===null?(w.deletions=[A],w.flags|=16):v.push(A)}}function X(w,A){if(!z)return null;for(;A!==null;)$(w,A),A=A.sibling;return null}function Y(w){for(var A=new Map;w!==null;)w.key!==null?A.set(w.key,w):A.set(w.index,w),w=w.sibling;return A}function Z(w,A){return w=D7(w,A),w.index=0,w.sibling=null,w}function J(w,A,v){if(w.index=v,!z)return w.flags|=1048576,A;if(v=w.alternate,v!==null)return v=v.index,v<A?(w.flags|=67108866,A):v;return w.flags|=67108866,A}function Q(w){return z&&w.alternate===null&&(w.flags|=67108866),w}function q(w,A,v,x){if(A===null||A.tag!==6)return A=LQ(v,w.mode,x),A.return=w,A._debugOwner=w,A._debugTask=w._debugTask,A._debugInfo=g0,A;return A=Z(A,v),A.return=w,A._debugInfo=g0,A}function K(w,A,v,x){var X0=v.type;if(X0===N$)return A=T(w,A,v.props.children,x,v.key),mY(v,A,w),A;if(A!==null&&(A.elementType===X0||EK(A,v)||typeof X0==="object"&&X0!==null&&X0.$$typeof===J6&&N8(X0)===A.type))return A=Z(A,v.props),pX(A,v),A.return=w,A._debugOwner=v._owner,A._debugInfo=g0,A;return A=kY(v,w.mode,x),pX(A,v),A.return=w,A._debugInfo=g0,A}function B(w,A,v,x){if(A===null||A.tag!==4||A.stateNode.containerInfo!==v.containerInfo||A.stateNode.implementation!==v.implementation)return A=WQ(v,w.mode,x),A.return=w,A._debugInfo=g0,A;return A=Z(A,v.children||[]),A.return=w,A._debugInfo=g0,A}function T(w,A,v,x,X0){if(A===null||A.tag!==7)return A=_z(v,w.mode,x,X0),A.return=w,A._debugOwner=w,A._debugTask=w._debugTask,A._debugInfo=g0,A;return A=Z(A,v),A.return=w,A._debugInfo=g0,A}function k(w,A,v){if(typeof A==="string"&&A!==""||typeof A==="number"||typeof A==="bigint")return A=LQ(""+A,w.mode,v),A.return=w,A._debugOwner=w,A._debugTask=w._debugTask,A._debugInfo=g0,A;if(typeof A==="object"&&A!==null){switch(A.$$typeof){case L7:return v=kY(A,w.mode,v),pX(v,A),v.return=w,w=M4(A._debugInfo),v._debugInfo=g0,g0=w,v;case F$:return A=WQ(A,w.mode,v),A.return=w,A._debugInfo=g0,A;case J6:var x=M4(A._debugInfo);return A=N8(A),w=k(w,A,v),g0=x,w}if(q4(A)||B0(A))return v=_z(A,w.mode,v,null),v.return=w,v._debugOwner=w,v._debugTask=w._debugTask,w=M4(A._debugInfo),v._debugInfo=g0,g0=w,v;if(typeof A.then==="function")return x=M4(A._debugInfo),w=k(w,hY(A),v),g0=x,w;if(A.$$typeof===W7)return k(w,SY(w,A),v);pY(w,A)}return typeof A==="function"&&jY(w,A),typeof A==="symbol"&&gY(w,A),null}function b(w,A,v,x){var X0=A!==null?A.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return X0!==null?null:q(w,A,""+v,x);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case L7:return v.key===X0?(X0=M4(v._debugInfo),w=K(w,A,v,x),g0=X0,w):null;case F$:return v.key===X0?B(w,A,v,x):null;case J6:return X0=M4(v._debugInfo),v=N8(v),w=b(w,A,v,x),g0=X0,w}if(q4(v)||B0(v)){if(X0!==null)return null;return X0=M4(v._debugInfo),w=T(w,A,v,x,null),g0=X0,w}if(typeof v.then==="function")return X0=M4(v._debugInfo),w=b(w,A,hY(v),x),g0=X0,w;if(v.$$typeof===W7)return b(w,A,SY(w,v),x);pY(w,v)}return typeof v==="function"&&jY(w,v),typeof v==="symbol"&&gY(w,v),null}function D(w,A,v,x,X0){if(typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint")return w=w.get(v)||null,q(A,w,""+x,X0);if(typeof x==="object"&&x!==null){switch(x.$$typeof){case L7:return v=w.get(x.key===null?v:x.key)||null,w=M4(x._debugInfo),A=K(A,v,x,X0),g0=w,A;case F$:return w=w.get(x.key===null?v:x.key)||null,B(A,w,x,X0);case J6:var V0=M4(x._debugInfo);return x=N8(x),A=D(w,A,v,x,X0),g0=V0,A}if(q4(x)||B0(x))return v=w.get(v)||null,w=M4(x._debugInfo),A=T(A,v,x,X0,null),g0=w,A;if(typeof x.then==="function")return V0=M4(x._debugInfo),A=D(w,A,v,hY(x),X0),g0=V0,A;if(x.$$typeof===W7)return D(w,A,v,SY(A,x),X0);pY(A,x)}return typeof x==="function"&&jY(A,x),typeof x==="symbol"&&gY(A,x),null}function z0(w,A,v,x){if(typeof v!=="object"||v===null)return x;switch(v.$$typeof){case L7:case F$:O(w,A,v);var X0=v.key;if(typeof X0!=="string")break;if(x===null){x=new Set,x.add(X0);break}if(!x.has(X0)){x.add(X0);break}o(A,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.",X0)});break;case J6:v=N8(v),z0(w,A,v,x)}return x}function J0(w,A,v,x){for(var X0=null,V0=null,F0=null,O0=A,p0=A=0,V1=null;O0!==null&&p0<v.length;p0++){O0.index>p0?(V1=O0,O0=null):V1=O0.sibling;var s1=b(w,O0,v[p0],x);if(s1===null){O0===null&&(O0=V1);break}X0=z0(w,s1,v[p0],X0),z&&O0&&s1.alternate===null&&$(w,O0),A=J(s1,A,p0),F0===null?V0=s1:F0.sibling=s1,F0=s1,O0=V1}if(p0===v.length)return X(w,O0),n0&&E7(w,p0),V0;if(O0===null){for(;p0<v.length;p0++)O0=k(w,v[p0],x),O0!==null&&(X0=z0(w,O0,v[p0],X0),A=J(O0,A,p0),F0===null?V0=O0:F0.sibling=O0,F0=O0);return n0&&E7(w,p0),V0}for(O0=Y(O0);p0<v.length;p0++)V1=D(O0,w,p0,v[p0],x),V1!==null&&(X0=z0(w,V1,v[p0],X0),z&&V1.alternate!==null&&O0.delete(V1.key===null?p0:V1.key),A=J(V1,A,p0),F0===null?V0=V1:F0.sibling=V1,F0=V1);return z&&O0.forEach(function(X8){return $(w,X8)}),n0&&E7(w,p0),V0}function P1(w,A,v,x){if(v==null)throw Error("An iterable object provided no iterator.");for(var X0=null,V0=null,F0=A,O0=A=0,p0=null,V1=null,s1=v.next();F0!==null&&!s1.done;O0++,s1=v.next()){F0.index>O0?(p0=F0,F0=null):p0=F0.sibling;var X8=b(w,F0,s1.value,x);if(X8===null){F0===null&&(F0=p0);break}V1=z0(w,X8,s1.value,V1),z&&F0&&X8.alternate===null&&$(w,F0),A=J(X8,A,O0),V0===null?X0=X8:V0.sibling=X8,V0=X8,F0=p0}if(s1.done)return X(w,F0),n0&&E7(w,O0),X0;if(F0===null){for(;!s1.done;O0++,s1=v.next())F0=k(w,s1.value,x),F0!==null&&(V1=z0(w,F0,s1.value,V1),A=J(F0,A,O0),V0===null?X0=F0:V0.sibling=F0,V0=F0);return n0&&E7(w,O0),X0}for(F0=Y(F0);!s1.done;O0++,s1=v.next())p0=D(F0,w,O0,s1.value,x),p0!==null&&(V1=z0(w,p0,s1.value,V1),z&&p0.alternate!==null&&F0.delete(p0.key===null?O0:p0.key),A=J(p0,A,O0),V0===null?X0=p0:V0.sibling=p0,V0=p0);return z&&F0.forEach(function(AF){return $(w,AF)}),n0&&E7(w,O0),X0}function s0(w,A,v,x){if(typeof v==="object"&&v!==null&&v.type===N$&&v.key===null&&(mY(v,null,w),v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case L7:var X0=M4(v._debugInfo);z:{for(var V0=v.key;A!==null;){if(A.key===V0){if(V0=v.type,V0===N$){if(A.tag===7){X(w,A.sibling),x=Z(A,v.props.children),x.return=w,x._debugOwner=v._owner,x._debugInfo=g0,mY(v,x,w),w=x;break z}}else if(A.elementType===V0||EK(A,v)||typeof V0==="object"&&V0!==null&&V0.$$typeof===J6&&N8(V0)===A.type){X(w,A.sibling),x=Z(A,v.props),pX(x,v),x.return=w,x._debugOwner=v._owner,x._debugInfo=g0,w=x;break z}X(w,A);break}else $(w,A);A=A.sibling}v.type===N$?(x=_z(v.props.children,w.mode,x,v.key),x.return=w,x._debugOwner=w,x._debugTask=w._debugTask,x._debugInfo=g0,mY(v,x,w),w=x):(x=kY(v,w.mode,x),pX(x,v),x.return=w,x._debugInfo=g0,w=x)}return w=Q(w),g0=X0,w;case F$:z:{X0=v;for(v=X0.key;A!==null;){if(A.key===v)if(A.tag===4&&A.stateNode.containerInfo===X0.containerInfo&&A.stateNode.implementation===X0.implementation){X(w,A.sibling),x=Z(A,X0.children||[]),x.return=w,w=x;break z}else{X(w,A);break}else $(w,A);A=A.sibling}x=WQ(X0,w.mode,x),x.return=w,w=x}return Q(w);case J6:return X0=M4(v._debugInfo),v=N8(v),w=s0(w,A,v,x),g0=X0,w}if(q4(v))return X0=M4(v._debugInfo),w=J0(w,A,v,x),g0=X0,w;if(B0(v)){if(X0=M4(v._debugInfo),V0=B0(v),typeof V0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var F0=V0.call(v);if(F0===v){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(F0)!=="[object Generator]")HO||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."),HO=!0}else v.entries!==V0||iq||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),iq=!0);return w=P1(w,A,F0,x),g0=X0,w}if(typeof v.then==="function")return X0=M4(v._debugInfo),w=s0(w,A,hY(v),x),g0=X0,w;if(v.$$typeof===W7)return s0(w,A,SY(w,v),x);pY(w,v)}if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return X0=""+v,A!==null&&A.tag===6?(X(w,A.sibling),x=Z(A,X0),x.return=w,w=x):(X(w,A),x=LQ(X0,w.mode,x),x.return=w,x._debugOwner=w,x._debugTask=w._debugTask,x._debugInfo=g0,w=x),Q(w);return typeof v==="function"&&jY(w,v),typeof v==="symbol"&&gY(w,v),X(w,A)}return function(w,A,v,x){var X0=g0;g0=null;try{E5=0;var V0=s0(w,A,v,x);return j$=null,V0}catch(V1){if(V1===p$||V1===rZ)throw V1;var F0=P(29,V1,null,w.mode);F0.lanes=x,F0.return=w;var O0=F0._debugInfo=g0;if(F0._debugOwner=w._debugOwner,F0._debugTask=w._debugTask,O0!=null){for(var p0=O0.length-1;0<=p0;p0--)if(typeof O0[p0].stack==="string"){F0._debugOwner=O0[p0],F0._debugTask=O0[p0].debugTask;break}}return F0}finally{g0=X0}}}function J_(z,$){var X=q4(z);return z=!X&&typeof B0(z)==="function",X||z?(X=X?"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>",X,$,X),!1):!0}function kQ(z){z.updateQueue={baseState:z.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yQ(z,$){z=z.updateQueue,$.updateQueue===z&&($.updateQueue={baseState:z.baseState,firstBaseUpdate:z.firstBaseUpdate,lastBaseUpdate:z.lastBaseUpdate,shared:z.shared,callbacks:null})}function M8(z){return{lane:z,tag:OO,payload:null,callback:null,next:null}}function w8(z,$,X){var Y=z.updateQueue;if(Y===null)return null;if(Y=Y.shared,rq===Y&&!RO){var Z=C(z);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.
|
|
89
|
+
|
|
90
|
+
Please update the following component: %s`,Z),RO=!0}if((z1&K4)!==F4)return Z=Y.pending,Z===null?$.next=$:($.next=Z.next,Z.next=$),Y.pending=$,$=IY(z),DK(z,null,X),$;return TY(z,Y,$,X),IY(z)}function jX(z,$,X){if($=$.updateQueue,$!==null&&($=$.shared,(X&4194048)!==0)){var Y=$.lanes;Y&=z.pendingLanes,X|=Y,$.lanes=X,FX(z,X)}}function xY(z,$){var{updateQueue:X,alternate:Y}=z;if(Y!==null&&(Y=Y.updateQueue,X===Y)){var Z=null,J=null;if(X=X.firstBaseUpdate,X!==null){do{var Q={lane:X.lane,tag:X.tag,payload:X.payload,callback:null,next:null};J===null?Z=J=Q:J=J.next=Q,X=X.next}while(X!==null);J===null?Z=J=$:J=J.next=$}else Z=J=$;X={baseState:Y.baseState,firstBaseUpdate:Z,lastBaseUpdate:J,shared:Y.shared,callbacks:Y.callbacks},z.updateQueue=X;return}z=X.lastBaseUpdate,z===null?X.firstBaseUpdate=$:z.next=$,X.lastBaseUpdate=$}function gX(){if(nq){var z=h$;if(z!==null)throw z}}function xX(z,$,X,Y){nq=!1;var Z=z.updateQueue;u8=!1,rq=Z.shared;var{firstBaseUpdate:J,lastBaseUpdate:Q}=Z,q=Z.shared.pending;if(q!==null){Z.shared.pending=null;var K=q,B=K.next;K.next=null,Q===null?J=B:Q.next=B,Q=K;var T=z.alternate;T!==null&&(T=T.updateQueue,q=T.lastBaseUpdate,q!==Q&&(q===null?T.firstBaseUpdate=B:q.next=B,T.lastBaseUpdate=K))}if(J!==null){var k=Z.baseState;Q=0,T=B=K=null,q=J;do{var b=q.lane&-536870913,D=b!==q.lane;if(D?(x0&b)===b:(Y&b)===b){b!==0&&b===kz&&(nq=!0),T!==null&&(T=T.next={lane:0,tag:q.tag,payload:q.payload,callback:null,next:null});z:{b=z;var z0=q,J0=$,P1=X;switch(z0.tag){case LO:if(z0=z0.payload,typeof z0==="function"){f$=!0;var s0=z0.call(P1,k,J0);if(b.mode&V4){$1(!0);try{z0.call(P1,k,J0)}finally{$1(!1)}}f$=!1,k=s0;break z}k=z0;break z;case oq:b.flags=b.flags&-65537|128;case OO:if(s0=z0.payload,typeof s0==="function"){if(f$=!0,z0=s0.call(P1,k,J0),b.mode&V4){$1(!0);try{s0.call(P1,k,J0)}finally{$1(!1)}}f$=!1}else z0=s0;if(z0===null||z0===void 0)break z;k=d0({},k,z0);break z;case WO:u8=!0}}b=q.callback,b!==null&&(z.flags|=64,D&&(z.flags|=8192),D=Z.callbacks,D===null?Z.callbacks=[b]:D.push(b))}else D={lane:b,tag:q.tag,payload:q.payload,callback:q.callback,next:null},T===null?(B=T=D,K=k):T=T.next=D,Q|=b;if(q=q.next,q===null)if(q=Z.shared.pending,q===null)break;else D=q,q=D.next,D.next=null,Z.lastBaseUpdate=D,Z.shared.pending=null}while(1);T===null&&(K=k),Z.baseState=K,Z.firstBaseUpdate=B,Z.lastBaseUpdate=T,J===null&&(Z.shared.lanes=0),d8|=Q,z.lanes=Q,z.memoizedState=k}rq=null}function Q_(z,$){if(typeof z!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+z);z.call($)}function FW(z,$){var X=z.shared.hiddenCallbacks;if(X!==null)for(z.shared.hiddenCallbacks=null,z=0;z<X.length;z++)Q_(X[z],$)}function G_(z,$){var X=z.callbacks;if(X!==null)for(z.callbacks=null,z=0;z<X.length;z++)Q_(X[z],$)}function q_(z,$){var X=T7;u(tZ,X,z),u(g$,$,z),T7=X|$.baseLanes}function VQ(z){u(tZ,T7,z),u(g$,g$.current,z)}function CQ(z){T7=tZ.current,l(g$,z),l(tZ,z)}function b8(z){var $=z.alternate;u(t1,t1.current&x$,z),u(H6,z,z),A6===null&&($===null||g$.current!==null?A6=z:$.memoizedState!==null&&(A6=z))}function SQ(z){u(t1,t1.current,z),u(H6,z,z),A6===null&&(A6=z)}function H_(z){z.tag===22?(u(t1,t1.current,z),u(H6,z,z),A6===null&&(A6=z)):P8(z)}function P8(z){u(t1,t1.current,z),u(H6,H6.current,z)}function X6(z){l(H6,z),A6===z&&(A6=null),l(t1,z)}function uY(z){for(var $=z;$!==null;){if($.tag===13){var X=$.memoizedState;if(X!==null&&(X=X.dehydrated,X===null||dG(X)||aG(X)))return $}else if($.tag===19&&($.memoizedProps.revealOrder==="forwards"||$.memoizedProps.revealOrder==="backwards"||$.memoizedProps.revealOrder==="unstable_legacy-backwards"||$.memoizedProps.revealOrder==="together")){if(($.flags&128)!==0)return $}else if($.child!==null){$.child.return=$,$=$.child;continue}if($===z)break;for(;$.sibling===null;){if($.return===null||$.return===z)return null;$=$.return}$.sibling.return=$.return,$=$.sibling}return null}function c0(){var z=h;T6===null?T6=[z]:T6.push(z)}function r(){var z=h;if(T6!==null&&(t7++,T6[t7]!==z)){var $=C(y0);if(!FO.has($)&&(FO.add($),T6!==null)){for(var X="",Y=0;Y<=t7;Y++){var Z=T6[Y],J=Y===t7?z:Z;for(Z=Y+1+". "+Z;30>Z.length;)Z+=" ";Z+=J+`
|
|
91
|
+
`,X+=Z}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
|
|
92
|
+
|
|
93
|
+
Previous render Next render
|
|
94
|
+
------------------------------------------------------
|
|
95
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
96
|
+
`,$,X)}}}function J$(z){z===void 0||z===null||q4(z)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",h,typeof z)}function lY(){var z=C(y0);MO.has(z)||(MO.add(z),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",z))}function i1(){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:
|
|
97
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
98
|
+
2. You might be breaking the Rules of Hooks
|
|
99
|
+
3. You might have more than one copy of React in the same app
|
|
100
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function DQ(z,$){if(h5)return!1;if($===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.",h),!1;z.length!==$.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
101
|
+
|
|
102
|
+
Previous: %s
|
|
103
|
+
Incoming: %s`,h,"["+$.join(", ")+"]","["+z.join(", ")+"]");for(var X=0;X<$.length&&X<z.length;X++)if(!h4(z[X],$[X]))return!1;return!0}function EQ(z,$,X,Y,Z,J){if(r7=J,y0=$,T6=z!==null?z._debugHookTypes:null,t7=-1,h5=z!==null&&z.type!==$.type,Object.prototype.toString.call(X)==="[object AsyncFunction]"||Object.prototype.toString.call(X)==="[object AsyncGeneratorFunction]")J=C(y0),tq.has(J)||(tq.add(J),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.",J===null?"An unknown Component":"<"+J+">"));$.memoizedState=null,$.updateQueue=null,$.lanes=0,j.H=z!==null&&z.memoizedState!==null?eq:T6!==null?wO:sq,Dz=J=($.mode&V4)!==T0;var Q=cq(X,Y,Z);if(Dz=!1,l$&&(Q=fQ($,X,Y,Z)),J){$1(!0);try{Q=fQ($,X,Y,Z)}finally{$1(!1)}}return K_(z,$),Q}function K_(z,$){$._debugHookTypes=T6,$.dependencies===null?n7!==null&&($.dependencies={lanes:0,firstContext:null,_debugThenableState:n7}):$.dependencies._debugThenableState=n7,j.H=p5;var X=N1!==null&&N1.next!==null;if(r7=0,T6=h=$4=N1=y0=null,t7=-1,z!==null&&(z.flags&65011712)!==($.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),eZ=!1,m5=0,n7=null,X)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");z===null||X4||(z=z.dependencies,z!==null&&CY(z)&&(X4=!0)),D5?(D5=!1,z=!0):z=!1,z&&($=C($)||"Unknown",NO.has($)||tq.has($)||(NO.add($),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 fQ(z,$,X,Y){y0=z;var Z=0;do{if(l$&&(n7=null),m5=0,l$=!1,Z>=XF)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(Z+=1,h5=!1,$4=N1=null,z.updateQueue!=null){var J=z.updateQueue;J.lastEffect=null,J.events=null,J.stores=null,J.memoCache!=null&&(J.memoCache.index=0)}t7=-1,j.H=bO,J=cq($,X,Y)}while(l$);return J}function NW(){var z=j.H,$=z.useState()[0];return $=typeof $.then==="function"?uX($):$,z=z.useState()[0],(N1!==null?N1.memoizedState:null)!==z&&(y0.flags|=1024),$}function mQ(){var z=zJ!==0;return zJ=0,z}function hQ(z,$,X){$.updateQueue=z.updateQueue,$.flags=($.mode&g6)!==T0?$.flags&-402655237:$.flags&-2053,z.lanes&=~X}function pQ(z){if(eZ){for(z=z.memoizedState;z!==null;){var $=z.queue;$!==null&&($.pending=null),z=z.next}eZ=!1}r7=0,T6=$4=N1=y0=null,t7=-1,h=null,l$=!1,m5=zJ=0,n7=null}function D4(){var z={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $4===null?y0.memoizedState=$4=z:$4=$4.next=z,$4}function O1(){if(N1===null){var z=y0.alternate;z=z!==null?z.memoizedState:null}else z=N1.next;var $=$4===null?y0.memoizedState:$4.next;if($!==null)$4=$,N1=z;else{if(z===null){if(y0.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.")}N1=z,z={memoizedState:N1.memoizedState,baseState:N1.baseState,baseQueue:N1.baseQueue,queue:N1.queue,next:null},$4===null?y0.memoizedState=$4=z:$4=$4.next=z}return $4}function cY(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uX(z){var $=m5;return m5+=1,n7===null&&(n7=nK()),z=sK(n7,z,$),$=y0,($4===null?$.memoizedState:$4.next)===null&&($=$.alternate,j.H=$!==null&&$.memoizedState!==null?eq:sq),z}function A8(z){if(z!==null&&typeof z==="object"){if(typeof z.then==="function")return uX(z);if(z.$$typeof===W7)return f1(z)}throw Error("An unsupported type was passed to use(): "+String(z))}function Wz(z){var $=null,X=y0.updateQueue;if(X!==null&&($=X.memoCache),$==null){var Y=y0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&($={data:Y.data.map(function(Z){return Z.slice()}),index:0})))}if($==null&&($={data:[],index:0}),X===null&&(X=cY(),y0.updateQueue=X),X.memoCache=$,X=$.data[$.index],X===void 0||h5)for(X=$.data[$.index]=Array(z),Y=0;Y<z;Y++)X[Y]=E3;else X.length!==z&&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.",X.length,z);return $.index++,X}function m6(z,$){return typeof $==="function"?$(z):$}function jQ(z,$,X){var Y=D4();if(X!==void 0){var Z=X($);if(Dz){$1(!0);try{X($)}finally{$1(!1)}}}else Z=$;return Y.memoizedState=Y.baseState=Z,z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:z,lastRenderedState:Z},Y.queue=z,z=z.dispatch=AW.bind(null,y0,z),[Y.memoizedState,z]}function Q$(z){var $=O1();return gQ($,N1,z)}function gQ(z,$,X){var Y=z.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=X;var Z=z.baseQueue,J=Y.pending;if(J!==null){if(Z!==null){var Q=Z.next;Z.next=J.next,J.next=Q}$.baseQueue!==Z&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),$.baseQueue=Z=J,Y.pending=null}if(J=z.baseState,Z===null)z.memoizedState=J;else{$=Z.next;var q=Q=null,K=null,B=$,T=!1;do{var k=B.lane&-536870913;if(k!==B.lane?(x0&k)===k:(r7&k)===k){var b=B.revertLane;if(b===0)K!==null&&(K=K.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),k===kz&&(T=!0);else if((r7&b)===b){B=B.next,b===kz&&(T=!0);continue}else k={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},K===null?(q=K=k,Q=J):K=K.next=k,y0.lanes|=b,d8|=b;k=B.action,Dz&&X(J,k),J=B.hasEagerState?B.eagerState:X(J,k)}else b={lane:k,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},K===null?(q=K=b,Q=J):K=K.next=b,y0.lanes|=k,d8|=k;B=B.next}while(B!==null&&B!==$);if(K===null?Q=J:K.next=q,!h4(J,z.memoizedState)&&(X4=!0,T&&(X=h$,X!==null)))throw X;z.memoizedState=J,z.baseState=Q,z.baseQueue=K,Y.lastRenderedState=J}return Z===null&&(Y.lanes=0),[z.memoizedState,Y.dispatch]}function lX(z){var $=O1(),X=$.queue;if(X===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");X.lastRenderedReducer=z;var{dispatch:Y,pending:Z}=X,J=$.memoizedState;if(Z!==null){X.pending=null;var Q=Z=Z.next;do J=z(J,Q.action),Q=Q.next;while(Q!==Z);h4(J,$.memoizedState)||(X4=!0),$.memoizedState=J,$.baseQueue===null&&($.baseState=J),X.lastRenderedState=J}return[J,Y]}function xQ(z,$,X){var Y=y0,Z=D4();if(n0){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var J=X();u$||J===X()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),u$=!0)}else{if(J=$(),u$||(X=$(),h4(J,X)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u$=!0)),M1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(x0&127)!==0||__(Y,$,J)}return Z.memoizedState=J,X={value:J,getSnapshot:$},Z.queue=X,oY(U_.bind(null,Y,X,z),[z]),Y.flags|=2048,q$(v6|g4,{destroy:void 0},B_.bind(null,Y,X,J,$),null),J}function dY(z,$,X){var Y=y0,Z=O1(),J=n0;if(J){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");X=X()}else if(X=$(),!u$){var Q=$();h4(X,Q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u$=!0)}if(Q=!h4((N1||Z).memoizedState,X))Z.memoizedState=X,X4=!0;Z=Z.queue;var q=U_.bind(null,Y,Z,z);if(c4(2048,g4,q,[z]),Z.getSnapshot!==$||Q||$4!==null&&$4.memoizedState.tag&v6){if(Y.flags|=2048,q$(v6|g4,{destroy:void 0},B_.bind(null,Y,Z,X,$),null),M1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");J||(r7&127)!==0||__(Y,$,X)}return X}function __(z,$,X){z.flags|=16384,z={getSnapshot:$,value:X},$=y0.updateQueue,$===null?($=cY(),y0.updateQueue=$,$.stores=[z]):(X=$.stores,X===null?$.stores=[z]:X.push(z))}function B_(z,$,X,Y){$.value=X,$.getSnapshot=Y,O_($)&&L_(z)}function U_(z,$,X){return X(function(){O_($)&&(X7(2,"updateSyncExternalStore()",z),L_(z))})}function O_(z){var $=z.getSnapshot;z=z.value;try{var X=$();return!h4(z,X)}catch(Y){return!0}}function L_(z){var $=k4(z,2);$!==null&&u1($,z,2)}function uQ(z){var $=D4();if(typeof z==="function"){var X=z;if(z=X(),Dz){$1(!0);try{X()}finally{$1(!1)}}}return $.memoizedState=$.baseState=z,$.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m6,lastRenderedState:z},$}function lQ(z){z=uQ(z);var $=z.queue,X=E_.bind(null,y0,$);return $.dispatch=X,[z.memoizedState,X]}function cQ(z){var $=D4();$.memoizedState=$.baseState=z;var X={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return $.queue=X,$=ZG.bind(null,y0,!0,X),X.dispatch=$,[z,$]}function W_(z,$){var X=O1();return R_(X,N1,z,$)}function R_(z,$,X,Y){return z.baseState=X,gQ(z,N1,typeof Y==="function"?Y:m6)}function F_(z,$){var X=O1();if(N1!==null)return R_(X,N1,z,$);return X.baseState=z,[z,X.queue.dispatch]}function MW(z,$,X,Y,Z){if(zZ(z))throw Error("Cannot update form state while rendering.");if(z=$.action,z!==null){var J={payload:Z,action:z,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Q){J.listeners.push(Q)}};j.T!==null?X(!0):J.isTransition=!1,Y(J),X=$.pending,X===null?(J.next=$.pending=J,N_($,J)):(J.next=X.next,$.pending=X.next=J)}}function N_(z,$){var{action:X,payload:Y}=$,Z=z.state;if($.isTransition){var J=j.T,Q={};Q._updatedFibers=new Set,j.T=Q;try{var q=X(Z,Y),K=j.S;K!==null&&K(Q,q),M_(z,$,q)}catch(B){dQ(z,$,B)}finally{J!==null&&Q.types!==null&&(J.types!==null&&J.types!==Q.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."),J.types=Q.types),j.T=J,J===null&&Q._updatedFibers&&(z=Q._updatedFibers.size,Q._updatedFibers.clear(),10<z&&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{Q=X(Z,Y),M_(z,$,Q)}catch(B){dQ(z,$,B)}}function M_(z,$,X){X!==null&&typeof X==="object"&&typeof X.then==="function"?(j.asyncTransitions++,X.then(eY,eY),X.then(function(Y){w_(z,$,Y)},function(Y){return dQ(z,$,Y)}),$.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.")):w_(z,$,X)}function w_(z,$,X){$.status="fulfilled",$.value=X,b_($),z.state=X,$=z.pending,$!==null&&(X=$.next,X===$?z.pending=null:(X=X.next,$.next=X,N_(z,X)))}function dQ(z,$,X){var Y=z.pending;if(z.pending=null,Y!==null){Y=Y.next;do $.status="rejected",$.reason=X,b_($),$=$.next;while($!==Y)}z.action=null}function b_(z){z=z.listeners;for(var $=0;$<z.length;$++)(0,z[$])()}function P_(z,$){return $}function G$(z,$){if(n0){var X=M1.formState;if(X!==null){z:{var Y=y0;if(n0){if(y1){$:{var Z=y1;for(var J=b6;Z.nodeType!==8;){if(!J){Z=null;break $}if(Z=Z6(Z.nextSibling),Z===null){Z=null;break $}}J=Z.data,Z=J===bH||J===GL?Z:null}if(Z){y1=Z6(Z.nextSibling),Y=Z.data===bH;break z}}R8(Y)}Y=!1}Y&&($=X[0])}}return X=D4(),X.memoizedState=X.baseState=$,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:P_,lastRenderedState:$},X.queue=Y,X=E_.bind(null,y0,Y),Y.dispatch=X,Y=uQ(!1),J=ZG.bind(null,y0,!1,Y.queue),Y=D4(),Z={state:$,dispatch:null,action:z,pending:null},Y.queue=Z,X=MW.bind(null,y0,Z,J,X),Z.dispatch=X,Y.memoizedState=z,[$,X,!1]}function aY(z){var $=O1();return A_($,N1,z)}function A_(z,$,X){if($=gQ(z,$,P_)[0],z=Q$(m6)[0],typeof $==="object"&&$!==null&&typeof $.then==="function")try{var Y=uX($)}catch(Q){if(Q===p$)throw rZ;throw Q}else Y=$;$=O1();var Z=$.queue,J=Z.dispatch;return X!==$.memoizedState&&(y0.flags|=2048,q$(v6|g4,{destroy:void 0},wW.bind(null,Z,X),null)),[Y,J,z]}function wW(z,$){z.action=$}function iY(z){var $=O1(),X=N1;if(X!==null)return A_($,X,z);O1(),$=$.memoizedState,X=O1();var Y=X.queue.dispatch;return X.memoizedState=z,[$,Y,!1]}function q$(z,$,X,Y){return z={tag:z,create:X,deps:Y,inst:$,next:null},$=y0.updateQueue,$===null&&($=cY(),y0.updateQueue=$),X=$.lastEffect,X===null?$.lastEffect=z.next=z:(Y=X.next,X.next=z,z.next=Y,$.lastEffect=z),z}function aQ(z){var $=D4();return z={current:z},$.memoizedState=z}function Rz(z,$,X,Y){var Z=D4();y0.flags|=z,Z.memoizedState=q$(v6|$,{destroy:void 0},X,Y===void 0?null:Y)}function c4(z,$,X,Y){var Z=O1();Y=Y===void 0?null:Y;var J=Z.memoizedState.inst;N1!==null&&Y!==null&&DQ(Y,N1.memoizedState.deps)?Z.memoizedState=q$($,J,X,Y):(y0.flags|=z,Z.memoizedState=q$(v6|$,J,X,Y))}function oY(z,$){(y0.mode&g6)!==T0?Rz(276826112,g4,z,$):Rz(8390656,g4,z,$)}function bW(z){y0.flags|=4;var $=y0.updateQueue;if($===null)$=cY(),y0.updateQueue=$,$.events=[z];else{var X=$.events;X===null?$.events=[z]:X.push(z)}}function iQ(z){var $=D4(),X={impl:z};return $.memoizedState=X,function(){if((z1&K4)!==F4)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return X.impl.apply(void 0,arguments)}}function rY(z){var $=O1().memoizedState;return bW({ref:$,nextImpl:z}),function(){if((z1&K4)!==F4)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function oQ(z,$){var X=4194308;return(y0.mode&g6)!==T0&&(X|=134217728),Rz(X,K6,z,$)}function v_(z,$){if(typeof $==="function"){z=z();var X=$(z);return function(){typeof X==="function"?X():$(null)}}if($!==null&&$!==void 0)return $.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($).join(", ")+"}"),z=z(),$.current=z,function(){$.current=null}}function rQ(z,$,X){typeof $!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",$!==null?typeof $:"null"),X=X!==null&&X!==void 0?X.concat([z]):null;var Y=4194308;(y0.mode&g6)!==T0&&(Y|=134217728),Rz(Y,K6,v_.bind(null,$,z),X)}function nY(z,$,X){typeof $!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",$!==null?typeof $:"null"),X=X!==null&&X!==void 0?X.concat([z]):null,c4(4,K6,v_.bind(null,$,z),X)}function nQ(z,$){return D4().memoizedState=[z,$===void 0?null:$],z}function tY(z,$){var X=O1();$=$===void 0?null:$;var Y=X.memoizedState;if($!==null&&DQ($,Y[1]))return Y[0];return X.memoizedState=[z,$],z}function tQ(z,$){var X=D4();$=$===void 0?null:$;var Y=z();if(Dz){$1(!0);try{z()}finally{$1(!1)}}return X.memoizedState=[Y,$],Y}function sY(z,$){var X=O1();$=$===void 0?null:$;var Y=X.memoizedState;if($!==null&&DQ($,Y[1]))return Y[0];if(Y=z(),Dz){$1(!0);try{z()}finally{$1(!1)}}return X.memoizedState=[Y,$],Y}function sQ(z,$){var X=D4();return eQ(X,z,$)}function T_(z,$){var X=O1();return k_(X,N1.memoizedState,z,$)}function I_(z,$){var X=O1();return N1===null?eQ(X,z,$):k_(X,N1.memoizedState,z,$)}function eQ(z,$,X){if(X===void 0||(r7&1073741824)!==0&&(x0&261930)===0)return z.memoizedState=$;return z.memoizedState=X,z=yB(),y0.lanes|=z,d8|=z,X}function k_(z,$,X,Y){if(h4(X,$))return X;if(g$.current!==null)return z=eQ(z,X,Y),h4(z,$)||(X4=!0),z;if((r7&42)===0||(r7&1073741824)!==0&&(x0&261930)===0)return X4=!0,z.memoizedState=X;return z=yB(),y0.lanes|=z,d8|=z,$}function eY(){j.asyncTransitions--}function y_(z,$,X,Y,Z){var J=B1.p;B1.p=J!==0&&J<j6?J:j6;var Q=j.T,q={};q._updatedFibers=new Set,j.T=q,ZG(z,!1,$,X);try{var K=Z(),B=j.S;if(B!==null&&B(q,K),K!==null&&typeof K==="object"&&typeof K.then==="function"){j.asyncTransitions++,K.then(eY,eY);var T=RW(K,Y);cX(z,$,T,Y6(z))}else cX(z,$,Y,Y6(z))}catch(k){cX(z,$,{then:function(){},status:"rejected",reason:k},Y6(z))}finally{B1.p=J,Q!==null&&q.types!==null&&(Q.types!==null&&Q.types!==q.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."),Q.types=q.types),j.T=Q,Q===null&&q._updatedFibers&&(z=q._updatedFibers.size,q._updatedFibers.clear(),10<z&&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 zG(z,$,X,Y){if(z.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var Z=V_(z).queue;LW(z),y_(z,Z,$,cz,X===null?y:function(){return C_(z),X(Y)})}function V_(z){var $=z.memoizedState;if($!==null)return $;$={memoizedState:cz,baseState:cz,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:m6,lastRenderedState:cz},next:null};var X={};return $.next={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:m6,lastRenderedState:X},next:null},z.memoizedState=$,z=z.alternate,z!==null&&(z.memoizedState=$),$}function C_(z){j.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var $=V_(z);$.next===null&&($=z.alternate.memoizedState),cX(z,$.next.queue,{},Y6(z))}function $G(){var z=uQ(!1);return z=y_.bind(null,y0,z.queue,!0,!1),D4().memoizedState=z,[!1,z]}function S_(){var z=Q$(m6)[0],$=O1().memoizedState;return[typeof z==="boolean"?z:uX(z),$]}function D_(){var z=lX(m6)[0],$=O1().memoizedState;return[typeof z==="boolean"?z:uX(z),$]}function Fz(){return f1(e5)}function XG(){var z=D4(),$=M1.identifierPrefix;if(n0){var X=c7,Y=l7;X=(Y&~(1<<32-E4(Y)-1)).toString(32)+X,$="_"+$+"R_"+X,X=zJ++,0<X&&($+="H"+X.toString(32)),$+="_"}else X=$F++,$="_"+$+"r_"+X.toString(32)+"_";return z.memoizedState=$}function YG(){return D4().memoizedState=PW.bind(null,y0)}function PW(z,$){for(var X=z.return;X!==null;){switch(X.tag){case 24:case 3:var Y=Y6(X),Z=M8(Y),J=w8(X,Z,Y);J!==null&&(X7(Y,"refresh()",z),u1(J,X,Y),jX(J,X,Y)),z=PQ(),$!==null&&$!==void 0&&J!==null&&console.error("The seed argument is not enabled outside experimental channels."),Z.payload={cache:z};return}X=X.return}}function AW(z,$,X){var Y=arguments;typeof Y[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()."),Y=Y6(z);var Z={lane:Y,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};zZ(z)?f_($,Z):(Z=_Q(z,$,Z,Y),Z!==null&&(X7(Y,"dispatch()",z),u1(Z,z,Y),m_(Z,$,Y)))}function E_(z,$,X){var Y=arguments;typeof Y[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()."),Y=Y6(z),cX(z,$,X,Y)&&X7(Y,"setState()",z)}function cX(z,$,X,Y){var Z={lane:Y,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};if(zZ(z))f_($,Z);else{var J=z.alternate;if(z.lanes===0&&(J===null||J.lanes===0)&&(J=$.lastRenderedReducer,J!==null)){var Q=j.H;j.H=u6;try{var q=$.lastRenderedState,K=J(q,X);if(Z.hasEagerState=!0,Z.eagerState=K,h4(K,q))return TY(z,$,Z,0),M1===null&&vY(),!1}catch(B){}finally{j.H=Q}}if(X=_Q(z,$,Z,Y),X!==null)return u1(X,z,Y),m_(X,$,Y),!0}return!1}function ZG(z,$,X,Y){if(j.T===null&&kz===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."),Y={lane:2,revertLane:EG(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},zZ(z)){if($)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else $=_Q(z,X,Y,2),$!==null&&(X7(2,"setOptimistic()",z),u1($,z,2))}function zZ(z){var $=z.alternate;return z===y0||$!==null&&$===y0}function f_(z,$){l$=eZ=!0;var X=z.pending;X===null?$.next=$:($.next=X.next,X.next=$),z.pending=$}function m_(z,$,X){if((X&4194048)!==0){var Y=$.lanes;Y&=z.pendingLanes,X|=Y,$.lanes=X,FX(z,X)}}function JG(z){if(z!==null&&typeof z!=="function"){var $=String(z);DO.has($)||(DO.add($),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",z))}}function QG(z,$,X,Y){var Z=z.memoizedState,J=X(Y,Z);if(z.mode&V4){$1(!0);try{J=X(Y,Z)}finally{$1(!1)}}J===void 0&&($=c($)||"Component",yO.has($)||(yO.add($),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",$))),Z=J===null||J===void 0?Z:d0({},Z,J),z.memoizedState=Z,z.lanes===0&&(z.updateQueue.baseState=Z)}function h_(z,$,X,Y,Z,J,Q){var q=z.stateNode;if(typeof q.shouldComponentUpdate==="function"){if(X=q.shouldComponentUpdate(Y,J,Q),z.mode&V4){$1(!0);try{X=q.shouldComponentUpdate(Y,J,Q)}finally{$1(!1)}}return X===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",c($)||"Component"),X}return $.prototype&&$.prototype.isPureReactComponent?!SX(X,Y)||!SX(Z,J):!0}function p_(z,$,X,Y){var Z=$.state;typeof $.componentWillReceiveProps==="function"&&$.componentWillReceiveProps(X,Y),typeof $.UNSAFE_componentWillReceiveProps==="function"&&$.UNSAFE_componentWillReceiveProps(X,Y),$.state!==Z&&(z=C(z)||"Component",AO.has(z)||(AO.add(z),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",z)),zH.enqueueReplaceState($,$.state,null))}function Nz(z,$){var X=$;if("ref"in $){X={};for(var Y in $)Y!=="ref"&&(X[Y]=$[Y])}if(z=z.defaultProps){X===$&&(X=d0({},X));for(var Z in z)X[Z]===void 0&&(X[Z]=z[Z])}return X}function j_(z){Cq(z),console.warn(`%s
|
|
104
|
+
|
|
105
|
+
%s
|
|
106
|
+
`,c$?"An error occurred in the <"+c$+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
107
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function g_(z){var $=c$?"The above error occurred in the <"+c$+"> component.":"The above error occurred in one of your React components.",X="React will try to recreate this component tree from scratch using the error boundary you provided, "+(($H||"Anonymous")+".");if(typeof z==="object"&&z!==null&&typeof z.environmentName==="string"){var Y=z.environmentName;z=[`%o
|
|
108
|
+
|
|
109
|
+
%s
|
|
110
|
+
|
|
111
|
+
%s
|
|
112
|
+
`,z,$,X].slice(0),typeof z[0]==="string"?z.splice(0,1,LL+" "+z[0],WL,vJ+Y+vJ,RL):z.splice(0,0,LL,WL,vJ+Y+vJ,RL),z.unshift(console),Y=bF.apply(console.error,z),Y()}else console.error(`%o
|
|
113
|
+
|
|
114
|
+
%s
|
|
115
|
+
|
|
116
|
+
%s
|
|
117
|
+
`,z,$,X)}function x_(z){Cq(z)}function $Z(z,$){try{c$=$.source?C($.source):null,$H=null;var X=$.value;if(j.actQueue!==null)j.thrownErrors.push(X);else{var Y=z.onUncaughtError;Y(X,{componentStack:$.stack})}}catch(Z){setTimeout(function(){throw Z})}}function u_(z,$,X){try{c$=X.source?C(X.source):null,$H=C($);var Y=z.onCaughtError;Y(X.value,{componentStack:X.stack,errorBoundary:$.tag===1?$.stateNode:null})}catch(Z){setTimeout(function(){throw Z})}}function GG(z,$,X){return X=M8(X),X.tag=oq,X.payload={element:null},X.callback=function(){o($.source,$Z,z,$)},X}function qG(z){return z=M8(z),z.tag=oq,z}function HG(z,$,X,Y){var Z=X.type.getDerivedStateFromError;if(typeof Z==="function"){var J=Y.value;z.payload=function(){return Z(J)},z.callback=function(){fK(X),o(Y.source,u_,$,X,Y)}}var Q=X.stateNode;Q!==null&&typeof Q.componentDidCatch==="function"&&(z.callback=function(){fK(X),o(Y.source,u_,$,X,Y),typeof Z!=="function"&&(i8===null?i8=new Set([this]):i8.add(this)),tR(this,Y),typeof Z==="function"||(X.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.",C(X)||"Unknown")})}function vW(z,$,X,Y,Z){if(X.flags|=32768,N7&&sX(z,Z),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if($=X.alternate,$!==null&&Z$($,X,Z,!0),n0&&(b7=!0),X=H6.current,X!==null){switch(X.tag){case 31:case 13:return A6===null?KZ():X.alternate===null&&g1===e7&&(g1=YJ),X.flags&=-257,X.flags|=65536,X.lanes=Z,Y===nZ?X.flags|=16384:($=X.updateQueue,$===null?X.updateQueue=new Set([Y]):$.add(Y),VG(z,Y,Z)),!1;case 22:return X.flags|=65536,Y===nZ?X.flags|=16384:($=X.updateQueue,$===null?($={transitions:null,markerInstances:null,retryQueue:new Set([Y])},X.updateQueue=$):(X=$.retryQueue,X===null?$.retryQueue=new Set([Y]):X.add(Y)),VG(z,Y,Z)),!1}throw Error("Unexpected Suspense handler tag ("+X.tag+"). This is a bug in React.")}return VG(z,Y,Z),KZ(),!1}if(n0)return b7=!0,$=H6.current,$!==null?(($.flags&65536)===0&&($.flags|=256),$.flags|=65536,$.lanes=Z,Y!==hq&&EX(e4(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),X))):(Y!==hq&&EX(e4(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),X)),z=z.current.alternate,z.flags|=65536,Z&=-Z,z.lanes|=Z,Y=e4(Y,X),Z=GG(z.stateNode,Y,Z),xY(z,Z),g1!==l8&&(g1=Ez)),!1;var J=e4(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),X);if(c5===null?c5=[J]:c5.push(J),g1!==l8&&(g1=Ez),$===null)return!0;Y=e4(Y,X),X=$;do{switch(X.tag){case 3:return X.flags|=65536,z=Z&-Z,X.lanes|=z,z=GG(X.stateNode,Y,z),xY(X,z),!1;case 1:if($=X.type,J=X.stateNode,(X.flags&128)===0&&(typeof $.getDerivedStateFromError==="function"||J!==null&&typeof J.componentDidCatch==="function"&&(i8===null||!i8.has(J))))return X.flags|=65536,Z&=-Z,X.lanes|=Z,Z=qG(Z),HG(Z,z,X,Y),xY(X,Z),!1}X=X.return}while(X!==null);return!1}function w4(z,$,X,Y){$.child=z===null?UO($,null,X,Y):Sz($,z.child,X,Y)}function l_(z,$,X,Y,Z){X=X.render;var J=$.ref;if("ref"in Y){var Q={};for(var q in Y)q!=="ref"&&(Q[q]=Y[q])}else Q=Y;if(Oz($),Y=EQ(z,$,X,Q,J,Z),q=mQ(),z!==null&&!X4)return hQ(z,$,Z),h7(z,$,Z);return n0&&q&&RQ($),$.flags|=1,w4(z,$,Y,Z),$.child}function c_(z,$,X,Y,Z){if(z===null){var J=X.type;if(typeof J==="function"&&!UQ(J)&&J.defaultProps===void 0&&X.compare===null)return X=Kz(J),$.tag=15,$.type=X,_G($,J),d_(z,$,X,Y,Z);return z=OQ(X.type,null,Y,$,$.mode,Z),z.ref=$.ref,z.return=$,$.child=z}if(J=z.child,!RG(z,Z)){var Q=J.memoizedProps;if(X=X.compare,X=X!==null?X:SX,X(Q,Y)&&z.ref===$.ref)return h7(z,$,Z)}return $.flags|=1,z=D7(J,Y),z.ref=$.ref,z.return=$,$.child=z}function d_(z,$,X,Y,Z){if(z!==null){var J=z.memoizedProps;if(SX(J,Y)&&z.ref===$.ref&&$.type===z.type)if(X4=!1,$.pendingProps=Y=J,RG(z,Z))(z.flags&131072)!==0&&(X4=!0);else return $.lanes=z.lanes,h7(z,$,Z)}return KG(z,$,X,Y,Z)}function a_(z,$,X,Y){var Z=Y.children,J=z!==null?z.memoizedState:null;if(z===null&&$.stateNode===null&&($.stateNode={_visibility:N5,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if(($.flags&128)!==0){if(J=J!==null?J.baseLanes|X:X,z!==null){Y=$.child=z.child;for(Z=0;Y!==null;)Z=Z|Y.lanes|Y.childLanes,Y=Y.sibling;Y=Z&~J}else Y=0,$.child=null;return i_(z,$,J,X,Y)}if((X&536870912)!==0)$.memoizedState={baseLanes:0,cachePool:null},z!==null&&fY($,J!==null?J.cachePool:null),J!==null?q_($,J):VQ($),H_($);else return Y=$.lanes=536870912,i_(z,$,J!==null?J.baseLanes|X:X,X,Y)}else J!==null?(fY($,J.cachePool),q_($,J),P8($),$.memoizedState=null):(z!==null&&fY($,null),VQ($),P8($));return w4(z,$,Z,X),$.child}function dX(z,$){return z!==null&&z.tag===22||$.stateNode!==null||($.stateNode={_visibility:N5,_pendingMarkers:null,_retryCache:null,_transitions:null}),$.sibling}function i_(z,$,X,Y,Z){var J=TQ();return J=J===null?null:{parent:e1._currentValue,pool:J},$.memoizedState={baseLanes:X,cachePool:J},z!==null&&fY($,null),VQ($),H_($),z!==null&&Z$(z,$,Y,!0),$.childLanes=Z,null}function XZ(z,$){var X=$.hidden;return X!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
118
|
+
- <Activity %s>
|
|
119
|
+
+ <Activity %s>`,X===!0?"hidden":X===!1?"hidden={false}":"hidden={...}",X?'mode="hidden"':'mode="visible"'),$=ZZ({mode:$.mode,children:$.children},z.mode),$.ref=z.ref,z.child=$,$.return=z,$}function o_(z,$,X){return Sz($,z.child,null,X),z=XZ($,$.pendingProps),z.flags|=2,X6($),$.memoizedState=null,z}function TW(z,$,X){var Y=$.pendingProps,Z=($.flags&128)!==0;if($.flags&=-129,z===null){if(n0){if(Y.mode==="hidden")return z=XZ($,Y),$.lanes=536870912,dX(null,z);if(SQ($),(z=y1)?(X=NU(z,b6),X=X!==null&&X.data===gz?X:null,X!==null&&(Y={dehydrated:X,treeContext:gK(),retryLane:536870912,hydrationErrors:null},$.memoizedState=Y,Y=pK(X),Y.return=$,$.child=Y,A4=$,y1=null)):X=null,X===null)throw yY($,z),R8($);return $.lanes=536870912,null}return XZ($,Y)}var J=z.memoizedState;if(J!==null){var Q=J.dehydrated;if(SQ($),Z)if($.flags&256)$.flags&=-257,$=o_(z,$,X);else if($.memoizedState!==null)$.child=z.child,$.flags|=128,$=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(uK(),(X&536870912)!==0&&HZ($),X4||Z$(z,$,X,!1),Z=(X&z.childLanes)!==0,X4||Z){if(Y=M1,Y!==null&&(Q=H8(Y,X),Q!==0&&Q!==J.retryLane))throw J.retryLane=Q,k4(z,Q),u1(Y,z,Q),XH;KZ(),$=o_(z,$,X)}else z=J.treeContext,y1=Z6(Q.nextSibling),A4=$,n0=!0,m8=null,b7=!1,q6=null,b6=!1,z!==null&&xK($,z),$=XZ($,Y),$.flags|=4096;return $}return J=z.child,Y={mode:Y.mode,children:Y.children},(X&536870912)!==0&&(X&z.lanes)!==0&&HZ($),z=D7(J,Y),z.ref=$.ref,$.child=z,z.return=$,z}function YZ(z,$){var X=$.ref;if(X===null)z!==null&&z.ref!==null&&($.flags|=4194816);else{if(typeof X!=="function"&&typeof X!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(z===null||z.ref!==X)$.flags|=4194816}}function KG(z,$,X,Y,Z){if(X.prototype&&typeof X.prototype.render==="function"){var J=c(X)||"Unknown";EO[J]||(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.",J,J),EO[J]=!0)}if($.mode&V4&&x6.recordLegacyContextWarning($,null),z===null&&(_G($,$.type),X.contextTypes&&(J=c(X)||"Unknown",mO[J]||(mO[J]=!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)",J)))),Oz($),X=EQ(z,$,X,Y,void 0,Z),Y=mQ(),z!==null&&!X4)return hQ(z,$,Z),h7(z,$,Z);return n0&&Y&&RQ($),$.flags|=1,w4(z,$,X,Z),$.child}function r_(z,$,X,Y,Z,J){if(Oz($),t7=-1,h5=z!==null&&z.type!==$.type,$.updateQueue=null,X=fQ($,Y,X,Z),K_(z,$),Y=mQ(),z!==null&&!X4)return hQ(z,$,J),h7(z,$,J);return n0&&Y&&RQ($),$.flags|=1,w4(z,$,X,J),$.child}function n_(z,$,X,Y,Z){switch(M($)){case!1:var J=$.stateNode,Q=new $.type($.memoizedProps,J.context).state;J.updater.enqueueSetState(J,Q,null);break;case!0:$.flags|=128,$.flags|=65536,J=Error("Simulated error coming from DevTools");var q=Z&-Z;if($.lanes|=q,Q=M1,Q===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");q=qG(q),HG(q,Q,$,e4(J,$)),xY($,q)}if(Oz($),$.stateNode===null){if(Q=f8,J=X.contextType,"contextType"in X&&J!==null&&(J===void 0||J.$$typeof!==W7)&&!SO.has(X)&&(SO.add(X),q=J===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 J!=="object"?" However, it is set to a "+typeof J+".":J.$$typeof===Yq?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(J).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",c(X)||"Component",q)),typeof J==="object"&&J!==null&&(Q=f1(J)),J=new X(Y,Q),$.mode&V4){$1(!0);try{J=new X(Y,Q)}finally{$1(!1)}}if(Q=$.memoizedState=J.state!==null&&J.state!==void 0?J.state:null,J.updater=zH,$.stateNode=J,J._reactInternals=$,J._reactInternalInstance=PO,typeof X.getDerivedStateFromProps==="function"&&Q===null&&(Q=c(X)||"Component",vO.has(Q)||(vO.add(Q),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.",Q,J.state===null?"null":"undefined",Q))),typeof X.getDerivedStateFromProps==="function"||typeof J.getSnapshotBeforeUpdate==="function"){var K=q=Q=null;if(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0?Q="componentWillMount":typeof J.UNSAFE_componentWillMount==="function"&&(Q="UNSAFE_componentWillMount"),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0?q="componentWillReceiveProps":typeof J.UNSAFE_componentWillReceiveProps==="function"&&(q="UNSAFE_componentWillReceiveProps"),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0?K="componentWillUpdate":typeof J.UNSAFE_componentWillUpdate==="function"&&(K="UNSAFE_componentWillUpdate"),Q!==null||q!==null||K!==null){J=c(X)||"Component";var B=typeof X.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";IO.has(J)||(IO.add(J),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
120
|
+
|
|
121
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
122
|
+
|
|
123
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
124
|
+
https://react.dev/link/unsafe-component-lifecycles`,J,B,Q!==null?`
|
|
125
|
+
`+Q:"",q!==null?`
|
|
126
|
+
`+q:"",K!==null?`
|
|
127
|
+
`+K:""))}}J=$.stateNode,Q=c(X)||"Component",J.render||(X.prototype&&typeof X.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",Q):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",Q)),!J.getInitialState||J.getInitialState.isReactClassApproved||J.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?",Q),J.getDefaultProps&&!J.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.",Q),J.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",Q),X.childContextTypes&&!CO.has(X)&&(CO.add(X),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",Q)),X.contextTypes&&!VO.has(X)&&(VO.add(X),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)",Q)),typeof J.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.",Q),X.prototype&&X.prototype.isPureReactComponent&&typeof J.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.",c(X)||"A pure component"),typeof J.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",Q),typeof J.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().",Q),typeof J.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",Q),typeof J.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",Q),q=J.props!==Y,J.props!==void 0&&q&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",Q),J.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.",Q,Q),typeof J.getSnapshotBeforeUpdate!=="function"||typeof J.componentDidUpdate==="function"||TO.has(X)||(TO.add(X),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",c(X))),typeof J.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Q),typeof J.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Q),typeof X.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",Q),(q=J.state)&&(typeof q!=="object"||q4(q))&&console.error("%s.state: must be set to an object or null",Q),typeof J.getChildContext==="function"&&typeof X.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",Q),J=$.stateNode,J.props=Y,J.state=$.memoizedState,J.refs={},kQ($),Q=X.contextType,J.context=typeof Q==="object"&&Q!==null?f1(Q):f8,J.state===Y&&(Q=c(X)||"Component",kO.has(Q)||(kO.add(Q),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.",Q))),$.mode&V4&&x6.recordLegacyContextWarning($,J),x6.recordUnsafeLifecycleWarnings($,J),J.state=$.memoizedState,Q=X.getDerivedStateFromProps,typeof Q==="function"&&(QG($,X,Q,Y),J.state=$.memoizedState),typeof X.getDerivedStateFromProps==="function"||typeof J.getSnapshotBeforeUpdate==="function"||typeof J.UNSAFE_componentWillMount!=="function"&&typeof J.componentWillMount!=="function"||(Q=J.state,typeof J.componentWillMount==="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount==="function"&&J.UNSAFE_componentWillMount(),Q!==J.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",C($)||"Component"),zH.enqueueReplaceState(J,J.state,null)),xX($,Y,J,Z),gX(),J.state=$.memoizedState),typeof J.componentDidMount==="function"&&($.flags|=4194308),($.mode&g6)!==T0&&($.flags|=134217728),J=!0}else if(z===null){J=$.stateNode;var T=$.memoizedProps;q=Nz(X,T),J.props=q;var k=J.context;K=X.contextType,Q=f8,typeof K==="object"&&K!==null&&(Q=f1(K)),B=X.getDerivedStateFromProps,K=typeof B==="function"||typeof J.getSnapshotBeforeUpdate==="function",T=$.pendingProps!==T,K||typeof J.UNSAFE_componentWillReceiveProps!=="function"&&typeof J.componentWillReceiveProps!=="function"||(T||k!==Q)&&p_($,J,Y,Q),u8=!1;var b=$.memoizedState;J.state=b,xX($,Y,J,Z),gX(),k=$.memoizedState,T||b!==k||u8?(typeof B==="function"&&(QG($,X,B,Y),k=$.memoizedState),(q=u8||h_($,X,q,Y,b,k,Q))?(K||typeof J.UNSAFE_componentWillMount!=="function"&&typeof J.componentWillMount!=="function"||(typeof J.componentWillMount==="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount==="function"&&J.UNSAFE_componentWillMount()),typeof J.componentDidMount==="function"&&($.flags|=4194308),($.mode&g6)!==T0&&($.flags|=134217728)):(typeof J.componentDidMount==="function"&&($.flags|=4194308),($.mode&g6)!==T0&&($.flags|=134217728),$.memoizedProps=Y,$.memoizedState=k),J.props=Y,J.state=k,J.context=Q,J=q):(typeof J.componentDidMount==="function"&&($.flags|=4194308),($.mode&g6)!==T0&&($.flags|=134217728),J=!1)}else{J=$.stateNode,yQ(z,$),Q=$.memoizedProps,K=Nz(X,Q),J.props=K,B=$.pendingProps,b=J.context,k=X.contextType,q=f8,typeof k==="object"&&k!==null&&(q=f1(k)),T=X.getDerivedStateFromProps,(k=typeof T==="function"||typeof J.getSnapshotBeforeUpdate==="function")||typeof J.UNSAFE_componentWillReceiveProps!=="function"&&typeof J.componentWillReceiveProps!=="function"||(Q!==B||b!==q)&&p_($,J,Y,q),u8=!1,b=$.memoizedState,J.state=b,xX($,Y,J,Z),gX();var D=$.memoizedState;Q!==B||b!==D||u8||z!==null&&z.dependencies!==null&&CY(z.dependencies)?(typeof T==="function"&&(QG($,X,T,Y),D=$.memoizedState),(K=u8||h_($,X,K,Y,b,D,q)||z!==null&&z.dependencies!==null&&CY(z.dependencies))?(k||typeof J.UNSAFE_componentWillUpdate!=="function"&&typeof J.componentWillUpdate!=="function"||(typeof J.componentWillUpdate==="function"&&J.componentWillUpdate(Y,D,q),typeof J.UNSAFE_componentWillUpdate==="function"&&J.UNSAFE_componentWillUpdate(Y,D,q)),typeof J.componentDidUpdate==="function"&&($.flags|=4),typeof J.getSnapshotBeforeUpdate==="function"&&($.flags|=1024)):(typeof J.componentDidUpdate!=="function"||Q===z.memoizedProps&&b===z.memoizedState||($.flags|=4),typeof J.getSnapshotBeforeUpdate!=="function"||Q===z.memoizedProps&&b===z.memoizedState||($.flags|=1024),$.memoizedProps=Y,$.memoizedState=D),J.props=Y,J.state=D,J.context=q,J=K):(typeof J.componentDidUpdate!=="function"||Q===z.memoizedProps&&b===z.memoizedState||($.flags|=4),typeof J.getSnapshotBeforeUpdate!=="function"||Q===z.memoizedProps&&b===z.memoizedState||($.flags|=1024),J=!1)}if(q=J,YZ(z,$),Q=($.flags&128)!==0,q||Q){if(q=$.stateNode,n1($),Q&&typeof X.getDerivedStateFromError!=="function")X=null,p4=-1;else if(X=e9(q),$.mode&V4){$1(!0);try{e9(q)}finally{$1(!1)}}$.flags|=1,z!==null&&Q?($.child=Sz($,z.child,null,Z),$.child=Sz($,null,X,Z)):w4(z,$,X,Z),$.memoizedState=q.state,z=$.child}else z=h7(z,$,Z);return Z=$.stateNode,J&&Z.props!==Y&&(d$||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",C($)||"a component"),d$=!0),z}function t_(z,$,X,Y){return Uz(),$.flags|=256,w4(z,$,X,Y),$.child}function _G(z,$){$&&$.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
128
|
+
%s.childContextTypes = ...`,$.displayName||$.name||"Component"),typeof $.getDerivedStateFromProps==="function"&&(z=c($)||"Unknown",hO[z]||(console.error("%s: Function components do not support getDerivedStateFromProps.",z),hO[z]=!0)),typeof $.contextType==="object"&&$.contextType!==null&&($=c($)||"Unknown",fO[$]||(console.error("%s: Function components do not support contextType.",$),fO[$]=!0))}function BG(z){return{baseLanes:z,cachePool:rK()}}function UG(z,$,X){return z=z!==null?z.childLanes&~X:0,$&&(z|=r4),z}function s_(z,$,X){var Y,Z=$.pendingProps;N($)&&($.flags|=128);var J=!1,Q=($.flags&128)!==0;if((Y=Q)||(Y=z!==null&&z.memoizedState===null?!1:(t1.current&f5)!==0),Y&&(J=!0,$.flags&=-129),Y=($.flags&32)!==0,$.flags&=-33,z===null){if(n0){if(J?b8($):P8($),(z=y1)?(X=NU(z,b6),X=X!==null&&X.data!==gz?X:null,X!==null&&(Y={dehydrated:X,treeContext:gK(),retryLane:536870912,hydrationErrors:null},$.memoizedState=Y,Y=pK(X),Y.return=$,$.child=Y,A4=$,y1=null)):X=null,X===null)throw yY($,z),R8($);return aG(X)?$.lanes=32:$.lanes=536870912,null}var q=Z.children;if(Z=Z.fallback,J){P8($);var K=$.mode;return q=ZZ({mode:"hidden",children:q},K),Z=_z(Z,K,X,null),q.return=$,Z.return=$,q.sibling=Z,$.child=q,Z=$.child,Z.memoizedState=BG(X),Z.childLanes=UG(z,Y,X),$.memoizedState=YH,dX(null,Z)}return b8($),OG($,q)}var B=z.memoizedState;if(B!==null){var T=B.dehydrated;if(T!==null){if(Q)$.flags&256?(b8($),$.flags&=-257,$=LG(z,$,X)):$.memoizedState!==null?(P8($),$.child=z.child,$.flags|=128,$=null):(P8($),q=Z.fallback,K=$.mode,Z=ZZ({mode:"visible",children:Z.children},K),q=_z(q,K,X,null),q.flags|=2,Z.return=$,q.return=$,Z.sibling=q,$.child=Z,Sz($,z.child,null,X),Z=$.child,Z.memoizedState=BG(X),Z.childLanes=UG(z,Y,X),$.memoizedState=YH,$=dX(null,Z));else if(b8($),uK(),(X&536870912)!==0&&HZ($),aG(T)){if(Y=T.nextSibling&&T.nextSibling.dataset,Y){q=Y.dgst;var k=Y.msg;K=Y.stck;var b=Y.cstck}J=k,Y=q,Z=K,T=b,q=J,K=T,q=q?Error(q):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),q.stack=Z||"",q.digest=Y,Y=K===void 0?null:K,Z={value:q,source:null,stack:Y},typeof Y==="string"&&mq.set(q,Z),EX(Z),$=LG(z,$,X)}else if(X4||Z$(z,$,X,!1),Y=(X&z.childLanes)!==0,X4||Y){if(Y=M1,Y!==null&&(Z=H8(Y,X),Z!==0&&Z!==B.retryLane))throw B.retryLane=Z,k4(z,Z),u1(Y,z,Z),XH;dG(T)||KZ(),$=LG(z,$,X)}else dG(T)?($.flags|=192,$.child=z.child,$=null):(z=B.treeContext,y1=Z6(T.nextSibling),A4=$,n0=!0,m8=null,b7=!1,q6=null,b6=!1,z!==null&&xK($,z),$=OG($,Z.children),$.flags|=4096);return $}}if(J)return P8($),q=Z.fallback,K=$.mode,b=z.child,T=b.sibling,Z=D7(b,{mode:"hidden",children:Z.children}),Z.subtreeFlags=b.subtreeFlags&65011712,T!==null?q=D7(T,q):(q=_z(q,K,X,null),q.flags|=2),q.return=$,Z.return=$,Z.sibling=q,$.child=Z,dX(null,Z),Z=$.child,q=z.child.memoizedState,q===null?q=BG(X):(K=q.cachePool,K!==null?(b=e1._currentValue,K=K.parent!==b?{parent:b,pool:b}:K):K=rK(),q={baseLanes:q.baseLanes|X,cachePool:K}),Z.memoizedState=q,Z.childLanes=UG(z,Y,X),$.memoizedState=YH,dX(z.child,Z);return B!==null&&(X&62914560)===X&&(X&z.lanes)!==0&&HZ($),b8($),X=z.child,z=X.sibling,X=D7(X,{mode:"visible",children:Z.children}),X.return=$,X.sibling=null,z!==null&&(Y=$.deletions,Y===null?($.deletions=[z],$.flags|=16):Y.push(z)),$.child=X,$.memoizedState=null,X}function OG(z,$){return $=ZZ({mode:"visible",children:$},z.mode),$.return=z,z.child=$}function ZZ(z,$){return z=P(22,z,null,$),z.lanes=0,z}function LG(z,$,X){return Sz($,z.child,null,X),z=OG($,$.pendingProps.children),z.flags|=2,$.memoizedState=null,z}function e_(z,$,X){z.lanes|=$;var Y=z.alternate;Y!==null&&(Y.lanes|=$),wQ(z.return,$,X)}function WG(z,$,X,Y,Z,J){var Q=z.memoizedState;Q===null?z.memoizedState={isBackwards:$,rendering:null,renderingStartTime:0,last:Y,tail:X,tailMode:Z,treeForkCount:J}:(Q.isBackwards=$,Q.rendering=null,Q.renderingStartTime=0,Q.last=Y,Q.tail=X,Q.tailMode=Z,Q.treeForkCount=J)}function zB(z,$,X){var Y=$.pendingProps,Z=Y.revealOrder,J=Y.tail,Q=Y.children,q=t1.current;if((Y=(q&f5)!==0)?(q=q&x$|f5,$.flags|=128):q&=x$,u(t1,q,$),q=Z==null?"null":Z,Z!=="forwards"&&Z!=="unstable_legacy-backwards"&&Z!=="together"&&Z!=="independent"&&!pO[q])if(pO[q]=!0,Z==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(Z==="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 Z==="string")switch(Z.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.',Z,Z.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.',Z,Z.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z);if(q=J==null?"null":J,!XJ[q])if(J==null){if(Z==="forwards"||Z==="backwards"||Z==="unstable_legacy-backwards")XJ[q]=!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 J!=="visible"&&J!=="collapsed"&&J!=="hidden"?(XJ[q]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',J)):Z!=="forwards"&&Z!=="backwards"&&Z!=="unstable_legacy-backwards"&&(XJ[q]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',J));z:if((Z==="forwards"||Z==="backwards"||Z==="unstable_legacy-backwards")&&Q!==void 0&&Q!==null&&Q!==!1)if(q4(Q)){for(q=0;q<Q.length;q++)if(!J_(Q[q],q))break z}else if(q=B0(Q),typeof q==="function"){if(q=q.call(Q))for(var K=q.next(),B=0;!K.done;K=q.next()){if(!J_(K.value,B))break z;B++}}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?',Z);if(w4(z,$,Q,X),n0?(W8(),Q=M5):Q=0,!Y&&z!==null&&(z.flags&128)!==0)z:for(z=$.child;z!==null;){if(z.tag===13)z.memoizedState!==null&&e_(z,X,$);else if(z.tag===19)e_(z,X,$);else if(z.child!==null){z.child.return=z,z=z.child;continue}if(z===$)break z;for(;z.sibling===null;){if(z.return===null||z.return===$)break z;z=z.return}z.sibling.return=z.return,z=z.sibling}switch(Z){case"forwards":X=$.child;for(Z=null;X!==null;)z=X.alternate,z!==null&&uY(z)===null&&(Z=X),X=X.sibling;X=Z,X===null?(Z=$.child,$.child=null):(Z=X.sibling,X.sibling=null),WG($,!1,Z,X,J,Q);break;case"backwards":case"unstable_legacy-backwards":X=null,Z=$.child;for($.child=null;Z!==null;){if(z=Z.alternate,z!==null&&uY(z)===null){$.child=Z;break}z=Z.sibling,Z.sibling=X,X=Z,Z=z}WG($,!0,X,null,J,Q);break;case"together":WG($,!1,null,null,void 0,Q);break;default:$.memoizedState=null}return $.child}function h7(z,$,X){if(z!==null&&($.dependencies=z.dependencies),p4=-1,d8|=$.lanes,(X&$.childLanes)===0)if(z!==null){if(Z$(z,$,X,!1),(X&$.childLanes)===0)return null}else return null;if(z!==null&&$.child!==z.child)throw Error("Resuming work not yet implemented.");if($.child!==null){z=$.child,X=D7(z,z.pendingProps),$.child=X;for(X.return=$;z.sibling!==null;)z=z.sibling,X=X.sibling=D7(z,z.pendingProps),X.return=$;X.sibling=null}return $.child}function RG(z,$){if((z.lanes&$)!==0)return!0;return z=z.dependencies,z!==null&&CY(z)?!0:!1}function IW(z,$,X){switch($.tag){case 3:t($,$.stateNode.containerInfo),F8($,e1,z.memoizedState.cache),Uz();break;case 27:case 5:h0($);break;case 4:t($,$.stateNode.containerInfo);break;case 10:F8($,$.type,$.memoizedProps.value);break;case 12:(X&$.childLanes)!==0&&($.flags|=4),$.flags|=2048;var Y=$.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if($.memoizedState!==null)return $.flags|=128,SQ($),null;break;case 13:if(Y=$.memoizedState,Y!==null){if(Y.dehydrated!==null)return b8($),$.flags|=128,null;if((X&$.child.childLanes)!==0)return s_(z,$,X);return b8($),z=h7(z,$,X),z!==null?z.sibling:null}b8($);break;case 19:var Z=(z.flags&128)!==0;if(Y=(X&$.childLanes)!==0,Y||(Z$(z,$,X,!1),Y=(X&$.childLanes)!==0),Z){if(Y)return zB(z,$,X);$.flags|=128}if(Z=$.memoizedState,Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),u(t1,t1.current,$),Y)break;else return null;case 22:return $.lanes=0,a_(z,$,X,$.pendingProps);case 24:F8($,e1,z.memoizedState.cache)}return h7(z,$,X)}function FG(z,$,X){if($._debugNeedsRemount&&z!==null){X=OQ($.type,$.key,$.pendingProps,$._debugOwner||null,$.mode,$.lanes),X._debugStack=$._debugStack,X._debugTask=$._debugTask;var Y=$.return;if(Y===null)throw Error("Cannot swap the root fiber.");if(z.alternate=null,$.alternate=null,X.index=$.index,X.sibling=$.sibling,X.return=$.return,X.ref=$.ref,X._debugInfo=$._debugInfo,$===Y.child)Y.child=X;else{var Z=Y.child;if(Z===null)throw Error("Expected parent to have a child.");for(;Z.sibling!==$;)if(Z=Z.sibling,Z===null)throw Error("Expected to find the previous sibling.");Z.sibling=X}return $=Y.deletions,$===null?(Y.deletions=[z],Y.flags|=16):$.push(z),X.flags|=2,X}if(z!==null)if(z.memoizedProps!==$.pendingProps||$.type!==z.type)X4=!0;else{if(!RG(z,X)&&($.flags&128)===0)return X4=!1,IW(z,$,X);X4=(z.flags&131072)!==0?!0:!1}else{if(X4=!1,Y=n0)W8(),Y=($.flags&1048576)!==0;Y&&(Y=$.index,W8(),jK($,M5,Y))}switch($.lanes=0,$.tag){case 16:z:if(Y=$.pendingProps,z=N8($.elementType),$.type=z,typeof z==="function")UQ(z)?(Y=Nz(z,Y),$.tag=1,$.type=z=Kz(z),$=n_(null,$,z,Y,X)):($.tag=0,_G($,z),$.type=z=Kz(z),$=KG(null,$,z,Y,X));else{if(z!==void 0&&z!==null){if(Z=z.$$typeof,Z===G5){$.tag=11,$.type=z=BQ(z),$=l_(null,$,z,Y,X);break z}else if(Z===AZ){$.tag=14,$=c_(null,$,z,Y,X);break z}}throw $="",z!==null&&typeof z==="object"&&z.$$typeof===J6&&($=" Did you wrap a component in React.lazy() more than once?"),X=c(z)||z,Error("Element type is invalid. Received a promise that resolves to: "+X+". Lazy element type must resolve to a class or function."+$)}return $;case 0:return KG(z,$,$.type,$.pendingProps,X);case 1:return Y=$.type,Z=Nz(Y,$.pendingProps),n_(z,$,Y,Z,X);case 3:z:{if(t($,$.stateNode.containerInfo),z===null)throw Error("Should have a current fiber. This is a bug in React.");Y=$.pendingProps;var J=$.memoizedState;Z=J.element,yQ(z,$),xX($,Y,null,X);var Q=$.memoizedState;if(Y=Q.cache,F8($,e1,Y),Y!==J.cache&&bQ($,[e1],X,!0),gX(),Y=Q.element,J.isDehydrated)if(J={element:Y,isDehydrated:!1,cache:Q.cache},$.updateQueue.baseState=J,$.memoizedState=J,$.flags&256){$=t_(z,$,Y,X);break z}else if(Y!==Z){Z=e4(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),$),EX(Z),$=t_(z,$,Y,X);break z}else{switch(z=$.stateNode.containerInfo,z.nodeType){case 9:z=z.body;break;default:z=z.nodeName==="HTML"?z.ownerDocument.body:z}y1=Z6(z.firstChild),A4=$,n0=!0,m8=null,b7=!1,q6=null,b6=!0,X=UO($,null,Y,X);for($.child=X;X;)X.flags=X.flags&-3|4096,X=X.sibling}else{if(Uz(),Y===Z){$=h7(z,$,X);break z}w4(z,$,Y,X)}$=$.child}return $;case 26:return YZ(z,$),z===null?(X=vU($.type,null,$.pendingProps,null))?$.memoizedState=X:n0||(X=$.type,z=$.pendingProps,Y=q0(y8.current),Y=OZ(Y).createElement(X),Y[P4]=$,Y[f4]=z,b4(Y,X,z),a1(Y),$.stateNode=Y):$.memoizedState=vU($.type,z.memoizedProps,$.pendingProps,z.memoizedState),null;case 27:return h0($),z===null&&n0&&(Y=q0(y8.current),Z=K0(),Y=$.stateNode=PU($.type,$.pendingProps,Y,Z,!1),b7||(Z=_U(Y,$.type,$.pendingProps,Z),Z!==null&&(Bz($,0).serverProps=Z)),A4=$,b6=!0,Z=y1,I8($.type)?(TH=Z,y1=Z6(Y.firstChild)):y1=Z),w4(z,$,$.pendingProps.children,X),YZ(z,$),z===null&&($.flags|=4194304),$.child;case 5:return z===null&&n0&&(J=K0(),Y=ZQ($.type,J.ancestorInfo),Z=y1,(Q=!Z)||(Q=L3(Z,$.type,$.pendingProps,b6),Q!==null?($.stateNode=Q,b7||(J=_U(Q,$.type,$.pendingProps,J),J!==null&&(Bz($,0).serverProps=J)),A4=$,y1=Z6(Q.firstChild),b6=!1,J=!0):J=!1,Q=!J),Q&&(Y&&yY($,Z),R8($))),h0($),Z=$.type,J=$.pendingProps,Q=z!==null?z.memoizedProps:null,Y=J.children,lG(Z,J)?Y=null:Q!==null&&lG(Z,Q)&&($.flags|=32),$.memoizedState!==null&&(Z=EQ(z,$,NW,null,null,X),e5._currentValue=Z),YZ(z,$),w4(z,$,Y,X),$.child;case 6:return z===null&&n0&&(X=$.pendingProps,z=K0(),Y=z.ancestorInfo.current,X=Y!=null?NY(X,Y.tag,z.ancestorInfo.implicitRootScope):!0,z=y1,(Y=!z)||(Y=W3(z,$.pendingProps,b6),Y!==null?($.stateNode=Y,A4=$,y1=null,Y=!0):Y=!1,Y=!Y),Y&&(X&&yY($,z),R8($))),null;case 13:return s_(z,$,X);case 4:return t($,$.stateNode.containerInfo),Y=$.pendingProps,z===null?$.child=Sz($,null,Y,X):w4(z,$,Y,X),$.child;case 11:return l_(z,$,$.type,$.pendingProps,X);case 7:return w4(z,$,$.pendingProps,X),$.child;case 8:return w4(z,$,$.pendingProps.children,X),$.child;case 12:return $.flags|=4,$.flags|=2048,Y=$.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,w4(z,$,$.pendingProps.children,X),$.child;case 10:return Y=$.type,Z=$.pendingProps,J=Z.value,"value"in Z||jO||(jO=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),F8($,Y,J),w4(z,$,Z.children,X),$.child;case 9:return Z=$.type._context,Y=$.pendingProps.children,typeof Y!=="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."),Oz($),Z=f1(Z),Y=cq(Y,Z,void 0),$.flags|=1,w4(z,$,Y,X),$.child;case 14:return c_(z,$,$.type,$.pendingProps,X);case 15:return d_(z,$,$.type,$.pendingProps,X);case 19:return zB(z,$,X);case 31:return TW(z,$,X);case 22:return a_(z,$,X,$.pendingProps);case 24:return Oz($),Y=f1(e1),z===null?(Z=TQ(),Z===null&&(Z=M1,J=PQ(),Z.pooledCache=J,Lz(J),J!==null&&(Z.pooledCacheLanes|=X),Z=J),$.memoizedState={parent:Y,cache:Z},kQ($),F8($,e1,Z)):((z.lanes&X)!==0&&(yQ(z,$),xX($,null,null,X),gX()),Z=z.memoizedState,J=$.memoizedState,Z.parent!==Y?(Z={parent:Y,cache:Y},$.memoizedState=Z,$.lanes===0&&($.memoizedState=$.updateQueue.baseState=Z),F8($,e1,Y)):(Y=J.cache,F8($,e1,Y),Y!==Z.cache&&bQ($,[e1],X,!0))),w4(z,$,$.pendingProps.children,X),$.child;case 29:throw $.pendingProps}throw Error("Unknown unit of work tag ("+$.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function p7(z){z.flags|=4}function NG(z,$,X,Y,Z){if($=(z.mode&iR)!==T0)$=!1;if($){if(z.flags|=16777216,(Z&335544128)===Z)if(z.stateNode.complete)z.flags|=8192;else if(DB())z.flags|=8192;else throw Cz=nZ,aq}else z.flags&=-16777217}function $B(z,$){if($.type!=="stylesheet"||($.state.loading&I6)!==lz)z.flags&=-16777217;else if(z.flags|=16777216,!VU($))if(DB())z.flags|=8192;else throw Cz=nZ,aq}function JZ(z,$){$!==null&&(z.flags|=4),z.flags&16384&&($=z.tag!==22?n6():536870912,z.lanes|=$,hz|=$)}function aX(z,$){if(!n0)switch(z.tailMode){case"hidden":$=z.tail;for(var X=null;$!==null;)$.alternate!==null&&(X=$),$=$.sibling;X===null?z.tail=null:X.sibling=null;break;case"collapsed":X=z.tail;for(var Y=null;X!==null;)X.alternate!==null&&(Y=X),X=X.sibling;Y===null?$||z.tail===null?z.tail=null:z.tail.sibling=null:Y.sibling=null}}function b1(z){var $=z.alternate!==null&&z.alternate.child===z.child,X=0,Y=0;if($)if((z.mode&j0)!==T0){for(var{selfBaseDuration:Z,child:J}=z;J!==null;)X|=J.lanes|J.childLanes,Y|=J.subtreeFlags&65011712,Y|=J.flags&65011712,Z+=J.treeBaseDuration,J=J.sibling;z.treeBaseDuration=Z}else for(Z=z.child;Z!==null;)X|=Z.lanes|Z.childLanes,Y|=Z.subtreeFlags&65011712,Y|=Z.flags&65011712,Z.return=z,Z=Z.sibling;else if((z.mode&j0)!==T0){Z=z.actualDuration,J=z.selfBaseDuration;for(var Q=z.child;Q!==null;)X|=Q.lanes|Q.childLanes,Y|=Q.subtreeFlags,Y|=Q.flags,Z+=Q.actualDuration,J+=Q.treeBaseDuration,Q=Q.sibling;z.actualDuration=Z,z.treeBaseDuration=J}else for(Z=z.child;Z!==null;)X|=Z.lanes|Z.childLanes,Y|=Z.subtreeFlags,Y|=Z.flags,Z.return=z,Z=Z.sibling;return z.subtreeFlags|=Y,z.childLanes=X,$}function kW(z,$,X){var Y=$.pendingProps;switch(FQ($),$.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return b1($),null;case 1:return b1($),null;case 3:if(X=$.stateNode,Y=null,z!==null&&(Y=z.memoizedState.cache),$.memoizedState.cache!==Y&&($.flags|=2048),f7(e1,$),Z0($),X.pendingContext&&(X.context=X.pendingContext,X.pendingContext=null),z===null||z.child===null)Y$($)?(MQ(),p7($)):z===null||z.memoizedState.isDehydrated&&($.flags&256)===0||($.flags|=1024,NQ());return b1($),null;case 26:var{type:Z,memoizedState:J}=$;return z===null?(p7($),J!==null?(b1($),$B($,J)):(b1($),NG($,Z,null,Y,X))):J?J!==z.memoizedState?(p7($),b1($),$B($,J)):(b1($),$.flags&=-16777217):(z=z.memoizedProps,z!==Y&&p7($),b1($),NG($,Z,z,Y,X)),null;case 27:if(f0($),X=q0(y8.current),Z=$.type,z!==null&&$.stateNode!=null)z.memoizedProps!==Y&&p7($);else{if(!Y){if($.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 b1($),null}z=K0(),Y$($)?lK($,z):(z=PU(Z,Y,X,z,!0),$.stateNode=z,p7($))}return b1($),null;case 5:if(f0($),Z=$.type,z!==null&&$.stateNode!=null)z.memoizedProps!==Y&&p7($);else{if(!Y){if($.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 b1($),null}var Q=K0();if(Y$($))lK($,Q);else{switch(J=q0(y8.current),ZQ(Z,Q.ancestorInfo),Q=Q.context,J=OZ(J),Q){case e$:J=J.createElementNS(P$,Z);break;case bJ:J=J.createElementNS(CZ,Z);break;default:switch(Z){case"svg":J=J.createElementNS(P$,Z);break;case"math":J=J.createElementNS(CZ,Z);break;case"script":J=J.createElement("div"),J.innerHTML="<script></script>",J=J.removeChild(J.firstChild);break;case"select":J=typeof Y.is==="string"?J.createElement("select",{is:Y.is}):J.createElement("select"),Y.multiple?J.multiple=!0:Y.size&&(J.size=Y.size);break;default:J=typeof Y.is==="string"?J.createElement(Z,{is:Y.is}):J.createElement(Z),Z.indexOf("-")===-1&&(Z!==Z.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",Z),Object.prototype.toString.call(J)!=="[object HTMLUnknownElement]"||p6.call(HL,Z)||(HL[Z]=!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.",Z)))}}J[P4]=$,J[f4]=Y;z:for(Q=$.child;Q!==null;){if(Q.tag===5||Q.tag===6)J.appendChild(Q.stateNode);else if(Q.tag!==4&&Q.tag!==27&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===$)break z;for(;Q.sibling===null;){if(Q.return===null||Q.return===$)break z;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}$.stateNode=J;z:switch(b4(J,Z,Y),Z){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break z;case"img":Y=!0;break z;default:Y=!1}Y&&p7($)}}return b1($),NG($,$.type,z===null?null:z.memoizedProps,$.pendingProps,X),null;case 6:if(z&&$.stateNode!=null)z.memoizedProps!==Y&&p7($);else{if(typeof Y!=="string"&&$.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(z=q0(y8.current),X=K0(),Y$($)){if(z=$.stateNode,X=$.memoizedProps,Z=!b7,Y=null,J=A4,J!==null)switch(J.tag){case 3:Z&&(Z=wU(z,X,Y),Z!==null&&(Bz($,0).serverProps=Z));break;case 27:case 5:Y=J.memoizedProps,Z&&(Z=wU(z,X,Y),Z!==null&&(Bz($,0).serverProps=Z))}z[P4]=$,z=z.nodeValue===X||Y!==null&&Y.suppressHydrationWarning===!0||QU(z.nodeValue,X)?!0:!1,z||R8($,!0)}else Z=X.ancestorInfo.current,Z!=null&&NY(Y,Z.tag,X.ancestorInfo.implicitRootScope),z=OZ(z).createTextNode(Y),z[P4]=$,$.stateNode=z}return b1($),null;case 31:if(X=$.memoizedState,z===null||z.memoizedState!==null){if(Y=Y$($),X!==null){if(z===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(z=$.memoizedState,z=z!==null?z.dehydrated:null,!z)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");z[P4]=$,b1($),($.mode&j0)!==T0&&X!==null&&(z=$.child,z!==null&&($.treeBaseDuration-=z.treeBaseDuration))}else MQ(),Uz(),($.flags&128)===0&&(X=$.memoizedState=null),$.flags|=4,b1($),($.mode&j0)!==T0&&X!==null&&(z=$.child,z!==null&&($.treeBaseDuration-=z.treeBaseDuration));z=!1}else X=NQ(),z!==null&&z.memoizedState!==null&&(z.memoizedState.hydrationErrors=X),z=!0;if(!z){if($.flags&256)return X6($),$;return X6($),null}if(($.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return b1($),null;case 13:if(Y=$.memoizedState,z===null||z.memoizedState!==null&&z.memoizedState.dehydrated!==null){if(Z=Y,J=Y$($),Z!==null&&Z.dehydrated!==null){if(z===null){if(!J)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(J=$.memoizedState,J=J!==null?J.dehydrated:null,!J)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");J[P4]=$,b1($),($.mode&j0)!==T0&&Z!==null&&(Z=$.child,Z!==null&&($.treeBaseDuration-=Z.treeBaseDuration))}else MQ(),Uz(),($.flags&128)===0&&(Z=$.memoizedState=null),$.flags|=4,b1($),($.mode&j0)!==T0&&Z!==null&&(Z=$.child,Z!==null&&($.treeBaseDuration-=Z.treeBaseDuration));Z=!1}else Z=NQ(),z!==null&&z.memoizedState!==null&&(z.memoizedState.hydrationErrors=Z),Z=!0;if(!Z){if($.flags&256)return X6($),$;return X6($),null}}if(X6($),($.flags&128)!==0)return $.lanes=X,($.mode&j0)!==T0&&hX($),$;return X=Y!==null,z=z!==null&&z.memoizedState!==null,X&&(Y=$.child,Z=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(Z=Y.alternate.memoizedState.cachePool.pool),J=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(J=Y.memoizedState.cachePool.pool),J!==Z&&(Y.flags|=2048)),X!==z&&X&&($.child.flags|=8192),JZ($,$.updateQueue),b1($),($.mode&j0)!==T0&&X&&(z=$.child,z!==null&&($.treeBaseDuration-=z.treeBaseDuration)),null;case 4:return Z0($),z===null&&mG($.stateNode.containerInfo),b1($),null;case 10:return f7($.type,$),b1($),null;case 19:if(l(t1,$),Y=$.memoizedState,Y===null)return b1($),null;if(Z=($.flags&128)!==0,J=Y.rendering,J===null)if(Z)aX(Y,!1);else{if(g1!==e7||z!==null&&(z.flags&128)!==0)for(z=$.child;z!==null;){if(J=uY(z),J!==null){$.flags|=128,aX(Y,!1),z=J.updateQueue,$.updateQueue=z,JZ($,z),$.subtreeFlags=0,z=X;for(X=$.child;X!==null;)hK(X,z),X=X.sibling;return u(t1,t1.current&x$|f5,$),n0&&E7($,Y.treeForkCount),$.child}z=z.sibling}Y.tail!==null&&L4()>HJ&&($.flags|=128,Z=!0,aX(Y,!1),$.lanes=4194304)}else{if(!Z)if(z=uY(J),z!==null){if($.flags|=128,Z=!0,z=z.updateQueue,$.updateQueue=z,JZ($,z),aX(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!J.alternate&&!n0)return b1($),null}else 2*L4()-Y.renderingStartTime>HJ&&X!==536870912&&($.flags|=128,Z=!0,aX(Y,!1),$.lanes=4194304);Y.isBackwards?(J.sibling=$.child,$.child=J):(z=Y.last,z!==null?z.sibling=J:$.child=J,Y.last=J)}if(Y.tail!==null)return z=Y.tail,Y.rendering=z,Y.tail=z.sibling,Y.renderingStartTime=L4(),z.sibling=null,X=t1.current,X=Z?X&x$|f5:X&x$,u(t1,X,$),n0&&E7($,Y.treeForkCount),z;return b1($),null;case 22:case 23:return X6($),CQ($),Y=$.memoizedState!==null,z!==null?z.memoizedState!==null!==Y&&($.flags|=8192):Y&&($.flags|=8192),Y?(X&536870912)!==0&&($.flags&128)===0&&(b1($),$.subtreeFlags&6&&($.flags|=8192)):b1($),X=$.updateQueue,X!==null&&JZ($,X.retryQueue),X=null,z!==null&&z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(X=z.memoizedState.cachePool.pool),Y=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Y=$.memoizedState.cachePool.pool),Y!==X&&($.flags|=2048),z!==null&&l(yz,$),null;case 24:return X=null,z!==null&&(X=z.memoizedState.cache),$.memoizedState.cache!==X&&($.flags|=2048),f7(e1,$),b1($),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+$.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function yW(z,$){switch(FQ($),$.tag){case 1:return z=$.flags,z&65536?($.flags=z&-65537|128,($.mode&j0)!==T0&&hX($),$):null;case 3:return f7(e1,$),Z0($),z=$.flags,(z&65536)!==0&&(z&128)===0?($.flags=z&-65537|128,$):null;case 26:case 27:case 5:return f0($),null;case 31:if($.memoizedState!==null){if(X6($),$.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Uz()}return z=$.flags,z&65536?($.flags=z&-65537|128,($.mode&j0)!==T0&&hX($),$):null;case 13:if(X6($),z=$.memoizedState,z!==null&&z.dehydrated!==null){if($.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Uz()}return z=$.flags,z&65536?($.flags=z&-65537|128,($.mode&j0)!==T0&&hX($),$):null;case 19:return l(t1,$),null;case 4:return Z0($),null;case 10:return f7($.type,$),null;case 22:case 23:return X6($),CQ($),z!==null&&l(yz,$),z=$.flags,z&65536?($.flags=z&-65537|128,($.mode&j0)!==T0&&hX($),$):null;case 24:return f7(e1,$),null;case 25:return null;default:return null}}function XB(z,$){switch(FQ($),$.tag){case 3:f7(e1,$),Z0($);break;case 26:case 27:case 5:f0($);break;case 4:Z0($);break;case 31:$.memoizedState!==null&&X6($);break;case 13:X6($);break;case 19:l(t1,$);break;case 10:f7($.type,$);break;case 22:case 23:X6($),CQ($),z!==null&&l(yz,$);break;case 24:f7(e1,$)}}function H7(z){return(z.mode&j0)!==T0}function YB(z,$){H7(z)?(q7(),iX($,z),G7()):iX($,z)}function MG(z,$,X){H7(z)?(q7(),H$(X,z,$),G7()):H$(X,z,$)}function iX(z,$){try{var X=$.updateQueue,Y=X!==null?X.lastEffect:null;if(Y!==null){var Z=Y.next;X=Z;do{if((X.tag&z)===z&&(Y=void 0,(z&j4)!==sZ&&(n$=!0),Y=o($,sR,X),(z&j4)!==sZ&&(n$=!1),Y!==void 0&&typeof Y!=="function")){var J=void 0;J=(X.tag&K6)!==0?"useLayoutEffect":(X.tag&j4)!==0?"useInsertionEffect":"useEffect";var Q=void 0;Q=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
|
|
129
|
+
|
|
130
|
+
It looks like you wrote `+J+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
131
|
+
|
|
132
|
+
`+J+`(() => {
|
|
133
|
+
async function fetchData() {
|
|
134
|
+
// You can await here
|
|
135
|
+
const response = await MyAPI.getData(someId);
|
|
136
|
+
// ...
|
|
137
|
+
}
|
|
138
|
+
fetchData();
|
|
139
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
140
|
+
|
|
141
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Y,o($,function(q,K){console.error("%s must not return anything besides a function, which is used for clean-up.%s",q,K)},J,Q)}X=X.next}while(X!==Z)}}catch(q){_1($,$.return,q)}}function H$(z,$,X){try{var Y=$.updateQueue,Z=Y!==null?Y.lastEffect:null;if(Z!==null){var J=Z.next;Y=J;do{if((Y.tag&z)===z){var Q=Y.inst,q=Q.destroy;q!==void 0&&(Q.destroy=void 0,(z&j4)!==sZ&&(n$=!0),Z=$,o(Z,eR,Z,X,q),(z&j4)!==sZ&&(n$=!1))}Y=Y.next}while(Y!==J)}}catch(K){_1($,$.return,K)}}function ZB(z,$){H7(z)?(q7(),iX($,z),G7()):iX($,z)}function wG(z,$,X){H7(z)?(q7(),H$(X,z,$),G7()):H$(X,z,$)}function JB(z){var $=z.updateQueue;if($!==null){var X=z.stateNode;z.type.defaultProps||"ref"in z.memoizedProps||d$||(X.props!==z.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.",C(z)||"instance"),X.state!==z.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.",C(z)||"instance"));try{o(z,G_,$,X)}catch(Y){_1(z,z.return,Y)}}}function VW(z,$,X){return z.getSnapshotBeforeUpdate($,X)}function CW(z,$){var{memoizedProps:X,memoizedState:Y}=$;$=z.stateNode,z.type.defaultProps||"ref"in z.memoizedProps||d$||($.props!==z.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.",C(z)||"instance"),$.state!==z.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.",C(z)||"instance"));try{var Z=Nz(z.type,X),J=o(z,VW,$,Z,Y);X=gO,J!==void 0||X.has(z.type)||(X.add(z.type),o(z,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",C(z))})),$.__reactInternalSnapshotBeforeUpdate=J}catch(Q){_1(z,z.return,Q)}}function QB(z,$,X){X.props=Nz(z.type,z.memoizedProps),X.state=z.memoizedState,H7(z)?(q7(),o(z,JO,z,$,X),G7()):o(z,JO,z,$,X)}function SW(z){var $=z.ref;if($!==null){switch(z.tag){case 26:case 27:case 5:var X=z.stateNode;break;case 30:X=z.stateNode;break;default:X=z.stateNode}if(typeof $==="function")if(H7(z))try{q7(),z.refCleanup=$(X)}finally{G7()}else z.refCleanup=$(X);else typeof $==="string"?console.error("String refs are no longer supported."):$.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",C(z)),$.current=X}}function oX(z,$){try{o(z,SW,z)}catch(X){_1(z,$,X)}}function K7(z,$){var{ref:X,refCleanup:Y}=z;if(X!==null)if(typeof Y==="function")try{if(H7(z))try{q7(),o(z,Y)}finally{G7(z)}else o(z,Y)}catch(Z){_1(z,$,Z)}finally{z.refCleanup=null,z=z.alternate,z!=null&&(z.refCleanup=null)}else if(typeof X==="function")try{if(H7(z))try{q7(),o(z,X,null)}finally{G7(z)}else o(z,X,null)}catch(Z){_1(z,$,Z)}else X.current=null}function GB(z,$,X,Y){var Z=z.memoizedProps,J=Z.id,Q=Z.onCommit;Z=Z.onRender,$=$===null?"mount":"update",aZ&&($="nested-update"),typeof Z==="function"&&Z(J,$,z.actualDuration,z.treeBaseDuration,z.actualStartTime,X),typeof Q==="function"&&Q(J,$,Y,X)}function DW(z,$,X,Y){var Z=z.memoizedProps;z=Z.id,Z=Z.onPostCommit,$=$===null?"mount":"update",aZ&&($="nested-update"),typeof Z==="function"&&Z(z,$,Y,X)}function qB(z){var{type:$,memoizedProps:X,stateNode:Y}=z;try{o(z,Y3,Y,$,X,z)}catch(Z){_1(z,z.return,Z)}}function bG(z,$,X){try{o(z,J3,z.stateNode,z.type,X,$,z)}catch(Y){_1(z,z.return,Y)}}function HB(z){return z.tag===5||z.tag===3||z.tag===26||z.tag===27&&I8(z.type)||z.tag===4}function PG(z){z:for(;;){for(;z.sibling===null;){if(z.return===null||HB(z.return))return null;z=z.return}z.sibling.return=z.return;for(z=z.sibling;z.tag!==5&&z.tag!==6&&z.tag!==18;){if(z.tag===27&&I8(z.type))continue z;if(z.flags&2)continue z;if(z.child===null||z.tag===4)continue z;else z.child.return=z,z=z.child}if(!(z.flags&2))return z.stateNode}}function AG(z,$,X){var Y=z.tag;if(Y===5||Y===6)z=z.stateNode,$?(WU(X),(X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X).insertBefore(z,$)):(WU(X),$=X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X,$.appendChild(z),X=X._reactRootContainer,X!==null&&X!==void 0||$.onclick!==null||($.onclick=S7));else if(Y!==4&&(Y===27&&I8(z.type)&&(X=z.stateNode,$=null),z=z.child,z!==null))for(AG(z,$,X),z=z.sibling;z!==null;)AG(z,$,X),z=z.sibling}function QZ(z,$,X){var Y=z.tag;if(Y===5||Y===6)z=z.stateNode,$?X.insertBefore(z,$):X.appendChild(z);else if(Y!==4&&(Y===27&&I8(z.type)&&(X=z.stateNode),z=z.child,z!==null))for(QZ(z,$,X),z=z.sibling;z!==null;)QZ(z,$,X),z=z.sibling}function EW(z){for(var $,X=z.return;X!==null;){if(HB(X)){$=X;break}X=X.return}if($==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch($.tag){case 27:$=$.stateNode,X=PG(z),QZ(z,X,$);break;case 5:X=$.stateNode,$.flags&32&&(LU(X),$.flags&=-33),$=PG(z),QZ(z,$,X);break;case 3:case 4:$=$.stateNode.containerInfo,X=PG(z),AG(z,X,$);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function KB(z){var{stateNode:$,memoizedProps:X}=z;try{o(z,w3,z.type,X,$,z)}catch(Y){_1(z,z.return,Y)}}function _B(z,$){return $.tag===31?($=$.memoizedState,z.memoizedState!==null&&$===null):$.tag===13?(z=z.memoizedState,$=$.memoizedState,z!==null&&z.dehydrated!==null&&($===null||$.dehydrated===null)):$.tag===3?z.memoizedState.isDehydrated&&($.flags&256)===0:!1}function fW(z,$){if(z=z.containerInfo,PH=TJ,z=IK(z),GQ(z)){if("selectionStart"in z)var X={start:z.selectionStart,end:z.selectionEnd};else z:{X=(X=z.ownerDocument)&&X.defaultView||window;var Y=X.getSelection&&X.getSelection();if(Y&&Y.rangeCount!==0){X=Y.anchorNode;var{anchorOffset:Z,focusNode:J}=Y;Y=Y.focusOffset;try{X.nodeType,J.nodeType}catch(z0){X=null;break z}var Q=0,q=-1,K=-1,B=0,T=0,k=z,b=null;$:for(;;){for(var D;;){if(k!==X||Z!==0&&k.nodeType!==3||(q=Q+Z),k!==J||Y!==0&&k.nodeType!==3||(K=Q+Y),k.nodeType===3&&(Q+=k.nodeValue.length),(D=k.firstChild)===null)break;b=k,k=D}for(;;){if(k===z)break $;if(b===X&&++B===Z&&(q=Q),b===J&&++T===Y&&(K=Q),(D=k.nextSibling)!==null)break;k=b,b=k.parentNode}k=D}X=q===-1||K===-1?null:{start:q,end:K}}else X=null}X=X||{start:0,end:0}}else X=null;AH={focusedElem:z,selectionRange:X},TJ=!1;for(R4=$;R4!==null;)if($=R4,z=$.child,($.subtreeFlags&1028)!==0&&z!==null)z.return=$,R4=z;else for(;R4!==null;){switch(z=$=R4,X=z.alternate,Z=z.flags,z.tag){case 0:if((Z&4)!==0&&(z=z.updateQueue,z=z!==null?z.events:null,z!==null))for(X=0;X<z.length;X++)Z=z[X],Z.ref.impl=Z.nextImpl;break;case 11:case 15:break;case 1:(Z&1024)!==0&&X!==null&&CW(z,X);break;case 3:if((Z&1024)!==0){if(z=z.stateNode.containerInfo,X=z.nodeType,X===9)cG(z);else if(X===1)switch(z.nodeName){case"HEAD":case"HTML":case"BODY":cG(z);break;default:z.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((Z&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(z=$.sibling,z!==null){z.return=$.return,R4=z;break}R4=$.return}}function BB(z,$,X){var Y=z6(),Z=Y7(),J=J7(),Q=Q7(),q=X.flags;switch(X.tag){case 0:case 11:case 15:_7(z,X),q&4&&YB(X,K6|v6);break;case 1:if(_7(z,X),q&4)if(z=X.stateNode,$===null)X.type.defaultProps||"ref"in X.memoizedProps||d$||(z.props!==X.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.",C(X)||"instance"),z.state!==X.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.",C(X)||"instance")),H7(X)?(q7(),o(X,dq,X,z),G7()):o(X,dq,X,z);else{var K=Nz(X.type,$.memoizedProps);$=$.memoizedState,X.type.defaultProps||"ref"in X.memoizedProps||d$||(z.props!==X.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.",C(X)||"instance"),z.state!==X.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.",C(X)||"instance")),H7(X)?(q7(),o(X,XO,X,z,K,$,z.__reactInternalSnapshotBeforeUpdate),G7()):o(X,XO,X,z,K,$,z.__reactInternalSnapshotBeforeUpdate)}q&64&&JB(X),q&512&&oX(X,X.return);break;case 3:if($=m7(),_7(z,X),q&64&&(q=X.updateQueue,q!==null)){if(K=null,X.child!==null)switch(X.child.tag){case 27:case 5:K=X.child.stateNode;break;case 1:K=X.child.stateNode}try{o(X,G_,q,K)}catch(T){_1(X,X.return,T)}}z.effectDuration+=DY($);break;case 27:$===null&&q&4&&KB(X);case 26:case 5:if(_7(z,X),$===null){if(q&4)qB(X);else if(q&64){z=X.type,$=X.memoizedProps,K=X.stateNode;try{o(X,Z3,K,z,$,X)}catch(T){_1(X,X.return,T)}}}q&512&&oX(X,X.return);break;case 12:if(q&4){q=m7(),_7(z,X),z=X.stateNode,z.effectDuration+=mX(q);try{o(X,GB,X,$,h8,z.effectDuration)}catch(T){_1(X,X.return,T)}}else _7(z,X);break;case 31:_7(z,X),q&4&&LB(z,X);break;case 13:_7(z,X),q&4&&WB(z,X),q&64&&(z=X.memoizedState,z!==null&&(z=z.dehydrated,z!==null&&(q=cW.bind(null,X),R3(z,q))));break;case 22:if(q=X.memoizedState!==null||s7,!q){$=$!==null&&$.memoizedState!==null||Y4,K=s7;var B=Y4;s7=q,(Y4=$)&&!B?(B7(z,X,(X.subtreeFlags&8772)!==0),(X.mode&j0)!==T0&&0<=M0&&0<=b0&&0.05<b0-M0&&PY(X,M0,b0)):_7(z,X),s7=K,Y4=B}break;case 30:break;default:_7(z,X)}(X.mode&j0)!==T0&&0<=M0&&0<=b0&&((l1||0.05<j1)&&$7(X,M0,b0,j1,m1),X.alternate===null&&X.return!==null&&X.return.alternate!==null&&0.05<b0-M0&&(_B(X.return.alternate,X.return)||z7(X,M0,b0,"Mount"))),$6(Y),Z7(Z),m1=J,l1=Q}function UB(z){var $=z.alternate;$!==null&&(z.alternate=null,UB($)),z.child=null,z.deletions=null,z.sibling=null,z.tag===5&&($=z.stateNode,$!==null&&RY($)),z.stateNode=null,z._debugOwner=null,z.return=null,z.dependencies=null,z.memoizedProps=null,z.memoizedState=null,z.pendingProps=null,z.stateNode=null,z.updateQueue=null}function j7(z,$,X){for(X=X.child;X!==null;)OB(z,$,X),X=X.sibling}function OB(z,$,X){if(y4&&typeof y4.onCommitFiberUnmount==="function")try{y4.onCommitFiberUnmount(w$,X)}catch(B){F7||(F7=!0,console.error("React instrumentation encountered an error: %o",B))}var Y=z6(),Z=Y7(),J=J7(),Q=Q7();switch(X.tag){case 26:Y4||K7(X,$),j7(z,$,X),X.memoizedState?X.memoizedState.count--:X.stateNode&&(z=X.stateNode,z.parentNode.removeChild(z));break;case 27:Y4||K7(X,$);var q=Z4,K=i4;I8(X.type)&&(Z4=X.stateNode,i4=!1),j7(z,$,X),o(X,Y5,X.stateNode),Z4=q,i4=K;break;case 5:Y4||K7(X,$);case 6:if(q=Z4,K=i4,Z4=null,j7(z,$,X),Z4=q,i4=K,Z4!==null)if(i4)try{o(X,q3,Z4,X.stateNode)}catch(B){_1(X,$,B)}else try{o(X,G3,Z4,X.stateNode)}catch(B){_1(X,$,B)}break;case 18:Z4!==null&&(i4?(z=Z4,RU(z.nodeType===9?z.body:z.nodeName==="HTML"?z.ownerDocument.body:z,X.stateNode),R$(z)):RU(Z4,X.stateNode));break;case 4:q=Z4,K=i4,Z4=X.stateNode.containerInfo,i4=!0,j7(z,$,X),Z4=q,i4=K;break;case 0:case 11:case 14:case 15:H$(j4,X,$),Y4||MG(X,$,K6),j7(z,$,X);break;case 1:Y4||(K7(X,$),q=X.stateNode,typeof q.componentWillUnmount==="function"&&QB(X,$,q)),j7(z,$,X);break;case 21:j7(z,$,X);break;case 22:Y4=(q=Y4)||X.memoizedState!==null,j7(z,$,X),Y4=q;break;default:j7(z,$,X)}(X.mode&j0)!==T0&&0<=M0&&0<=b0&&(l1||0.05<j1)&&$7(X,M0,b0,j1,m1),$6(Y),Z7(Z),m1=J,l1=Q}function LB(z,$){if($.memoizedState===null&&(z=$.alternate,z!==null&&(z=z.memoizedState,z!==null))){z=z.dehydrated;try{o($,N3,z)}catch(X){_1($,$.return,X)}}}function WB(z,$){if($.memoizedState===null&&(z=$.alternate,z!==null&&(z=z.memoizedState,z!==null&&(z=z.dehydrated,z!==null))))try{o($,M3,z)}catch(X){_1($,$.return,X)}}function mW(z){switch(z.tag){case 31:case 13:case 19:var $=z.stateNode;return $===null&&($=z.stateNode=new xO),$;case 22:return z=z.stateNode,$=z._retryCache,$===null&&($=z._retryCache=new xO),$;default:throw Error("Unexpected Suspense handler tag ("+z.tag+"). This is a bug in React.")}}function GZ(z,$){var X=mW(z);$.forEach(function(Y){if(!X.has(Y)){if(X.add(Y),N7)if(a$!==null&&i$!==null)sX(i$,a$);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var Z=dW.bind(null,z,Y);Y.then(Z,Z)}})}function d4(z,$){var X=$.deletions;if(X!==null)for(var Y=0;Y<X.length;Y++){var Z=z,J=$,Q=X[Y],q=z6(),K=J;z:for(;K!==null;){switch(K.tag){case 27:if(I8(K.type)){Z4=K.stateNode,i4=!1;break z}break;case 5:Z4=K.stateNode,i4=!1;break z;case 3:case 4:Z4=K.stateNode.containerInfo,i4=!0;break z}K=K.return}if(Z4===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");OB(Z,J,Q),Z4=null,i4=!1,(Q.mode&j0)!==T0&&0<=M0&&0<=b0&&0.05<b0-M0&&z7(Q,M0,b0,"Unmount"),$6(q),Z=Q,J=Z.alternate,J!==null&&(J.return=null),Z.return=null}if($.subtreeFlags&13886)for($=$.child;$!==null;)RB($,z),$=$.sibling}function RB(z,$){var X=z6(),Y=Y7(),Z=J7(),J=Q7(),Q=z.alternate,q=z.flags;switch(z.tag){case 0:case 11:case 14:case 15:d4($,z),a4(z),q&4&&(H$(j4|v6,z,z.return),iX(j4|v6,z),MG(z,z.return,K6|v6));break;case 1:if(d4($,z),a4(z),q&512&&(Y4||Q===null||K7(Q,Q.return)),q&64&&s7&&(q=z.updateQueue,q!==null&&(Q=q.callbacks,Q!==null))){var K=q.shared.hiddenCallbacks;q.shared.hiddenCallbacks=K===null?Q:K.concat(Q)}break;case 26:if(K=l6,d4($,z),a4(z),q&512&&(Y4||Q===null||K7(Q,Q.return)),q&4){var B=Q!==null?Q.memoizedState:null;if(q=z.memoizedState,Q===null)if(q===null)if(z.stateNode===null){z:{q=z.type,Q=z.memoizedProps,K=K.ownerDocument||K;$:switch(q){case"title":if(B=K.getElementsByTagName("title")[0],!B||B[K5]||B[P4]||B.namespaceURI===P$||B.hasAttribute("itemprop"))B=K.createElement(q),K.head.insertBefore(B,K.querySelector("head > title"));b4(B,q,Q),B[P4]=z,a1(B),q=B;break z;case"link":var T=kU("link","href",K).get(q+(Q.href||""));if(T){for(var k=0;k<T.length;k++)if(B=T[k],B.getAttribute("href")===(Q.href==null||Q.href===""?null:Q.href)&&B.getAttribute("rel")===(Q.rel==null?null:Q.rel)&&B.getAttribute("title")===(Q.title==null?null:Q.title)&&B.getAttribute("crossorigin")===(Q.crossOrigin==null?null:Q.crossOrigin)){T.splice(k,1);break $}}B=K.createElement(q),b4(B,q,Q),K.head.appendChild(B);break;case"meta":if(T=kU("meta","content",K).get(q+(Q.content||""))){for(k=0;k<T.length;k++)if(B=T[k],m0(Q.content,"content"),B.getAttribute("content")===(Q.content==null?null:""+Q.content)&&B.getAttribute("name")===(Q.name==null?null:Q.name)&&B.getAttribute("property")===(Q.property==null?null:Q.property)&&B.getAttribute("http-equiv")===(Q.httpEquiv==null?null:Q.httpEquiv)&&B.getAttribute("charset")===(Q.charSet==null?null:Q.charSet)){T.splice(k,1);break $}}B=K.createElement(q),b4(B,q,Q),K.head.appendChild(B);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+q+'". This is a bug in React.')}B[P4]=z,a1(B),q=B}z.stateNode=q}else yU(K,z.type,z.stateNode);else z.stateNode=IU(K,q,z.memoizedProps);else B!==q?(B===null?Q.stateNode!==null&&(Q=Q.stateNode,Q.parentNode.removeChild(Q)):B.count--,q===null?yU(K,z.type,z.stateNode):IU(K,q,z.memoizedProps)):q===null&&z.stateNode!==null&&bG(z,z.memoizedProps,Q.memoizedProps)}break;case 27:d4($,z),a4(z),q&512&&(Y4||Q===null||K7(Q,Q.return)),Q!==null&&q&4&&bG(z,z.memoizedProps,Q.memoizedProps);break;case 5:if(d4($,z),a4(z),q&512&&(Y4||Q===null||K7(Q,Q.return)),z.flags&32){K=z.stateNode;try{o(z,LU,K)}catch(J0){_1(z,z.return,J0)}}q&4&&z.stateNode!=null&&(K=z.memoizedProps,bG(z,K,Q!==null?Q.memoizedProps:K)),q&1024&&(ZH=!0,z.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(d4($,z),a4(z),q&4){if(z.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.");q=z.memoizedProps,Q=Q!==null?Q.memoizedProps:q,K=z.stateNode;try{o(z,Q3,K,Q,q)}catch(J0){_1(z,z.return,J0)}}break;case 3:if(K=m7(),PJ=null,B=l6,l6=LZ($.containerInfo),d4($,z),l6=B,a4(z),q&4&&Q!==null&&Q.memoizedState.isDehydrated)try{o(z,F3,$.containerInfo)}catch(J0){_1(z,z.return,J0)}ZH&&(ZH=!1,FB(z)),$.effectDuration+=DY(K);break;case 4:q=l6,l6=LZ(z.stateNode.containerInfo),d4($,z),a4(z),l6=q;break;case 12:q=m7(),d4($,z),a4(z),z.stateNode.effectDuration+=mX(q);break;case 31:d4($,z),a4(z),q&4&&(q=z.updateQueue,q!==null&&(z.updateQueue=null,GZ(z,q)));break;case 13:d4($,z),a4(z),z.child.flags&8192&&z.memoizedState!==null!==(Q!==null&&Q.memoizedState!==null)&&(qJ=L4()),q&4&&(q=z.updateQueue,q!==null&&(z.updateQueue=null,GZ(z,q)));break;case 22:K=z.memoizedState!==null;var b=Q!==null&&Q.memoizedState!==null,D=s7,z0=Y4;if(s7=D||K,Y4=z0||b,d4($,z),Y4=z0,s7=D,b&&!K&&!D&&!z0&&(z.mode&j0)!==T0&&0<=M0&&0<=b0&&0.05<b0-M0&&PY(z,M0,b0),a4(z),q&8192)z:for($=z.stateNode,$._visibility=K?$._visibility&~N5:$._visibility|N5,!K||Q===null||b||s7||Y4||(Mz(z),(z.mode&j0)!==T0&&0<=M0&&0<=b0&&0.05<b0-M0&&z7(z,M0,b0,"Disconnect")),Q=null,$=z;;){if($.tag===5||$.tag===26){if(Q===null){b=Q=$;try{B=b.stateNode,K?o(b,K3,B):o(b,U3,b.stateNode,b.memoizedProps)}catch(J0){_1(b,b.return,J0)}}}else if($.tag===6){if(Q===null){b=$;try{T=b.stateNode,K?o(b,_3,T):o(b,O3,T,b.memoizedProps)}catch(J0){_1(b,b.return,J0)}}}else if($.tag===18){if(Q===null){b=$;try{k=b.stateNode,K?o(b,H3,k):o(b,B3,b.stateNode)}catch(J0){_1(b,b.return,J0)}}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===z)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===z)break z;for(;$.sibling===null;){if($.return===null||$.return===z)break z;Q===$&&(Q=null),$=$.return}Q===$&&(Q=null),$.sibling.return=$.return,$=$.sibling}q&4&&(q=z.updateQueue,q!==null&&(Q=q.retryQueue,Q!==null&&(q.retryQueue=null,GZ(z,Q))));break;case 19:d4($,z),a4(z),q&4&&(q=z.updateQueue,q!==null&&(z.updateQueue=null,GZ(z,q)));break;case 30:break;case 21:break;default:d4($,z),a4(z)}(z.mode&j0)!==T0&&0<=M0&&0<=b0&&((l1||0.05<j1)&&$7(z,M0,b0,j1,m1),z.alternate===null&&z.return!==null&&z.return.alternate!==null&&0.05<b0-M0&&(_B(z.return.alternate,z.return)||z7(z,M0,b0,"Mount"))),$6(X),Z7(Y),m1=Z,l1=J}function a4(z){var $=z.flags;if($&2){try{o(z,EW,z)}catch(X){_1(z,z.return,X)}z.flags&=-3}$&4096&&(z.flags&=-4097)}function FB(z){if(z.subtreeFlags&1024)for(z=z.child;z!==null;){var $=z;FB($),$.tag===5&&$.flags&1024&&$.stateNode.reset(),z=z.sibling}}function _7(z,$){if($.subtreeFlags&8772)for($=$.child;$!==null;)BB(z,$.alternate,$),$=$.sibling}function NB(z){var $=z6(),X=Y7(),Y=J7(),Z=Q7();switch(z.tag){case 0:case 11:case 14:case 15:MG(z,z.return,K6),Mz(z);break;case 1:K7(z,z.return);var J=z.stateNode;typeof J.componentWillUnmount==="function"&&QB(z,z.return,J),Mz(z);break;case 27:o(z,Y5,z.stateNode);case 26:case 5:K7(z,z.return),Mz(z);break;case 22:z.memoizedState===null&&Mz(z);break;case 30:Mz(z);break;default:Mz(z)}(z.mode&j0)!==T0&&0<=M0&&0<=b0&&(l1||0.05<j1)&&$7(z,M0,b0,j1,m1),$6($),Z7(X),m1=Y,l1=Z}function Mz(z){for(z=z.child;z!==null;)NB(z),z=z.sibling}function MB(z,$,X,Y){var Z=z6(),J=Y7(),Q=J7(),q=Q7(),K=X.flags;switch(X.tag){case 0:case 11:case 15:B7(z,X,Y),YB(X,K6);break;case 1:if(B7(z,X,Y),$=X.stateNode,typeof $.componentDidMount==="function"&&o(X,dq,X,$),$=X.updateQueue,$!==null){z=X.stateNode;try{o(X,FW,$,z)}catch(B){_1(X,X.return,B)}}Y&&K&64&&JB(X),oX(X,X.return);break;case 27:KB(X);case 26:case 5:B7(z,X,Y),Y&&$===null&&K&4&&qB(X),oX(X,X.return);break;case 12:if(Y&&K&4){K=m7(),B7(z,X,Y),Y=X.stateNode,Y.effectDuration+=mX(K);try{o(X,GB,X,$,h8,Y.effectDuration)}catch(B){_1(X,X.return,B)}}else B7(z,X,Y);break;case 31:B7(z,X,Y),Y&&K&4&&LB(z,X);break;case 13:B7(z,X,Y),Y&&K&4&&WB(z,X);break;case 22:X.memoizedState===null&&B7(z,X,Y),oX(X,X.return);break;case 30:break;default:B7(z,X,Y)}(X.mode&j0)!==T0&&0<=M0&&0<=b0&&(l1||0.05<j1)&&$7(X,M0,b0,j1,m1),$6(Z),Z7(J),m1=Q,l1=q}function B7(z,$,X){X=X&&($.subtreeFlags&8772)!==0;for($=$.child;$!==null;)MB(z,$.alternate,$,X),$=$.sibling}function vG(z,$){var X=null;z!==null&&z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(X=z.memoizedState.cachePool.pool),z=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(z=$.memoizedState.cachePool.pool),z!==X&&(z!=null&&Lz(z),X!=null&&fX(X))}function TG(z,$){z=null,$.alternate!==null&&(z=$.alternate.memoizedState.cache),$=$.memoizedState.cache,$!==z&&(Lz($),z!=null&&fX(z))}function h6(z,$,X,Y,Z){if($.subtreeFlags&10256||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child))for($=$.child;$!==null;){var J=$.sibling;wB(z,$,X,Y,J!==null?J.actualStartTime:Z),$=J}}function wB(z,$,X,Y,Z){var J=z6(),Q=Y7(),q=J7(),K=Q7(),B=D8,T=$.flags;switch($.tag){case 0:case 11:case 15:($.mode&j0)!==T0&&0<$.actualStartTime&&($.flags&1)!==0&&AY($,$.actualStartTime,Z,H4,X),h6(z,$,X,Y,Z),T&2048&&ZB($,g4|v6);break;case 1:($.mode&j0)!==T0&&0<$.actualStartTime&&(($.flags&128)!==0?HQ($,$.actualStartTime,Z,[]):($.flags&1)!==0&&AY($,$.actualStartTime,Z,H4,X)),h6(z,$,X,Y,Z);break;case 3:var k=m7(),b=H4;H4=$.alternate!==null&&$.alternate.memoizedState.isDehydrated&&($.flags&256)===0,h6(z,$,X,Y,Z),H4=b,T&2048&&(X=null,$.alternate!==null&&(X=$.alternate.memoizedState.cache),Y=$.memoizedState.cache,Y!==X&&(Lz(Y),X!=null&&fX(X))),z.passiveEffectDuration+=DY(k);break;case 12:if(T&2048){T=m7(),h6(z,$,X,Y,Z),z=$.stateNode,z.passiveEffectDuration+=mX(T);try{o($,DW,$,$.alternate,h8,z.passiveEffectDuration)}catch(D){_1($,$.return,D)}}else h6(z,$,X,Y,Z);break;case 31:T=H4,k=$.alternate!==null?$.alternate.memoizedState:null,b=$.memoizedState,k!==null&&b===null?(b=$.deletions,b!==null&&0<b.length&&b[0].tag===18?(H4=!1,k=k.hydrationErrors,k!==null&&HQ($,$.actualStartTime,Z,k)):H4=!0):H4=!1,h6(z,$,X,Y,Z),H4=T;break;case 13:T=H4,k=$.alternate!==null?$.alternate.memoizedState:null,b=$.memoizedState,k===null||k.dehydrated===null||b!==null&&b.dehydrated!==null?H4=!1:(b=$.deletions,b!==null&&0<b.length&&b[0].tag===18?(H4=!1,k=k.hydrationErrors,k!==null&&HQ($,$.actualStartTime,Z,k)):H4=!0),h6(z,$,X,Y,Z),H4=T;break;case 23:break;case 22:b=$.stateNode,k=$.alternate,$.memoizedState!==null?b._visibility&u7?h6(z,$,X,Y,Z):rX(z,$,X,Y,Z):b._visibility&u7?h6(z,$,X,Y,Z):(b._visibility|=u7,K$(z,$,X,Y,($.subtreeFlags&10256)!==0||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child),Z),($.mode&j0)===T0||H4||(z=$.actualStartTime,0<=z&&0.05<Z-z&&PY($,z,Z),0<=M0&&0<=b0&&0.05<b0-M0&&PY($,M0,b0))),T&2048&&vG(k,$);break;case 24:h6(z,$,X,Y,Z),T&2048&&TG($.alternate,$);break;default:h6(z,$,X,Y,Z)}if(($.mode&j0)!==T0){if(z=!H4&&$.alternate===null&&$.return!==null&&$.return.alternate!==null)X=$.actualStartTime,0<=X&&0.05<Z-X&&z7($,X,Z,"Mount");0<=M0&&0<=b0&&((l1||0.05<j1)&&$7($,M0,b0,j1,m1),z&&0.05<b0-M0&&z7($,M0,b0,"Mount"))}$6(J),Z7(Q),m1=q,l1=K,D8=B}function K$(z,$,X,Y,Z,J){Z=Z&&(($.subtreeFlags&10256)!==0||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child));for($=$.child;$!==null;){var Q=$.sibling;bB(z,$,X,Y,Z,Q!==null?Q.actualStartTime:J),$=Q}}function bB(z,$,X,Y,Z,J){var Q=z6(),q=Y7(),K=J7(),B=Q7(),T=D8;Z&&($.mode&j0)!==T0&&0<$.actualStartTime&&($.flags&1)!==0&&AY($,$.actualStartTime,J,H4,X);var k=$.flags;switch($.tag){case 0:case 11:case 15:K$(z,$,X,Y,Z,J),ZB($,g4);break;case 23:break;case 22:var b=$.stateNode;$.memoizedState!==null?b._visibility&u7?K$(z,$,X,Y,Z,J):rX(z,$,X,Y,J):(b._visibility|=u7,K$(z,$,X,Y,Z,J)),Z&&k&2048&&vG($.alternate,$);break;case 24:K$(z,$,X,Y,Z,J),Z&&k&2048&&TG($.alternate,$);break;default:K$(z,$,X,Y,Z,J)}($.mode&j0)!==T0&&0<=M0&&0<=b0&&(l1||0.05<j1)&&$7($,M0,b0,j1,m1),$6(Q),Z7(q),m1=K,l1=B,D8=T}function rX(z,$,X,Y,Z){if($.subtreeFlags&10256||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child))for(var J=$.child;J!==null;){$=J.sibling;var Q=z,q=X,K=Y,B=$!==null?$.actualStartTime:Z,T=D8;(J.mode&j0)!==T0&&0<J.actualStartTime&&(J.flags&1)!==0&&AY(J,J.actualStartTime,B,H4,q);var k=J.flags;switch(J.tag){case 22:rX(Q,J,q,K,B),k&2048&&vG(J.alternate,J);break;case 24:rX(Q,J,q,K,B),k&2048&&TG(J.alternate,J);break;default:rX(Q,J,q,K,B)}D8=T,J=$}}function _$(z,$,X){if(z.subtreeFlags&j5)for(z=z.child;z!==null;)PB(z,$,X),z=z.sibling}function PB(z,$,X){switch(z.tag){case 26:_$(z,$,X),z.flags&j5&&z.memoizedState!==null&&A3(X,l6,z.memoizedState,z.memoizedProps);break;case 5:_$(z,$,X);break;case 3:case 4:var Y=l6;l6=LZ(z.stateNode.containerInfo),_$(z,$,X),l6=Y;break;case 22:z.memoizedState===null&&(Y=z.alternate,Y!==null&&Y.memoizedState!==null?(Y=j5,j5=16777216,_$(z,$,X),j5=Y):_$(z,$,X));break;default:_$(z,$,X)}}function AB(z){var $=z.alternate;if($!==null&&(z=$.child,z!==null)){$.child=null;do $=z.sibling,z.sibling=null,z=$;while(z!==null)}}function nX(z){var $=z.deletions;if((z.flags&16)!==0){if($!==null)for(var X=0;X<$.length;X++){var Y=$[X],Z=z6();R4=Y,IB(Y,z),(Y.mode&j0)!==T0&&0<=M0&&0<=b0&&0.05<b0-M0&&z7(Y,M0,b0,"Unmount"),$6(Z)}AB(z)}if(z.subtreeFlags&10256)for(z=z.child;z!==null;)vB(z),z=z.sibling}function vB(z){var $=z6(),X=Y7(),Y=J7(),Z=Q7();switch(z.tag){case 0:case 11:case 15:nX(z),z.flags&2048&&wG(z,z.return,g4|v6);break;case 3:var J=m7();nX(z),z.stateNode.passiveEffectDuration+=DY(J);break;case 12:J=m7(),nX(z),z.stateNode.passiveEffectDuration+=mX(J);break;case 22:J=z.stateNode,z.memoizedState!==null&&J._visibility&u7&&(z.return===null||z.return.tag!==13)?(J._visibility&=~u7,qZ(z),(z.mode&j0)!==T0&&0<=M0&&0<=b0&&0.05<b0-M0&&z7(z,M0,b0,"Disconnect")):nX(z);break;default:nX(z)}(z.mode&j0)!==T0&&0<=M0&&0<=b0&&(l1||0.05<j1)&&$7(z,M0,b0,j1,m1),$6($),Z7(X),l1=Z,m1=Y}function qZ(z){var $=z.deletions;if((z.flags&16)!==0){if($!==null)for(var X=0;X<$.length;X++){var Y=$[X],Z=z6();R4=Y,IB(Y,z),(Y.mode&j0)!==T0&&0<=M0&&0<=b0&&0.05<b0-M0&&z7(Y,M0,b0,"Unmount"),$6(Z)}AB(z)}for(z=z.child;z!==null;)TB(z),z=z.sibling}function TB(z){var $=z6(),X=Y7(),Y=J7(),Z=Q7();switch(z.tag){case 0:case 11:case 15:wG(z,z.return,g4),qZ(z);break;case 22:var J=z.stateNode;J._visibility&u7&&(J._visibility&=~u7,qZ(z));break;default:qZ(z)}(z.mode&j0)!==T0&&0<=M0&&0<=b0&&(l1||0.05<j1)&&$7(z,M0,b0,j1,m1),$6($),Z7(X),l1=Z,m1=Y}function IB(z,$){for(;R4!==null;){var X=R4,Y=X,Z=$,J=z6(),Q=Y7(),q=J7(),K=Q7();switch(Y.tag){case 0:case 11:case 15:wG(Y,Z,g4);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(Z=Y.memoizedState.cachePool.pool,Z!=null&&Lz(Z));break;case 24:fX(Y.memoizedState.cache)}if((Y.mode&j0)!==T0&&0<=M0&&0<=b0&&(l1||0.05<j1)&&$7(Y,M0,b0,j1,m1),$6(J),Z7(Q),l1=K,m1=q,Y=X.child,Y!==null)Y.return=X,R4=Y;else z:for(X=z;R4!==null;){if(Y=R4,J=Y.sibling,Q=Y.return,UB(Y),Y===X){R4=null;break z}if(J!==null){J.return=Q,R4=J;break z}R4=Q}}}function hW(){ZF.forEach(function(z){return z()})}function kB(){var z=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return z||j.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),z}function Y6(z){if((z1&K4)!==F4&&x0!==0)return x0&-x0;var $=j.T;return $!==null?($._updatedFibers||($._updatedFibers=new Set),$._updatedFibers.add(z),EG()):wX()}function yB(){if(r4===0)if((x0&536870912)===0||n0){var z=IZ;IZ<<=1,(IZ&3932160)===0&&(IZ=262144),r4=z}else r4=536870912;return z=H6.current,z!==null&&(z.flags|=32),r4}function u1(z,$,X){if(n$&&console.error("useInsertionEffect must not schedule updates."),LH&&(BJ=!0),z===M1&&(L1===fz||L1===mz)||z.cancelPendingCommit!==null)U$(z,0),v8(z,x0,r4,!1);if(S6(z,X),(z1&K4)!==F4&&z===M1){if(R7)switch($.tag){case 0:case 11:case 15:z=u0&&C(u0)||"Unknown",XL.has(z)||(XL.add(z),$=C($)||"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",$,z,z));break;case 1:$L||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),$L=!0)}}else N7&&K8(z,$,X),iW($),z===M1&&((z1&K4)===F4&&(a8|=X),g1===l8&&v8(z,x0,r4,!1)),U7(z)}function VB(z,$,X){if((z1&(K4|_6))!==F4)throw Error("Should not already be working.");if(x0!==0&&u0!==null){var Y=u0,Z=L4();switch(o9){case u5:case fz:var J=v5;k1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",J,Z,R6,void 0,"primary-light")):console.timeStamp("Suspended",J,Z,R6,void 0,"primary-light"));break;case mz:J=v5,k1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",J,Z,R6,void 0,"primary-light")):console.timeStamp("Action",J,Z,R6,void 0,"primary-light"));break;default:k1&&(Y=Z-v5,3>Y||console.timeStamp("Blocked",v5,Z,R6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}J=(X=!X&&($&127)===0&&($&z.expiredLanes)===0||C6(z,$))?jW(z,$):kG(z,$,!0);var Q=X;do{if(J===e7){o$&&!X&&v8(z,$,0,!1),$=L1,v5=z4(),o9=$;break}else{if(Y=L4(),Z=z.current.alternate,Q&&!pW(Z)){s4($),Z=W4,J=Y,!k1||J<=Z||(o1?o1.run(console.timeStamp.bind(console,"Teared Render",Z,J,o0,a0,"error")):console.timeStamp("Teared Render",Z,J,o0,a0,"error")),wz($,Y),J=kG(z,$,!1),Q=!1;continue}if(J===Ez){if(Q=$,z.errorRecoveryDisabledLanes&Q)var q=0;else q=z.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){s4($),KQ(W4,Y,$,o1),wz($,Y),$=q;z:{Y=z,J=Q,Q=c5;var K=Y.current.memoizedState.isDehydrated;if(K&&(U$(Y,q).flags|=256),q=kG(Y,q,!1),q!==Ez){if(GH&&!K){Y.errorRecoveryDisabledLanes|=J,a8|=J,J=l8;break z}Y=x4,x4=Q,Y!==null&&(x4===null?x4=Y:x4.push.apply(x4,Y))}J=q}if(Q=!1,J!==Ez)continue;else Y=L4()}}if(J===x5){s4($),KQ(W4,Y,$,o1),wz($,Y),U$(z,0),v8(z,$,0,!0);break}z:{switch(X=z,J){case e7:case x5:throw Error("Root did not complete. This is a bug in React.");case l8:if(($&4194048)!==$)break;case ZJ:s4($),VK(W4,Y,$,o1),wz($,Y),Z=$,(Z&127)!==0?lZ=Y:(Z&4194048)!==0&&(cZ=Y),v8(X,$,r4,!c8);break z;case Ez:x4=null;break;case YJ:case uO:break;default:throw Error("Unknown root exit status.")}if(j.actQueue!==null)yG(X,Z,$,x4,d5,GJ,r4,a8,hz,J,null,null,W4,Y);else{if(($&62914560)===$&&(Q=qJ+dO-L4(),10<Q)){if(v8(X,$,r4,!c8),ez(X,0,!0)!==0)break z;c6=$,X.timeoutHandle=KL(CB.bind(null,X,Z,x4,d5,GJ,$,r4,a8,hz,c8,J,"Throttled",W4,Y),Q);break z}CB(X,Z,x4,d5,GJ,$,r4,a8,hz,c8,J,null,W4,Y)}}}break}while(1);U7(z)}function CB(z,$,X,Y,Z,J,Q,q,K,B,T,k,b,D){z.timeoutHandle=uz;var z0=$.subtreeFlags,J0=null;if(z0&8192||(z0&16785408)===16785408){if(J0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:S7},PB($,J,J0),z0=(J&62914560)===J?qJ-L4():(J&4194048)===J?cO-L4():0,z0=v3(J0,z0),z0!==null){c6=J,z.cancelPendingCommit=z0(yG.bind(null,z,$,J,X,Y,Z,Q,q,K,T,J0,J0.waitingForViewTransition?"Waiting for the previous Animation":0<J0.count?0<J0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":J0.imgCount===1?"Suspended on an Image":0<J0.imgCount?"Suspended on Images":null,b,D)),v8(z,J,Q,!B);return}}yG(z,$,J,X,Y,Z,Q,q,K,T,J0,k,b,D)}function pW(z){for(var $=z;;){var X=$.tag;if((X===0||X===11||X===15)&&$.flags&16384&&(X=$.updateQueue,X!==null&&(X=X.stores,X!==null)))for(var Y=0;Y<X.length;Y++){var Z=X[Y],J=Z.getSnapshot;Z=Z.value;try{if(!h4(J(),Z))return!1}catch(Q){return!1}}if(X=$.child,$.subtreeFlags&16384&&X!==null)X.return=$,$=X;else{if($===z)break;for(;$.sibling===null;){if($.return===null||$.return===z)return!0;$=$.return}$.sibling.return=$.return,$=$.sibling}}return!0}function v8(z,$,X,Y){$&=~qH,$&=~a8,z.suspendedLanes|=$,z.pingedLanes&=~$,Y&&(z.warmLanes|=$),Y=z.expirationTimes;for(var Z=$;0<Z;){var J=31-E4(Z),Q=1<<J;Y[J]=-1,Z&=~Q}X!==0&&t6(z,X,$)}function B$(){return(z1&(K4|_6))===F4?(eX(0,!1),!1):!0}function IG(){if(u0!==null){if(L1===o4)var z=u0.return;else z=u0,VY(),pQ(z),j$=null,E5=0,z=u0;for(;z!==null;)XB(z.alternate,z),z=z.return;u0=null}}function wz(z,$){(z&127)!==0&&(p8=$),(z&4194048)!==0&&(A7=$),(z&62914560)!==0&&(a9=$),(z&2080374784)!==0&&(i9=$)}function U$(z,$){k1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",a0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",a0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",a0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",a0,"primary-light"));var X=W4;if(W4=z4(),x0!==0&&0<X){if(s4(x0),g1===YJ||g1===l8)VK(X,W4,$,o1);else{var Y=W4,Z=o1;if(k1&&!(Y<=X)){var J=($&738197653)===$?"tertiary-dark":"primary-dark",Q=($&536870912)===$?"Prewarm":($&201326741)===$?"Interrupted Hydration":"Interrupted Render";Z?Z.run(console.timeStamp.bind(console,Q,X,Y,o0,a0,J)):console.timeStamp(Q,X,Y,o0,a0,J)}}wz(x0,W4)}if(X=o1,o1=null,($&127)!==0){o1=b5,Z=0<=P7&&P7<p8?p8:P7,Y=0<=Tz&&Tz<p8?p8:Tz,J=0<=Y?Y:0<=Z?Z:W4,0<=lZ?(s4(2),CK(lZ,J,$,X)):(dZ&127)!==0&&(s4(2),DX(p8,J,o7)),X=Z;var q=Y,K=P5,B=0<m$,T=j8===w5,k=j8===uZ;if(Z=W4,Y=b5,J=gq,Q=xq,k1){if(o0="Blocking",0<X?X>Z&&(X=Z):X=Z,0<q?q>X&&(q=X):q=X,K!==null&&X>q){var b=B?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,B?"Consecutive":"Event: "+K,q,X,o0,a0,b)):console.timeStamp(B?"Consecutive":"Event: "+K,q,X,o0,a0,b)}Z>X&&(q=T?"error":($&738197653)===$?"tertiary-light":"primary-light",T=k?"Promise Resolved":T?"Cascading Update":5<Z-X?"Update Blocked":"Update",k=[],Q!=null&&k.push(["Component name",Q]),J!=null&&k.push(["Method name",J]),X={start:X,end:Z,detail:{devtools:{properties:k,track:o0,trackGroup:a0,color:q}}},Y?Y.run(performance.measure.bind(performance,T,X)):performance.measure(T,X))}P7=-1.1,j8=0,xq=gq=null,lZ=-1.1,m$=Tz,Tz=-1.1,p8=z4()}if(($&4194048)!==0&&(o1=A5,Z=0<=i7&&i7<A7?A7:i7,X=0<=P6&&P6<A7?A7:P6,Y=0<=g8&&g8<A7?A7:g8,J=0<=Y?Y:0<=X?X:W4,0<=cZ?(s4(256),CK(cZ,J,$,o1)):(dZ&4194048)!==0&&(s4(256),DX(A7,J,o7)),k=Y,q=Iz,K=0<x8,B=uq===uZ,J=W4,Y=A5,Q=c9,T=d9,k1&&(o0="Transition",0<X?X>J&&(X=J):X=J,0<Z?Z>X&&(Z=X):Z=X,0<k?k>Z&&(k=Z):k=Z,Z>k&&q!==null&&(b=K?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,K?"Consecutive":"Event: "+q,k,Z,o0,a0,b)):console.timeStamp(K?"Consecutive":"Event: "+q,k,Z,o0,a0,b)),X>Z&&(Y?Y.run(console.timeStamp.bind(console,"Action",Z,X,o0,a0,"primary-dark")):console.timeStamp("Action",Z,X,o0,a0,"primary-dark")),J>X&&(Z=B?"Promise Resolved":5<J-X?"Update Blocked":"Update",k=[],T!=null&&k.push(["Component name",T]),Q!=null&&k.push(["Method name",Q]),X={start:X,end:J,detail:{devtools:{properties:k,track:o0,trackGroup:a0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,Z,X)):performance.measure(Z,X))),P6=i7=-1.1,uq=0,cZ=-1.1,x8=g8,g8=-1.1,A7=z4()),($&62914560)!==0&&(dZ&62914560)!==0&&(s4(4194304),DX(a9,W4,o7)),($&2080374784)!==0&&(dZ&2080374784)!==0&&(s4(268435456),DX(i9,W4,o7)),X=z.timeoutHandle,X!==uz&&(z.timeoutHandle=uz,RF(X)),X=z.cancelPendingCommit,X!==null&&(z.cancelPendingCommit=null,X()),c6=0,IG(),M1=z,u0=X=D7(z.current,null),x0=$,L1=o4,B6=null,c8=!1,o$=C6(z,$),GH=!1,g1=e7,hz=r4=qH=a8=d8=0,x4=c5=null,GJ=!1,($&8)!==0&&($|=$&32),Y=z.entangledLanes,Y!==0)for(z=z.entanglements,Y&=$;0<Y;)Z=31-E4(Y),J=1<<Z,$|=z[Z],Y&=~J;return T7=$,vY(),z=p9(),1000<z-h9&&(j.recentlyCreatedOwnerStacks=0,h9=z),x6.discardPendingWarnings(),X}function SB(z,$){y0=null,j.H=p5,j.getCurrentStack=null,R7=!1,Q6=null,$===p$||$===rZ?($=eK(),L1=u5):$===aq?($=eK(),L1=lO):L1=$===XH?QH:$!==null&&typeof $==="object"&&typeof $.then==="function"?l5:JJ,B6=$;var X=u0;X===null?(g1=x5,$Z(z,e4($,z.current))):X.mode&j0&&vQ(X)}function DB(){var z=H6.current;return z===null?!0:(x0&4194048)===x0?A6===null?!0:!1:(x0&62914560)===x0||(x0&536870912)!==0?z===A6:!1}function EB(){var z=j.H;return j.H=p5,z===null?p5:z}function fB(){var z=j.A;return j.A=YF,z}function HZ(z){o1===null&&(o1=z._debugTask==null?null:z._debugTask)}function KZ(){g1=l8,c8||(x0&4194048)!==x0&&H6.current!==null||(o$=!0),(d8&134217727)===0&&(a8&134217727)===0||M1===null||v8(M1,x0,r4,!1)}function kG(z,$,X){var Y=z1;z1|=K4;var Z=EB(),J=fB();if(M1!==z||x0!==$){if(N7){var Q=z.memoizedUpdaters;0<Q.size&&(sX(z,x0),Q.clear()),LY(z,$)}d5=null,U$(z,$)}$=!1,Q=g1;z:do try{if(L1!==o4&&u0!==null){var q=u0,K=B6;switch(L1){case QH:IG(),Q=ZJ;break z;case u5:case fz:case mz:case l5:H6.current===null&&($=!0);var B=L1;if(L1=o4,B6=null,O$(z,q,K,B),X&&o$){Q=e7;break z}break;default:B=L1,L1=o4,B6=null,O$(z,q,K,B)}}mB(),Q=g1;break}catch(T){SB(z,T)}while(1);return $&&z.shellSuspendCounter++,VY(),z1=Y,j.H=Z,j.A=J,u0===null&&(M1=null,x0=0,vY()),Q}function mB(){for(;u0!==null;)hB(u0)}function jW(z,$){var X=z1;z1|=K4;var Y=EB(),Z=fB();if(M1!==z||x0!==$){if(N7){var J=z.memoizedUpdaters;0<J.size&&(sX(z,x0),J.clear()),LY(z,$)}d5=null,HJ=L4()+aO,U$(z,$)}else o$=C6(z,$);z:do try{if(L1!==o4&&u0!==null)$:switch($=u0,J=B6,L1){case JJ:L1=o4,B6=null,O$(z,$,J,JJ);break;case fz:case mz:if(tK(J)){L1=o4,B6=null,pB($);break}$=function(){L1!==fz&&L1!==mz||M1!==z||(L1=QJ),U7(z)},J.then($,$);break z;case u5:L1=QJ;break z;case lO:L1=JH;break z;case QJ:tK(J)?(L1=o4,B6=null,pB($)):(L1=o4,B6=null,O$(z,$,J,QJ));break;case JH:var Q=null;switch(u0.tag){case 26:Q=u0.memoizedState;case 5:case 27:var q=u0;if(Q?VU(Q):q.stateNode.complete){L1=o4,B6=null;var K=q.sibling;if(K!==null)u0=K;else{var B=q.return;B!==null?(u0=B,_Z(B)):u0=null}break $}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}L1=o4,B6=null,O$(z,$,J,JH);break;case l5:L1=o4,B6=null,O$(z,$,J,l5);break;case QH:IG(),g1=ZJ;break z;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}j.actQueue!==null?mB():gW();break}catch(T){SB(z,T)}while(1);if(VY(),j.H=Y,j.A=Z,z1=X,u0!==null)return e7;return M1=null,x0=0,vY(),g1}function gW(){for(;u0!==null&&!p3();)hB(u0)}function hB(z){var $=z.alternate;(z.mode&j0)!==T0?(AQ(z),$=o(z,FG,$,z,T7),vQ(z)):$=o(z,FG,$,z,T7),z.memoizedProps=z.pendingProps,$===null?_Z(z):u0=$}function pB(z){var $=o(z,xW,z);z.memoizedProps=z.pendingProps,$===null?_Z(z):u0=$}function xW(z){var $=z.alternate,X=(z.mode&j0)!==T0;switch(X&&AQ(z),z.tag){case 15:case 0:$=r_($,z,z.pendingProps,z.type,void 0,x0);break;case 11:$=r_($,z,z.pendingProps,z.type.render,z.ref,x0);break;case 5:pQ(z);default:XB($,z),z=u0=hK(z,T7),$=FG($,z,T7)}return X&&vQ(z),$}function O$(z,$,X,Y){VY(),pQ($),j$=null,E5=0;var Z=$.return;try{if(vW(z,Z,$,X,x0)){g1=x5,$Z(z,e4(X,z.current)),u0=null;return}}catch(J){if(Z!==null)throw u0=Z,J;g1=x5,$Z(z,e4(X,z.current)),u0=null;return}if($.flags&32768){if(n0||Y===JJ)z=!0;else if(o$||(x0&536870912)!==0)z=!1;else if(c8=z=!0,Y===fz||Y===mz||Y===u5||Y===l5)Y=H6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);jB($,z)}else _Z($)}function _Z(z){var $=z;do{if(($.flags&32768)!==0){jB($,c8);return}var X=$.alternate;if(z=$.return,AQ($),X=o($,kW,X,$,T7),($.mode&j0)!==T0&&aK($),X!==null){u0=X;return}if($=$.sibling,$!==null){u0=$;return}u0=$=z}while($!==null);g1===e7&&(g1=uO)}function jB(z,$){do{var X=yW(z.alternate,z);if(X!==null){X.flags&=32767,u0=X;return}if((z.mode&j0)!==T0){aK(z),X=z.actualDuration;for(var Y=z.child;Y!==null;)X+=Y.actualDuration,Y=Y.sibling;z.actualDuration=X}if(X=z.return,X!==null&&(X.flags|=32768,X.subtreeFlags=0,X.deletions=null),!$&&(z=z.sibling,z!==null)){u0=z;return}u0=z=X}while(z!==null);g1=ZJ,u0=null}function yG(z,$,X,Y,Z,J,Q,q,K,B,T,k,b,D){z.cancelPendingCommit=null;do tX();while(J4!==o8);if(x6.flushLegacyContextWarning(),x6.flushPendingUnsafeLifecycleWarnings(),(z1&(K4|_6))!==F4)throw Error("Should not already be working.");if(s4(X),B===Ez?KQ(b,D,X,o1):Y!==null?BW(b,D,X,Y,$!==null&&$.alternate!==null&&$.alternate.memoizedState.isDehydrated&&($.flags&256)!==0,o1):_W(b,D,X,o1),$!==null){if(X===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),$===z.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(J=$.lanes|$.childLanes,J|=fq,OY(z,X,J,Q,q,K),z===M1&&(u0=M1=null,x0=0),r$=$,r8=z,c6=X,_H=J,UH=Z,sO=Y,BH=D,eO=k,d6=KJ,zL=null,$.actualDuration!==0||($.subtreeFlags&10256)!==0||($.flags&10256)!==0?(z.callbackNode=null,z.callbackPriority=0,aW(M$,function(){return t5=window.event,d6===KJ&&(d6=KH),cB(),null})):(z.callbackNode=null,z.callbackPriority=0),a7=null,h8=z4(),k!==null&&UW(D,h8,k,o1),Y=($.flags&13878)!==0,($.subtreeFlags&13878)!==0||Y){Y=j.T,j.T=null,Z=B1.p,B1.p=G6,Q=z1,z1|=_6;try{fW(z,$,X)}finally{z1=Q,B1.p=Z,j.T=Y}}J4=oO,gB(),xB(),uB()}}function gB(){if(J4===oO){J4=o8;var z=r8,$=r$,X=c6,Y=($.flags&13878)!==0;if(($.subtreeFlags&13878)!==0||Y){Y=j.T,j.T=null;var Z=B1.p;B1.p=G6;var J=z1;z1|=_6;try{a$=X,i$=z,EY(),RB($,z),i$=a$=null,X=AH;var Q=IK(z.containerInfo),q=X.focusedElem,K=X.selectionRange;if(Q!==q&&q&&q.ownerDocument&&TK(q.ownerDocument.documentElement,q)){if(K!==null&&GQ(q)){var{start:B,end:T}=K;if(T===void 0&&(T=B),"selectionStart"in q)q.selectionStart=B,q.selectionEnd=Math.min(T,q.value.length);else{var k=q.ownerDocument||document,b=k&&k.defaultView||window;if(b.getSelection){var D=b.getSelection(),z0=q.textContent.length,J0=Math.min(K.start,z0),P1=K.end===void 0?J0:Math.min(K.end,z0);!D.extend&&J0>P1&&(Q=P1,P1=J0,J0=Q);var s0=vK(q,J0),w=vK(q,P1);if(s0&&w&&(D.rangeCount!==1||D.anchorNode!==s0.node||D.anchorOffset!==s0.offset||D.focusNode!==w.node||D.focusOffset!==w.offset)){var A=k.createRange();A.setStart(s0.node,s0.offset),D.removeAllRanges(),J0>P1?(D.addRange(A),D.extend(w.node,w.offset)):(A.setEnd(w.node,w.offset),D.addRange(A))}}}}k=[];for(D=q;D=D.parentNode;)D.nodeType===1&&k.push({element:D,left:D.scrollLeft,top:D.scrollTop});typeof q.focus==="function"&&q.focus();for(q=0;q<k.length;q++){var v=k[q];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}TJ=!!PH,AH=PH=null}finally{z1=J,B1.p=Z,j.T=Y}}z.current=$,J4=rO}}function xB(){if(J4===rO){J4=o8;var z=zL;if(z!==null){h8=z4();var $=d7,X=h8;!k1||X<=$||(o7?o7.run(console.timeStamp.bind(console,z,$,X,o0,a0,"secondary-light")):console.timeStamp(z,$,X,o0,a0,"secondary-light"))}z=r8,$=r$,X=c6;var Y=($.flags&8772)!==0;if(($.subtreeFlags&8772)!==0||Y){Y=j.T,j.T=null;var Z=B1.p;B1.p=G6;var J=z1;z1|=_6;try{a$=X,i$=z,EY(),BB(z,$.alternate,$),i$=a$=null}finally{z1=J,B1.p=Z,j.T=Y}}z=BH,$=eO,d7=z4(),z=$===null?z:h8,$=d7,X=d6===HH,Y=o1,a7!==null?SK(z,$,a7,!1,Y):!k1||$<=z||(Y?Y.run(console.timeStamp.bind(console,X?"Commit Interrupted View Transition":"Commit",z,$,o0,a0,X?"error":"secondary-dark")):console.timeStamp(X?"Commit Interrupted View Transition":"Commit",z,$,o0,a0,X?"error":"secondary-dark")),J4=nO}}function uB(){if(J4===tO||J4===nO){if(J4===tO){var z=d7;d7=z4();var $=d7,X=d6===HH;!k1||$<=z||(o7?o7.run(console.timeStamp.bind(console,X?"Interrupted View Transition":"Starting Animation",z,$,o0,a0,X?"error":"secondary-light")):console.timeStamp(X?"Interrupted View Transition":"Starting Animation",z,$,o0,a0,X?" error":"secondary-light")),d6!==HH&&(d6=iO)}J4=o8,j3(),z=r8;var Y=r$;$=c6,X=sO;var Z=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;Z?J4=_J:(J4=o8,r$=r8=null,lB(z,z.pendingLanes),pz=0,i5=null);var J=z.pendingLanes;if(J===0&&(i8=null),Z||oB(z),J=MX($),Y=Y.stateNode,y4&&typeof y4.onCommitFiberRoot==="function")try{var Q=(Y.current.flags&128)===128;switch(J){case G6:var q=Uq;break;case j6:q=Oq;break;case M7:q=M$;break;case yZ:q=Lq;break;default:q=M$}y4.onCommitFiberRoot(w$,Y,q,Q)}catch(k){F7||(F7=!0,console.error("React instrumentation encountered an error: %o",k))}if(N7&&z.memoizedUpdaters.clear(),hW(),X!==null){Q=j.T,q=B1.p,B1.p=G6,j.T=null;try{var K=z.onRecoverableError;for(Y=0;Y<X.length;Y++){var B=X[Y],T=uW(B.stack);o(B.source,K,B.value,T)}}finally{j.T=Q,B1.p=q}}(c6&3)!==0&&tX(),U7(z),J=z.pendingLanes,($&261930)!==0&&(J&42)!==0?(iZ=!0,z===OH?a5++:(a5=0,OH=z)):a5=0,Z||wz($,d7),eX(0,!1)}}function uW(z){return z={componentStack:z},Object.defineProperty(z,"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.')}}),z}function lB(z,$){(z.pooledCacheLanes&=$)===0&&($=z.pooledCache,$!=null&&(z.pooledCache=null,fX($)))}function tX(){return gB(),xB(),uB(),cB()}function cB(){if(J4!==_J)return!1;var z=r8,$=_H;_H=0;var X=MX(c6),Y=M7===0||M7>X?M7:X;X=j.T;var Z=B1.p;try{B1.p=Y,j.T=null;var J=UH;UH=null,Y=r8;var Q=c6;if(J4=o8,r$=r8=null,c6=0,(z1&(K4|_6))!==F4)throw Error("Cannot flush passive effects while already rendering.");s4(Q),LH=!0,BJ=!1;var q=0;if(a7=null,q=L4(),d6===iO)DX(d7,q,o7);else{var K=d7,B=q,T=d6===KH;!k1||B<=K||(o1?o1.run(console.timeStamp.bind(console,T?"Waiting for Paint":"Waiting",K,B,o0,a0,"secondary-light")):console.timeStamp(T?"Waiting for Paint":"Waiting",K,B,o0,a0,"secondary-light"))}K=z1,z1|=_6;var k=Y.current;EY(),vB(k);var b=Y.current;k=BH,EY(),wB(Y,b,Q,J,k),oB(Y),z1=K;var D=L4();if(b=q,k=o1,a7!==null?SK(b,D,a7,!0,k):!k1||D<=b||(k?k.run(console.timeStamp.bind(console,"Remaining Effects",b,D,o0,a0,"secondary-dark")):console.timeStamp("Remaining Effects",b,D,o0,a0,"secondary-dark")),wz(Q,D),eX(0,!1),BJ?Y===i5?pz++:(pz=0,i5=Y):pz=0,BJ=LH=!1,y4&&typeof y4.onPostCommitFiberRoot==="function")try{y4.onPostCommitFiberRoot(w$,Y)}catch(J0){F7||(F7=!0,console.error("React instrumentation encountered an error: %o",J0))}var z0=Y.current.stateNode;return z0.effectDuration=0,z0.passiveEffectDuration=0,!0}finally{B1.p=Z,j.T=X,lB(z,$)}}function dB(z,$,X){$=e4(X,$),iK($),$=GG(z.stateNode,$,2),z=w8(z,$,2),z!==null&&(S6(z,2),U7(z))}function _1(z,$,X){if(n$=!1,z.tag===3)dB(z,z,X);else{for(;$!==null;){if($.tag===3){dB($,z,X);return}if($.tag===1){var Y=$.stateNode;if(typeof $.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(i8===null||!i8.has(Y))){z=e4(X,z),iK(z),X=qG(2),Y=w8($,X,2),Y!==null&&(HG(X,Y,$,z),S6(Y,2),U7(Y));return}}$=$.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.
|
|
142
|
+
|
|
143
|
+
Error message:
|
|
144
|
+
|
|
145
|
+
%s`,X)}}function VG(z,$,X){var Y=z.pingCache;if(Y===null){Y=z.pingCache=new JF;var Z=new Set;Y.set($,Z)}else Z=Y.get($),Z===void 0&&(Z=new Set,Y.set($,Z));Z.has(X)||(GH=!0,Z.add(X),Y=lW.bind(null,z,$,X),N7&&sX(z,X),$.then(Y,Y))}function lW(z,$,X){var Y=z.pingCache;Y!==null&&Y.delete($),z.pingedLanes|=z.suspendedLanes&X,z.warmLanes&=~X,(X&127)!==0?0>P7&&(p8=P7=z4(),b5=xZ("Promise Resolved"),j8=uZ):(X&4194048)!==0&&0>P6&&(A7=P6=z4(),A5=xZ("Promise Resolved"),uq=uZ),kB()&&j.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
146
|
+
|
|
147
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
148
|
+
|
|
149
|
+
act(() => {
|
|
150
|
+
/* finish loading suspended data */
|
|
151
|
+
});
|
|
152
|
+
/* assert on the output */
|
|
153
|
+
|
|
154
|
+
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`),M1===z&&(x0&X)===X&&(g1===l8||g1===YJ&&(x0&62914560)===x0&&L4()-qJ<dO?(z1&K4)===F4&&U$(z,0):qH|=X,hz===x0&&(hz=0)),U7(z)}function aB(z,$){$===0&&($=n6()),z=k4(z,$),z!==null&&(S6(z,$),U7(z))}function cW(z){var $=z.memoizedState,X=0;$!==null&&(X=$.retryLane),aB(z,X)}function dW(z,$){var X=0;switch(z.tag){case 31:case 13:var{stateNode:Y,memoizedState:Z}=z;Z!==null&&(X=Z.retryLane);break;case 19:Y=z.stateNode;break;case 22:Y=z.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}Y!==null&&Y.delete($),aB(z,X)}function CG(z,$,X){if(($.subtreeFlags&67117056)!==0)for($=$.child;$!==null;){var Y=z,Z=$,J=Z.type===PZ;J=X||J,Z.tag!==22?Z.flags&67108864?J&&o(Z,iB,Y,Z):CG(Y,Z,J):Z.memoizedState===null&&(J&&Z.flags&8192?o(Z,iB,Y,Z):Z.subtreeFlags&67108864&&o(Z,CG,Y,Z,J)),$=$.sibling}}function iB(z,$){$1(!0);try{NB($),TB($),MB(z,$.alternate,$,!1),bB(z,$,0,null,!1,0)}finally{$1(!1)}}function oB(z){var $=!0;z.current.mode&(V4|g6)||($=!1),CG(z,z.current,$)}function rB(z){if((z1&K4)===F4){var $=z.tag;if($===3||$===1||$===0||$===11||$===14||$===15){if($=C(z)||"ReactComponent",UJ!==null){if(UJ.has($))return;UJ.add($)}else UJ=new Set([$]);o(z,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 sX(z,$){N7&&z.memoizedUpdaters.forEach(function(X){K8(z,X,$)})}function aW(z,$){var X=j.actQueue;return X!==null?(X.push($),qF):Bq(z,$)}function iW(z){kB()&&j.actQueue===null&&o(z,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
155
|
+
|
|
156
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
157
|
+
|
|
158
|
+
act(() => {
|
|
159
|
+
/* fire events that update state */
|
|
160
|
+
});
|
|
161
|
+
/* assert on the output */
|
|
162
|
+
|
|
163
|
+
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`,C(z))})}function U7(z){z!==t$&&z.next===null&&(t$===null?OJ=t$=z:t$=t$.next=z),LJ=!0,j.actQueue!==null?RH||(RH=!0,eB()):WH||(WH=!0,eB())}function eX(z,$){if(!FH&&LJ){FH=!0;do{var X=!1;for(var Y=OJ;Y!==null;){if(!$)if(z!==0){var Z=Y.pendingLanes;if(Z===0)var J=0;else{var{suspendedLanes:Q,pingedLanes:q}=Y;J=(1<<31-E4(42|z)+1)-1,J&=Z&~(Q&~q),J=J&201326741?J&201326741|1:J?J|2:0}J!==0&&(X=!0,sB(Y,J))}else J=x0,J=ez(Y,Y===M1?J:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==uz),(J&3)===0||C6(Y,J)||(X=!0,sB(Y,J));Y=Y.next}}while(X);FH=!1}}function oW(){t5=window.event,SG()}function SG(){LJ=RH=WH=!1;var z=0;n8!==0&&$3()&&(z=n8);for(var $=L4(),X=null,Y=OJ;Y!==null;){var Z=Y.next,J=nB(Y,$);if(J===0)Y.next=null,X===null?OJ=Z:X.next=Z,Z===null&&(t$=X);else if(X=Y,z!==0||(J&3)!==0)LJ=!0;Y=Z}J4!==o8&&J4!==_J||eX(z,!1),n8!==0&&(n8=0)}function nB(z,$){for(var{suspendedLanes:X,pingedLanes:Y,expirationTimes:Z}=z,J=z.pendingLanes&-62914561;0<J;){var Q=31-E4(J),q=1<<Q,K=Z[Q];if(K===-1){if((q&X)===0||(q&Y)!==0)Z[Q]=eJ(q,$)}else K<=$&&(z.expiredLanes|=q);J&=~q}if($=M1,X=x0,X=ez(z,z===$?X:0,z.cancelPendingCommit!==null||z.timeoutHandle!==uz),Y=z.callbackNode,X===0||z===$&&(L1===fz||L1===mz)||z.cancelPendingCommit!==null)return Y!==null&&DG(Y),z.callbackNode=null,z.callbackPriority=0;if((X&3)===0||C6(z,X)){if($=X&-X,$!==z.callbackPriority||j.actQueue!==null&&Y!==NH)DG(Y);else return $;switch(MX(X)){case G6:case j6:X=Oq;break;case M7:X=M$;break;case yZ:X=Lq;break;default:X=M$}return Y=tB.bind(null,z),j.actQueue!==null?(j.actQueue.push(Y),X=NH):X=Bq(X,Y),z.callbackPriority=$,z.callbackNode=X,$}return Y!==null&&DG(Y),z.callbackPriority=2,z.callbackNode=null,2}function tB(z,$){if(iZ=aZ=!1,t5=window.event,J4!==o8&&J4!==_J)return z.callbackNode=null,z.callbackPriority=0,null;var X=z.callbackNode;if(d6===KJ&&(d6=KH),tX()&&z.callbackNode!==X)return null;var Y=x0;if(Y=ez(z,z===M1?Y:0,z.cancelPendingCommit!==null||z.timeoutHandle!==uz),Y===0)return null;return VB(z,Y,$),nB(z,L4()),z.callbackNode!=null&&z.callbackNode===X?tB.bind(null,z):null}function sB(z,$){if(tX())return null;aZ=iZ,iZ=!1,VB(z,$,!0)}function DG(z){z!==NH&&z!==null&&h3(z)}function eB(){j.actQueue!==null&&j.actQueue.push(function(){return SG(),null}),FF(function(){(z1&(K4|_6))!==F4?Bq(Uq,oW):SG()})}function EG(){if(n8===0){var z=kz;z===0&&(z=TZ,TZ<<=1,(TZ&261888)===0&&(TZ=256)),n8=z}return n8}function zU(z){if(z==null||typeof z==="symbol"||typeof z==="boolean")return null;if(typeof z==="function")return z;return m0(z,"action"),VX(""+z)}function $U(z,$){var X=$.ownerDocument.createElement("input");return X.name=$.name,X.value=$.value,z.id&&X.setAttribute("form",z.id),$.parentNode.insertBefore(X,$),z=new FormData(z),X.parentNode.removeChild(X),z}function rW(z,$,X,Y,Z){if($==="submit"&&X&&X.stateNode===Z){var J=zU((Z[f4]||null).action),Q=Y.submitter;Q&&($=($=Q[f4]||null)?zU($.formAction):Q.getAttribute("formAction"),$!==null&&(J=$,Q=null));var q=new EZ("action","action",null,Y,Z);z.push({event:q,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(n8!==0){var K=Q?$U(Z,Q):new FormData(Z),B={pending:!0,data:K,method:Z.method,action:J};Object.freeze(B),zG(X,B,null,K)}}else typeof J==="function"&&(q.preventDefault(),K=Q?$U(Z,Q):new FormData(Z),B={pending:!0,data:K,method:Z.method,action:J},Object.freeze(B),zG(X,B,J,K))},currentTarget:Z}]})}}function BZ(z,$,X){z.currentTarget=X;try{$(z)}catch(Y){Cq(Y)}z.currentTarget=null}function XU(z,$){$=($&4)!==0;for(var X=0;X<z.length;X++){var Y=z[X];z:{var Z=void 0,J=Y.event;if(Y=Y.listeners,$)for(var Q=Y.length-1;0<=Q;Q--){var q=Y[Q],K=q.instance,B=q.currentTarget;if(q=q.listener,K!==Z&&J.isPropagationStopped())break z;K!==null?o(K,BZ,J,q,B):BZ(J,q,B),Z=K}else for(Q=0;Q<Y.length;Q++){if(q=Y[Q],K=q.instance,B=q.currentTarget,q=q.listener,K!==Z&&J.isPropagationStopped())break z;K!==null?o(K,BZ,J,q,B):BZ(J,q,B),Z=K}}}}function t0(z,$){MH.has(z)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',z);var X=$[Wq];X===void 0&&(X=$[Wq]=new Set);var Y=z+"__bubble";X.has(Y)||(YU($,z,2,!1),X.add(Y))}function fG(z,$,X){MH.has(z)&&!$&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',z);var Y=0;$&&(Y|=4),YU(X,z,Y,$)}function mG(z){if(!z[WJ]){z[WJ]=!0,eU.forEach(function(X){X!=="selectionchange"&&(MH.has(X)||fG(X,!1,z),fG(X,!0,z))});var $=z.nodeType===9?z:z.ownerDocument;$===null||$[WJ]||($[WJ]=!0,fG("selectionchange",!1,$))}}function YU(z,$,X,Y){switch(mU($)){case G6:var Z=y3;break;case j6:Z=V3;break;default:Z=sG}X=Z.bind(null,$,X,z),Z=void 0,!wq||$!=="touchstart"&&$!=="touchmove"&&$!=="wheel"||(Z=!0),Y?Z!==void 0?z.addEventListener($,X,{capture:!0,passive:Z}):z.addEventListener($,X,!0):Z!==void 0?z.addEventListener($,X,{passive:Z}):z.addEventListener($,X,!1)}function hG(z,$,X,Y,Z){var J=Y;if(($&1)===0&&($&2)===0&&Y!==null)z:for(;;){if(Y===null)return;var Q=Y.tag;if(Q===3||Q===4){var q=Y.stateNode.containerInfo;if(q===Z)break;if(Q===4)for(Q=Y.return;Q!==null;){var K=Q.tag;if((K===3||K===4)&&Q.stateNode.containerInfo===Z)return;Q=Q.return}for(;q!==null;){if(Q=L6(q),Q===null)return;if(K=Q.tag,K===5||K===6||K===26||K===27){Y=J=Q;continue z}q=q.parentNode}}Y=Y.return}OK(function(){var B=J,T=JQ(X),k=[];z:{var b=m9.get(z);if(b!==void 0){var D=EZ,z0=z;switch(z){case"keypress":if(MY(X)===0)break z;case"keydown":case"keyup":D=AR;break;case"focusin":z0="focus",D=vq;break;case"focusout":z0="blur",D=vq;break;case"beforeblur":case"afterblur":D=vq;break;case"click":if(X.button===2)break z;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=b9;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=BR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=IR;break;case S9:case D9:case E9:D=LR;break;case f9:D=yR;break;case"scroll":case"scrollend":D=KR;break;case"wheel":D=CR;break;case"copy":case"cut":case"paste":D=RR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=A9;break;case"toggle":case"beforetoggle":D=DR}var J0=($&4)!==0,P1=!J0&&(z==="scroll"||z==="scrollend"),s0=J0?b!==null?b+"Capture":null:b;J0=[];for(var w=B,A;w!==null;){var v=w;if(A=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||A===null||s0===null||(v=CX(w,s0),v!=null&&J0.push(z5(w,v,A))),P1)break;w=w.return}0<J0.length&&(b=new D(b,z0,null,X,T),k.push({event:b,listeners:J0}))}}if(($&7)===0){z:{if(b=z==="mouseover"||z==="pointerover",D=z==="mouseout"||z==="pointerout",b&&X!==_5&&(z0=X.relatedTarget||X.fromElement)&&(L6(z0)||z0[C8]))break z;if(D||b){if(b=T.window===T?T:(b=T.ownerDocument)?b.defaultView||b.parentWindow:window,D){if(z0=X.relatedTarget||X.toElement,D=B,z0=z0?L6(z0):null,z0!==null&&(P1=i(z0),J0=z0.tag,z0!==P1||J0!==5&&J0!==27&&J0!==6))z0=null}else D=null,z0=B;if(D!==z0){if(J0=b9,v="onMouseLeave",s0="onMouseEnter",w="mouse",z==="pointerout"||z==="pointerover")J0=A9,v="onPointerLeave",s0="onPointerEnter",w="pointer";if(P1=D==null?b:_8(D),A=z0==null?b:_8(z0),b=new J0(v,w+"leave",D,X,T),b.target=P1,b.relatedTarget=A,v=null,L6(T)===B&&(J0=new J0(s0,w+"enter",z0,X,T),J0.target=A,J0.relatedTarget=P1,v=J0),P1=v,D&&z0)$:{J0=nW,s0=D,w=z0,A=0;for(v=s0;v;v=J0(v))A++;v=0;for(var x=w;x;x=J0(x))v++;for(;0<A-v;)s0=J0(s0),A--;for(;0<v-A;)w=J0(w),v--;for(;A--;){if(s0===w||w!==null&&s0===w.alternate){J0=s0;break $}s0=J0(s0),w=J0(w)}J0=null}else J0=null;D!==null&&ZU(k,b,D,J0,!1),z0!==null&&P1!==null&&ZU(k,P1,z0,J0,!0)}}}z:{if(b=B?_8(B):window,D=b.nodeName&&b.nodeName.toLowerCase(),D==="select"||D==="input"&&b.type==="file")var X0=wK;else if(NK(b))if(V9)X0=qW;else{X0=QW;var V0=JW}else D=b.nodeName,!D||D.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?B&&yX(B.elementType)&&(X0=wK):X0=GW;if(X0&&(X0=X0(z,B))){MK(k,X0,X,T);break z}V0&&V0(z,b,B),z==="focusout"&&B&&b.type==="number"&&B.memoizedProps.value!=null&&vX(b,"number",b.value)}switch(V0=B?_8(B):window,z){case"focusin":if(NK(V0)||V0.contentEditable==="true")k$=V0,Iq=B,F5=null;break;case"focusout":F5=Iq=k$=null;break;case"mousedown":kq=!0;break;case"contextmenu":case"mouseup":case"dragend":kq=!1,kK(k,X,T);break;case"selectionchange":if(hR)break;case"keydown":case"keyup":kK(k,X,T)}var F0;if(Tq)z:{switch(z){case"compositionstart":var O0="onCompositionStart";break z;case"compositionend":O0="onCompositionEnd";break z;case"compositionupdate":O0="onCompositionUpdate";break z}O0=void 0}else I$?RK(z,X)&&(O0="onCompositionEnd"):z==="keydown"&&X.keyCode===v9&&(O0="onCompositionStart");if(O0&&(T9&&X.locale!=="ko"&&(I$||O0!=="onCompositionStart"?O0==="onCompositionEnd"&&I$&&(F0=LK()):(S8=T,bq=("value"in S8)?S8.value:S8.textContent,I$=!0)),V0=UZ(B,O0),0<V0.length&&(O0=new P9(O0,z,null,X,T),k.push({event:O0,listeners:V0}),F0?O0.data=F0:(F0=FK(X),F0!==null&&(O0.data=F0)))),F0=fR?$W(z,X):XW(z,X))O0=UZ(B,"onBeforeInput"),0<O0.length&&(V0=new NR("onBeforeInput","beforeinput",null,X,T),k.push({event:V0,listeners:O0}),V0.data=F0);rW(k,z,B,X,T)}XU(k,$)})}function z5(z,$,X){return{instance:z,listener:$,currentTarget:X}}function UZ(z,$){for(var X=$+"Capture",Y=[];z!==null;){var Z=z,J=Z.stateNode;if(Z=Z.tag,Z!==5&&Z!==26&&Z!==27||J===null||(Z=CX(z,X),Z!=null&&Y.unshift(z5(z,Z,J)),Z=CX(z,$),Z!=null&&Y.push(z5(z,Z,J))),z.tag===3)return Y;z=z.return}return[]}function nW(z){if(z===null)return null;do z=z.return;while(z&&z.tag!==5&&z.tag!==27);return z?z:null}function ZU(z,$,X,Y,Z){for(var J=$._reactName,Q=[];X!==null&&X!==Y;){var q=X,K=q.alternate,B=q.stateNode;if(q=q.tag,K!==null&&K===Y)break;q!==5&&q!==26&&q!==27||B===null||(K=B,Z?(B=CX(X,J),B!=null&&Q.unshift(z5(X,B,K))):Z||(B=CX(X,J),B!=null&&Q.push(z5(X,B,K)))),X=X.return}Q.length!==0&&z.push({event:$,listeners:Q})}function pG(z,$){t2(z,$),z!=="input"&&z!=="textarea"&&z!=="select"||$==null||$.value!==null||M9||(M9=!0,z==="select"&&$.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.",z):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",z));var X={registrationNameDependencies:bz,possibleRegistrationNames:Rq};yX(z)||typeof $.is==="string"||e2(z,$,X),$.contentEditable&&!$.suppressContentEditableWarning&&$.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 O4(z,$,X,Y){$!==X&&(X=T8(X),T8($)!==X&&(Y[z]=$))}function tW(z,$,X){$.forEach(function(Y){X[GU(Y)]=Y==="style"?gG(z):z.getAttribute(Y)})}function O7(z,$){$===!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.",z,z,z):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",z,typeof $)}function JU(z,$){return z=z.namespaceURI===CZ||z.namespaceURI===P$?z.ownerDocument.createElementNS(z.namespaceURI,z.tagName):z.ownerDocument.createElement(z.tagName),z.innerHTML=$,z.innerHTML}function T8(z){return U4(z)&&(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.",d1(z)),V7(z)),(typeof z==="string"?z:""+z).replace(HF,`
|
|
164
|
+
`).replace(KF,"")}function QU(z,$){return $=T8($),T8(z)===$?!0:!1}function F1(z,$,X,Y,Z,J){switch(X){case"children":if(typeof Y==="string")NY(Y,$,!1),$==="body"||$==="textarea"&&Y===""||kX(z,Y);else if(typeof Y==="number"||typeof Y==="bigint")NY(""+Y,$,!1),$!=="body"&&kX(z,""+Y);break;case"className":G1(z,"class",Y);break;case"tabIndex":G1(z,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":G1(z,X,Y);break;case"style":_K(z,Y,J);break;case"data":if($!=="object"){G1(z,"data",Y);break}case"src":case"href":if(Y===""&&($!=="a"||X!=="href")){X==="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.',X,X):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.',X,X),z.removeAttribute(X);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){z.removeAttribute(X);break}m0(Y,X),Y=VX(""+Y),z.setAttribute(X,Y);break;case"action":case"formAction":if(Y!=null&&($==="form"?X==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(Z.encType==null&&Z.method==null||NJ||(NJ=!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.")),Z.target==null||FJ||(FJ=!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."))):$==="input"||$==="button"?X==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):$!=="input"||Z.type==="submit"||Z.type==="image"||RJ?$!=="button"||Z.type==null||Z.type==="submit"||RJ?typeof Y==="function"&&(Z.name==null||JL||(JL=!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.')),Z.formEncType==null&&Z.formMethod==null||NJ||(NJ=!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.")),Z.formTarget==null||FJ||(FJ=!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."))):(RJ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(RJ=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):X==="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 Y==="function"){z.setAttribute(X,"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 J==="function"&&(X==="formAction"?($!=="input"&&F1(z,$,"name",Z.name,Z,null),F1(z,$,"formEncType",Z.formEncType,Z,null),F1(z,$,"formMethod",Z.formMethod,Z,null),F1(z,$,"formTarget",Z.formTarget,Z,null)):(F1(z,$,"encType",Z.encType,Z,null),F1(z,$,"method",Z.method,Z,null),F1(z,$,"target",Z.target,Z,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){z.removeAttribute(X);break}m0(Y,X),Y=VX(""+Y),z.setAttribute(X,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&O7(X,Y),z.onclick=S7);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&O7(X,Y),t0("scroll",z));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&O7(X,Y),t0("scrollend",z));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=Y.__html,X!=null){if(Z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");z.innerHTML=X}}break;case"multiple":z.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":z.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){z.removeAttribute("xlink:href");break}m0(Y,X),X=VX(""+Y),z.setAttributeNS(jz,"xlink:href",X);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(m0(Y,X),z.setAttribute(X,""+Y)):z.removeAttribute(X);break;case"inert":Y!==""||MJ[X]||(MJ[X]=!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.",X));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":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?z.setAttribute(X,""):z.removeAttribute(X);break;case"capture":case"download":Y===!0?z.setAttribute(X,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(m0(Y,X),z.setAttribute(X,Y)):z.removeAttribute(X);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(m0(Y,X),z.setAttribute(X,Y)):z.removeAttribute(X);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?z.removeAttribute(X):(m0(Y,X),z.setAttribute(X,Y));break;case"popover":t0("beforetoggle",z),t0("toggle",z),AX(z,"popover",Y);break;case"xlinkActuate":T1(z,jz,"xlink:actuate",Y);break;case"xlinkArcrole":T1(z,jz,"xlink:arcrole",Y);break;case"xlinkRole":T1(z,jz,"xlink:role",Y);break;case"xlinkShow":T1(z,jz,"xlink:show",Y);break;case"xlinkTitle":T1(z,jz,"xlink:title",Y);break;case"xlinkType":T1(z,jz,"xlink:type",Y);break;case"xmlBase":T1(z,wH,"xml:base",Y);break;case"xmlLang":T1(z,wH,"xml:lang",Y);break;case"xmlSpace":T1(z,wH,"xml:space",Y);break;case"is":J!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),AX(z,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":QL||Y==null||typeof Y!=="object"||(QL=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"?(X=BK(X),AX(z,X,Y)):bz.hasOwnProperty(X)&&Y!=null&&typeof Y!=="function"&&O7(X,Y)}}function jG(z,$,X,Y,Z,J){switch(X){case"style":_K(z,Y,J);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=Y.__html,X!=null){if(Z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");z.innerHTML=X}}break;case"children":typeof Y==="string"?kX(z,Y):(typeof Y==="number"||typeof Y==="bigint")&&kX(z,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&O7(X,Y),t0("scroll",z));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&O7(X,Y),t0("scrollend",z));break;case"onClick":Y!=null&&(typeof Y!=="function"&&O7(X,Y),z.onclick=S7);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(bz.hasOwnProperty(X))Y!=null&&typeof Y!=="function"&&O7(X,Y);else z:{if(X[0]==="o"&&X[1]==="n"&&(Z=X.endsWith("Capture"),$=X.slice(2,Z?X.length-7:void 0),J=z[f4]||null,J=J!=null?J[X]:null,typeof J==="function"&&z.removeEventListener($,J,Z),typeof Y==="function")){typeof J!=="function"&&J!==null&&(X in z?z[X]=null:z.hasAttribute(X)&&z.removeAttribute(X)),z.addEventListener($,Y,Z);break z}X in z?z[X]=Y:Y===!0?z.setAttribute(X,""):AX(z,X,Y)}}}function b4(z,$,X){switch(pG($,X),$){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":t0("error",z),t0("load",z);var Y=!1,Z=!1,J;for(J in X)if(X.hasOwnProperty(J)){var Q=X[J];if(Q!=null)switch(J){case"src":Y=!0;break;case"srcSet":Z=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F1(z,$,J,Q,X,null)}}Z&&F1(z,$,"srcSet",X.srcSet,X,null),Y&&F1(z,$,"src",X.src,X,null);return;case"input":O8("input",X),t0("invalid",z);var q=J=Q=Z=null,K=null,B=null;for(Y in X)if(X.hasOwnProperty(Y)){var T=X[Y];if(T!=null)switch(Y){case"name":Z=T;break;case"type":Q=T;break;case"checked":K=T;break;case"defaultChecked":B=T;break;case"value":J=T;break;case"defaultValue":q=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F1(z,$,Y,T,X,null)}}D6(z,X),z$(z,J,q,K,B,Q,Z,!1);return;case"select":O8("select",X),t0("invalid",z),Y=Q=J=null;for(Z in X)if(X.hasOwnProperty(Z)&&(q=X[Z],q!=null))switch(Z){case"value":J=q;break;case"defaultValue":Q=q;break;case"multiple":Y=q;default:F1(z,$,Z,q,X,null)}K1(z,X),$=J,X=Q,z.multiple=!!Y,$!=null?W0(z,!!Y,$,!1):X!=null&&W0(z,!!Y,X,!0);return;case"textarea":O8("textarea",X),t0("invalid",z),J=Z=Y=null;for(Q in X)if(X.hasOwnProperty(Q)&&(q=X[Q],q!=null))switch(Q){case"value":Y=q;break;case"defaultValue":Z=q;break;case"children":J=q;break;case"dangerouslySetInnerHTML":if(q!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:F1(z,$,Q,q,X,null)}L8(z,X),XK(z,Y,Z,J);return;case"option":E6(z,X);for(K in X)if(X.hasOwnProperty(K)&&(Y=X[K],Y!=null))switch(K){case"selected":z.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:F1(z,$,K,Y,X,null)}return;case"dialog":t0("beforetoggle",z),t0("toggle",z),t0("cancel",z),t0("close",z);break;case"iframe":case"object":t0("load",z);break;case"video":case"audio":for(Y=0;Y<o5.length;Y++)t0(o5[Y],z);break;case"image":t0("error",z),t0("load",z);break;case"details":t0("toggle",z);break;case"embed":case"source":case"link":t0("error",z),t0("load",z);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in X)if(X.hasOwnProperty(B)&&(Y=X[B],Y!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F1(z,$,B,Y,X,null)}return;default:if(yX($)){for(T in X)X.hasOwnProperty(T)&&(Y=X[T],Y!==void 0&&jG(z,$,T,Y,X,void 0));return}}for(q in X)X.hasOwnProperty(q)&&(Y=X[q],Y!=null&&F1(z,$,q,Y,X,null))}function sW(z,$,X,Y){switch(pG($,Y),$){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var Z=null,J=null,Q=null,q=null,K=null,B=null,T=null;for(D in X){var k=X[D];if(X.hasOwnProperty(D)&&k!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":K=k;default:Y.hasOwnProperty(D)||F1(z,$,D,null,Y,k)}}for(var b in Y){var D=Y[b];if(k=X[b],Y.hasOwnProperty(b)&&(D!=null||k!=null))switch(b){case"type":J=D;break;case"name":Z=D;break;case"checked":B=D;break;case"defaultChecked":T=D;break;case"value":Q=D;break;case"defaultValue":q=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:D!==k&&F1(z,$,b,D,Y,k)}}$=X.type==="checkbox"||X.type==="radio"?X.checked!=null:X.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,$||!Y||ZL||(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"),ZL=!0),!$||Y||YL||(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"),YL=!0),C7(z,Q,q,K,B,T,J,Z);return;case"select":D=Q=q=b=null;for(J in X)if(K=X[J],X.hasOwnProperty(J)&&K!=null)switch(J){case"value":break;case"multiple":D=K;default:Y.hasOwnProperty(J)||F1(z,$,J,null,Y,K)}for(Z in Y)if(J=Y[Z],K=X[Z],Y.hasOwnProperty(Z)&&(J!=null||K!=null))switch(Z){case"value":b=J;break;case"defaultValue":q=J;break;case"multiple":Q=J;default:J!==K&&F1(z,$,Z,J,Y,K)}Y=q,$=Q,X=D,b!=null?W0(z,!!$,b,!1):!!X!==!!$&&(Y!=null?W0(z,!!$,Y,!0):W0(z,!!$,$?[]:"",!1));return;case"textarea":D=b=null;for(q in X)if(Z=X[q],X.hasOwnProperty(q)&&Z!=null&&!Y.hasOwnProperty(q))switch(q){case"value":break;case"children":break;default:F1(z,$,q,null,Y,Z)}for(Q in Y)if(Z=Y[Q],J=X[Q],Y.hasOwnProperty(Q)&&(Z!=null||J!=null))switch(Q){case"value":b=Z;break;case"defaultValue":D=Z;break;case"children":break;case"dangerouslySetInnerHTML":if(Z!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Z!==J&&F1(z,$,Q,Z,Y,J)}$K(z,b,D);return;case"option":for(var z0 in X)if(b=X[z0],X.hasOwnProperty(z0)&&b!=null&&!Y.hasOwnProperty(z0))switch(z0){case"selected":z.selected=!1;break;default:F1(z,$,z0,null,Y,b)}for(K in Y)if(b=Y[K],D=X[K],Y.hasOwnProperty(K)&&b!==D&&(b!=null||D!=null))switch(K){case"selected":z.selected=b&&typeof b!=="function"&&typeof b!=="symbol";break;default:F1(z,$,K,b,Y,D)}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 J0 in X)b=X[J0],X.hasOwnProperty(J0)&&b!=null&&!Y.hasOwnProperty(J0)&&F1(z,$,J0,null,Y,b);for(B in Y)if(b=Y[B],D=X[B],Y.hasOwnProperty(B)&&b!==D&&(b!=null||D!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F1(z,$,B,b,Y,D)}return;default:if(yX($)){for(var P1 in X)b=X[P1],X.hasOwnProperty(P1)&&b!==void 0&&!Y.hasOwnProperty(P1)&&jG(z,$,P1,void 0,Y,b);for(T in Y)b=Y[T],D=X[T],!Y.hasOwnProperty(T)||b===D||b===void 0&&D===void 0||jG(z,$,T,b,Y,D);return}}for(var s0 in X)b=X[s0],X.hasOwnProperty(s0)&&b!=null&&!Y.hasOwnProperty(s0)&&F1(z,$,s0,null,Y,b);for(k in Y)b=Y[k],D=X[k],!Y.hasOwnProperty(k)||b===D||b==null&&D==null||F1(z,$,k,b,Y,D)}function GU(z){switch(z){case"class":return"className";case"for":return"htmlFor";default:return z}}function gG(z){var $={};z=z.style;for(var X=0;X<z.length;X++){var Y=z[X];$[Y]=z.getPropertyValue(Y)}return $}function qU(z,$,X){if($!=null&&typeof $!=="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 Y,Z=Y="",J;for(J in $)if($.hasOwnProperty(J)){var Q=$[J];Q!=null&&typeof Q!=="boolean"&&Q!==""&&(J.indexOf("--")===0?(sz(Q,J),Y+=Z+J+":"+(""+Q).trim()):typeof Q!=="number"||Q===0||F9.has(J)?(sz(Q,J),Y+=Z+J.replace(U9,"-$1").toLowerCase().replace(O9,"-ms-")+":"+(""+Q).trim()):Y+=Z+J.replace(U9,"-$1").toLowerCase().replace(O9,"-ms-")+":"+Q+"px",Z=";")}Y=Y||null,$=z.getAttribute("style"),$!==Y&&(Y=T8(Y),T8($)!==Y&&(X.style=gG(z)))}}function W6(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(m0(Y,$),z===""+Y)return}O4($,z,Y,J)}function HU(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}O4($,z,Y,J)}function xG(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(m0(Y,X),z===""+Y)return}O4($,z,Y,J)}function KU(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(m0(Y,$),z===""+Y))return}O4($,z,Y,J)}function uG(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(m0(Y,$),X=VX(""+Y),z===X)return}O4($,z,Y,J)}function _U(z,$,X,Y){for(var Z={},J=new Set,Q=z.attributes,q=0;q<Q.length;q++)switch(Q[q].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:J.add(Q[q].name)}if(yX($)){for(var K in X)if(X.hasOwnProperty(K)){var B=X[K];if(B!=null){if(bz.hasOwnProperty(K))typeof B!=="function"&&O7(K,B);else if(X.suppressHydrationWarning!==!0)switch(K){case"children":typeof B!=="string"&&typeof B!=="number"||O4("children",z.textContent,B,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":Q=z.innerHTML,B=B?B.__html:void 0,B!=null&&(B=JU(z,B),O4(K,Q,B,Z));continue;case"style":J.delete(K),qU(z,B,Z);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":J.delete(K.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",K);continue;case"className":J.delete("class"),Q=PX(z,"class",B),O4("className",Q,B,Z);continue;default:Y.context===z8&&$!=="svg"&&$!=="math"?J.delete(K.toLowerCase()):J.delete(K),Q=PX(z,K,B),O4(K,Q,B,Z)}}}}else for(B in X)if(X.hasOwnProperty(B)&&(K=X[B],K!=null)){if(bz.hasOwnProperty(B))typeof K!=="function"&&O7(B,K);else if(X.suppressHydrationWarning!==!0)switch(B){case"children":typeof K!=="string"&&typeof K!=="number"||O4("children",z.textContent,K,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":Q=z.innerHTML,K=K?K.__html:void 0,K!=null&&(K=JU(z,K),Q!==K&&(Z[B]={__html:Q}));continue;case"className":W6(z,B,"class",K,J,Z);continue;case"tabIndex":W6(z,B,"tabindex",K,J,Z);continue;case"style":J.delete(B),qU(z,K,Z);continue;case"multiple":J.delete(B),O4(B,z.multiple,K,Z);continue;case"muted":J.delete(B),O4(B,z.muted,K,Z);continue;case"autoFocus":J.delete("autofocus"),O4(B,z.autofocus,K,Z);continue;case"data":if($!=="object"){J.delete(B),Q=z.getAttribute("data"),O4(B,Q,K,Z);continue}case"src":case"href":if(!(K!==""||$==="a"&&B==="href"||$==="object"&&B==="data")){B==="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.',B,B):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.',B,B);continue}uG(z,B,B,K,J,Z);continue;case"action":case"formAction":if(Q=z.getAttribute(B),typeof K==="function"){J.delete(B.toLowerCase()),B==="formAction"?(J.delete("name"),J.delete("formenctype"),J.delete("formmethod"),J.delete("formtarget")):(J.delete("enctype"),J.delete("method"),J.delete("target"));continue}else if(Q===_F){J.delete(B.toLowerCase()),O4(B,"function",K,Z);continue}uG(z,B,B.toLowerCase(),K,J,Z);continue;case"xlinkHref":uG(z,B,"xlink:href",K,J,Z);continue;case"contentEditable":xG(z,B,"contenteditable",K,J,Z);continue;case"spellCheck":xG(z,B,"spellcheck",K,J,Z);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":xG(z,B,B,K,J,Z);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":HU(z,B,B.toLowerCase(),K,J,Z);continue;case"capture":case"download":z:{q=z;var T=Q=B,k=Z;if(J.delete(T),q=q.getAttribute(T),q===null)switch(typeof K){case"undefined":case"function":case"symbol":break z;default:if(K===!1)break z}else if(K!=null)switch(typeof K){case"function":case"symbol":break;case"boolean":if(K===!0&&q==="")break z;break;default:if(m0(K,Q),q===""+K)break z}O4(Q,q,K,k)}continue;case"cols":case"rows":case"size":case"span":z:{if(q=z,T=Q=B,k=Z,J.delete(T),q=q.getAttribute(T),q===null)switch(typeof K){case"undefined":case"function":case"symbol":case"boolean":break z;default:if(isNaN(K)||1>K)break z}else if(K!=null)switch(typeof K){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(K)||1>K)&&(m0(K,Q),q===""+K))break z}O4(Q,q,K,k)}continue;case"rowSpan":KU(z,B,"rowspan",K,J,Z);continue;case"start":KU(z,B,B,K,J,Z);continue;case"xHeight":W6(z,B,"x-height",K,J,Z);continue;case"xlinkActuate":W6(z,B,"xlink:actuate",K,J,Z);continue;case"xlinkArcrole":W6(z,B,"xlink:arcrole",K,J,Z);continue;case"xlinkRole":W6(z,B,"xlink:role",K,J,Z);continue;case"xlinkShow":W6(z,B,"xlink:show",K,J,Z);continue;case"xlinkTitle":W6(z,B,"xlink:title",K,J,Z);continue;case"xlinkType":W6(z,B,"xlink:type",K,J,Z);continue;case"xmlBase":W6(z,B,"xml:base",K,J,Z);continue;case"xmlLang":W6(z,B,"xml:lang",K,J,Z);continue;case"xmlSpace":W6(z,B,"xml:space",K,J,Z);continue;case"inert":K!==""||MJ[B]||(MJ[B]=!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.",B)),HU(z,B,B,K,J,Z);continue;default:if(!(2<B.length)||B[0]!=="o"&&B[0]!=="O"||B[1]!=="n"&&B[1]!=="N"){q=BK(B),Q=!1,Y.context===z8&&$!=="svg"&&$!=="math"?J.delete(q.toLowerCase()):(T=B.toLowerCase(),T=SZ.hasOwnProperty(T)?SZ[T]||null:null,T!==null&&T!==B&&(Q=!0,J.delete(T)),J.delete(q));z:if(T=z,k=q,q=K,bX(k))if(T.hasAttribute(k))T=T.getAttribute(k),m0(q,k),q=T===""+q?q:T;else{switch(typeof q){case"function":case"symbol":break z;case"boolean":if(T=k.toLowerCase().slice(0,5),T!=="data-"&&T!=="aria-")break z}q=q===void 0?void 0:null}else q=void 0;Q||O4(B,q,K,Z)}}}return 0<J.size&&X.suppressHydrationWarning!==!0&&tW(z,J,Z),Object.keys(Z).length===0?null:Z}function eW(z,$){switch(z.length){case 0:return"";case 1:return z[0];case 2:return z[0]+" "+$+" "+z[1];default:return z.slice(0,-1).join(", ")+", "+$+" "+z[z.length-1]}}function BU(z){switch(z){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function z3(){if(typeof performance.getEntriesByType==="function"){for(var z=0,$=0,X=performance.getEntriesByType("resource"),Y=0;Y<X.length;Y++){var Z=X[Y],J=Z.transferSize,Q=Z.initiatorType,q=Z.duration;if(J&&q&&BU(Q)){Q=0,q=Z.responseEnd;for(Y+=1;Y<X.length;Y++){var K=X[Y],B=K.startTime;if(B>q)break;var{transferSize:T,initiatorType:k}=K;T&&BU(k)&&(K=K.responseEnd,Q+=T*(K<q?1:(q-B)/(K-B)))}if(--Y,$+=8*(J+Q)/(Z.duration/1000),z++,10<z)break}}if(0<z)return $/z/1e6}return navigator.connection&&(z=navigator.connection.downlink,typeof z==="number")?z:5}function OZ(z){return z.nodeType===9?z:z.ownerDocument}function UU(z){switch(z){case P$:return e$;case CZ:return bJ;default:return z8}}function OU(z,$){if(z===z8)switch($){case"svg":return e$;case"math":return bJ;default:return z8}return z===e$&&$==="foreignObject"?z8:z}function lG(z,$){return z==="textarea"||z==="noscript"||typeof $.children==="string"||typeof $.children==="number"||typeof $.children==="bigint"||typeof $.dangerouslySetInnerHTML==="object"&&$.dangerouslySetInnerHTML!==null&&$.dangerouslySetInnerHTML.__html!=null}function $3(){var z=window.event;if(z&&z.type==="popstate"){if(z===vH)return!1;return vH=z,!0}return vH=null,!1}function $5(){var z=window.event;return z&&z!==t5?z.type:null}function X5(){var z=window.event;return z&&z!==t5?z.timeStamp:-1.1}function X3(z){setTimeout(function(){throw z})}function Y3(z,$,X){switch($){case"button":case"input":case"select":case"textarea":X.autoFocus&&z.focus();break;case"img":X.src?z.src=X.src:X.srcSet&&(z.srcset=X.srcSet)}}function Z3(){}function J3(z,$,X,Y){sW(z,$,X,Y),z[f4]=Y}function LU(z){kX(z,"")}function Q3(z,$,X){z.nodeValue=X}function WU(z){if(!z.__reactWarnedAboutChildrenConflict){var $=z[f4]||null;if($!==null){var X=S4(z);X!==null&&(typeof $.children==="string"||typeof $.children==="number"?(z.__reactWarnedAboutChildrenConflict=!0,o(X,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.')})):$.dangerouslySetInnerHTML!=null&&(z.__reactWarnedAboutChildrenConflict=!0,o(X,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 I8(z){return z==="head"}function G3(z,$){z.removeChild($)}function q3(z,$){(z.nodeType===9?z.body:z.nodeName==="HTML"?z.ownerDocument.body:z).removeChild($)}function RU(z,$){var X=$,Y=0;do{var Z=X.nextSibling;if(z.removeChild(X),Z&&Z.nodeType===8)if(X=Z.data,X===n5||X===wJ){if(Y===0){z.removeChild(Z),R$($);return}Y--}else if(X===r5||X===t8||X===xz||X===s$||X===gz)Y++;else if(X===UF)Y5(z.ownerDocument.documentElement);else if(X===LF){X=z.ownerDocument.head,Y5(X);for(var J=X.firstChild;J;){var{nextSibling:Q,nodeName:q}=J;J[K5]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&J.rel.toLowerCase()==="stylesheet"||X.removeChild(J),J=Q}}else X===OF&&Y5(z.ownerDocument.body);X=Z}while(X);R$($)}function FU(z,$){var X=z;z=0;do{var Y=X.nextSibling;if(X.nodeType===1?$?(X._stashedDisplay=X.style.display,X.style.display="none"):(X.style.display=X._stashedDisplay||"",X.getAttribute("style")===""&&X.removeAttribute("style")):X.nodeType===3&&($?(X._stashedText=X.nodeValue,X.nodeValue=""):X.nodeValue=X._stashedText||""),Y&&Y.nodeType===8)if(X=Y.data,X===n5)if(z===0)break;else z--;else X!==r5&&X!==t8&&X!==xz&&X!==s$||z++;X=Y}while(X)}function H3(z){FU(z,!0)}function K3(z){z=z.style,typeof z.setProperty==="function"?z.setProperty("display","none","important"):z.display="none"}function _3(z){z.nodeValue=""}function B3(z){FU(z,!1)}function U3(z,$){$=$[WF],$=$!==void 0&&$!==null&&$.hasOwnProperty("display")?$.display:null,z.style.display=$==null||typeof $==="boolean"?"":(""+$).trim()}function O3(z,$){z.nodeValue=$}function cG(z){var $=z.firstChild;$&&$.nodeType===10&&($=$.nextSibling);for(;$;){var X=$;switch($=$.nextSibling,X.nodeName){case"HTML":case"HEAD":case"BODY":cG(X),RY(X);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(X.rel.toLowerCase()==="stylesheet")continue}z.removeChild(X)}}function L3(z,$,X,Y){for(;z.nodeType===1;){var Z=X;if(z.nodeName.toLowerCase()!==$.toLowerCase()){if(!Y&&(z.nodeName!=="INPUT"||z.type!=="hidden"))break}else if(!Y)if($==="input"&&z.type==="hidden"){m0(Z.name,"name");var J=Z.name==null?null:""+Z.name;if(Z.type==="hidden"&&z.getAttribute("name")===J)return z}else return z;else if(!z[K5])switch($){case"meta":if(!z.hasAttribute("itemprop"))break;return z;case"link":if(J=z.getAttribute("rel"),J==="stylesheet"&&z.hasAttribute("data-precedence"))break;else if(J!==Z.rel||z.getAttribute("href")!==(Z.href==null||Z.href===""?null:Z.href)||z.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin)||z.getAttribute("title")!==(Z.title==null?null:Z.title))break;return z;case"style":if(z.hasAttribute("data-precedence"))break;return z;case"script":if(J=z.getAttribute("src"),(J!==(Z.src==null?null:Z.src)||z.getAttribute("type")!==(Z.type==null?null:Z.type)||z.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin))&&J&&z.hasAttribute("async")&&!z.hasAttribute("itemprop"))break;return z;default:return z}if(z=Z6(z.nextSibling),z===null)break}return null}function W3(z,$,X){if($==="")return null;for(;z.nodeType!==3;){if((z.nodeType!==1||z.nodeName!=="INPUT"||z.type!=="hidden")&&!X)return null;if(z=Z6(z.nextSibling),z===null)return null}return z}function NU(z,$){for(;z.nodeType!==8;){if((z.nodeType!==1||z.nodeName!=="INPUT"||z.type!=="hidden")&&!$)return null;if(z=Z6(z.nextSibling),z===null)return null}return z}function dG(z){return z.data===t8||z.data===xz}function aG(z){return z.data===s$||z.data===t8&&z.ownerDocument.readyState!==qL}function R3(z,$){var X=z.ownerDocument;if(z.data===xz)z._reactRetry=$;else if(z.data!==t8||X.readyState!==qL)$();else{var Y=function(){$(),X.removeEventListener("DOMContentLoaded",Y)};X.addEventListener("DOMContentLoaded",Y),z._reactRetry=Y}}function Z6(z){for(;z!=null;z=z.nextSibling){var $=z.nodeType;if($===1||$===3)break;if($===8){if($=z.data,$===r5||$===s$||$===t8||$===xz||$===gz||$===bH||$===GL)break;if($===n5||$===wJ)return null}}return z}function MU(z){if(z.nodeType===1){for(var $=z.nodeName.toLowerCase(),X={},Y=z.attributes,Z=0;Z<Y.length;Z++){var J=Y[Z];X[GU(J.name)]=J.name.toLowerCase()==="style"?gG(z):J.value}return{type:$,props:X}}return z.nodeType===8?z.data===gz?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:z.nodeValue}function wU(z,$,X){return X===null||X[BF]!==!0?(z.nodeValue===$?z=null:($=T8($),z=T8(z.nodeValue)===$?null:z.nodeValue),z):null}function iG(z){z=z.nextSibling;for(var $=0;z;){if(z.nodeType===8){var X=z.data;if(X===n5||X===wJ){if($===0)return Z6(z.nextSibling);$--}else X!==r5&&X!==s$&&X!==t8&&X!==xz&&X!==gz||$++}z=z.nextSibling}return null}function bU(z){z=z.previousSibling;for(var $=0;z;){if(z.nodeType===8){var X=z.data;if(X===r5||X===s$||X===t8||X===xz||X===gz){if($===0)return z;$--}else X!==n5&&X!==wJ||$++}z=z.previousSibling}return null}function F3(z){R$(z)}function N3(z){R$(z)}function M3(z){R$(z)}function PU(z,$,X,Y,Z){switch(Z&&ZQ(z,Y.ancestorInfo),$=OZ(X),z){case"html":if(z=$.documentElement,!z)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 z;case"head":if(z=$.head,!z)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 z;case"body":if(z=$.body,!z)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 z;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function w3(z,$,X,Y){if(!X[C8]&&S4(X)){var Z=X.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.",Z,Z,Z)}switch(z){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(Z=X.attributes;Z.length;)X.removeAttributeNode(Z[0]);b4(X,z,$),X[P4]=Y,X[f4]=$}function Y5(z){for(var $=z.attributes;$.length;)z.removeAttributeNode($[0]);RY(z)}function LZ(z){return typeof z.getRootNode==="function"?z.getRootNode():z.nodeType===9?z:z.ownerDocument}function AU(z,$,X){var Y=zX;if(Y&&typeof $==="string"&&$){var Z=E0($);Z='link[rel="'+z+'"][href="'+Z+'"]',typeof X==="string"&&(Z+='[crossorigin="'+X+'"]'),OL.has(Z)||(OL.add(Z),z={rel:z,crossOrigin:X,href:$},Y.querySelector(Z)===null&&($=Y.createElement("link"),b4($,"link",z),a1($),Y.head.appendChild($)))}}function vU(z,$,X,Y){var Z=(Z=y8.current)?LZ(Z):null;if(!Z)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(z){case"meta":case"title":return null;case"style":return typeof X.precedence==="string"&&typeof X.href==="string"?(X=L$(X.href),$=B8(Z).hoistableStyles,Y=$.get(X),Y||(Y={type:"style",instance:null,count:0,state:null},$.set(X,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(X.rel==="stylesheet"&&typeof X.href==="string"&&typeof X.precedence==="string"){z=L$(X.href);var J=B8(Z).hoistableStyles,Q=J.get(z);if(!Q&&(Z=Z.ownerDocument||Z,Q={type:"stylesheet",instance:null,count:0,state:{loading:lz,preload:null}},J.set(z,Q),(J=Z.querySelector(Z5(z)))&&!J._p&&(Q.instance=J,Q.state.loading=s5|I6),!k6.has(z))){var q={rel:"preload",as:"style",href:X.href,crossOrigin:X.crossOrigin,integrity:X.integrity,media:X.media,hrefLang:X.hrefLang,referrerPolicy:X.referrerPolicy};k6.set(z,q),J||b3(Z,z,q,Q.state)}if($&&Y===null)throw X=`
|
|
165
|
+
|
|
166
|
+
- `+WZ($)+`
|
|
167
|
+
+ `+WZ(X),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."+X);return Q}if($&&Y!==null)throw X=`
|
|
168
|
+
|
|
169
|
+
- `+WZ($)+`
|
|
170
|
+
+ `+WZ(X),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."+X);return null;case"script":return $=X.async,X=X.src,typeof X==="string"&&$&&typeof $!=="function"&&typeof $!=="symbol"?(X=W$(X),$=B8(Z).hoistableScripts,Y=$.get(X),Y||(Y={type:"script",instance:null,count:0,state:null},$.set(X,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+z+'". this is a bug in React.')}}function WZ(z){var $=0,X="<link";return typeof z.rel==="string"?($++,X+=' rel="'+z.rel+'"'):p6.call(z,"rel")&&($++,X+=' rel="'+(z.rel===null?"null":"invalid type "+typeof z.rel)+'"'),typeof z.href==="string"?($++,X+=' href="'+z.href+'"'):p6.call(z,"href")&&($++,X+=' href="'+(z.href===null?"null":"invalid type "+typeof z.href)+'"'),typeof z.precedence==="string"?($++,X+=' precedence="'+z.precedence+'"'):p6.call(z,"precedence")&&($++,X+=" precedence={"+(z.precedence===null?"null":"invalid type "+typeof z.precedence)+"}"),Object.getOwnPropertyNames(z).length>$&&(X+=" ..."),X+" />"}function L$(z){return'href="'+E0(z)+'"'}function Z5(z){return'link[rel="stylesheet"]['+z+"]"}function TU(z){return d0({},z,{"data-precedence":z.precedence,precedence:null})}function b3(z,$,X,Y){z.querySelector('link[rel="preload"][as="style"]['+$+"]")?Y.loading=s5:($=z.createElement("link"),Y.preload=$,$.addEventListener("load",function(){return Y.loading|=s5}),$.addEventListener("error",function(){return Y.loading|=BL}),b4($,"link",X),a1($),z.head.appendChild($))}function W$(z){return'[src="'+E0(z)+'"]'}function J5(z){return"script[async]"+z}function IU(z,$,X){if($.count++,$.instance===null)switch($.type){case"style":var Y=z.querySelector('style[data-href~="'+E0(X.href)+'"]');if(Y)return $.instance=Y,a1(Y),Y;var Z=d0({},X,{"data-href":X.href,"data-precedence":X.precedence,href:null,precedence:null});return Y=(z.ownerDocument||z).createElement("style"),a1(Y),b4(Y,"style",Z),RZ(Y,X.precedence,z),$.instance=Y;case"stylesheet":Z=L$(X.href);var J=z.querySelector(Z5(Z));if(J)return $.state.loading|=I6,$.instance=J,a1(J),J;Y=TU(X),(Z=k6.get(Z))&&oG(Y,Z),J=(z.ownerDocument||z).createElement("link"),a1(J);var Q=J;return Q._p=new Promise(function(q,K){Q.onload=q,Q.onerror=K}),b4(J,"link",Y),$.state.loading|=I6,RZ(J,X.precedence,z),$.instance=J;case"script":if(J=W$(X.src),Z=z.querySelector(J5(J)))return $.instance=Z,a1(Z),Z;if(Y=X,Z=k6.get(J))Y=d0({},X),rG(Y,Z);return z=z.ownerDocument||z,Z=z.createElement("script"),a1(Z),b4(Z,"link",Y),z.head.appendChild(Z),$.instance=Z;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+$.type+'". this is a bug in React.')}else $.type==="stylesheet"&&($.state.loading&I6)===lz&&(Y=$.instance,$.state.loading|=I6,RZ(Y,X.precedence,z));return $.instance}function RZ(z,$,X){for(var Y=X.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),Z=Y.length?Y[Y.length-1]:null,J=Z,Q=0;Q<Y.length;Q++){var q=Y[Q];if(q.dataset.precedence===$)J=q;else if(J!==Z)break}J?J.parentNode.insertBefore(z,J.nextSibling):($=X.nodeType===9?X.head:X,$.insertBefore(z,$.firstChild))}function oG(z,$){z.crossOrigin==null&&(z.crossOrigin=$.crossOrigin),z.referrerPolicy==null&&(z.referrerPolicy=$.referrerPolicy),z.title==null&&(z.title=$.title)}function rG(z,$){z.crossOrigin==null&&(z.crossOrigin=$.crossOrigin),z.referrerPolicy==null&&(z.referrerPolicy=$.referrerPolicy),z.integrity==null&&(z.integrity=$.integrity)}function kU(z,$,X){if(PJ===null){var Y=new Map,Z=PJ=new Map;Z.set(X,Y)}else Z=PJ,Y=Z.get(X),Y||(Y=new Map,Z.set(X,Y));if(Y.has(z))return Y;Y.set(z,null),X=X.getElementsByTagName(z);for(Z=0;Z<X.length;Z++){var J=X[Z];if(!(J[K5]||J[P4]||z==="link"&&J.getAttribute("rel")==="stylesheet")&&J.namespaceURI!==P$){var Q=J.getAttribute($)||"";Q=z+Q;var q=Y.get(Q);q?q.push(J):Y.set(Q,[J])}}return Y}function yU(z,$,X){z=z.ownerDocument||z,z.head.insertBefore(X,$==="title"?z.querySelector("head > title"):null)}function P3(z,$,X){var Y=!X.ancestorInfo.containerTagInScope;if(X.context===e$||$.itemProp!=null)return!Y||$.itemProp==null||z!=="meta"&&z!=="title"&&z!=="style"&&z!=="link"&&z!=="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.",z,z),!1;switch(z){case"meta":case"title":return!0;case"style":if(typeof $.precedence!=="string"||typeof $.href!=="string"||$.href===""){Y&&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 $.rel!=="string"||typeof $.href!=="string"||$.href===""||$.onLoad||$.onError){if($.rel==="stylesheet"&&typeof $.precedence==="string"){z=$.href;var{onError:Z,disabled:J}=$;X=[],$.onLoad&&X.push("`onLoad`"),Z&&X.push("`onError`"),J!=null&&X.push("`disabled`"),Z=eW(X,"and"),Z+=X.length===1?" prop":" props",J=X.length===1?"an "+Z:"the "+Z,X.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.',z,J,Z)}Y&&(typeof $.rel!=="string"||typeof $.href!=="string"||$.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"):($.onError||$.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($.rel){case"stylesheet":return z=$.precedence,$=$.disabled,typeof z!=="string"&&Y&&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 z==="string"&&$==null;default:return!0}case"script":if(z=$.async&&typeof $.async!=="function"&&typeof $.async!=="symbol",!z||$.onLoad||$.onError||!$.src||typeof $.src!=="string"){Y&&(z?$.onLoad||$.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":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",z)}return!1}function VU(z){return z.type==="stylesheet"&&(z.state.loading&UL)===lz?!1:!0}function A3(z,$,X,Y){if(X.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(X.state.loading&I6)===lz){if(X.instance===null){var Z=L$(Y.href),J=$.querySelector(Z5(Z));if(J){$=J._p,$!==null&&typeof $==="object"&&typeof $.then==="function"&&(z.count++,z=FZ.bind(z),$.then(z,z)),X.state.loading|=I6,X.instance=J,a1(J);return}J=$.ownerDocument||$,Y=TU(Y),(Z=k6.get(Z))&&oG(Y,Z),J=J.createElement("link"),a1(J);var Q=J;Q._p=new Promise(function(q,K){Q.onload=q,Q.onerror=K}),b4(J,"link",Y),X.instance=J}z.stylesheets===null&&(z.stylesheets=new Map),z.stylesheets.set(X,$),($=X.state.preload)&&(X.state.loading&UL)===lz&&(z.count++,X=FZ.bind(z),$.addEventListener("load",X),$.addEventListener("error",X))}}function v3(z,$){return z.stylesheets&&z.count===0&&NZ(z,z.stylesheets),0<z.count||0<z.imgCount?function(X){var Y=setTimeout(function(){if(z.stylesheets&&NZ(z,z.stylesheets),z.unsuspend){var J=z.unsuspend;z.unsuspend=null,J()}},NF+$);0<z.imgBytes&&IH===0&&(IH=125*z3()*wF);var Z=setTimeout(function(){if(z.waitingForImages=!1,z.count===0&&(z.stylesheets&&NZ(z,z.stylesheets),z.unsuspend)){var J=z.unsuspend;z.unsuspend=null,J()}},(z.imgBytes>IH?50:MF)+$);return z.unsuspend=X,function(){z.unsuspend=null,clearTimeout(Y),clearTimeout(Z)}}:null}function FZ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)NZ(this,this.stylesheets);else if(this.unsuspend){var z=this.unsuspend;this.unsuspend=null,z()}}}function NZ(z,$){z.stylesheets=null,z.unsuspend!==null&&(z.count++,AJ=new Map,$.forEach(T3,z),AJ=null,FZ.call(z))}function T3(z,$){if(!($.state.loading&I6)){var X=AJ.get(z);if(X)var Y=X.get(kH);else{X=new Map,AJ.set(z,X);for(var Z=z.querySelectorAll("link[data-precedence],style[data-precedence]"),J=0;J<Z.length;J++){var Q=Z[J];if(Q.nodeName==="LINK"||Q.getAttribute("media")!=="not all")X.set(Q.dataset.precedence,Q),Y=Q}Y&&X.set(kH,Y)}Z=$.instance,Q=Z.getAttribute("data-precedence"),J=X.get(Q)||Y,J===Y&&X.set(kH,Z),X.set(Q,Z),this.count++,Y=FZ.bind(this),Z.addEventListener("load",Y),Z.addEventListener("error",Y),J?J.parentNode.insertBefore(Z,J.nextSibling):(z=z.nodeType===9?z.head:z,z.insertBefore(Z,z.firstChild)),$.state.loading|=I6}}function I3(z,$,X,Y,Z,J,Q,q,K){this.tag=1,this.containerInfo=z,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=uz,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=RX(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=RX(0),this.hiddenUpdates=RX(null),this.identifierPrefix=Y,this.onUncaughtError=Z,this.onCaughtError=J,this.onRecoverableError=Q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,z=this.pendingUpdatersLaneMap=[];for($=0;31>$;$++)z.push(new Set);this._debugRootType=X?"hydrateRoot()":"createRoot()"}function CU(z,$,X,Y,Z,J,Q,q,K,B,T,k){return z=new I3(z,$,X,Q,K,B,T,k,q),$=aR,J===!0&&($|=V4|g6),$|=j0,J=P(3,null,null,$),z.current=J,J.stateNode=z,$=PQ(),Lz($),z.pooledCache=$,Lz($),J.memoizedState={element:Y,isDehydrated:X,cache:$},kQ(J),z}function SU(z){if(!z)return f8;return z=f8,z}function nG(z,$,X,Y,Z,J){if(y4&&typeof y4.onScheduleFiberRoot==="function")try{y4.onScheduleFiberRoot(w$,Y,X)}catch(Q){F7||(F7=!0,console.error("React instrumentation encountered an error: %o",Q))}Z=SU(Z),Y.context===null?Y.context=Z:Y.pendingContext=Z,R7&&Q6!==null&&!FL&&(FL=!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.
|
|
171
|
+
|
|
172
|
+
Check the render method of %s.`,C(Q6)||"Unknown")),Y=M8($),Y.payload={element:X},J=J===void 0?null:J,J!==null&&(typeof J!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",J),Y.callback=J),X=w8(z,Y,$),X!==null&&(X7($,"root.render()",null),u1(X,z,$),jX(X,z,$))}function DU(z,$){if(z=z.memoizedState,z!==null&&z.dehydrated!==null){var X=z.retryLane;z.retryLane=X!==0&&X<$?X:$}}function tG(z,$){DU(z,$),(z=z.alternate)&&DU(z,$)}function EU(z){if(z.tag===13||z.tag===31){var $=k4(z,67108864);$!==null&&u1($,z,67108864),tG(z,67108864)}}function fU(z){if(z.tag===13||z.tag===31){var $=Y6(z);$=NX($);var X=k4(z,$);X!==null&&u1(X,z,$),tG(z,$)}}function k3(){return Q6}function y3(z,$,X,Y){var Z=j.T;j.T=null;var J=B1.p;try{B1.p=G6,sG(z,$,X,Y)}finally{B1.p=J,j.T=Z}}function V3(z,$,X,Y){var Z=j.T;j.T=null;var J=B1.p;try{B1.p=j6,sG(z,$,X,Y)}finally{B1.p=J,j.T=Z}}function sG(z,$,X,Y){if(TJ){var Z=eG(Y);if(Z===null)hG(z,$,Y,IJ,X),hU(z,Y);else if(C3(Z,z,$,X,Y))Y.stopPropagation();else if(hU(z,Y),$&4&&-1<PF.indexOf(z)){for(;Z!==null;){var J=S4(Z);if(J!==null)switch(J.tag){case 3:if(J=J.stateNode,J.current.memoizedState.isDehydrated){var Q=N4(J.pendingLanes);if(Q!==0){var q=J;q.pendingLanes|=2;for(q.entangledLanes|=2;Q;){var K=1<<31-E4(Q);q.entanglements[1]|=K,Q&=~K}U7(J),(z1&(K4|_6))===F4&&(HJ=L4()+aO,eX(0,!1))}}break;case 31:case 13:q=k4(J,2),q!==null&&u1(q,J,2),B$(),tG(J,2)}if(J=eG(Y),J===null&&hG(z,$,Y,IJ,X),J===Z)break;Z=J}Z!==null&&Y.stopPropagation()}else hG(z,$,Y,null,X)}}function eG(z){return z=JQ(z),zq(z)}function zq(z){if(IJ=null,z=L6(z),z!==null){var $=i(z);if($===null)z=null;else{var X=$.tag;if(X===13){if(z=s($),z!==null)return z;z=null}else if(X===31){if(z=p($),z!==null)return z;z=null}else if(X===3){if($.stateNode.current.memoizedState.isDehydrated)return $.tag===3?$.stateNode.containerInfo:null;z=null}else $!==z&&(z=null)}}return IJ=z,null}function mU(z){switch(z){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 G6;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 j6;case"message":switch(g3()){case Uq:return G6;case Oq:return j6;case M$:case x3:return M7;case Lq:return yZ;default:return M7}default:return M7}}function hU(z,$){switch(z){case"focusin":case"focusout":s8=null;break;case"dragenter":case"dragleave":e8=null;break;case"mouseover":case"mouseout":zz=null;break;case"pointerover":case"pointerout":zY.delete($.pointerId);break;case"gotpointercapture":case"lostpointercapture":$Y.delete($.pointerId)}}function Q5(z,$,X,Y,Z,J){if(z===null||z.nativeEvent!==J)return z={blockedOn:$,domEventName:X,eventSystemFlags:Y,nativeEvent:J,targetContainers:[Z]},$!==null&&($=S4($),$!==null&&EU($)),z;return z.eventSystemFlags|=Y,$=z.targetContainers,Z!==null&&$.indexOf(Z)===-1&&$.push(Z),z}function C3(z,$,X,Y,Z){switch($){case"focusin":return s8=Q5(s8,z,$,X,Y,Z),!0;case"dragenter":return e8=Q5(e8,z,$,X,Y,Z),!0;case"mouseover":return zz=Q5(zz,z,$,X,Y,Z),!0;case"pointerover":var J=Z.pointerId;return zY.set(J,Q5(zY.get(J)||null,z,$,X,Y,Z)),!0;case"gotpointercapture":return J=Z.pointerId,$Y.set(J,Q5($Y.get(J)||null,z,$,X,Y,Z)),!0}return!1}function pU(z){var $=L6(z.target);if($!==null){var X=i($);if(X!==null){if($=X.tag,$===13){if($=s(X),$!==null){z.blockedOn=$,WY(z.priority,function(){fU(X)});return}}else if($===31){if($=p(X),$!==null){z.blockedOn=$,WY(z.priority,function(){fU(X)});return}}else if($===3&&X.stateNode.current.memoizedState.isDehydrated){z.blockedOn=X.tag===3?X.stateNode.containerInfo:null;return}}}z.blockedOn=null}function MZ(z){if(z.blockedOn!==null)return!1;for(var $=z.targetContainers;0<$.length;){var X=eG(z.nativeEvent);if(X===null){X=z.nativeEvent;var Y=new X.constructor(X.type,X),Z=Y;_5!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),_5=Z,X.target.dispatchEvent(Y),_5===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."),_5=null}else return $=S4(X),$!==null&&EU($),z.blockedOn=X,!1;$.shift()}return!0}function jU(z,$,X){MZ(z)&&X.delete($)}function S3(){yH=!1,s8!==null&&MZ(s8)&&(s8=null),e8!==null&&MZ(e8)&&(e8=null),zz!==null&&MZ(zz)&&(zz=null),zY.forEach(jU),$Y.forEach(jU)}function wZ(z,$){z.blockedOn===$&&(z.blockedOn=null,yH||(yH=!0,X1.unstable_scheduleCallback(X1.unstable_NormalPriority,S3)))}function gU(z){kJ!==z&&(kJ=z,X1.unstable_scheduleCallback(X1.unstable_NormalPriority,function(){kJ===z&&(kJ=null);for(var $=0;$<z.length;$+=3){var X=z[$],Y=z[$+1],Z=z[$+2];if(typeof Y!=="function")if(zq(Y||X)===null)continue;else break;var J=S4(X);J!==null&&(z.splice($,3),$-=3,X={pending:!0,data:Z,method:X.method,action:Y},Object.freeze(X),zG(J,X,Y,Z))}}))}function R$(z){function $(K){return wZ(K,z)}s8!==null&&wZ(s8,z),e8!==null&&wZ(e8,z),zz!==null&&wZ(zz,z),zY.forEach($),$Y.forEach($);for(var X=0;X<$z.length;X++){var Y=$z[X];Y.blockedOn===z&&(Y.blockedOn=null)}for(;0<$z.length&&(X=$z[0],X.blockedOn===null);)pU(X),X.blockedOn===null&&$z.shift();if(X=(z.ownerDocument||z).$$reactFormReplay,X!=null)for(Y=0;Y<X.length;Y+=3){var Z=X[Y],J=X[Y+1],Q=Z[f4]||null;if(typeof J==="function")Q||gU(X);else if(Q){var q=null;if(J&&J.hasAttribute("formAction")){if(Z=J,Q=J[f4]||null)q=Q.formAction;else if(zq(Z)!==null)continue}else q=Q.action;typeof q==="function"?X[Y+1]=q:(X.splice(Y,3),Y-=3),gU(X)}}}function xU(){function z(J){J.canIntercept&&J.info==="react-transition"&&J.intercept({handler:function(){return new Promise(function(Q){return Z=Q})},focusReset:"manual",scroll:"manual"})}function $(){Z!==null&&(Z(),Z=null),Y||setTimeout(X,20)}function X(){if(!Y&&!navigation.transition){var J=navigation.currentEntry;J&&J.url!=null&&navigation.navigate(J.url,{state:J.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Y=!1,Z=null;return navigation.addEventListener("navigate",z),navigation.addEventListener("navigatesuccess",$),navigation.addEventListener("navigateerror",$),setTimeout(X,100),function(){Y=!0,navigation.removeEventListener("navigate",z),navigation.removeEventListener("navigatesuccess",$),navigation.removeEventListener("navigateerror",$),Z!==null&&(Z(),Z=null)}}}function $q(z){this._internalRoot=z}function bZ(z){this._internalRoot=z}function uU(z){z[C8]&&(z._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 d0=Object.assign,D3=Symbol.for("react.element"),L7=Symbol.for("react.transitional.element"),F$=Symbol.for("react.portal"),N$=Symbol.for("react.fragment"),PZ=Symbol.for("react.strict_mode"),Xq=Symbol.for("react.profiler"),Yq=Symbol.for("react.consumer"),W7=Symbol.for("react.context"),G5=Symbol.for("react.forward_ref"),Zq=Symbol.for("react.suspense"),Jq=Symbol.for("react.suspense_list"),AZ=Symbol.for("react.memo"),J6=Symbol.for("react.lazy"),Qq=Symbol.for("react.activity"),E3=Symbol.for("react.memo_cache_sentinel"),lU=Symbol.iterator,f3=Symbol.for("react.client.reference"),q4=Array.isArray,j=XX.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B1=CH.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,m3=Object.freeze({pending:!1,data:null,method:null,action:null}),Gq=[],qq=[],g7=-1,k8=e(null),q5=e(null),y8=e(null),vZ=e(null),H5=0,cU,dU,aU,iU,oU,rU,nU;m.__reactDisabledLog=!0;var Hq,tU,Kq=!1,_q=new(typeof WeakMap==="function"?WeakMap:Map),Q6=null,R7=!1,p6=Object.prototype.hasOwnProperty,Bq=X1.unstable_scheduleCallback,h3=X1.unstable_cancelCallback,p3=X1.unstable_shouldYield,j3=X1.unstable_requestPaint,L4=X1.unstable_now,g3=X1.unstable_getCurrentPriorityLevel,Uq=X1.unstable_ImmediatePriority,Oq=X1.unstable_UserBlockingPriority,M$=X1.unstable_NormalPriority,x3=X1.unstable_LowPriority,Lq=X1.unstable_IdlePriority,u3=X1.log,l3=X1.unstable_setDisableYieldValue,w$=null,y4=null,F7=!1,N7=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",E4=Math.clz32?Math.clz32:zK,c3=Math.log,d3=Math.LN2,TZ=256,IZ=262144,kZ=4194304,G6=2,j6=8,M7=32,yZ=268435456,V8=Math.random().toString(36).slice(2),P4="__reactFiber$"+V8,f4="__reactProps$"+V8,C8="__reactContainer$"+V8,Wq="__reactEvents$"+V8,a3="__reactListeners$"+V8,i3="__reactHandles$"+V8,sU="__reactResources$"+V8,K5="__reactMarker$"+V8,eU=new Set,bz={},Rq={},o3={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},r3=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]*$"),z9={},$9={},n3=/[\n"\\]/g,X9=!1,Y9=!1,Z9=!1,J9=!1,Q9=!1,G9=!1,q9=["value","defaultValue"],H9=!1,K9=/["'&<>\n\t]|^\s|\s$/,t3="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(" "),_9="applet caption html table td th marquee object template foreignObject desc title".split(" "),s3=_9.concat(["button"]),e3="dd dt li option optgroup p rp rt".split(" "),B9={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},VZ={},Fq={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"]},U9=/([A-Z])/g,O9=/^ms-/,zR=/^(?:webkit|moz|o)[A-Z]/,$R=/^-ms-/,XR=/-(.)/g,L9=/;\s*$/,b$={},Nq={},W9=!1,R9=!1,F9=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(" ")),CZ="http://www.w3.org/1998/Math/MathML",P$="http://www.w3.org/2000/svg",YR=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"]]),SZ={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"},N9={"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},A$={},ZR=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]*$"),JR=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]*$"),M9=!1,m4={},w9=/^on./,QR=/^on[^A-Z]/,GR=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]*$"),qR=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]*$"),HR=/^[\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,_5=null,v$=null,T$=null,Mq=!1,w7=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wq=!1;if(w7)try{var B5={};Object.defineProperty(B5,"passive",{get:function(){wq=!0}}),window.addEventListener("test",B5,B5),window.removeEventListener("test",B5,B5)}catch(z){wq=!1}var S8=null,bq=null,DZ=null,Pz={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(z){return z.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},EZ=l4(Pz),U5=d0({},Pz,{view:0,detail:0}),KR=l4(U5),Pq,Aq,O5,fZ=d0({},U5,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:QQ,button:0,buttons:0,relatedTarget:function(z){return z.relatedTarget===void 0?z.fromElement===z.srcElement?z.toElement:z.fromElement:z.relatedTarget},movementX:function(z){if("movementX"in z)return z.movementX;return z!==O5&&(O5&&z.type==="mousemove"?(Pq=z.screenX-O5.screenX,Aq=z.screenY-O5.screenY):Aq=Pq=0,O5=z),Pq},movementY:function(z){return"movementY"in z?z.movementY:Aq}}),b9=l4(fZ),_R=d0({},fZ,{dataTransfer:0}),BR=l4(_R),UR=d0({},U5,{relatedTarget:0}),vq=l4(UR),OR=d0({},Pz,{animationName:0,elapsedTime:0,pseudoElement:0}),LR=l4(OR),WR=d0({},Pz,{clipboardData:function(z){return"clipboardData"in z?z.clipboardData:window.clipboardData}}),RR=l4(WR),FR=d0({},Pz,{data:0}),P9=l4(FR),NR=P9,MR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wR={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"},bR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},PR=d0({},U5,{key:function(z){if(z.key){var $=MR[z.key]||z.key;if($!=="Unidentified")return $}return z.type==="keypress"?(z=MY(z),z===13?"Enter":String.fromCharCode(z)):z.type==="keydown"||z.type==="keyup"?wR[z.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:QQ,charCode:function(z){return z.type==="keypress"?MY(z):0},keyCode:function(z){return z.type==="keydown"||z.type==="keyup"?z.keyCode:0},which:function(z){return z.type==="keypress"?MY(z):z.type==="keydown"||z.type==="keyup"?z.keyCode:0}}),AR=l4(PR),vR=d0({},fZ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),A9=l4(vR),TR=d0({},U5,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:QQ}),IR=l4(TR),kR=d0({},Pz,{propertyName:0,elapsedTime:0,pseudoElement:0}),yR=l4(kR),VR=d0({},fZ,{deltaX:function(z){return"deltaX"in z?z.deltaX:("wheelDeltaX"in z)?-z.wheelDeltaX:0},deltaY:function(z){return"deltaY"in z?z.deltaY:("wheelDeltaY"in z)?-z.wheelDeltaY:("wheelDelta"in z)?-z.wheelDelta:0},deltaZ:0,deltaMode:0}),CR=l4(VR),SR=d0({},Pz,{newState:0,oldState:0}),DR=l4(SR),ER=[9,13,27,32],v9=229,Tq=w7&&"CompositionEvent"in window,L5=null;w7&&"documentMode"in document&&(L5=document.documentMode);var fR=w7&&"TextEvent"in window&&!L5,T9=w7&&(!Tq||L5&&8<L5&&11>=L5),I9=32,k9=String.fromCharCode(I9),y9=!1,I$=!1,mR={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},W5=null,R5=null,V9=!1;w7&&(V9=YW("input")&&(!document.documentMode||9<document.documentMode));var h4=typeof Object.is==="function"?Object.is:HW,hR=w7&&"documentMode"in document&&11>=document.documentMode,k$=null,Iq=null,F5=null,kq=!1,y$={animationend:qz("Animation","AnimationEnd"),animationiteration:qz("Animation","AnimationIteration"),animationstart:qz("Animation","AnimationStart"),transitionrun:qz("Transition","TransitionRun"),transitionstart:qz("Transition","TransitionStart"),transitioncancel:qz("Transition","TransitionCancel"),transitionend:qz("Transition","TransitionEnd")},yq={},C9={};w7&&(C9=document.createElement("div").style,("AnimationEvent"in window)||(delete y$.animationend.animation,delete y$.animationiteration.animation,delete y$.animationstart.animation),("TransitionEvent"in window)||delete y$.transitionend.transition);var S9=Hz("animationend"),D9=Hz("animationiteration"),E9=Hz("animationstart"),pR=Hz("transitionrun"),jR=Hz("transitionstart"),gR=Hz("transitioncancel"),f9=Hz("transitionend"),m9=new Map,Vq="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(" ");Vq.push("scrollEnd");var h9=0;if(typeof performance==="object"&&typeof performance.now==="function")var xR=performance,p9=function(){return xR.now()};else{var uR=Date;p9=function(){return uR.now()}}var Cq=typeof reportError==="function"?reportError:function(z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent($))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",z);return}console.error(z)},lR="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.",mZ=0,Sq=1,Dq=2,Eq=3,hZ="– ",pZ="+ ",j9=" ",k1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",R6="Components ⚛",a0="Scheduler ⚛",o0="Blocking",D8=!1,x7={color:"primary",properties:null,tooltipText:"",track:R6},E8={start:-0,end:-0,detail:{devtools:x7}},cR=["Changed Props",""],g9="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dR=["Changed Props",g9],N5=1,u7=2,F6=[],V$=0,fq=0,f8={};Object.freeze(f8);var N6=null,C$=null,T0=0,aR=1,j0=2,V4=8,g6=16,iR=32,x9=!1;try{var u9=Object.preventExtensions({})}catch(z){x9=!0}var mq=new WeakMap,S$=[],D$=0,jZ=null,M5=0,M6=[],w6=0,Az=null,l7=1,c7="",A4=null,y1=null,n0=!1,b7=!1,q6=null,m8=null,b6=!1,hq=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."),pq=e(null),jq=e(null),l9={},gZ=null,E$=null,f$=!1,oR=typeof AbortController<"u"?AbortController:function(){var z=[],$=this.signal={aborted:!1,addEventListener:function(X,Y){z.push(Y)}};this.abort=function(){$.aborted=!0,z.forEach(function(X){return X()})}},rR=X1.unstable_scheduleCallback,nR=X1.unstable_NormalPriority,e1={$$typeof:W7,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},z4=X1.unstable_now,xZ=console.createTask?console.createTask:function(){return null},w5=1,uZ=2,W4=-0,h8=-0,d7=-0,a7=null,p4=-1.1,vz=-0,j1=-0,M0=-1.1,b0=-1.1,m1=null,l1=!1,p8=-0,P7=-1.1,b5=null,j8=0,gq=null,xq=null,Tz=-1.1,P5=null,m$=-1.1,lZ=-1.1,A7=-0,i7=-1.1,P6=-1.1,uq=0,A5=null,c9=null,d9=null,g8=-1.1,Iz=null,x8=-1.1,cZ=-1.1,a9=-0,i9=-0,dZ=0,o7=null,o9=0,v5=-1.1,aZ=!1,iZ=!1,T5=null,lq=0,kz=0,h$=null,r9=j.S;j.S=function(z,$){if(cO=L4(),typeof $==="object"&&$!==null&&typeof $.then==="function"){if(0>i7&&0>P6){i7=z4();var X=X5(),Y=$5();if(X!==x8||Y!==Iz)x8=-1.1;g8=X,Iz=Y}WW(z,$)}r9!==null&&r9(z,$)};var yz=e(null),x6={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},I5=[],k5=[],y5=[],V5=[],C5=[],S5=[],Vz=new Set;x6.recordUnsafeLifecycleWarnings=function(z,$){Vz.has(z.type)||(typeof $.componentWillMount==="function"&&$.componentWillMount.__suppressDeprecationWarning!==!0&&I5.push(z),z.mode&V4&&typeof $.UNSAFE_componentWillMount==="function"&&k5.push(z),typeof $.componentWillReceiveProps==="function"&&$.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&y5.push(z),z.mode&V4&&typeof $.UNSAFE_componentWillReceiveProps==="function"&&V5.push(z),typeof $.componentWillUpdate==="function"&&$.componentWillUpdate.__suppressDeprecationWarning!==!0&&C5.push(z),z.mode&V4&&typeof $.UNSAFE_componentWillUpdate==="function"&&S5.push(z))},x6.flushPendingUnsafeLifecycleWarnings=function(){var z=new Set;0<I5.length&&(I5.forEach(function(q){z.add(C(q)||"Component"),Vz.add(q.type)}),I5=[]);var $=new Set;0<k5.length&&(k5.forEach(function(q){$.add(C(q)||"Component"),Vz.add(q.type)}),k5=[]);var X=new Set;0<y5.length&&(y5.forEach(function(q){X.add(C(q)||"Component"),Vz.add(q.type)}),y5=[]);var Y=new Set;0<V5.length&&(V5.forEach(function(q){Y.add(C(q)||"Component"),Vz.add(q.type)}),V5=[]);var Z=new Set;0<C5.length&&(C5.forEach(function(q){Z.add(C(q)||"Component"),Vz.add(q.type)}),C5=[]);var J=new Set;if(0<S5.length&&(S5.forEach(function(q){J.add(C(q)||"Component"),Vz.add(q.type)}),S5=[]),0<$.size){var Q=F($);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.
|
|
173
|
+
|
|
174
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
175
|
+
|
|
176
|
+
Please update the following components: %s`,Q)}0<Y.size&&(Q=F(Y),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.
|
|
177
|
+
|
|
178
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
179
|
+
* 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
|
|
180
|
+
|
|
181
|
+
Please update the following components: %s`,Q)),0<J.size&&(Q=F(J),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.
|
|
182
|
+
|
|
183
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
184
|
+
|
|
185
|
+
Please update the following components: %s`,Q)),0<z.size&&(Q=F(z),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
186
|
+
|
|
187
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
188
|
+
* 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.
|
|
189
|
+
|
|
190
|
+
Please update the following components: %s`,Q)),0<X.size&&(Q=F(X),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
191
|
+
|
|
192
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
193
|
+
* 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
|
|
194
|
+
* 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.
|
|
195
|
+
|
|
196
|
+
Please update the following components: %s`,Q)),0<Z.size&&(Q=F(Z),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
197
|
+
|
|
198
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
199
|
+
* 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.
|
|
200
|
+
|
|
201
|
+
Please update the following components: %s`,Q))};var oZ=new Map,n9=new Set;x6.recordLegacyContextWarning=function(z,$){var X=null;for(var Y=z;Y!==null;)Y.mode&V4&&(X=Y),Y=Y.return;X===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."):!n9.has(z.type)&&(Y=oZ.get(X),z.type.contextTypes!=null||z.type.childContextTypes!=null||$!==null&&typeof $.getChildContext==="function")&&(Y===void 0&&(Y=[],oZ.set(X,Y)),Y.push(z))},x6.flushLegacyContextWarning=function(){oZ.forEach(function(z){if(z.length!==0){var $=z[0],X=new Set;z.forEach(function(Z){X.add(C(Z)||"Component"),n9.add(Z.type)});var Y=F(X);o($,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
202
|
+
|
|
203
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
204
|
+
|
|
205
|
+
Please update the following components: %s
|
|
206
|
+
|
|
207
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},x6.discardPendingWarnings=function(){I5=[],k5=[],y5=[],V5=[],C5=[],S5=[],oZ=new Map};var t9={react_stack_bottom_frame:function(z,$,X){var Y=R7;R7=!0;try{return z($,X)}finally{R7=Y}}},cq=t9.react_stack_bottom_frame.bind(t9),s9={react_stack_bottom_frame:function(z){var $=R7;R7=!0;try{return z.render()}finally{R7=$}}},e9=s9.react_stack_bottom_frame.bind(s9),zO={react_stack_bottom_frame:function(z,$){try{$.componentDidMount()}catch(X){_1(z,z.return,X)}}},dq=zO.react_stack_bottom_frame.bind(zO),$O={react_stack_bottom_frame:function(z,$,X,Y,Z){try{$.componentDidUpdate(X,Y,Z)}catch(J){_1(z,z.return,J)}}},XO=$O.react_stack_bottom_frame.bind($O),YO={react_stack_bottom_frame:function(z,$){var X=$.stack;z.componentDidCatch($.value,{componentStack:X!==null?X:""})}},tR=YO.react_stack_bottom_frame.bind(YO),ZO={react_stack_bottom_frame:function(z,$,X){try{X.componentWillUnmount()}catch(Y){_1(z,$,Y)}}},JO=ZO.react_stack_bottom_frame.bind(ZO),QO={react_stack_bottom_frame:function(z){var $=z.create;return z=z.inst,$=$(),z.destroy=$}},sR=QO.react_stack_bottom_frame.bind(QO),GO={react_stack_bottom_frame:function(z,$,X){try{X()}catch(Y){_1(z,$,Y)}}},eR=GO.react_stack_bottom_frame.bind(GO),qO={react_stack_bottom_frame:function(z){var $=z._init;return $(z._payload)}},zF=qO.react_stack_bottom_frame.bind(qO),p$=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`."),aq=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."),rZ=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."),nZ={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.')}},Cz=null,D5=!1,j$=null,E5=0,g0=null,iq,HO=iq=!1,KO={},_O={},BO={};O=function(z,$,X){if(X!==null&&typeof X==="object"&&X._store&&(!X._store.validated&&X.key==null||X._store.validated===2)){if(typeof X._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.");X._store.validated=1;var Y=C(z),Z=Y||"null";if(!KO[Z]){KO[Z]=!0,X=X._owner,z=z._debugOwner;var J="";z&&typeof z.tag==="number"&&(Z=C(z))&&(J=`
|
|
208
|
+
|
|
209
|
+
Check the render method of \``+Z+"`."),J||Y&&(J=`
|
|
210
|
+
|
|
211
|
+
Check the top-level render call using <`+Y+">.");var Q="";X!=null&&z!==X&&(Y=null,typeof X.tag==="number"?Y=C(X):typeof X.name==="string"&&(Y=X.name),Y&&(Q=" It was passed a child from "+Y+".")),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.',J,Q)})}}};var Sz=Z_(!0),UO=Z_(!1),OO=0,LO=1,WO=2,oq=3,u8=!1,RO=!1,rq=null,nq=!1,g$=e(null),tZ=e(0),H6=e(null),A6=null,x$=1,f5=2,t1=e(0),sZ=0,v6=1,j4=2,K6=4,g4=8,u$,FO=new Set,NO=new Set,tq=new Set,MO=new Set,r7=0,y0=null,N1=null,$4=null,eZ=!1,l$=!1,Dz=!1,zJ=0,m5=0,n7=null,$F=0,XF=25,h=null,T6=null,t7=-1,h5=!1,p5={readContext:f1,use:A8,useCallback:i1,useContext:i1,useEffect:i1,useImperativeHandle:i1,useLayoutEffect:i1,useInsertionEffect:i1,useMemo:i1,useReducer:i1,useRef:i1,useState:i1,useDebugValue:i1,useDeferredValue:i1,useTransition:i1,useSyncExternalStore:i1,useId:i1,useHostTransitionStatus:i1,useFormState:i1,useActionState:i1,useOptimistic:i1,useMemoCache:i1,useCacheRefresh:i1};p5.useEffectEvent=i1;var sq=null,wO=null,eq=null,bO=null,v7=null,u6=null,$J=null;sq={readContext:function(z){return f1(z)},use:A8,useCallback:function(z,$){return h="useCallback",c0(),J$($),nQ(z,$)},useContext:function(z){return h="useContext",c0(),f1(z)},useEffect:function(z,$){return h="useEffect",c0(),J$($),oY(z,$)},useImperativeHandle:function(z,$,X){return h="useImperativeHandle",c0(),J$(X),rQ(z,$,X)},useInsertionEffect:function(z,$){h="useInsertionEffect",c0(),J$($),Rz(4,j4,z,$)},useLayoutEffect:function(z,$){return h="useLayoutEffect",c0(),J$($),oQ(z,$)},useMemo:function(z,$){h="useMemo",c0(),J$($);var X=j.H;j.H=v7;try{return tQ(z,$)}finally{j.H=X}},useReducer:function(z,$,X){h="useReducer",c0();var Y=j.H;j.H=v7;try{return jQ(z,$,X)}finally{j.H=Y}},useRef:function(z){return h="useRef",c0(),aQ(z)},useState:function(z){h="useState",c0();var $=j.H;j.H=v7;try{return lQ(z)}finally{j.H=$}},useDebugValue:function(){h="useDebugValue",c0()},useDeferredValue:function(z,$){return h="useDeferredValue",c0(),sQ(z,$)},useTransition:function(){return h="useTransition",c0(),$G()},useSyncExternalStore:function(z,$,X){return h="useSyncExternalStore",c0(),xQ(z,$,X)},useId:function(){return h="useId",c0(),XG()},useFormState:function(z,$){return h="useFormState",c0(),lY(),G$(z,$)},useActionState:function(z,$){return h="useActionState",c0(),G$(z,$)},useOptimistic:function(z){return h="useOptimistic",c0(),cQ(z)},useHostTransitionStatus:Fz,useMemoCache:Wz,useCacheRefresh:function(){return h="useCacheRefresh",c0(),YG()},useEffectEvent:function(z){return h="useEffectEvent",c0(),iQ(z)}},wO={readContext:function(z){return f1(z)},use:A8,useCallback:function(z,$){return h="useCallback",r(),nQ(z,$)},useContext:function(z){return h="useContext",r(),f1(z)},useEffect:function(z,$){return h="useEffect",r(),oY(z,$)},useImperativeHandle:function(z,$,X){return h="useImperativeHandle",r(),rQ(z,$,X)},useInsertionEffect:function(z,$){h="useInsertionEffect",r(),Rz(4,j4,z,$)},useLayoutEffect:function(z,$){return h="useLayoutEffect",r(),oQ(z,$)},useMemo:function(z,$){h="useMemo",r();var X=j.H;j.H=v7;try{return tQ(z,$)}finally{j.H=X}},useReducer:function(z,$,X){h="useReducer",r();var Y=j.H;j.H=v7;try{return jQ(z,$,X)}finally{j.H=Y}},useRef:function(z){return h="useRef",r(),aQ(z)},useState:function(z){h="useState",r();var $=j.H;j.H=v7;try{return lQ(z)}finally{j.H=$}},useDebugValue:function(){h="useDebugValue",r()},useDeferredValue:function(z,$){return h="useDeferredValue",r(),sQ(z,$)},useTransition:function(){return h="useTransition",r(),$G()},useSyncExternalStore:function(z,$,X){return h="useSyncExternalStore",r(),xQ(z,$,X)},useId:function(){return h="useId",r(),XG()},useActionState:function(z,$){return h="useActionState",r(),G$(z,$)},useFormState:function(z,$){return h="useFormState",r(),lY(),G$(z,$)},useOptimistic:function(z){return h="useOptimistic",r(),cQ(z)},useHostTransitionStatus:Fz,useMemoCache:Wz,useCacheRefresh:function(){return h="useCacheRefresh",r(),YG()},useEffectEvent:function(z){return h="useEffectEvent",r(),iQ(z)}},eq={readContext:function(z){return f1(z)},use:A8,useCallback:function(z,$){return h="useCallback",r(),tY(z,$)},useContext:function(z){return h="useContext",r(),f1(z)},useEffect:function(z,$){h="useEffect",r(),c4(2048,g4,z,$)},useImperativeHandle:function(z,$,X){return h="useImperativeHandle",r(),nY(z,$,X)},useInsertionEffect:function(z,$){return h="useInsertionEffect",r(),c4(4,j4,z,$)},useLayoutEffect:function(z,$){return h="useLayoutEffect",r(),c4(4,K6,z,$)},useMemo:function(z,$){h="useMemo",r();var X=j.H;j.H=u6;try{return sY(z,$)}finally{j.H=X}},useReducer:function(z,$,X){h="useReducer",r();var Y=j.H;j.H=u6;try{return Q$(z,$,X)}finally{j.H=Y}},useRef:function(){return h="useRef",r(),O1().memoizedState},useState:function(){h="useState",r();var z=j.H;j.H=u6;try{return Q$(m6)}finally{j.H=z}},useDebugValue:function(){h="useDebugValue",r()},useDeferredValue:function(z,$){return h="useDeferredValue",r(),T_(z,$)},useTransition:function(){return h="useTransition",r(),S_()},useSyncExternalStore:function(z,$,X){return h="useSyncExternalStore",r(),dY(z,$,X)},useId:function(){return h="useId",r(),O1().memoizedState},useFormState:function(z){return h="useFormState",r(),lY(),aY(z)},useActionState:function(z){return h="useActionState",r(),aY(z)},useOptimistic:function(z,$){return h="useOptimistic",r(),W_(z,$)},useHostTransitionStatus:Fz,useMemoCache:Wz,useCacheRefresh:function(){return h="useCacheRefresh",r(),O1().memoizedState},useEffectEvent:function(z){return h="useEffectEvent",r(),rY(z)}},bO={readContext:function(z){return f1(z)},use:A8,useCallback:function(z,$){return h="useCallback",r(),tY(z,$)},useContext:function(z){return h="useContext",r(),f1(z)},useEffect:function(z,$){h="useEffect",r(),c4(2048,g4,z,$)},useImperativeHandle:function(z,$,X){return h="useImperativeHandle",r(),nY(z,$,X)},useInsertionEffect:function(z,$){return h="useInsertionEffect",r(),c4(4,j4,z,$)},useLayoutEffect:function(z,$){return h="useLayoutEffect",r(),c4(4,K6,z,$)},useMemo:function(z,$){h="useMemo",r();var X=j.H;j.H=$J;try{return sY(z,$)}finally{j.H=X}},useReducer:function(z,$,X){h="useReducer",r();var Y=j.H;j.H=$J;try{return lX(z,$,X)}finally{j.H=Y}},useRef:function(){return h="useRef",r(),O1().memoizedState},useState:function(){h="useState",r();var z=j.H;j.H=$J;try{return lX(m6)}finally{j.H=z}},useDebugValue:function(){h="useDebugValue",r()},useDeferredValue:function(z,$){return h="useDeferredValue",r(),I_(z,$)},useTransition:function(){return h="useTransition",r(),D_()},useSyncExternalStore:function(z,$,X){return h="useSyncExternalStore",r(),dY(z,$,X)},useId:function(){return h="useId",r(),O1().memoizedState},useFormState:function(z){return h="useFormState",r(),lY(),iY(z)},useActionState:function(z){return h="useActionState",r(),iY(z)},useOptimistic:function(z,$){return h="useOptimistic",r(),F_(z,$)},useHostTransitionStatus:Fz,useMemoCache:Wz,useCacheRefresh:function(){return h="useCacheRefresh",r(),O1().memoizedState},useEffectEvent:function(z){return h="useEffectEvent",r(),rY(z)}},v7={readContext:function(z){return I(),f1(z)},use:function(z){return U(),A8(z)},useCallback:function(z,$){return h="useCallback",U(),c0(),nQ(z,$)},useContext:function(z){return h="useContext",U(),c0(),f1(z)},useEffect:function(z,$){return h="useEffect",U(),c0(),oY(z,$)},useImperativeHandle:function(z,$,X){return h="useImperativeHandle",U(),c0(),rQ(z,$,X)},useInsertionEffect:function(z,$){h="useInsertionEffect",U(),c0(),Rz(4,j4,z,$)},useLayoutEffect:function(z,$){return h="useLayoutEffect",U(),c0(),oQ(z,$)},useMemo:function(z,$){h="useMemo",U(),c0();var X=j.H;j.H=v7;try{return tQ(z,$)}finally{j.H=X}},useReducer:function(z,$,X){h="useReducer",U(),c0();var Y=j.H;j.H=v7;try{return jQ(z,$,X)}finally{j.H=Y}},useRef:function(z){return h="useRef",U(),c0(),aQ(z)},useState:function(z){h="useState",U(),c0();var $=j.H;j.H=v7;try{return lQ(z)}finally{j.H=$}},useDebugValue:function(){h="useDebugValue",U(),c0()},useDeferredValue:function(z,$){return h="useDeferredValue",U(),c0(),sQ(z,$)},useTransition:function(){return h="useTransition",U(),c0(),$G()},useSyncExternalStore:function(z,$,X){return h="useSyncExternalStore",U(),c0(),xQ(z,$,X)},useId:function(){return h="useId",U(),c0(),XG()},useFormState:function(z,$){return h="useFormState",U(),c0(),G$(z,$)},useActionState:function(z,$){return h="useActionState",U(),c0(),G$(z,$)},useOptimistic:function(z){return h="useOptimistic",U(),c0(),cQ(z)},useMemoCache:function(z){return U(),Wz(z)},useHostTransitionStatus:Fz,useCacheRefresh:function(){return h="useCacheRefresh",c0(),YG()},useEffectEvent:function(z){return h="useEffectEvent",U(),c0(),iQ(z)}},u6={readContext:function(z){return I(),f1(z)},use:function(z){return U(),A8(z)},useCallback:function(z,$){return h="useCallback",U(),r(),tY(z,$)},useContext:function(z){return h="useContext",U(),r(),f1(z)},useEffect:function(z,$){h="useEffect",U(),r(),c4(2048,g4,z,$)},useImperativeHandle:function(z,$,X){return h="useImperativeHandle",U(),r(),nY(z,$,X)},useInsertionEffect:function(z,$){return h="useInsertionEffect",U(),r(),c4(4,j4,z,$)},useLayoutEffect:function(z,$){return h="useLayoutEffect",U(),r(),c4(4,K6,z,$)},useMemo:function(z,$){h="useMemo",U(),r();var X=j.H;j.H=u6;try{return sY(z,$)}finally{j.H=X}},useReducer:function(z,$,X){h="useReducer",U(),r();var Y=j.H;j.H=u6;try{return Q$(z,$,X)}finally{j.H=Y}},useRef:function(){return h="useRef",U(),r(),O1().memoizedState},useState:function(){h="useState",U(),r();var z=j.H;j.H=u6;try{return Q$(m6)}finally{j.H=z}},useDebugValue:function(){h="useDebugValue",U(),r()},useDeferredValue:function(z,$){return h="useDeferredValue",U(),r(),T_(z,$)},useTransition:function(){return h="useTransition",U(),r(),S_()},useSyncExternalStore:function(z,$,X){return h="useSyncExternalStore",U(),r(),dY(z,$,X)},useId:function(){return h="useId",U(),r(),O1().memoizedState},useFormState:function(z){return h="useFormState",U(),r(),aY(z)},useActionState:function(z){return h="useActionState",U(),r(),aY(z)},useOptimistic:function(z,$){return h="useOptimistic",U(),r(),W_(z,$)},useMemoCache:function(z){return U(),Wz(z)},useHostTransitionStatus:Fz,useCacheRefresh:function(){return h="useCacheRefresh",r(),O1().memoizedState},useEffectEvent:function(z){return h="useEffectEvent",U(),r(),rY(z)}},$J={readContext:function(z){return I(),f1(z)},use:function(z){return U(),A8(z)},useCallback:function(z,$){return h="useCallback",U(),r(),tY(z,$)},useContext:function(z){return h="useContext",U(),r(),f1(z)},useEffect:function(z,$){h="useEffect",U(),r(),c4(2048,g4,z,$)},useImperativeHandle:function(z,$,X){return h="useImperativeHandle",U(),r(),nY(z,$,X)},useInsertionEffect:function(z,$){return h="useInsertionEffect",U(),r(),c4(4,j4,z,$)},useLayoutEffect:function(z,$){return h="useLayoutEffect",U(),r(),c4(4,K6,z,$)},useMemo:function(z,$){h="useMemo",U(),r();var X=j.H;j.H=u6;try{return sY(z,$)}finally{j.H=X}},useReducer:function(z,$,X){h="useReducer",U(),r();var Y=j.H;j.H=u6;try{return lX(z,$,X)}finally{j.H=Y}},useRef:function(){return h="useRef",U(),r(),O1().memoizedState},useState:function(){h="useState",U(),r();var z=j.H;j.H=u6;try{return lX(m6)}finally{j.H=z}},useDebugValue:function(){h="useDebugValue",U(),r()},useDeferredValue:function(z,$){return h="useDeferredValue",U(),r(),I_(z,$)},useTransition:function(){return h="useTransition",U(),r(),D_()},useSyncExternalStore:function(z,$,X){return h="useSyncExternalStore",U(),r(),dY(z,$,X)},useId:function(){return h="useId",U(),r(),O1().memoizedState},useFormState:function(z){return h="useFormState",U(),r(),iY(z)},useActionState:function(z){return h="useActionState",U(),r(),iY(z)},useOptimistic:function(z,$){return h="useOptimistic",U(),r(),F_(z,$)},useMemoCache:function(z){return U(),Wz(z)},useHostTransitionStatus:Fz,useCacheRefresh:function(){return h="useCacheRefresh",r(),O1().memoizedState},useEffectEvent:function(z){return h="useEffectEvent",U(),r(),rY(z)}};var PO={},AO=new Set,vO=new Set,TO=new Set,IO=new Set,kO=new Set,yO=new Set,VO=new Set,CO=new Set,SO=new Set,DO=new Set;Object.freeze(PO);var zH={enqueueSetState:function(z,$,X){z=z._reactInternals;var Y=Y6(z),Z=M8(Y);Z.payload=$,X!==void 0&&X!==null&&(JG(X),Z.callback=X),$=w8(z,Z,Y),$!==null&&(X7(Y,"this.setState()",z),u1($,z,Y),jX($,z,Y))},enqueueReplaceState:function(z,$,X){z=z._reactInternals;var Y=Y6(z),Z=M8(Y);Z.tag=LO,Z.payload=$,X!==void 0&&X!==null&&(JG(X),Z.callback=X),$=w8(z,Z,Y),$!==null&&(X7(Y,"this.replaceState()",z),u1($,z,Y),jX($,z,Y))},enqueueForceUpdate:function(z,$){z=z._reactInternals;var X=Y6(z),Y=M8(X);Y.tag=WO,$!==void 0&&$!==null&&(JG($),Y.callback=$),$=w8(z,Y,X),$!==null&&(X7(X,"this.forceUpdate()",z),u1($,z,X),jX($,z,X))}},c$=null,$H=null,XH=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."),X4=!1,EO={},fO={},mO={},hO={},d$=!1,pO={},XJ={},YH={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},jO=!1,gO=null;gO=new Set;var s7=!1,Y4=!1,ZH=!1,xO=typeof WeakSet==="function"?WeakSet:Set,R4=null,a$=null,i$=null,Z4=null,i4=!1,l6=null,H4=!1,j5=8192,YF={getCacheForType:function(z){var $=f1(e1),X=$.data.get(z);return X===void 0&&(X=z(),$.data.set(z,X)),X},cacheSignal:function(){return f1(e1).controller.signal},getOwner:function(){return Q6}};if(typeof Symbol==="function"&&Symbol.for){var g5=Symbol.for;g5("selector.component"),g5("selector.has_pseudo_class"),g5("selector.role"),g5("selector.test_id"),g5("selector.text")}var ZF=[],JF=typeof WeakMap==="function"?WeakMap:Map,F4=0,K4=2,_6=4,e7=0,x5=1,Ez=2,YJ=3,l8=4,ZJ=6,uO=5,z1=F4,M1=null,u0=null,x0=0,o4=0,JJ=1,fz=2,u5=3,lO=4,JH=5,l5=6,QJ=7,QH=8,mz=9,L1=o4,B6=null,c8=!1,o$=!1,GH=!1,T7=0,g1=e7,d8=0,a8=0,qH=0,r4=0,hz=0,c5=null,x4=null,GJ=!1,qJ=0,cO=0,dO=300,HJ=1/0,aO=500,d5=null,o1=null,i8=null,KJ=0,HH=1,KH=2,iO=3,o8=0,oO=1,rO=2,nO=3,tO=4,_J=5,J4=0,r8=null,r$=null,c6=0,_H=0,BH=-0,UH=null,sO=null,eO=null,d6=KJ,zL=null,QF=50,a5=0,OH=null,LH=!1,BJ=!1,GF=50,pz=0,i5=null,n$=!1,UJ=null,$L=!1,XL=new Set,qF={},OJ=null,t$=null,WH=!1,RH=!1,LJ=!1,FH=!1,n8=0,NH={};(function(){for(var z=0;z<Vq.length;z++){var $=Vq[z],X=$.toLowerCase();$=$[0].toUpperCase()+$.slice(1),f6(X,"on"+$)}f6(S9,"onAnimationEnd"),f6(D9,"onAnimationIteration"),f6(E9,"onAnimationStart"),f6("dblclick","onDoubleClick"),f6("focusin","onFocus"),f6("focusout","onBlur"),f6(pR,"onTransitionRun"),f6(jR,"onTransitionStart"),f6(gR,"onTransitionCancel"),f6(f9,"onTransitionEnd")})(),U8("onMouseEnter",["mouseout","mouseover"]),U8("onMouseLeave",["mouseout","mouseover"]),U8("onPointerEnter",["pointerout","pointerover"]),U8("onPointerLeave",["pointerout","pointerover"]),s6("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s6("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s6("onBeforeInput",["compositionend","keypress","textInput","paste"]),s6("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s6("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s6("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var o5="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(" "),MH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(o5)),WJ="_reactListening"+Math.random().toString(36).slice(2),YL=!1,ZL=!1,RJ=!1,JL=!1,FJ=!1,NJ=!1,QL=!1,MJ={},HF=/\r\n?/g,KF=/\u0000|\uFFFD/g,jz="http://www.w3.org/1999/xlink",wH="http://www.w3.org/XML/1998/namespace",_F="javascript:throw new Error('React form unexpectedly submitted.')",BF="suppressHydrationWarning",gz="&",wJ="/&",r5="$",n5="/$",t8="$?",xz="$~",s$="$!",UF="html",OF="body",LF="head",bH="F!",GL="F",qL="loading",WF="style",z8=0,e$=1,bJ=2,PH=null,AH=null,HL={dialog:!0,webview:!0},vH=null,t5=void 0,KL=typeof setTimeout==="function"?setTimeout:void 0,RF=typeof clearTimeout==="function"?clearTimeout:void 0,uz=-1,_L=typeof Promise==="function"?Promise:void 0,FF=typeof queueMicrotask==="function"?queueMicrotask:typeof _L<"u"?function(z){return _L.resolve(null).then(z).catch(X3)}:KL,TH=null,lz=0,s5=1,BL=2,UL=3,I6=4,k6=new Map,OL=new Set,$8=B1.d;B1.d={f:function(){var z=$8.f(),$=B$();return z||$},r:function(z){var $=S4(z);$!==null&&$.tag===5&&$.type==="form"?C_($):$8.r(z)},D:function(z){$8.D(z),AU("dns-prefetch",z,null)},C:function(z,$){$8.C(z,$),AU("preconnect",z,$)},L:function(z,$,X){$8.L(z,$,X);var Y=zX;if(Y&&z&&$){var Z='link[rel="preload"][as="'+E0($)+'"]';$==="image"?X&&X.imageSrcSet?(Z+='[imagesrcset="'+E0(X.imageSrcSet)+'"]',typeof X.imageSizes==="string"&&(Z+='[imagesizes="'+E0(X.imageSizes)+'"]')):Z+='[href="'+E0(z)+'"]':Z+='[href="'+E0(z)+'"]';var J=Z;switch($){case"style":J=L$(z);break;case"script":J=W$(z)}k6.has(J)||(z=d0({rel:"preload",href:$==="image"&&X&&X.imageSrcSet?void 0:z,as:$},X),k6.set(J,z),Y.querySelector(Z)!==null||$==="style"&&Y.querySelector(Z5(J))||$==="script"&&Y.querySelector(J5(J))||($=Y.createElement("link"),b4($,"link",z),a1($),Y.head.appendChild($)))}},m:function(z,$){$8.m(z,$);var X=zX;if(X&&z){var Y=$&&typeof $.as==="string"?$.as:"script",Z='link[rel="modulepreload"][as="'+E0(Y)+'"][href="'+E0(z)+'"]',J=Z;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":J=W$(z)}if(!k6.has(J)&&(z=d0({rel:"modulepreload",href:z},$),k6.set(J,z),X.querySelector(Z)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(X.querySelector(J5(J)))return}Y=X.createElement("link"),b4(Y,"link",z),a1(Y),X.head.appendChild(Y)}}},X:function(z,$){$8.X(z,$);var X=zX;if(X&&z){var Y=B8(X).hoistableScripts,Z=W$(z),J=Y.get(Z);J||(J=X.querySelector(J5(Z)),J||(z=d0({src:z,async:!0},$),($=k6.get(Z))&&rG(z,$),J=X.createElement("script"),a1(J),b4(J,"link",z),X.head.appendChild(J)),J={type:"script",instance:J,count:1,state:null},Y.set(Z,J))}},S:function(z,$,X){$8.S(z,$,X);var Y=zX;if(Y&&z){var Z=B8(Y).hoistableStyles,J=L$(z);$=$||"default";var Q=Z.get(J);if(!Q){var q={loading:lz,preload:null};if(Q=Y.querySelector(Z5(J)))q.loading=s5|I6;else{z=d0({rel:"stylesheet",href:z,"data-precedence":$},X),(X=k6.get(J))&&oG(z,X);var K=Q=Y.createElement("link");a1(K),b4(K,"link",z),K._p=new Promise(function(B,T){K.onload=B,K.onerror=T}),K.addEventListener("load",function(){q.loading|=s5}),K.addEventListener("error",function(){q.loading|=BL}),q.loading|=I6,RZ(Q,$,Y)}Q={type:"stylesheet",instance:Q,count:1,state:q},Z.set(J,Q)}}},M:function(z,$){$8.M(z,$);var X=zX;if(X&&z){var Y=B8(X).hoistableScripts,Z=W$(z),J=Y.get(Z);J||(J=X.querySelector(J5(Z)),J||(z=d0({src:z,async:!0,type:"module"},$),($=k6.get(Z))&&rG(z,$),J=X.createElement("script"),a1(J),b4(J,"link",z),X.head.appendChild(J)),J={type:"script",instance:J,count:1,state:null},Y.set(Z,J))}}};var zX=typeof document>"u"?null:document,PJ=null,NF=60000,MF=800,wF=500,IH=0,kH=null,AJ=null,cz=m3,e5={$$typeof:W7,Provider:null,Consumer:null,_currentValue:cz,_currentValue2:cz,_threadCount:0},LL="%c%s%c",WL="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",RL="",vJ=" ",bF=Function.prototype.bind,FL=!1,NL=null,ML=null,wL=null,bL=null,PL=null,AL=null,vL=null,TL=null,IL=null,kL=null;NL=function(z,$,X,Y){$=G(z,$),$!==null&&(X=H($.memoizedState,X,0,Y),$.memoizedState=X,$.baseState=X,z.memoizedProps=d0({},z.memoizedProps),X=k4(z,2),X!==null&&u1(X,z,2))},ML=function(z,$,X){$=G(z,$),$!==null&&(X=R($.memoizedState,X,0),$.memoizedState=X,$.baseState=X,z.memoizedProps=d0({},z.memoizedProps),X=k4(z,2),X!==null&&u1(X,z,2))},wL=function(z,$,X,Y){$=G(z,$),$!==null&&(X=_($.memoizedState,X,Y),$.memoizedState=X,$.baseState=X,z.memoizedProps=d0({},z.memoizedProps),X=k4(z,2),X!==null&&u1(X,z,2))},bL=function(z,$,X){z.pendingProps=H(z.memoizedProps,$,0,X),z.alternate&&(z.alternate.pendingProps=z.pendingProps),$=k4(z,2),$!==null&&u1($,z,2)},PL=function(z,$){z.pendingProps=R(z.memoizedProps,$,0),z.alternate&&(z.alternate.pendingProps=z.pendingProps),$=k4(z,2),$!==null&&u1($,z,2)},AL=function(z,$,X){z.pendingProps=_(z.memoizedProps,$,X),z.alternate&&(z.alternate.pendingProps=z.pendingProps),$=k4(z,2),$!==null&&u1($,z,2)},vL=function(z){var $=k4(z,2);$!==null&&u1($,z,2)},TL=function(z){var $=n6(),X=k4(z,$);X!==null&&u1(X,z,$)},IL=function(z){M=z},kL=function(z){N=z};var TJ=!0,IJ=null,yH=!1,s8=null,e8=null,zz=null,zY=new Map,$Y=new Map,$z=[],PF="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(" "),kJ=null;if(bZ.prototype.render=$q.prototype.render=function(z){var $=this._internalRoot;if($===null)throw Error("Cannot update an unmounted root.");var X=arguments;typeof X[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()."):g(X[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 X[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),X=z;var Y=$.current,Z=Y6(Y);nG(Y,Z,X,$,null,null)},bZ.prototype.unmount=$q.prototype.unmount=function(){var z=arguments;if(typeof z[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()."),z=this._internalRoot,z!==null){this._internalRoot=null;var $=z.containerInfo;(z1&(K4|_6))!==F4&&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."),nG(z.current,2,null,z,null,null),B$(),$[C8]=null}},bZ.prototype.unstable_scheduleHydration=function(z){if(z){var $=wX();z={blockedOn:null,target:z,priority:$};for(var X=0;X<$z.length&&$!==0&&$<$z[X].priority;X++);$z.splice(X,0,z),X===0&&pU(z)}},function(){var z=XX.version;if(z!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
212
|
+
- react: `+(z+`
|
|
213
|
+
- react-dom: 19.2.4
|
|
214
|
+
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"),B1.findDOMNode=function(z){var $=z._reactInternals;if($===void 0){if(typeof z.render==="function")throw Error("Unable to find node on an unmounted component.");throw z=Object.keys(z).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+z)}return z=H0($),z=z!==null?d(z):null,z=z===null?null:z.stateNode,z},!function(){var z={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};return z.overrideHookState=NL,z.overrideHookStateDeletePath=ML,z.overrideHookStateRenamePath=wL,z.overrideProps=bL,z.overridePropsDeletePath=PL,z.overridePropsRenamePath=AL,z.scheduleUpdate=vL,z.scheduleRetry=TL,z.setErrorHandler=IL,z.setSuspenseHandler=kL,z.scheduleRefresh=E,z.scheduleRoot=S,z.setRefreshHandler=V,z.getCurrentFiber=k3,sJ(z)}()&&w7&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var yL=window.location.protocol;/^(https?|file):$/.test(yL)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(yL==="file:"?`
|
|
215
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}kF.createRoot=function(z,$){if(!g(z))throw Error("Target container is not a DOM element.");uU(z);var X=!1,Y="",Z=j_,J=g_,Q=x_;return $!==null&&$!==void 0&&($.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof $==="object"&&$!==null&&$.$$typeof===L7&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
216
|
+
|
|
217
|
+
let root = createRoot(domContainer);
|
|
218
|
+
root.render(<App />);`),$.unstable_strictMode===!0&&(X=!0),$.identifierPrefix!==void 0&&(Y=$.identifierPrefix),$.onUncaughtError!==void 0&&(Z=$.onUncaughtError),$.onCaughtError!==void 0&&(J=$.onCaughtError),$.onRecoverableError!==void 0&&(Q=$.onRecoverableError)),$=CU(z,1,!1,null,null,X,Y,null,Z,J,Q,xU),z[C8]=$.current,mG(z),new $q($)},kF.hydrateRoot=function(z,$,X){if(!g(z))throw Error("Target container is not a DOM element.");uU(z),$===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,Z="",J=j_,Q=g_,q=x_,K=null;return X!==null&&X!==void 0&&(X.unstable_strictMode===!0&&(Y=!0),X.identifierPrefix!==void 0&&(Z=X.identifierPrefix),X.onUncaughtError!==void 0&&(J=X.onUncaughtError),X.onCaughtError!==void 0&&(Q=X.onCaughtError),X.onRecoverableError!==void 0&&(q=X.onRecoverableError),X.formState!==void 0&&(K=X.formState)),$=CU(z,1,!0,$,X!=null?X:null,Y,Z,K,J,Q,q,xU),$.context=SU(null),X=$.current,Y=Y6(X),Y=NX(Y),Z=M8(Y),Z.callback=null,w8(X,Z,Y),X7(Y,"hydrateRoot()",null),X=Y,$.current.lanes=X,S6($,X),U7($),z[C8]=$.current,mG(z),new bZ($)},kF.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var mL=$X((Tw,fL)=>{var yF=n(EL());fL.exports=yF});var Y1=$X((GN)=>{var iz=n(e0());(function(){function G(m){if(m==null)return null;if(typeof m==="function")return m.$$typeof===C?null:m.displayName||m.name||null;if(typeof m==="string")return m;switch(m){case V:return"Fragment";case i:return"Profiler";case g:return"StrictMode";case H0:return"Suspense";case d:return"SuspenseList";case v0:return"Activity"}if(typeof m==="object")switch(typeof m.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case E:return"Portal";case p:return m.displayName||"Context";case s:return(m._context.displayName||"Context")+".Consumer";case a:var Q0=m.render;return m=m.displayName,m||(m=Q0.displayName||Q0.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case B0:return Q0=m.displayName||null,Q0!==null?Q0:G(m.type)||"Memo";case c:Q0=m._payload,m=m._init;try{return G(m(Q0))}catch(k0){}}return null}function H(m){return""+m}function _(m){try{H(m);var Q0=!1}catch(r0){Q0=!0}if(Q0){Q0=console;var k0=Q0.error,D0=typeof Symbol==="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object";return k0.call(Q0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D0),H(m)}}function L(m){if(m===V)return"<>";if(typeof m==="object"&&m!==null&&m.$$typeof===c)return"<...>";try{var Q0=G(m);return Q0?"<"+Q0+">":"<...>"}catch(k0){return"<...>"}}function R(){var m=e.A;return m===null?null:m.getOwner()}function N(){return Error("react-stack-top-frame")}function M(m){if(l.call(m,"key")){var Q0=Object.getOwnPropertyDescriptor(m,"key").get;if(Q0&&Q0.isReactWarning)return!1}return m.key!==void 0}function U(m,Q0){function k0(){t||(t=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q0))}k0.isReactWarning=!0,Object.defineProperty(m,"key",{get:k0,configurable:!0})}function I(){var m=G(this.type);return Z0[m]||(Z0[m]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),m=this.props.ref,m!==void 0?m:null}function y(m,Q0,k0,D0,r0,G4){var f=k0.ref;return m={$$typeof:S,type:m,key:Q0,props:k0,_owner:D0},(f!==void 0?f:null)!==null?Object.defineProperty(m,"ref",{enumerable:!1,get:I}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:r0}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:G4}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function O(m,Q0,k0,D0,r0,G4){var f=Q0.children;if(f!==void 0)if(D0)if(u(f)){for(D0=0;D0<f.length;D0++)F(f[D0]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else F(f);if(l.call(Q0,"key")){f=G(m);var Y0=Object.keys(Q0).filter(function(U1){return U1!=="key"});D0=0<Y0.length?"{key: someKey, "+Y0.join(": ..., ")+": ...}":"{key: someKey}",f0[f+D0]||(Y0=0<Y0.length?"{"+Y0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
219
|
+
let props = %s;
|
|
220
|
+
<%s {...props} />
|
|
221
|
+
React keys must be passed directly to JSX without using spread:
|
|
222
|
+
let props = %s;
|
|
223
|
+
<%s key={someKey} {...props} />`,D0,f,Y0,f),f0[f+D0]=!0)}if(f=null,k0!==void 0&&(_(k0),f=""+k0),M(Q0)&&(_(Q0.key),f=""+Q0.key),"key"in Q0){k0={};for(var i0 in Q0)i0!=="key"&&(k0[i0]=Q0[i0])}else k0=Q0;return f&&U(k0,typeof m==="function"?m.displayName||m.name||"Unknown":m),y(m,f,k0,R(),r0,G4)}function F(m){P(m)?m._store&&(m._store.validated=1):typeof m==="object"&&m!==null&&m.$$typeof===c&&(m._payload.status==="fulfilled"?P(m._payload.value)&&m._payload.value._store&&(m._payload.value._store.validated=1):m._store&&(m._store.validated=1))}function P(m){return typeof m==="object"&&m!==null&&m.$$typeof===S}var S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),p=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),H0=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),B0=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),v0=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),e=iz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,l=Object.prototype.hasOwnProperty,u=Array.isArray,q0=console.createTask?console.createTask:function(){return null};iz={react_stack_bottom_frame:function(m){return m()}};var t,Z0={},K0=iz.react_stack_bottom_frame.bind(iz,N)(),h0=q0(L(N)),f0={};GN.Fragment=V,GN.jsx=function(m,Q0,k0){var D0=1e4>e.recentlyCreatedOwnerStacks++;return O(m,Q0,k0,!1,D0?Error("react-stack-top-frame"):K0,D0?q0(L(m)):h0)},GN.jsxs=function(m,Q0,k0){var D0=1e4>e.recentlyCreatedOwnerStacks++;return O(m,Q0,k0,!0,D0?Error("react-stack-top-frame"):K0,D0?q0(L(m)):h0)}})()});var D1=n(e0(),1),d2=n(mL(),1);var SH={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1,files:!1,agents:!1,builtinTools:{webSearch:!1,webFetch:!1}};function XY(G){let H=G.operator;if(typeof H==="boolean")return{enabled:H};return H}function YX(G,H){let _=G.agents;if(typeof _==="boolean")return{enabled:_,mode:"worker",group:H||void 0};return{..._,group:_.group||H||void 0}}var Xz=n(e0(),1);function DH(G,H){let{accessToken:_}=c1(),[L,R]=Xz.useState([]),[N,M]=Xz.useState(!0),U=Xz.useCallback(()=>{let V={"Content-Type":"application/json"};if(_)V.Authorization=`Bearer ${_}`;return V},[_]),I=Xz.useCallback(async()=>{let V="/api/agents";if(H!==void 0&&H!==null)V+=`?project_id=${encodeURIComponent(H)}`;let i=await(await fetch(V,{headers:U()})).json();R(i.agents||[]),M(!1)},[U,H]),y=yJ();Xz.useEffect(()=>{if(G)I()},[G,y,I]);let O=async(V)=>{await fetch("/api/agents",{method:"POST",headers:U(),body:JSON.stringify(V)}),await I()},F=async(V)=>{await fetch(`/api/agents/${V}`,{method:"DELETE",headers:U()}),await I()},P=async(V,g)=>{let i=await fetch(`/api/agents/${V}`,{method:"PUT",headers:U(),body:JSON.stringify(g)}),s=await i.json();if(await I(),!i.ok&&s.error)return{error:s.error};return{}},S=async(V)=>{let g=V.status==="running"?"stop":"start";R((s)=>s.map((p)=>p.id===V.id?{...p,status:g==="start"?"starting":"stopping"}:p));let i=await fetch(`/api/agents/${V.id}/${g}`,{method:"POST",headers:U()});if(!i.ok){let s=await i.json();return R((p)=>p.map((a)=>a.id===V.id?{...a,status:V.status}:a)),{error:s.error}}return{}},E=L.filter((V)=>V.status==="running").length;return{agents:L,loading:N,runningCount:E,fetchAgents:I,createAgent:O,updateAgent:P,deleteAgent:F,toggleAgent:S}}var az=n(e0(),1);function EH(G){let{accessToken:H}=c1(),[_,L]=az.useState([]),R=az.useCallback(()=>{let y={"Content-Type":"application/json"};if(H)y.Authorization=`Bearer ${H}`;return y},[H]),N=az.useCallback(async()=>{let O=await(await fetch("/api/providers",{headers:R()})).json();L(O.providers||[])},[R]);az.useEffect(()=>{if(G)N()},[G,N]);let M=_.filter((y)=>y.hasKey);return{providers:_,configuredProviders:M,fetchProviders:N,saveKey:async(y,O)=>{let P=await(await fetch(`/api/keys/${y}/test`,{method:"POST",headers:R(),body:JSON.stringify({key:O})})).json();if(!P.valid)return{success:!1,error:P.error||"API key is invalid"};let S=await fetch(`/api/keys/${y}`,{method:"POST",headers:R(),body:JSON.stringify({key:O})});if(!S.ok)return{success:!1,error:(await S.json()).error||"Failed to save key"};return await N(),{success:!0}},deleteKey:async(y)=>{await fetch(`/api/keys/${y}`,{method:"DELETE",headers:R()}),await N()}}}var hL=n(e0(),1);function fH(){let{authFetch:G,onboardingComplete:H,setOnboardingComplete:_}=c1(),L=hL.useCallback(async()=>{await G("/api/onboarding/complete",{method:"POST"}),_(!0)},[G,_]);return{isComplete:H,setIsComplete:_,complete:L}}var I4=n(e0(),1);var U6=n(e0(),1);var H1=n(e0(),1),GX=n(e0(),1),rz=n(e0(),1);function pL(G){var H,_,L="";if(typeof G=="string"||typeof G=="number")L+=G;else if(typeof G=="object")if(Array.isArray(G)){var R=G.length;for(H=0;H<R;H++)G[H]&&(_=pL(G[H]))&&(L&&(L+=" "),L+=_)}else for(_ in G)G[_]&&(L&&(L+=" "),L+=_);return L}function jL(){for(var G,H,_=0,L="",R=arguments.length;_<R;_++)(G=arguments[_])&&(H=pL(G))&&(L&&(L+=" "),L+=H);return L}var VF=(G)=>{let H=SF(G),{conflictingClassGroups:_,conflictingClassGroupModifiers:L}=G;return{getClassGroupId:(M)=>{let U=M.split("-");if(U[0]===""&&U.length!==1)U.shift();return uL(U,H)||CF(M)},getConflictingClassGroupIds:(M,U)=>{let I=_[M]||[];if(U&&L[M])return[...I,...L[M]];return I}}},uL=(G,H)=>{if(G.length===0)return H.classGroupId;let _=G[0],L=H.nextPart.get(_),R=L?uL(G.slice(1),L):void 0;if(R)return R;if(H.validators.length===0)return;let N=G.join("-");return H.validators.find(({validator:M})=>M(N))?.classGroupId},gL=/^\[(.+)\]$/,CF=(G)=>{if(gL.test(G)){let H=gL.exec(G)[1],_=H?.substring(0,H.indexOf(":"));if(_)return"arbitrary.."+_}},SF=(G)=>{let{theme:H,prefix:_}=G,L={nextPart:new Map,validators:[]};return EF(Object.entries(G.classGroups),_).forEach(([N,M])=>{hH(M,L,N,H)}),L},hH=(G,H,_,L)=>{G.forEach((R)=>{if(typeof R==="string"){let N=R===""?H:xL(H,R);N.classGroupId=_;return}if(typeof R==="function"){if(DF(R)){hH(R(L),H,_,L);return}H.validators.push({validator:R,classGroupId:_});return}Object.entries(R).forEach(([N,M])=>{hH(M,xL(H,N),_,L)})})},xL=(G,H)=>{let _=G;return H.split("-").forEach((L)=>{if(!_.nextPart.has(L))_.nextPart.set(L,{nextPart:new Map,validators:[]});_=_.nextPart.get(L)}),_},DF=(G)=>G.isThemeGetter,EF=(G,H)=>{if(!H)return G;return G.map(([_,L])=>{let R=L.map((N)=>{if(typeof N==="string")return H+N;if(typeof N==="object")return Object.fromEntries(Object.entries(N).map(([M,U])=>[H+M,U]));return N});return[_,R]})},fF=(G)=>{if(G<1)return{get:()=>{return},set:()=>{}};let H=0,_=new Map,L=new Map,R=(N,M)=>{if(_.set(N,M),H++,H>G)H=0,L=_,_=new Map};return{get(N){let M=_.get(N);if(M!==void 0)return M;if((M=L.get(N))!==void 0)return R(N,M),M},set(N,M){if(_.has(N))_.set(N,M);else R(N,M)}}};var mF=(G)=>{let{separator:H,experimentalParseClassName:_}=G,L=H.length===1,R=H[0],N=H.length,M=(U)=>{let I=[],y=0,O=0,F;for(let g=0;g<U.length;g++){let i=U[g];if(y===0){if(i===R&&(L||U.slice(g,g+N)===H)){I.push(U.slice(O,g)),O=g+N;continue}if(i==="/"){F=g;continue}}if(i==="[")y++;else if(i==="]")y--}let P=I.length===0?U:U.substring(O),S=P.startsWith("!"),E=S?P.substring(1):P,V=F&&F>O?F-O:void 0;return{modifiers:I,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:V}};if(_)return(U)=>_({className:U,parseClassName:M});return M},hF=(G)=>{if(G.length<=1)return G;let H=[],_=[];return G.forEach((L)=>{if(L[0]==="[")H.push(..._.sort(),L),_=[];else _.push(L)}),H.push(..._.sort()),H},pF=(G)=>({cache:fF(G.cacheSize),parseClassName:mF(G),...VF(G)}),jF=/\s+/,gF=(G,H)=>{let{parseClassName:_,getClassGroupId:L,getConflictingClassGroupIds:R}=H,N=[],M=G.trim().split(jF),U="";for(let I=M.length-1;I>=0;I-=1){let y=M[I],{modifiers:O,hasImportantModifier:F,baseClassName:P,maybePostfixModifierPosition:S}=_(y),E=Boolean(S),V=L(E?P.substring(0,S):P);if(!V){if(!E){U=y+(U.length>0?" "+U:U);continue}if(V=L(P),!V){U=y+(U.length>0?" "+U:U);continue}E=!1}let g=hF(O).join(":"),i=F?g+"!":g,s=i+V;if(N.includes(s))continue;N.push(s);let p=R(V,E);for(let a=0;a<p.length;++a){let H0=p[a];N.push(i+H0)}U=y+(U.length>0?" "+U:U)}return U};function xF(){let G=0,H,_,L="";while(G<arguments.length)if(H=arguments[G++]){if(_=lL(H))L&&(L+=" "),L+=_}return L}var lL=(G)=>{if(typeof G==="string")return G;let H,_="";for(let L=0;L<G.length;L++)if(G[L]){if(H=lL(G[L]))_&&(_+=" "),_+=H}return _};function uF(G,...H){let _,L,R,N=M;function M(I){let y=H.reduce((O,F)=>F(O),G());return _=pF(y),L=_.cache.get,R=_.cache.set,N=U,U(I)}function U(I){let y=L(I);if(y)return y;let O=gF(I,_);return R(I,O),O}return function(){return N(xF.apply(null,arguments))}}var h1=(G)=>{let H=(_)=>_[G]||[];return H.isThemeGetter=!0,H},cL=/^\[(?:([a-z-]+):)?(.+)\]$/i,lF=/^\d+\/\d+$/,cF=new Set(["px","full","screen"]),dF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,aF=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,oF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y8=(G)=>ZX(G)||cF.has(G)||lF.test(G),Yz=(G)=>JX(G,"length",YN),ZX=(G)=>Boolean(G)&&!Number.isNaN(Number(G)),mH=(G)=>JX(G,"number",ZX),YY=(G)=>Boolean(G)&&Number.isInteger(Number(G)),nF=(G)=>G.endsWith("%")&&ZX(G.slice(0,-1)),l0=(G)=>cL.test(G),Zz=(G)=>dF.test(G),tF=new Set(["length","size","percentage"]),sF=(G)=>JX(G,tF,dL),eF=(G)=>JX(G,"position",dL),zN=new Set(["image","url"]),$N=(G)=>JX(G,zN,JN),XN=(G)=>JX(G,"",ZN),ZY=()=>!0,JX=(G,H,_)=>{let L=cL.exec(G);if(L){if(L[1])return typeof H==="string"?L[1]===H:H.has(L[1]);return _(L[2])}return!1},YN=(G)=>aF.test(G)&&!iF.test(G),dL=()=>!1,ZN=(G)=>oF.test(G),JN=(G)=>rF.test(G);var QN=()=>{let G=h1("colors"),H=h1("spacing"),_=h1("blur"),L=h1("brightness"),R=h1("borderColor"),N=h1("borderRadius"),M=h1("borderSpacing"),U=h1("borderWidth"),I=h1("contrast"),y=h1("grayscale"),O=h1("hueRotate"),F=h1("invert"),P=h1("gap"),S=h1("gradientColorStops"),E=h1("gradientColorStopPositions"),V=h1("inset"),g=h1("margin"),i=h1("opacity"),s=h1("padding"),p=h1("saturate"),a=h1("scale"),H0=h1("sepia"),d=h1("skew"),B0=h1("space"),c=h1("translate"),v0=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],e=()=>["auto",l0,H],l=()=>[l0,H],u=()=>["",Y8,Yz],q0=()=>["auto",ZX,l0],t=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z0=()=>["solid","dashed","dotted","double","none"],K0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],h0=()=>["start","end","center","between","around","evenly","stretch"],f0=()=>["","0",l0],m=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q0=()=>[ZX,l0];return{cacheSize:500,separator:":",theme:{colors:[ZY],spacing:[Y8,Yz],blur:["none","",Zz,l0],brightness:Q0(),borderColor:[G],borderRadius:["none","","full",Zz,l0],borderSpacing:l(),borderWidth:u(),contrast:Q0(),grayscale:f0(),hueRotate:Q0(),invert:f0(),gap:l(),gradientColorStops:[G],gradientColorStopPositions:[nF,Yz],inset:e(),margin:e(),opacity:Q0(),padding:l(),saturate:Q0(),scale:Q0(),sepia:f0(),skew:Q0(),space:l(),translate:l()},classGroups:{aspect:[{aspect:["auto","square","video",l0]}],container:["container"],columns:[{columns:[Zz]}],"break-after":[{"break-after":m()}],"break-before":[{"break-before":m()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...t(),l0]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:v0()}],"overscroll-x":[{"overscroll-x":v0()}],"overscroll-y":[{"overscroll-y":v0()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[V]}],"inset-x":[{"inset-x":[V]}],"inset-y":[{"inset-y":[V]}],start:[{start:[V]}],end:[{end:[V]}],top:[{top:[V]}],right:[{right:[V]}],bottom:[{bottom:[V]}],left:[{left:[V]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",YY,l0]}],basis:[{basis:e()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l0]}],grow:[{grow:f0()}],shrink:[{shrink:f0()}],order:[{order:["first","last","none",YY,l0]}],"grid-cols":[{"grid-cols":[ZY]}],"col-start-end":[{col:["auto",{span:["full",YY,l0]},l0]}],"col-start":[{"col-start":q0()}],"col-end":[{"col-end":q0()}],"grid-rows":[{"grid-rows":[ZY]}],"row-start-end":[{row:["auto",{span:[YY,l0]},l0]}],"row-start":[{"row-start":q0()}],"row-end":[{"row-end":q0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l0]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l0]}],gap:[{gap:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...h0()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...h0(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...h0(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[s]}],px:[{px:[s]}],py:[{py:[s]}],ps:[{ps:[s]}],pe:[{pe:[s]}],pt:[{pt:[s]}],pr:[{pr:[s]}],pb:[{pb:[s]}],pl:[{pl:[s]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[B0]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B0]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l0,H]}],"min-w":[{"min-w":[l0,H,"min","max","fit"]}],"max-w":[{"max-w":[l0,H,"none","full","min","max","fit","prose",{screen:[Zz]},Zz]}],h:[{h:[l0,H,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l0,H,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l0,H,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l0,H,"auto","min","max","fit"]}],"font-size":[{text:["base",Zz,Yz]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mH]}],"font-family":[{font:[ZY]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l0]}],"line-clamp":[{"line-clamp":["none",ZX,mH]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y8,l0]}],"list-image":[{"list-image":["none",l0]}],"list-style-type":[{list:["none","disc","decimal",l0]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[G]}],"placeholder-opacity":[{"placeholder-opacity":[i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[G]}],"text-opacity":[{"text-opacity":[i]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Y8,Yz]}],"underline-offset":[{"underline-offset":["auto",Y8,l0]}],"text-decoration-color":[{decoration:[G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:l()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[i]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...t(),eF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sF]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$N]}],"bg-color":[{bg:[G]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[N]}],"rounded-s":[{"rounded-s":[N]}],"rounded-e":[{"rounded-e":[N]}],"rounded-t":[{"rounded-t":[N]}],"rounded-r":[{"rounded-r":[N]}],"rounded-b":[{"rounded-b":[N]}],"rounded-l":[{"rounded-l":[N]}],"rounded-ss":[{"rounded-ss":[N]}],"rounded-se":[{"rounded-se":[N]}],"rounded-ee":[{"rounded-ee":[N]}],"rounded-es":[{"rounded-es":[N]}],"rounded-tl":[{"rounded-tl":[N]}],"rounded-tr":[{"rounded-tr":[N]}],"rounded-br":[{"rounded-br":[N]}],"rounded-bl":[{"rounded-bl":[N]}],"border-w":[{border:[U]}],"border-w-x":[{"border-x":[U]}],"border-w-y":[{"border-y":[U]}],"border-w-s":[{"border-s":[U]}],"border-w-e":[{"border-e":[U]}],"border-w-t":[{"border-t":[U]}],"border-w-r":[{"border-r":[U]}],"border-w-b":[{"border-b":[U]}],"border-w-l":[{"border-l":[U]}],"border-opacity":[{"border-opacity":[i]}],"border-style":[{border:[...Z0(),"hidden"]}],"divide-x":[{"divide-x":[U]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[U]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[i]}],"divide-style":[{divide:Z0()}],"border-color":[{border:[R]}],"border-color-x":[{"border-x":[R]}],"border-color-y":[{"border-y":[R]}],"border-color-s":[{"border-s":[R]}],"border-color-e":[{"border-e":[R]}],"border-color-t":[{"border-t":[R]}],"border-color-r":[{"border-r":[R]}],"border-color-b":[{"border-b":[R]}],"border-color-l":[{"border-l":[R]}],"divide-color":[{divide:[R]}],"outline-style":[{outline:["",...Z0()]}],"outline-offset":[{"outline-offset":[Y8,l0]}],"outline-w":[{outline:[Y8,Yz]}],"outline-color":[{outline:[G]}],"ring-w":[{ring:u()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[G]}],"ring-opacity":[{"ring-opacity":[i]}],"ring-offset-w":[{"ring-offset":[Y8,Yz]}],"ring-offset-color":[{"ring-offset":[G]}],shadow:[{shadow:["","inner","none",Zz,XN]}],"shadow-color":[{shadow:[ZY]}],opacity:[{opacity:[i]}],"mix-blend":[{"mix-blend":[...K0(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K0()}],filter:[{filter:["","none"]}],blur:[{blur:[_]}],brightness:[{brightness:[L]}],contrast:[{contrast:[I]}],"drop-shadow":[{"drop-shadow":["","none",Zz,l0]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[O]}],invert:[{invert:[F]}],saturate:[{saturate:[p]}],sepia:[{sepia:[H0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[_]}],"backdrop-brightness":[{"backdrop-brightness":[L]}],"backdrop-contrast":[{"backdrop-contrast":[I]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O]}],"backdrop-invert":[{"backdrop-invert":[F]}],"backdrop-opacity":[{"backdrop-opacity":[i]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[H0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[M]}],"border-spacing-x":[{"border-spacing-x":[M]}],"border-spacing-y":[{"border-spacing-y":[M]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l0]}],duration:[{duration:Q0()}],ease:[{ease:["linear","in","out","in-out",l0]}],delay:[{delay:Q0()}],animate:[{animate:["none","spin","ping","pulse","bounce",l0]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[a]}],"scale-x":[{"scale-x":[a]}],"scale-y":[{"scale-y":[a]}],rotate:[{rotate:[YY,l0]}],"translate-x":[{"translate-x":[c]}],"translate-y":[{"translate-y":[c]}],"skew-x":[{"skew-x":[d]}],"skew-y":[{"skew-y":[d]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l0]}],accent:[{accent:["auto",G]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l0]}],"caret-color":[{caret:[G]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":l()}],"scroll-mx":[{"scroll-mx":l()}],"scroll-my":[{"scroll-my":l()}],"scroll-ms":[{"scroll-ms":l()}],"scroll-me":[{"scroll-me":l()}],"scroll-mt":[{"scroll-mt":l()}],"scroll-mr":[{"scroll-mr":l()}],"scroll-mb":[{"scroll-mb":l()}],"scroll-ml":[{"scroll-ml":l()}],"scroll-p":[{"scroll-p":l()}],"scroll-px":[{"scroll-px":l()}],"scroll-py":[{"scroll-py":l()}],"scroll-ps":[{"scroll-ps":l()}],"scroll-pe":[{"scroll-pe":l()}],"scroll-pt":[{"scroll-pt":l()}],"scroll-pr":[{"scroll-pr":l()}],"scroll-pb":[{"scroll-pb":l()}],"scroll-pl":[{"scroll-pl":l()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l0]}],fill:[{fill:[G,"none"]}],"stroke-w":[{stroke:[Y8,Yz,mH]}],stroke:[{stroke:[G,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var aL=uF(QN);var $2=n(e0(),1),i6=n(Y1(),1),qX=n(e0(),1),T4=n(Y1(),1),X2=n(Y1(),1),uH=n(Y1(),1),HX=n(e0(),1),r1=n(Y1(),1),Y2=n(e0(),1),_4=n(Y1(),1),QY=n(Y1(),1),$0=n(Y1(),1),y6=n(Y1(),1),n4=n(Y1(),1),SJ=n(Y1(),1),v4=n(Y1(),1),cH=n(Y1(),1),R0=n(Y1(),1),x1=n(Y1(),1),J1=n(Y1(),1),G0=n(Y1(),1),C0=n(Y1(),1),JY=n(Y1(),1),I7=n(e0(),1),A0=n(Y1(),1),J8=n(e0(),1),U0=n(Y1(),1),B4=n(Y1(),1),tN=n(e0(),1),Z2=n(Y1(),1),dH=n(e0(),1),aH=n(Y1(),1),sN=n(e0(),1),J2=n(Y1(),1),Q2=n(e0(),1),G2=n(Y1(),1),eN=n(e0(),1),q2=n(Y1(),1),H2=n(Y1(),1),K2=n(Y1(),1),EJ=n(e0(),1),zM=n(e0(),1),iH=n(Y1(),1),_2=n(Y1(),1),B2=n(Y1(),1),U2=n(Y1(),1),O2=n(e0(),1),L2=n(e0(),1),qN=Object.defineProperty,HN=(G,H,_)=>(H in G)?qN(G,H,{enumerable:!0,configurable:!0,writable:!0,value:_}):G[H]=_,KN=(G,H,_)=>HN(G,typeof H!=="symbol"?H+"":H,_);function w1(...G){return aL(jL(G))}var nw=[{id:"msg-1",role:"assistant",content:"Hello! I'm your AI assistant. How can I help you today?",timestamp:new Date(Date.now()-3600000)},{id:"msg-2",role:"user",content:"I want to plan a trip to Europe",timestamp:new Date(Date.now()-3500000)},{id:"msg-3",role:"assistant",content:"Great choice! Europe has amazing destinations. What's your budget and how many days do you have?",timestamp:new Date(Date.now()-3400000)},{id:"msg-4",role:"user",content:"Around $2000 for 5 days",timestamp:new Date(Date.now()-3300000)},{id:"msg-5",role:"assistant",content:"Perfect! I found some great destinations that fit your budget:",widgets:[{type:"list",id:"destinations-1",props:{items:[{id:"paris",title:"Paris, France",subtitle:"5 days • $1,850",description:"The City of Light with iconic landmarks",metadata:{city:"Paris",country:"France",lat:48.8566,lng:2.3522,price:1850,days:5}},{id:"rome",title:"Rome, Italy",subtitle:"5 days • $1,650",description:"Ancient history meets modern culture",metadata:{city:"Rome",country:"Italy",lat:41.9028,lng:12.4964,price:1650,days:5}},{id:"barcelona",title:"Barcelona, Spain",subtitle:"5 days • $1,450",description:"Beautiful beaches and Gaudí architecture",metadata:{city:"Barcelona",country:"Spain",lat:41.3851,lng:2.1734,price:1450,days:5}}]},actions:[{type:"select_destination",label:"Select",handler:"client",payload:{}},{type:"view_details",label:"Details",handler:"server",payload:{}}]}],timestamp:new Date(Date.now()-3200000)}],tw=[{id:"thread-1",title:"Trip to Europe",preview:"Planning a 5-day trip...",createdAt:new Date(Date.now()-86400000),updatedAt:new Date(Date.now()-3600000),messageCount:12},{id:"thread-2",title:"Restaurant Recommendations",preview:"Looking for good places...",createdAt:new Date(Date.now()-172800000),updatedAt:new Date(Date.now()-86400000),messageCount:8},{id:"thread-3",title:"Budget Planning",preview:"Help with monthly budget",createdAt:new Date(Date.now()-259200000),updatedAt:new Date(Date.now()-172800000),messageCount:15}];function _N(G=1000){return new Promise((H)=>{setTimeout(()=>{H({id:`msg-${Date.now()}`,role:"assistant",content:"This is a mock response. In production, this would come from your AI agent API.",timestamp:new Date})},G)})}function BN(G){let H=G.toLowerCase();if(H.includes("analyze")||H.includes("analysis"))return`Analysis complete for "${G}". Found 247 records with an average value of $1,234. The data shows a 23% increase compared to last quarter. Key insights: Revenue is up, customer satisfaction improved by 15%, and operational costs decreased by 8%.`;if(H.includes("sales")||H.includes("revenue"))return"Sales data processed: Q4 2024 revenue reached $2.4M, representing 18% growth year-over-year. Top performing products: Enterprise Plan (+45%), Pro Plan (+32%), Basic Plan (+12%). Regional breakdown: North America (52%), Europe (31%), APAC (17%).";if(H.includes("report")||H.includes("summary"))return"Report generated successfully. Executive Summary: Overall performance exceeded targets by 12%. Marketing ROI improved to 3.2x, customer acquisition cost reduced by 18%, and lifetime value increased by 24%. Detailed breakdown available in attached widgets.";if(H.includes("data")||H.includes("metrics"))return"Data metrics retrieved: 1,847 active users, 12,394 sessions this month, 94.2% uptime, average response time 127ms. Performance is within acceptable parameters. No critical issues detected.";if(H.includes("customer")||H.includes("user"))return"Customer analysis complete: 523 new customers this month, 89% retention rate, average satisfaction score 4.6/5. Top feedback themes: excellent support (87%), easy to use (72%), good value (68%). 3 support tickets pending review.";return"This is a mock response showing how your agent would process and respond to commands. The actual response would be generated by your AI agent based on real data and context."}function UN(G){let H=BN(G),_=G.toLowerCase(),L=[],R;if(_.includes("sales")||_.includes("revenue")||_.includes("analyze"))L.push({type:"card",id:`widget-${Date.now()}-1`,props:{title:"Q4 2024 Performance",description:"Revenue: $2.4M (+18% YoY)",footer:"Updated: "+new Date().toLocaleDateString()},actions:[{type:"view_details",label:"View Details",handler:"client",payload:{reportId:"q4-2024"}}]});if(_.includes("customer")||_.includes("user"))L.push({type:"list",id:`widget-${Date.now()}-2`,props:{items:[{id:"metric-1",title:"Active Users",subtitle:"1,847 users",description:"+12% from last month"},{id:"metric-2",title:"Retention Rate",subtitle:"89%",description:"Above industry average"},{id:"metric-3",title:"Satisfaction Score",subtitle:"4.6/5",description:"Based on 234 reviews"}]}});if(_.includes("task")||_.includes("todo")||_.includes("work")||_.includes("completed"))L.push({type:"list",id:`widget-${Date.now()}-tasks`,props:{items:[{id:"task-1",title:"Implement user authentication",subtitle:"Created just now",description:"Added OAuth 2.0 support with Google and GitHub providers",backgroundColor:"rgba(59, 130, 246, 0.15)",metadata:{status:"created",priority:"high",tags:["backend","security"]}},{id:"task-2",title:"Update API documentation",subtitle:"Modified 2 minutes ago",description:"Changed endpoint descriptions and added new examples",backgroundColor:"rgba(234, 179, 8, 0.15)",metadata:{status:"modified",priority:"medium",tags:["docs"]}},{id:"task-3",title:"Fix login redirect bug",subtitle:"Completed 5 minutes ago",description:"Users now properly redirected after successful login",backgroundColor:"rgba(34, 197, 94, 0.15)",metadata:{status:"completed",priority:"urgent",tags:["bugfix","auth"]}}]},actions:[{type:"view_task",label:"View",handler:"client",payload:{}},{type:"undo",label:"Undo",handler:"server",payload:{}}]}),R={type:"update_database",payload:{table:"tasks",operation:"mark_as_viewed",taskIds:["task-1","task-2","task-3"],timestamp:new Date().toISOString()}};if(_.includes("analyze")||_.includes("analysis"))R={type:"send_notification",payload:{recipient:"team@company.com",subject:"Analysis Complete",message:"Your requested analysis has been completed and is ready for review."}};return{message:H,widgets:L,action:R}}function ON(G,H,_,L,R=30){let{message:N,widgets:M}=UN(G),U=N.split(" "),I=0,y=setInterval(()=>{try{if(I<U.length)H({type:"token",content:U[I]+" "}),I++;else{clearInterval(y),M.forEach((F)=>{H({type:"widget",widget:F})});let O=`mock_thread_${Date.now()}`;H({type:"complete"}),_(O)}}catch(O){clearInterval(y),L(O instanceof Error?O:Error("Mock streaming error"))}},R)}function LN(G){return new Promise((H,_)=>{let L=new FileReader;L.onload=()=>{let N=L.result.split(",")[1];H(N)},L.onerror=()=>_(Error("Failed to read file")),L.readAsDataURL(G)})}function WN(G){if(G.startsWith("image/"))return"image";return"document"}function RN(G){return["image/jpeg","image/png","image/gif","image/webp","application/pdf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(G.type)}async function FN(G){let H=await LN(G);return{type:WN(G.type),source:{type:"base64",media_type:G.type,data:H}}}async function NN(G){let H=Array.from(G);return await Promise.all(H.map((L)=>FN(L)))}async function iL(G,H){if(!H||H.length===0)return G;let _=[];if(G.trim())_.push({type:"text",text:G.trim()});let L=await NN(H);return _.push(...L),_}function DJ(G){if(G<1024)return`${G} B`;if(G<1048576)return`${(G/1024).toFixed(1)} KB`;return`${(G/1048576).toFixed(1)} MB`}var oL=10485760;function tL(G){if(!RN(G))return{valid:!1,error:`Unsupported file type: ${G.type}`};if(G.size>oL)return{valid:!1,error:`File too large: ${DJ(G.size)} (max ${DJ(oL)})`};return{valid:!0}}var MN=["list","table"];function wN(G){let H=[],_=!1,L=G.match(/"items"\s*:\s*\[/);if(!L)return{items:H,isStreaming:!1};let R=G.indexOf("[",L.index);if(R===-1)return{items:H,isStreaming:!0};let N=0,M=!1,U=!1,I=-1;for(let F=R+1;F<G.length;F++){let P=G[F];if(U){U=!1;continue}if(P==="\\"&&M){U=!0;continue}if(P==='"'){M=!M;continue}if(M)continue;if(P==="{"){if(N===0)I=F;N++}else if(P==="}"){if(N--,N===0&&I!==-1){let S=G.slice(I,F+1);try{let E=JSON.parse(S);if(!E.id)E.id=`item-${H.length}-${gH(S)}`;H.push(E)}catch(E){}I=-1}}else if(P==="]"&&N===0){_=!1;break}}if(N>0||I!==-1)_=!0;let y=G.slice(R);if(xH(y,0)===-1)_=!0;return{items:H,isStreaming:_}}function gH(G){let H=0;for(let _=0;_<G.length;_++){let L=G.charCodeAt(_);H=(H<<5)-H+L,H=H&H}return Math.abs(H).toString(36)}function xH(G,H){let _=0,L=!1,R=!1;for(let N=H;N<G.length;N++){let M=G[N];if(R){R=!1;continue}if(M==="\\"&&L){R=!0;continue}if(M==='"'){L=!L;continue}if(L)continue;if(M==="["||M==="{")_++;else if(M==="]"||M==="}"){if(_--,_===0)return N}}return-1}function VJ(G){let H=[],_=!1,L=!1,R=0,N=null,M=G,U=G.lastIndexOf("@ui:");if(U!==-1){let O=G.slice(U),F=O.match(/^@ui:(\w+)/);if(F){let P=F[1],S=O.indexOf("[");if(S===-1)M=G.slice(0,U),N=P,L=!0;else{let E=U+S;if(xH(G,E)===-1)if(MN.includes(P)){let g=G.slice(E+1),{items:i,isStreaming:s}=wN(g);if(i.length>0){M=G.slice(0,U);let p=`widget-${P}-streaming-${gH(g)}`,a=M.replace(/[\s:;\-–—\.]+$/g,"").trim();if(a)H.push({type:"text",content:a});H.push({type:"widget",widget:{type:P,id:p,props:P==="table"?{rows:i,columns:[]}:{items:i},isStreaming:s}}),_=!0,L=!1,M=""}else M=G.slice(0,U),N=P,L=!0}else M=G.slice(0,U),N=P,L=!0}}}if(L)M=M.replace(/[\s:;\-–—\.]+$/g,"");let I=/@ui:(\w+)\[/g,y;while((y=I.exec(M))!==null){let O=y[1],F=y.index+y[0].length-1,P=xH(M,F);if(P===-1)continue;let S=M.slice(F+1,P);if(y.index>R){let E=M.slice(R,y.index).trim();if(E)H.push({type:"text",content:E})}try{let E=S.trim(),V=JSON.parse(E),g=`widget-${O}-${gH(E)}`,{metadata:i,actions:s,...p}=V;H.push({type:"widget",widget:{type:O,id:g,props:p,...s&&{actions:s},...i&&{metadata:i}}}),_=!0}catch(E){}R=P+1,I.lastIndex=R}if(R<M.length){let O=M.slice(R).trim();if(O)H.push({type:"text",content:O})}if(H.length===0&&M.trim())H.push({type:"text",content:M.trim()});if(N)H.push({type:"widget_pending",pendingType:N});return{segments:H,hasWidgets:_,hasPendingWidget:L}}var sL={card:{schema:"title, description?, image?, footer?, actions?: [{type, label}]",example:'@ui:card[{"title": "Summary", "description": "Details here"}]'},list:{schema:"items: [{id, title, subtitle?, description?, image?, metadata?: {any extra data}}], actions?: [{type, label}] - metadata is sent as action payload when clicked",example:'@ui:list[{"items": [{"id": "1", "title": "Item", "subtitle": "Info", "metadata": {"key": "value"}}]}]'},button_group:{schema:"buttons: [{id, label, variant?}] - Use for standalone buttons only, NOT for form submits",example:'@ui:button_group[{"buttons": [{"id": "ok", "label": "OK"}]}]'},form:{schema:"title?, fields: [{name, type: text|password|number|select|checkbox|textarea|date, label, required?, placeholder?, options?}], actions: [{type, label}] - Button is built-in via actions, do NOT add separate button",example:'@ui:form[{"title": "Settings", "fields": [{"name": "apiKey", "type": "password", "label": "API Key", "required": true}], "actions": [{"type": "save", "label": "Save"}]}]'},table:{schema:"columns: [{key, label}], rows: [...], striped?, compact?",example:'@ui:table[{"columns": [{"key": "name", "label": "Name"}], "rows": [{"name": "A"}]}]'},image:{schema:"src, alt, caption?",example:'@ui:image[{"src": "url", "alt": "desc"}]'},chart:{schema:"chartType: line|bar|pie, data: {labels, datasets}",example:'@ui:chart[{"chartType": "bar", "data": {"labels": ["A"], "datasets": [{"label": "X", "data": [10]}]}}]'},flow:{schema:"title, subtitle?, icon?: research|schedule|analyze|deploy|recurring|automation|data, steps: [{id, label, type?, color?: blue|purple|cyan|amber|emerald|rose|indigo|orange, status?: pending|active|completed|error|skipped}] - Horizontal pipeline. Use @label for agents. Types auto-detected from label.",example:'@ui:flow[{"title": "Deploy Pipeline", "icon": "deploy", "steps": [{"id": "1", "label": "Test", "color": "cyan"}, {"id": "2", "label": "Build", "color": "amber"}, {"id": "3", "label": "Deploy", "color": "rose"}]}]'}},bN=Object.keys(sL),PN=["flow"],eL=bN.filter((G)=>!PN.includes(G));function AN(G){let H=G||eL,_=`
|
|
224
|
+
## UI Widgets
|
|
225
|
+
SYNTAX: @ui:type[{json}] - MUST use SQUARE BRACKETS [] around the JSON object.
|
|
226
|
+
CORRECT: @ui:list[{"items": [...]}]
|
|
227
|
+
WRONG: @ui:list{"items": [...]} (missing square brackets)
|
|
228
|
+
|
|
229
|
+
`;for(let L of H){let R=sL[L];if(!R)continue;_+=`${L}: ${R.schema} | ${R.example}
|
|
230
|
+
`}return _+=`
|
|
231
|
+
Per-item "metadata" is sent as payload on action click.
|
|
232
|
+
`,_}function vN(G){return`
|
|
233
|
+
Widgets: @ui:type[{json}] - MUST use square brackets []. Example: @ui:list[{"items": [...]}]. Types: ${(G||eL).join(", ")}. Per-item "metadata" is sent as action payload.
|
|
234
|
+
`}function z2(G){let H=[],_=null;for(let L=0;L<G.length;L++){let R=G[L],N=R.created_at||R.timestamp?new Date(R.created_at||R.timestamp):new Date;if(typeof R.content==="string"){let M={id:R.id||`thread-msg-${L}`,role:R.role,content:R.content,timestamp:N};H.push(M),_=null}else if(Array.isArray(R.content)){if(R.role==="assistant"){let M=[],U="";for(let y of R.content)if(y.type==="text"&&y.text)M.push({type:"text",content:y.text}),U+=y.text;else if(y.type==="tool_use")M.push({type:"tool",id:y.id||`tool-${L}-${M.length}`,name:y.name||"unknown",status:"completed"});let I={id:R.id||`thread-msg-${L}`,role:"assistant",content:U,timestamp:N,metadata:M.length>0?{content_segments:M}:void 0};H.push(I),_=M}else if(R.role==="user")if(R.content.some((U)=>U.type==="tool_result")&&_){for(let U of R.content)if(U.type==="tool_result"&&U.tool_use_id){let I=_.find((y)=>y.type==="tool"&&y.id===U.tool_use_id);if(I&&I.type==="tool")I.result=typeof U.content==="string"?U.content:Array.isArray(U.content)?U.content.map((y)=>y.text||"").join(""):void 0,I.status=U.is_error?"error":"completed"}}else{let U=R.content.filter((I)=>I.type==="text").map((I)=>I.text||"").join("");if(U)H.push({id:R.id||`thread-msg-${L}`,role:"user",content:U,timestamp:N});_=null}}}return H}function TN({widget:G,onAction:H}){let{title:_,description:L,image:R,footer:N}=G.props;return i6.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[R&&i6.jsx("img",{src:R,alt:_,className:"w-full h-48 object-cover"}),i6.jsxs("div",{className:"p-4",children:[i6.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white",children:_}),L&&i6.jsx("p",{className:"!text-neutral-600 dark:!text-neutral-400 mt-2",children:L})]}),(N||G.actions&&G.actions.length>0)&&i6.jsxs("div",{className:"border-t border-neutral-200 dark:border-neutral-700 p-4 flex justify-between items-center",children:[N&&i6.jsx("span",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:N}),G.actions&&G.actions.length>0&&i6.jsx("div",{className:"flex gap-2",children:G.actions.map((M,U)=>i6.jsx("button",{onClick:()=>H?.({type:M.type,payload:M.payload,widgetId:G.id,timestamp:new Date}),className:"px-3 py-1.5 !text-sm rounded-lg font-medium transition-colors bg-blue-500 !text-white hover:bg-blue-600",children:M.label},U))})]})]})}function IN({widget:G,onAction:H}){let{items:_}=G.props,L=G.isStreaming??!1,R=qX.useRef(new Set),[N,M]=qX.useState(new Set);return qX.useEffect(()=>{let U=new Set(_.map((y)=>y.id)),I=new Set;if(_.forEach((y)=>{if(!R.current.has(y.id))I.add(y.id)}),_.forEach((y)=>R.current.add(y.id)),I.size>0){M(I);let y=setTimeout(()=>{M(new Set)},500);return()=>clearTimeout(y)}},[_]),T4.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[_.map((U,I)=>{let y=N.has(U.id),O=I===_.length-1;return T4.jsxs("div",{className:`apteva-list-item flex items-center p-4 transition-colors ${!O||L?"border-b border-neutral-200 dark:border-neutral-700":""} ${!U.backgroundColor?"hover:bg-neutral-50 dark:hover:bg-neutral-800":""} ${y?"apteva-list-item-new":""}`,style:U.backgroundColor?{backgroundColor:U.backgroundColor}:void 0,children:[U.image&&T4.jsx("img",{src:U.image,alt:U.title,className:"w-16 h-16 rounded object-cover"}),T4.jsxs("div",{className:`flex-1 ${U.image?"ml-4":""}`,children:[T4.jsx("h4",{className:"font-semibold !text-neutral-900 dark:!text-white",children:U.title}),U.subtitle&&T4.jsx("p",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:U.subtitle}),U.description&&T4.jsx("p",{className:"!text-xs !text-neutral-500 dark:!text-neutral-500 mt-1",children:U.description})]}),G.actions&&G.actions.length>0&&T4.jsx("div",{className:"flex gap-2",children:G.actions.map((F,P)=>T4.jsx("button",{onClick:()=>H?.({type:F.type,payload:U.metadata||U,widgetId:G.id,timestamp:new Date}),className:"px-3 py-1.5 !text-sm rounded-lg font-medium transition-colors bg-blue-500 !text-white hover:bg-blue-600",children:F.label},P))})]},U.id)}),L&&T4.jsxs("div",{className:"apteva-list-streaming flex items-center gap-3 p-4 text-neutral-500 dark:text-neutral-400",children:[T4.jsxs("div",{className:"apteva-streaming-dots flex gap-1",children:[T4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),T4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),T4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),T4.jsx("span",{className:"text-sm",children:"Loading more..."})]})]})}function kN({widget:G,onAction:H}){let{label:_,variant:L="primary",disabled:R=!1}=G.props;return X2.jsx("button",{onClick:()=>G.actions?.[0]&&H?.({type:G.actions[0].type,payload:G.actions[0].payload,widgetId:G.id,timestamp:new Date}),disabled:R,className:w1("px-4 py-2 rounded-lg font-medium transition-colors",{primary:"bg-blue-500 !text-white hover:bg-blue-600",secondary:"bg-neutral-500 !text-white hover:bg-neutral-600",outline:"border-2 border-blue-500 !text-blue-500 hover:bg-blue-50 dark:hover:bg-blue-900",ghost:"!text-blue-500 hover:bg-blue-50 dark:hover:bg-blue-900"}[L],{"opacity-50 cursor-not-allowed":R}),children:_})}function yN({widget:G,onAction:H}){let{layout:_="horizontal",buttons:L}=G.props,R={primary:"bg-blue-500 !text-white hover:bg-blue-600",secondary:"bg-neutral-200 dark:bg-neutral-700 !text-neutral-800 dark:!text-neutral-200 hover:bg-neutral-300 dark:hover:bg-neutral-600",outline:"border border-neutral-300 dark:border-neutral-600 !text-neutral-700 dark:!text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800"},N=(M)=>{return G.actions?.find((U)=>U.payload?.buttonId===M)||G.actions?.[0]};return uH.jsx("div",{className:w1("flex gap-2",_==="vertical"?"flex-col":"flex-row flex-wrap"),children:L.map((M)=>{let U=N(M.id);return uH.jsx("button",{onClick:()=>{if(U)H?.({type:U.type,payload:{...U.payload,buttonId:M.id},widgetId:G.id,timestamp:new Date})},className:w1("px-4 py-2 rounded-lg font-medium transition-colors text-sm",R[M.variant||"secondary"]),children:M.label},M.id)})})}function VN({widget:G,onAction:H}){let{columns:_,rows:L,caption:R,compact:N=!1,striped:M=!1}=G.props,U=G.isStreaming??!1,I=HX.useRef(new Set),[y,O]=HX.useState(new Set);HX.useEffect(()=>{let P=new Set;if(L.forEach((S,E)=>{let V=S.id||`row-${E}`;if(!I.current.has(V))P.add(V)}),L.forEach((S,E)=>{let V=S.id||`row-${E}`;I.current.add(V)}),P.size>0){O(P);let S=setTimeout(()=>{O(new Set)},500);return()=>clearTimeout(S)}},[L]);let F=(P)=>{switch(P){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return r1.jsx("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:r1.jsx("div",{className:"overflow-x-auto",children:r1.jsxs("table",{className:"w-full",children:[R&&r1.jsx("caption",{className:"px-4 py-2 text-sm text-neutral-600 dark:text-neutral-400 text-left bg-neutral-50 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:R}),r1.jsx("thead",{children:r1.jsx("tr",{className:"bg-neutral-50 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:_.map((P)=>r1.jsx("th",{className:w1("font-semibold text-neutral-900 dark:text-white",N?"px-3 py-2 text-xs":"px-4 py-3 text-sm",F(P.align)),style:P.width?{width:P.width}:void 0,children:P.label},P.key))})}),r1.jsxs("tbody",{children:[L.map((P,S)=>{let E=P.id||`row-${S}`,V=y.has(E);return r1.jsx("tr",{className:w1("apteva-table-row border-b border-neutral-200 dark:border-neutral-700 last:border-b-0","transition-colors hover:bg-neutral-50 dark:hover:bg-neutral-800",M&&S%2===1&&"bg-neutral-50/50 dark:bg-neutral-800/50",V&&"apteva-table-row-new"),onClick:()=>{if(G.actions&&G.actions.length>0)H?.({type:G.actions[0].type,payload:P,widgetId:G.id,timestamp:new Date})},style:{cursor:G.actions?.length?"pointer":"default"},children:_.map((g)=>r1.jsx("td",{className:w1("text-neutral-700 dark:text-neutral-300",N?"px-3 py-2 text-xs":"px-4 py-3 text-sm",F(g.align)),children:P[g.key]??"—"},g.key))},E)}),L.length===0&&!U&&r1.jsx("tr",{children:r1.jsx("td",{colSpan:_.length||1,className:"px-4 py-8 text-center text-sm text-neutral-500 dark:text-neutral-400",children:"No data available"})}),U&&r1.jsx("tr",{className:"apteva-table-streaming",children:r1.jsx("td",{colSpan:_.length||1,className:"px-4 py-3 text-center",children:r1.jsxs("div",{className:"flex items-center justify-center gap-3 text-neutral-500 dark:text-neutral-400",children:[r1.jsxs("div",{className:"flex gap-1",children:[r1.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),r1.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),r1.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),r1.jsx("span",{className:"text-sm",children:"Loading more..."})]})})})]})]})})})}function CN({widget:G,onAction:H}){let{title:_,fields:L}=G.props,[R,N]=Y2.useState(()=>{let O={};return L.forEach((F)=>{O[F.name]=F.defaultValue??(F.type==="checkbox"?!1:"")}),O}),M=(O,F)=>{N((P)=>({...P,[O]:F}))},U=(O)=>{if(O.preventDefault(),G.actions?.[0]&&H)H({type:G.actions[0].type,payload:{...G.actions[0].payload,formData:R},widgetId:G.id,timestamp:new Date})},I=(O)=>{switch(O.type){case"text":case"password":case"number":case"date":return _4.jsx("input",{type:O.type,name:O.name,value:R[O.name]||"",onChange:(P)=>M(O.name,O.type==="number"?Number(P.target.value):P.target.value),placeholder:O.placeholder,required:O.required,className:"w-full px-3 py-2 rounded-lg border transition-colors border-neutral-200 dark:border-neutral-600 bg-neutral-50 dark:bg-neutral-800 !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"});case"textarea":return _4.jsx("textarea",{name:O.name,value:R[O.name]||"",onChange:(P)=>M(O.name,P.target.value),placeholder:O.placeholder,required:O.required,rows:3,className:"w-full px-3 py-2 rounded-lg border transition-colors border-neutral-200 dark:border-neutral-600 bg-neutral-50 dark:bg-neutral-800 !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"});case"select":return _4.jsxs("select",{name:O.name,value:R[O.name]||"",onChange:(P)=>M(O.name,P.target.value),required:O.required,className:"w-full px-3 py-2 rounded-lg border transition-colors border-neutral-200 dark:border-neutral-600 bg-neutral-50 dark:bg-neutral-800 !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[_4.jsx("option",{value:"",children:O.placeholder||"Select..."}),O.options?.map((P)=>_4.jsx("option",{value:P.value,children:P.label},P.value))]});case"checkbox":return _4.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[_4.jsx("input",{type:"checkbox",name:O.name,checked:R[O.name]||!1,onChange:(P)=>M(O.name,P.target.checked),className:"w-4 h-4 rounded border-neutral-300 dark:border-neutral-600 text-blue-500 focus:ring-blue-500"}),_4.jsx("span",{className:"!text-neutral-700 dark:!text-neutral-300",children:O.label})]});default:return null}},y=G.actions?.find((O)=>O.type==="submit")||G.actions?.[0];return _4.jsxs("form",{onSubmit:U,className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[_4.jsxs("div",{className:"p-4",children:[_&&_4.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white mb-4",children:_}),_4.jsx("div",{className:"space-y-3",children:L.map((O)=>_4.jsxs("div",{className:O.type==="checkbox"?"":"space-y-1",children:[O.type!=="checkbox"&&_4.jsxs("label",{className:"block !text-sm font-medium !text-neutral-600 dark:!text-neutral-400",children:[O.label,O.required&&_4.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),I(O)]},O.name))})]}),y&&_4.jsx("div",{className:"px-4 pb-4",children:_4.jsx("button",{type:"submit",className:"px-3 py-1.5 !text-sm rounded-lg font-medium transition-colors bg-blue-500 !text-white hover:bg-blue-600",children:y.label||"Submit"})})]})}function SN({widget:G}){let{src:H,alt:_,caption:L}=G.props;return QY.jsxs("figure",{className:"overflow-hidden rounded-xl",children:[QY.jsx("img",{src:H,alt:_,className:"w-full h-auto object-contain bg-neutral-100 dark:bg-neutral-800",loading:"lazy"}),L&&QY.jsx("figcaption",{className:"mt-2 text-center text-sm text-neutral-600 dark:text-neutral-400",children:L})]})}function DN({type:G,status:H}){if(H==="completed")return $0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})});if(H==="error")return $0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})});if(H==="active")return $0.jsx("div",{className:"w-3.5 h-3.5 rounded-full bg-current animate-pulse"});let _="w-4 h-4";if(G==="time"||G==="schedule"||G==="clock")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})});if(G==="recurring"||G==="repeat")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})});if(G==="agent"||G?.startsWith("@"))return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"})});if(G==="email"||G==="mail")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})});if(G==="slack"||G==="message"||G==="chat")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("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"})});if(G==="webhook"||G==="api")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})});if(G==="build"||G==="compile"||G==="package")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"})});if(G==="test"||G==="check"||G==="verify")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"})});if(G==="deploy"||G==="rocket"||G==="launch")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})});if(G==="push"||G==="upload"||G==="cloud")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})});if(G==="generate"||G==="create"||G==="document"||G==="file")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})});if(G==="review"||G==="inspect"||G==="eye")return $0.jsxs("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]});if(G==="analyze"||G==="research"||G==="chart")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})});if(G==="scrape"||G==="crawl"||G==="spider")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("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"})});if(G==="data"||G==="database"||G==="storage")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"})});if(G==="notification"||G==="bell"||G==="alert")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})});if(G==="transform"||G==="process"||G==="convert")return $0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})});return $0.jsx("div",{className:"w-2 h-2 rounded-full bg-current opacity-50"})}function EN({icon:G}){if(G==="research"||G==="multi-agent"||G==="agents")return $0.jsx("div",{className:"w-10 h-10 rounded-lg bg-purple-100 dark:bg-purple-500/20 flex items-center justify-center",children:$0.jsx("svg",{className:"w-6 h-6 text-purple-600 dark:text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(G==="schedule"||G==="report"||G==="calendar")return $0.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-100 dark:bg-amber-500/20 flex items-center justify-center",children:$0.jsx("svg",{className:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})});if(G==="recurring"||G==="repeat"||G==="sync")return $0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:$0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})});if(G==="analyze"||G==="analysis"||G==="chart")return $0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:$0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})});if(G==="deploy"||G==="rocket"||G==="launch")return $0.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-500/20 flex items-center justify-center",children:$0.jsx("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(G==="automation"||G==="workflow"||G==="process")return $0.jsx("div",{className:"w-10 h-10 rounded-lg bg-indigo-100 dark:bg-indigo-500/20 flex items-center justify-center",children:$0.jsx("svg",{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"})})});if(G==="data"||G==="pipeline"||G==="etl")return $0.jsx("div",{className:"w-10 h-10 rounded-lg bg-emerald-100 dark:bg-emerald-500/20 flex items-center justify-center",children:$0.jsx("svg",{className:"w-6 h-6 text-emerald-600 dark:text-emerald-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4"})})});return $0.jsx("div",{className:"w-10 h-10 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center",children:$0.jsx("svg",{className:"w-6 h-6 text-neutral-600 dark:text-neutral-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})})}function fN(){return $0.jsx("svg",{className:"w-4 h-4 text-neutral-400 dark:text-neutral-500 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:$0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}var a6={blue:"bg-blue-100 dark:bg-blue-900/40 !text-blue-700 dark:!text-blue-300 border-blue-300 dark:border-blue-500",purple:"bg-purple-100 dark:bg-purple-900/40 !text-purple-700 dark:!text-purple-300 border-purple-300 dark:border-purple-500",cyan:"bg-cyan-100 dark:bg-cyan-900/40 !text-cyan-700 dark:!text-cyan-300 border-cyan-300 dark:border-cyan-500",amber:"bg-amber-100 dark:bg-amber-900/40 !text-amber-700 dark:!text-amber-300 border-amber-300 dark:border-amber-500",emerald:"bg-emerald-100 dark:bg-emerald-900/40 !text-emerald-700 dark:!text-emerald-300 border-emerald-300 dark:border-emerald-500",rose:"bg-rose-100 dark:bg-rose-900/40 !text-rose-700 dark:!text-rose-300 border-rose-300 dark:border-rose-500",indigo:"bg-indigo-100 dark:bg-indigo-900/40 !text-indigo-700 dark:!text-indigo-300 border-indigo-300 dark:border-indigo-500",orange:"bg-orange-100 dark:bg-orange-900/40 !text-orange-700 dark:!text-orange-300 border-orange-300 dark:border-orange-500",neutral:"bg-neutral-100 dark:bg-neutral-800 !text-neutral-600 dark:!text-neutral-300 border-neutral-300 dark:border-neutral-600"};function mN(G,H){if(G.color&&a6[G.color])return a6[G.color];if(H==="time"||H==="schedule"||H==="clock")return a6.blue;if(H==="agent"||H?.startsWith("@"))return a6.purple;if(H==="email"||H==="slack"||H==="message"||H==="notification")return a6.cyan;if(H==="generate"||H==="document"||H==="create")return a6.amber;if(H==="deploy"||H==="rocket"||H==="launch")return a6.rose;if(H==="build"||H==="compile"||H==="package")return a6.indigo;if(H==="test"||H==="check"||H==="verify")return a6.emerald;if(H==="data"||H==="database"||H==="storage")return a6.orange;return a6.blue}function hN({widget:G}){let{title:H,subtitle:_,icon:L,steps:R}=G.props;return $0.jsxs("div",{className:"rounded-xl bg-white dark:bg-neutral-900 border border-neutral-200 dark:border-neutral-700 overflow-hidden",children:[$0.jsxs("div",{className:"px-4 py-4 flex items-center gap-4",children:[$0.jsx(EN,{icon:L}),$0.jsxs("div",{className:"flex-1 min-w-0",children:[$0.jsx("h3",{className:"font-semibold text-base text-neutral-900 dark:text-white truncate",children:H}),_&&$0.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 truncate mt-0.5",children:_})]})]}),$0.jsx("div",{className:"px-4 pb-4",children:$0.jsx("div",{className:"flex flex-wrap items-center gap-2",children:R.map((N,M)=>{let U=M===R.length-1,I=N.status==="active",y=N.status==="completed",O=N.status==="error",F=N.status==="skipped",P=N.label,S=N.type;if(!S)if(P.startsWith("@"))S="agent";else if(/^\d+[ap]m$/i.test(P)||/^(mon|tue|wed|thu|fri|sat|sun)/i.test(P))S="time";else{let g=P.toLowerCase();S={test:"test",build:"build",push:"push",deploy:"deploy",email:"email",slack:"slack",generate:"generate",review:"review",analyze:"analyze",scrape:"scrape",transform:"transform",notify:"notification",alert:"notification",webhook:"webhook",api:"api",data:"data",process:"process"}[g]}let E,V="";if(I)E="bg-blue-100 dark:bg-blue-900/40 !text-blue-700 dark:!text-blue-300 border-blue-400 dark:border-blue-400 ring-2 ring-blue-400";else if(y)E="bg-emerald-100 dark:bg-emerald-900/40 !text-emerald-700 dark:!text-emerald-300 border-emerald-400 dark:border-emerald-400";else if(O)E="bg-red-100 dark:bg-red-900/40 !text-red-700 dark:!text-red-300 border-red-400 dark:border-red-400";else if(F)E="bg-neutral-100 dark:bg-neutral-800 !text-neutral-400 dark:!text-neutral-500 border-neutral-300 dark:border-neutral-600",V="line-through";else E=mN(N,S);return $0.jsxs("div",{className:"flex items-center gap-2",children:[$0.jsxs("span",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium border transition-colors ${E} ${V}`,children:[$0.jsx(DN,{type:S,status:N.status}),P]}),!U&&$0.jsx(fN,{})]},N.id)})})})]})}var pN={up:{symbol:"↑",color:"text-emerald-500"},down:{symbol:"↓",color:"text-red-500"},flat:{symbol:"→",color:"text-neutral-400"}};function jN({widget:G,onAction:H}){let{label:_="",value:L="",change:R,trend:N}=G.props||{},M=N?pN[N]:null;return y6.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 p-5",children:[y6.jsx("div",{className:"!text-sm font-medium !text-neutral-500 dark:!text-neutral-400 mb-1",children:_}),y6.jsxs("div",{className:"flex items-end gap-2",children:[y6.jsx("div",{className:"!text-2xl font-bold !text-neutral-900 dark:!text-white",children:L}),R&&M&&y6.jsxs("div",{className:`flex items-center gap-0.5 !text-sm font-medium ${M.color} mb-0.5`,children:[y6.jsx("span",{children:M.symbol}),y6.jsx("span",{children:R})]}),R&&!M&&y6.jsx("div",{className:"!text-sm font-medium !text-neutral-400 mb-0.5",children:R})]}),G.actions&&G.actions.length>0&&y6.jsx("div",{className:"flex gap-2 mt-3 pt-3 border-t border-neutral-200 dark:border-neutral-700",children:G.actions.map((U,I)=>y6.jsx("button",{onClick:()=>H?.({type:U.type,payload:U.payload,widgetId:G.id,timestamp:new Date}),className:"px-2 py-1 !text-xs rounded font-medium transition-colors bg-neutral-100 dark:bg-neutral-800 !text-neutral-600 dark:!text-neutral-300 hover:bg-neutral-200 dark:hover:bg-neutral-700",children:U.label},I))})]})}function gN({widget:G}){let{content:H="",variant:_="body"}=G.props||{},L={heading:"!text-xl font-bold !text-neutral-900 dark:!text-white",body:"!text-sm !text-neutral-700 dark:!text-neutral-300 leading-relaxed",caption:"!text-xs !text-neutral-500 dark:!text-neutral-400"},R=(M)=>{let U=M.split(`
|
|
235
|
+
`),I=[],y=0;while(y<U.length){let O=U[y];if(O.startsWith("### "))I.push(n4.jsx("h3",{className:"!text-base font-semibold !text-neutral-900 dark:!text-white mt-3 mb-1",children:N(O.slice(4))},y));else if(O.startsWith("## "))I.push(n4.jsx("h2",{className:"!text-lg font-bold !text-neutral-900 dark:!text-white mt-4 mb-1",children:N(O.slice(3))},y));else if(/^[-*+]\s/.test(O)){let F=[];while(y<U.length&&/^[-*+]\s/.test(U[y]))F.push(n4.jsx("li",{className:"ml-4 list-disc",children:N(U[y].slice(2))},y)),y++;I.push(n4.jsx("ul",{className:"my-1 space-y-0.5",children:F},`list-${y}`));continue}else if(O.trim()==="")I.push(n4.jsx("div",{className:"h-2"},y));else I.push(n4.jsx("p",{className:"my-0.5",children:N(O)},y));y++}return I},N=(M)=>{let U=[],I=M,y=0;while(I.length>0){let O=I.match(/\*\*(.+?)\*\*/),F=I.match(/`(.+?)`/),P=I.match(/\[(.+?)\]\((.+?)\)/),S=[O?{type:"bold",index:O.index,match:O}:null,F?{type:"code",index:F.index,match:F}:null,P?{type:"link",index:P.index,match:P}:null].filter(Boolean).sort((V,g)=>V.index-g.index);if(S.length===0){U.push(I);break}let E=S[0];if(E.index>0)U.push(I.slice(0,E.index));if(E.type==="bold")U.push(n4.jsx("strong",{className:"font-semibold",children:E.match[1]},y++)),I=I.slice(E.index+E.match[0].length);else if(E.type==="code")U.push(n4.jsx("code",{className:"px-1 py-0.5 bg-neutral-100 dark:bg-neutral-800 rounded text-xs font-mono",children:E.match[1]},y++)),I=I.slice(E.index+E.match[0].length);else if(E.type==="link")U.push(n4.jsx("a",{href:E.match[2],className:"text-blue-500 hover:underline",target:"_blank",rel:"noopener noreferrer",children:E.match[1]},y++)),I=I.slice(E.index+E.match[0].length)}return U.length===1?U[0]:n4.jsx(n4.Fragment,{children:U})};return n4.jsx("div",{className:L[_]||L.body,children:R(H)})}var CJ={sm:"h-2",md:"h-4",lg:"h-8"};function xN({widget:G}){let{height:H="md",variant:_="space"}=G.props||{};if(_==="line")return SJ.jsx("div",{className:CJ[H]||CJ.md+" flex items-center",children:SJ.jsx("hr",{className:"w-full border-neutral-200 dark:border-neutral-700"})});return SJ.jsx("div",{className:CJ[H]||CJ.md})}function lH({widget:G,onAction:H}){return v4.jsx("div",{className:"apteva-widget",children:(()=>{switch(G.type){case"card":return v4.jsx(TN,{widget:G,onAction:H});case"list":return v4.jsx(IN,{widget:G,onAction:H});case"button":return v4.jsx(kN,{widget:G,onAction:H});case"button_group":return v4.jsx(yN,{widget:G,onAction:H});case"table":return v4.jsx(VN,{widget:G,onAction:H});case"form":return v4.jsx(CN,{widget:G,onAction:H});case"image":return v4.jsx(SN,{widget:G});case"flow":return v4.jsx(hN,{widget:G});case"kpi":return v4.jsx(jN,{widget:G,onAction:H});case"text_block":return v4.jsx(gN,{widget:G});case"spacer":return v4.jsx(xN,{widget:G});default:return v4.jsxs("div",{className:"p-4 border border-yellow-300 bg-yellow-50 rounded-lg",children:[v4.jsxs("p",{className:"text-sm text-yellow-800",children:["Unknown widget type: ",G.type]}),v4.jsx("pre",{className:"text-xs mt-2 overflow-auto",children:JSON.stringify(G,null,2)})]})}})()})}function pH({widgets:G,onAction:H,onWidgetMount:_,layout:L="stack",spacing:R="normal",columns:N=3,className:M}){$2.useEffect(()=>{G.forEach((y)=>{_?.(y.id)})},[G,_]);let U={stack:"flex flex-col",grid:`grid grid-cols-1 md:grid-cols-${N}`,masonry:"columns-1 md:columns-2 lg:columns-3"},I={tight:"gap-2",normal:"gap-4",loose:"gap-6"};return cH.jsx("div",{className:w1(U[L],I[R],M),children:G.map((y)=>cH.jsx(lH,{widget:y,onAction:H},y.id))})}function rL({type:G,className:H}){switch(G){case"card":return R0.jsx("div",{className:w1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",H),children:R0.jsxs("div",{className:"p-4 space-y-3",children:[R0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"}),R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"}),R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-5/6"})]})});case"list":return R0.jsx("div",{className:w1("apteva-widget-skeleton animate-pulse space-y-2",H),children:[1,2,3].map((_)=>R0.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border border-neutral-200 dark:border-neutral-800",children:[R0.jsx("div",{className:"w-10 h-10 bg-neutral-200 dark:bg-neutral-700 rounded-full flex-shrink-0"}),R0.jsxs("div",{className:"flex-1 space-y-2",children:[R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2"}),R0.jsx("div",{className:"h-2 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"})]})]},_))});case"button_group":return R0.jsxs("div",{className:w1("apteva-widget-skeleton animate-pulse flex gap-2",H),children:[R0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),R0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),R0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"})]});case"form":return R0.jsxs("div",{className:w1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4 space-y-4",H),children:[R0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/3"}),R0.jsxs("div",{className:"space-y-3",children:[R0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"}),R0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"})]}),R0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})]});case"chart":return R0.jsxs("div",{className:w1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",H),children:[R0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/4 mb-4"}),R0.jsxs("div",{className:"flex items-end gap-2 h-32",children:[R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/2"}),R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-3/4"}),R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/3"}),R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-full"}),R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-2/3"})]})]});case"image":return R0.jsx("div",{className:w1("apteva-widget-skeleton animate-pulse",H),children:R0.jsx("div",{className:"aspect-video bg-neutral-200 dark:bg-neutral-700 rounded-lg"})});case"gallery":return R0.jsx("div",{className:w1("apteva-widget-skeleton animate-pulse grid grid-cols-3 gap-2",H),children:[1,2,3].map((_)=>R0.jsx("div",{className:"aspect-square bg-neutral-200 dark:bg-neutral-700 rounded-lg"},_))});case"map":return R0.jsx("div",{className:w1("apteva-widget-skeleton animate-pulse",H),children:R0.jsx("div",{className:"h-48 bg-neutral-200 dark:bg-neutral-700 rounded-lg flex items-center justify-center",children:R0.jsxs("svg",{className:"w-8 h-8 text-neutral-400 dark:text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[R0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),R0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]})})});case"table":return R0.jsxs("div",{className:w1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",H),children:[R0.jsxs("div",{className:"flex bg-neutral-100 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:[R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-16"})}),R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-20"})}),R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-14"})})]}),[1,2,3].map((_)=>R0.jsxs("div",{className:"flex border-b border-neutral-200 dark:border-neutral-800 last:border-b-0",children:[R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})}),R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-16"})}),R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-20"})})]},_))]});default:return R0.jsxs("div",{className:w1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",H),children:[R0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2 mb-2"}),R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"})]})}}function uN(G){return/\.(jpg|jpeg|png|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(G)}function oz(G,H=""){let _=[],L=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|(\*\*|__)(.+?)\5|`([^`]+)`/g,R=0,N,M=0;while((N=L.exec(G))!==null){if(N.index>R)_.push(G.slice(R,N.index));if(N[1]!==void 0||N[2]!==void 0){let U=N[1]||"",I=N[2];_.push(x1.jsx("img",{src:I,alt:U,className:"apteva-md-img"},`${H}img${M++}`))}else if(N[3]!==void 0||N[4]!==void 0){let U=N[3],I=N[4];if(uN(I))_.push(x1.jsx("img",{src:I,alt:U,className:"apteva-md-img"},`${H}img${M++}`));else _.push(x1.jsx("a",{href:I,target:"_blank",rel:"noopener noreferrer",className:"apteva-md-link",children:U},`${H}a${M++}`))}else if(N[5]!==void 0)_.push(x1.jsx("strong",{children:N[6]},`${H}b${M++}`));else if(N[7]!==void 0)_.push(x1.jsx("code",{className:"apteva-md-inline-code",children:N[7]},`${H}code${M++}`));R=N.index+N[0].length}if(R<G.length)_.push(G.slice(R));return _.length>0?_:[G]}function lN(G){let H=G.split(`
|
|
236
|
+
`),_=[],L=0,R=0;while(R<H.length){let N=H[R],M=N.match(/^##\s+(.*)$/);if(M){_.push(x1.jsx("h2",{className:"apteva-md-h2",children:oz(M[1],`${L}`)},`h2${L++}`)),R++;continue}let U=N.match(/^###\s+(.*)$/);if(U){_.push(x1.jsx("h3",{className:"apteva-md-h3",children:oz(U[1],`${L}`)},`h3${L++}`)),R++;continue}let I=N.match(/^(\s*)([-*+])\s+(.*)$/);if(I){let F=[],P=I[1].length;while(R<H.length){let S=H[R].match(/^(\s*)([-*+])\s+(.*)$/);if(S&&S[1].length===P)F.push(x1.jsx("li",{className:"apteva-md-li",children:oz(S[3],`${L}`)},`li${L++}`)),R++;else break}_.push(x1.jsx("ul",{className:"apteva-md-ul",children:F},`ul${L++}`));continue}let y=N.match(/^(\s*)(\d+)\.\s+(.*)$/);if(y){let F=[],P=y[1].length;while(R<H.length){let S=H[R].match(/^(\s*)(\d+)\.\s+(.*)$/);if(S&&S[1].length===P)F.push(x1.jsx("li",{className:"apteva-md-li",children:oz(S[3],`${L}`)},`li${L++}`)),R++;else break}_.push(x1.jsx("ol",{className:"apteva-md-ol",children:F},`ol${L++}`));continue}if(N.match(/^\|(.+)\|$/)&&R+1<H.length){if(H[R+1].match(/^\|([\s:-]+\|)+$/)){let S=N.split("|").filter((V)=>V.trim()!=="").map((V)=>V.trim());R+=2;let E=[];while(R<H.length)if(H[R].match(/^\|(.+)\|$/)){let g=H[R].split("|").filter((i)=>i.trim()!=="").map((i)=>i.trim());E.push(g),R++}else break;_.push(x1.jsx("div",{className:"apteva-md-table-wrapper",children:x1.jsxs("table",{className:"apteva-md-table",children:[x1.jsx("thead",{children:x1.jsx("tr",{children:S.map((V,g)=>x1.jsx("th",{className:"apteva-md-th",children:oz(V,`th${L}${g}`)},`th${g}`))})}),x1.jsx("tbody",{children:E.map((V,g)=>x1.jsx("tr",{children:V.map((i,s)=>x1.jsx("td",{className:"apteva-md-td",children:oz(i,`td${L}${g}${s}`)},`td${s}`))},`tr${g}`))})]})},`table-wrapper${L++}`));continue}}if(N==="")_.push(x1.jsx("br",{},`br${L++}`));else _.push(x1.jsxs("span",{children:[oz(N,`${L}`),R<H.length-1?`
|
|
237
|
+
`:""]},`p${L++}`));R++}return _}function Z8({content:G,className:H=""}){return x1.jsx("div",{className:`apteva-md ${H}`,children:lN(G)})}function cN({name:G,status:H,isReceiving:_=!1,inputLength:L=0,streamOutput:R}){if(H==="preparing")return J1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-preparing",children:[J1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[J1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),J1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),J1.jsxs("span",{className:"apteva-tool-label",children:[J1.jsx("strong",{children:G}),J1.jsx("span",{className:"apteva-tool-status-text",children:" preparing..."})]})]});if(H==="running")return J1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-running",children:[J1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[J1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),J1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),J1.jsxs("span",{className:"apteva-tool-label",children:[J1.jsx("strong",{children:G}),R?J1.jsx("span",{className:"apteva-tool-stream-separator",children:" · "}):null,R?J1.jsx("span",{className:"apteva-tool-stream-output",children:R}):J1.jsxs(J1.Fragment,{children:[J1.jsx("span",{className:"apteva-tool-status-text",children:" running"}),J1.jsxs("span",{className:"apteva-tool-dots",children:[J1.jsx("span",{children:"."}),J1.jsx("span",{children:"."}),J1.jsx("span",{children:"."})]})]})]})]});if(H==="completed")return J1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-completed",children:[J1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),J1.jsx("span",{className:"apteva-tool-label",children:G})]});return J1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-error",children:[J1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),J1.jsxs("span",{className:"apteva-tool-label",children:[G," failed"]})]})}function dN({message:G,onAction:H,enableWidgets:_,onWidgetRender:L}){let R=G.role==="user",N=G.metadata?.content_segments,M=G.metadata?.isStreaming===!0,U=G.content||N&&N.length>0,I=rz.useRef(new Set),y=rz.useMemo(()=>{if(!_||R||!G.content)return[];return VJ(G.content).segments.filter((a)=>a.type==="widget"&&!!a.widget).map((a)=>a.widget)},[_,R,G.content]);rz.useEffect(()=>{if(L&&G.widgets){for(let p of G.widgets)if(!I.current.has(p.id))I.current.add(p.id),L(p)}},[G.widgets,L]),rz.useEffect(()=>{if(L&&y.length>0){for(let p of y)if(!I.current.has(p.id))I.current.add(p.id),L(p)}},[y,L]);let O=(p)=>{if(!_||R)return G0.jsx(Z8,{content:p});let H0=VJ(p).segments.filter((d)=>d.type==="text"&&d.content).map((d)=>d.content).join("");if(!H0.trim())return null;return G0.jsx(Z8,{content:H0})},F=()=>{if(!_||R||!G.content)return null;let p=VJ(G.content),a=[],H0="";if(p.segments.forEach((d,B0)=>{if(d.type==="text"&&d.content)H0+=d.content;else if(d.type==="widget"&&d.widget){if(H0.trim())a.push(G0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:G0.jsx("div",{className:"apteva-message-content-assistant",children:G0.jsx(Z8,{content:H0})})},`text-${B0}`)),H0="";a.push(G0.jsx("div",{className:"apteva-widget-standalone",children:G0.jsx(lH,{widget:d.widget,onAction:H})},`widget-${B0}`))}else if(d.type==="widget_pending"&&d.pendingType){if(H0.trim())a.push(G0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:G0.jsx("div",{className:"apteva-message-content-assistant",children:G0.jsx(Z8,{content:H0})})},`text-${B0}`)),H0="";a.push(G0.jsx("div",{className:"apteva-widget-standalone",children:G0.jsx(rL,{type:d.pendingType})},`pending-${B0}`))}}),H0.trim())a.push(G0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:G0.jsx("div",{className:"apteva-message-content-assistant",children:G0.jsx(Z8,{content:H0})})},"text-final"));return a.length>0?a:null},P=G.metadata?.attachments||[],S=P.length>0,E=()=>{if(!S)return null;return G0.jsx("div",{className:"apteva-message-attachments flex flex-wrap gap-2 mb-2 justify-end",children:P.map((p,a)=>{let H0=p.type.startsWith("image/"),d=p.type==="application/pdf";if(H0&&p.preview)return G0.jsx("div",{className:"apteva-attachment-image relative rounded-lg overflow-hidden shadow-sm",children:G0.jsx("img",{src:p.preview,alt:p.name,className:"max-w-[150px] max-h-[150px] object-cover"})},a);return G0.jsxs("div",{className:"apteva-attachment-doc flex items-center gap-3 px-4 py-3 bg-neutral-100 dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700 rounded-xl shadow-sm",children:[G0.jsx("div",{className:"w-10 h-10 flex items-center justify-center bg-red-100 dark:bg-red-900/30 rounded-lg text-red-600 dark:text-red-400",children:d?G0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:G0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})}):G0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:G0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),G0.jsxs("div",{className:"flex flex-col min-w-0",children:[G0.jsx("span",{className:"text-sm font-medium text-neutral-800 dark:text-neutral-200 truncate max-w-[180px]",children:p.name}),G0.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[d?"PDF":"Document"," · ",DJ(p.size)]})]})]},a)})})},V=()=>{if(R)return G0.jsx("div",{className:"apteva-message-text",children:G.content});if(M&&!U)return G0.jsxs("div",{className:"apteva-typing-indicator",children:[G0.jsx("span",{}),G0.jsx("span",{}),G0.jsx("span",{})]});if(N&&N.length>0)return null;return O(G.content)},g=(p,a)=>{if(!_)return G0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:G0.jsx("div",{className:"apteva-message-content-assistant",children:G0.jsx(Z8,{content:p})})},a);let H0=VJ(p),d=[],B0="";if(H0.segments.forEach((c,v0)=>{if(c.type==="text"&&c.content)B0+=c.content;else if(c.type==="widget"&&c.widget){if(B0.trim())d.push(G0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:G0.jsx("div",{className:"apteva-message-content-assistant",children:G0.jsx(Z8,{content:B0})})},`${a}-text-${v0}`)),B0="";d.push(G0.jsx("div",{className:"apteva-widget-standalone",children:G0.jsx(lH,{widget:c.widget,onAction:H})},`${a}-widget-${v0}`))}else if(c.type==="widget_pending"&&c.pendingType){if(B0.trim())d.push(G0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:G0.jsx("div",{className:"apteva-message-content-assistant",children:G0.jsx(Z8,{content:B0})})},`${a}-text-${v0}`)),B0="";d.push(G0.jsx("div",{className:"apteva-widget-standalone",children:G0.jsx(rL,{type:c.pendingType})},`${a}-pending-${v0}`))}}),B0.trim())d.push(G0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:G0.jsx("div",{className:"apteva-message-content-assistant",children:G0.jsx(Z8,{content:B0})})},`${a}-text-final`));return d},i=()=>{if(!N||N.length===0)return null;let p=[];return N.forEach((a,H0)=>{if(a.type==="text"&&a.content){let d=g(a.content,`seg-${H0}`);if(Array.isArray(d))p.push(...d);else p.push(d)}else if(a.type==="tool")p.push(G0.jsx("div",{className:"apteva-tool-call-standalone",children:G0.jsx(cN,{name:a.name,status:a.status||(a.result!==void 0?"completed":"running"),isReceiving:a.isReceiving,inputLength:a.inputLength,streamOutput:a.streamOutput})},a.id))}),p};if(!R&&(N&&N.length>0))return G0.jsxs("div",{className:"apteva-message-segmented",children:[i(),G.widgets&&G.widgets.length>0&&G0.jsx("div",{className:"apteva-widget-standalone",children:G0.jsx(pH,{widgets:G.widgets,onAction:H,layout:"stack"})}),G0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:G.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});let s=F();if(!R&&_&&s)return G0.jsxs("div",{className:"apteva-message-segmented",children:[s,G.widgets&&G.widgets.length>0&&G0.jsx("div",{className:"apteva-widget-standalone",children:G0.jsx(pH,{widgets:G.widgets,onAction:H,layout:"stack"})}),G0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:G.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});if(R&&S)return G0.jsxs("div",{className:"apteva-message-segmented apteva-message-user-with-attachments flex flex-col items-end",children:[E(),G.content&&G0.jsx("div",{className:"apteva-message-bubble apteva-message-user",children:G0.jsx("div",{className:"apteva-message-content-user",children:G0.jsx("div",{className:"apteva-message-text",children:G.content})})}),G0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-user",suppressHydrationWarning:!0,children:G.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});return G0.jsxs("div",{className:w1("apteva-message-bubble",R?"apteva-message-user":"apteva-message-assistant"),children:[G0.jsx("div",{className:R?"apteva-message-content-user":"apteva-message-content-assistant",children:V()}),G.widgets&&G.widgets.length>0&&G0.jsx("div",{className:"apteva-widget-standalone",children:G0.jsx(pH,{widgets:G.widgets,onAction:H,layout:"stack"})}),G0.jsx("div",{className:w1("apteva-message-timestamp",R?"apteva-message-timestamp-user":"apteva-message-timestamp-assistant"),suppressHydrationWarning:!0,children:G.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})}var nL=()=>C0.jsx("svg",{className:"w-12 h-12 sm:w-16 sm:h-16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,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"})}),jH=()=>C0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})});function aN({title:G,subtitle:H,icon:_,prompts:L,variant:R="centered",chatVariant:N="default",onPromptClick:M}){let U=(L||[]).map((O)=>typeof O==="string"?{text:O}:O),I=U.length>0,y=G||H||_;if(!y&&!I)return C0.jsx("div",{className:"flex items-center justify-center h-full !text-neutral-500 dark:!text-neutral-400",children:C0.jsxs("div",{className:"text-center space-y-2",children:[C0.jsx("div",{className:"flex justify-center",children:C0.jsx(nL,{})}),C0.jsx("p",{className:"text-sm",children:"No messages yet. Start a conversation!"})]})});if(R==="minimal")return C0.jsxs("div",{className:"flex flex-col h-full px-4 py-4",children:[y&&C0.jsxs("div",{className:"mb-4",children:[G&&C0.jsx("h2",{className:"text-lg font-semibold !text-neutral-900 dark:!text-white",children:G}),H&&C0.jsx("p",{className:"text-sm !text-neutral-500 dark:!text-neutral-400 mt-1",children:H})]}),I&&C0.jsx("div",{className:"flex-1 space-y-2",children:U.map((O,F)=>C0.jsx("button",{onClick:()=>M(O.text),className:w1("w-full text-left px-4 py-3 rounded-xl","bg-neutral-50 dark:bg-neutral-800/50","border border-neutral-200 dark:border-neutral-700","hover:bg-neutral-100 dark:hover:bg-neutral-800","hover:border-neutral-300 dark:hover:border-neutral-600","transition-all duration-200","group"),children:C0.jsxs("div",{className:"flex items-center gap-3",children:[C0.jsx("div",{className:"flex-shrink-0 !text-neutral-400 dark:!text-neutral-500 group-hover:!text-blue-500 dark:group-hover:!text-blue-400 transition-colors",children:O.icon||C0.jsx(jH,{})}),C0.jsxs("div",{className:"flex-1 min-w-0",children:[C0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white truncate",children:O.text}),O.description&&C0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 truncate",children:O.description})]})]})},F))})]});return C0.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 py-6 sm:py-8",children:[C0.jsxs("div",{className:"text-center mb-6 sm:mb-8 max-w-md",children:[C0.jsx("div",{className:"mb-4 !text-neutral-400 dark:!text-neutral-500 flex justify-center",children:_||C0.jsx(nL,{})}),G&&C0.jsx("h1",{className:"text-xl sm:text-2xl font-semibold !text-neutral-900 dark:!text-white mb-2",children:G}),H&&C0.jsx("p",{className:"text-sm sm:text-base !text-neutral-500 dark:!text-neutral-400",children:H})]}),I&&C0.jsxs("div",{className:"w-full max-w-2xl",children:[C0.jsx("div",{className:"sm:hidden space-y-2",children:U.map((O,F)=>C0.jsx("button",{onClick:()=>M(O.text),className:w1("w-full text-left px-4 py-3 rounded-xl","bg-white dark:bg-neutral-800","border border-neutral-200 dark:border-neutral-700","hover:bg-neutral-50 dark:hover:bg-neutral-700","hover:border-blue-300 dark:hover:border-blue-600","active:scale-[0.98]","transition-all duration-200","shadow-sm hover:shadow","group"),children:C0.jsxs("div",{className:"flex items-center gap-3",children:[C0.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center !text-neutral-500 dark:!text-neutral-400 group-hover:bg-blue-100 dark:group-hover:bg-blue-900/30 group-hover:!text-blue-600 dark:group-hover:!text-blue-400 transition-colors",children:O.icon||C0.jsx(jH,{})}),C0.jsxs("div",{className:"flex-1 min-w-0",children:[C0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white",children:O.text}),O.description&&C0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 line-clamp-1",children:O.description})]}),C0.jsx("svg",{className:"w-4 h-4 !text-neutral-400 group-hover:!text-blue-500 transition-colors flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})},F))}),C0.jsx("div",{className:"hidden sm:grid sm:grid-cols-2 gap-3",children:U.map((O,F)=>C0.jsx("button",{onClick:()=>M(O.text),className:w1("text-left p-4 rounded-xl","bg-white dark:bg-neutral-800","border border-neutral-200 dark:border-neutral-700","hover:bg-neutral-50 dark:hover:bg-neutral-700","hover:border-blue-300 dark:hover:border-blue-600","hover:shadow-md","active:scale-[0.98]","transition-all duration-200","group"),children:C0.jsxs("div",{className:"flex items-start gap-3",children:[C0.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center !text-neutral-500 dark:!text-neutral-400 group-hover:bg-blue-100 dark:group-hover:bg-blue-900/30 group-hover:!text-blue-600 dark:group-hover:!text-blue-400 transition-colors",children:O.icon||C0.jsx(jH,{})}),C0.jsxs("div",{className:"flex-1 min-w-0",children:[C0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white leading-snug",children:O.text}),O.description&&C0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-1 line-clamp-2",children:O.description})]})]})},F))})]})]})}function iN({messages:G,onAction:H,welcomeTitle:_,welcomeSubtitle:L,welcomeIcon:R,suggestedPrompts:N,welcomeVariant:M,chatVariant:U,onPromptClick:I,enableWidgets:y,onWidgetRender:O}){let F=GX.useRef(null),P=GX.useRef(!0),S=GX.useRef(0),E=()=>{if(F.current){let{scrollTop:V,scrollHeight:g,clientHeight:i}=F.current;P.current=g-V-i<100}};return GX.useEffect(()=>{if(F.current&&P.current){let V=F.current.scrollHeight;if(V!==S.current)F.current.scrollTop=V,S.current=V}},[G]),JY.jsx("div",{ref:F,className:"apteva-message-list apteva-scrollbar-hidden",onScroll:E,children:G.length===0?JY.jsx(aN,{title:_,subtitle:L,icon:R,prompts:N,variant:M,chatVariant:U,onPromptClick:I||(()=>{})}):G.map((V)=>JY.jsx("div",{className:V.role==="user"?"apteva-message-row-user":"apteva-message-row-assistant",children:JY.jsx(dN,{message:V,onAction:H,enableWidgets:y,onWidgetRender:O})},V.id))})}function oN({onSendMessage:G,placeholder:H="Type a message...",disabled:_=!1,isLoading:L=!1,onStop:R,onFileUpload:N,onSwitchMode:M}){let[U,I]=I7.useState(""),[y,O]=I7.useState(!1),[F,P]=I7.useState([]),[S,E]=I7.useState(null),[V,g]=I7.useState(!1),i=I7.useRef(null),s=I7.useRef(null),p=I7.useRef(null),a=(C)=>{if(C.key==="Enter"&&!C.shiftKey)C.preventDefault(),H0()},H0=()=>{let C=U.trim(),e=F.length>0;if((C||e)&&!_){let l=F.map((u)=>u.file);if(G(U.trim(),l.length>0?l:void 0),I(""),P([]),E(null),g(!1),i.current)i.current.style.height="auto"}},d=(C)=>{I(C.target.value),C.target.style.height="auto";let e=C.target.scrollHeight;C.target.style.height=`${e}px`;let l=C.target.value.includes(`
|
|
238
|
+
`),q0=e>36;if(!V&&(l||q0))g(!0);else if(V&&!l&&!q0&&C.target.value.length<20)g(!1)},B0=(C)=>{if(C.target.files&&C.target.files.length>0){let e=Array.from(C.target.files),l=[],u=[];if(e.forEach((q0)=>{let t=tL(q0);if(t.valid){let Z0={file:q0};if(q0.type.startsWith("image/"))Z0.preview=URL.createObjectURL(q0);l.push(Z0)}else u.push(t.error||"Invalid file")}),l.length>0)P((q0)=>[...q0,...l]);if(u.length>0)E(u.join(", ")),setTimeout(()=>E(null),5000);N?.(C.target.files),O(!1),C.target.value=""}},c=(C)=>{P((e)=>{let l=e[C];if(l.preview)URL.revokeObjectURL(l.preview);return e.filter((u,q0)=>q0!==C)})},v0=(C)=>{if(C.startsWith("image/"))return A0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})});if(C==="application/pdf")return A0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})});return A0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})};return A0.jsxs("div",{className:"px-4 py-3 relative",children:[S&&A0.jsx("div",{className:"apteva-file-error",children:A0.jsxs("div",{className:"apteva-file-error-content",children:[A0.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),A0.jsx("span",{children:S})]})}),F.length>0&&A0.jsx("div",{className:"apteva-file-preview",children:F.map((C,e)=>A0.jsxs("div",{className:"apteva-file-item",children:[C.preview?A0.jsx("img",{src:C.preview,alt:C.file.name,className:"apteva-file-thumb"}):A0.jsx("div",{className:"apteva-file-icon",children:v0(C.file.type)}),A0.jsxs("div",{className:"apteva-file-info",children:[A0.jsx("span",{className:"apteva-file-name",children:C.file.name}),A0.jsx("span",{className:"apteva-file-size",children:DJ(C.file.size)})]}),A0.jsx("button",{onClick:()=>c(e),className:"apteva-file-remove",title:"Remove file",children:A0.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},e))}),A0.jsxs("div",{className:"apteva-composer",style:{gridTemplateColumns:"auto 1fr auto",gridTemplateAreas:V?'"textarea textarea textarea" "plus . send"':'"plus textarea send"',alignItems:"end"},children:[A0.jsxs("div",{className:"relative flex-shrink-0 self-end",style:{gridArea:"plus"},children:[A0.jsx("button",{ref:p,onClick:()=>O(!y),className:"apteva-composer-menu-btn w-8 h-8 rounded-lg flex items-center justify-center transition-all !text-neutral-700 dark:!text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800",title:"More options",children:A0.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),y&&A0.jsxs(A0.Fragment,{children:[A0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>O(!1)}),A0.jsxs("div",{className:"apteva-composer-menu fixed bg-neutral-800 dark:bg-neutral-800 rounded-xl shadow-lg overflow-hidden z-[9999] min-w-[200px]",style:{left:p.current?.getBoundingClientRect().left??0,bottom:window.innerHeight-(p.current?.getBoundingClientRect().top??0)+8},children:[A0.jsxs("button",{onClick:()=>{s.current?.click(),O(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left",children:[A0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A0.jsx("path",{d:"M10.5 3.5L5.5 8.5C4.67157 9.32843 4.67157 10.6716 5.5 11.5C6.32843 12.3284 7.67157 12.3284 8.5 11.5L14.5 5.5C15.8807 4.11929 15.8807 1.88071 14.5 0.5C13.1193 -0.880711 10.8807 -0.880711 9.5 0.5L3.5 6.5C1.56846 8.43154 1.56846 11.5685 3.5 13.5C5.43154 15.4315 8.56846 15.4315 10.5 13.5L15.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(2, 3)"})}),A0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),M&&A0.jsxs("button",{onClick:()=>{M(),O(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left border-t border-neutral-700 dark:border-neutral-700",children:[A0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),A0.jsx("span",{className:"!text-sm font-medium",children:"Switch to command mode"})]})]})]})]}),A0.jsx("textarea",{ref:i,value:U,onChange:d,onKeyDown:a,placeholder:H,disabled:_,className:"apteva-composer-textarea resize-none bg-transparent border-none focus:outline-none !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 py-1 disabled:opacity-50 disabled:cursor-not-allowed overflow-y-auto max-h-[200px]",style:{gridArea:"textarea"},rows:1}),A0.jsx("div",{className:"self-end",style:{gridArea:"send"},children:L&&R?A0.jsx("button",{onClick:R,className:"apteva-composer-stop-btn",title:"Stop generation",children:A0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}):A0.jsx("button",{onClick:H0,disabled:!U.trim()&&F.length===0||_,className:"apteva-composer-send-btn w-8 h-8 rounded-lg flex items-center justify-center font-bold transition-all flex-shrink-0 border border-neutral-300 dark:border-neutral-600 bg-white dark:bg-neutral-800 !text-neutral-700 dark:!text-neutral-300 hover:bg-neutral-50 dark:hover:bg-neutral-700 disabled:opacity-30 disabled:cursor-not-allowed !text-lg",title:"Send message",children:A0.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A0.jsx("path",{d:"M8 3L8 13M8 3L4 7M8 3L12 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})]}),A0.jsx("input",{ref:s,type:"file",multiple:!0,onChange:B0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}function rN({onExecute:G,state:H,response:_,error:L,plan:R,streamedContent:N,toolName:M,onApprove:U,onReject:I,onReset:y,onStop:O,onExpand:F,placeholder:P="Enter your command...",disabled:S=!1}){let[E,V]=J8.useState(""),[g,i]=J8.useState([]),[s,p]=J8.useState(null),[a,H0]=J8.useState(!1),d=J8.useRef(null),B0=J8.useRef(null),c=J8.useRef(null),v0=()=>{let m=E.trim(),Q0=g.length>0;if((m||Q0)&&!S&&H==="idle"){let k0=g.map((D0)=>D0.file);G(E.trim(),k0.length>0?k0:void 0),V(""),i([])}},C=(m)=>{if(m.key==="Enter"&&!m.shiftKey)m.preventDefault(),v0()},e=()=>{y?.(),d.current?.focus()},l=(m)=>{if(V(m),d.current)d.current.style.height="auto",d.current.style.height=`${Math.min(d.current.scrollHeight,120)}px`},u=(m)=>{if(m.target.files&&m.target.files.length>0){let Q0=Array.from(m.target.files),k0=[],D0=[];if(Q0.forEach((r0)=>{let G4=tL(r0);if(G4.valid){let f={file:r0};if(r0.type.startsWith("image/"))f.preview=URL.createObjectURL(r0);k0.push(f)}else D0.push(G4.error||"Invalid file")}),k0.length>0)i((r0)=>[...r0,...k0]);if(D0.length>0)p(D0.join(", ")),setTimeout(()=>p(null),5000);H0(!1),m.target.value=""}},q0=(m)=>{i((Q0)=>{let k0=Q0[m];if(k0.preview)URL.revokeObjectURL(k0.preview);return Q0.filter((D0,r0)=>r0!==m)})},t=(m)=>{if(m.startsWith("image/"))return U0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})});if(m==="application/pdf")return U0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})});return U0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})},Z0=()=>{if(H==="loading"){if(M)return{text:M,isToolCall:!0};if(N)return{text:N,isToolCall:!1};return{text:"Processing...",isToolCall:!1}}if(H==="success"&&_)return{text:_,isToolCall:!1};if(H==="error"&&L)return{text:L,isToolCall:!1};if(H==="plan-pending"&&R)return{text:R,isToolCall:!1};return{text:"",isToolCall:!1}},K0=H!=="idle",{text:h0,isToolCall:f0}=Z0();return U0.jsxs("div",{className:"w-full relative",children:[s&&U0.jsx("div",{className:"apteva-file-error",style:{top:"-3rem",bottom:"auto"},children:U0.jsxs("div",{className:"apteva-file-error-content",children:[U0.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),U0.jsx("span",{children:s})]})}),U0.jsxs("div",{className:w1("apteva-composer flex items-center gap-2 px-3 py-2 border-2 bg-white dark:bg-neutral-900 transition-all duration-200",H==="idle"&&"border-neutral-200 dark:border-neutral-700",H==="loading"&&"border-blue-400 dark:border-blue-500",H==="plan-pending"&&"border-amber-400 dark:border-amber-500",H==="success"&&"border-green-400 dark:border-green-500",H==="error"&&"border-red-400 dark:border-red-500"),children:[U0.jsxs("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:[H==="idle"&&U0.jsxs("div",{className:"relative",children:[U0.jsx("button",{ref:c,onClick:()=>H0(!a),className:"apteva-composer-menu-btn w-8 h-8 rounded-lg flex items-center justify-center transition-all !text-neutral-500 dark:!text-neutral-400 hover:!text-neutral-700 dark:hover:!text-neutral-200 hover:bg-neutral-100 dark:hover:bg-neutral-800",title:"More options",children:U0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:U0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a&&U0.jsxs(U0.Fragment,{children:[U0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>H0(!1)}),U0.jsxs("div",{className:"apteva-composer-menu fixed bg-neutral-800 dark:bg-neutral-800 rounded-xl shadow-lg overflow-hidden z-[9999] min-w-[200px]",style:{left:c.current?.getBoundingClientRect().left??0,top:(c.current?.getBoundingClientRect().bottom??0)+8},children:[U0.jsxs("button",{onClick:()=>{B0.current?.click(),H0(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left",children:[U0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:U0.jsx("path",{d:"M10.5 3.5L5.5 8.5C4.67157 9.32843 4.67157 10.6716 5.5 11.5C6.32843 12.3284 7.67157 12.3284 8.5 11.5L14.5 5.5C15.8807 4.11929 15.8807 1.88071 14.5 0.5C13.1193 -0.880711 10.8807 -0.880711 9.5 0.5L3.5 6.5C1.56846 8.43154 1.56846 11.5685 3.5 13.5C5.43154 15.4315 8.56846 15.4315 10.5 13.5L15.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(2, 3)"})}),U0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),F&&U0.jsxs("button",{onClick:()=>{F(),H0(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left border-t border-neutral-700 dark:border-neutral-700",children:[U0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U0.jsx("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"})}),U0.jsx("span",{className:"!text-sm font-medium",children:"Expand to chat"})]})]})]})]}),H==="loading"&&!M&&U0.jsx("div",{className:"w-4 h-4 border-2 border-blue-200 border-t-blue-500 rounded-full animate-spin"}),H==="loading"&&M&&U0.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]}),g.length>0&&H==="idle"&&U0.jsx("div",{className:"apteva-file-badges",children:g.map((m,Q0)=>U0.jsxs("div",{className:"apteva-file-badge",title:m.file.name,children:[m.preview?U0.jsx("img",{src:m.preview,alt:m.file.name,className:"apteva-file-badge-img"}):U0.jsx("span",{className:"apteva-file-badge-icon",children:t(m.file.type)}),U0.jsx("button",{onClick:()=>q0(Q0),className:"apteva-file-badge-remove",title:"Remove",children:U0.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},Q0))}),H==="idle"?U0.jsx("textarea",{ref:d,value:E,onChange:(m)=>l(m.target.value),onKeyDown:C,placeholder:g.length>0?"Add a message...":P,disabled:S,rows:1,className:w1("flex-1 resize-none bg-transparent border-none focus:outline-none","!text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500","text-sm leading-relaxed py-1","disabled:opacity-50"),style:{minHeight:"24px",maxHeight:"120px"}}):U0.jsx("div",{className:w1("flex-1 text-sm py-1 truncate flex items-center gap-2",H==="loading"&&!f0&&"!text-neutral-600 dark:!text-neutral-400",H==="loading"&&f0&&"!text-blue-600 dark:!text-blue-400",H==="success"&&"!text-neutral-900 dark:!text-neutral-100",H==="error"&&"!text-red-600 dark:!text-red-400",H==="plan-pending"&&"!text-amber-700 dark:!text-amber-300"),children:f0?U0.jsxs(U0.Fragment,{children:[U0.jsx("span",{className:"font-mono",children:h0}),U0.jsx("span",{className:"text-neutral-400 dark:text-neutral-500",children:"Running..."})]}):h0}),U0.jsx("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:H==="plan-pending"?U0.jsxs("div",{className:"flex items-center gap-1",children:[U0.jsx("button",{onClick:U,className:"px-2 py-1 bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors text-xs font-medium",children:"Approve"}),U0.jsx("button",{onClick:I,className:"px-2 py-1 bg-neutral-200 dark:bg-neutral-700 text-neutral-700 dark:text-neutral-300 rounded-lg hover:bg-neutral-300 dark:hover:bg-neutral-600 transition-colors text-xs font-medium",children:"Modify"})]}):U0.jsxs(U0.Fragment,{children:[H==="loading"&&O&&U0.jsx("button",{onClick:O,className:"apteva-composer-stop-btn",title:"Stop generation",children:U0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:U0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}),(H==="success"||H==="error")&&U0.jsx("button",{onClick:e,className:"w-8 h-8 rounded-lg flex items-center justify-center !text-neutral-400 hover:!text-neutral-600 dark:hover:!text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800 transition-colors",title:"New command",children:U0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),H==="idle"&&U0.jsx("button",{onClick:v0,disabled:!E.trim()&&g.length===0||S,className:w1("apteva-composer-send-btn w-8 h-8 rounded-lg flex items-center justify-center transition-all","border border-neutral-200 dark:border-neutral-700","disabled:opacity-30 disabled:cursor-not-allowed",E.trim()||g.length>0?"bg-neutral-900 dark:bg-white !text-white dark:!text-neutral-900 border-neutral-900 dark:border-white":"bg-white dark:bg-neutral-800 !text-neutral-400"),title:"Execute command",children:U0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14M12 5l7 7-7 7"})})})]})})]}),U0.jsx("input",{ref:B0,type:"file",multiple:!0,onChange:u,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}var nN=class{constructor(G){KN(this,"config"),this.config={apiUrl:G?.apiUrl??"",apiKey:G?.apiKey??""}}configure(G){if(G.apiUrl!==void 0)this.config.apiUrl=G.apiUrl;if(G.apiKey!==void 0)this.config.apiKey=G.apiKey}getConfig(){return{...this.config}}async chat(G){try{console.log("[AptevaClient] Chat request:",{agent_id:G.agent_id,message:typeof G.message==="string"?G.message.substring(0,100)+"...":"[multi-part message]",system:G.system,stream:G.stream});let H=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify(G)});if(!H.ok){let L=await H.json().catch(()=>({error:"Request failed"}));throw Error(L.error||`Request failed with status ${H.status}`)}let _=await H.json();return{message:_.response||_.message||"",thread_id:_.thread_id,widgets:_.widgets}}catch(H){throw console.error("Chat API error:",H),H}}async chatStream(G,H,_,L){try{console.log("[AptevaClient] Chat stream request:",{agent_id:G.agent_id,message:typeof G.message==="string"?G.message.substring(0,100)+"...":"[multi-part message]",system:G.system,stream:G.stream});let R=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey,Accept:"text/event-stream"},body:JSON.stringify({...G,stream:!0})});if(!R.ok){let y=await R.json().catch(()=>({error:"Request failed"}));throw Error(y.error||`Request failed with status ${R.status}`)}let N=R.body?.getReader();if(!N)throw Error("Response body is not readable");let M=new TextDecoder,U="",I="";while(!0){let{done:y,value:O}=await N.read();if(y)break;U+=M.decode(O,{stream:!0});let F=U.split(`
|
|
239
|
+
`);U=F.pop()||"";for(let P of F){if(!P.trim()||P.startsWith(":"))continue;if(P.startsWith("data: ")){let S=P.slice(6);if(S==="[DONE]"){_?.(I);return}try{let E=JSON.parse(S);if(E.thread_id)I=E.thread_id;H(E)}catch(E){console.warn("[AptevaClient] Failed to parse SSE data:",S)}}}}_?.(I)}catch(R){let N=R instanceof Error?R:Error("Unknown error");throw L?.(N),N}}async createThread(G,H){let _=await fetch(`${this.config.apiUrl}/agents/${G}/threads`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify({metadata:H})});if(!_.ok){let R=await _.json().catch(()=>({error:"Request failed"}));throw Error(R.error||`Request failed with status ${_.status}`)}return(await _.json()).thread_id}async getThreadMessages(G){let H=await fetch(`${this.config.apiUrl}/threads/${G}/messages`,{method:"GET",headers:{"X-API-Key":this.config.apiKey}});if(!H.ok){let L=await H.json().catch(()=>({error:"Request failed"}));throw Error(L.error||`Request failed with status ${H.status}`)}return(await H.json()).messages}async cancelRequest(G,H){try{let _=await fetch(`${this.config.apiUrl}/agents/${G}/requests/${H}/cancel`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey}});if(!_.ok){let L=await _.json().catch(()=>({error:"Cancel request failed"}));throw Error(L.error||`Cancel request failed with status ${_.status}`)}}catch(_){throw console.error("[AptevaClient] Cancel request error:",_),_}}},QX=new nN,GY=H1.forwardRef(function({agentId:H,threadId:_,initialMessages:L=[],context:R,apiUrl:N,apiKey:M,useMock:U=!1,initialMode:I="chat",showModeToggle:y=!1,onModeChange:O,commandVariant:F="default",planMode:P=!1,onPlanModeChange:S,enableStreaming:E=!0,showProgress:V=!0,loadingText:g="Processing...",welcomeTitle:i,welcomeSubtitle:s,welcomeIcon:p,suggestedPrompts:a,welcomeVariant:H0,onThreadChange:d,onMessageSent:B0,onAction:c,onFileUpload:v0,onComplete:C,onError:e,onToolCall:l,onToolResult:u,variant:q0="default",placeholder:t,showHeader:Z0=!0,headerTitle:K0="Chat",onHeaderBack:h0,enableWidgets:f0=!1,availableWidgets:m,compactWidgetContext:Q0=!1,onWidgetRender:k0,className:D0},r0){let[G4,f]=H1.useState(L),[Y0,i0]=H1.useState(!1),[U1,O6]=H1.useState(_||null),[o,n1]=H1.useState(I),[d1,U4]=H1.useState(null),[V7,m0]=H1.useState("idle"),[sz,r6]=H1.useState(null),[sJ,$1]=H1.useState(null),[zK,N4]=H1.useState(0),[ez,C6]=H1.useState(""),[eJ,n6]=H1.useState(""),[RX,S6]=H1.useState(null),[OY,t6]=H1.useState(null),[FX,H8]=H1.useState(""),[NX,K8]=H1.useState(""),[LY,MX]=H1.useState(P),[wX,WY]=H1.useState(!1),RY=H1.useRef(null),L6=H1.useRef(null);H1.useImperativeHandle(r0,()=>({sendMessage:async(G1)=>{if(L6.current)await L6.current(G1)},sendSystemMessage:async(G1)=>{if(L6.current)await L6.current(G1,void 0,!0)},getMessages:()=>G4,clearMessages:()=>f([])}),[G4]);let S4=H1.useMemo(()=>{if(!f0)return R;let G1=Q0?vN(m):AN(m);return R?`${R}
|
|
240
|
+
${G1}`:G1},[R,f0,m,Q0]);H1.useEffect(()=>{if(N||M)QX.configure({...N&&{apiUrl:N},...M&&{apiKey:M}})},[N,M]),H1.useEffect(()=>{if(_)d?.(_)},[_,d]),H1.useEffect(()=>{MX(P)},[P]),H1.useEffect(()=>{let G1=(T1)=>{let I1=T1.target;if(wX&&!I1.closest(".settings-menu-container"))WY(!1)};return document.addEventListener("mousedown",G1),()=>document.removeEventListener("mousedown",G1)},[wX]);let _8=(G1)=>{if(n1(G1),O?.(G1),G1==="command")m0("idle"),r6(null),$1(null)},B8=o==="chat"?"Type a message...":"Enter your command...",a1=async(G1,T1,I1)=>{let p1=T1&&T1.length>0,E1=p1?T1.map((W1)=>({name:W1.name,type:W1.type,size:W1.size,preview:W1.type.startsWith("image/")?URL.createObjectURL(W1):void 0})):[];if(!I1){let W1={id:`msg-${Date.now()}`,role:"user",content:G1,timestamp:new Date,metadata:p1?{attachments:E1}:void 0};f((q1)=>[...q1,W1]),B0?.(W1)}i0(!0);try{let W1=await iL(G1,T1);if(U){let q1=await _N(1000);f((Z1)=>[...Z1,q1])}else{let q1=[],Z1="",E0=[],D6=U1,C7={},z$={},vX=`msg-${Date.now()}-res`,E6=()=>{let N0=[...q1];if(Z1){let W0=N0[N0.length-1];if(W0&&W0.type==="text")W0.content=Z1;else N0.push({type:"text",content:Z1})}f((W0)=>{let K1=W0[W0.length-1];if(K1&&K1.role==="assistant")return[...W0.slice(0,-1),{...K1,content:Z1,widgets:E0.length>0?E0:void 0,metadata:{...K1.metadata,content_segments:N0,isStreaming:!0}}];else return[...W0,{id:vX,role:"assistant",content:Z1,widgets:E0.length>0?E0:void 0,timestamp:new Date,metadata:{content_segments:N0,isStreaming:!0}}]})};await QX.chatStream({agent_id:H,message:W1,stream:!0,...U1&&{thread_id:U1},...S4&&{system:S4}},(N0)=>{switch(N0.type){case"thread_id":if(N0.thread_id){if(D6=N0.thread_id,!U1)O6(N0.thread_id),d?.(N0.thread_id)}break;case"request_id":if(N0.request_id)t6(N0.request_id);break;case"content":case"token":if(N0.content){if(!Z1)Z1=N0.content.trimStart();else Z1+=N0.content;if(Z1)E6()}break;case"tool_call":if(N0.tool_id&&N0.tool_name){let W0=N0.tool_display_name||N0.tool_name;if(Z1)q1.push({type:"text",content:Z1.trimEnd()}),Z1="";q1.push({type:"tool",id:N0.tool_id,name:W0,status:"preparing"}),C7[N0.tool_id]="",U4(W0),l?.(N0.tool_name,N0.tool_id),E6()}break;case"tool_input_delta":if(N0.tool_id&&N0.content){let W0=N0.tool_id;if(C7[W0]===void 0)C7[W0]="";C7[W0]+=N0.content;let K1=q1.find((L8)=>L8.type==="tool"&&L8.id===W0);if(K1){if(K1.isReceiving=!0,K1.inputLength=C7[W0].length,E6(),z$[W0])clearTimeout(z$[W0]);z$[W0]=setTimeout(()=>{if(K1.status==="preparing")K1.isReceiving=!1,E6()},150)}}break;case"tool_use":if(N0.tool_id){let W0=q1.find((K1)=>K1.type==="tool"&&K1.id===N0.tool_id);if(W0&&W0.status==="preparing")W0.status="running",W0.isReceiving=!1,E6()}break;case"tool_stream":if(N0.tool_id){let W0=q1.find((K1)=>K1.type==="tool"&&K1.id===N0.tool_id);if(W0){if(N0.event==="chunk"&&N0.content){if(W0.pendingReset)W0.streamOutput="",W0.pendingReset=!1;W0.streamOutput=(W0.streamOutput||"")+N0.content,E6()}else if(N0.event==="log"||N0.event==="progress")W0.pendingReset=!0}}break;case"tool_result":if(N0.tool_id){let W0=q1.find((K1)=>K1.type==="tool"&&K1.id===N0.tool_id);if(W0)W0.result=N0.content,W0.status="completed",W0.isReceiving=!1,u?.(W0.name,N0.content);U4(null),E6()}break;case"widget":if(N0.widget)E0.push(N0.widget),E6();break;case"error":throw Error(N0.message||"Stream error")}},(N0)=>{if(Z1=Z1.trimEnd(),Z1){let W0=q1[q1.length-1];if(W0&&W0.type==="text")W0.content=Z1;else q1.push({type:"text",content:Z1})}if(f((W0)=>{let K1=W0[W0.length-1];if(K1&&K1.role==="assistant")return[...W0.slice(0,-1),{...K1,content:Z1||"Response received",widgets:E0.length>0?E0:void 0,metadata:{thread_id:N0,content_segments:q1,isStreaming:!1}}];return W0}),N0&&N0!==U1)O6(N0),d?.(N0);i0(!1),t6(null),U4(null)},(N0)=>{let W0={id:`msg-${Date.now()}-error`,role:"assistant",content:`Error: ${N0.message}`,timestamp:new Date,metadata:{error:!0}};f((K1)=>{let L8=K1[K1.length-1];if(L8&&L8.id.includes("streaming"))return[...K1.slice(0,-1),W0];return[...K1,W0]}),i0(!1),t6(null),U4(null),e?.(N0)})}}catch(W1){let q1={id:`msg-${Date.now()}-error`,role:"assistant",content:W1 instanceof Error?`Error: ${W1.message}`:"An error occurred",timestamp:new Date,metadata:{error:!0}};f((Z1)=>[...Z1,q1]),e?.(W1 instanceof Error?W1:Error("Unknown error"))}finally{i0(!1)}};L6.current=a1;let s6=async(G1,T1)=>{let I1=G1||ez;if(!I1.trim()&&(!T1||T1.length===0)){$1(Error("Please enter a command")),m0("error");return}if(LY&&V7!=="plan-pending"){if(m0("loading"),$1(null),C6(""),U)setTimeout(()=>{let p1=`1. Analyze the request: "${I1}"
|
|
241
|
+
2. Process the data
|
|
242
|
+
3. Generate response
|
|
243
|
+
4. Return results`;H8(p1),K8(I1),m0("plan-pending")},800);else try{let E1=S4?`${S4}
|
|
244
|
+
|
|
245
|
+
CRITICAL PLANNING MODE: You are ONLY creating a plan. Write a numbered list of steps describing what WOULD be done. DO NOT execute anything.`:"CRITICAL PLANNING MODE: You are ONLY creating a plan. Write a numbered list of steps describing what WOULD be done. DO NOT execute anything.",W1=await QX.chat({agent_id:H,message:I1,stream:!1,system:E1});H8(W1.message),K8(I1),m0("plan-pending")}catch(p1){let E1=p1 instanceof Error?p1:Error("Failed to generate plan");$1(E1),m0("error"),e?.(E1)}return}m0("loading"),$1(null),N4(0),n6(""),C6("");try{if(U)if(E){let p1="";ON(I1,(E1)=>{if(E1.type==="token"&&E1.content){p1+=E1.content,n6(p1);let W1=Math.min(Math.round(p1.length/10),90);N4(W1)}},(E1)=>{let W1={success:!0,data:{summary:p1,thread_id:E1},message:p1||"Command executed successfully"};r6(W1),m0("success"),N4(100),C?.(W1)},(E1)=>{$1(E1),m0("error"),e?.(E1)})}else{await new Promise((E1)=>setTimeout(E1,1500));let p1={success:!0,data:{summary:`Executed: ${I1}`},message:"Command executed successfully"};r6(p1),m0("success"),N4(100),C?.(p1)}else{let E1=S4?`${S4}
|
|
246
|
+
|
|
247
|
+
CRITICAL COMMAND MODE: Maximum 10 words per response. Execute the command immediately. Make reasonable assumptions based on context. Use sensible defaults for missing details. DO NOT ask questions unless something is truly impossible without user input (e.g., missing required password). State what you're doing or the result. Examples: "Analyzing customer data from last quarter..." or "Created 5 new database entries successfully" or "Search complete: found 12 matching results". NO greetings, NO filler words, NO clarification requests. Action/result only.`:`CRITICAL COMMAND MODE: Maximum 10 words per response. Execute the command immediately. Make reasonable assumptions based on context. Use sensible defaults for missing details. DO NOT ask questions unless something is truly impossible without user input (e.g., missing required password). State what you're doing or the result. Examples: "Analyzing customer data from last quarter..." or "Created 5 new database entries successfully" or "Search complete: found 12 matching results". NO greetings, NO filler words, NO clarification requests. Action/result only.`,W1=T1&&T1.length>0?await iL(I1,T1):I1;if(E){let q1="",Z1="";await QX.chatStream({agent_id:H,message:W1,stream:!0,...U1&&{thread_id:U1},system:E1},(E0)=>{if((E0.type==="token"||E0.type==="content")&&E0.content){q1+=E0.content,n6(q1),S6(null);let D6=Math.min(Math.round(q1.length/10),90);N4(D6)}else if(E0.type==="tool_call"&&E0.tool_name){let D6=E0.tool_display_name||E0.tool_name;Z1=E0.tool_name,S6(D6),l?.(E0.tool_name,E0.tool_id||""),q1="",n6("")}else if(E0.type==="tool_result")u?.(Z1,E0.content),S6(null);else if(E0.type==="thread_id"&&E0.thread_id){if(!U1)O6(E0.thread_id),d?.(E0.thread_id)}else if(E0.type==="request_id"&&E0.request_id)t6(E0.request_id)},(E0)=>{let D6={success:!0,data:{summary:q1,thread_id:E0},message:q1||"Command executed successfully"};r6(D6),m0("success"),N4(100),t6(null),C?.(D6)},(E0)=>{$1(E0),m0("error"),t6(null),e?.(E0)})}else{let q1=await QX.chat({agent_id:H,message:W1,stream:!1,...U1&&{thread_id:U1},system:E1}),Z1={success:!0,data:{summary:q1.message,thread_id:q1.thread_id},widgets:q1.widgets,message:q1.message};r6(Z1),m0("success"),N4(100),C?.(Z1)}}}catch(p1){let E1=p1 instanceof Error?p1:Error("Unknown error");$1(E1),m0("error"),e?.(E1)}},U8=()=>{m0("idle"),r6(null),$1(null),N4(0),C6(""),H8(""),K8(""),n6(""),S6(null)},O8=()=>{let G1=FX;H8(""),K8("");let T1=`Execute this plan now:
|
|
248
|
+
|
|
249
|
+
${G1}`;s6(T1)},bX=()=>{C6(NX),H8(""),K8(""),m0("idle")},PX=async()=>{if(OY&&H)try{await QX.cancelRequest(H,OY)}catch(G1){console.error("Failed to cancel request:",G1)}if(i0(!1),V7==="loading")m0("idle"),n6(""),S6(null),N4(0);t6(null)},AX=F==="compact";return B4.jsxs("div",{className:w1("apteva-chat flex flex-col h-full",q0!=="default"&&`apteva-chat-${q0}`,D0),children:[Z0&&o==="chat"&&B4.jsx("div",{className:"apteva-chat-header px-4 py-3",children:B4.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[h0&&B4.jsx("button",{onClick:h0,className:"apteva-chat-back",style:{flexShrink:0},children:B4.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:B4.jsx("path",{d:"M10 12L6 8l4-4"})})}),B4.jsxs("div",{children:[B4.jsx("div",{className:"apteva-chat-title",children:K0}),B4.jsx("div",{className:w1("apteva-chat-status",Y0?d1?"apteva-chat-status-tool":"apteva-chat-status-thinking":"apteva-chat-status-ready"),children:Y0?d1?`Using ${d1}...`:"Thinking...":"Ready"})]})]})}),o==="chat"&&B4.jsxs(B4.Fragment,{children:[B4.jsx(iN,{messages:G4,onAction:c,welcomeTitle:i,welcomeSubtitle:s,welcomeIcon:p,suggestedPrompts:a,welcomeVariant:H0,chatVariant:q0,onPromptClick:(G1)=>a1(G1),enableWidgets:f0,onWidgetRender:k0}),B4.jsx(oN,{onSendMessage:a1,placeholder:t||B8,disabled:Y0,isLoading:Y0,onStop:PX,onFileUpload:v0,onSwitchMode:y?()=>_8("command"):void 0})]}),o==="command"&&B4.jsx("div",{className:"w-full",children:B4.jsx(rN,{onExecute:(G1,T1)=>{C6(G1),s6(G1,T1)},state:V7,response:sz?.data?.summary||sz?.message,error:sJ?.message,plan:FX,streamedContent:eJ,toolName:RX,onApprove:O8,onReject:bX,onReset:U8,onStop:PX,onExpand:y?()=>_8("chat"):void 0,placeholder:t||"Enter your command..."})}),B4.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
250
|
+
@keyframes pulse-border {
|
|
251
|
+
0%, 100% { border-color: rgb(59, 130, 246); }
|
|
252
|
+
50% { border-color: rgb(147, 197, 253); }
|
|
253
|
+
}
|
|
254
|
+
.animate-pulse-border {
|
|
255
|
+
animation: pulse-border 2s ease-in-out infinite;
|
|
256
|
+
}
|
|
257
|
+
.apteva-composer {
|
|
258
|
+
border-radius: var(--apteva-border-radius, 1rem) !important;
|
|
259
|
+
}
|
|
260
|
+
`}})]})});var R1=n(C1(),1),W2=U6.createContext(null);function R2(){return U6.useContext(W2)}function F2({children:G}){let{authFetch:H,isAuthenticated:_,isLoading:L}=c1(),[R,N]=U6.useState(null),[M,U]=U6.useState(!1),[I,y]=U6.useState(!1),[O,F]=U6.useState(null),P=async()=>{try{let p=await(await H("/api/meta-agent/status")).json();N(p)}catch(s){console.error("[MetaAgent] Failed to fetch status:",s)}};U6.useEffect(()=>{if(!L&&_)P()},[H,_,L]);let S=async()=>{y(!0),F(null);try{let s=await H("/api/meta-agent/start",{method:"POST"}),p=await s.json();if(!s.ok)F(p.error||"Failed to start assistant");else await P()}catch(s){F("Failed to start assistant")}y(!1)},E=!!(R?.enabled&&R?.available),V=R?.agent,g=!!(V?.status==="running"&&V?.port),i={status:R,isOpen:M,isStarting:I,error:O,isAvailable:E,isRunning:g,agent:V,toggle:()=>U(!M),close:()=>U(!1),startAgent:S};return R1.jsxDEV(W2.Provider,{value:i,children:G},void 0,!1,void 0,this)}function N2(){let G=R2();if(!G?.isAvailable)return null;return R1.jsxDEV("button",{onClick:G.toggle,className:`hidden md:flex items-center gap-2 px-3 py-2 rounded transition ${G.isOpen?"bg-[#f97316] text-white":"bg-[#151515] hover:bg-[#1a1a1a] text-[#888] hover:text-white"}`,title:"Apteva Assistant",children:[R1.jsxDEV(w2,{className:"w-5 h-5"},void 0,!1,void 0,this),R1.jsxDEV("span",{className:"text-sm",children:"Assistant"},void 0,!1,void 0,this),G.isRunning&&R1.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 M2(){let G=R2(),{currentProjectId:H,currentProject:_}=u4();if(!G?.isAvailable||!G.isOpen)return null;let{agent:L,isRunning:R,error:N,isStarting:M,startAgent:U,close:I}=G,y=U6.useMemo(()=>{let O=[];if(_)O.push(`Current project: "${_.name}" (id: ${_.id})`);else if(H==="unassigned")O.push("Viewing: unassigned agents (no project)");else O.push("Viewing: All Projects");return O.join(`
|
|
261
|
+
`)},[H,_]);return R1.jsxDEV(R1.Fragment,{children:[R1.jsxDEV("div",{className:"hidden md:block fixed inset-0 bg-black/20 z-40",onClick:I},void 0,!1,void 0,this),R1.jsxDEV("div",{className:"hidden md:flex fixed top-0 right-0 h-full w-[480px] lg:w-[540px] bg-[#0a0a0a] border-l border-[#1a1a1a] shadow-2xl z-50 flex-col",children:[R1.jsxDEV("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[#1a1a1a] bg-[#111]",children:[R1.jsxDEV("div",{className:"flex items-center gap-2",children:[R1.jsxDEV("div",{className:`w-2 h-2 rounded-full ${R?"bg-green-400":"bg-[#444]"}`},void 0,!1,void 0,this),R1.jsxDEV("span",{className:"font-medium text-sm",children:"Apteva Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R1.jsxDEV("button",{onClick:I,className:"text-[#666] hover:text-[#888] transition",children:R1.jsxDEV($M,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R1.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col",children:R?R1.jsxDEV(GY,{agentId:"default",apiUrl:`/api/agents/${L.id}`,placeholder:"Ask me anything about Apteva...",variant:"terminal",showHeader:!1,context:y},void 0,!1,void 0,this):R1.jsxDEV("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:[R1.jsxDEV(w2,{className:"w-12 h-12 text-[#333] mb-4"},void 0,!1,void 0,this),R1.jsxDEV("h3",{className:"font-medium mb-2",children:"Apteva Assistant"},void 0,!1,void 0,this),R1.jsxDEV("p",{className:"text-sm text-[#666] mb-6",children:"I can help you navigate Apteva, create agents, set up MCP servers, and more."},void 0,!1,void 0,this),N&&R1.jsxDEV("p",{className:"text-sm text-red-400 mb-4",children:N},void 0,!1,void 0,this),R1.jsxDEV("button",{onClick:U,disabled:M,className:"bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-white px-6 py-2 rounded font-medium transition",children:M?"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 w2({className:G="w-6 h-6"}){return R1.jsxDEV("svg",{className:G,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:R1.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 $M(){return R1.jsxDEV("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:R1.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 P0=n(C1(),1);function fJ({onMenuClick:G,agents:H=[]}){let{connected:_}=qY(),L=P2(),{projects:R,currentProjectId:N,currentProject:M,setCurrentProjectId:U,unassignedCount:I,projectsEnabled:y}=u4(),[O,F]=I4.useState(!1),[P,S]=I4.useState(!1),[E,V]=I4.useState(0),[g,i]=I4.useState([]),s=b2(),{events:p}=qY(),{accessToken:a}=c1(),H0=I4.useRef(!1),d=I4.default.useMemo(()=>{let u={};for(let q0 of H)u[q0.id]=q0.name;return u},[H]),B0=I4.default.useMemo(()=>{if(!y||N===null)return null;if(N==="unassigned")return new Set(H.filter((u)=>!u.projectId).map((u)=>u.id));return new Set(H.filter((u)=>u.projectId===N).map((u)=>u.id))},[H,N,y]);I4.useEffect(()=>{if(H0.current||!a)return;H0.current=!0,fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${a}`}}).then((u)=>u.json()).then((u)=>V(u.count||0)).catch(()=>{})},[a]),I4.useEffect(()=>{if(s===0)return;let u=p.find((q0)=>q0.level==="error"||q0.category==="ERROR"||q0.category==="system"&&q0.type==="agent_stopped");if(u&&(!B0||B0.has(u.agent_id)))V((q0)=>q0+1)},[s]);let c=I4.useRef(N);I4.useEffect(()=>{if(c.current===N)return;if(c.current=N,!a)return;fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${a}`}}).then((u)=>u.json()).then((u)=>{if(!B0)V(u.count||0);else fetch("/api/notifications?limit=200",{headers:{Authorization:`Bearer ${a}`}}).then((q0)=>q0.json()).then((q0)=>{let t=(q0.notifications||[]).filter((Z0)=>!Z0.seen&&B0.has(Z0.agent_id));V(t.length)}).catch(()=>{})}).catch(()=>{})},[N,a,B0]);let v0=I4.useCallback(async()=>{if(S((u)=>!u),!P)try{let u={"Content-Type":"application/json"};if(a)u.Authorization=`Bearer ${a}`;let Z0=(await(await fetch("/api/notifications?limit=50",{headers:u})).json()).notifications||[];if(B0)Z0=Z0.filter((K0)=>B0.has(K0.agent_id));if(i(Z0),E>0)await fetch("/api/notifications/mark-seen",{method:"POST",headers:u,body:JSON.stringify({all:!0})}),V(0)}catch{}},[P,E,a,B0]),C=(u)=>{U(u),F(!1)},e=()=>{if(N===null)return"All Projects";if(N==="unassigned")return"Unassigned";return M?.name||"Select Project"},l=()=>{if(N===null)return"#666";if(N==="unassigned")return"#888";return M?.color||"#6366f1"};return P0.jsxDEV("header",{className:"border-b border-[#1a1a1a] px-4 md:px-6 py-4 flex-shrink-0",children:P0.jsxDEV("div",{className:"flex items-center justify-between",children:[P0.jsxDEV("div",{className:"flex items-center gap-3",children:[P0.jsxDEV("button",{onClick:G,className:"p-2 -ml-2 text-[#666] hover:text-[#e0e0e0] transition md:hidden",children:P0.jsxDEV(A2,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),P0.jsxDEV("div",{className:"flex items-center gap-2",children:[P0.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),P0.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y&&R.length>0&&P0.jsxDEV("div",{className:"relative ml-2 md:ml-4",children:[P0.jsxDEV("button",{onClick:()=>F(!O),className:"flex items-center gap-2 px-3 py-1.5 rounded border border-[#222] bg-[#111] hover:bg-[#1a1a1a] transition text-sm",children:[P0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:l()}},void 0,!1,void 0,this),P0.jsxDEV("span",{className:"hidden sm:inline max-w-[120px] md:max-w-[180px] truncate",children:e()},void 0,!1,void 0,this),P0.jsxDEV(v2,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O&&P0.jsxDEV("div",{className:"absolute left-0 top-full mt-1 w-56 bg-[#111] border border-[#222] rounded-lg shadow-xl z-50",children:P0.jsxDEV("div",{className:"py-1 max-h-64 overflow-y-auto",children:[P0.jsxDEV("button",{onClick:()=>C(null),className:`w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-[#1a1a1a] transition ${N===null?"bg-[#1a1a1a] text-[#f97316]":""}`,children:[P0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-[#666]"},void 0,!1,void 0,this),"All Projects"]},void 0,!0,void 0,this),R.map((u)=>P0.jsxDEV("button",{onClick:()=>C(u.id),className:`w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-[#1a1a1a] transition ${N===u.id?"bg-[#1a1a1a] text-[#f97316]":""}`,children:[P0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:u.color}},void 0,!1,void 0,this),P0.jsxDEV("span",{className:"truncate",children:u.name},void 0,!1,void 0,this),P0.jsxDEV("span",{className:"ml-auto text-xs text-[#666]",children:u.agentCount},void 0,!1,void 0,this)]},u.id,!0,void 0,this)),I>0&&P0.jsxDEV("button",{onClick:()=>C("unassigned"),className:`w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-[#1a1a1a] transition ${N==="unassigned"?"bg-[#1a1a1a] text-[#f97316]":""}`,children:[P0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-[#888]"},void 0,!1,void 0,this),P0.jsxDEV("span",{className:"truncate",children:"Unassigned"},void 0,!1,void 0,this),P0.jsxDEV("span",{className:"ml-auto text-xs text-[#666]",children:I},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),P0.jsxDEV("div",{className:"flex items-center gap-3 md:gap-4",children:[P0.jsxDEV("div",{className:"flex items-center gap-2",children:[P0.jsxDEV("span",{className:`w-2 h-2 rounded-full ${_?"bg-green-400":"bg-red-400"}`},void 0,!1,void 0,this),P0.jsxDEV("span",{className:"text-xs text-[#666] hidden sm:inline",children:_?"Live":"Offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("div",{className:"relative",children:[P0.jsxDEV("button",{onClick:v0,className:"relative p-2 text-[#666] hover:text-[#e0e0e0] transition rounded hover:bg-[#1a1a1a]",children:[P0.jsxDEV(T2,{className:"w-5 h-5"},void 0,!1,void 0,this),E>0&&P0.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:E>99?"99+":E},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P&&P0.jsxDEV(P0.Fragment,{children:[P0.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>S(!1)},void 0,!1,void 0,this),P0.jsxDEV("div",{className:"absolute right-0 top-full mt-1 w-80 bg-[#111] border border-[#222] rounded-lg shadow-xl z-50 max-h-96 overflow-y-auto",children:[P0.jsxDEV("div",{className:"px-4 py-3 border-b border-[#222] flex items-center justify-between",children:[P0.jsxDEV("span",{className:"text-sm font-medium",children:"Notifications"},void 0,!1,void 0,this),g.length>0&&P0.jsxDEV("span",{className:"text-xs text-[#666]",children:[g.length," recent"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g.length===0?P0.jsxDEV("div",{className:"px-4 py-8 text-center text-sm text-[#666]",children:"No notifications"},void 0,!1,void 0,this):P0.jsxDEV("div",{className:"py-1",children:g.map((u)=>P0.jsxDEV("div",{className:`px-4 py-3 hover:bg-[#1a1a1a] transition border-b border-[#1a1a1a] ${!u.seen?"bg-[#0f0f0f]":""}`,children:[P0.jsxDEV("div",{className:"flex items-center gap-2 mb-1",children:[P0.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${!u.seen?u.level==="error"||u.category==="ERROR"?"bg-red-400":"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),P0.jsxDEV("span",{className:`text-xs font-medium truncate ${!u.seen?"text-[#ccc]":"text-[#666]"}`,children:u.category==="system"&&u.type==="agent_stopped"?"Agent Stopped":u.category==="ERROR"?"Error":`${u.category} / ${u.type}`},void 0,!1,void 0,this),P0.jsxDEV("span",{className:"text-[10px] text-[#555] ml-auto flex-shrink-0",children:XM(u.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("div",{className:`text-xs truncate ${!u.seen?"text-[#aaa]":"text-[#666]"}`,children:u.error||u.data?.message||u.data?.error||`${u.type} event`},void 0,!1,void 0,this),P0.jsxDEV("div",{className:"text-[10px] text-[#555] mt-1",children:d[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),P0.jsxDEV(N2,{},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 XM(G){let H=Date.now()-new Date(G).getTime(),_=Math.floor(H/60000);if(_<1)return"just now";if(_<60)return`${_}m ago`;let L=Math.floor(_/60);if(L<24)return`${L}h ago`;return`${Math.floor(L/24)}d ago`}var C2=n(e0(),1);var S0=n(C1(),1);function pJ({route:G,agentCount:H,taskCount:_,onNavigate:L,isOpen:R,onClose:N}){let{user:M,logout:U}=c1(),[I,y]=C2.useState(!1),O=(P)=>{L(P),N?.()},F=async()=>{await U(),y(!1)};return S0.jsxDEV(S0.Fragment,{children:[R&&S0.jsxDEV("div",{className:"fixed inset-0 bg-black/60 z-40 md:hidden",onClick:N},void 0,!1,void 0,this),S0.jsxDEV("aside",{className:`
|
|
262
|
+
fixed inset-y-0 left-0 z-50 w-64 bg-[#0a0a0a] border-r border-[#1a1a1a] p-4 flex flex-col transform transition-transform duration-200 ease-in-out
|
|
263
|
+
md:relative md:w-56 md:translate-x-0 md:z-auto
|
|
264
|
+
${R?"translate-x-0":"-translate-x-full"}
|
|
265
|
+
`,children:[S0.jsxDEV("div",{className:"flex items-center justify-between mb-4 md:hidden",children:[S0.jsxDEV("div",{className:"flex items-center gap-2",children:[S0.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:"text-lg tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("button",{onClick:N,className:"p-2 text-[#666] hover:text-[#e0e0e0] transition",children:S0.jsxDEV(nz,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("nav",{className:"space-y-1 flex-1",children:[S0.jsxDEV(o6,{icon:S0.jsxDEV(oH,{},void 0,!1,void 0,this),label:"Dashboard",active:G==="dashboard",onClick:()=>O("dashboard")},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(rH,{},void 0,!1,void 0,this),label:"Agents",active:G==="agents",onClick:()=>O("agents"),badge:H>0?String(H):void 0},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(hJ,{},void 0,!1,void 0,this),label:"Activity",active:G==="activity",onClick:()=>O("activity")},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(k7,{},void 0,!1,void 0,this),label:"Tasks",active:G==="tasks",onClick:()=>O("tasks"),badge:_&&_>0?String(_):void 0},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(Q8,{},void 0,!1,void 0,this),label:"MCP",active:G==="mcp",onClick:()=>O("mcp")},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(mJ,{},void 0,!1,void 0,this),label:"Skills",active:G==="skills",onClick:()=>O("skills")},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(V2,{},void 0,!1,void 0,this),label:"Connections",active:G==="connections",onClick:()=>O("connections")},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(y2,{},void 0,!1,void 0,this),label:"Tests",active:G==="tests",onClick:()=>O("tests")},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(I2,{},void 0,!1,void 0,this),label:"Telemetry",active:G==="telemetry",onClick:()=>O("telemetry")},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(k2,{},void 0,!1,void 0,this),label:"API",active:G==="api",onClick:()=>O("api")},void 0,!1,void 0,this),S0.jsxDEV(o6,{icon:S0.jsxDEV(nH,{},void 0,!1,void 0,this),label:"Settings",active:G==="settings",onClick:()=>O("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M&&S0.jsxDEV("div",{className:"relative border-t border-[#1a1a1a] pt-3 mt-3",children:[S0.jsxDEV("button",{onClick:()=>y(!I),className:"w-full flex items-center gap-3 px-3 py-2 rounded hover:bg-[#111] transition",children:[S0.jsxDEV("div",{className:"w-8 h-8 rounded-full bg-[#f97316] flex items-center justify-center text-black font-medium text-sm flex-shrink-0",children:M.username.charAt(0).toUpperCase()},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"flex-1 min-w-0 text-left",children:[S0.jsxDEV("p",{className:"text-sm font-medium truncate",children:M.username},void 0,!1,void 0,this),S0.jsxDEV("p",{className:"text-xs text-[#555]",children:M.role},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),I&&S0.jsxDEV(S0.Fragment,{children:[S0.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>y(!1)},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"absolute left-3 bottom-full mb-1 w-48 bg-[#111] border border-[#222] rounded-lg shadow-xl z-50",children:S0.jsxDEV("button",{onClick:F,className:"w-full px-4 py-2.5 text-left text-sm text-red-400 hover:bg-[#1a1a1a] transition rounded-lg",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 o6({icon:G,label:H,active:_,onClick:L,badge:R}){return S0.jsxDEV("button",{onClick:L,className:`w-full flex items-center gap-3 px-3 py-2 rounded font-medium transition ${_?"bg-[#111] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:[G,H,R&&S0.jsxDEV("span",{className:"ml-auto bg-[#333] text-[#888] text-xs px-2 py-0.5 rounded-full",children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var HY=n(C1(),1);function jJ({message:G,onDismiss:H}){return HY.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:[HY.jsxDEV("span",{children:G},void 0,!1,void 0,this),HY.jsxDEV("button",{onClick:H,className:"hover:text-red-300",children:HY.jsxDEV(nz,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var KY=n(e0(),1);var Q4=n(C1(),1);function gJ(){let{login:G}=c1(),[H,_]=KY.useState(""),[L,R]=KY.useState(""),[N,M]=KY.useState(null),[U,I]=KY.useState(!1);return Q4.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:Q4.jsxDEV("div",{className:"w-full max-w-md",children:[Q4.jsxDEV("div",{className:"text-center mb-8",children:[Q4.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[Q4.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),Q4.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q4.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q4.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[Q4.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome back"},void 0,!1,void 0,this),Q4.jsxDEV("p",{className:"text-[#666] mb-6",children:"Sign in to continue to apteva"},void 0,!1,void 0,this),Q4.jsxDEV("form",{onSubmit:async(O)=>{O.preventDefault(),M(null),I(!0);let F=await G(H,L);if(!F.success)M(F.error||"Login failed");I(!1)},className:"space-y-4",children:[Q4.jsxDEV("div",{children:[Q4.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[#888] mb-1",children:"Username"},void 0,!1,void 0,this),Q4.jsxDEV("input",{id:"username",type:"text",value:H,onChange:(O)=>_(O.target.value),placeholder:"Enter your username",autoFocus:!0,required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q4.jsxDEV("div",{children:[Q4.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[#888] mb-1",children:"Password"},void 0,!1,void 0,this),Q4.jsxDEV("input",{id:"password",type:"password",value:L,onChange:(O)=>R(O.target.value),placeholder:"Enter your password",required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N&&Q4.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),Q4.jsxDEV("button",{type:"submit",disabled:U||!H||!L,className:"w-full bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:U?"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 Jz=n(e0(),1),A1=n(C1(),1);function xJ({onComplete:G}){let[H,_]=Jz.useState(""),[L,R]=Jz.useState(""),[N,M]=Jz.useState(""),[U,I]=Jz.useState(""),[y,O]=Jz.useState(!1),[F,P]=Jz.useState(null),[S,E]=Jz.useState(!1);return A1.jsxDEV(A1.Fragment,{children:[A1.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Create your account"},void 0,!1,void 0,this),A1.jsxDEV("p",{className:"text-[#666] mb-6",children:"Set up your admin account to get started with apteva."},void 0,!1,void 0,this),A1.jsxDEV("form",{onSubmit:async(g)=>{if(g.preventDefault(),P(null),L!==N){P("Passwords do not match");return}E(!0);try{let i=await fetch("/api/onboarding/user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:H,password:L,...U&&{email:U}})}),s=await i.json();if(!i.ok){P(s.error||"Failed to create account"),E(!1);return}let p=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:H,password:L})});if(!p.ok){P("Account created but login failed. Please try logging in."),E(!1);return}let a=await p.json();if(a.accessToken)sessionStorage.setItem("accessToken",a.accessToken);G({username:H})}catch(i){P("Failed to create account"),E(!1)}},className:"space-y-4",children:[A1.jsxDEV("div",{children:[A1.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[#888] mb-1",children:"Username"},void 0,!1,void 0,this),A1.jsxDEV("input",{id:"username",type:"text",value:H,onChange:(g)=>_(g.target.value),placeholder:"Choose a username",autoFocus:!0,required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),A1.jsxDEV("p",{className:"text-xs text-[#666] mt-1",children:"3-20 characters, letters, numbers, underscore"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("div",{children:[A1.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[#888] mb-1",children:"Password"},void 0,!1,void 0,this),A1.jsxDEV("input",{id:"password",type:"password",value:L,onChange:(g)=>R(g.target.value),placeholder:"Enter a password",required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),A1.jsxDEV("p",{className:"text-xs text-[#666] mt-1",children:"Min 8 characters, uppercase, lowercase, number"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("div",{children:[A1.jsxDEV("label",{htmlFor:"confirmPassword",className:"block text-sm text-[#888] mb-1",children:"Confirm Password"},void 0,!1,void 0,this),A1.jsxDEV("input",{id:"confirmPassword",type:"password",value:N,onChange:(g)=>M(g.target.value),placeholder:"Confirm your password",required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!y?A1.jsxDEV("button",{type:"button",onClick:()=>O(!0),className:"text-sm text-[#666] hover:text-[#888] transition",children:"+ Add email for password recovery (optional)"},void 0,!1,void 0,this):A1.jsxDEV("div",{children:[A1.jsxDEV("label",{htmlFor:"email",className:"block text-sm text-[#888] mb-1",children:["Email ",A1.jsxDEV("span",{className:"text-[#666]",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("input",{id:"email",type:"email",value:U,onChange:(g)=>I(g.target.value),placeholder:"For password recovery only",className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),A1.jsxDEV("p",{className:"text-xs text-[#666] mt-1",children:"Only used for password recovery, never shared"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F&&A1.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:F},void 0,!1,void 0,this),A1.jsxDEV("button",{type:"submit",disabled:S||!H||!L||!N,className:"w-full bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:S?"Creating account...":"Create Account"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("p",{className:"text-xs text-[#666] 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 V6=n(e0(),1);var _0=n(C1(),1);function _Y({onComplete:G,needsAccount:H=!1}){let[_,L]=V6.useState(H?0:1),[R,N]=V6.useState([]),[M,U]=V6.useState(null),[I,y]=V6.useState(""),[O,F]=V6.useState(!1),[P,S]=V6.useState(!1),[E,V]=V6.useState(null),[g,i]=V6.useState(null),[s,p]=V6.useState(!1),a=()=>{let e=sessionStorage.getItem("accessToken");return e?{Authorization:`Bearer ${e}`}:{}};V6.useEffect(()=>{if(H&&!s&&_===0)return;fetch("/api/providers",{headers:a()}).then((e)=>e.json()).then((e)=>{let l=(e.providers||[]).filter((u)=>u.type==="llm");N(l)})},[s,_,H]);let H0=R.filter((e)=>e.hasKey),d=async()=>{if(!M||!I)return;F(!0),V(null),i(null);try{S(!0);let l=await(await fetch(`/api/keys/${M}/test`,{method:"POST",headers:{"Content-Type":"application/json",...a()},body:JSON.stringify({key:I})})).json();if(S(!1),!l.valid){V(l.error||"API key is invalid"),F(!1);return}let u=await fetch(`/api/keys/${M}`,{method:"POST",headers:{"Content-Type":"application/json",...a()},body:JSON.stringify({key:I})}),q0=await u.json();if(!u.ok)V(q0.error||"Failed to save key");else{i("API key saved successfully!"),y("");let Z0=await(await fetch("/api/providers",{headers:a()})).json();N(Z0.providers||[]),U(null)}}catch(e){V("Failed to save key")}F(!1)},B0=async()=>{try{let e=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json",...a()},body:JSON.stringify({name:"My Project",description:"Default project for organizing agents",color:"#f97316"})});if(e.ok){let l=await e.json();if(l.project?.id)localStorage.setItem("apteva_current_project",l.project.id)}}catch(e){console.error("Failed to create default project:",e)}await fetch("/api/onboarding/complete",{method:"POST",headers:a()}),G()},c=()=>{p(!0),L(1)},v0=H?3:2,C=H?_:_-1;return _0.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:_0.jsxDEV("div",{className:"w-full max-w-2xl",children:[_0.jsxDEV("div",{className:"text-center mb-8",children:[_0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[_0.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),_0.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[H&&_0.jsxDEV(_0.Fragment,{children:[_0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=0?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),_0.jsxDEV("div",{className:`w-16 h-0.5 ${_>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),_0.jsxDEV("div",{className:`w-16 h-0.5 ${_>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),_0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[_===0&&H&&_0.jsxDEV(xJ,{onComplete:c},void 0,!1,void 0,this),_===1&&_0.jsxDEV(YM,{providers:R,configuredProviders:H0,selectedProvider:M,apiKey:I,saving:O,testing:P,error:E,success:g,onSelectProvider:U,onApiKeyChange:y,onSaveKey:d,onContinue:()=>L(2)},void 0,!1,void 0,this),_===2&&_0.jsxDEV(JM,{configuredProviders:H0,onAddMore:()=>L(1),onComplete:B0},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 YM({providers:G,configuredProviders:H,selectedProvider:_,apiKey:L,saving:R,testing:N,error:M,success:U,onSelectProvider:I,onApiKeyChange:y,onSaveKey:O,onContinue:F}){let P=G.find((S)=>S.id===_);if(_&&P)return _0.jsxDEV(_0.Fragment,{children:[_0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",P.name," Key"]},void 0,!0,void 0,this),_0.jsxDEV("p",{className:"text-[#666] mb-6",children:"Enter your API key below. It will be encrypted and stored locally."},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"mb-6",children:[_0.jsxDEV("div",{className:"p-4 rounded border border-[#f97316] bg-[#f97316]/5 mb-4",children:_0.jsxDEV("div",{className:"flex items-center justify-between",children:[_0.jsxDEV("div",{children:[_0.jsxDEV("p",{className:"font-medium",children:P.name},void 0,!1,void 0,this),_0.jsxDEV("p",{className:"text-sm text-[#666]",children:[P.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("a",{href:P.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),_0.jsxDEV("div",{className:"space-y-3",children:[_0.jsxDEV("input",{type:"password",value:L,onChange:(S)=>y(S.target.value),placeholder:"Enter your API key...",autoFocus:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316] text-lg"},void 0,!1,void 0,this),M&&_0.jsxDEV("p",{className:"text-red-400 text-sm",children:M},void 0,!1,void 0,this),U&&_0.jsxDEV("p",{className:"text-green-400 text-sm",children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"flex gap-3",children:[_0.jsxDEV("button",{onClick:()=>{I(null),y("")},className:"flex-1 border border-[#333] hover:border-[#666] px-4 py-3 rounded font-medium transition",children:"Back"},void 0,!1,void 0,this),_0.jsxDEV("button",{onClick:O,disabled:!L||R,className:"flex-1 bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:N?"Testing...":R?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return _0.jsxDEV(_0.Fragment,{children:[_0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),_0.jsxDEV("p",{className:"text-[#666] 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),_0.jsxDEV("div",{className:"space-y-3 mb-6",children:G.map((S)=>_0.jsxDEV(ZM,{provider:S,selected:!1,onSelect:()=>!S.hasKey&&I(S.id)},S.id,!1,void 0,this))},void 0,!1,void 0,this),_0.jsxDEV("button",{onClick:F,disabled:H.length===0,className:"w-full bg-[#222] hover:bg-[#333] disabled:opacity-50 disabled:cursor-not-allowed px-4 py-3 rounded font-medium transition",children:H.length===0?"Add at least one API key to continue":`Continue with ${H.length} provider${H.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ZM({provider:G,selected:H,onSelect:_}){return _0.jsxDEV("div",{onClick:_,className:`p-4 rounded border transition cursor-pointer ${G.hasKey?"border-green-500/30 bg-green-500/5":H?"border-[#f97316] bg-[#f97316]/5":"border-[#222] hover:border-[#333]"}`,children:_0.jsxDEV("div",{className:"flex items-center justify-between",children:[_0.jsxDEV("div",{children:[_0.jsxDEV("p",{className:"font-medium",children:G.name},void 0,!1,void 0,this),_0.jsxDEV("p",{className:"text-sm text-[#666]",children:[G.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G.hasKey?_0.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[_0.jsxDEV(uJ,{},void 0,!1,void 0,this),"Configured (",G.keyHint,")"]},void 0,!0,void 0,this):_0.jsxDEV("a",{href:G.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(L)=>L.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 JM({configuredProviders:G,onAddMore:H,onComplete:_}){return _0.jsxDEV(_0.Fragment,{children:[_0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),_0.jsxDEV("p",{className:"text-[#666] mb-6",children:["You've configured ",G.length," provider",G.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"space-y-2 mb-6",children:G.map((L)=>_0.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[#0a0a0a] rounded",children:[_0.jsxDEV(uJ,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),_0.jsxDEV("span",{children:L.name},void 0,!1,void 0,this),_0.jsxDEV("span",{className:"text-[#666] text-sm",children:["(",L.keyHint,")"]},void 0,!0,void 0,this)]},L.id,!0,void 0,this))},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"flex gap-3",children:[_0.jsxDEV("button",{onClick:H,className:"flex-1 border border-[#333] hover:border-[#f97316] px-4 py-3 rounded font-medium transition",children:"Add More"},void 0,!1,void 0,this),_0.jsxDEV("button",{onClick:_,className:"flex-1 bg-[#f97316] hover:bg-[#fb923c] 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 cJ=n(e0(),1);var S1=n(C1(),1),GM=[{key:"memory",icon:KX,label:"Memory"},{key:"tasks",icon:k7,label:"Tasks"},{key:"files",icon:OX,label:"Files"},{key:"vision",icon:_X,label:"Vision"},{key:"operator",icon:BX,label:"Operator"},{key:"mcp",icon:Q8,label:"MCP"},{key:"realtime",icon:UX,label:"Realtime"},{key:"agents",icon:LX,label:"Multi-Agent"}];function dJ({agent:G,selected:H,onSelect:_,onToggle:L,showProject:R}){let N=GM.filter((V)=>G.features?.[V.key]),M=G.mcpServerDetails||[],U=G.skillDetails||[],{isActive:I,label:y}=lJ(G.id),{projects:O}=u4(),{authFetch:F}=c1(),P=G.projectId?O.find((V)=>V.id===G.projectId):null,[S,E]=cJ.useState([]);return cJ.useEffect(()=>{F(`/api/subscriptions?agent_id=${G.id}`).then((V)=>V.ok?V.json():{subscriptions:[]}).then((V)=>E(V.subscriptions||[])).catch(()=>{})},[G.id,F]),S1.jsxDEV("div",{onClick:_,className:`bg-[#111] rounded p-5 border transition cursor-pointer flex flex-col h-full ${H?"border-[#f97316]":"border-[#1a1a1a] hover:border-[#333]"}`,children:[S1.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[S1.jsxDEV("div",{children:[S1.jsxDEV("h3",{className:"font-semibold text-lg",children:G.name},void 0,!1,void 0,this),S1.jsxDEV("p",{className:"text-sm text-[#666]",children:[G.provider," / ",G.model,G.port&&S1.jsxDEV("span",{className:"text-[#444]",children:[" · :",G.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R&&P&&S1.jsxDEV("p",{className:"text-sm text-[#666] flex items-center gap-1.5 mt-1",children:[S1.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:P.color}},void 0,!1,void 0,this),P.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV(qM,{status:G.status,isActive:I&&G.status==="running",activityLabel:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.length>0&&S1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:N.map(({key:V,icon:g,label:i})=>S1.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-[#f97316]/10 text-[#f97316]/70 text-xs",title:i,children:[S1.jsxDEV(g,{className:"w-3 h-3"},void 0,!1,void 0,this),i]},V,!0,void 0,this))},void 0,!1,void 0,this),M.length>0&&S1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:M.map((V)=>{let g=V.type==="http"&&V.url||V.status==="running";return S1.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${g?"bg-green-500/10 text-green-400":"bg-[#222] text-[#666]"}`,title:`MCP: ${V.name} (${g?"available":V.status})`,children:[S1.jsxDEV(Q8,{className:"w-3 h-3"},void 0,!1,void 0,this),V.name]},V.id,!0,void 0,this)})},void 0,!1,void 0,this),U.length>0&&S1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:U.map((V)=>S1.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${V.enabled?"bg-purple-500/10 text-purple-400":"bg-[#222] text-[#666]"}`,title:`Skill: ${V.name} v${V.version}`,children:[S1.jsxDEV(mJ,{className:"w-3 h-3"},void 0,!1,void 0,this),V.name]},V.id,!0,void 0,this))},void 0,!1,void 0,this),S.length>0&&S1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:S.map((V)=>S1.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${V.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[#222] text-[#666]"}`,title:`Trigger: ${V.trigger_slug.replace(/_/g," ")}`,children:[S1.jsxDEV(hJ,{className:"w-3 h-3"},void 0,!1,void 0,this),V.trigger_slug.replace(/_/g," ")]},V.id,!0,void 0,this))},void 0,!1,void 0,this),S1.jsxDEV("p",{className:"text-sm text-[#666] line-clamp-2 mb-4 flex-1",children:G.systemPrompt},void 0,!1,void 0,this),S1.jsxDEV("button",{onClick:L,disabled:G.status==="starting"||G.status==="stopping",className:`w-full px-3 py-1.5 rounded text-sm font-medium transition mt-auto ${G.status==="starting"||G.status==="stopping"?"bg-[#333] text-[#666] cursor-wait":G.status==="running"?"bg-[#f97316]/20 text-[#f97316] hover:bg-[#f97316]/30":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:G.status==="starting"?"Starting...":G.status==="stopping"?"Stopping...":G.status==="running"?"Stop":"Start"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function qM({status:G,isActive:H,activityLabel:_}){if(G==="running"&&H&&_)return S1.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 S1.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ${G==="starting"||G==="stopping"?"bg-yellow-500/20 text-yellow-400 animate-pulse":G==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[#333] text-[#666]"}`,children:G},void 0,!1,void 0,this)}var BY=n(e0(),1);var w0=n(C1(),1),HM=[{key:"memory",label:"Memory",description:"Persistent recall",icon:KX},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:k7},{key:"files",label:"Files",description:"File storage and management",icon:OX},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:_X},{key:"operator",label:"Operator",description:"Browser automation",icon:BX},{key:"mcp",label:"MCP",description:"External tools/services",icon:Q8},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:UX},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:LX}];function aJ({form:G,providers:H,configuredProviders:_,onFormChange:L,onProviderChange:R,onCreate:N,onClose:M,onGoToSettings:U}){let{projects:I,currentProjectId:y}=u4(),O=H.find((d)=>d.id===G.provider),[F,P]=BY.default.useState([]),[S,E]=BY.default.useState(!1);BY.default.useEffect(()=>{if(G.provider==="ollama")E(!0),fetch("/api/providers/ollama/models").then((d)=>d.json()).then((d)=>{if(d.models&&d.models.length>0){if(P(d.models.map((B0)=>({value:B0.value,label:B0.label||B0.value}))),!G.model&&d.models.length>0)L({...G,model:d.models[0].value})}}).catch(()=>P([])).finally(()=>E(!1))},[G.provider]);let V=_.filter((d)=>d.type==="llm").map((d)=>({value:d.id,label:d.name})),g=G.provider==="ollama"&&F.length>0?F:O?.models.map((d)=>({value:d.value,label:d.label,recommended:d.recommended}))||[],i=I.map((d)=>({value:d.id,label:d.name}));BY.default.useEffect(()=>{if(G.projectId===void 0&&y&&y!=="unassigned")L({...G,projectId:y})},[y]);let s=(d)=>{if(d==="agents")if(typeof G.features.agents==="boolean"?G.features.agents:G.features.agents?.enabled??!1)L({...G,features:{...G.features,agents:!1}});else L({...G,features:{...G.features,agents:{enabled:!0,mode:"worker",group:G.projectId||void 0}}});else L({...G,features:{...G.features,[d]:!G.features[d]}})},p=()=>{let d=G.features.agents;if(typeof d==="boolean")return d;return d?.enabled??!1},a=()=>{return YX(G.features,G.projectId).mode||"worker"},H0=(d)=>{let B0=YX(G.features,G.projectId);L({...G,features:{...G.features,agents:{...B0,enabled:!0,mode:d}}})};return w0.jsxDEV(tH,{children:[w0.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),V.length===0?w0.jsxDEV(KM,{onGoToSettings:U},void 0,!1,void 0,this):w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV("div",{className:"space-y-4",children:[w0.jsxDEV(Qz,{label:"Name",children:w0.jsxDEV("input",{type:"text",value:G.name,onChange:(d)=>L({...G,name:d.target.value}),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 focus:outline-none focus:border-[#f97316] text-[#e0e0e0]",placeholder:"My Agent"},void 0,!1,void 0,this)},void 0,!1,void 0,this),I.length>0&&w0.jsxDEV(Qz,{label:"Project",children:w0.jsxDEV(G8,{value:G.projectId||"",options:i,onChange:(d)=>L({...G,projectId:d||null}),placeholder:"Select project..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),w0.jsxDEV(Qz,{label:"Provider",children:w0.jsxDEV(G8,{value:G.provider,options:V,onChange:R,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),w0.jsxDEV(Qz,{label:"Model",children:S?w0.jsxDEV("div",{className:"text-sm text-[#666] py-2",children:"Loading Ollama models..."},void 0,!1,void 0,this):G.provider==="ollama"&&g.length===0?w0.jsxDEV("div",{className:"text-sm text-yellow-400/80 py-2",children:["No models found. Run ",w0.jsxDEV("code",{className:"bg-[#1a1a1a] px-1 rounded",children:"ollama pull llama3.3"},void 0,!1,void 0,this)," to download a model."]},void 0,!0,void 0,this):w0.jsxDEV(G8,{value:G.model,options:g,onChange:(d)=>L({...G,model:d}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),w0.jsxDEV(Qz,{label:"System Prompt",children:w0.jsxDEV("textarea",{value:G.systemPrompt,onChange:(d)=>L({...G,systemPrompt:d.target.value}),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[#f97316] text-[#e0e0e0]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),w0.jsxDEV(Qz,{label:"Features",children:w0.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:HM.map(({key:d,label:B0,description:c,icon:v0})=>{let C=d==="agents"?p():!!G.features[d];return w0.jsxDEV("button",{type:"button",onClick:()=>s(d),className:`flex items-center gap-3 p-3 rounded border text-left transition ${C?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[w0.jsxDEV(v0,{className:`w-5 h-5 flex-shrink-0 ${C?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"flex-1 min-w-0",children:[w0.jsxDEV("div",{className:`text-sm font-medium ${C?"text-[#f97316]":""}`,children:B0},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"text-xs text-[#666]",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},d,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),p()&&w0.jsxDEV(Qz,{label:"Multi-Agent Mode",children:[w0.jsxDEV("div",{className:"flex gap-2",children:[w0.jsxDEV("button",{type:"button",onClick:()=>H0("coordinator"),className:`flex-1 p-3 rounded border text-left transition ${a()==="coordinator"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[w0.jsxDEV("div",{className:`text-sm font-medium ${a()==="coordinator"?"text-[#f97316]":""}`,children:"Coordinator"},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"text-xs text-[#666]",children:"Orchestrates and delegates"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("button",{type:"button",onClick:()=>H0("worker"),className:`flex-1 p-3 rounded border text-left transition ${a()==="worker"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[w0.jsxDEV("div",{className:`text-sm font-medium ${a()==="worker"?"text-[#f97316]":""}`,children:"Worker"},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"text-xs text-[#666]",children:"Receives delegated tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G.projectId&&w0.jsxDEV("p",{className:"text-xs text-[#555] mt-2",children:"Group: Using project as agent group"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.provider==="anthropic"&&w0.jsxDEV(Qz,{label:"Agent Built-in Tools",children:[w0.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[w0.jsxDEV("button",{type:"button",onClick:()=>L({...G,features:{...G.features,builtinTools:{...G.features.builtinTools,webSearch:!G.features.builtinTools?.webSearch}}}),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${G.features.builtinTools?.webSearch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[w0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w0.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),w0.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("button",{type:"button",onClick:()=>L({...G,features:{...G.features,builtinTools:{...G.features.builtinTools,webFetch:!G.features.builtinTools?.webFetch}}}),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${G.features.builtinTools?.webFetch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[w0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w0.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),w0.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),w0.jsxDEV("p",{className:"text-xs text-[#555] 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),w0.jsxDEV("div",{className:"flex gap-3 mt-6",children:[w0.jsxDEV("button",{onClick:M,className:"flex-1 border border-[#333] hover:border-[#f97316] hover:text-[#f97316] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),w0.jsxDEV("button",{onClick:N,disabled:!G.name,className:"flex-1 bg-[#f97316] hover:bg-[#fb923c] 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 Qz({label:G,children:H}){return w0.jsxDEV("div",{children:[w0.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:G},void 0,!1,void 0,this),H]},void 0,!0,void 0,this)}function KM({onGoToSettings:G}){return w0.jsxDEV("div",{className:"text-center py-6",children:[w0.jsxDEV("p",{className:"text-[#666] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),w0.jsxDEV("button",{onClick:G,className:"bg-[#f97316] hover:bg-[#fb923c] 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 I0=n(e0(),1);var W=n(C1(),1),_M=[{key:"memory",label:"Memory",description:"Persistent recall",icon:KX},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:k7},{key:"files",label:"Files",description:"File storage and management",icon:OX},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:_X},{key:"operator",label:"Operator",description:"Browser automation",icon:BX},{key:"mcp",label:"MCP",description:"External tools/services",icon:Q8},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:UX},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:LX}];function oJ({agent:G,providers:H,onClose:_,onStartAgent:L,onUpdateAgent:R,onDeleteAgent:N}){let[M,U]=I0.useState("chat");return W.jsxDEV("div",{className:"w-full h-full flex flex-col overflow-hidden bg-[#0a0a0a] border-l border-[#1a1a1a]",children:[W.jsxDEV("div",{className:"border-b border-[#1a1a1a] flex items-center",children:[W.jsxDEV("div",{className:"flex-1 overflow-x-auto scrollbar-hide px-2 md:px-4",children:W.jsxDEV("div",{className:"flex gap-1",children:[W.jsxDEV(WX,{active:M==="chat",onClick:()=>U("chat"),children:"Chat"},void 0,!1,void 0,this),W.jsxDEV(WX,{active:M==="threads",onClick:()=>U("threads"),children:"Threads"},void 0,!1,void 0,this),W.jsxDEV(WX,{active:M==="tasks",onClick:()=>U("tasks"),children:"Tasks"},void 0,!1,void 0,this),W.jsxDEV(WX,{active:M==="memory",onClick:()=>U("memory"),children:"Memory"},void 0,!1,void 0,this),W.jsxDEV(WX,{active:M==="files",onClick:()=>U("files"),children:"Files"},void 0,!1,void 0,this),W.jsxDEV(WX,{active:M==="settings",onClick:()=>U("settings"),children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),W.jsxDEV("button",{onClick:_,className:"text-[#666] hover:text-[#e0e0e0] transition p-2 flex-shrink-0 mr-2",children:W.jsxDEV(nz,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[M==="chat"&&W.jsxDEV(BM,{agent:G,onStartAgent:L},void 0,!1,void 0,this),M==="threads"&&W.jsxDEV(UM,{agent:G},void 0,!1,void 0,this),M==="tasks"&&W.jsxDEV(OM,{agent:G},void 0,!1,void 0,this),M==="memory"&&W.jsxDEV(LM,{agent:G},void 0,!1,void 0,this),M==="files"&&W.jsxDEV(WM,{agent:G},void 0,!1,void 0,this),M==="settings"&&W.jsxDEV(RM,{agent:G,providers:H,onUpdateAgent:R,onDeleteAgent:N},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function WX({active:G,onClick:H,children:_}){return W.jsxDEV("button",{onClick:H,className:`px-4 py-3 text-sm font-medium border-b-2 transition ${G?"border-[#f97316] text-[#e0e0e0]":"border-transparent text-[#666] hover:text-[#888]"}`,children:_},void 0,!1,void 0,this)}function BM({agent:G,onStartAgent:H}){if(G.status==="running"&&G.port)return W.jsxDEV(GY,{agentId:"default",apiUrl:`/api/agents/${G.id}`,placeholder:"Message this agent...",context:G.systemPrompt,variant:"terminal",headerTitle:G.name},void 0,!1,void 0,this);return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("div",{className:"text-center",children:[W.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),W.jsxDEV("button",{onClick:H,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 UM({agent:G}){let[H,_]=I0.useState([]),[L,R]=I0.useState(!0),[N,M]=I0.useState(null),[U,I]=I0.useState(null),[y,O]=I0.useState([]),[F,P]=I0.useState(!1),{confirm:S,ConfirmDialog:E}=iJ();I0.useEffect(()=>{_([]),I(null),M(null),R(!0)},[G.id]),I0.useEffect(()=>{if(G.status!=="running"){R(!1);return}(async()=>{try{let s=await fetch(`/api/agents/${G.id}/threads`);if(!s.ok)throw Error("Failed to fetch threads");let p=await s.json();_(p.threads||[]),M(null)}catch(s){M(s instanceof Error?s.message:"Failed to load threads")}finally{R(!1)}})()},[G.id,G.status]);let V=async(i)=>{P(!0),I(i);try{let s=await fetch(`/api/agents/${G.id}/threads/${i}/messages`);if(s.ok){let p=await s.json();O(z2(p.messages||[]))}else O([])}catch{O([])}P(!1)},g=async(i,s)=>{if(s.stopPropagation(),!await S("Delete this thread?",{confirmText:"Delete",title:"Delete Thread"}))return;try{if(await fetch(`/api/agents/${G.id}/threads/${i}`,{method:"DELETE"}),_((a)=>a.filter((H0)=>H0.id!==i)),U===i)I(null)}catch{}};if(G.status!=="running")return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("p",{children:"Start the agent to view threads"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(L)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("p",{children:"Loading threads..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:W.jsxDEV("p",{children:N},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(U)return W.jsxDEV(W.Fragment,{children:[E,W.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:F?W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:"Loading messages..."},void 0,!1,void 0,this):W.jsxDEV(GY,{agentId:"default",apiUrl:`/api/agents/${G.id}`,threadId:U,initialMessages:y,placeholder:"Continue this conversation...",context:G.systemPrompt,variant:"terminal",showHeader:!0,onHeaderBack:()=>{I(null),O([])}},U,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return W.jsxDEV(W.Fragment,{children:[E,W.jsxDEV("div",{className:"flex-1 overflow-auto",children:H.length===0?W.jsxDEV("div",{className:"flex items-center justify-center h-full text-[#666]",children:W.jsxDEV("p",{children:"No conversation threads yet"},void 0,!1,void 0,this)},void 0,!1,void 0,this):W.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:H.map((i)=>W.jsxDEV("div",{onClick:()=>V(i.id),className:"p-4 cursor-pointer hover:bg-[#111] transition flex items-center justify-between",children:[W.jsxDEV("div",{className:"flex-1 min-w-0",children:[W.jsxDEV("p",{className:"text-sm font-medium truncate",children:i.title||`Thread ${i.id.slice(0,8)}`},void 0,!1,void 0,this),W.jsxDEV("p",{className:"text-xs text-[#666] mt-1",children:[new Date(i.updated_at||i.created_at).toLocaleString(),i.message_count!==void 0&&` • ${i.message_count} messages`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("button",{onClick:(s)=>g(i.id,s),className:"text-[#666] hover:text-red-400 text-lg ml-4",children:"×"},void 0,!1,void 0,this)]},i.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function OM({agent:G}){let{authFetch:H}=c1(),[_,L]=I0.useState([]),[R,N]=I0.useState(!0),[M,U]=I0.useState(null),[I,y]=I0.useState("all"),[O,F]=I0.useState(null),[P,S]=I0.useState(!1),{events:E}=S2({agent_id:G.id,category:"task"});I0.useEffect(()=>{L([]),U(null),N(!0),F(null)},[G.id]);let V=async()=>{if(G.status!=="running"){N(!1);return}try{let p=await fetch(`/api/agents/${G.id}/tasks?status=${I}`);if(!p.ok)throw Error("Failed to fetch tasks");let a=await p.json();L(a.tasks||[]),U(null)}catch(p){U(p instanceof Error?p.message:"Failed to load tasks")}finally{N(!1)}},g=async(p)=>{F(p),S(!0);try{let a=await H(`/api/tasks/${p.agentId||G.id}/${p.id}`);if(a.ok){let H0=await a.json();if(H0.task)F({...H0.task,agentId:p.agentId||G.id,agentName:p.agentName||G.name})}}catch(a){console.error("Failed to fetch task details:",a)}finally{S(!1)}};I0.useEffect(()=>{N(!0),V()},[G.id,G.status,I,E.length]);let i={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(G.status!=="running")return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("p",{children:"Start the agent to view tasks"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!G.features?.tasks)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("div",{className:"text-center",children:[W.jsxDEV("p",{className:"mb-2",children:"Tasks feature is not enabled"},void 0,!1,void 0,this),W.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(R)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("p",{children:"Loading tasks..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(M)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:W.jsxDEV("p",{children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this);let s=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}];if(O)return W.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:[W.jsxDEV("div",{className:"px-4 pt-3 pb-2 border-b border-[#1a1a1a] shrink-0",children:W.jsxDEV("button",{onClick:()=>F(null),className:"text-sm text-[#666] hover:text-[#e0e0e0] transition flex items-center gap-1",children:[W.jsxDEV("span",{children:"←"},void 0,!1,void 0,this)," Back to tasks"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),W.jsxDEV("div",{className:"flex-1 overflow-auto p-4 space-y-4",children:[W.jsxDEV("div",{children:W.jsxDEV("div",{className:"flex items-start justify-between gap-2 mb-1",children:[W.jsxDEV("h3",{className:"text-lg font-medium",children:O.title},void 0,!1,void 0,this),W.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium flex-shrink-0 ${i[O.status]}`,children:O.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),O.description&&W.jsxDEV("div",{children:[W.jsxDEV("h4",{className:"text-xs text-[#666] uppercase tracking-wider mb-1",children:"Description"},void 0,!1,void 0,this),W.jsxDEV("p",{className:"text-sm text-[#888] whitespace-pre-wrap",children:O.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[W.jsxDEV("div",{children:[W.jsxDEV("span",{className:"text-[#666]",children:"Type"},void 0,!1,void 0,this),W.jsxDEV("p",{className:"capitalize",children:O.type},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{children:[W.jsxDEV("span",{className:"text-[#666]",children:"Priority"},void 0,!1,void 0,this),W.jsxDEV("p",{children:O.priority},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O.recurrence&&W.jsxDEV("div",{children:[W.jsxDEV("span",{className:"text-[#666]",children:"Recurrence"},void 0,!1,void 0,this),W.jsxDEV("p",{children:sH(O.recurrence)},void 0,!1,void 0,this),W.jsxDEV("p",{className:"text-xs text-[#444] mt-0.5 font-mono",children:O.recurrence},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"space-y-2 text-sm",children:[W.jsxDEV("div",{className:"flex justify-between",children:[W.jsxDEV("span",{className:"text-[#666]",children:"Created"},void 0,!1,void 0,this),W.jsxDEV("span",{children:new Date(O.created_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O.execute_at&&W.jsxDEV("div",{className:"flex justify-between",children:[W.jsxDEV("span",{className:"text-[#666]",children:"Scheduled"},void 0,!1,void 0,this),W.jsxDEV("span",{className:"text-[#f97316]",children:UY(O.execute_at)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O.executed_at&&W.jsxDEV("div",{className:"flex justify-between",children:[W.jsxDEV("span",{className:"text-[#666]",children:"Started"},void 0,!1,void 0,this),W.jsxDEV("span",{children:new Date(O.executed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O.completed_at&&W.jsxDEV("div",{className:"flex justify-between",children:[W.jsxDEV("span",{className:"text-[#666]",children:"Completed"},void 0,!1,void 0,this),W.jsxDEV("span",{children:new Date(O.completed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O.next_run&&W.jsxDEV("div",{className:"flex justify-between",children:[W.jsxDEV("span",{className:"text-[#666]",children:"Next Run"},void 0,!1,void 0,this),W.jsxDEV("span",{className:"text-[#f97316]",children:UY(O.next_run)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),O.status==="failed"&&O.error&&W.jsxDEV("div",{className:"min-w-0",children:[W.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),W.jsxDEV("div",{className:"bg-red-500/10 border border-red-500/20 rounded p-3 overflow-x-auto",children:W.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:O.error},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O.status==="completed"&&O.result&&W.jsxDEV("div",{className:"min-w-0",children:[W.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),W.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/20 rounded p-3 overflow-x-auto",children:W.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof O.result==="string"?O.result:JSON.stringify(O.result,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P&&!O.trajectory&&W.jsxDEV("div",{children:[W.jsxDEV("h4",{className:"text-xs text-[#666] uppercase tracking-wider mb-2",children:"Trajectory"},void 0,!1,void 0,this),W.jsxDEV("div",{className:"text-sm text-[#555]",children:"Loading trajectory..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O.trajectory&&O.trajectory.length>0&&W.jsxDEV("div",{children:[W.jsxDEV("h4",{className:"text-xs text-[#666] uppercase tracking-wider mb-2",children:["Trajectory (",O.trajectory.length," steps)"]},void 0,!0,void 0,this),W.jsxDEV(m2,{trajectory:O.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 W.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[W.jsxDEV("div",{className:"flex gap-2 mb-4",children:s.map((p)=>W.jsxDEV("button",{onClick:()=>y(p.value),className:`px-3 py-1.5 rounded text-sm transition ${I===p.value?"bg-[#f97316] text-black":"bg-[#1a1a1a] hover:bg-[#222]"}`,children:p.label},p.value,!1,void 0,this))},void 0,!1,void 0,this),_.length===0?W.jsxDEV("div",{className:"text-center py-10",children:[W.jsxDEV(k7,{className:"w-10 h-10 mx-auto mb-3 text-[#333]"},void 0,!1,void 0,this),W.jsxDEV("p",{className:"text-[#666]",children:["No ",I==="all"?"":I+" ","tasks"]},void 0,!0,void 0,this),W.jsxDEV("p",{className:"text-sm text-[#444] mt-1",children:"Tasks will appear here when created"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):W.jsxDEV("div",{className:"space-y-3",children:_.map((p)=>W.jsxDEV("div",{onClick:()=>g(p),className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-4 cursor-pointer hover:border-[#333] transition",children:[W.jsxDEV("div",{className:"flex items-start justify-between mb-2",children:[W.jsxDEV("div",{className:"flex-1 min-w-0",children:W.jsxDEV("h3",{className:"font-medium",children:p.title||p.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),W.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ml-2 ${i[p.status]||i.pending}`,children:p.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p.description&&W.jsxDEV("p",{className:"text-sm text-[#888] mb-2 line-clamp-2",children:p.description},void 0,!1,void 0,this),W.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-[#555]",children:[W.jsxDEV("span",{className:"flex items-center gap-1",children:[p.type==="recurring"?W.jsxDEV(D2,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):p.execute_at?W.jsxDEV(E2,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):W.jsxDEV(f2,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this),p.type==="recurring"&&p.recurrence?sH(p.recurrence):p.type||"once"]},void 0,!0,void 0,this),p.priority!==void 0&&W.jsxDEV("span",{children:["Priority: ",p.priority]},void 0,!0,void 0,this),p.next_run&&W.jsxDEV("span",{className:"text-[#f97316]",children:UY(p.next_run)},void 0,!1,void 0,this),!p.next_run&&p.execute_at&&W.jsxDEV("span",{className:"text-[#f97316]",children:UY(p.execute_at)},void 0,!1,void 0,this),W.jsxDEV("span",{children:["Created: ",new Date(p.created_at).toLocaleDateString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p.status==="completed"&&p.result&&W.jsxDEV("div",{className:"mt-3 bg-green-500/10 border border-green-500/20 rounded p-3",children:[W.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),W.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof p.result==="string"?p.result:JSON.stringify(p.result,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p.status==="failed"&&p.error&&W.jsxDEV("div",{className:"mt-3 bg-red-500/10 border border-red-500/20 rounded p-3",children:[W.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),W.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:p.error},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},p.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function LM({agent:G}){let[H,_]=I0.useState([]),[L,R]=I0.useState(!0),[N,M]=I0.useState(null),[U,I]=I0.useState(!1),{confirm:y,ConfirmDialog:O}=iJ();I0.useEffect(()=>{_([]),M(null),R(!0)},[G.id]);let F=async()=>{if(G.status!=="running"){R(!1);return}try{let E=await fetch(`/api/agents/${G.id}/memories`);if(!E.ok)throw Error("Failed to fetch memories");let V=await E.json();_(V.memories||[]),I(V.enabled??!1),M(null)}catch(E){M(E instanceof Error?E.message:"Failed to load memories")}finally{R(!1)}};I0.useEffect(()=>{F()},[G.id,G.status]);let P=async(E)=>{try{await fetch(`/api/agents/${G.id}/memories/${E}`,{method:"DELETE"}),_((V)=>V.filter((g)=>g.id!==E))}catch{}},S=async()=>{if(!await y("Clear all memories?",{confirmText:"Clear",title:"Clear Memories"}))return;try{await fetch(`/api/agents/${G.id}/memories`,{method:"DELETE"}),_([])}catch{}};if(!G.features?.memory)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("div",{className:"text-center",children:[W.jsxDEV("p",{className:"mb-2",children:"Memory feature is not enabled"},void 0,!1,void 0,this),W.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(G.status!=="running")return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("p",{children:"Start the agent to view memories"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(L)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("p",{children:"Loading memories..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:W.jsxDEV("p",{children:N},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!U)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("div",{className:"text-center",children:[W.jsxDEV("p",{className:"mb-2",children:"Memory system not initialized"},void 0,!1,void 0,this),W.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 W.jsxDEV(W.Fragment,{children:[O,W.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[W.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[W.jsxDEV("h3",{className:"text-sm font-medium text-[#888]",children:["Stored Memories (",H.length,")"]},void 0,!0,void 0,this),H.length>0&&W.jsxDEV("button",{onClick:S,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),H.length===0?W.jsxDEV("div",{className:"text-center py-10 text-[#666]",children:[W.jsxDEV("p",{children:"No memories stored yet"},void 0,!1,void 0,this),W.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):W.jsxDEV("div",{className:"space-y-3",children:H.map((E)=>W.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded p-3",children:[W.jsxDEV("div",{className:"flex items-start justify-between gap-2",children:[W.jsxDEV("p",{className:"text-sm text-[#e0e0e0] flex-1",children:E.content},void 0,!1,void 0,this),W.jsxDEV("button",{onClick:()=>P(E.id),className:"text-[#666] hover:text-red-400 text-sm flex-shrink-0",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"flex items-center gap-3 mt-2",children:[W.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${E.type==="preference"?"bg-purple-500/20 text-purple-400":E.type==="fact"?"bg-green-500/20 text-green-400":"bg-blue-500/20 text-blue-400"}`,children:E.type},void 0,!1,void 0,this),W.jsxDEV("span",{className:"text-xs text-[#666]",children:new Date(E.created_at).toLocaleString()},void 0,!1,void 0,this),E.importance&&W.jsxDEV("span",{className:"text-xs text-[#555]",children:["importance: ",E.importance.toFixed(1)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},E.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function WM({agent:G}){let[H,_]=I0.useState([]),[L,R]=I0.useState(!0),[N,M]=I0.useState(null),[U,I]=I0.useState(!1),[y,O]=I0.useState(null),[F,P]=I0.useState(!1),S=I0.default.useRef(null),{confirm:E,ConfirmDialog:V}=iJ();I0.useEffect(()=>{_([]),M(null),R(!0)},[G.id]);let g=async()=>{if(G.status!=="running"){R(!1);return}try{let C=await fetch(`/api/agents/${G.id}/files`);if(!C.ok)throw Error("Failed to fetch files");let e=await C.json();_(e.files||[]),M(null)}catch(C){M(C instanceof Error?C.message:"Failed to load files")}finally{R(!1)}};I0.useEffect(()=>{g()},[G.id,G.status]);let i=async(C)=>{if(!await E("Delete this file?",{confirmText:"Delete",title:"Delete File"}))return;try{await fetch(`/api/agents/${G.id}/files/${C}`,{method:"DELETE"}),_((l)=>l.filter((u)=>u.id!==C))}catch{}},s=(C,e)=>{let l=document.createElement("a");l.href=`/api/agents/${G.id}/files/${C}/download`,l.download=e,l.click()},p=(C)=>{if(C<1024)return`${C} B`;if(C<1048576)return`${(C/1024).toFixed(1)} KB`;return`${(C/1048576).toFixed(1)} MB`},a=async(C)=>{I(!0),O(null);try{let e=new FormData;e.append("file",C);let l=await fetch(`/api/agents/${G.id}/files`,{method:"POST",body:e});if(!l.ok){let u=await l.json();throw Error(u.error||"Upload failed")}await g()}catch(e){O(e instanceof Error?e.message:"Upload failed")}finally{I(!1)}},H0=(C)=>{let e=C.target.files?.[0];if(e)a(e);C.target.value=""},d=(C)=>{C.preventDefault(),P(!1);let e=C.dataTransfer.files?.[0];if(e)a(e)},B0=(C)=>{C.preventDefault(),P(!0)},c=(C)=>{C.preventDefault(),P(!1)},v0=(C)=>{if(C.startsWith("image/"))return"\uD83D\uDDBC";if(C.includes("pdf"))return"\uD83D\uDCD5";if(C.includes("json"))return"{}";if(C.includes("javascript")||C.includes("typescript"))return"⚡";if(C.startsWith("text/"))return"\uD83D\uDCC4";if(C.startsWith("audio/"))return"\uD83C\uDFB5";if(C.startsWith("video/"))return"\uD83C\uDFAC";return"\uD83D\uDCC1"};if(!G.features?.files)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("div",{className:"text-center",children:[W.jsxDEV("p",{className:"mb-2",children:"Files feature is not enabled"},void 0,!1,void 0,this),W.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(G.status!=="running")return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("p",{children:"Start the agent to view files"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(L)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:W.jsxDEV("p",{children:"Loading files..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return W.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:W.jsxDEV("p",{children:N},void 0,!1,void 0,this)},void 0,!1,void 0,this);return W.jsxDEV(W.Fragment,{children:[V,W.jsxDEV("div",{className:`flex-1 overflow-auto p-4 transition ${F?"bg-[#f97316]/5":""}`,onDrop:d,onDragOver:B0,onDragLeave:c,children:[W.jsxDEV("input",{ref:S,type:"file",className:"hidden",onChange:H0},void 0,!1,void 0,this),W.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[W.jsxDEV("h3",{className:"text-sm font-medium text-[#888]",children:["Agent Files (",H.length,")"]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"flex items-center gap-2",children:[W.jsxDEV("button",{onClick:()=>S.current?.click(),disabled:U,className:"text-xs bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-black px-3 py-1 rounded font-medium transition",children:U?"Uploading...":"Upload"},void 0,!1,void 0,this),W.jsxDEV("button",{onClick:g,className:"text-xs text-[#666] hover:text-[#888]",children:"Refresh"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y&&W.jsxDEV("div",{className:"mb-4 text-sm bg-red-500/10 text-red-400 px-3 py-2 rounded",children:y},void 0,!1,void 0,this),F&&W.jsxDEV("div",{className:"mb-4 border-2 border-dashed border-[#f97316] rounded-lg p-8 text-center",children:W.jsxDEV("p",{className:"text-[#f97316]",children:"Drop file to upload"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.length===0&&!F&&W.jsxDEV("div",{className:"text-center py-10 text-[#666]",children:[W.jsxDEV("p",{children:"No files stored yet"},void 0,!1,void 0,this),W.jsxDEV("p",{className:"text-sm mt-1",children:"Drop files here, click Upload, or attach files in Chat"},void 0,!1,void 0,this),G.features?.memory&&W.jsxDEV("p",{className:"text-xs mt-2 text-[#555]",children:"Files will be auto-ingested into memory"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.length>0&&W.jsxDEV("div",{className:"space-y-2",children:H.map((C)=>W.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded p-3 flex items-center gap-3",children:[W.jsxDEV("div",{className:"w-10 h-10 bg-[#1a1a1a] rounded flex items-center justify-center text-[#666]",children:v0(C.mime_type)},void 0,!1,void 0,this),W.jsxDEV("div",{className:"flex-1 min-w-0",children:[W.jsxDEV("p",{className:"text-sm text-[#e0e0e0] truncate",children:C.filename},void 0,!1,void 0,this),W.jsxDEV("p",{className:"text-xs text-[#666]",children:[p(C.size_bytes)," • ",new Date(C.created_at).toLocaleString(),C.source&&C.source!=="upload"&&` • ${C.source}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"flex items-center gap-2",children:[W.jsxDEV("button",{onClick:()=>s(C.id,C.filename),className:"text-xs text-[#666] hover:text-[#f97316] px-2 py-1",children:"↓"},void 0,!1,void 0,this),W.jsxDEV("button",{onClick:()=>i(C.id),className:"text-[#666] hover:text-red-400 text-sm",children:"×"},void 0,!1,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 RM({agent:G,providers:H,onUpdateAgent:_,onDeleteAgent:L}){let{authFetch:R,isDev:N}=c1(),[M,U]=I0.useState({name:G.name,provider:G.provider,model:G.model,systemPrompt:G.systemPrompt,features:{...G.features,builtinTools:G.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...G.mcpServers||[]],skills:[...G.skills||[]]}),[I,y]=I0.useState(!1),[O,F]=I0.useState(!1),[P,S]=I0.useState(null),[E,V]=I0.useState([]),[g,i]=I0.useState([]),[s,p]=I0.useState(null),[a,H0]=I0.useState(null),[d,B0]=I0.useState(!1),[c,v0]=I0.useState([]);I0.useEffect(()=>{R(`/api/subscriptions?agent_id=${G.id}`).then((f)=>f.ok?f.json():{subscriptions:[]}).then((f)=>v0(f.subscriptions||[])).catch(()=>{})},[G.id,R]),I0.useEffect(()=>{(async()=>{try{let i0=await(await R("/api/mcp/servers")).json();V(i0.servers||[])}catch(Y0){console.error("Failed to fetch MCP servers:",Y0)}})()},[R]),I0.useEffect(()=>{(async()=>{try{let Y0=await R(`/api/agents/${G.id}/api-key`);if(Y0.ok){let i0=await Y0.json();p(i0.apiKey),H0(i0.fullKey||null)}}catch(Y0){}})()},[G.id,R]),I0.useEffect(()=>{(async()=>{try{let i0=await(await R("/api/skills")).json();i(i0.skills||[])}catch(Y0){console.error("Failed to fetch skills:",Y0)}})()},[R]),I0.useEffect(()=>{U({name:G.name,provider:G.provider,model:G.model,systemPrompt:G.systemPrompt,features:{...G.features,builtinTools:G.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...G.mcpServers||[]],skills:[...G.skills||[]]}),S(null)},[G.id]);let C=H.find((f)=>f.id===M.provider),e=H.filter((f)=>f.hasKey&&f.type==="llm").map((f)=>({value:f.id,label:f.name})),l=C?.models.map((f)=>({value:f.value,label:f.label,recommended:f.recommended}))||[],u=(f)=>{let Y0=H.find((U1)=>U1.id===f),i0=Y0?.models.find((U1)=>U1.recommended)?.value||Y0?.models[0]?.value||"";U((U1)=>({...U1,provider:f,model:i0}))},q0=(f)=>{if(f==="agents")U((Y0)=>{if(typeof Y0.features.agents==="boolean"?Y0.features.agents:Y0.features.agents?.enabled??!1)return{...Y0,features:{...Y0.features,agents:!1}};else return{...Y0,features:{...Y0.features,agents:{enabled:!0,mode:"worker",group:G.projectId||void 0}}}});else if(f==="operator")U((Y0)=>{if(XY(Y0.features).enabled)return{...Y0,features:{...Y0.features,operator:!1}};else return{...Y0,features:{...Y0.features,operator:{enabled:!0}}}});else U((Y0)=>({...Y0,features:{...Y0.features,[f]:!Y0.features[f]}}))},t=(f)=>{U((Y0)=>{let i0=YX(Y0.features,G.projectId);return{...Y0,features:{...Y0.features,agents:{...i0,enabled:!0,mode:f}}}})},Z0=()=>{let f=M.features.agents;if(typeof f==="boolean")return f;return f?.enabled??!1},K0=()=>{return YX(M.features,G.projectId).mode||"worker"},h0=()=>{return XY(M.features).enabled},f0=()=>{return XY(M.features)},m=H.filter((f)=>f.type==="browser"&&f.hasKey),Q0=(f)=>{U((Y0)=>{let i0=XY(Y0.features);return{...Y0,features:{...Y0.features,operator:{...i0,enabled:!0,browser_provider:f}}}})},k0=(f)=>{U((Y0)=>({...Y0,mcpServers:Y0.mcpServers.includes(f)?Y0.mcpServers.filter((i0)=>i0!==f):[...Y0.mcpServers,f]}))},D0=(f)=>{U((Y0)=>({...Y0,skills:Y0.skills.includes(f)?Y0.skills.filter((i0)=>i0!==f):[...Y0.skills,f]}))},r0=async()=>{y(!0),S(null);let f=await _(M);if(y(!1),f.error)S({type:"error",text:f.error});else S({type:"success",text:"Settings saved"}),setTimeout(()=>S(null),2000)},G4=M.name!==G.name||M.provider!==G.provider||M.model!==G.model||M.systemPrompt!==G.systemPrompt||JSON.stringify(M.features)!==JSON.stringify(G.features)||JSON.stringify(M.mcpServers.sort())!==JSON.stringify((G.mcpServers||[]).sort())||JSON.stringify(M.skills.sort())!==JSON.stringify((G.skills||[]).sort());return W.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:W.jsxDEV("div",{className:"space-y-4",children:[W.jsxDEV(y7,{label:"Name",children:W.jsxDEV("input",{type:"text",value:M.name,onChange:(f)=>U((Y0)=>({...Y0,name:f.target.value})),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 focus:outline-none focus:border-[#f97316] text-[#e0e0e0]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),W.jsxDEV(y7,{label:"Provider",children:W.jsxDEV(G8,{value:M.provider,options:e,onChange:u},void 0,!1,void 0,this)},void 0,!1,void 0,this),W.jsxDEV(y7,{label:"Model",children:W.jsxDEV(G8,{value:M.model,options:l,onChange:(f)=>U((Y0)=>({...Y0,model:f}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),W.jsxDEV(y7,{label:"System Prompt",children:W.jsxDEV("textarea",{value:M.systemPrompt,onChange:(f)=>U((Y0)=>({...Y0,systemPrompt:f.target.value})),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[#f97316] text-[#e0e0e0]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),W.jsxDEV(y7,{label:"Features",children:W.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:_M.map(({key:f,label:Y0,description:i0,icon:U1})=>{let O6=f==="agents"?Z0():f==="operator"?h0():!!M.features[f];return W.jsxDEV("button",{type:"button",onClick:()=>q0(f),className:`flex items-center gap-3 p-3 rounded border text-left transition ${O6?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[W.jsxDEV(U1,{className:`w-5 h-5 flex-shrink-0 ${O6?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),W.jsxDEV("div",{className:"flex-1 min-w-0",children:[W.jsxDEV("div",{className:`text-sm font-medium ${O6?"text-[#f97316]":""}`,children:Y0},void 0,!1,void 0,this),W.jsxDEV("div",{className:"text-xs text-[#666]",children:i0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},f,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z0()&&W.jsxDEV(y7,{label:"Multi-Agent Mode",children:[W.jsxDEV("div",{className:"flex gap-2",children:[W.jsxDEV("button",{type:"button",onClick:()=>t("coordinator"),className:`flex-1 p-3 rounded border text-left transition ${K0()==="coordinator"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[W.jsxDEV("div",{className:`text-sm font-medium ${K0()==="coordinator"?"text-[#f97316]":""}`,children:"Coordinator"},void 0,!1,void 0,this),W.jsxDEV("div",{className:"text-xs text-[#666]",children:"Orchestrates and delegates to other agents"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("button",{type:"button",onClick:()=>t("worker"),className:`flex-1 p-3 rounded border text-left transition ${K0()==="worker"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[W.jsxDEV("div",{className:`text-sm font-medium ${K0()==="worker"?"text-[#f97316]":""}`,children:"Worker"},void 0,!1,void 0,this),W.jsxDEV("div",{className:"text-xs text-[#666]",children:"Receives tasks from coordinators"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G.projectId&&W.jsxDEV("p",{className:"text-xs text-[#555] mt-2",children:"Group: Using project as agent group"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h0()&&W.jsxDEV(y7,{label:"Browser Provider",children:m.length>0?W.jsxDEV(G8,{value:f0().browser_provider||"",options:[{value:"",label:"Auto (first available)"},...m.map((f)=>({value:f.id,label:f.name}))],onChange:(f)=>Q0(f)},void 0,!1,void 0,this):W.jsxDEV("p",{className:"text-sm text-[#666] p-3 border border-[#222] rounded bg-[#0a0a0a]",children:"No browser providers configured. Go to Settings → Providers to add one."},void 0,!1,void 0,this)},void 0,!1,void 0,this),M.provider==="anthropic"&&W.jsxDEV(y7,{label:"Agent Built-in Tools",children:[W.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[W.jsxDEV("button",{type:"button",onClick:()=>U((f)=>({...f,features:{...f.features,builtinTools:{...f.features.builtinTools,webSearch:!f.features.builtinTools?.webSearch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${M.features.builtinTools?.webSearch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[W.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:W.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),W.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("button",{type:"button",onClick:()=>U((f)=>({...f,features:{...f.features,builtinTools:{...f.features.builtinTools,webFetch:!f.features.builtinTools?.webFetch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${M.features.builtinTools?.webFetch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[W.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:W.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),W.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),W.jsxDEV("p",{className:"text-xs text-[#555] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M.features.mcp&&W.jsxDEV(y7,{label:"MCP Servers",children:E.length===0?W.jsxDEV("p",{className:"text-sm text-[#666]",children:"No MCP servers configured. Add servers in the MCP page first."},void 0,!1,void 0,this):W.jsxDEV("div",{className:"space-y-2",children:[E.filter((f)=>f.project_id===null||f.project_id===G.projectId).map((f)=>{let Y0=f.type==="http"&&f.url,i0=Y0||f.status==="running",U1=Y0?`${f.source||"remote"} • http`:`${f.type} • ${f.package||f.command||"custom"}${f.status==="running"&&f.port?` • :${f.port}`:""}`;return W.jsxDEV("button",{type:"button",onClick:()=>k0(f.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${M.mcpServers.includes(f.id)?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[W.jsxDEV("div",{className:`w-2 h-2 rounded-full flex-shrink-0 ${i0?"bg-green-400":"bg-[#444]"}`},void 0,!1,void 0,this),W.jsxDEV("div",{className:"flex-1 min-w-0",children:[W.jsxDEV("div",{className:"flex items-center gap-2",children:[W.jsxDEV("span",{className:`text-sm font-medium ${M.mcpServers.includes(f.id)?"text-[#f97316]":""}`,children:f.name},void 0,!1,void 0,this),f.project_id===null&&W.jsxDEV("span",{className:"text-[10px] text-[#666] bg-[#1a1a1a] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"text-xs text-[#666]",children:U1},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:`text-xs px-2 py-0.5 rounded ${i0?"bg-green-500/20 text-green-400":"bg-[#222] text-[#666]"}`,children:Y0?"remote":f.status},void 0,!1,void 0,this)]},f.id,!0,void 0,this)}),W.jsxDEV("p",{className:"text-xs text-[#666] 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),W.jsxDEV(y7,{label:"Skills",children:g.length===0?W.jsxDEV("p",{className:"text-sm text-[#666]",children:"No skills configured. Add skills in the Skills page first."},void 0,!1,void 0,this):W.jsxDEV("div",{className:"space-y-2",children:[g.filter((f)=>f.enabled&&(f.project_id===null||f.project_id===G.projectId)).map((f)=>W.jsxDEV("button",{type:"button",onClick:()=>D0(f.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${M.skills.includes(f.id)?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[W.jsxDEV("div",{className:"flex-1 min-w-0",children:[W.jsxDEV("div",{className:"flex items-center gap-2",children:[W.jsxDEV("span",{className:`text-sm font-medium ${M.skills.includes(f.id)?"text-[#f97316]":""}`,children:f.name},void 0,!1,void 0,this),f.project_id===null&&W.jsxDEV("span",{className:"text-[10px] text-[#666] bg-[#1a1a1a] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"text-xs text-[#666]",children:f.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"text-xs px-2 py-0.5 rounded bg-[#222] text-[#666]",children:["v",f.version]},void 0,!0,void 0,this)]},f.id,!0,void 0,this)),W.jsxDEV("p",{className:"text-xs text-[#666] 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),P&&W.jsxDEV("div",{className:`text-sm px-3 py-2 rounded ${P.type==="success"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"}`,children:P.text},void 0,!1,void 0,this),W.jsxDEV("button",{onClick:r0,disabled:!G4||I||!M.name,className:"w-full bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:I?"Saving...":"Save Changes"},void 0,!1,void 0,this),G.status==="running"&&G4&&W.jsxDEV("p",{className:"text-xs text-[#666] text-center",children:"Changes will be applied to the running agent"},void 0,!1,void 0,this),W.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[W.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Subscriptions"},void 0,!1,void 0,this),c.length===0?W.jsxDEV("p",{className:"text-xs text-[#555]",children:"No subscriptions. Set up triggers in Connections to have this agent listen to external events."},void 0,!1,void 0,this):W.jsxDEV("div",{className:"space-y-2",children:c.map((f)=>W.jsxDEV("div",{className:"flex items-center gap-2 px-3 py-2 bg-[#111] rounded border border-[#1a1a1a]",children:[W.jsxDEV("span",{className:`w-2 h-2 rounded-full shrink-0 ${f.enabled?"bg-cyan-400":"bg-[#444]"}`},void 0,!1,void 0,this),W.jsxDEV("span",{className:`text-sm flex-1 ${f.enabled?"text-cyan-400":"text-[#666]"}`,children:f.trigger_slug.replace(/_/g," ")},void 0,!1,void 0,this),W.jsxDEV("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${f.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[#222] text-[#555]"}`,children:f.enabled?"active":"disabled"},void 0,!1,void 0,this)]},f.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&W.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[W.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Developer Info"},void 0,!1,void 0,this),W.jsxDEV("div",{className:"space-y-2",children:[W.jsxDEV("div",{className:"flex items-center justify-between",children:[W.jsxDEV("span",{className:"text-xs text-[#666]",children:"Agent ID"},void 0,!1,void 0,this),W.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1 rounded text-[#888]",children:G.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"flex items-center justify-between",children:[W.jsxDEV("span",{className:"text-xs text-[#666]",children:"Port"},void 0,!1,void 0,this),W.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1 rounded text-[#888]",children:G.port||"N/A"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("div",{className:"flex flex-col gap-1",children:[W.jsxDEV("div",{className:"flex items-center justify-between",children:[W.jsxDEV("span",{className:"text-xs text-[#666]",children:"API Key"},void 0,!1,void 0,this),W.jsxDEV("button",{onClick:()=>B0(!d),className:"text-xs text-[#f97316] hover:text-[#fb923c]",children:d?"Hide":"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1 rounded text-[#888] break-all",children:d?a||s:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.status==="running"&&G.port&&W.jsxDEV("div",{className:"flex flex-col gap-1 mt-2",children:[W.jsxDEV("span",{className:"text-xs text-[#666]",children:"Test with curl"},void 0,!1,void 0,this),W.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1.5 rounded text-[#666] break-all",children:['curl -H "X-API-Key: ',d?a||s:"***",'" http://localhost:',G.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),W.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[W.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Danger Zone"},void 0,!1,void 0,this),O?W.jsxDEV("div",{className:"flex gap-2",children:[W.jsxDEV("button",{onClick:()=>F(!1),className:"flex-1 border border-[#333] hover:border-[#444] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),W.jsxDEV("button",{onClick:L,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):W.jsxDEV("button",{onClick:()=>F(!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 y7({label:G,children:H}){return W.jsxDEV("div",{children:[W.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:G},void 0,!1,void 0,this),H]},void 0,!0,void 0,this)}var h2=n(e0(),1);var v1=n(C1(),1);function rJ({agents:G,loading:H,selectedAgent:_,providers:L,onSelectAgent:R,onCloseAgent:N,onToggleAgent:M,onDeleteAgent:U,onUpdateAgent:I,onNewAgent:y,canCreateAgent:O=!0}){let{currentProjectId:F,currentProject:P}=u4(),S=h2.useMemo(()=>{if(F===null)return G;if(F==="unassigned")return G.filter((V)=>!V.projectId);return G.filter((V)=>V.projectId===F)},[G,F]),E=F===null?"Agents":F==="unassigned"?"Unassigned Agents":P?.name||"Agents";return v1.jsxDEV("div",{className:"flex-1 flex overflow-hidden relative",children:[v1.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[v1.jsxDEV("div",{className:"flex items-center justify-between mb-6",children:[v1.jsxDEV("div",{className:"flex items-center gap-3",children:[P&&v1.jsxDEV("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:P.color}},void 0,!1,void 0,this),v1.jsxDEV("h1",{className:"text-xl font-semibold",children:E},void 0,!1,void 0,this),F!==null&&v1.jsxDEV("span",{className:"text-sm text-[#666]",children:["(",S.length," agent",S.length!==1?"s":"",")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y&&v1.jsxDEV("button",{onClick:y,disabled:!O,className:"bg-[#f97316] hover:bg-[#fb923c] 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),H?v1.jsxDEV(tz,{message:"Loading agents..."},void 0,!1,void 0,this):S.length===0?v1.jsxDEV(FM,{onNewAgent:y,canCreateAgent:O,hasProjectFilter:F!==null},void 0,!1,void 0,this):v1.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:S.map((V)=>v1.jsxDEV(dJ,{agent:V,selected:_?.id===V.id,onSelect:()=>R(V),onToggle:(g)=>M(V,g),showProject:F===null},V.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&v1.jsxDEV("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px] z-10",onClick:N},void 0,!1,void 0,this),_&&v1.jsxDEV("div",{className:"absolute right-0 top-0 bottom-0 w-full sm:w-[500px] lg:w-[600px] xl:w-[700px] z-20",children:v1.jsxDEV(oJ,{agent:_,providers:L,onClose:N,onStartAgent:(V)=>M(_,V),onUpdateAgent:(V)=>I(_.id,V),onDeleteAgent:()=>U(_.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FM({onNewAgent:G,canCreateAgent:H,hasProjectFilter:_}){return v1.jsxDEV("div",{className:"text-center py-20 text-[#666]",children:[_?v1.jsxDEV(v1.Fragment,{children:[v1.jsxDEV("p",{className:"text-lg",children:"No agents in this project"},void 0,!1,void 0,this),v1.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):v1.jsxDEV(v1.Fragment,{children:[v1.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),v1.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),G&&v1.jsxDEV("button",{onClick:G,disabled:!H,className:"mt-4 bg-[#f97316] hover:bg-[#fb923c] 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 C4=n(e0(),1);var L0=n(C1(),1);function tJ({agents:G,loading:H,runningCount:_,configuredProviders:L,onNavigate:R,onSelectAgent:N}){let{authFetch:M}=c1(),{currentProjectId:U}=u4(),{events:I,statusChangeCounter:y}=qY(),[O,F]=C4.useState(null),[P,S]=C4.useState([]),[E,V]=C4.useState([]),g=C4.useMemo(()=>{if(!U)return G;if(U==="unassigned")return G.filter((c)=>!c.projectId);return G.filter((c)=>c.projectId===U)},[G,U]),i=C4.useMemo(()=>{return g.filter((c)=>c.status==="running").length},[g]),s=C4.useMemo(()=>{return new Set(g.map((c)=>c.id))},[g]),p=C4.useCallback(async()=>{try{let c=U?`project_id=${encodeURIComponent(U)}`:"",[v0,C,e]=await Promise.all([M(`/api/dashboard${c?`?${c}`:""}`),M(`/api/tasks?status=all${c?`&${c}`:""}`),M(`/api/telemetry/events?type=thread_activity&limit=20${c?`&${c}`:""}`)]);if(v0.ok){let l=await v0.json();F(l)}if(C.ok){let l=await C.json();S(l.tasks||[])}if(e.ok){let l=await e.json();V(l.events||[])}}catch(c){console.error("Failed to fetch dashboard data:",c)}},[M,U]);C4.useEffect(()=>{p()},[p,y]);let a=C4.useMemo(()=>{let c=U?P.filter((v0)=>s.has(v0.agentId)):P;return PM(c)},[P,U,s]),H0=C4.useMemo(()=>{if(!U)return O?.tasks||{total:0,pending:0,running:0,completed:0};let c=a.length,v0=a.filter((l)=>l.status==="pending").length,C=a.filter((l)=>l.status==="running").length,e=a.filter((l)=>l.status==="completed").length;return{total:c,pending:v0,running:C,completed:e}},[O,U,a]),d=C4.useMemo(()=>{let c=I.filter((l)=>l.type==="thread_activity"),v0=new Set(c.map((l)=>l.id)),C=[...c];for(let l of E)if(!v0.has(l.id))C.push(l),v0.add(l.id);let e=C;if(U)e=C.filter((l)=>s.has(l.agent_id));return e.sort((l,u)=>new Date(u.timestamp).getTime()-new Date(l.timestamp).getTime()),e.slice(0,8)},[I,E,U,s]),B0=C4.useMemo(()=>{let c=new Map;for(let v0 of G)c.set(v0.id,v0.name);return c},[G]);return L0.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[L0.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-6",children:[L0.jsxDEV(nJ,{label:"Agents",value:g.length,subValue:`${i} running`},void 0,!1,void 0,this),L0.jsxDEV(nJ,{label:"Tasks",value:H0.total,subValue:`${H0.pending} pending`},void 0,!1,void 0,this),L0.jsxDEV(nJ,{label:"Completed",value:H0.completed,color:"text-green-400"},void 0,!1,void 0,this),L0.jsxDEV(nJ,{label:"Providers",value:L.length,color:"text-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[L0.jsxDEV(eH,{title:"Agents",actionLabel:"View All",onAction:()=>R("agents"),children:H?L0.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"Loading..."},void 0,!1,void 0,this):g.length===0?L0.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"No agents yet"},void 0,!1,void 0,this):L0.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:g.slice(0,5).map((c)=>L0.jsxDEV(NM,{agent:c,onSelect:()=>N(c),showProject:!U},c.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),L0.jsxDEV(eH,{title:"Activity",actionLabel:"Telemetry",onAction:()=>R("telemetry"),children:d.length===0?L0.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:[L0.jsxDEV("p",{children:"No activity yet"},void 0,!1,void 0,this),L0.jsxDEV("p",{className:"text-sm text-[#444] mt-1",children:"Agent activity will appear here in real-time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):L0.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:d.map((c)=>L0.jsxDEV(wM,{activity:c.data?.activity||"Working...",agentName:B0.get(c.agent_id)||c.agent_id,timestamp:c.timestamp},c.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),L0.jsxDEV(eH,{title:"Tasks",actionLabel:"View All",onAction:()=>R("tasks"),children:a.length===0?L0.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:[L0.jsxDEV("p",{children:"No tasks yet"},void 0,!1,void 0,this),L0.jsxDEV("p",{className:"text-sm text-[#444] mt-1",children:"Tasks will appear when agents create them"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):L0.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:a.slice(0,5).map((c)=>L0.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[L0.jsxDEV("div",{className:"flex-1 min-w-0",children:[L0.jsxDEV("p",{className:"font-medium truncate",children:c.title},void 0,!1,void 0,this),L0.jsxDEV("p",{className:"text-sm text-[#666]",children:[c.agentName,c.recurrence&&L0.jsxDEV("span",{className:"ml-1 text-[#555]",children:["· ",AM(c.recurrence)]},void 0,!0,void 0,this),c.next_run&&L0.jsxDEV("span",{className:"ml-1 text-[#f97316]",children:["· ",j2(c.next_run)]},void 0,!0,void 0,this),!c.next_run&&c.execute_at&&L0.jsxDEV("span",{className:"ml-1 text-[#f97316]",children:["· ",j2(c.execute_at)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),L0.jsxDEV(bM,{status:c.status},void 0,!1,void 0,this)]},`${c.agentId}-${c.id}`,!0,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)}function nJ({label:G,value:H,subValue:_,color:L}){return L0.jsxDEV("div",{className:"bg-[#111] rounded p-4 border border-[#1a1a1a]",children:[L0.jsxDEV("p",{className:"text-sm text-[#666] mb-1",children:G},void 0,!1,void 0,this),L0.jsxDEV("p",{className:`text-2xl font-semibold ${L||""}`,children:H},void 0,!1,void 0,this),_&&L0.jsxDEV("p",{className:"text-xs text-[#555] mt-1",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eH({title:G,actionLabel:H,onAction:_,children:L}){return L0.jsxDEV("div",{className:"bg-[#111] rounded border border-[#1a1a1a] overflow-hidden",children:[L0.jsxDEV("div",{className:"px-4 py-3 border-b border-[#1a1a1a] flex items-center justify-between",children:[L0.jsxDEV("h3",{className:"font-semibold",children:G},void 0,!1,void 0,this),L0.jsxDEV("button",{onClick:_,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L]},void 0,!0,void 0,this)}function NM({agent:G,onSelect:H,showProject:_}){let{isActive:L}=lJ(G.id),{projects:R}=u4(),N=G.projectId?R.find((M)=>M.id===G.projectId):null;return L0.jsxDEV("div",{onClick:H,className:"px-4 py-3 hover:bg-[#1a1a1a] cursor-pointer flex items-center justify-between",children:[L0.jsxDEV("div",{className:"flex-1 min-w-0",children:[L0.jsxDEV("p",{className:"font-medium",children:G.name},void 0,!1,void 0,this),L0.jsxDEV("div",{className:"flex items-center gap-2 text-sm text-[#666]",children:[L0.jsxDEV("span",{children:G.provider},void 0,!1,void 0,this),_&&N&&L0.jsxDEV(L0.Fragment,{children:[L0.jsxDEV("span",{className:"text-[#444]",children:"·"},void 0,!1,void 0,this),L0.jsxDEV("span",{className:"flex items-center gap-1",children:[L0.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:N.color}},void 0,!1,void 0,this),N.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),L0.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${G.status==="running"?L?"bg-green-400 animate-pulse":"bg-[#3b82f6]":"bg-[#444]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function MM(G){let H=Math.floor((Date.now()-new Date(G).getTime())/1000);if(H<5)return"just now";if(H<60)return`${H}s ago`;let _=Math.floor(H/60);if(_<60)return`${_}m ago`;let L=Math.floor(_/60);if(L<24)return`${L}h ago`;return`${Math.floor(L/24)}d ago`}function wM({activity:G,agentName:H,timestamp:_}){return L0.jsxDEV("div",{className:"px-4 py-3",children:[L0.jsxDEV("p",{className:"text-sm truncate",children:G},void 0,!1,void 0,this),L0.jsxDEV("div",{className:"flex items-center gap-2 text-xs text-[#555] mt-1",children:[L0.jsxDEV("span",{className:"text-[#666]",children:H},void 0,!1,void 0,this),L0.jsxDEV("span",{className:"text-[#444]",children:"·"},void 0,!1,void 0,this),L0.jsxDEV("span",{children:MM(_)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function bM({status:G}){let H={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 L0.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${H[G]||H.pending}`,children:G},void 0,!1,void 0,this)}function p2(G){if(G.status==="running")return 0;if(G.status==="pending")return 1;if(G.status==="completed")return 2;if(G.status==="failed")return 3;return 4}function PM(G){return[...G].sort((H,_)=>{let L=p2(H),R=p2(_);if(L!==R)return L-R;if(L<=1){let U=H.next_run||H.execute_at||null,I=_.next_run||_.execute_at||null,y=U?new Date(U).getTime():1/0,O=I?new Date(I).getTime():1/0;return y-O}let N=H.completed_at||H.executed_at||H.created_at,M=_.completed_at||_.executed_at||_.created_at;return new Date(M).getTime()-new Date(N).getTime()})}var g2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function AM(G){try{let H=G.trim().split(/\s+/);if(H.length!==5)return G;let[_,L,R,N,M]=H;if(_.startsWith("*/")&&L==="*"&&R==="*"&&N==="*"&&M==="*"){let I=parseInt(_.slice(2));return I===1?"Every min":`Every ${I}min`}if(_!=="*"&&!_.includes("/")&&L==="*"&&R==="*"&&N==="*"&&M==="*")return"Hourly";if(L.startsWith("*/")&&R==="*"&&N==="*"&&M==="*"){let I=parseInt(L.slice(2));return I===1?"Hourly":`Every ${I}h`}let U=(I,y)=>{let O=parseInt(I),F=parseInt(y);if(isNaN(O))return"";let P=O>=12?"PM":"AM";return`${O===0?12:O>12?O-12:O}:${F.toString().padStart(2,"0")} ${P}`};if(L!=="*"&&!L.includes("/")&&R==="*"&&N==="*"){let I=U(L,_);if(M==="*")return`Daily ${I}`;let y=M.split(",").map((O)=>g2[parseInt(O.trim())]||O);if(y.length===1)return`${y[0]} ${I}`;return`${y.join(" & ")} ${I}`}return G}catch{return G}}function j2(G){let H=new Date(G),_=new Date,L=H.getTime()-_.getTime(),R=L>0,N=Math.abs(L),M=Math.floor(N/60000),U=Math.floor(N/3600000),I=H.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),y=H.toDateString()===_.toDateString(),O=new Date(_);O.setDate(O.getDate()+1);let F=H.toDateString()===O.toDateString();if(y){if(M<1)return"now";if(M<60)return R?`in ${M}m`:`${M}m ago`;return R?`in ${U}h`:`${U}h ago`}if(F)return`Tomorrow ${I}`;return`${g2[H.getDay()]} ${I}`}var Q1=n(C1(),1),kM=D1.lazy(()=>import("./SettingsPage.p1hc60gk.js").then((G)=>({default:G.SettingsPage}))),yM=D1.lazy(()=>import("./ActivityPage.41nbye4r.js").then((G)=>({default:G.ActivityPage}))),VM=D1.lazy(()=>import("./TasksPage.sjv0khtv.js").then((G)=>({default:G.TasksPage}))),CM=D1.lazy(()=>import("./McpPage.y396h6fy.js").then((G)=>({default:G.McpPage}))),SM=D1.lazy(()=>import("./SkillsPage.yj3xdsay.js").then((G)=>({default:G.SkillsPage}))),DM=D1.lazy(()=>import("./TestsPage.zzs4qfj8.js").then((G)=>({default:G.TestsPage}))),EM=D1.lazy(()=>import("./TelemetryPage.2qm4w16r.js").then((G)=>({default:G.TelemetryPage}))),fM=D1.lazy(()=>import("./ConnectionsPage.anb3rv9a.js").then((G)=>({default:G.ConnectionsPage}))),mM=D1.lazy(()=>import("./ApiDocsPage.4smnt8m3.js").then((G)=>({default:G.ApiDocsPage})));function hM(){let{isAuthenticated:G,isLoading:H,hasUsers:_,accessToken:L,checkAuth:R}=c1(),{currentProjectId:N,refreshProjects:M}=u4(),U=yJ(),I=u2(),{isComplete:y,setIsComplete:O}=fH(),F=()=>{return L?{Authorization:`Bearer ${L}`}:{}},P=G&&y===!0,{agents:S,loading:E,runningCount:V,fetchAgents:g,createAgent:i,updateAgent:s,deleteAgent:p,toggleAgent:a}=DH(P,N),{providers:H0,configuredProviders:d,fetchProviders:B0}=EH(P),c=d.filter((o)=>o.type==="llm"),v0=D1.useMemo(()=>{if(N===null)return S.length;if(N==="unassigned")return S.filter((o)=>!o.projectId).length;return S.filter((o)=>o.projectId===N).length},[S,N]),[C,e]=D1.useState(!1),[l,u]=D1.useState(null),[q0,t]=D1.useState("dashboard"),[Z0,K0]=D1.useState(null),[h0,f0]=D1.useState(0),[m,Q0]=D1.useState(!1);D1.useEffect(()=>{if(!P)return;(async()=>{try{let n1="/api/tasks?status=pending";if(N!==null)n1+=`&project_id=${encodeURIComponent(N)}`;let d1=await fetch(n1,{headers:F()});if(d1.ok){let U4=await d1.json();f0(U4.count??(U4.tasks||[]).length)}}catch{}})()},[P,L,N,S,U,I]);let[k0,D0]=D1.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{...SH},mcpServers:[],skills:[]});D1.useEffect(()=>{if(c.length>0&&!k0.provider){let o=c[0],n1=o.models.find((d1)=>d1.recommended)?.value||o.models[0]?.value||"";D0((d1)=>({...d1,provider:o.id,model:n1}))}},[c,k0.provider]),D1.useEffect(()=>{if(l){let o=S.find((n1)=>n1.id===l.id);if(o)u(o);else u(null)}},[S,l]);let r0=(o)=>{let n1=H0.find((U4)=>U4.id===o),d1=n1?.models.find((U4)=>U4.recommended)?.value||n1?.models[0]?.value||"";D0((U4)=>({...U4,provider:o,model:d1}))},G4=async()=>{if(!k0.name)return;await i(k0),await M();let o=c[0],n1=o?.models.find((d1)=>d1.recommended)?.value||o?.models[0]?.value||"";D0({name:"",model:n1,provider:o?.id||"",systemPrompt:"You are a helpful assistant.",features:{...SH},mcpServers:[],skills:[]}),e(!1)},f=async(o,n1)=>{n1?.stopPropagation(),K0(null);let d1=await a(o);if(d1.error)K0(d1.error)},Y0=async(o,n1)=>{if(n1?.stopPropagation(),l?.id===o)u(null);await p(o),await M()},i0=(o)=>{u(o),K0(null),t("agents")},U1=(o)=>{t(o),u(null)},O6=()=>{O(!0),B0(),R()};if(H||_===null)return Q1.jsxDEV(tz,{fullScreen:!0},void 0,!1,void 0,this);if(!_)return Q1.jsxDEV(_Y,{onComplete:O6,needsAccount:!0},void 0,!1,void 0,this);if(!G)return Q1.jsxDEV(gJ,{},void 0,!1,void 0,this);if(y===null)return Q1.jsxDEV(tz,{fullScreen:!0},void 0,!1,void 0,this);if(!y)return Q1.jsxDEV(_Y,{onComplete:O6,needsAccount:!1},void 0,!1,void 0,this);return Q1.jsxDEV("div",{className:"h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex flex-col overflow-hidden",children:[Q1.jsxDEV(fJ,{onMenuClick:()=>Q0(!0),agents:S},void 0,!1,void 0,this),Z0&&Q1.jsxDEV(jJ,{message:Z0,onDismiss:()=>K0(null)},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[Q1.jsxDEV(pJ,{route:q0,agentCount:v0,taskCount:h0,onNavigate:U1,isOpen:m,onClose:()=>Q0(!1)},void 0,!1,void 0,this),Q1.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:Q1.jsxDEV(D1.Suspense,{fallback:Q1.jsxDEV(tz,{},void 0,!1,void 0,this),children:[q0==="settings"&&Q1.jsxDEV(kM,{},void 0,!1,void 0,this),q0==="activity"&&Q1.jsxDEV(yM,{agents:S,loading:E,onNavigate:t},void 0,!1,void 0,this),q0==="agents"&&Q1.jsxDEV(rJ,{agents:S,loading:E,selectedAgent:l,providers:H0,onSelectAgent:i0,onCloseAgent:()=>u(null),onToggleAgent:f,onDeleteAgent:Y0,onUpdateAgent:s,onNewAgent:()=>e(!0),canCreateAgent:c.length>0},void 0,!1,void 0,this),q0==="dashboard"&&Q1.jsxDEV(tJ,{agents:S,loading:E,runningCount:V,configuredProviders:d,onNavigate:U1,onSelectAgent:i0},void 0,!1,void 0,this),q0==="tasks"&&Q1.jsxDEV(VM,{},void 0,!1,void 0,this),q0==="connections"&&Q1.jsxDEV(fM,{},void 0,!1,void 0,this),q0==="mcp"&&Q1.jsxDEV(CM,{},void 0,!1,void 0,this),q0==="skills"&&Q1.jsxDEV(SM,{},void 0,!1,void 0,this),q0==="tests"&&Q1.jsxDEV(DM,{},void 0,!1,void 0,this),q0==="telemetry"&&Q1.jsxDEV(EM,{},void 0,!1,void 0,this),q0==="api"&&Q1.jsxDEV(mM,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C&&Q1.jsxDEV(aJ,{form:k0,providers:H0,configuredProviders:d,onFormChange:D0,onProviderChange:r0,onCreate:G4,onClose:()=>e(!1),onGoToSettings:()=>{e(!1),t("settings")}},void 0,!1,void 0,this),Q1.jsxDEV(M2,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function pM(){return Q1.jsxDEV(l2,{children:Q1.jsxDEV(c2,{children:Q1.jsxDEV(F2,{children:Q1.jsxDEV(x2,{children:Q1.jsxDEV(hM,{},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 jM=d2.createRoot(document.getElementById("root"));jM.render(Q1.jsxDEV(pM,{},void 0,!1,void 0,this));
|
|
266
|
+
|
|
267
|
+
//# debugId=D66F0EA9B889DBCB64756E2164756E21
|