apteva 0.2.3 → 0.2.5

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.
Files changed (36) hide show
  1. package/dist/App.ggy88vnx.js +213 -0
  2. package/dist/index.html +1 -1
  3. package/dist/styles.css +1 -1
  4. package/package.json +6 -6
  5. package/src/binary.ts +271 -1
  6. package/src/crypto.ts +53 -0
  7. package/src/db.ts +492 -3
  8. package/src/mcp-client.ts +599 -0
  9. package/src/providers.ts +31 -0
  10. package/src/routes/api.ts +786 -63
  11. package/src/server.ts +122 -5
  12. package/src/web/App.tsx +36 -1
  13. package/src/web/components/agents/AgentCard.tsx +22 -1
  14. package/src/web/components/agents/AgentPanel.tsx +381 -0
  15. package/src/web/components/agents/AgentsView.tsx +27 -10
  16. package/src/web/components/agents/CreateAgentModal.tsx +7 -7
  17. package/src/web/components/agents/index.ts +1 -1
  18. package/src/web/components/common/Icons.tsx +8 -0
  19. package/src/web/components/common/Modal.tsx +2 -2
  20. package/src/web/components/common/Select.tsx +1 -1
  21. package/src/web/components/common/index.ts +1 -0
  22. package/src/web/components/dashboard/Dashboard.tsx +74 -25
  23. package/src/web/components/index.ts +5 -2
  24. package/src/web/components/layout/Sidebar.tsx +22 -2
  25. package/src/web/components/mcp/McpPage.tsx +1144 -0
  26. package/src/web/components/mcp/index.ts +1 -0
  27. package/src/web/components/onboarding/OnboardingWizard.tsx +5 -1
  28. package/src/web/components/settings/SettingsPage.tsx +312 -82
  29. package/src/web/components/tasks/TasksPage.tsx +129 -0
  30. package/src/web/components/tasks/index.ts +1 -0
  31. package/src/web/components/telemetry/TelemetryPage.tsx +316 -0
  32. package/src/web/hooks/useAgents.ts +23 -0
  33. package/src/web/styles.css +18 -0
  34. package/src/web/types.ts +75 -1
  35. package/dist/App.wfhmfhx7.js +0 -213
  36. package/src/web/components/agents/ChatPanel.tsx +0 -63
@@ -1,213 +0,0 @@
1
- var NF=Object.create;var{getPrototypeOf:AF,defineProperty:Oq,getOwnPropertyNames:PF}=Object;var WF=Object.prototype.hasOwnProperty;var Q0=(H,U,B)=>{B=H!=null?NF(AF(H)):{};let N=U||!H||!H.__esModule?Oq(B,"default",{value:H,enumerable:!0}):B;for(let G of PF(H))if(!WF.call(N,G))Oq(N,G,{get:()=>H[G],enumerable:!0});return N};var Ev=(H,U)=>()=>(U||H((U={exports:{}}).exports,U),U.exports);var Z6=Ev((_F,LX)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H="18.3.1",U=Symbol.for("react.element"),B=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),P=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),l=Symbol.for("react.offscreen"),n=Symbol.iterator,b0="@@iterator";function t(K){if(K===null||typeof K!=="object")return null;var W=n&&K[n]||K[b0];if(typeof W==="function")return W;return null}var a={current:null},K0={transition:null},o={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},p={current:null},X0={},P0=null;function n0(K){P0=K}X0.setExtraStackFrame=function(K){P0=K},X0.getCurrentStack=null,X0.getStackAddendum=function(){var K="";if(P0)K+=P0;var W=X0.getCurrentStack;if(W)K+=W()||"";return K};var z1=!1,c0=!1,W0=!1,S0=!1,e=!1,Z0={ReactCurrentDispatcher:a,ReactCurrentBatchConfig:K0,ReactCurrentOwner:p};Z0.ReactDebugCurrentFrame=X0,Z0.ReactCurrentActQueue=o;function k0(K){{for(var W=arguments.length,C=Array(W>1?W-1:0),u=1;u<W;u++)C[u-1]=arguments[u];v1("warn",K,C)}}function L0(K){{for(var W=arguments.length,C=Array(W>1?W-1:0),u=1;u<W;u++)C[u-1]=arguments[u];v1("error",K,C)}}function v1(K,W,C){{var u=Z0.ReactDebugCurrentFrame,v0=u.getStackAddendum();if(v0!=="")W+="%s",C=C.concat([v0]);var m0=C.map(function(R0){return String(R0)});m0.unshift("Warning: "+W),Function.prototype.apply.call(console[K],console,m0)}}var R6={};function s1(K,W){{var C=K.constructor,u=C&&(C.displayName||C.name)||"ReactClass",v0=u+"."+W;if(R6[v0])return;L0("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",W,u),R6[v0]=!0}}var a1={isMounted:function(K){return!1},enqueueForceUpdate:function(K,W,C){s1(K,"forceUpdate")},enqueueReplaceState:function(K,W,C,u){s1(K,"replaceState")},enqueueSetState:function(K,W,C,u){s1(K,"setState")}},u0=Object.assign,Q1={};Object.freeze(Q1);function R1(K,W,C){this.props=K,this.context=W,this.refs=Q1,this.updater=C||a1}R1.prototype.isReactComponent={},R1.prototype.setState=function(K,W){if(typeof K!=="object"&&typeof K!=="function"&&K!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,K,W,"setState")},R1.prototype.forceUpdate=function(K){this.updater.enqueueForceUpdate(this,K,"forceUpdate")};{var K6={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},e1=function(K,W){Object.defineProperty(R1.prototype,K,{get:function(){k0("%s(...) is deprecated in plain JavaScript React classes. %s",W[0],W[1]);return}})};for(var i1 in K6)if(K6.hasOwnProperty(i1))e1(i1,K6[i1])}function U6(){}U6.prototype=R1.prototype;function h1(K,W,C){this.props=K,this.context=W,this.refs=Q1,this.updater=C||a1}var g1=h1.prototype=new U6;g1.constructor=h1,u0(g1,R1.prototype),g1.isPureReactComponent=!0;function v6(){var K={current:null};return Object.seal(K),K}var D6=Array.isArray;function p1(K){return D6(K)}function f6(K){{var W=typeof Symbol==="function"&&Symbol.toStringTag,C=W&&K[Symbol.toStringTag]||K.constructor.name||"Object";return C}}function T6(K){try{return u1(K),!1}catch(W){return!0}}function u1(K){return""+K}function l0(K){if(T6(K))return L0("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",f6(K)),u1(K)}function M6(K,W,C){var u=K.displayName;if(u)return u;var v0=W.displayName||W.name||"";return v0!==""?C+"("+v0+")":C}function W6(K){return K.displayName||"Context"}function b6(K){if(K==null)return null;if(typeof K.tag==="number")L0("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof K==="function")return K.displayName||K.name||null;if(typeof K==="string")return K;switch(K){case N:return"Fragment";case B:return"Portal";case _:return"Profiler";case G:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList"}if(typeof K==="object")switch(K.$$typeof){case P:var W=K;return W6(W)+".Consumer";case F:var C=K;return W6(C._context)+".Provider";case E:return M6(K,K.render,"ForwardRef");case V:var u=K.displayName||null;if(u!==null)return u;return b6(K.type)||"Memo";case I:{var v0=K,m0=v0._payload,R0=v0._init;try{return b6(R0(m0))}catch(y0){return null}}}return null}var Y6=Object.prototype.hasOwnProperty,X5={key:!0,ref:!0,__self:!0,__source:!0},c1,p6,y1;y1={};function r6(K){if(Y6.call(K,"ref")){var W=Object.getOwnPropertyDescriptor(K,"ref").get;if(W&&W.isReactWarning)return!1}return K.ref!==void 0}function r1(K){if(Y6.call(K,"key")){var W=Object.getOwnPropertyDescriptor(K,"key").get;if(W&&W.isReactWarning)return!1}return K.key!==void 0}function z6(K,W){var C=function(){if(!c1)c1=!0,L0("%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://reactjs.org/link/special-props)",W)};C.isReactWarning=!0,Object.defineProperty(K,"key",{get:C,configurable:!0})}function c6(K,W){var C=function(){if(!p6)p6=!0,L0("%s: `ref` 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://reactjs.org/link/special-props)",W)};C.isReactWarning=!0,Object.defineProperty(K,"ref",{get:C,configurable:!0})}function G4(K){if(typeof K.ref==="string"&&p.current&&K.__self&&p.current.stateNode!==K.__self){var W=b6(p.current.type);if(!y1[W])L0('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W,K.ref),y1[W]=!0}}var O6=function(K,W,C,u,v0,m0,R0){var y0={$$typeof:U,type:K,key:W,ref:C,props:R0,_owner:m0};if(y0._store={},Object.defineProperty(y0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(y0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v0}),Object.freeze)Object.freeze(y0.props),Object.freeze(y0);return y0};function k6(K,W,C){var u,v0={},m0=null,R0=null,y0=null,Y1=null;if(W!=null){if(r6(W))R0=W.ref,G4(W);if(r1(W))l0(W.key),m0=""+W.key;y0=W.__self===void 0?null:W.__self,Y1=W.__source===void 0?null:W.__source;for(u in W)if(Y6.call(W,u)&&!X5.hasOwnProperty(u))v0[u]=W[u]}var D1=arguments.length-2;if(D1===1)v0.children=C;else if(D1>1){var j1=Array(D1);for(var o1=0;o1<D1;o1++)j1[o1]=arguments[o1+2];if(Object.freeze)Object.freeze(j1);v0.children=j1}if(K&&K.defaultProps){var Q6=K.defaultProps;for(u in Q6)if(v0[u]===void 0)v0[u]=Q6[u]}if(m0||R0){var L6=typeof K==="function"?K.displayName||K.name||"Unknown":K;if(m0)z6(v0,L6);if(R0)c6(v0,L6)}return O6(K,m0,R0,y0,Y1,p.current,v0)}function J0(K,W){var C=O6(K.type,W,K.ref,K._self,K._source,K._owner,K.props);return C}function f0(K,W,C){if(K===null||K===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+K+".");var u,v0=u0({},K.props),m0=K.key,R0=K.ref,y0=K._self,Y1=K._source,D1=K._owner;if(W!=null){if(r6(W))R0=W.ref,D1=p.current;if(r1(W))l0(W.key),m0=""+W.key;var j1;if(K.type&&K.type.defaultProps)j1=K.type.defaultProps;for(u in W)if(Y6.call(W,u)&&!X5.hasOwnProperty(u))if(W[u]===void 0&&j1!==void 0)v0[u]=j1[u];else v0[u]=W[u]}var o1=arguments.length-2;if(o1===1)v0.children=C;else if(o1>1){var Q6=Array(o1);for(var L6=0;L6<o1;L6++)Q6[L6]=arguments[L6+2];v0.children=Q6}return O6(K.type,m0,R0,y0,Y1,D1,v0)}function C0(K){return typeof K==="object"&&K!==null&&K.$$typeof===U}var K1=".",M1=":";function G6(K){var W=/[=:]/g,C={"=":"=0",":":"=2"},u=K.replace(W,function(v0){return C[v0]});return"$"+u}var S1=!1,_6=/\/+/g;function r0(K){return K.replace(_6,"$&/")}function i0(K,W){if(typeof K==="object"&&K!==null&&K.key!=null)return l0(K.key),G6(""+K.key);return W.toString(36)}function P4(K,W,C,u,v0){var m0=typeof K;if(m0==="undefined"||m0==="boolean")K=null;var R0=!1;if(K===null)R0=!0;else switch(m0){case"string":case"number":R0=!0;break;case"object":switch(K.$$typeof){case U:case B:R0=!0}}if(R0){var y0=K,Y1=v0(y0),D1=u===""?K1+i0(y0,0):u;if(p1(Y1)){var j1="";if(D1!=null)j1=r0(D1)+"/";P4(Y1,W,j1,"",function(uX){return uX})}else if(Y1!=null){if(C0(Y1)){if(Y1.key&&(!y0||y0.key!==Y1.key))l0(Y1.key);Y1=J0(Y1,C+(Y1.key&&(!y0||y0.key!==Y1.key)?r0(""+Y1.key)+"/":"")+D1)}W.push(Y1)}return 1}var o1,Q6,L6=0,N1=u===""?K1:u+M1;if(p1(K))for(var bv=0;bv<K.length;bv++)o1=K[bv],Q6=N1+i0(o1,bv),L6+=P4(o1,W,C,Q6,v0);else{var ov=t(K);if(typeof ov==="function"){var H8=K;if(ov===H8.entries){if(!S1)k0("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");S1=!0}var gX=ov.call(H8),l5,Y8=0;while(!(l5=gX.next()).done)o1=l5.value,Q6=N1+i0(o1,Y8++),L6+=P4(o1,W,C,Q6,v0)}else if(m0==="object"){var G8=String(K);throw Error("Objects are not valid as a React child (found: "+(G8==="[object Object]"?"object with keys {"+Object.keys(K).join(", ")+"}":G8)+"). If you meant to render a collection of children, use an array instead.")}}return L6}function y6(K,W,C){if(K==null)return K;var u=[],v0=0;return P4(K,u,"","",function(m0){return W.call(C,m0,v0++)}),u}function W4(K){var W=0;return y6(K,function(){W++}),W}function w5(K,W,C){y6(K,function(){W.apply(this,arguments)},C)}function Z5(K){return y6(K,function(W){return W})||[]}function I5(K){if(!C0(K))throw Error("React.Children.only expected to receive a single React element child.");return K}function r4(K){var W={$$typeof:P,_currentValue:K,_currentValue2:K,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};W.Provider={$$typeof:F,_context:W};var C=!1,u=!1,v0=!1;{var m0={$$typeof:P,_context:W};Object.defineProperties(m0,{Provider:{get:function(){if(!u)u=!0,L0("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");return W.Provider},set:function(R0){W.Provider=R0}},_currentValue:{get:function(){return W._currentValue},set:function(R0){W._currentValue=R0}},_currentValue2:{get:function(){return W._currentValue2},set:function(R0){W._currentValue2=R0}},_threadCount:{get:function(){return W._threadCount},set:function(R0){W._threadCount=R0}},Consumer:{get:function(){if(!C)C=!0,L0("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");return W.Consumer}},displayName:{get:function(){return W.displayName},set:function(R0){if(!v0)k0("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",R0),v0=!0}}}),W.Consumer=m0}return W._currentRenderer=null,W._currentRenderer2=null,W}var $4=-1,J5=0,J1=1,k1=2;function m1(K){if(K._status===$4){var W=K._result,C=W();if(C.then(function(m0){if(K._status===J5||K._status===$4){var R0=K;R0._status=J1,R0._result=m0}},function(m0){if(K._status===J5||K._status===$4){var R0=K;R0._status=k1,R0._result=m0}}),K._status===$4){var u=K;u._status=J5,u._result=C}}if(K._status===J1){var v0=K._result;if(v0===void 0)L0(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
-
3
- Your code should look like:
4
- const MyComponent = lazy(() => import('./MyComponent'))
5
-
6
- Did you accidentally put curly braces around the import?`,v0);if(!("default"in v0))L0(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
-
8
- Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,v0);return v0.default}else throw K._result}function B1(K){var W={_status:$4,_result:K},C={$$typeof:I,_payload:W,_init:m1};{var u,v0;Object.defineProperties(C,{defaultProps:{configurable:!0,get:function(){return u},set:function(m0){L0("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),u=m0,Object.defineProperty(C,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return v0},set:function(m0){L0("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),v0=m0,Object.defineProperty(C,"propTypes",{enumerable:!0})}}})}return C}function A(K){{if(K!=null&&K.$$typeof===V)L0("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");else if(typeof K!=="function")L0("forwardRef requires a render function but was given %s.",K===null?"null":typeof K);else if(K.length!==0&&K.length!==2)L0("forwardRef render functions accept exactly two parameters: props and ref. %s",K.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined.");if(K!=null){if(K.defaultProps!=null||K.propTypes!=null)L0("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")}}var W={$$typeof:E,render:K};{var C;Object.defineProperty(W,"displayName",{enumerable:!1,configurable:!0,get:function(){return C},set:function(u){if(C=u,!K.name&&!K.displayName)K.displayName=u}})}return W}var m=Symbol.for("react.module.reference");function x(K){if(typeof K==="string"||typeof K==="function")return!0;if(K===N||K===_||e||K===G||K===T||K===R||S0||K===l||z1||c0||W0)return!0;if(typeof K==="object"&&K!==null){if(K.$$typeof===I||K.$$typeof===V||K.$$typeof===F||K.$$typeof===P||K.$$typeof===E||K.$$typeof===m||K.getModuleId!==void 0)return!0}return!1}function L(K,W){if(!x(K))L0("memo: The first argument must be a component. Instead received: %s",K===null?"null":typeof K);var C={$$typeof:V,type:K,compare:W===void 0?null:W};{var u;Object.defineProperty(C,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(v0){if(u=v0,!K.name&&!K.displayName)K.displayName=v0}})}return C}function w(){var K=a.current;if(K===null)L0(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
- 2. You might be breaking the Rules of Hooks
12
- 3. You might have more than one copy of React in the same app
13
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return K}function y(K){var W=w();if(K._context!==void 0){var C=K._context;if(C.Consumer===K)L0("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");else if(C.Provider===K)L0("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return W.useContext(K)}function s(K){var W=w();return W.useState(K)}function Y0(K,W,C){var u=w();return u.useReducer(K,W,C)}function w0(K){var W=w();return W.useRef(K)}function A0(K,W){var C=w();return C.useEffect(K,W)}function j(K,W){var C=w();return C.useInsertionEffect(K,W)}function z0(K,W){var C=w();return C.useLayoutEffect(K,W)}function V0(K,W){var C=w();return C.useCallback(K,W)}function H1(K,W){var C=w();return C.useMemo(K,W)}function w1(K,W,C){var u=w();return u.useImperativeHandle(K,W,C)}function _4(K,W){{var C=w();return C.useDebugValue(K,W)}}function d4(){var K=w();return K.useTransition()}function n1(K){var W=w();return W.useDeferredValue(K)}function e0(){var K=w();return K.useId()}function o5(K,W,C){var u=w();return u.useSyncExternalStore(K,W,C)}var V5=0,rb,nb,tb,sb,eb,v8,b8;function e3(){}e3.__reactDisabledLog=!0;function CX(){{if(V5===0){rb=console.log,nb=console.info,tb=console.warn,sb=console.error,eb=console.group,v8=console.groupCollapsed,b8=console.groupEnd;var K={configurable:!0,enumerable:!0,value:e3,writable:!0};Object.defineProperties(console,{info:K,log:K,warn:K,error:K,group:K,groupCollapsed:K,groupEnd:K})}V5++}}function z8(){{if(V5--,V5===0){var K={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:u0({},K,{value:rb}),info:u0({},K,{value:nb}),warn:u0({},K,{value:tb}),error:u0({},K,{value:sb}),group:u0({},K,{value:eb}),groupCollapsed:u0({},K,{value:v8}),groupEnd:u0({},K,{value:b8})})}if(V5<0)L0("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var s7=Z0.ReactCurrentDispatcher,n4;function P7(K,W,C){{if(n4===void 0)try{throw Error()}catch(v0){var u=v0.stack.trim().match(/\n( *(at )?)/);n4=u&&u[1]||""}return`
14
- `+n4+K}}var W7=!1,dv;{var Q8=typeof WeakMap==="function"?WeakMap:Map;dv=new Q8}function vz(K,W){if(!K||W7)return"";{var C=dv.get(K);if(C!==void 0)return C}var u;W7=!0;var v0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m0;m0=s7.current,s7.current=null,CX();try{if(W){var R0=function(){throw Error()};if(Object.defineProperty(R0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(R0,[])}catch(N1){u=N1}Reflect.construct(K,[],R0)}else{try{R0.call()}catch(N1){u=N1}K.call(R0.prototype)}}else{try{throw Error()}catch(N1){u=N1}K()}}catch(N1){if(N1&&u&&typeof N1.stack==="string"){var y0=N1.stack.split(`
15
- `),Y1=u.stack.split(`
16
- `),D1=y0.length-1,j1=Y1.length-1;while(D1>=1&&j1>=0&&y0[D1]!==Y1[j1])j1--;for(;D1>=1&&j1>=0;D1--,j1--)if(y0[D1]!==Y1[j1]){if(D1!==1||j1!==1)do if(D1--,j1--,j1<0||y0[D1]!==Y1[j1]){var o1=`
17
- `+y0[D1].replace(" at new "," at ");if(K.displayName&&o1.includes("<anonymous>"))o1=o1.replace("<anonymous>",K.displayName);if(typeof K==="function")dv.set(K,o1);return o1}while(D1>=1&&j1>=0);break}}}finally{W7=!1,s7.current=m0,z8(),Error.prepareStackTrace=v0}var Q6=K?K.displayName||K.name:"",L6=Q6?P7(Q6):"";if(typeof K==="function")dv.set(K,L6);return L6}function X8(K,W,C){return vz(K,!1)}function hX(K){var W=K.prototype;return!!(W&&W.isReactComponent)}function _7(K,W,C){if(K==null)return"";if(typeof K==="function")return vz(K,hX(K));if(typeof K==="string")return P7(K);switch(K){case T:return P7("Suspense");case R:return P7("SuspenseList")}if(typeof K==="object")switch(K.$$typeof){case E:return X8(K.render);case V:return _7(K.type,W,C);case I:{var u=K,v0=u._payload,m0=u._init;try{return _7(m0(v0),W,C)}catch(R0){}}}return""}var bz={},Z8=Z0.ReactDebugCurrentFrame;function av(K){if(K){var W=K._owner,C=_7(K.type,K._source,W?W.type:null);Z8.setExtraStackFrame(C)}else Z8.setExtraStackFrame(null)}function zz(K,W,C,u,v0){{var m0=Function.call.bind(Y6);for(var R0 in K)if(m0(K,R0)){var y0=void 0;try{if(typeof K[R0]!=="function"){var Y1=Error((u||"React class")+": "+C+" type `"+R0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof K[R0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Y1.name="Invariant Violation",Y1}y0=K[R0](W,R0,u,C,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D1){y0=D1}if(y0&&!(y0 instanceof Error))av(v0),L0("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",C,R0,typeof y0),av(null);if(y0 instanceof Error&&!(y0.message in bz))bz[y0.message]=!0,av(v0),L0("Failed %s type: %s",C,y0.message),av(null)}}}function q1(K){if(K){var W=K._owner,C=_7(K.type,K._source,W?W.type:null);n0(C)}else n0(null)}var Qz=!1;function J8(){if(p.current){var K=b6(p.current.type);if(K)return`
18
-
19
- Check the render method of \``+K+"`."}return""}function t0(K){if(K!==void 0){var W=K.fileName.replace(/^.*[\\\/]/,""),C=K.lineNumber;return`
20
-
21
- Check your code at `+W+":"+C+"."}return""}function Xz(K){if(K!==null&&K!==void 0)return t0(K.__source);return""}var K4={};function e7(K){var W=J8();if(!W){var C=typeof K==="string"?K:K.displayName||K.name;if(C)W=`
22
-
23
- Check the top-level render call using <`+C+">."}return W}function F7(K,W){if(!K._store||K._store.validated||K.key!=null)return;K._store.validated=!0;var C=e7(W);if(K4[C])return;K4[C]=!0;var u="";if(K&&K._owner&&K._owner!==p.current)u=" It was passed a child from "+b6(K._owner.type)+".";q1(K),L0('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',C,u),q1(null)}function Zz(K,W){if(typeof K!=="object")return;if(p1(K))for(var C=0;C<K.length;C++){var u=K[C];if(C0(u))F7(u,W)}else if(C0(K)){if(K._store)K._store.validated=!0}else if(K){var v0=t(K);if(typeof v0==="function"){if(v0!==K.entries){var m0=v0.call(K),R0;while(!(R0=m0.next()).done)if(C0(R0.value))F7(R0.value,W)}}}}function j6(K){{var W=K.type;if(W===null||W===void 0||typeof W==="string")return;var C;if(typeof W==="function")C=W.propTypes;else if(typeof W==="object"&&(W.$$typeof===E||W.$$typeof===V))C=W.propTypes;else return;if(C){var u=b6(W);zz(C,K.props,"prop",u,K)}else if(W.PropTypes!==void 0&&!Qz){Qz=!0;var v0=b6(W);L0("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v0||"Unknown")}if(typeof W.getDefaultProps==="function"&&!W.getDefaultProps.isReactClassApproved)L0("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function q6(K){{var W=Object.keys(K.props);for(var C=0;C<W.length;C++){var u=W[C];if(u!=="children"&&u!=="key"){q1(K),L0("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),q1(null);break}}if(K.ref!==null)q1(K),L0("Invalid attribute `ref` supplied to `React.Fragment`."),q1(null)}}function Jz(K,W,C){var u=x(K);if(!u){var v0="";if(K===void 0||typeof K==="object"&&K!==null&&Object.keys(K).length===0)v0+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var m0=Xz(W);if(m0)v0+=m0;else v0+=J8();var R0;if(K===null)R0="null";else if(p1(K))R0="array";else if(K!==void 0&&K.$$typeof===U)R0="<"+(b6(K.type)||"Unknown")+" />",v0=" Did you accidentally export a JSX literal instead of a component?";else R0=typeof K;L0("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R0,v0)}var y0=k6.apply(this,arguments);if(y0==null)return y0;if(u)for(var Y1=2;Y1<arguments.length;Y1++)Zz(arguments[Y1],K);if(K===N)q6(y0);else j6(y0);return y0}var a4=!1;function f4(K){var W=Jz.bind(null,K);W.type=K;{if(!a4)a4=!0,k0("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");Object.defineProperty(W,"type",{enumerable:!1,get:function(){return k0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:K}),K}})}return W}function D5(K,W,C){var u=f0.apply(this,arguments);for(var v0=2;v0<arguments.length;v0++)Zz(arguments[v0],u.type);return j6(u),u}function SX(K,W){var C=K0.transition;K0.transition={};var u=K0.transition;K0.transition._updatedFibers=new Set;try{K()}finally{if(K0.transition=C,C===null&&u._updatedFibers){var v0=u._updatedFibers.size;if(v0>10)k0("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.");u._updatedFibers.clear()}}}var cv=!1,vv=null;function Hz(K){if(vv===null)try{var W=("require"+Math.random()).slice(0,7),C=LX&&LX[W];vv=C.call(LX,"timers").setImmediate}catch(u){vv=function(v0){if(cv===!1){if(cv=!0,typeof MessageChannel>"u")L0("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.")}var m0=new MessageChannel;m0.port1.onmessage=v0,m0.port2.postMessage(void 0)}}return vv(K)}var R7=0,Yz=!1;function Gz(K){{var W=R7;if(R7++,o.current===null)o.current=[];var C=o.isBatchingLegacy,u;try{if(o.isBatchingLegacy=!0,u=K(),!C&&o.didScheduleLegacyUpdate){var v0=o.current;if(v0!==null)o.didScheduleLegacyUpdate=!1,jv(v0)}}catch(Q6){throw x5(W),Q6}finally{o.isBatchingLegacy=C}if(u!==null&&typeof u==="object"&&typeof u.then==="function"){var m0=u,R0=!1,y0={then:function(Q6,L6){R0=!0,m0.then(function(N1){if(x5(W),R7===0)yv(N1,Q6,L6);else Q6(N1)},function(N1){x5(W),L6(N1)})}};if(!Yz&&typeof Promise<"u")Promise.resolve().then(function(){}).then(function(){if(!R0)Yz=!0,L0("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);")});return y0}else{var Y1=u;if(x5(W),R7===0){var D1=o.current;if(D1!==null)jv(D1),o.current=null;var j1={then:function(Q6,L6){if(o.current===null)o.current=[],yv(Y1,Q6,L6);else Q6(Y1)}};return j1}else{var o1={then:function(Q6,L6){Q6(Y1)}};return o1}}}}function x5(K){{if(K!==R7-1)L0("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");R7=K}}function yv(K,W,C){{var u=o.current;if(u!==null)try{jv(u),Hz(function(){if(u.length===0)o.current=null,W(K);else yv(K,W,C)})}catch(v0){C(v0)}else W(K)}}var M7=!1;function jv(K){if(!M7){M7=!0;var W=0;try{for(;W<K.length;W++){var C=K[W];do C=C(!0);while(C!==null)}K.length=0}catch(u){throw K=K.slice(W+1),u}finally{M7=!1}}}var $z=Jz,Kz=D5,Uz=f4,qz={map:y6,forEach:w5,count:W4,toArray:Z5,only:I5};if(_F.Children=qz,_F.Component=R1,_F.Fragment=N,_F.Profiler=_,_F.PureComponent=h1,_F.StrictMode=G,_F.Suspense=T,_F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z0,_F.act=Gz,_F.cloneElement=Kz,_F.createContext=r4,_F.createElement=$z,_F.createFactory=Uz,_F.createRef=v6,_F.forwardRef=A,_F.isValidElement=C0,_F.lazy=B1,_F.memo=L,_F.startTransition=SX,_F.unstable_act=Gz,_F.useCallback=V0,_F.useContext=y,_F.useDebugValue=_4,_F.useDeferredValue=n1,_F.useEffect=A0,_F.useId=e0,_F.useImperativeHandle=w1,_F.useInsertionEffect=j,_F.useLayoutEffect=z0,_F.useMemo=H1,_F.useReducer=Y0,_F.useRef=w0,_F.useState=s,_F.useSyncExternalStore=o5,_F.useTransition=d4,_F.version=H,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Lq=Ev((FF)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=!1,U=!1,B=5;function N(J0,f0){var C0=J0.length;J0.push(f0),F(J0,f0,C0)}function G(J0){return J0.length===0?null:J0[0]}function _(J0){if(J0.length===0)return null;var f0=J0[0],C0=J0.pop();if(C0!==f0)J0[0]=C0,P(J0,C0,0);return f0}function F(J0,f0,C0){var K1=C0;while(K1>0){var M1=K1-1>>>1,G6=J0[M1];if(E(G6,f0)>0)J0[M1]=f0,J0[K1]=G6,K1=M1;else return}}function P(J0,f0,C0){var K1=C0,M1=J0.length,G6=M1>>>1;while(K1<G6){var S1=(K1+1)*2-1,_6=J0[S1],r0=S1+1,i0=J0[r0];if(E(_6,f0)<0)if(r0<M1&&E(i0,_6)<0)J0[K1]=i0,J0[r0]=f0,K1=r0;else J0[K1]=_6,J0[S1]=f0,K1=S1;else if(r0<M1&&E(i0,f0)<0)J0[K1]=i0,J0[r0]=f0,K1=r0;else return}}function E(J0,f0){var C0=J0.sortIndex-f0.sortIndex;return C0!==0?C0:J0.id-f0.id}var T=1,R=2,V=3,I=4,l=5;function n(J0,f0){}var b0=typeof performance==="object"&&typeof performance.now==="function";if(b0){var t=performance;FF.unstable_now=function(){return t.now()}}else{var a=Date,K0=a.now();FF.unstable_now=function(){return a.now()-K0}}var o=1073741823,p=-1,X0=250,P0=5000,n0=1e4,z1=o,c0=[],W0=[],S0=1,e=null,Z0=V,k0=!1,L0=!1,v1=!1,R6=typeof setTimeout==="function"?setTimeout:null,s1=typeof clearTimeout==="function"?clearTimeout:null,a1=typeof setImmediate<"u"?setImmediate:null,u0=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function Q1(J0){var f0=G(W0);while(f0!==null){if(f0.callback===null)_(W0);else if(f0.startTime<=J0)_(W0),f0.sortIndex=f0.expirationTime,N(c0,f0);else return;f0=G(W0)}}function R1(J0){if(v1=!1,Q1(J0),!L0)if(G(c0)!==null)L0=!0,z6(K6);else{var f0=G(W0);if(f0!==null)c6(R1,f0.startTime-J0)}}function K6(J0,f0){if(L0=!1,v1)v1=!1,G4();k0=!0;var C0=Z0;try{if(U)try{return e1(J0,f0)}catch(M1){if(e!==null){var K1=FF.unstable_now();n(e,K1),e.isQueued=!1}throw M1}else return e1(J0,f0)}finally{e=null,Z0=C0,k0=!1}}function e1(J0,f0){var C0=f0;Q1(C0),e=G(c0);while(e!==null&&!H){if(e.expirationTime>C0&&(!J0||Y6()))break;var K1=e.callback;if(typeof K1==="function"){e.callback=null,Z0=e.priorityLevel;var M1=e.expirationTime<=C0,G6=K1(M1);if(C0=FF.unstable_now(),typeof G6==="function")e.callback=G6;else if(e===G(c0))_(c0);Q1(C0)}else _(c0);e=G(c0)}if(e!==null)return!0;else{var S1=G(W0);if(S1!==null)c6(R1,S1.startTime-C0);return!1}}function i1(J0,f0){switch(J0){case T:case R:case V:case I:case l:break;default:J0=V}var C0=Z0;Z0=J0;try{return f0()}finally{Z0=C0}}function U6(J0){var f0;switch(Z0){case T:case R:case V:f0=V;break;default:f0=Z0;break}var C0=Z0;Z0=f0;try{return J0()}finally{Z0=C0}}function h1(J0){var f0=Z0;return function(){var C0=Z0;Z0=f0;try{return J0.apply(this,arguments)}finally{Z0=C0}}}function g1(J0,f0,C0){var K1=FF.unstable_now(),M1;if(typeof C0==="object"&&C0!==null){var G6=C0.delay;if(typeof G6==="number"&&G6>0)M1=K1+G6;else M1=K1}else M1=K1;var S1;switch(J0){case T:S1=p;break;case R:S1=X0;break;case l:S1=z1;break;case I:S1=n0;break;case V:default:S1=P0;break}var _6=M1+S1,r0={id:S0++,callback:f0,priorityLevel:J0,startTime:M1,expirationTime:_6,sortIndex:-1};if(M1>K1){if(r0.sortIndex=M1,N(W0,r0),G(c0)===null&&r0===G(W0)){if(v1)G4();else v1=!0;c6(R1,M1-K1)}}else if(r0.sortIndex=_6,N(c0,r0),!L0&&!k0)L0=!0,z6(K6);return r0}function v6(){}function D6(){if(!L0&&!k0)L0=!0,z6(K6)}function p1(){return G(c0)}function f6(J0){J0.callback=null}function T6(){return Z0}var u1=!1,l0=null,M6=-1,W6=B,b6=-1;function Y6(){var J0=FF.unstable_now()-b6;if(J0<W6)return!1;return!0}function X5(){}function c1(J0){if(J0<0||J0>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(J0>0)W6=Math.floor(1000/J0);else W6=B}var p6=function(){if(l0!==null){var J0=FF.unstable_now();b6=J0;var f0=!0,C0=!0;try{C0=l0(f0,J0)}finally{if(C0)y1();else u1=!1,l0=null}}else u1=!1},y1;if(typeof a1==="function")y1=function(){a1(p6)};else if(typeof MessageChannel<"u"){var r6=new MessageChannel,r1=r6.port2;r6.port1.onmessage=p6,y1=function(){r1.postMessage(null)}}else y1=function(){R6(p6,0)};function z6(J0){if(l0=J0,!u1)u1=!0,y1()}function c6(J0,f0){M6=R6(function(){J0(FF.unstable_now())},f0)}function G4(){s1(M6),M6=-1}var O6=X5,k6=null;if(FF.unstable_IdlePriority=l,FF.unstable_ImmediatePriority=T,FF.unstable_LowPriority=I,FF.unstable_NormalPriority=V,FF.unstable_Profiling=k6,FF.unstable_UserBlockingPriority=R,FF.unstable_cancelCallback=f6,FF.unstable_continueExecution=D6,FF.unstable_forceFrameRate=c1,FF.unstable_getCurrentPriorityLevel=T6,FF.unstable_getFirstCallbackNode=p1,FF.unstable_next=U6,FF.unstable_pauseExecution=v6,FF.unstable_requestPaint=O6,FF.unstable_runWithPriority=i1,FF.unstable_scheduleCallback=g1,FF.unstable_shouldYield=Y6,FF.unstable_wrapCallback=h1,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Nq=Ev((RF)=>{var d3=Q0(Z6()),C1=Q0(Lq());(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=d3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=!1;function B(v){U=v}function N(v){if(!U){for(var b=arguments.length,z=Array(b>1?b-1:0),Q=1;Q<b;Q++)z[Q-1]=arguments[Q];_("warn",v,z)}}function G(v){if(!U){for(var b=arguments.length,z=Array(b>1?b-1:0),Q=1;Q<b;Q++)z[Q-1]=arguments[Q];_("error",v,z)}}function _(v,b,z){{var Q=H.ReactDebugCurrentFrame,X=Q.getStackAddendum();if(X!=="")b+="%s",z=z.concat([X]);var Z=z.map(function(J){return String(J)});Z.unshift("Warning: "+b),Function.prototype.apply.call(console[v],console,Z)}}var F=0,P=1,E=2,T=3,R=4,V=5,I=6,l=7,n=8,b0=9,t=10,a=11,K0=12,o=13,p=14,X0=15,P0=16,n0=17,z1=18,c0=19,W0=21,S0=22,e=23,Z0=24,k0=25,L0=!0,v1=!1,R6=!1,s1=!1,a1=!1,u0=!0,Q1=!1,R1=!0,K6=!0,e1=!0,i1=!0,U6=new Set,h1={},g1={};function v6(v,b){D6(v,b),D6(v+"Capture",b)}function D6(v,b){if(h1[v])G("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",v);h1[v]=b;{var z=v.toLowerCase();if(g1[z]=v,v==="onDoubleClick")g1.ondblclick=v}for(var Q=0;Q<b.length;Q++)U6.add(b[Q])}var p1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",f6=Object.prototype.hasOwnProperty;function T6(v){{var b=typeof Symbol==="function"&&Symbol.toStringTag,z=b&&v[Symbol.toStringTag]||v.constructor.name||"Object";return z}}function u1(v){try{return l0(v),!1}catch(b){return!0}}function l0(v){return""+v}function M6(v,b){if(u1(v))return G("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",b,T6(v)),l0(v)}function W6(v){if(u1(v))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",T6(v)),l0(v)}function b6(v,b){if(u1(v))return G("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",b,T6(v)),l0(v)}function Y6(v,b){if(u1(v))return G("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",b,T6(v)),l0(v)}function X5(v){if(u1(v))return G("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",T6(v)),l0(v)}function c1(v){if(u1(v))return G("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",T6(v)),l0(v)}var p6=0,y1=1,r6=2,r1=3,z6=4,c6=5,G4=6,O6=":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",k6=O6+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",J0=new RegExp("^["+O6+"]["+k6+"]*$"),f0={},C0={};function K1(v){if(f6.call(C0,v))return!0;if(f6.call(f0,v))return!1;if(J0.test(v))return C0[v]=!0,!0;return f0[v]=!0,G("Invalid attribute name: `%s`",v),!1}function M1(v,b,z){if(b!==null)return b.type===p6;if(z)return!1;if(v.length>2&&(v[0]==="o"||v[0]==="O")&&(v[1]==="n"||v[1]==="N"))return!0;return!1}function G6(v,b,z,Q){if(z!==null&&z.type===p6)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(Q)return!1;if(z!==null)return!z.acceptsBooleans;else{var X=v.toLowerCase().slice(0,5);return X!=="data-"&&X!=="aria-"}}default:return!1}}function S1(v,b,z,Q){if(b===null||typeof b>"u")return!0;if(G6(v,b,z,Q))return!0;if(Q)return!1;if(z!==null)switch(z.type){case r1:return!b;case z6:return b===!1;case c6:return isNaN(b);case G4:return isNaN(b)||b<1}return!1}function _6(v){return i0.hasOwnProperty(v)?i0[v]:null}function r0(v,b,z,Q,X,Z,J){this.acceptsBooleans=b===r6||b===r1||b===z6,this.attributeName=Q,this.attributeNamespace=X,this.mustUseProperty=z,this.propertyName=v,this.type=b,this.sanitizeURL=Z,this.removeEmptyString=J}var i0={},P4=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];P4.forEach(function(v){i0[v]=new r0(v,p6,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var b=v[0],z=v[1];i0[b]=new r0(b,y1,!1,z,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){i0[v]=new r0(v,r6,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){i0[v]=new r0(v,r6,!1,v,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(v){i0[v]=new r0(v,r1,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){i0[v]=new r0(v,r1,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){i0[v]=new r0(v,z6,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){i0[v]=new r0(v,G4,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){i0[v]=new r0(v,c6,!1,v.toLowerCase(),null,!1,!1)});var y6=/[\-\:]([a-z])/g,W4=function(v){return v[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(v){var b=v.replace(y6,W4);i0[b]=new r0(b,y1,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(v){var b=v.replace(y6,W4);i0[b]=new r0(b,y1,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var b=v.replace(y6,W4);i0[b]=new r0(b,y1,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){i0[v]=new r0(v,y1,!1,v.toLowerCase(),null,!1,!1)});var w5="xlinkHref";i0[w5]=new r0("xlinkHref",y1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){i0[v]=new r0(v,y1,!1,v.toLowerCase(),null,!0,!0)});var Z5=/^[\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,I5=!1;function r4(v){if(!I5&&Z5.test(v))I5=!0,G("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(v))}function $4(v,b,z,Q){if(Q.mustUseProperty){var X=Q.propertyName;return v[X]}else{if(M6(z,b),Q.sanitizeURL)r4(""+z);var Z=Q.attributeName,J=null;if(Q.type===z6){if(v.hasAttribute(Z)){var Y=v.getAttribute(Z);if(Y==="")return!0;if(S1(b,z,Q,!1))return Y;if(Y===""+z)return z;return Y}}else if(v.hasAttribute(Z)){if(S1(b,z,Q,!1))return v.getAttribute(Z);if(Q.type===r1)return z;J=v.getAttribute(Z)}if(S1(b,z,Q,!1))return J===null?z:J;else if(J===""+z)return z;else return J}}function J5(v,b,z,Q){{if(!K1(b))return;if(!v.hasAttribute(b))return z===void 0?void 0:null;var X=v.getAttribute(b);if(M6(z,b),X===""+z)return z;return X}}function J1(v,b,z,Q){var X=_6(b);if(M1(b,X,Q))return;if(S1(b,z,X,Q))z=null;if(Q||X===null){if(K1(b)){var Z=b;if(z===null)v.removeAttribute(Z);else M6(z,b),v.setAttribute(Z,""+z)}return}var J=X.mustUseProperty;if(J){var Y=X.propertyName;if(z===null){var $=X.type;v[Y]=$===r1?!1:""}else v[Y]=z;return}var{attributeName:q,attributeNamespace:O}=X;if(z===null)v.removeAttribute(q);else{var k=X.type,M;if(k===r1||k===z6&&z===!0)M="";else if(M6(z,q),M=""+z,X.sanitizeURL)r4(M.toString());if(O)v.setAttributeNS(O,q,M);else v.setAttribute(q,M)}}var k1=Symbol.for("react.element"),m1=Symbol.for("react.portal"),B1=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),L=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),Y0=Symbol.for("react.memo"),w0=Symbol.for("react.lazy"),A0=Symbol.for("react.scope"),j=Symbol.for("react.debug_trace_mode"),z0=Symbol.for("react.offscreen"),V0=Symbol.for("react.legacy_hidden"),H1=Symbol.for("react.cache"),w1=Symbol.for("react.tracing_marker"),_4=Symbol.iterator,d4="@@iterator";function n1(v){if(v===null||typeof v!=="object")return null;var b=_4&&v[_4]||v[d4];if(typeof b==="function")return b;return null}var e0=Object.assign,o5=0,V5,rb,nb,tb,sb,eb,v8;function b8(){}b8.__reactDisabledLog=!0;function e3(){{if(o5===0){V5=console.log,rb=console.info,nb=console.warn,tb=console.error,sb=console.group,eb=console.groupCollapsed,v8=console.groupEnd;var v={configurable:!0,enumerable:!0,value:b8,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}o5++}}function CX(){{if(o5--,o5===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e0({},v,{value:V5}),info:e0({},v,{value:rb}),warn:e0({},v,{value:nb}),error:e0({},v,{value:tb}),group:e0({},v,{value:sb}),groupCollapsed:e0({},v,{value:eb}),groupEnd:e0({},v,{value:v8})})}if(o5<0)G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z8=H.ReactCurrentDispatcher,s7;function n4(v,b,z){{if(s7===void 0)try{throw Error()}catch(X){var Q=X.stack.trim().match(/\n( *(at )?)/);s7=Q&&Q[1]||""}return`
24
- `+s7+v}}var P7=!1,W7;{var dv=typeof WeakMap==="function"?WeakMap:Map;W7=new dv}function Q8(v,b){if(!v||P7)return"";{var z=W7.get(v);if(z!==void 0)return z}var Q;P7=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=z8.current,z8.current=null,e3();try{if(b){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(S){Q=S}Reflect.construct(v,[],J)}else{try{J.call()}catch(S){Q=S}v.call(J.prototype)}}else{try{throw Error()}catch(S){Q=S}v()}}catch(S){if(S&&Q&&typeof S.stack==="string"){var Y=S.stack.split(`
25
- `),$=Q.stack.split(`
26
- `),q=Y.length-1,O=$.length-1;while(q>=1&&O>=0&&Y[q]!==$[O])O--;for(;q>=1&&O>=0;q--,O--)if(Y[q]!==$[O]){if(q!==1||O!==1)do if(q--,O--,O<0||Y[q]!==$[O]){var k=`
27
- `+Y[q].replace(" at new "," at ");if(v.displayName&&k.includes("<anonymous>"))k=k.replace("<anonymous>",v.displayName);if(typeof v==="function")W7.set(v,k);return k}while(q>=1&&O>=0);break}}}finally{P7=!1,z8.current=Z,CX(),Error.prepareStackTrace=X}var M=v?v.displayName||v.name:"",h=M?n4(M):"";if(typeof v==="function")W7.set(v,h);return h}function vz(v,b,z){return Q8(v,!0)}function X8(v,b,z){return Q8(v,!1)}function hX(v){var b=v.prototype;return!!(b&&b.isReactComponent)}function _7(v,b,z){if(v==null)return"";if(typeof v==="function")return Q8(v,hX(v));if(typeof v==="string")return n4(v);switch(v){case y:return n4("Suspense");case s:return n4("SuspenseList")}if(typeof v==="object")switch(v.$$typeof){case w:return X8(v.render);case Y0:return _7(v.type,b,z);case w0:{var Q=v,X=Q._payload,Z=Q._init;try{return _7(Z(X),b,z)}catch(J){}}}return""}function bz(v){var b=v._debugOwner?v._debugOwner.type:null,z=v._debugSource;switch(v.tag){case V:return n4(v.type);case P0:return n4("Lazy");case o:return n4("Suspense");case c0:return n4("SuspenseList");case F:case E:case X0:return X8(v.type);case a:return X8(v.type.render);case P:return vz(v.type);default:return""}}function Z8(v){try{var b="",z=v;do b+=bz(z),z=z.return;while(z);return b}catch(Q){return`
28
- Error generating stack: `+Q.message+`
29
- `+Q.stack}}function av(v,b,z){var Q=v.displayName;if(Q)return Q;var X=b.displayName||b.name||"";return X!==""?z+"("+X+")":z}function zz(v){return v.displayName||"Context"}function q1(v){if(v==null)return null;if(typeof v.tag==="number")G("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof v==="function")return v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case B1:return"Fragment";case m1:return"Portal";case m:return"Profiler";case A:return"StrictMode";case y:return"Suspense";case s:return"SuspenseList"}if(typeof v==="object")switch(v.$$typeof){case L:var b=v;return zz(b)+".Consumer";case x:var z=v;return zz(z._context)+".Provider";case w:return av(v,v.render,"ForwardRef");case Y0:var Q=v.displayName||null;if(Q!==null)return Q;return q1(v.type)||"Memo";case w0:{var X=v,Z=X._payload,J=X._init;try{return q1(J(Z))}catch(Y){return null}}}return null}function Qz(v,b,z){var Q=b.displayName||b.name||"";return v.displayName||(Q!==""?z+"("+Q+")":z)}function J8(v){return v.displayName||"Context"}function t0(v){var{tag:b,type:z}=v;switch(b){case Z0:return"Cache";case b0:var Q=z;return J8(Q)+".Consumer";case t:var X=z;return J8(X._context)+".Provider";case z1:return"DehydratedFragment";case a:return Qz(z,z.render,"ForwardRef");case l:return"Fragment";case V:return z;case R:return"Portal";case T:return"Root";case I:return"Text";case P0:return q1(z);case n:if(z===A)return"StrictMode";return"Mode";case S0:return"Offscreen";case K0:return"Profiler";case W0:return"Scope";case o:return"Suspense";case c0:return"SuspenseList";case k0:return"TracingMarker";case P:case F:case n0:case E:case p:case X0:if(typeof z==="function")return z.displayName||z.name||null;if(typeof z==="string")return z;break}return null}var Xz=H.ReactDebugCurrentFrame,K4=null,e7=!1;function F7(){{if(K4===null)return null;var v=K4._debugOwner;if(v!==null&&typeof v<"u")return t0(v)}return null}function Zz(){{if(K4===null)return"";return Z8(K4)}}function j6(){Xz.getCurrentStack=null,K4=null,e7=!1}function q6(v){Xz.getCurrentStack=v===null?null:Zz,K4=v,e7=!1}function Jz(){return K4}function a4(v){e7=v}function f4(v){return""+v}function D5(v){switch(typeof v){case"boolean":case"number":case"string":case"undefined":return v;case"object":return c1(v),v;default:return""}}var SX={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function cv(v,b){{if(!(SX[b.type]||b.onChange||b.onInput||b.readOnly||b.disabled||b.value==null))G("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`.");if(!(b.onChange||b.readOnly||b.disabled||b.checked==null))G("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 vv(v){var{type:b,nodeName:z}=v;return z&&z.toLowerCase()==="input"&&(b==="checkbox"||b==="radio")}function Hz(v){return v._valueTracker}function R7(v){v._valueTracker=null}function Yz(v){var b="";if(!v)return b;if(vv(v))b=v.checked?"true":"false";else b=v.value;return b}function Gz(v){var b=vv(v)?"checked":"value",z=Object.getOwnPropertyDescriptor(v.constructor.prototype,b);c1(v[b]);var Q=""+v[b];if(v.hasOwnProperty(b)||typeof z>"u"||typeof z.get!=="function"||typeof z.set!=="function")return;var{get:X,set:Z}=z;Object.defineProperty(v,b,{configurable:!0,get:function(){return X.call(this)},set:function(Y){c1(Y),Q=""+Y,Z.call(this,Y)}}),Object.defineProperty(v,b,{enumerable:z.enumerable});var J={getValue:function(){return Q},setValue:function(Y){c1(Y),Q=""+Y},stopTracking:function(){R7(v),delete v[b]}};return J}function x5(v){if(Hz(v))return;v._valueTracker=Gz(v)}function yv(v){if(!v)return!1;var b=Hz(v);if(!b)return!0;var z=b.getValue(),Q=Yz(v);if(Q!==z)return b.setValue(Q),!0;return!1}function M7(v){if(v=v||(typeof document<"u"?document:void 0),typeof v>"u")return null;try{return v.activeElement||v.body}catch(b){return v.body}}var jv=!1,$z=!1,Kz=!1,Uz=!1;function qz(v){var b=v.type==="checkbox"||v.type==="radio";return b?v.checked!=null:v.value!=null}function K(v,b){var z=v,Q=b.checked,X=e0({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Q!=null?Q:z._wrapperState.initialChecked});return X}function W(v,b){{if(cv("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!$z)G("%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://reactjs.org/link/controlled-components",F7()||"A component",b.type),$z=!0;if(b.value!==void 0&&b.defaultValue!==void 0&&!jv)G("%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://reactjs.org/link/controlled-components",F7()||"A component",b.type),jv=!0}var z=v,Q=b.defaultValue==null?"":b.defaultValue;z._wrapperState={initialChecked:b.checked!=null?b.checked:b.defaultChecked,initialValue:D5(b.value!=null?b.value:Q),controlled:qz(b)}}function C(v,b){var z=v,Q=b.checked;if(Q!=null)J1(z,"checked",Q,!1)}function u(v,b){var z=v;{var Q=qz(b);if(!z._wrapperState.controlled&&Q&&!Uz)G("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://reactjs.org/link/controlled-components"),Uz=!0;if(z._wrapperState.controlled&&!Q&&!Kz)G("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://reactjs.org/link/controlled-components"),Kz=!0}C(v,b);var X=D5(b.value),Z=b.type;if(X!=null){if(Z==="number"){if(X===0&&z.value===""||z.value!=X)z.value=f4(X)}else if(z.value!==f4(X))z.value=f4(X)}else if(Z==="submit"||Z==="reset"){z.removeAttribute("value");return}if(b.hasOwnProperty("value"))y0(z,b.type,X);else if(b.hasOwnProperty("defaultValue"))y0(z,b.type,D5(b.defaultValue));if(b.checked==null&&b.defaultChecked!=null)z.defaultChecked=!!b.defaultChecked}function v0(v,b,z){var Q=v;if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var X=b.type,Z=X==="submit"||X==="reset";if(Z&&(b.value===void 0||b.value===null))return;var J=f4(Q._wrapperState.initialValue);if(!z){if(J!==Q.value)Q.value=J}Q.defaultValue=J}var Y=Q.name;if(Y!=="")Q.name="";if(Q.defaultChecked=!Q.defaultChecked,Q.defaultChecked=!!Q._wrapperState.initialChecked,Y!=="")Q.name=Y}function m0(v,b){var z=v;u(z,b),R0(z,b)}function R0(v,b){var z=b.name;if(b.type==="radio"&&z!=null){var Q=v;while(Q.parentNode)Q=Q.parentNode;M6(z,"name");var X=Q.querySelectorAll("input[name="+JSON.stringify(""+z)+'][type="radio"]');for(var Z=0;Z<X.length;Z++){var J=X[Z];if(J===v||J.form!==v.form)continue;var Y=vQ(J);if(!Y)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");yv(J),u(J,Y)}}}function y0(v,b,z){if(b!=="number"||M7(v.ownerDocument)!==v){if(z==null)v.defaultValue=f4(v._wrapperState.initialValue);else if(v.defaultValue!==f4(z))v.defaultValue=f4(z)}}var Y1=!1,D1=!1,j1=!1;function o1(v,b){{if(b.value==null){if(typeof b.children==="object"&&b.children!==null)d3.Children.forEach(b.children,function(z){if(z==null)return;if(typeof z==="string"||typeof z==="number")return;if(!D1)D1=!0,G("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")});else if(b.dangerouslySetInnerHTML!=null){if(!j1)j1=!0,G("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")}}if(b.selected!=null&&!Y1)G("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Y1=!0}}function Q6(v,b){if(b.value!=null)v.setAttribute("value",f4(D5(b.value)))}var L6=Array.isArray;function N1(v){return L6(v)}var bv=!1;function ov(){var v=F7();if(v)return`
30
-
31
- Check the render method of \``+v+"`.";return""}var H8=["value","defaultValue"];function gX(v){{cv("select",v);for(var b=0;b<H8.length;b++){var z=H8[b];if(v[z]==null)continue;var Q=N1(v[z]);if(v.multiple&&!Q)G("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",z,ov());else if(!v.multiple&&Q)G("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",z,ov())}}}function l5(v,b,z,Q){var X=v.options;if(b){var Z=z,J={};for(var Y=0;Y<Z.length;Y++)J["$"+Z[Y]]=!0;for(var $=0;$<X.length;$++){var q=J.hasOwnProperty("$"+X[$].value);if(X[$].selected!==q)X[$].selected=q;if(q&&Q)X[$].defaultSelected=!0}}else{var O=f4(D5(z)),k=null;for(var M=0;M<X.length;M++){if(X[M].value===O){if(X[M].selected=!0,Q)X[M].defaultSelected=!0;return}if(k===null&&!X[M].disabled)k=X[M]}if(k!==null)k.selected=!0}}function Y8(v,b){return e0({},b,{value:void 0})}function G8(v,b){var z=v;if(gX(b),z._wrapperState={wasMultiple:!!b.multiple},b.value!==void 0&&b.defaultValue!==void 0&&!bv)G("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://reactjs.org/link/controlled-components"),bv=!0}function uX(v,b){var z=v;z.multiple=!!b.multiple;var Q=b.value;if(Q!=null)l5(z,!!b.multiple,Q,!1);else if(b.defaultValue!=null)l5(z,!!b.multiple,b.defaultValue,!0)}function tq(v,b){var z=v,Q=z._wrapperState.wasMultiple;z._wrapperState.wasMultiple=!!b.multiple;var X=b.value;if(X!=null)l5(z,!!b.multiple,X,!1);else if(Q!==!!b.multiple)if(b.defaultValue!=null)l5(z,!!b.multiple,b.defaultValue,!0);else l5(z,!!b.multiple,b.multiple?[]:"",!1)}function sq(v,b){var z=v,Q=b.value;if(Q!=null)l5(z,!!b.multiple,Q,!1)}var JG=!1;function mX(v,b){var z=v;if(b.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var Q=e0({},b,{value:void 0,defaultValue:void 0,children:f4(z._wrapperState.initialValue)});return Q}function HG(v,b){var z=v;if(cv("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!JG)G("%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://reactjs.org/link/controlled-components",F7()||"A component"),JG=!0;var Q=b.value;if(Q==null){var{children:X,defaultValue:Z}=b;if(X!=null){G("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(Z!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(N1(X)){if(X.length>1)throw Error("<textarea> can only have at most one child.");X=X[0]}Z=X}}if(Z==null)Z="";Q=Z}z._wrapperState={initialValue:D5(Q)}}function YG(v,b){var z=v,Q=D5(b.value),X=D5(b.defaultValue);if(Q!=null){var Z=f4(Q);if(Z!==z.value)z.value=Z;if(b.defaultValue==null&&z.defaultValue!==Z)z.defaultValue=Z}if(X!=null)z.defaultValue=f4(X)}function GG(v,b){var z=v,Q=z.textContent;if(Q===z._wrapperState.initialValue){if(Q!==""&&Q!==null)z.value=Q}}function eq(v,b){YG(v,b)}var i5="http://www.w3.org/1999/xhtml",vB="http://www.w3.org/1998/Math/MathML",dX="http://www.w3.org/2000/svg";function aX(v){switch(v){case"svg":return dX;case"math":return vB;default:return i5}}function cX(v,b){if(v==null||v===i5)return aX(b);if(v===dX&&b==="foreignObject")return i5;return v}var bB=function(v){if(typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction)return function(b,z,Q,X){MSApp.execUnsafeLocalFunction(function(){return v(b,z,Q,X)})};else return v},Bz,$G=bB(function(v,b){if(v.namespaceURI===dX){if(!("innerHTML"in v)){Bz=Bz||document.createElement("div"),Bz.innerHTML="<svg>"+b.valueOf().toString()+"</svg>";var z=Bz.firstChild;while(v.firstChild)v.removeChild(v.firstChild);while(z.firstChild)v.appendChild(z.firstChild);return}}v.innerHTML=b}),T4=1,p5=3,w6=8,r5=9,yX=11,Oz=function(v,b){if(b){var z=v.firstChild;if(z&&z===v.lastChild&&z.nodeType===p5){z.nodeValue=b;return}}v.textContent=b},zB={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],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"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],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"],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"]},$8={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function QB(v,b){return v+b.charAt(0).toUpperCase()+b.substring(1)}var XB=["Webkit","ms","Moz","O"];Object.keys($8).forEach(function(v){XB.forEach(function(b){$8[QB(b,v)]=$8[v]})});function jX(v,b,z){var Q=b==null||typeof b==="boolean"||b==="";if(Q)return"";if(!z&&typeof b==="number"&&b!==0&&!($8.hasOwnProperty(v)&&$8[v]))return b+"px";return Y6(b,v),(""+b).trim()}var ZB=/([A-Z])/g,JB=/^ms-/;function HB(v){return v.replace(ZB,"-$1").toLowerCase().replace(JB,"-ms-")}var KG=function(){};{var YB=/^(?:webkit|moz|o)[A-Z]/,GB=/^-ms-/,$B=/-(.)/g,UG=/;\s*$/,xv={},oX={},qG=!1,BG=!1,KB=function(v){return v.replace($B,function(b,z){return z.toUpperCase()})},UB=function(v){if(xv.hasOwnProperty(v)&&xv[v])return;xv[v]=!0,G("Unsupported style property %s. Did you mean %s?",v,KB(v.replace(GB,"ms-")))},qB=function(v){if(xv.hasOwnProperty(v)&&xv[v])return;xv[v]=!0,G("Unsupported vendor-prefixed style property %s. Did you mean %s?",v,v.charAt(0).toUpperCase()+v.slice(1))},BB=function(v,b){if(oX.hasOwnProperty(b)&&oX[b])return;oX[b]=!0,G(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,v,b.replace(UG,""))},OB=function(v,b){if(qG)return;qG=!0,G("`NaN` is an invalid value for the `%s` css style property.",v)},LB=function(v,b){if(BG)return;BG=!0,G("`Infinity` is an invalid value for the `%s` css style property.",v)};KG=function(v,b){if(v.indexOf("-")>-1)UB(v);else if(YB.test(v))qB(v);else if(UG.test(b))BB(v,b);if(typeof b==="number"){if(isNaN(b))OB(v,b);else if(!isFinite(b))LB(v,b)}}}var NB=KG;function AB(v){{var b="",z="";for(var Q in v){if(!v.hasOwnProperty(Q))continue;var X=v[Q];if(X!=null){var Z=Q.indexOf("--")===0;b+=z+(Z?Q:HB(Q))+":",b+=jX(Q,X,Z),z=";"}}return b||null}}function OG(v,b){var z=v.style;for(var Q in b){if(!b.hasOwnProperty(Q))continue;var X=Q.indexOf("--")===0;if(!X)NB(Q,b[Q]);var Z=jX(Q,b[Q],X);if(Q==="float")Q="cssFloat";if(X)z.setProperty(Q,Z);else z[Q]=Z}}function PB(v){return v==null||typeof v==="boolean"||v===""}function LG(v){var b={};for(var z in v){var Q=zB[z]||[z];for(var X=0;X<Q.length;X++)b[Q[X]]=z}return b}function WB(v,b){{if(!b)return;var z=LG(v),Q=LG(b),X={};for(var Z in z){var J=z[Z],Y=Q[Z];if(Y&&J!==Y){var $=J+","+Y;if(X[$])continue;X[$]=!0,G("%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.",PB(v[J])?"Removing":"Updating",J,Y)}}}}var _B={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},FB=e0({menuitem:!0},_B),RB="__html";function xX(v,b){if(!b)return;if(FB[v]){if(b.children!=null||b.dangerouslySetInnerHTML!=null)throw Error(v+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.")}if(b.dangerouslySetInnerHTML!=null){if(b.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b.dangerouslySetInnerHTML!=="object"||!(RB in b.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!b.suppressContentEditableWarning&&b.contentEditable&&b.children!=null)G("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.");if(b.style!=null&&typeof b.style!=="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.")}function zv(v,b){if(v.indexOf("-")===-1)return typeof b.is==="string";switch(v){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}}var Lz={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",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",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",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",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"},NG={"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},lv={},MB=new RegExp("^(aria)-["+k6+"]*$"),kB=new RegExp("^(aria)[A-Z]["+k6+"]*$");function wB(v,b){{if(f6.call(lv,b)&&lv[b])return!0;if(kB.test(b)){var z="aria-"+b.slice(4).toLowerCase(),Q=NG.hasOwnProperty(z)?z:null;if(Q==null)return G("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),lv[b]=!0,!0;if(b!==Q)return G("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,Q),lv[b]=!0,!0}if(MB.test(b)){var X=b.toLowerCase(),Z=NG.hasOwnProperty(X)?X:null;if(Z==null)return lv[b]=!0,!1;if(b!==Z)return G("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,Z),lv[b]=!0,!0}}return!0}function IB(v,b){{var z=[];for(var Q in b){var X=wB(v,Q);if(!X)z.push(Q)}var Z=z.map(function(J){return"`"+J+"`"}).join(", ");if(z.length===1)G("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",Z,v);else if(z.length>1)G("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",Z,v)}}function VB(v,b){if(zv(v,b))return;IB(v,b)}var AG=!1;function DB(v,b){{if(v!=="input"&&v!=="textarea"&&v!=="select")return;if(b!=null&&b.value===null&&!AG)if(AG=!0,v==="select"&&b.multiple)G("`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.",v);else G("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",v)}}var PG=function(){};{var F4={},WG=/^on./,fB=/^on[^A-Z]/,TB=new RegExp("^(aria)-["+k6+"]*$"),EB=new RegExp("^(aria)[A-Z]["+k6+"]*$");PG=function(v,b,z,Q){if(f6.call(F4,b)&&F4[b])return!0;var X=b.toLowerCase();if(X==="onfocusin"||X==="onfocusout")return G("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."),F4[b]=!0,!0;if(Q!=null){var{registrationNameDependencies:Z,possibleRegistrationNames:J}=Q;if(Z.hasOwnProperty(b))return!0;var Y=J.hasOwnProperty(X)?J[X]:null;if(Y!=null)return G("Invalid event handler property `%s`. Did you mean `%s`?",b,Y),F4[b]=!0,!0;if(WG.test(b))return G("Unknown event handler property `%s`. It will be ignored.",b),F4[b]=!0,!0}else if(WG.test(b)){if(fB.test(b))G("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b);return F4[b]=!0,!0}if(TB.test(b)||EB.test(b))return!0;if(X==="innerhtml")return G("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),F4[b]=!0,!0;if(X==="aria")return G("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),F4[b]=!0,!0;if(X==="is"&&z!==null&&z!==void 0&&typeof z!=="string")return G("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof z),F4[b]=!0,!0;if(typeof z==="number"&&isNaN(z))return G("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),F4[b]=!0,!0;var $=_6(b),q=$!==null&&$.type===p6;if(Lz.hasOwnProperty(X)){var O=Lz[X];if(O!==b)return G("Invalid DOM property `%s`. Did you mean `%s`?",b,O),F4[b]=!0,!0}else if(!q&&b!==X)return G("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.",b,X),F4[b]=!0,!0;if(typeof z==="boolean"&&G6(b,z,$,!1)){if(z)G('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()}.',z,b,b,z,b);else G('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.',z,b,b,z,b,b,b);return F4[b]=!0,!0}if(q)return!0;if(G6(b,z,$,!1))return F4[b]=!0,!1;if((z==="false"||z==="true")&&$!==null&&$.type===r1)return G("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",z,b,z==="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".',b,z),F4[b]=!0,!0;return!0}}var CB=function(v,b,z){{var Q=[];for(var X in b){var Z=PG(v,X,b[X],z);if(!Z)Q.push(X)}var J=Q.map(function(Y){return"`"+Y+"`"}).join(", ");if(Q.length===1)G("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://reactjs.org/link/attribute-behavior ",J,v);else if(Q.length>1)G("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://reactjs.org/link/attribute-behavior ",J,v)}};function hB(v,b,z){if(zv(v,b))return;CB(v,b,z)}var _G=1,lX=2,K8=4,SB=_G|lX|K8,U8=null;function gB(v){if(U8!==null)G("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.");U8=v}function uB(){if(U8===null)G("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.");U8=null}function mB(v){return v===U8}function iX(v){var b=v.target||v.srcElement||window;if(b.correspondingUseElement)b=b.correspondingUseElement;return b.nodeType===p5?b.parentNode:b}var pX=null,iv=null,pv=null;function FG(v){var b=E7(v);if(!b)return;if(typeof pX!=="function")throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var z=b.stateNode;if(z){var Q=vQ(z);pX(b.stateNode,b.type,Q)}}function dB(v){pX=v}function RG(v){if(iv)if(pv)pv.push(v);else pv=[v];else iv=v}function aB(){return iv!==null||pv!==null}function MG(){if(!iv)return;var v=iv,b=pv;if(iv=null,pv=null,FG(v),b)for(var z=0;z<b.length;z++)FG(b[z])}var kG=function(v,b){return v(b)},wG=function(){},rX=!1;function cB(){var v=aB();if(v)wG(),MG()}function IG(v,b,z){if(rX)return v(b,z);rX=!0;try{return kG(v,b,z)}finally{rX=!1,cB()}}function yB(v,b,z){kG=v,wG=z}function jB(v){return v==="button"||v==="input"||v==="select"||v==="textarea"}function oB(v,b,z){switch(v){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(z.disabled&&jB(b));default:return!1}}function q8(v,b){var z=v.stateNode;if(z===null)return null;var Q=vQ(z);if(Q===null)return null;var X=Q[b];if(oB(b,v.type,Q))return null;if(X&&typeof X!=="function")throw Error("Expected `"+b+"` listener to be a function, instead got a value of `"+typeof X+"` type.");return X}var nX=!1;if(p1)try{var B8={};Object.defineProperty(B8,"passive",{get:function(){nX=!0}}),window.addEventListener("test",B8,B8),window.removeEventListener("test",B8,B8)}catch(v){nX=!1}function VG(v,b,z,Q,X,Z,J,Y,$){var q=Array.prototype.slice.call(arguments,3);try{b.apply(z,q)}catch(O){this.onError(O)}}var DG=VG;if(typeof window<"u"&&typeof window.dispatchEvent==="function"&&typeof document<"u"&&typeof document.createEvent==="function"){var tX=document.createElement("react");DG=function(b,z,Q,X,Z,J,Y,$,q){if(typeof document>"u"||document===null)throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var O=document.createEvent("Event"),k=!1,M=!0,h=window.event,S=Object.getOwnPropertyDescriptor(window,"event");function g(){if(tX.removeEventListener(d,E0,!1),typeof window.event<"u"&&window.hasOwnProperty("event"))window.event=h}var $0=Array.prototype.slice.call(arguments,3);function E0(){k=!0,g(),z.apply(Q,$0),M=!1}var I0,X1=!1,Z1=!1;function D(f){if(I0=f.error,X1=!0,I0===null&&f.colno===0&&f.lineno===0)Z1=!0;if(f.defaultPrevented){if(I0!=null&&typeof I0==="object")try{I0._suppressLogging=!0}catch(r){}}}var d="react-"+(b?b:"invokeguardedcallback");if(window.addEventListener("error",D),tX.addEventListener(d,E0,!1),O.initEvent(d,!1,!1),tX.dispatchEvent(O),S)Object.defineProperty(window,"event",S);if(k&&M){if(!X1)I0=Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`);else if(Z1)I0=Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.");this.onError(I0)}if(window.removeEventListener("error",D),!k)return g(),VG.apply(this,arguments)}}var xB=DG,rv=!1,Nz=null,Az=!1,sX=null,lB={onError:function(v){rv=!0,Nz=v}};function eX(v,b,z,Q,X,Z,J,Y,$){rv=!1,Nz=null,xB.apply(lB,arguments)}function iB(v,b,z,Q,X,Z,J,Y,$){if(eX.apply(this,arguments),rv){var q=vZ();if(!Az)Az=!0,sX=q}}function pB(){if(Az){var v=sX;throw Az=!1,sX=null,v}}function rB(){return rv}function vZ(){if(rv){var v=Nz;return rv=!1,Nz=null,v}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function nv(v){return v._reactInternals}function nB(v){return v._reactInternals!==void 0}function tB(v,b){v._reactInternals=b}var g0=0,tv=1,I6=2,U1=4,Qv=16,O8=32,bZ=64,A1=128,n5=256,k7=512,Xv=1024,H5=2048,t5=4096,Zv=8192,Pz=16384,sB=H5|U1|bZ|k7|Xv|Pz,eB=32767,L8=32768,R4=65536,zZ=131072,fG=1048576,QZ=2097152,Jv=4194304,XZ=8388608,s5=16777216,Wz=33554432,ZZ=U1|Xv|0,JZ=I6|U1|Qv|O8|k7|t5|Zv,N8=U1|bZ|k7|Zv,sv=H5|Qv,e5=Jv|XZ|QZ,vO=H.ReactCurrentOwner;function Hv(v){var b=v,z=v;if(!v.alternate){var Q=b;do{if(b=Q,(b.flags&(I6|t5))!==g0)z=b.return;Q=b.return}while(Q)}else while(b.return)b=b.return;if(b.tag===T)return z;return null}function TG(v){if(v.tag===o){var b=v.memoizedState;if(b===null){var z=v.alternate;if(z!==null)b=z.memoizedState}if(b!==null)return b.dehydrated}return null}function EG(v){return v.tag===T?v.stateNode.containerInfo:null}function bO(v){return Hv(v)===v}function zO(v){{var b=vO.current;if(b!==null&&b.tag===P){var z=b,Q=z.stateNode;if(!Q._warnedAboutRefsInRender)G("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",t0(z)||"A component");Q._warnedAboutRefsInRender=!0}}var X=nv(v);if(!X)return!1;return Hv(X)===X}function CG(v){if(Hv(v)!==v)throw Error("Unable to find node on an unmounted component.")}function hG(v){var b=v.alternate;if(!b){var z=Hv(v);if(z===null)throw Error("Unable to find node on an unmounted component.");if(z!==v)return null;return v}var Q=v,X=b;while(!0){var Z=Q.return;if(Z===null)break;var J=Z.alternate;if(J===null){var Y=Z.return;if(Y!==null){Q=X=Y;continue}break}if(Z.child===J.child){var $=Z.child;while($){if($===Q)return CG(Z),v;if($===X)return CG(Z),b;$=$.sibling}throw Error("Unable to find node on an unmounted component.")}if(Q.return!==X.return)Q=Z,X=J;else{var q=!1,O=Z.child;while(O){if(O===Q){q=!0,Q=Z,X=J;break}if(O===X){q=!0,X=Z,Q=J;break}O=O.sibling}if(!q){O=J.child;while(O){if(O===Q){q=!0,Q=J,X=Z;break}if(O===X){q=!0,X=J,Q=Z;break}O=O.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(Q.alternate!==X)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(Q.tag!==T)throw Error("Unable to find node on an unmounted component.");if(Q.stateNode.current===Q)return v;return b}function SG(v){var b=hG(v);return b!==null?gG(b):null}function gG(v){if(v.tag===V||v.tag===I)return v;var b=v.child;while(b!==null){var z=gG(b);if(z!==null)return z;b=b.sibling}return null}function QO(v){var b=hG(v);return b!==null?uG(b):null}function uG(v){if(v.tag===V||v.tag===I)return v;var b=v.child;while(b!==null){if(b.tag!==R){var z=uG(b);if(z!==null)return z}b=b.sibling}return null}var mG=C1.unstable_scheduleCallback,XO=C1.unstable_cancelCallback,ZO=C1.unstable_shouldYield,JO=C1.unstable_requestPaint,o6=C1.unstable_now,HO=C1.unstable_getCurrentPriorityLevel,_z=C1.unstable_ImmediatePriority,HZ=C1.unstable_UserBlockingPriority,Yv=C1.unstable_NormalPriority,YO=C1.unstable_LowPriority,YZ=C1.unstable_IdlePriority,GO=C1.unstable_yieldValue,$O=C1.unstable_setDisableYieldValue,Gv=null,n6=null,q0=null,f5=!1,Y5=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function KO(v){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled)return!0;if(!b.supportsFiber)return G("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{if(K6)v=e0({},v,{getLaneLabelMap:NO,injectProfilingHooks:LO});Gv=b.inject(v),n6=b}catch(z){G("React instrumentation encountered an error: %s.",z)}if(b.checkDCE)return!0;else return!1}function UO(v,b){if(n6&&typeof n6.onScheduleFiberRoot==="function")try{n6.onScheduleFiberRoot(Gv,v,b)}catch(z){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",z)}}function qO(v,b){if(n6&&typeof n6.onCommitFiberRoot==="function")try{var z=(v.current.flags&A1)===A1;if(e1){var Q;switch(b){case j4:Q=_z;break;case b7:Q=HZ;break;case z7:Q=Yv;break;case Dz:Q=YZ;break;default:Q=Yv;break}n6.onCommitFiberRoot(Gv,v,Q,z)}else n6.onCommitFiberRoot(Gv,v,void 0,z)}catch(X){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",X)}}function BO(v){if(n6&&typeof n6.onPostCommitFiberRoot==="function")try{n6.onPostCommitFiberRoot(Gv,v)}catch(b){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",b)}}function OO(v){if(n6&&typeof n6.onCommitFiberUnmount==="function")try{n6.onCommitFiberUnmount(Gv,v)}catch(b){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",b)}}function x6(v){{if(typeof GO==="function")$O(v),B(v);if(n6&&typeof n6.setStrictMode==="function")try{n6.setStrictMode(Gv,v)}catch(b){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",b)}}}function LO(v){q0=v}function NO(){{var v=new Map,b=1;for(var z=0;z<$Z;z++){var Q=uO(b);v.set(b,Q),b*=2}return v}}function AO(v){if(q0!==null&&typeof q0.markCommitStarted==="function")q0.markCommitStarted(v)}function dG(){if(q0!==null&&typeof q0.markCommitStopped==="function")q0.markCommitStopped()}function A8(v){if(q0!==null&&typeof q0.markComponentRenderStarted==="function")q0.markComponentRenderStarted(v)}function ev(){if(q0!==null&&typeof q0.markComponentRenderStopped==="function")q0.markComponentRenderStopped()}function PO(v){if(q0!==null&&typeof q0.markComponentPassiveEffectMountStarted==="function")q0.markComponentPassiveEffectMountStarted(v)}function WO(){if(q0!==null&&typeof q0.markComponentPassiveEffectMountStopped==="function")q0.markComponentPassiveEffectMountStopped()}function _O(v){if(q0!==null&&typeof q0.markComponentPassiveEffectUnmountStarted==="function")q0.markComponentPassiveEffectUnmountStarted(v)}function FO(){if(q0!==null&&typeof q0.markComponentPassiveEffectUnmountStopped==="function")q0.markComponentPassiveEffectUnmountStopped()}function RO(v){if(q0!==null&&typeof q0.markComponentLayoutEffectMountStarted==="function")q0.markComponentLayoutEffectMountStarted(v)}function MO(){if(q0!==null&&typeof q0.markComponentLayoutEffectMountStopped==="function")q0.markComponentLayoutEffectMountStopped()}function aG(v){if(q0!==null&&typeof q0.markComponentLayoutEffectUnmountStarted==="function")q0.markComponentLayoutEffectUnmountStarted(v)}function cG(){if(q0!==null&&typeof q0.markComponentLayoutEffectUnmountStopped==="function")q0.markComponentLayoutEffectUnmountStopped()}function kO(v,b,z){if(q0!==null&&typeof q0.markComponentErrored==="function")q0.markComponentErrored(v,b,z)}function wO(v,b,z){if(q0!==null&&typeof q0.markComponentSuspended==="function")q0.markComponentSuspended(v,b,z)}function IO(v){if(q0!==null&&typeof q0.markLayoutEffectsStarted==="function")q0.markLayoutEffectsStarted(v)}function VO(){if(q0!==null&&typeof q0.markLayoutEffectsStopped==="function")q0.markLayoutEffectsStopped()}function DO(v){if(q0!==null&&typeof q0.markPassiveEffectsStarted==="function")q0.markPassiveEffectsStarted(v)}function fO(){if(q0!==null&&typeof q0.markPassiveEffectsStopped==="function")q0.markPassiveEffectsStopped()}function yG(v){if(q0!==null&&typeof q0.markRenderStarted==="function")q0.markRenderStarted(v)}function TO(){if(q0!==null&&typeof q0.markRenderYielded==="function")q0.markRenderYielded()}function jG(){if(q0!==null&&typeof q0.markRenderStopped==="function")q0.markRenderStopped()}function EO(v){if(q0!==null&&typeof q0.markRenderScheduled==="function")q0.markRenderScheduled(v)}function CO(v,b){if(q0!==null&&typeof q0.markForceUpdateScheduled==="function")q0.markForceUpdateScheduled(v,b)}function GZ(v,b){if(q0!==null&&typeof q0.markStateUpdateScheduled==="function")q0.markStateUpdateScheduled(v,b)}var h0=0,G1=1,f1=2,N6=8,T5=16,oG=Math.clz32?Math.clz32:gO,hO=Math.log,SO=Math.LN2;function gO(v){var b=v>>>0;if(b===0)return 32;return 31-(hO(b)/SO|0)|0}var $Z=31,i=0,l6=0,j0=1,vb=2,v7=4,$v=8,E5=16,P8=32,bb=4194240,W8=64,KZ=128,UZ=256,qZ=512,BZ=1024,OZ=2048,LZ=4096,NZ=8192,AZ=16384,PZ=32768,WZ=65536,_Z=131072,FZ=262144,RZ=524288,MZ=1048576,kZ=2097152,Fz=130023424,zb=4194304,wZ=8388608,IZ=16777216,VZ=33554432,DZ=67108864,xG=zb,_8=134217728,lG=268435455,F8=268435456,Kv=536870912,c4=1073741824;function uO(v){{if(v&j0)return"Sync";if(v&vb)return"InputContinuousHydration";if(v&v7)return"InputContinuous";if(v&$v)return"DefaultHydration";if(v&E5)return"Default";if(v&P8)return"TransitionHydration";if(v&bb)return"Transition";if(v&Fz)return"Retry";if(v&_8)return"SelectiveHydration";if(v&F8)return"IdleHydration";if(v&Kv)return"Idle";if(v&c4)return"Offscreen"}}var t1=-1,Rz=W8,Mz=zb;function R8(v){switch(Uv(v)){case j0:return j0;case vb:return vb;case v7:return v7;case $v:return $v;case E5:return E5;case P8:return P8;case W8:case KZ:case UZ:case qZ:case BZ:case OZ:case LZ:case NZ:case AZ:case PZ:case WZ:case _Z:case FZ:case RZ:case MZ:case kZ:return v&bb;case zb:case wZ:case IZ:case VZ:case DZ:return v&Fz;case _8:return _8;case F8:return F8;case Kv:return Kv;case c4:return c4;default:return G("Should have found matching lanes. This is a bug in React."),v}}function kz(v,b){var z=v.pendingLanes;if(z===i)return i;var Q=i,X=v.suspendedLanes,Z=v.pingedLanes,J=z&lG;if(J!==i){var Y=J&~X;if(Y!==i)Q=R8(Y);else{var $=J&Z;if($!==i)Q=R8($)}}else{var q=z&~X;if(q!==i)Q=R8(q);else if(Z!==i)Q=R8(Z)}if(Q===i)return i;if(b!==i&&b!==Q&&(b&X)===i){var O=Uv(Q),k=Uv(b);if(O>=k||O===E5&&(k&bb)!==i)return b}if((Q&v7)!==i)Q|=z&E5;var M=v.entangledLanes;if(M!==i){var h=v.entanglements,S=Q&M;while(S>0){var g=qv(S),$0=1<<g;Q|=h[g],S&=~$0}}return Q}function mO(v,b){var z=v.eventTimes,Q=t1;while(b>0){var X=qv(b),Z=1<<X,J=z[X];if(J>Q)Q=J;b&=~Z}return Q}function dO(v,b){switch(v){case j0:case vb:case v7:return b+250;case $v:case E5:case P8:case W8:case KZ:case UZ:case qZ:case BZ:case OZ:case LZ:case NZ:case AZ:case PZ:case WZ:case _Z:case FZ:case RZ:case MZ:case kZ:return b+5000;case zb:case wZ:case IZ:case VZ:case DZ:return t1;case _8:case F8:case Kv:case c4:return t1;default:return G("Should have found matching lanes. This is a bug in React."),t1}}function aO(v,b){var{pendingLanes:z,suspendedLanes:Q,pingedLanes:X,expirationTimes:Z}=v,J=z;while(J>0){var Y=qv(J),$=1<<Y,q=Z[Y];if(q===t1){if(($&Q)===i||($&X)!==i)Z[Y]=dO($,b)}else if(q<=b)v.expiredLanes|=$;J&=~$}}function cO(v){return R8(v.pendingLanes)}function fZ(v){var b=v.pendingLanes&~c4;if(b!==i)return b;if(b&c4)return c4;return i}function yO(v){return(v&j0)!==i}function TZ(v){return(v&lG)!==i}function iG(v){return(v&Fz)===v}function jO(v){var b=j0|v7|E5;return(v&b)===i}function oO(v){return(v&bb)===v}function wz(v,b){var z=vb|v7|$v|E5;return(b&z)!==i}function xO(v,b){return(b&v.expiredLanes)!==i}function pG(v){return(v&bb)!==i}function rG(){var v=Rz;if(Rz<<=1,(Rz&bb)===i)Rz=W8;return v}function lO(){var v=Mz;if(Mz<<=1,(Mz&Fz)===i)Mz=zb;return v}function Uv(v){return v&-v}function M8(v){return Uv(v)}function qv(v){return 31-oG(v)}function EZ(v){return qv(v)}function y4(v,b){return(v&b)!==i}function Qb(v,b){return(v&b)===b}function s0(v,b){return v|b}function Iz(v,b){return v&~b}function nG(v,b){return v&b}function Vz(v){return v}function iO(v,b){return v!==l6&&v<b?v:b}function CZ(v){var b=[];for(var z=0;z<$Z;z++)b.push(v);return b}function k8(v,b,z){if(v.pendingLanes|=b,b!==Kv)v.suspendedLanes=i,v.pingedLanes=i;var Q=v.eventTimes,X=EZ(b);Q[X]=z}function pO(v,b){v.suspendedLanes|=b,v.pingedLanes&=~b;var z=v.expirationTimes,Q=b;while(Q>0){var X=qv(Q),Z=1<<X;z[X]=t1,Q&=~Z}}function tG(v,b,z){v.pingedLanes|=v.suspendedLanes&b}function rO(v,b){var z=v.pendingLanes&~b;v.pendingLanes=b,v.suspendedLanes=i,v.pingedLanes=i,v.expiredLanes&=b,v.mutableReadLanes&=b,v.entangledLanes&=b;var{entanglements:Q,eventTimes:X,expirationTimes:Z}=v,J=z;while(J>0){var Y=qv(J),$=1<<Y;Q[Y]=i,X[Y]=t1,Z[Y]=t1,J&=~$}}function hZ(v,b){var z=v.entangledLanes|=b,Q=v.entanglements,X=z;while(X){var Z=qv(X),J=1<<Z;if(J&b|Q[Z]&b)Q[Z]|=b;X&=~J}}function nO(v,b){var z=Uv(b),Q;switch(z){case v7:Q=vb;break;case E5:Q=$v;break;case W8:case KZ:case UZ:case qZ:case BZ:case OZ:case LZ:case NZ:case AZ:case PZ:case WZ:case _Z:case FZ:case RZ:case MZ:case kZ:case zb:case wZ:case IZ:case VZ:case DZ:Q=P8;break;case Kv:Q=F8;break;default:Q=l6;break}if((Q&(v.suspendedLanes|b))!==l6)return l6;return Q}function sG(v,b,z){if(!Y5)return;var Q=v.pendingUpdatersLaneMap;while(z>0){var X=EZ(z),Z=1<<X,J=Q[X];J.add(b),z&=~Z}}function eG(v,b){if(!Y5)return;var{pendingUpdatersLaneMap:z,memoizedUpdaters:Q}=v;while(b>0){var X=EZ(b),Z=1<<X,J=z[X];if(J.size>0)J.forEach(function(Y){var $=Y.alternate;if($===null||!Q.has($))Q.add(Y)}),J.clear();b&=~Z}}function v$(v,b){return null}var j4=j0,b7=v7,z7=E5,Dz=Kv,w8=l6;function G5(){return w8}function i6(v){w8=v}function tO(v,b){var z=w8;try{return w8=v,b()}finally{w8=z}}function sO(v,b){return v!==0&&v<b?v:b}function eO(v,b){return v===0||v>b?v:b}function SZ(v,b){return v!==0&&v<b}function b$(v){var b=Uv(v);if(!SZ(j4,b))return j4;if(!SZ(b7,b))return b7;if(TZ(b))return z7;return Dz}function fz(v){var b=v.current.memoizedState;return b.isDehydrated}var z$;function vL(v){z$=v}function bL(v){z$(v)}var gZ;function zL(v){gZ=v}var Q$;function QL(v){Q$=v}var X$;function XL(v){X$=v}var Z$;function ZL(v){Z$=v}var uZ=!1,Tz=[],w7=null,I7=null,V7=null,I8=new Map,V8=new Map,D7=[],JL=["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","submit"];function HL(v){return JL.indexOf(v)>-1}function YL(v,b,z,Q,X){return{blockedOn:v,domEventName:b,eventSystemFlags:z,nativeEvent:X,targetContainers:[Q]}}function J$(v,b){switch(v){case"focusin":case"focusout":w7=null;break;case"dragenter":case"dragleave":I7=null;break;case"mouseover":case"mouseout":V7=null;break;case"pointerover":case"pointerout":{var z=b.pointerId;I8.delete(z);break}case"gotpointercapture":case"lostpointercapture":{var Q=b.pointerId;V8.delete(Q);break}}}function D8(v,b,z,Q,X,Z){if(v===null||v.nativeEvent!==Z){var J=YL(b,z,Q,X,Z);if(b!==null){var Y=E7(b);if(Y!==null)gZ(Y)}return J}v.eventSystemFlags|=Q;var $=v.targetContainers;if(X!==null&&$.indexOf(X)===-1)$.push(X);return v}function GL(v,b,z,Q,X){switch(b){case"focusin":{var Z=X;return w7=D8(w7,v,b,z,Q,Z),!0}case"dragenter":{var J=X;return I7=D8(I7,v,b,z,Q,J),!0}case"mouseover":{var Y=X;return V7=D8(V7,v,b,z,Q,Y),!0}case"pointerover":{var $=X,q=$.pointerId;return I8.set(q,D8(I8.get(q)||null,v,b,z,Q,$)),!0}case"gotpointercapture":{var O=X,k=O.pointerId;return V8.set(k,D8(V8.get(k)||null,v,b,z,Q,O)),!0}}return!1}function H$(v){var b=Lv(v.target);if(b!==null){var z=Hv(b);if(z!==null){var Q=z.tag;if(Q===o){var X=TG(z);if(X!==null){v.blockedOn=X,Z$(v.priority,function(){Q$(z)});return}}else if(Q===T){var Z=z.stateNode;if(fz(Z)){v.blockedOn=EG(z);return}}}}v.blockedOn=null}function $L(v){var b=X$(),z={blockedOn:null,target:v,priority:b},Q=0;for(;Q<D7.length;Q++)if(!SZ(b,D7[Q].priority))break;if(D7.splice(Q,0,z),Q===0)H$(z)}function Ez(v){if(v.blockedOn!==null)return!1;var b=v.targetContainers;while(b.length>0){var z=b[0],Q=aZ(v.domEventName,v.eventSystemFlags,z,v.nativeEvent);if(Q===null){var X=v.nativeEvent,Z=new X.constructor(X.type,X);gB(Z),X.target.dispatchEvent(Z),uB()}else{var J=E7(Q);if(J!==null)gZ(J);return v.blockedOn=Q,!1}b.shift()}return!0}function Y$(v,b,z){if(Ez(v))z.delete(b)}function KL(){if(uZ=!1,w7!==null&&Ez(w7))w7=null;if(I7!==null&&Ez(I7))I7=null;if(V7!==null&&Ez(V7))V7=null;I8.forEach(Y$),V8.forEach(Y$)}function f8(v,b){if(v.blockedOn===b){if(v.blockedOn=null,!uZ)uZ=!0,C1.unstable_scheduleCallback(C1.unstable_NormalPriority,KL)}}function T8(v){if(Tz.length>0){f8(Tz[0],v);for(var b=1;b<Tz.length;b++){var z=Tz[b];if(z.blockedOn===v)z.blockedOn=null}}if(w7!==null)f8(w7,v);if(I7!==null)f8(I7,v);if(V7!==null)f8(V7,v);var Q=function(Y){return f8(Y,v)};I8.forEach(Q),V8.forEach(Q);for(var X=0;X<D7.length;X++){var Z=D7[X];if(Z.blockedOn===v)Z.blockedOn=null}while(D7.length>0){var J=D7[0];if(J.blockedOn!==null)break;else if(H$(J),J.blockedOn===null)D7.shift()}}var Xb=H.ReactCurrentBatchConfig,mZ=!0;function G$(v){mZ=!!v}function UL(){return mZ}function qL(v,b,z){var Q=$$(b),X;switch(Q){case j4:X=BL;break;case b7:X=OL;break;case z7:default:X=dZ;break}return X.bind(null,b,z,v)}function BL(v,b,z,Q){var X=G5(),Z=Xb.transition;Xb.transition=null;try{i6(j4),dZ(v,b,z,Q)}finally{i6(X),Xb.transition=Z}}function OL(v,b,z,Q){var X=G5(),Z=Xb.transition;Xb.transition=null;try{i6(b7),dZ(v,b,z,Q)}finally{i6(X),Xb.transition=Z}}function dZ(v,b,z,Q){if(!mZ)return;LL(v,b,z,Q)}function LL(v,b,z,Q){var X=aZ(v,b,z,Q);if(X===null){vJ(v,b,Q,Cz,z),J$(v,Q);return}if(GL(X,v,b,z,Q)){Q.stopPropagation();return}if(J$(v,Q),b&K8&&HL(v)){while(X!==null){var Z=E7(X);if(Z!==null)bL(Z);var J=aZ(v,b,z,Q);if(J===null)vJ(v,b,Q,Cz,z);if(J===X)break;X=J}if(X!==null)Q.stopPropagation();return}vJ(v,b,Q,null,z)}var Cz=null;function aZ(v,b,z,Q){Cz=null;var X=iX(Q),Z=Lv(X);if(Z!==null){var J=Hv(Z);if(J===null)Z=null;else{var Y=J.tag;if(Y===o){var $=TG(J);if($!==null)return $;Z=null}else if(Y===T){var q=J.stateNode;if(fz(q))return EG(J);Z=null}else if(J!==Z)Z=null}}return Cz=Z,null}function $$(v){switch(v){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"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 j4;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return b7;case"message":{var b=HO();switch(b){case _z:return j4;case HZ:return b7;case Yv:case YO:return z7;case YZ:return Dz;default:return z7}}default:return z7}}function NL(v,b,z){return v.addEventListener(b,z,!1),z}function AL(v,b,z){return v.addEventListener(b,z,!0),z}function PL(v,b,z,Q){return v.addEventListener(b,z,{capture:!0,passive:Q}),z}function WL(v,b,z,Q){return v.addEventListener(b,z,{passive:Q}),z}var E8=null,cZ=null,C8=null;function _L(v){return E8=v,cZ=U$(),!0}function FL(){E8=null,cZ=null,C8=null}function K$(){if(C8)return C8;var v,b=cZ,z=b.length,Q,X=U$(),Z=X.length;for(v=0;v<z;v++)if(b[v]!==X[v])break;var J=z-v;for(Q=1;Q<=J;Q++)if(b[z-Q]!==X[Z-Q])break;var Y=Q>1?1-Q:void 0;return C8=X.slice(v,Y),C8}function U$(){if("value"in E8)return E8.value;return E8.textContent}function hz(v){var b,z=v.keyCode;if("charCode"in v){if(b=v.charCode,b===0&&z===13)b=13}else b=z;if(b===10)b=13;if(b>=32||b===13)return b;return 0}function Sz(){return!0}function q$(){return!1}function o4(v){function b(z,Q,X,Z,J){this._reactName=z,this._targetInst=X,this.type=Q,this.nativeEvent=Z,this.target=J,this.currentTarget=null;for(var Y in v){if(!v.hasOwnProperty(Y))continue;var $=v[Y];if($)this[Y]=$(Z);else this[Y]=Z[Y]}var q=Z.defaultPrevented!=null?Z.defaultPrevented:Z.returnValue===!1;if(q)this.isDefaultPrevented=Sz;else this.isDefaultPrevented=q$;return this.isPropagationStopped=q$,this}return e0(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var z=this.nativeEvent;if(!z)return;if(z.preventDefault)z.preventDefault();else if(typeof z.returnValue!=="unknown")z.returnValue=!1;this.isDefaultPrevented=Sz},stopPropagation:function(){var z=this.nativeEvent;if(!z)return;if(z.stopPropagation)z.stopPropagation();else if(typeof z.cancelBubble!=="unknown")z.cancelBubble=!0;this.isPropagationStopped=Sz},persist:function(){},isPersistent:Sz}),b}var Zb={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(v){return v.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yZ=o4(Zb),h8=e0({},Zb,{view:0,detail:0}),RL=o4(h8),jZ,oZ,S8;function ML(v){if(v!==S8){if(S8&&v.type==="mousemove")jZ=v.screenX-S8.screenX,oZ=v.screenY-S8.screenY;else jZ=0,oZ=0;S8=v}}var gz=e0({},h8,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lZ,button:0,buttons:0,relatedTarget:function(v){if(v.relatedTarget===void 0)return v.fromElement===v.srcElement?v.toElement:v.fromElement;return v.relatedTarget},movementX:function(v){if("movementX"in v)return v.movementX;return ML(v),jZ},movementY:function(v){if("movementY"in v)return v.movementY;return oZ}}),B$=o4(gz),kL=e0({},gz,{dataTransfer:0}),wL=o4(kL),IL=e0({},h8,{relatedTarget:0}),xZ=o4(IL),VL=e0({},Zb,{animationName:0,elapsedTime:0,pseudoElement:0}),DL=o4(VL),fL=e0({},Zb,{clipboardData:function(v){return"clipboardData"in v?v.clipboardData:window.clipboardData}}),TL=o4(fL),EL=e0({},Zb,{data:0}),O$=o4(EL),CL=O$,hL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SL={"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"};function gL(v){if(v.key){var b=hL[v.key]||v.key;if(b!=="Unidentified")return b}if(v.type==="keypress"){var z=hz(v);return z===13?"Enter":String.fromCharCode(z)}if(v.type==="keydown"||v.type==="keyup")return SL[v.keyCode]||"Unidentified";return""}var uL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mL(v){var b=this,z=b.nativeEvent;if(z.getModifierState)return z.getModifierState(v);var Q=uL[v];return Q?!!z[Q]:!1}function lZ(v){return mL}var dL=e0({},h8,{key:gL,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lZ,charCode:function(v){if(v.type==="keypress")return hz(v);return 0},keyCode:function(v){if(v.type==="keydown"||v.type==="keyup")return v.keyCode;return 0},which:function(v){if(v.type==="keypress")return hz(v);if(v.type==="keydown"||v.type==="keyup")return v.keyCode;return 0}}),aL=o4(dL),cL=e0({},gz,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),L$=o4(cL),yL=e0({},h8,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lZ}),jL=o4(yL),oL=e0({},Zb,{propertyName:0,elapsedTime:0,pseudoElement:0}),xL=o4(oL),lL=e0({},gz,{deltaX:function(v){return"deltaX"in v?v.deltaX:("wheelDeltaX"in v)?-v.wheelDeltaX:0},deltaY:function(v){return"deltaY"in v?v.deltaY:("wheelDeltaY"in v)?-v.wheelDeltaY:("wheelDelta"in v)?-v.wheelDelta:0},deltaZ:0,deltaMode:0}),iL=o4(lL),pL=[9,13,27,32],N$=229,iZ=p1&&"CompositionEvent"in window,g8=null;if(p1&&"documentMode"in document)g8=document.documentMode;var rL=p1&&"TextEvent"in window&&!g8,A$=p1&&(!iZ||g8&&g8>8&&g8<=11),P$=32,W$=String.fromCharCode(P$);function nL(){v6("onBeforeInput",["compositionend","keypress","textInput","paste"]),v6("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),v6("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),v6("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var _$=!1;function tL(v){return(v.ctrlKey||v.altKey||v.metaKey)&&!(v.ctrlKey&&v.altKey)}function sL(v){switch(v){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function eL(v,b){return v==="keydown"&&b.keyCode===N$}function F$(v,b){switch(v){case"keyup":return pL.indexOf(b.keyCode)!==-1;case"keydown":return b.keyCode!==N$;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R$(v){var b=v.detail;if(typeof b==="object"&&"data"in b)return b.data;return null}function M$(v){return v.locale==="ko"}var Jb=!1;function v2(v,b,z,Q,X){var Z,J;if(iZ)Z=sL(b);else if(!Jb){if(eL(b,Q))Z="onCompositionStart"}else if(F$(b,Q))Z="onCompositionEnd";if(!Z)return null;if(A$&&!M$(Q)){if(!Jb&&Z==="onCompositionStart")Jb=_L(X);else if(Z==="onCompositionEnd"){if(Jb)J=K$()}}var Y=cz(z,Z);if(Y.length>0){var $=new O$(Z,b,null,Q,X);if(v.push({event:$,listeners:Y}),J)$.data=J;else{var q=R$(Q);if(q!==null)$.data=q}}}function b2(v,b){switch(v){case"compositionend":return R$(b);case"keypress":var z=b.which;if(z!==P$)return null;return _$=!0,W$;case"textInput":var Q=b.data;if(Q===W$&&_$)return null;return Q;default:return null}}function z2(v,b){if(Jb){if(v==="compositionend"||!iZ&&F$(v,b)){var z=K$();return FL(),Jb=!1,z}return null}switch(v){case"paste":return null;case"keypress":if(!tL(b)){if(b.char&&b.char.length>1)return b.char;else if(b.which)return String.fromCharCode(b.which)}return null;case"compositionend":return A$&&!M$(b)?null:b.data;default:return null}}function Q2(v,b,z,Q,X){var Z;if(rL)Z=b2(b,Q);else Z=z2(b,Q);if(!Z)return null;var J=cz(z,"onBeforeInput");if(J.length>0){var Y=new CL("onBeforeInput","beforeinput",null,Q,X);v.push({event:Y,listeners:J}),Y.data=Z}}function X2(v,b,z,Q,X,Z,J){v2(v,b,z,Q,X),Q2(v,b,z,Q,X)}var Z2={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};function k$(v){var b=v&&v.nodeName&&v.nodeName.toLowerCase();if(b==="input")return!!Z2[v.type];if(b==="textarea")return!0;return!1}function J2(v){if(!p1)return!1;var b="on"+v,z=b in document;if(!z){var Q=document.createElement("div");Q.setAttribute(b,"return;"),z=typeof Q[b]==="function"}return z}function H2(){v6("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function w$(v,b,z,Q){RG(Q);var X=cz(b,"onChange");if(X.length>0){var Z=new yZ("onChange","change",null,z,Q);v.push({event:Z,listeners:X})}}var u8=null,m8=null;function Y2(v){var b=v.nodeName&&v.nodeName.toLowerCase();return b==="select"||b==="input"&&v.type==="file"}function G2(v){var b=[];w$(b,m8,v,iX(v)),IG($2,b)}function $2(v){o$(v,0)}function uz(v){var b=Ub(v);if(yv(b))return v}function K2(v,b){if(v==="change")return b}var I$=!1;if(p1)I$=J2("input")&&(!document.documentMode||document.documentMode>9);function U2(v,b){u8=v,m8=b,u8.attachEvent("onpropertychange",D$)}function V$(){if(!u8)return;u8.detachEvent("onpropertychange",D$),u8=null,m8=null}function D$(v){if(v.propertyName!=="value")return;if(uz(m8))G2(v)}function q2(v,b,z){if(v==="focusin")V$(),U2(b,z);else if(v==="focusout")V$()}function B2(v,b){if(v==="selectionchange"||v==="keyup"||v==="keydown")return uz(m8)}function O2(v){var b=v.nodeName;return b&&b.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")}function L2(v,b){if(v==="click")return uz(b)}function N2(v,b){if(v==="input"||v==="change")return uz(b)}function A2(v){var b=v._wrapperState;if(!b||!b.controlled||v.type!=="number")return;y0(v,"number",v.value)}function P2(v,b,z,Q,X,Z,J){var Y=z?Ub(z):window,$,q;if(Y2(Y))$=K2;else if(k$(Y))if(I$)$=N2;else $=B2,q=q2;else if(O2(Y))$=L2;if($){var O=$(b,z);if(O){w$(v,O,Q,X);return}}if(q)q(b,Y,z);if(b==="focusout")A2(Y)}function W2(){D6("onMouseEnter",["mouseout","mouseover"]),D6("onMouseLeave",["mouseout","mouseover"]),D6("onPointerEnter",["pointerout","pointerover"]),D6("onPointerLeave",["pointerout","pointerover"])}function _2(v,b,z,Q,X,Z,J){var Y=b==="mouseover"||b==="pointerover",$=b==="mouseout"||b==="pointerout";if(Y&&!mB(Q)){var q=Q.relatedTarget||Q.fromElement;if(q){if(Lv(q)||e8(q))return}}if(!$&&!Y)return;var O;if(X.window===X)O=X;else{var k=X.ownerDocument;if(k)O=k.defaultView||k.parentWindow;else O=window}var M,h;if($){var S=Q.relatedTarget||Q.toElement;if(M=z,h=S?Lv(S):null,h!==null){var g=Hv(h);if(h!==g||h.tag!==V&&h.tag!==I)h=null}}else M=null,h=z;if(M===h)return;var $0=B$,E0="onMouseLeave",I0="onMouseEnter",X1="mouse";if(b==="pointerout"||b==="pointerover")$0=L$,E0="onPointerLeave",I0="onPointerEnter",X1="pointer";var Z1=M==null?O:Ub(M),D=h==null?O:Ub(h),d=new $0(E0,X1+"leave",M,Q,X);d.target=Z1,d.relatedTarget=D;var f=null,r=Lv(X);if(r===z){var O0=new $0(I0,X1+"enter",h,Q,X);O0.target=D,O0.relatedTarget=Z1,f=O0}x2(v,d,f,M,h)}function F2(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var x4=typeof Object.is==="function"?Object.is:F2;function d8(v,b){if(x4(v,b))return!0;if(typeof v!=="object"||v===null||typeof b!=="object"||b===null)return!1;var z=Object.keys(v),Q=Object.keys(b);if(z.length!==Q.length)return!1;for(var X=0;X<z.length;X++){var Z=z[X];if(!f6.call(b,Z)||!x4(v[Z],b[Z]))return!1}return!0}function f$(v){while(v&&v.firstChild)v=v.firstChild;return v}function R2(v){while(v){if(v.nextSibling)return v.nextSibling;v=v.parentNode}}function T$(v,b){var z=f$(v),Q=0,X=0;while(z){if(z.nodeType===p5){if(X=Q+z.textContent.length,Q<=b&&X>=b)return{node:z,offset:b-Q};Q=X}z=f$(R2(z))}}function M2(v){var b=v.ownerDocument,z=b&&b.defaultView||window,Q=z.getSelection&&z.getSelection();if(!Q||Q.rangeCount===0)return null;var{anchorNode:X,anchorOffset:Z,focusNode:J,focusOffset:Y}=Q;try{X.nodeType,J.nodeType}catch($){return null}return k2(v,X,Z,J,Y)}function k2(v,b,z,Q,X){var Z=0,J=-1,Y=-1,$=0,q=0,O=v,k=null;v:while(!0){var M=null;while(!0){if(O===b&&(z===0||O.nodeType===p5))J=Z+z;if(O===Q&&(X===0||O.nodeType===p5))Y=Z+X;if(O.nodeType===p5)Z+=O.nodeValue.length;if((M=O.firstChild)===null)break;k=O,O=M}while(!0){if(O===v)break v;if(k===b&&++$===z)J=Z;if(k===Q&&++q===X)Y=Z;if((M=O.nextSibling)!==null)break;O=k,k=O.parentNode}O=M}if(J===-1||Y===-1)return null;return{start:J,end:Y}}function w2(v,b){var z=v.ownerDocument||document,Q=z&&z.defaultView||window;if(!Q.getSelection)return;var X=Q.getSelection(),Z=v.textContent.length,J=Math.min(b.start,Z),Y=b.end===void 0?J:Math.min(b.end,Z);if(!X.extend&&J>Y){var $=Y;Y=J,J=$}var q=T$(v,J),O=T$(v,Y);if(q&&O){if(X.rangeCount===1&&X.anchorNode===q.node&&X.anchorOffset===q.offset&&X.focusNode===O.node&&X.focusOffset===O.offset)return;var k=z.createRange();if(k.setStart(q.node,q.offset),X.removeAllRanges(),J>Y)X.addRange(k),X.extend(O.node,O.offset);else k.setEnd(O.node,O.offset),X.addRange(k)}}function E$(v){return v&&v.nodeType===p5}function C$(v,b){if(!v||!b)return!1;else if(v===b)return!0;else if(E$(v))return!1;else if(E$(b))return C$(v,b.parentNode);else if("contains"in v)return v.contains(b);else if(v.compareDocumentPosition)return!!(v.compareDocumentPosition(b)&16);else return!1}function I2(v){return v&&v.ownerDocument&&C$(v.ownerDocument.documentElement,v)}function V2(v){try{return typeof v.contentWindow.location.href==="string"}catch(b){return!1}}function h$(){var v=window,b=M7();while(b instanceof v.HTMLIFrameElement){if(V2(b))v=b.contentWindow;else return b;b=M7(v.document)}return b}function pZ(v){var b=v&&v.nodeName&&v.nodeName.toLowerCase();return b&&(b==="input"&&(v.type==="text"||v.type==="search"||v.type==="tel"||v.type==="url"||v.type==="password")||b==="textarea"||v.contentEditable==="true")}function D2(){var v=h$();return{focusedElem:v,selectionRange:pZ(v)?T2(v):null}}function f2(v){var b=h$(),z=v.focusedElem,Q=v.selectionRange;if(b!==z&&I2(z)){if(Q!==null&&pZ(z))E2(z,Q);var X=[],Z=z;while(Z=Z.parentNode)if(Z.nodeType===T4)X.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});if(typeof z.focus==="function")z.focus();for(var J=0;J<X.length;J++){var Y=X[J];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}}function T2(v){var b;if("selectionStart"in v)b={start:v.selectionStart,end:v.selectionEnd};else b=M2(v);return b||{start:0,end:0}}function E2(v,b){var{start:z,end:Q}=b;if(Q===void 0)Q=z;if("selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(Q,v.value.length);else w2(v,b)}var C2=p1&&"documentMode"in document&&document.documentMode<=11;function h2(){v6("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Hb=null,rZ=null,a8=null,nZ=!1;function S2(v){if("selectionStart"in v&&pZ(v))return{start:v.selectionStart,end:v.selectionEnd};else{var b=v.ownerDocument&&v.ownerDocument.defaultView||window,z=b.getSelection();return{anchorNode:z.anchorNode,anchorOffset:z.anchorOffset,focusNode:z.focusNode,focusOffset:z.focusOffset}}}function g2(v){return v.window===v?v.document:v.nodeType===r5?v:v.ownerDocument}function S$(v,b,z){var Q=g2(z);if(nZ||Hb==null||Hb!==M7(Q))return;var X=S2(Hb);if(!a8||!d8(a8,X)){a8=X;var Z=cz(rZ,"onSelect");if(Z.length>0){var J=new yZ("onSelect","select",null,b,z);v.push({event:J,listeners:Z}),J.target=Hb}}}function u2(v,b,z,Q,X,Z,J){var Y=z?Ub(z):window;switch(b){case"focusin":if(k$(Y)||Y.contentEditable==="true")Hb=Y,rZ=z,a8=null;break;case"focusout":Hb=null,rZ=null,a8=null;break;case"mousedown":nZ=!0;break;case"contextmenu":case"mouseup":case"dragend":nZ=!1,S$(v,Q,X);break;case"selectionchange":if(C2)break;case"keydown":case"keyup":S$(v,Q,X)}}function mz(v,b){var z={};return z[v.toLowerCase()]=b.toLowerCase(),z["Webkit"+v]="webkit"+b,z["Moz"+v]="moz"+b,z}var Yb={animationend:mz("Animation","AnimationEnd"),animationiteration:mz("Animation","AnimationIteration"),animationstart:mz("Animation","AnimationStart"),transitionend:mz("Transition","TransitionEnd")},tZ={},g$={};if(p1){if(g$=document.createElement("div").style,!("AnimationEvent"in window))delete Yb.animationend.animation,delete Yb.animationiteration.animation,delete Yb.animationstart.animation;if(!("TransitionEvent"in window))delete Yb.transitionend.transition}function dz(v){if(tZ[v])return tZ[v];else if(!Yb[v])return v;var b=Yb[v];for(var z in b)if(b.hasOwnProperty(z)&&z in g$)return tZ[v]=b[z];return v}var u$=dz("animationend"),m$=dz("animationiteration"),d$=dz("animationstart"),a$=dz("transitionend"),c$=new Map,y$=["abort","auxClick","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"];function f7(v,b){c$.set(v,b),v6(b,[v])}function m2(){for(var v=0;v<y$.length;v++){var b=y$[v],z=b.toLowerCase(),Q=b[0].toUpperCase()+b.slice(1);f7(z,"on"+Q)}f7(u$,"onAnimationEnd"),f7(m$,"onAnimationIteration"),f7(d$,"onAnimationStart"),f7("dblclick","onDoubleClick"),f7("focusin","onFocus"),f7("focusout","onBlur"),f7(a$,"onTransitionEnd")}function d2(v,b,z,Q,X,Z,J){var Y=c$.get(b);if(Y===void 0)return;var $=yZ,q=b;switch(b){case"keypress":if(hz(Q)===0)return;case"keydown":case"keyup":$=aL;break;case"focusin":q="focus",$=xZ;break;case"focusout":q="blur",$=xZ;break;case"beforeblur":case"afterblur":$=xZ;break;case"click":if(Q.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=B$;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=wL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=jL;break;case u$:case m$:case d$:$=DL;break;case a$:$=xL;break;case"scroll":$=RL;break;case"wheel":$=iL;break;case"copy":case"cut":case"paste":$=TL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=L$;break}var O=(Z&K8)!==0;{var k=!O&&b==="scroll",M=j2(z,Y,Q.type,O,k);if(M.length>0){var h=new $(Y,q,null,Q,X);v.push({event:h,listeners:M})}}}m2(),W2(),H2(),h2(),nL();function a2(v,b,z,Q,X,Z,J){d2(v,b,z,Q,X,Z);var Y=(Z&SB)===0;if(Y)_2(v,b,z,Q,X),P2(v,b,z,Q,X),u2(v,b,z,Q,X),X2(v,b,z,Q,X)}var c8=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],sZ=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(c8));function j$(v,b,z){var Q=v.type||"unknown-event";v.currentTarget=z,iB(Q,b,void 0,v),v.currentTarget=null}function c2(v,b,z){var Q;if(z)for(var X=b.length-1;X>=0;X--){var Z=b[X],J=Z.instance,Y=Z.currentTarget,$=Z.listener;if(J!==Q&&v.isPropagationStopped())return;j$(v,$,Y),Q=J}else for(var q=0;q<b.length;q++){var O=b[q],k=O.instance,M=O.currentTarget,h=O.listener;if(k!==Q&&v.isPropagationStopped())return;j$(v,h,M),Q=k}}function o$(v,b){var z=(b&K8)!==0;for(var Q=0;Q<v.length;Q++){var X=v[Q],Z=X.event,J=X.listeners;c2(Z,J,z)}pB()}function y2(v,b,z,Q,X){var Z=iX(z),J=[];a2(J,v,Q,z,Z,b),o$(J,b)}function X6(v,b){if(!sZ.has(v))G('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',v);var z=!1,Q=AA(b),X=l2(v,z);if(!Q.has(X))x$(b,v,lX,z),Q.add(X)}function eZ(v,b,z){if(sZ.has(v)&&!b)G('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',v);var Q=0;if(b)Q|=K8;x$(z,v,Q,b)}var az="_reactListening"+Math.random().toString(36).slice(2);function y8(v){if(!v[az]){v[az]=!0,U6.forEach(function(z){if(z!=="selectionchange"){if(!sZ.has(z))eZ(z,!1,v);eZ(z,!0,v)}});var b=v.nodeType===r5?v:v.ownerDocument;if(b!==null){if(!b[az])b[az]=!0,eZ("selectionchange",!1,b)}}}function x$(v,b,z,Q,X){var Z=qL(v,b,z),J=void 0;if(nX){if(b==="touchstart"||b==="touchmove"||b==="wheel")J=!0}v=v;var Y;if(Q)if(J!==void 0)Y=PL(v,b,Z,J);else Y=AL(v,b,Z);else if(J!==void 0)Y=WL(v,b,Z,J);else Y=NL(v,b,Z)}function l$(v,b){return v===b||v.nodeType===w6&&v.parentNode===b}function vJ(v,b,z,Q,X){var Z=Q;if((b&_G)===0&&(b&lX)===0){var J=X;if(Q!==null){var Y=Q;v:while(!0){if(Y===null)return;var $=Y.tag;if($===T||$===R){var q=Y.stateNode.containerInfo;if(l$(q,J))break;if($===R){var O=Y.return;while(O!==null){var k=O.tag;if(k===T||k===R){var M=O.stateNode.containerInfo;if(l$(M,J))return}O=O.return}}while(q!==null){var h=Lv(q);if(h===null)return;var S=h.tag;if(S===V||S===I){Y=Z=h;continue v}q=q.parentNode}}Y=Y.return}}}IG(function(){return y2(v,b,z,Z)})}function j8(v,b,z){return{instance:v,listener:b,currentTarget:z}}function j2(v,b,z,Q,X,Z){var J=b!==null?b+"Capture":null,Y=Q?J:b,$=[],q=v,O=null;while(q!==null){var k=q,M=k.stateNode,h=k.tag;if(h===V&&M!==null){if(O=M,Y!==null){var S=q8(q,Y);if(S!=null)$.push(j8(q,S,O))}}if(X)break;q=q.return}return $}function cz(v,b){var z=b+"Capture",Q=[],X=v;while(X!==null){var Z=X,J=Z.stateNode,Y=Z.tag;if(Y===V&&J!==null){var $=J,q=q8(X,z);if(q!=null)Q.unshift(j8(X,q,$));var O=q8(X,b);if(O!=null)Q.push(j8(X,O,$))}X=X.return}return Q}function Gb(v){if(v===null)return null;do v=v.return;while(v&&v.tag!==V);if(v)return v;return null}function o2(v,b){var z=v,Q=b,X=0;for(var Z=z;Z;Z=Gb(Z))X++;var J=0;for(var Y=Q;Y;Y=Gb(Y))J++;while(X-J>0)z=Gb(z),X--;while(J-X>0)Q=Gb(Q),J--;var $=X;while($--){if(z===Q||Q!==null&&z===Q.alternate)return z;z=Gb(z),Q=Gb(Q)}return null}function i$(v,b,z,Q,X){var Z=b._reactName,J=[],Y=z;while(Y!==null){if(Y===Q)break;var $=Y,q=$.alternate,O=$.stateNode,k=$.tag;if(q!==null&&q===Q)break;if(k===V&&O!==null){var M=O;if(X){var h=q8(Y,Z);if(h!=null)J.unshift(j8(Y,h,M))}else if(!X){var S=q8(Y,Z);if(S!=null)J.push(j8(Y,S,M))}}Y=Y.return}if(J.length!==0)v.push({event:b,listeners:J})}function x2(v,b,z,Q,X){var Z=Q&&X?o2(Q,X):null;if(Q!==null)i$(v,b,Q,Z,!1);if(X!==null&&z!==null)i$(v,z,X,Z,!0)}function l2(v,b){return v+"__"+(b?"capture":"bubble")}var E4=!1,o8="dangerouslySetInnerHTML",yz="suppressContentEditableWarning",T7="suppressHydrationWarning",p$="autoFocus",Bv="children",Ov="style",jz="__html",bJ,oz,x8,r$,xz,n$,t$;bJ={dialog:!0,webview:!0},oz=function(v,b){VB(v,b),DB(v,b),hB(v,b,{registrationNameDependencies:h1,possibleRegistrationNames:g1})},n$=p1&&!document.documentMode,x8=function(v,b,z){if(E4)return;var Q=lz(z),X=lz(b);if(X===Q)return;E4=!0,G("Prop `%s` did not match. Server: %s Client: %s",v,JSON.stringify(X),JSON.stringify(Q))},r$=function(v){if(E4)return;E4=!0;var b=[];v.forEach(function(z){b.push(z)}),G("Extra attributes from the server: %s",b)},xz=function(v,b){if(b===!1)G("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.",v,v,v);else G("Expected `%s` listener to be a function, instead got a value of `%s` type.",v,typeof b)},t$=function(v,b){var z=v.namespaceURI===i5?v.ownerDocument.createElement(v.tagName):v.ownerDocument.createElementNS(v.namespaceURI,v.tagName);return z.innerHTML=b,z.innerHTML};var i2=/\r\n?/g,p2=/\u0000|\uFFFD/g;function lz(v){X5(v);var b=typeof v==="string"?v:""+v;return b.replace(i2,`
32
- `).replace(p2,"")}function iz(v,b,z,Q){var X=lz(b),Z=lz(v);if(Z===X)return;if(Q){if(!E4)E4=!0,G('Text content did not match. Server: "%s" Client: "%s"',Z,X)}if(z&&L0)throw Error("Text content does not match server-rendered HTML.")}function s$(v){return v.nodeType===r5?v:v.ownerDocument}function r2(){}function pz(v){v.onclick=r2}function n2(v,b,z,Q,X){for(var Z in Q){if(!Q.hasOwnProperty(Z))continue;var J=Q[Z];if(Z===Ov){if(J)Object.freeze(J);OG(b,J)}else if(Z===o8){var Y=J?J[jz]:void 0;if(Y!=null)$G(b,Y)}else if(Z===Bv){if(typeof J==="string"){var $=v!=="textarea"||J!=="";if($)Oz(b,J)}else if(typeof J==="number")Oz(b,""+J)}else if(Z===yz||Z===T7);else if(Z===p$);else if(h1.hasOwnProperty(Z)){if(J!=null){if(typeof J!=="function")xz(Z,J);if(Z==="onScroll")X6("scroll",b)}}else if(J!=null)J1(b,Z,J,X)}}function t2(v,b,z,Q){for(var X=0;X<b.length;X+=2){var Z=b[X],J=b[X+1];if(Z===Ov)OG(v,J);else if(Z===o8)$G(v,J);else if(Z===Bv)Oz(v,J);else J1(v,Z,J,Q)}}function s2(v,b,z,Q){var X,Z=s$(z),J,Y=Q;if(Y===i5)Y=aX(v);if(Y===i5){if(X=zv(v,b),!X&&v!==v.toLowerCase())G("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",v);if(v==="script"){var $=Z.createElement("div");$.innerHTML="<script></script>";var q=$.firstChild;J=$.removeChild(q)}else if(typeof b.is==="string")J=Z.createElement(v,{is:b.is});else if(J=Z.createElement(v),v==="select"){var O=J;if(b.multiple)O.multiple=!0;else if(b.size)O.size=b.size}}else J=Z.createElementNS(Y,v);if(Y===i5){if(!X&&Object.prototype.toString.call(J)==="[object HTMLUnknownElement]"&&!f6.call(bJ,v))bJ[v]=!0,G("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",v)}return J}function e2(v,b){return s$(b).createTextNode(v)}function vN(v,b,z,Q){var X=zv(b,z);oz(b,z);var Z;switch(b){case"dialog":X6("cancel",v),X6("close",v),Z=z;break;case"iframe":case"object":case"embed":X6("load",v),Z=z;break;case"video":case"audio":for(var J=0;J<c8.length;J++)X6(c8[J],v);Z=z;break;case"source":X6("error",v),Z=z;break;case"img":case"image":case"link":X6("error",v),X6("load",v),Z=z;break;case"details":X6("toggle",v),Z=z;break;case"input":W(v,z),Z=K(v,z),X6("invalid",v);break;case"option":o1(v,z),Z=z;break;case"select":G8(v,z),Z=Y8(v,z),X6("invalid",v);break;case"textarea":HG(v,z),Z=mX(v,z),X6("invalid",v);break;default:Z=z}switch(xX(b,Z),n2(b,v,Q,Z,X),b){case"input":x5(v),v0(v,z,!1);break;case"textarea":x5(v),GG(v);break;case"option":Q6(v,z);break;case"select":uX(v,z);break;default:if(typeof Z.onClick==="function")pz(v);break}}function bN(v,b,z,Q,X){oz(b,Q);var Z=null,J,Y;switch(b){case"input":J=K(v,z),Y=K(v,Q),Z=[];break;case"select":J=Y8(v,z),Y=Y8(v,Q),Z=[];break;case"textarea":J=mX(v,z),Y=mX(v,Q),Z=[];break;default:if(J=z,Y=Q,typeof J.onClick!=="function"&&typeof Y.onClick==="function")pz(v);break}xX(b,Y);var $,q,O=null;for($ in J){if(Y.hasOwnProperty($)||!J.hasOwnProperty($)||J[$]==null)continue;if($===Ov){var k=J[$];for(q in k)if(k.hasOwnProperty(q)){if(!O)O={};O[q]=""}}else if($===o8||$===Bv);else if($===yz||$===T7);else if($===p$);else if(h1.hasOwnProperty($)){if(!Z)Z=[]}else(Z=Z||[]).push($,null)}for($ in Y){var M=Y[$],h=J!=null?J[$]:void 0;if(!Y.hasOwnProperty($)||M===h||M==null&&h==null)continue;if($===Ov){if(M)Object.freeze(M);if(h){for(q in h)if(h.hasOwnProperty(q)&&(!M||!M.hasOwnProperty(q))){if(!O)O={};O[q]=""}for(q in M)if(M.hasOwnProperty(q)&&h[q]!==M[q]){if(!O)O={};O[q]=M[q]}}else{if(!O){if(!Z)Z=[];Z.push($,O)}O=M}}else if($===o8){var S=M?M[jz]:void 0,g=h?h[jz]:void 0;if(S!=null){if(g!==S)(Z=Z||[]).push($,S)}}else if($===Bv){if(typeof M==="string"||typeof M==="number")(Z=Z||[]).push($,""+M)}else if($===yz||$===T7);else if(h1.hasOwnProperty($)){if(M!=null){if(typeof M!=="function")xz($,M);if($==="onScroll")X6("scroll",v)}if(!Z&&h!==M)Z=[]}else(Z=Z||[]).push($,M)}if(O)WB(O,Y[Ov]),(Z=Z||[]).push(Ov,O);return Z}function zN(v,b,z,Q,X){if(z==="input"&&X.type==="radio"&&X.name!=null)C(v,X);var Z=zv(z,Q),J=zv(z,X);switch(t2(v,b,Z,J),z){case"input":u(v,X);break;case"textarea":YG(v,X);break;case"select":tq(v,X);break}}function QN(v){{var b=v.toLowerCase();if(!Lz.hasOwnProperty(b))return null;return Lz[b]||null}}function XN(v,b,z,Q,X,Z,J){var Y,$;switch(Y=zv(b,z),oz(b,z),b){case"dialog":X6("cancel",v),X6("close",v);break;case"iframe":case"object":case"embed":X6("load",v);break;case"video":case"audio":for(var q=0;q<c8.length;q++)X6(c8[q],v);break;case"source":X6("error",v);break;case"img":case"image":case"link":X6("error",v),X6("load",v);break;case"details":X6("toggle",v);break;case"input":W(v,z),X6("invalid",v);break;case"option":o1(v,z);break;case"select":G8(v,z),X6("invalid",v);break;case"textarea":HG(v,z),X6("invalid",v);break}xX(b,z);{$=new Set;var O=v.attributes;for(var k=0;k<O.length;k++){var M=O[k].name.toLowerCase();switch(M){case"value":break;case"checked":break;case"selected":break;default:$.add(O[k].name)}}}var h=null;for(var S in z){if(!z.hasOwnProperty(S))continue;var g=z[S];if(S===Bv){if(typeof g==="string"){if(v.textContent!==g){if(z[T7]!==!0)iz(v.textContent,g,Z,J);h=[Bv,g]}}else if(typeof g==="number"){if(v.textContent!==""+g){if(z[T7]!==!0)iz(v.textContent,g,Z,J);h=[Bv,""+g]}}}else if(h1.hasOwnProperty(S)){if(g!=null){if(typeof g!=="function")xz(S,g);if(S==="onScroll")X6("scroll",v)}}else if(J&&!0&&typeof Y==="boolean"){var $0=void 0,E0=Y&&Q1?null:_6(S);if(z[T7]===!0);else if(S===yz||S===T7||S==="value"||S==="checked"||S==="selected");else if(S===o8){var I0=v.innerHTML,X1=g?g[jz]:void 0;if(X1!=null){var Z1=t$(v,X1);if(Z1!==I0)x8(S,I0,Z1)}}else if(S===Ov){if($.delete(S),n$){var D=AB(g);if($0=v.getAttribute("style"),D!==$0)x8(S,$0,D)}}else if(Y&&!Q1){if($.delete(S.toLowerCase()),$0=J5(v,S,g),g!==$0)x8(S,$0,g)}else if(!M1(S,E0,Y)&&!S1(S,g,E0,Y)){var d=!1;if(E0!==null)$.delete(E0.attributeName),$0=$4(v,S,g,E0);else{var f=Q;if(f===i5)f=aX(b);if(f===i5)$.delete(S.toLowerCase());else{var r=QN(S);if(r!==null&&r!==S)d=!0,$.delete(r);$.delete(S)}$0=J5(v,S,g)}var O0=Q1;if(!O0&&g!==$0&&!d)x8(S,$0,g)}}}if(J){if($.size>0&&z[T7]!==!0)r$($)}switch(b){case"input":x5(v),v0(v,z,!0);break;case"textarea":x5(v),GG(v);break;case"select":case"option":break;default:if(typeof z.onClick==="function")pz(v);break}return h}function ZN(v,b,z){var Q=v.nodeValue!==b;return Q}function zJ(v,b){{if(E4)return;E4=!0,G("Did not expect server HTML to contain a <%s> in <%s>.",b.nodeName.toLowerCase(),v.nodeName.toLowerCase())}}function QJ(v,b){{if(E4)return;E4=!0,G('Did not expect server HTML to contain the text node "%s" in <%s>.',b.nodeValue,v.nodeName.toLowerCase())}}function XJ(v,b,z){{if(E4)return;E4=!0,G("Expected server HTML to contain a matching <%s> in <%s>.",b,v.nodeName.toLowerCase())}}function ZJ(v,b){{if(b==="")return;if(E4)return;E4=!0,G('Expected server HTML to contain a matching text node for "%s" in <%s>.',b,v.nodeName.toLowerCase())}}function JN(v,b,z){switch(b){case"input":m0(v,z);return;case"textarea":eq(v,z);return;case"select":sq(v,z);return}}var l8=function(){},i8=function(){};{var HN=["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"],e$=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],YN=e$.concat(["button"]),GN=["dd","dt","li","option","optgroup","p","rp","rt"],vK={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};i8=function(v,b){var z=e0({},v||vK),Q={tag:b};if(e$.indexOf(b)!==-1)z.aTagInScope=null,z.buttonTagInScope=null,z.nobrTagInScope=null;if(YN.indexOf(b)!==-1)z.pTagInButtonScope=null;if(HN.indexOf(b)!==-1&&b!=="address"&&b!=="div"&&b!=="p")z.listItemTagAutoclosing=null,z.dlItemTagAutoclosing=null;if(z.current=Q,b==="form")z.formTag=Q;if(b==="a")z.aTagInScope=Q;if(b==="button")z.buttonTagInScope=Q;if(b==="nobr")z.nobrTagInScope=Q;if(b==="p")z.pTagInButtonScope=Q;if(b==="li")z.listItemTagAutoclosing=Q;if(b==="dd"||b==="dt")z.dlItemTagAutoclosing=Q;return z};var $N=function(v,b){switch(b){case"select":return v==="option"||v==="optgroup"||v==="#text";case"optgroup":return v==="option"||v==="#text";case"option":return v==="#text";case"tr":return v==="th"||v==="td"||v==="style"||v==="script"||v==="template";case"tbody":case"thead":case"tfoot":return v==="tr"||v==="style"||v==="script"||v==="template";case"colgroup":return v==="col"||v==="template";case"table":return v==="caption"||v==="colgroup"||v==="tbody"||v==="tfoot"||v==="thead"||v==="style"||v==="script"||v==="template";case"head":return v==="base"||v==="basefont"||v==="bgsound"||v==="link"||v==="meta"||v==="title"||v==="noscript"||v==="noframes"||v==="style"||v==="script"||v==="template";case"html":return v==="head"||v==="body"||v==="frameset";case"frameset":return v==="frame";case"#document":return v==="html"}switch(v){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return b!=="h1"&&b!=="h2"&&b!=="h3"&&b!=="h4"&&b!=="h5"&&b!=="h6";case"rp":case"rt":return GN.indexOf(b)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return b==null}return!0},KN=function(v,b){switch(v){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 b.pTagInButtonScope;case"form":return b.formTag||b.pTagInButtonScope;case"li":return b.listItemTagAutoclosing;case"dd":case"dt":return b.dlItemTagAutoclosing;case"button":return b.buttonTagInScope;case"a":return b.aTagInScope;case"nobr":return b.nobrTagInScope}return null},bK={};l8=function(v,b,z){z=z||vK;var Q=z.current,X=Q&&Q.tag;if(b!=null){if(v!=null)G("validateDOMNesting: when childText is passed, childTag should be null");v="#text"}var Z=$N(v,X)?null:Q,J=Z?null:KN(v,z),Y=Z||J;if(!Y)return;var $=Y.tag,q=!!Z+"|"+v+"|"+$;if(bK[q])return;bK[q]=!0;var O=v,k="";if(v==="#text")if(/\S/.test(b))O="Text nodes";else O="Whitespace text nodes",k=" Make sure you don't have any extra whitespace between tags on each line of your source code.";else O="<"+v+">";if(Z){var M="";if($==="table"&&v==="tr")M+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.";G("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",O,$,k,M)}else G("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",O,$)}}var rz="suppressHydrationWarning",nz="$",tz="/$",p8="$?",r8="$!",UN="style",JJ=null,HJ=null;function qN(v){var b,z,Q=v.nodeType;switch(Q){case r5:case yX:{b=Q===r5?"#document":"#fragment";var X=v.documentElement;z=X?X.namespaceURI:cX(null,"");break}default:{var Z=Q===w6?v.parentNode:v,J=Z.namespaceURI||null;b=Z.tagName,z=cX(J,b);break}}{var Y=b.toLowerCase(),$=i8(null,Y);return{namespace:z,ancestorInfo:$}}}function BN(v,b,z){{var Q=v,X=cX(Q.namespace,b),Z=i8(Q.ancestorInfo,b);return{namespace:X,ancestorInfo:Z}}}function YJ(v){return v}function ON(v){JJ=UL(),HJ=D2();var b=null;return G$(!1),b}function LN(v){f2(HJ),G$(JJ),JJ=null,HJ=null}function NN(v,b,z,Q,X){var Z;{var J=Q;if(l8(v,null,J.ancestorInfo),typeof b.children==="string"||typeof b.children==="number"){var Y=""+b.children,$=i8(J.ancestorInfo,v);l8(null,Y,$)}Z=J.namespace}var q=s2(v,b,z,Z);return s8(X,q),LJ(q,b),q}function AN(v,b){v.appendChild(b)}function PN(v,b,z,Q,X){switch(vN(v,b,z,Q),b){case"button":case"input":case"select":case"textarea":return!!z.autoFocus;case"img":return!0;default:return!1}}function WN(v,b,z,Q,X,Z){{var J=Z;if(typeof Q.children!==typeof z.children&&(typeof Q.children==="string"||typeof Q.children==="number")){var Y=""+Q.children,$=i8(J.ancestorInfo,b);l8(null,Y,$)}}return bN(v,b,z,Q)}function GJ(v,b){return v==="textarea"||v==="noscript"||typeof b.children==="string"||typeof b.children==="number"||typeof b.dangerouslySetInnerHTML==="object"&&b.dangerouslySetInnerHTML!==null&&b.dangerouslySetInnerHTML.__html!=null}function _N(v,b,z,Q){{var X=z;l8(null,v,X.ancestorInfo)}var Z=e2(v,b);return s8(Q,Z),Z}function FN(){var v=window.event;if(v===void 0)return z7;return $$(v.type)}var $J=typeof setTimeout==="function"?setTimeout:void 0,RN=typeof clearTimeout==="function"?clearTimeout:void 0,KJ=-1,zK=typeof Promise==="function"?Promise:void 0,MN=typeof queueMicrotask==="function"?queueMicrotask:typeof zK<"u"?function(v){return zK.resolve(null).then(v).catch(kN)}:$J;function kN(v){setTimeout(function(){throw v})}function wN(v,b,z,Q){switch(b){case"button":case"input":case"select":case"textarea":if(z.autoFocus)v.focus();return;case"img":{if(z.src)v.src=z.src;return}}}function IN(v,b,z,Q,X,Z){zN(v,b,z,Q,X),LJ(v,X)}function QK(v){Oz(v,"")}function VN(v,b,z){v.nodeValue=z}function DN(v,b){v.appendChild(b)}function fN(v,b){var z;if(v.nodeType===w6)z=v.parentNode,z.insertBefore(b,v);else z=v,z.appendChild(b);var Q=v._reactRootContainer;if((Q===null||Q===void 0)&&z.onclick===null)pz(z)}function TN(v,b,z){v.insertBefore(b,z)}function EN(v,b,z){if(v.nodeType===w6)v.parentNode.insertBefore(b,z);else v.insertBefore(b,z)}function CN(v,b){v.removeChild(b)}function hN(v,b){if(v.nodeType===w6)v.parentNode.removeChild(b);else v.removeChild(b)}function UJ(v,b){var z=b,Q=0;do{var X=z.nextSibling;if(v.removeChild(z),X&&X.nodeType===w6){var Z=X.data;if(Z===tz)if(Q===0){v.removeChild(X),T8(b);return}else Q--;else if(Z===nz||Z===p8||Z===r8)Q++}z=X}while(z);T8(b)}function SN(v,b){if(v.nodeType===w6)UJ(v.parentNode,b);else if(v.nodeType===T4)UJ(v,b);T8(v)}function gN(v){v=v;var b=v.style;if(typeof b.setProperty==="function")b.setProperty("display","none","important");else b.display="none"}function uN(v){v.nodeValue=""}function mN(v,b){v=v;var z=b[UN],Q=z!==void 0&&z!==null&&z.hasOwnProperty("display")?z.display:null;v.style.display=jX("display",Q)}function dN(v,b){v.nodeValue=b}function aN(v){if(v.nodeType===T4)v.textContent="";else if(v.nodeType===r5){if(v.documentElement)v.removeChild(v.documentElement)}}function cN(v,b,z){if(v.nodeType!==T4||b.toLowerCase()!==v.nodeName.toLowerCase())return null;return v}function yN(v,b){if(b===""||v.nodeType!==p5)return null;return v}function jN(v){if(v.nodeType!==w6)return null;return v}function XK(v){return v.data===p8}function qJ(v){return v.data===r8}function oN(v){var b=v.nextSibling&&v.nextSibling.dataset,z,Q,X;if(b)z=b.dgst,Q=b.msg,X=b.stck;return{message:Q,digest:z,stack:X}}function xN(v,b){v._reactRetry=b}function sz(v){for(;v!=null;v=v.nextSibling){var b=v.nodeType;if(b===T4||b===p5)break;if(b===w6){var z=v.data;if(z===nz||z===r8||z===p8)break;if(z===tz)return null}}return v}function n8(v){return sz(v.nextSibling)}function lN(v){return sz(v.firstChild)}function iN(v){return sz(v.firstChild)}function pN(v){return sz(v.nextSibling)}function rN(v,b,z,Q,X,Z,J){s8(Z,v),LJ(v,z);var Y;{var $=X;Y=$.namespace}var q=(Z.mode&G1)!==h0;return XN(v,b,z,Y,Q,q,J)}function nN(v,b,z,Q){s8(z,v);var X=(z.mode&G1)!==h0;return ZN(v,b)}function tN(v,b){s8(b,v)}function sN(v){var b=v.nextSibling,z=0;while(b){if(b.nodeType===w6){var Q=b.data;if(Q===tz)if(z===0)return n8(b);else z--;else if(Q===nz||Q===r8||Q===p8)z++}b=b.nextSibling}return null}function ZK(v){var b=v.previousSibling,z=0;while(b){if(b.nodeType===w6){var Q=b.data;if(Q===nz||Q===r8||Q===p8)if(z===0)return b;else z--;else if(Q===tz)z++}b=b.previousSibling}return null}function eN(v){T8(v)}function vA(v){T8(v)}function bA(v){return v!=="head"&&v!=="body"}function zA(v,b,z,Q){var X=!0;iz(b.nodeValue,z,Q,X)}function QA(v,b,z,Q,X,Z){if(b[rz]!==!0){var J=!0;iz(Q.nodeValue,X,Z,J)}}function XA(v,b){if(b.nodeType===T4)zJ(v,b);else if(b.nodeType===w6);else QJ(v,b)}function ZA(v,b){{var z=v.parentNode;if(z!==null)if(b.nodeType===T4)zJ(z,b);else if(b.nodeType===w6);else QJ(z,b)}}function JA(v,b,z,Q,X){if(X||b[rz]!==!0)if(Q.nodeType===T4)zJ(z,Q);else if(Q.nodeType===w6);else QJ(z,Q)}function HA(v,b,z){XJ(v,b)}function YA(v,b){ZJ(v,b)}function GA(v,b,z){{var Q=v.parentNode;if(Q!==null)XJ(Q,b)}}function $A(v,b){{var z=v.parentNode;if(z!==null)ZJ(z,b)}}function KA(v,b,z,Q,X,Z){if(Z||b[rz]!==!0)XJ(z,Q)}function UA(v,b,z,Q,X){if(X||b[rz]!==!0)ZJ(z,Q)}function qA(v){G("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",v.nodeName.toLowerCase())}function BA(v){y8(v)}var $b=Math.random().toString(36).slice(2),Kb="__reactFiber$"+$b,BJ="__reactProps$"+$b,t8="__reactContainer$"+$b,OJ="__reactEvents$"+$b,OA="__reactListeners$"+$b,LA="__reactHandles$"+$b;function NA(v){delete v[Kb],delete v[BJ],delete v[OJ],delete v[OA],delete v[LA]}function s8(v,b){b[Kb]=v}function ez(v,b){b[t8]=v}function JK(v){v[t8]=null}function e8(v){return!!v[t8]}function Lv(v){var b=v[Kb];if(b)return b;var z=v.parentNode;while(z){if(b=z[t8]||z[Kb],b){var Q=b.alternate;if(b.child!==null||Q!==null&&Q.child!==null){var X=ZK(v);while(X!==null){var Z=X[Kb];if(Z)return Z;X=ZK(X)}}return b}v=z,z=v.parentNode}return null}function E7(v){var b=v[Kb]||v[t8];if(b)if(b.tag===V||b.tag===I||b.tag===o||b.tag===T)return b;else return null;return null}function Ub(v){if(v.tag===V||v.tag===I)return v.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function vQ(v){return v[BJ]||null}function LJ(v,b){v[BJ]=b}function AA(v){var b=v[OJ];if(b===void 0)b=v[OJ]=new Set;return b}var HK={},YK=H.ReactDebugCurrentFrame;function bQ(v){if(v){var b=v._owner,z=_7(v.type,v._source,b?b.type:null);YK.setExtraStackFrame(z)}else YK.setExtraStackFrame(null)}function $5(v,b,z,Q,X){{var Z=Function.call.bind(f6);for(var J in v)if(Z(v,J)){var Y=void 0;try{if(typeof v[J]!=="function"){var $=Error((Q||"React class")+": "+z+" type `"+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[J]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}Y=v[J](b,J,Q,z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(q){Y=q}if(Y&&!(Y instanceof Error))bQ(X),G("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Q||"React class",z,J,typeof Y),bQ(null);if(Y instanceof Error&&!(Y.message in HK))HK[Y.message]=!0,bQ(X),G("Failed %s type: %s",z,Y.message),bQ(null)}}}var NJ=[],zQ;zQ=[];var Q7=-1;function C7(v){return{current:v}}function U4(v,b){if(Q7<0){G("Unexpected pop.");return}if(b!==zQ[Q7])G("Unexpected Fiber popped.");v.current=NJ[Q7],NJ[Q7]=null,zQ[Q7]=null,Q7--}function q4(v,b,z){Q7++,NJ[Q7]=v.current,zQ[Q7]=z,v.current=b}var GK={},l4={};Object.freeze(l4);var X7=C7(l4),C5=C7(!1),AJ=l4;function qb(v,b,z){{if(z&&h5(b))return AJ;return X7.current}}function $K(v,b,z){{var Q=v.stateNode;Q.__reactInternalMemoizedUnmaskedChildContext=b,Q.__reactInternalMemoizedMaskedChildContext=z}}function Bb(v,b){{var z=v.type,Q=z.contextTypes;if(!Q)return l4;var X=v.stateNode;if(X&&X.__reactInternalMemoizedUnmaskedChildContext===b)return X.__reactInternalMemoizedMaskedChildContext;var Z={};for(var J in Q)Z[J]=b[J];{var Y=t0(v)||"Unknown";$5(Q,Z,"context",Y)}if(X)$K(v,b,Z);return Z}}function QQ(){return C5.current}function h5(v){{var b=v.childContextTypes;return b!==null&&b!==void 0}}function XQ(v){U4(C5,v),U4(X7,v)}function PJ(v){U4(C5,v),U4(X7,v)}function KK(v,b,z){{if(X7.current!==l4)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");q4(X7,b,v),q4(C5,z,v)}}function UK(v,b,z){{var Q=v.stateNode,X=b.childContextTypes;if(typeof Q.getChildContext!=="function"){{var Z=t0(v)||"Unknown";if(!GK[Z])GK[Z]=!0,G("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",Z,Z)}return z}var J=Q.getChildContext();for(var Y in J)if(!(Y in X))throw Error((t0(v)||"Unknown")+'.getChildContext(): key "'+Y+'" is not defined in childContextTypes.');{var $=t0(v)||"Unknown";$5(X,J,"child context",$)}return e0({},z,J)}}function ZQ(v){{var b=v.stateNode,z=b&&b.__reactInternalMemoizedMergedChildContext||l4;return AJ=X7.current,q4(X7,z,v),q4(C5,C5.current,v),!0}}function qK(v,b,z){{var Q=v.stateNode;if(!Q)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(z){var X=UK(v,b,AJ);Q.__reactInternalMemoizedMergedChildContext=X,U4(C5,v),U4(X7,v),q4(X7,X,v),q4(C5,z,v)}else U4(C5,v),q4(C5,z,v)}}function PA(v){{if(!bO(v)||v.tag!==P)throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var b=v;do{switch(b.tag){case T:return b.stateNode.context;case P:{var z=b.type;if(h5(z))return b.stateNode.__reactInternalMemoizedMergedChildContext;break}}b=b.return}while(b!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var h7=0,JQ=1,Z7=null,WJ=!1,_J=!1;function BK(v){if(Z7===null)Z7=[v];else Z7.push(v)}function WA(v){WJ=!0,BK(v)}function OK(){if(WJ)S7()}function S7(){if(!_J&&Z7!==null){_J=!0;var v=0,b=G5();try{var z=!0,Q=Z7;i6(j4);for(;v<Q.length;v++){var X=Q[v];do X=X(z);while(X!==null)}Z7=null,WJ=!1}catch(Z){if(Z7!==null)Z7=Z7.slice(v+1);throw mG(_z,S7),Z}finally{i6(b),_J=!1}}return null}var Ob=[],Lb=0,HQ=null,YQ=0,t4=[],s4=0,Nv=null,J7=1,H7="";function _A(v){return Pv(),(v.flags&fG)!==g0}function FA(v){return Pv(),YQ}function RA(){var v=H7,b=J7,z=b&~MA(b);return z.toString(32)+v}function Av(v,b){Pv(),Ob[Lb++]=YQ,Ob[Lb++]=HQ,HQ=v,YQ=b}function LK(v,b,z){Pv(),t4[s4++]=J7,t4[s4++]=H7,t4[s4++]=Nv,Nv=v;var Q=J7,X=H7,Z=GQ(Q)-1,J=Q&~(1<<Z),Y=z+1,$=GQ(b)+Z;if($>30){var q=Z-Z%5,O=(1<<q)-1,k=(J&O).toString(32),M=J>>q,h=Z-q,S=GQ(b)+h,g=Y<<h,$0=g|M,E0=k+X;J7=1<<S|$0,H7=E0}else{var I0=Y<<Z,X1=I0|J,Z1=X;J7=1<<$|X1,H7=Z1}}function FJ(v){Pv();var b=v.return;if(b!==null){var z=1,Q=0;Av(v,z),LK(v,z,Q)}}function GQ(v){return 32-oG(v)}function MA(v){return 1<<GQ(v)-1}function RJ(v){while(v===HQ)HQ=Ob[--Lb],Ob[Lb]=null,YQ=Ob[--Lb],Ob[Lb]=null;while(v===Nv)Nv=t4[--s4],t4[s4]=null,H7=t4[--s4],t4[s4]=null,J7=t4[--s4],t4[s4]=null}function kA(){if(Pv(),Nv!==null)return{id:J7,overflow:H7};else return null}function wA(v,b){Pv(),t4[s4++]=J7,t4[s4++]=H7,t4[s4++]=Nv,J7=b.id,H7=b.overflow,Nv=v}function Pv(){if(!s6())G("Expected to be hydrating. This is a bug in React. Please file an issue.")}var t6=null,e4=null,K5=!1,Wv=!1,g7=null;function IA(){if(K5)G("We should not be hydrating here. This is a bug in React. Please file a bug.")}function NK(){Wv=!0}function VA(){return Wv}function DA(v){var b=v.stateNode.containerInfo;return e4=iN(b),t6=v,K5=!0,g7=null,Wv=!1,!0}function fA(v,b,z){if(e4=pN(b),t6=v,K5=!0,g7=null,Wv=!1,z!==null)wA(v,z);return!0}function AK(v,b){switch(v.tag){case T:{XA(v.stateNode.containerInfo,b);break}case V:{var z=(v.mode&G1)!==h0;JA(v.type,v.memoizedProps,v.stateNode,b,z);break}case o:{var Q=v.memoizedState;if(Q.dehydrated!==null)ZA(Q.dehydrated,b);break}}}function PK(v,b){AK(v,b);var z=m_();z.stateNode=b,z.return=v;var Q=v.deletions;if(Q===null)v.deletions=[z],v.flags|=Qv;else Q.push(z)}function MJ(v,b){{if(Wv)return;switch(v.tag){case T:{var z=v.stateNode.containerInfo;switch(b.tag){case V:var{type:Q,pendingProps:X}=b;HA(z,Q);break;case I:var Z=b.pendingProps;YA(z,Z);break}break}case V:{var{type:J,memoizedProps:Y,stateNode:$}=v;switch(b.tag){case V:{var{type:q,pendingProps:O}=b,k=(v.mode&G1)!==h0;KA(J,Y,$,q,O,k);break}case I:{var M=b.pendingProps,h=(v.mode&G1)!==h0;UA(J,Y,$,M,h);break}}break}case o:{var S=v.memoizedState,g=S.dehydrated;if(g!==null)switch(b.tag){case V:var{type:$0,pendingProps:E0}=b;GA(g,$0);break;case I:var I0=b.pendingProps;$A(g,I0);break}break}default:return}}}function WK(v,b){b.flags=b.flags&~t5|I6,MJ(v,b)}function _K(v,b){switch(v.tag){case V:{var{type:z,pendingProps:Q}=v,X=cN(b,z);if(X!==null)return v.stateNode=X,t6=v,e4=lN(X),!0;return!1}case I:{var Z=v.pendingProps,J=yN(b,Z);if(J!==null)return v.stateNode=J,t6=v,e4=null,!0;return!1}case o:{var Y=jN(b);if(Y!==null){var $={dehydrated:Y,treeContext:kA(),retryLane:c4};v.memoizedState=$;var q=d_(Y);return q.return=v,v.child=q,t6=v,e4=null,!0}return!1}default:return!1}}function kJ(v){return(v.mode&G1)!==h0&&(v.flags&A1)===g0}function wJ(v){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function IJ(v){if(!K5)return;var b=e4;if(!b){if(kJ(v))MJ(t6,v),wJ();WK(t6,v),K5=!1,t6=v;return}var z=b;if(!_K(v,b)){if(kJ(v))MJ(t6,v),wJ();b=n8(z);var Q=t6;if(!b||!_K(v,b)){WK(t6,v),K5=!1,t6=v;return}PK(Q,z)}}function TA(v,b,z){var Q=v.stateNode,X=!Wv,Z=rN(Q,v.type,v.memoizedProps,b,z,v,X);if(v.updateQueue=Z,Z!==null)return!0;return!1}function EA(v){var{stateNode:b,memoizedProps:z}=v,Q=nN(b,z,v);if(Q){var X=t6;if(X!==null)switch(X.tag){case T:{var Z=X.stateNode.containerInfo,J=(X.mode&G1)!==h0;zA(Z,b,z,J);break}case V:{var{type:Y,memoizedProps:$,stateNode:q}=X,O=(X.mode&G1)!==h0;QA(Y,$,q,b,z,O);break}}}return Q}function CA(v){var b=v.memoizedState,z=b!==null?b.dehydrated:null;if(!z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");tN(z,v)}function hA(v){var b=v.memoizedState,z=b!==null?b.dehydrated:null;if(!z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return sN(z)}function FK(v){var b=v.return;while(b!==null&&b.tag!==V&&b.tag!==T&&b.tag!==o)b=b.return;t6=b}function $Q(v){if(v!==t6)return!1;if(!K5)return FK(v),K5=!0,!1;if(v.tag!==T&&(v.tag!==V||bA(v.type)&&!GJ(v.type,v.memoizedProps))){var b=e4;if(b)if(kJ(v))RK(v),wJ();else while(b)PK(v,b),b=n8(b)}if(FK(v),v.tag===o)e4=hA(v);else e4=t6?n8(v.stateNode):null;return!0}function SA(){return K5&&e4!==null}function RK(v){var b=e4;while(b)AK(v,b),b=n8(b)}function Nb(){t6=null,e4=null,K5=!1,Wv=!1}function MK(){if(g7!==null)A9(g7),g7=null}function s6(){return K5}function VJ(v){if(g7===null)g7=[v];else g7.push(v)}var gA=H.ReactCurrentBatchConfig,uA=null;function mA(){return gA.transition}var U5={recordUnsafeLifecycleWarnings:function(v,b){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(v,b){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var dA=function(v){var b=null,z=v;while(z!==null){if(z.mode&N6)b=z;z=z.return}return b},_v=function(v){var b=[];return v.forEach(function(z){b.push(z)}),b.sort().join(", ")},v3=[],b3=[],z3=[],Q3=[],X3=[],Z3=[],Fv=new Set;U5.recordUnsafeLifecycleWarnings=function(v,b){if(Fv.has(v.type))return;if(typeof b.componentWillMount==="function"&&b.componentWillMount.__suppressDeprecationWarning!==!0)v3.push(v);if(v.mode&N6&&typeof b.UNSAFE_componentWillMount==="function")b3.push(v);if(typeof b.componentWillReceiveProps==="function"&&b.componentWillReceiveProps.__suppressDeprecationWarning!==!0)z3.push(v);if(v.mode&N6&&typeof b.UNSAFE_componentWillReceiveProps==="function")Q3.push(v);if(typeof b.componentWillUpdate==="function"&&b.componentWillUpdate.__suppressDeprecationWarning!==!0)X3.push(v);if(v.mode&N6&&typeof b.UNSAFE_componentWillUpdate==="function")Z3.push(v)},U5.flushPendingUnsafeLifecycleWarnings=function(){var v=new Set;if(v3.length>0)v3.forEach(function(M){v.add(t0(M)||"Component"),Fv.add(M.type)}),v3=[];var b=new Set;if(b3.length>0)b3.forEach(function(M){b.add(t0(M)||"Component"),Fv.add(M.type)}),b3=[];var z=new Set;if(z3.length>0)z3.forEach(function(M){z.add(t0(M)||"Component"),Fv.add(M.type)}),z3=[];var Q=new Set;if(Q3.length>0)Q3.forEach(function(M){Q.add(t0(M)||"Component"),Fv.add(M.type)}),Q3=[];var X=new Set;if(X3.length>0)X3.forEach(function(M){X.add(t0(M)||"Component"),Fv.add(M.type)}),X3=[];var Z=new Set;if(Z3.length>0)Z3.forEach(function(M){Z.add(t0(M)||"Component"),Fv.add(M.type)}),Z3=[];if(b.size>0){var J=_v(b);G(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
33
-
34
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
35
-
36
- Please update the following components: %s`,J)}if(Q.size>0){var Y=_v(Q);G(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
37
-
38
- * Move data fetching code or side effects to componentDidUpdate.
39
- * 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://reactjs.org/link/derived-state
40
-
41
- Please update the following components: %s`,Y)}if(Z.size>0){var $=_v(Z);G(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
42
-
43
- * Move data fetching code or side effects to componentDidUpdate.
44
-
45
- Please update the following components: %s`,$)}if(v.size>0){var q=_v(v);N(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
46
-
47
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
48
- * 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.
49
-
50
- Please update the following components: %s`,q)}if(z.size>0){var O=_v(z);N(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
51
-
52
- * Move data fetching code or side effects to componentDidUpdate.
53
- * 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://reactjs.org/link/derived-state
54
- * 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.
55
-
56
- Please update the following components: %s`,O)}if(X.size>0){var k=_v(X);N(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
57
-
58
- * Move data fetching code or side effects to componentDidUpdate.
59
- * 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.
60
-
61
- Please update the following components: %s`,k)}};var KQ=new Map,kK=new Set;U5.recordLegacyContextWarning=function(v,b){var z=dA(v);if(z===null){G("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.");return}if(kK.has(v.type))return;var Q=KQ.get(z);if(v.type.contextTypes!=null||v.type.childContextTypes!=null||b!==null&&typeof b.getChildContext==="function"){if(Q===void 0)Q=[],KQ.set(z,Q);Q.push(v)}},U5.flushLegacyContextWarning=function(){KQ.forEach(function(v,b){if(v.length===0)return;var z=v[0],Q=new Set;v.forEach(function(Z){Q.add(t0(Z)||"Component"),kK.add(Z.type)});var X=_v(Q);try{q6(z),G(`Legacy context API has been detected within a strict-mode tree.
62
-
63
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
64
-
65
- Please update the following components: %s
66
-
67
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,X)}finally{j6()}})},U5.discardPendingWarnings=function(){v3=[],b3=[],z3=[],Q3=[],X3=[],Z3=[],KQ=new Map}}var DJ,fJ,TJ,EJ,CJ,wK=function(v,b){};DJ=!1,fJ=!1,TJ={},EJ={},CJ={},wK=function(v,b){if(v===null||typeof v!=="object")return;if(!v._store||v._store.validated||v.key!=null)return;if(typeof v._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.");v._store.validated=!0;var z=t0(b)||"Component";if(EJ[z])return;EJ[z]=!0,G('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.')};function aA(v){return v.prototype&&v.prototype.isReactComponent}function J3(v,b,z){var Q=z.ref;if(Q!==null&&typeof Q!=="function"&&typeof Q!=="object"){if((v.mode&N6||R1)&&!(z._owner&&z._self&&z._owner.stateNode!==z._self)&&!(z._owner&&z._owner.tag!==P)&&!(typeof z.type==="function"&&!aA(z.type))&&z._owner){var X=t0(v)||"Component";if(!TJ[X])G('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',X,Q),TJ[X]=!0}if(z._owner){var Z=z._owner,J;if(Z){var Y=Z;if(Y.tag!==P)throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");J=Y.stateNode}if(!J)throw Error("Missing owner for string ref "+Q+". This error is likely caused by a bug in React. Please file an issue.");var $=J;b6(Q,"ref");var q=""+Q;if(b!==null&&b.ref!==null&&typeof b.ref==="function"&&b.ref._stringRef===q)return b.ref;var O=function(k){var M=$.refs;if(k===null)delete M[q];else M[q]=k};return O._stringRef=q,O}else{if(typeof Q!=="string")throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!z._owner)throw Error("Element ref was specified as a string ("+Q+`) but no owner was set. This could happen for one of the following reasons:
68
- 1. You may be adding a ref to a function component
69
- 2. You may be adding a ref to a component that was not created inside a component's render method
70
- 3. You have multiple copies of React loaded
71
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return Q}function UQ(v,b){var z=Object.prototype.toString.call(b);throw Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}function qQ(v){{var b=t0(v)||"Component";if(CJ[b])return;CJ[b]=!0,G("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function IK(v){var{_payload:b,_init:z}=v;return z(b)}function VK(v){function b(D,d){if(!v)return;var f=D.deletions;if(f===null)D.deletions=[d],D.flags|=Qv;else f.push(d)}function z(D,d){if(!v)return null;var f=d;while(f!==null)b(D,f),f=f.sibling;return null}function Q(D,d){var f=new Map,r=d;while(r!==null){if(r.key!==null)f.set(r.key,r);else f.set(r.index,r);r=r.sibling}return f}function X(D,d){var f=Tv(D,d);return f.index=0,f.sibling=null,f}function Z(D,d,f){if(D.index=f,!v)return D.flags|=fG,d;var r=D.alternate;if(r!==null){var O0=r.index;if(O0<d)return D.flags|=I6,d;else return O0}else return D.flags|=I6,d}function J(D){if(v&&D.alternate===null)D.flags|=I6;return D}function Y(D,d,f,r){if(d===null||d.tag!==I){var O0=fY(f,D.mode,r);return O0.return=D,O0}else{var U0=X(d,f);return U0.return=D,U0}}function $(D,d,f,r){var O0=f.type;if(O0===B1)return O(D,d,f.props.children,r,f.key);if(d!==null){if(d.elementType===O0||h9(d,f)||typeof O0==="object"&&O0!==null&&O0.$$typeof===w0&&IK(O0)===d.type){var U0=X(d,f.props);return U0.ref=J3(D,d,f),U0.return=D,U0._debugSource=f._source,U0._debugOwner=f._owner,U0}}var d0=DY(f,D.mode,r);return d0.ref=J3(D,d,f),d0.return=D,d0}function q(D,d,f,r){if(d===null||d.tag!==R||d.stateNode.containerInfo!==f.containerInfo||d.stateNode.implementation!==f.implementation){var O0=TY(f,D.mode,r);return O0.return=D,O0}else{var U0=X(d,f.children||[]);return U0.return=D,U0}}function O(D,d,f,r,O0){if(d===null||d.tag!==l){var U0=i7(f,D.mode,r,O0);return U0.return=D,U0}else{var d0=X(d,f);return d0.return=D,d0}}function k(D,d,f){if(typeof d==="string"&&d!==""||typeof d==="number"){var r=fY(""+d,D.mode,f);return r.return=D,r}if(typeof d==="object"&&d!==null){switch(d.$$typeof){case k1:{var O0=DY(d,D.mode,f);return O0.ref=J3(D,null,d),O0.return=D,O0}case m1:{var U0=TY(d,D.mode,f);return U0.return=D,U0}case w0:{var{_payload:d0,_init:p0}=d;return k(D,p0(d0),f)}}if(N1(d)||n1(d)){var E1=i7(d,D.mode,f,null);return E1.return=D,E1}UQ(D,d)}if(typeof d==="function")qQ(D);return null}function M(D,d,f,r){var O0=d!==null?d.key:null;if(typeof f==="string"&&f!==""||typeof f==="number"){if(O0!==null)return null;return Y(D,d,""+f,r)}if(typeof f==="object"&&f!==null){switch(f.$$typeof){case k1:if(f.key===O0)return $(D,d,f,r);else return null;case m1:if(f.key===O0)return q(D,d,f,r);else return null;case w0:{var{_payload:U0,_init:d0}=f;return M(D,d,d0(U0),r)}}if(N1(f)||n1(f)){if(O0!==null)return null;return O(D,d,f,r,null)}UQ(D,f)}if(typeof f==="function")qQ(D);return null}function h(D,d,f,r,O0){if(typeof r==="string"&&r!==""||typeof r==="number"){var U0=D.get(f)||null;return Y(d,U0,""+r,O0)}if(typeof r==="object"&&r!==null){switch(r.$$typeof){case k1:{var d0=D.get(r.key===null?f:r.key)||null;return $(d,d0,r,O0)}case m1:{var p0=D.get(r.key===null?f:r.key)||null;return q(d,p0,r,O0)}case w0:var{_payload:E1,_init:O1}=r;return h(D,d,f,O1(E1),O0)}if(N1(r)||n1(r)){var F6=D.get(f)||null;return O(d,F6,r,O0,null)}UQ(d,r)}if(typeof r==="function")qQ(d);return null}function S(D,d,f){{if(typeof D!=="object"||D===null)return d;switch(D.$$typeof){case k1:case m1:wK(D,f);var r=D.key;if(typeof r!=="string")break;if(d===null){d=new Set,d.add(r);break}if(!d.has(r)){d.add(r);break}G("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.",r);break;case w0:var{_payload:O0,_init:U0}=D;S(U0(O0),d,f);break}}return d}function g(D,d,f,r){{var O0=null;for(var U0=0;U0<f.length;U0++){var d0=f[U0];O0=S(d0,O0,D)}}var p0=null,E1=null,O1=d,F6=0,L1=0,A6=null;for(;O1!==null&&L1<f.length;L1++){if(O1.index>L1)A6=O1,O1=null;else A6=O1.sibling;var O4=M(D,O1,f[L1],r);if(O4===null){if(O1===null)O1=A6;break}if(v){if(O1&&O4.alternate===null)b(D,O1)}if(F6=Z(O4,F6,L1),E1===null)p0=O4;else E1.sibling=O4;E1=O4,O1=A6}if(L1===f.length){if(z(D,O1),s6()){var Z4=L1;Av(D,Z4)}return p0}if(O1===null){for(;L1<f.length;L1++){var p4=k(D,f[L1],r);if(p4===null)continue;if(F6=Z(p4,F6,L1),E1===null)p0=p4;else E1.sibling=p4;E1=p4}if(s6()){var I4=L1;Av(D,I4)}return p0}var V4=Q(D,O1);for(;L1<f.length;L1++){var L4=h(V4,D,L1,f[L1],r);if(L4!==null){if(v){if(L4.alternate!==null)V4.delete(L4.key===null?L1:L4.key)}if(F6=Z(L4,F6,L1),E1===null)p0=L4;else E1.sibling=L4;E1=L4}}if(v)V4.forEach(function(gb){return b(D,gb)});if(s6()){var B7=L1;Av(D,B7)}return p0}function $0(D,d,f,r){var O0=n1(f);if(typeof O0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{if(typeof Symbol==="function"&&f[Symbol.toStringTag]==="Generator"){if(!fJ)G("Using Generators 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. Keep in mind you might need to polyfill these features for older browsers.");fJ=!0}if(f.entries===O0){if(!DJ)G("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");DJ=!0}var U0=O0.call(f);if(U0){var d0=null,p0=U0.next();for(;!p0.done;p0=U0.next()){var E1=p0.value;d0=S(E1,d0,D)}}}var O1=O0.call(f);if(O1==null)throw Error("An iterable object provided no iterator.");var F6=null,L1=null,A6=d,O4=0,Z4=0,p4=null,I4=O1.next();for(;A6!==null&&!I4.done;Z4++,I4=O1.next()){if(A6.index>Z4)p4=A6,A6=null;else p4=A6.sibling;var V4=M(D,A6,I4.value,r);if(V4===null){if(A6===null)A6=p4;break}if(v){if(A6&&V4.alternate===null)b(D,A6)}if(O4=Z(V4,O4,Z4),L1===null)F6=V4;else L1.sibling=V4;L1=V4,A6=p4}if(I4.done){if(z(D,A6),s6()){var L4=Z4;Av(D,L4)}return F6}if(A6===null){for(;!I4.done;Z4++,I4=O1.next()){var B7=k(D,I4.value,r);if(B7===null)continue;if(O4=Z(B7,O4,Z4),L1===null)F6=B7;else L1.sibling=B7;L1=B7}if(s6()){var gb=Z4;Av(D,gb)}return F6}var m3=Q(D,A6);for(;!I4.done;Z4++,I4=O1.next()){var y5=h(m3,D,Z4,I4.value,r);if(y5!==null){if(v){if(y5.alternate!==null)m3.delete(y5.key===null?Z4:y5.key)}if(O4=Z(y5,O4,Z4),L1===null)F6=y5;else L1.sibling=y5;L1=y5}}if(v)m3.forEach(function(LF){return b(D,LF)});if(s6()){var OF=Z4;Av(D,OF)}return F6}function E0(D,d,f,r){if(d!==null&&d.tag===I){z(D,d.sibling);var O0=X(d,f);return O0.return=D,O0}z(D,d);var U0=fY(f,D.mode,r);return U0.return=D,U0}function I0(D,d,f,r){var O0=f.key,U0=d;while(U0!==null){if(U0.key===O0){var d0=f.type;if(d0===B1){if(U0.tag===l){z(D,U0.sibling);var p0=X(U0,f.props.children);return p0.return=D,p0._debugSource=f._source,p0._debugOwner=f._owner,p0}}else if(U0.elementType===d0||h9(U0,f)||typeof d0==="object"&&d0!==null&&d0.$$typeof===w0&&IK(d0)===U0.type){z(D,U0.sibling);var E1=X(U0,f.props);return E1.ref=J3(D,U0,f),E1.return=D,E1._debugSource=f._source,E1._debugOwner=f._owner,E1}z(D,U0);break}else b(D,U0);U0=U0.sibling}if(f.type===B1){var O1=i7(f.props.children,D.mode,r,f.key);return O1.return=D,O1}else{var F6=DY(f,D.mode,r);return F6.ref=J3(D,d,f),F6.return=D,F6}}function X1(D,d,f,r){var O0=f.key,U0=d;while(U0!==null){if(U0.key===O0)if(U0.tag===R&&U0.stateNode.containerInfo===f.containerInfo&&U0.stateNode.implementation===f.implementation){z(D,U0.sibling);var d0=X(U0,f.children||[]);return d0.return=D,d0}else{z(D,U0);break}else b(D,U0);U0=U0.sibling}var p0=TY(f,D.mode,r);return p0.return=D,p0}function Z1(D,d,f,r){var O0=typeof f==="object"&&f!==null&&f.type===B1&&f.key===null;if(O0)f=f.props.children;if(typeof f==="object"&&f!==null){switch(f.$$typeof){case k1:return J(I0(D,d,f,r));case m1:return J(X1(D,d,f,r));case w0:var{_payload:U0,_init:d0}=f;return Z1(D,d,d0(U0),r)}if(N1(f))return g(D,d,f,r);if(n1(f))return $0(D,d,f,r);UQ(D,f)}if(typeof f==="string"&&f!==""||typeof f==="number")return J(E0(D,d,""+f,r));if(typeof f==="function")qQ(D);return z(D,d)}return Z1}var Ab=VK(!0),DK=VK(!1);function cA(v,b){if(v!==null&&b.child!==v.child)throw Error("Resuming work not yet implemented.");if(b.child===null)return;var z=b.child,Q=Tv(z,z.pendingProps);b.child=Q,Q.return=b;while(z.sibling!==null)z=z.sibling,Q=Q.sibling=Tv(z,z.pendingProps),Q.return=b;Q.sibling=null}function yA(v,b){var z=v.child;while(z!==null)C_(z,b),z=z.sibling}var hJ=C7(null),SJ;SJ={};var BQ=null,Pb=null,gJ=null,OQ=!1;function LQ(){BQ=null,Pb=null,gJ=null,OQ=!1}function fK(){OQ=!0}function TK(){OQ=!1}function EK(v,b,z){{q4(hJ,b._currentValue,v),b._currentValue=z;{if(b._currentRenderer!==void 0&&b._currentRenderer!==null&&b._currentRenderer!==SJ)G("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");b._currentRenderer=SJ}}}function uJ(v,b){var z=hJ.current;U4(hJ,b),v._currentValue=z}function mJ(v,b,z){var Q=v;while(Q!==null){var X=Q.alternate;if(!Qb(Q.childLanes,b)){if(Q.childLanes=s0(Q.childLanes,b),X!==null)X.childLanes=s0(X.childLanes,b)}else if(X!==null&&!Qb(X.childLanes,b))X.childLanes=s0(X.childLanes,b);if(Q===z)break;Q=Q.return}if(Q!==z)G("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 jA(v,b,z){oA(v,b,z)}function oA(v,b,z){var Q=v.child;if(Q!==null)Q.return=v;while(Q!==null){var X=void 0,Z=Q.dependencies;if(Z!==null){X=Q.child;var J=Z.firstContext;while(J!==null){if(J.context===b){if(Q.tag===P){var Y=M8(z),$=Y7(t1,Y);$.tag=AQ;var q=Q.updateQueue;if(q===null);else{var O=q.shared,k=O.pending;if(k===null)$.next=$;else $.next=k.next,k.next=$;O.pending=$}}Q.lanes=s0(Q.lanes,z);var M=Q.alternate;if(M!==null)M.lanes=s0(M.lanes,z);mJ(Q.return,z,v),Z.lanes=s0(Z.lanes,z);break}J=J.next}}else if(Q.tag===t)X=Q.type===v.type?null:Q.child;else if(Q.tag===z1){var h=Q.return;if(h===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes=s0(h.lanes,z);var S=h.alternate;if(S!==null)S.lanes=s0(S.lanes,z);mJ(h,z,v),X=Q.sibling}else X=Q.child;if(X!==null)X.return=Q;else{X=Q;while(X!==null){if(X===v){X=null;break}var g=X.sibling;if(g!==null){g.return=X.return,X=g;break}X=X.return}}Q=X}}function Wb(v,b){BQ=v,Pb=null,gJ=null;var z=v.dependencies;if(z!==null){var Q=z.firstContext;if(Q!==null){if(y4(z.lanes,b))_3();z.firstContext=null}}}function V6(v){if(OQ)G("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().");var b=v._currentValue;if(gJ===v);else{var z={context:v,memoizedValue:b,next:null};if(Pb===null){if(BQ===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().");Pb=z,BQ.dependencies={lanes:i,firstContext:z}}else Pb=Pb.next=z}return b}var Rv=null;function dJ(v){if(Rv===null)Rv=[v];else Rv.push(v)}function xA(){if(Rv!==null){for(var v=0;v<Rv.length;v++){var b=Rv[v],z=b.interleaved;if(z!==null){b.interleaved=null;var Q=z.next,X=b.pending;if(X!==null){var Z=X.next;X.next=Q,z.next=Z}b.pending=z}}Rv=null}}function CK(v,b,z,Q){var X=b.interleaved;if(X===null)z.next=z,dJ(b);else z.next=X.next,X.next=z;return b.interleaved=z,NQ(v,Q)}function lA(v,b,z,Q){var X=b.interleaved;if(X===null)z.next=z,dJ(b);else z.next=X.next,X.next=z;b.interleaved=z}function iA(v,b,z,Q){var X=b.interleaved;if(X===null)z.next=z,dJ(b);else z.next=X.next,X.next=z;return b.interleaved=z,NQ(v,Q)}function C4(v,b){return NQ(v,b)}var pA=NQ;function NQ(v,b){v.lanes=s0(v.lanes,b);var z=v.alternate;if(z!==null)z.lanes=s0(z.lanes,b);if(z===null&&(v.flags&(I6|t5))!==g0)f9(v);var Q=v,X=v.return;while(X!==null){if(X.childLanes=s0(X.childLanes,b),z=X.alternate,z!==null)z.childLanes=s0(z.childLanes,b);else if((X.flags&(I6|t5))!==g0)f9(v);Q=X,X=X.return}if(Q.tag===T){var Z=Q.stateNode;return Z}else return null}var hK=0,SK=1,AQ=2,aJ=3,PQ=!1,cJ,WQ;cJ=!1,WQ=null;function yJ(v){var b={baseState:v.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:i},effects:null};v.updateQueue=b}function gK(v,b){var z=b.updateQueue,Q=v.updateQueue;if(z===Q){var X={baseState:Q.baseState,firstBaseUpdate:Q.firstBaseUpdate,lastBaseUpdate:Q.lastBaseUpdate,shared:Q.shared,effects:Q.effects};b.updateQueue=X}}function Y7(v,b){var z={eventTime:v,lane:b,tag:hK,payload:null,callback:null,next:null};return z}function u7(v,b,z){var Q=v.updateQueue;if(Q===null)return null;var X=Q.shared;if(WQ===X&&!cJ)G("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."),cJ=!0;if(nW()){var Z=X.pending;if(Z===null)b.next=b;else b.next=Z.next,Z.next=b;return X.pending=b,pA(v,z)}else return iA(v,X,b,z)}function _Q(v,b,z){var Q=b.updateQueue;if(Q===null)return;var X=Q.shared;if(pG(z)){var Z=X.lanes;Z=nG(Z,v.pendingLanes);var J=s0(Z,z);X.lanes=J,hZ(v,J)}}function jJ(v,b){var{updateQueue:z,alternate:Q}=v;if(Q!==null){var X=Q.updateQueue;if(z===X){var Z=null,J=null,Y=z.firstBaseUpdate;if(Y!==null){var $=Y;do{var q={eventTime:$.eventTime,lane:$.lane,tag:$.tag,payload:$.payload,callback:$.callback,next:null};if(J===null)Z=J=q;else J.next=q,J=q;$=$.next}while($!==null);if(J===null)Z=J=b;else J.next=b,J=b}else Z=J=b;z={baseState:X.baseState,firstBaseUpdate:Z,lastBaseUpdate:J,shared:X.shared,effects:X.effects},v.updateQueue=z;return}}var O=z.lastBaseUpdate;if(O===null)z.firstBaseUpdate=b;else O.next=b;z.lastBaseUpdate=b}function rA(v,b,z,Q,X,Z){switch(z.tag){case SK:{var J=z.payload;if(typeof J==="function"){fK();var Y=J.call(Z,Q,X);{if(v.mode&N6){x6(!0);try{J.call(Z,Q,X)}finally{x6(!1)}}TK()}return Y}return J}case aJ:v.flags=v.flags&~R4|A1;case hK:{var $=z.payload,q;if(typeof $==="function"){fK(),q=$.call(Z,Q,X);{if(v.mode&N6){x6(!0);try{$.call(Z,Q,X)}finally{x6(!1)}}TK()}}else q=$;if(q===null||q===void 0)return Q;return e0({},Q,q)}case AQ:return PQ=!0,Q}return Q}function FQ(v,b,z,Q){var X=v.updateQueue;PQ=!1,WQ=X.shared;var{firstBaseUpdate:Z,lastBaseUpdate:J}=X,Y=X.shared.pending;if(Y!==null){X.shared.pending=null;var $=Y,q=$.next;if($.next=null,J===null)Z=q;else J.next=q;J=$;var O=v.alternate;if(O!==null){var k=O.updateQueue,M=k.lastBaseUpdate;if(M!==J){if(M===null)k.firstBaseUpdate=q;else M.next=q;k.lastBaseUpdate=$}}}if(Z!==null){var h=X.baseState,S=i,g=null,$0=null,E0=null,I0=Z;do{var{lane:X1,eventTime:Z1}=I0;if(!Qb(Q,X1)){var D={eventTime:Z1,lane:X1,tag:I0.tag,payload:I0.payload,callback:I0.callback,next:null};if(E0===null)$0=E0=D,g=h;else E0=E0.next=D;S=s0(S,X1)}else{if(E0!==null){var d={eventTime:Z1,lane:l6,tag:I0.tag,payload:I0.payload,callback:I0.callback,next:null};E0=E0.next=d}h=rA(v,X,I0,h,b,z);var f=I0.callback;if(f!==null&&I0.lane!==l6){v.flags|=bZ;var r=X.effects;if(r===null)X.effects=[I0];else r.push(I0)}}if(I0=I0.next,I0===null)if(Y=X.shared.pending,Y===null)break;else{var O0=Y,U0=O0.next;O0.next=null,I0=U0,X.lastBaseUpdate=O0,X.shared.pending=null}}while(!0);if(E0===null)g=h;X.baseState=g,X.firstBaseUpdate=$0,X.lastBaseUpdate=E0;var d0=X.shared.interleaved;if(d0!==null){var p0=d0;do S=s0(S,p0.lane),p0=p0.next;while(p0!==d0)}else if(Z===null)X.shared.lanes=i;C3(S),v.lanes=S,v.memoizedState=h}WQ=null}function nA(v,b){if(typeof v!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+v));v.call(b)}function uK(){PQ=!1}function RQ(){return PQ}function mK(v,b,z){var Q=b.effects;if(b.effects=null,Q!==null)for(var X=0;X<Q.length;X++){var Z=Q[X],J=Z.callback;if(J!==null)Z.callback=null,nA(J,z)}}var H3={},m7=C7(H3),Y3=C7(H3),MQ=C7(H3);function kQ(v){if(v===H3)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return v}function dK(){var v=kQ(MQ.current);return v}function oJ(v,b){q4(MQ,b,v),q4(Y3,v,v),q4(m7,H3,v);var z=qN(b);U4(m7,v),q4(m7,z,v)}function _b(v){U4(m7,v),U4(Y3,v),U4(MQ,v)}function xJ(){var v=kQ(m7.current);return v}function aK(v){var b=kQ(MQ.current),z=kQ(m7.current),Q=BN(z,v.type);if(z===Q)return;q4(Y3,v,v),q4(m7,Q,v)}function lJ(v){if(Y3.current!==v)return;U4(m7,v),U4(Y3,v)}var tA=0,cK=1,yK=1,G3=2,q5=C7(tA);function iJ(v,b){return(v&b)!==0}function Fb(v){return v&cK}function pJ(v,b){return v&cK|b}function sA(v,b){return v|b}function d7(v,b){q4(q5,b,v)}function Rb(v){U4(q5,v)}function eA(v,b){var z=v.memoizedState;if(z!==null){if(z.dehydrated!==null)return!0;return!1}var Q=v.memoizedProps;return!0}function wQ(v){var b=v;while(b!==null){if(b.tag===o){var z=b.memoizedState;if(z!==null){var Q=z.dehydrated;if(Q===null||XK(Q)||qJ(Q))return b}}else if(b.tag===c0&&b.memoizedProps.revealOrder!==void 0){var X=(b.flags&A1)!==g0;if(X)return b}else if(b.child!==null){b.child.return=b,b=b.child;continue}if(b===v)return null;while(b.sibling===null){if(b.return===null||b.return===v)return null;b=b.return}b.sibling.return=b.return,b=b.sibling}return null}var h4=0,E6=1,S5=2,C6=4,e6=8,rJ=[];function nJ(){for(var v=0;v<rJ.length;v++){var b=rJ[v];b._workInProgressVersionPrimary=null}rJ.length=0}function vP(v,b){var z=b._getVersion,Q=z(b._source);if(v.mutableSourceEagerHydrationData==null)v.mutableSourceEagerHydrationData=[b,Q];else v.mutableSourceEagerHydrationData.push(b,Q)}var{ReactCurrentDispatcher:B0,ReactCurrentBatchConfig:$3}=H,tJ,Mb;tJ=new Set;var Mv=i,T1=null,h6=null,S6=null,IQ=!1,K3=!1,U3=0,bP=0,zP=25,c=null,v5=null,a7=-1,sJ=!1;function _1(){{var v=c;if(v5===null)v5=[v];else v5.push(v)}}function G0(){{var v=c;if(v5!==null){if(a7++,v5[a7]!==v)QP(v)}}}function kb(v){if(v!==void 0&&v!==null&&!N1(v))G("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",c,typeof v)}function QP(v){{var b=t0(T1);if(!tJ.has(b)){if(tJ.add(b),v5!==null){var z="",Q=30;for(var X=0;X<=a7;X++){var Z=v5[X],J=X===a7?v:Z,Y=X+1+". "+Z;while(Y.length<Q)Y+=" ";Y+=J+`
72
- `,z+=Y}G(`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://reactjs.org/link/rules-of-hooks
73
-
74
- Previous render Next render
75
- ------------------------------------------------------
76
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77
- `,b,z)}}}}function B4(){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:
78
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
79
- 2. You might be breaking the Rules of Hooks
80
- 3. You might have more than one copy of React in the same app
81
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function eJ(v,b){if(sJ)return!1;if(b===null)return G("%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.",c),!1;if(v.length!==b.length)G(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
82
-
83
- Previous: %s
84
- Incoming: %s`,c,"["+b.join(", ")+"]","["+v.join(", ")+"]");for(var z=0;z<b.length&&z<v.length;z++){if(x4(v[z],b[z]))continue;return!1}return!0}function wb(v,b,z,Q,X,Z){if(Mv=Z,T1=b,v5=v!==null?v._debugHookTypes:null,a7=-1,sJ=v!==null&&v.type!==b.type,b.memoizedState=null,b.updateQueue=null,b.lanes=i,v!==null&&v.memoizedState!==null)B0.current=$U;else if(v5!==null)B0.current=GU;else B0.current=YU;var J=z(Q,X);if(K3){var Y=0;do{if(K3=!1,U3=0,Y>=zP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");Y+=1,sJ=!1,h6=null,S6=null,b.updateQueue=null,a7=-1,B0.current=KU,J=z(Q,X)}while(K3)}B0.current=yQ,b._debugHookTypes=v5;var $=h6!==null&&h6.next!==null;if(Mv=i,T1=null,h6=null,S6=null,c=null,v5=null,a7=-1,v!==null&&(v.flags&e5)!==(b.flags&e5)&&(v.mode&G1)!==h0)G("Internal React error: Expected static flag was missing. Please notify the React team.");if(IQ=!1,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return J}function Ib(){var v=U3!==0;return U3=0,v}function jK(v,b,z){if(b.updateQueue=v.updateQueue,(b.mode&T5)!==h0)b.flags&=~(Wz|s5|H5|U1);else b.flags&=~(H5|U1);v.lanes=Iz(v.lanes,z)}function oK(){if(B0.current=yQ,IQ){var v=T1.memoizedState;while(v!==null){var b=v.queue;if(b!==null)b.pending=null;v=v.next}IQ=!1}Mv=i,T1=null,h6=null,S6=null,v5=null,a7=-1,c=null,QU=!1,K3=!1,U3=0}function g5(){var v={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};if(S6===null)T1.memoizedState=S6=v;else S6=S6.next=v;return S6}function b5(){var v;if(h6===null){var b=T1.alternate;if(b!==null)v=b.memoizedState;else v=null}else v=h6.next;var z;if(S6===null)z=T1.memoizedState;else z=S6.next;if(z!==null)S6=z,z=S6.next,h6=v;else{if(v===null)throw Error("Rendered more hooks than during the previous render.");h6=v;var Q={memoizedState:h6.memoizedState,baseState:h6.baseState,baseQueue:h6.baseQueue,queue:h6.queue,next:null};if(S6===null)T1.memoizedState=S6=Q;else S6=S6.next=Q}return S6}function xK(){return{lastEffect:null,stores:null}}function vH(v,b){return typeof b==="function"?b(v):b}function bH(v,b,z){var Q=g5(),X;if(z!==void 0)X=z(b);else X=b;Q.memoizedState=Q.baseState=X;var Z={pending:null,interleaved:null,lanes:i,dispatch:null,lastRenderedReducer:v,lastRenderedState:X};Q.queue=Z;var J=Z.dispatch=JP.bind(null,T1,Z);return[Q.memoizedState,J]}function zH(v,b,z){var Q=b5(),X=Q.queue;if(X===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");X.lastRenderedReducer=v;var Z=h6,J=Z.baseQueue,Y=X.pending;if(Y!==null){if(J!==null){var $=J.next,q=Y.next;J.next=q,Y.next=$}if(Z.baseQueue!==J)G("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.");Z.baseQueue=J=Y,X.pending=null}if(J!==null){var O=J.next,k=Z.baseState,M=null,h=null,S=null,g=O;do{var $0=g.lane;if(!Qb(Mv,$0)){var E0={lane:$0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};if(S===null)h=S=E0,M=k;else S=S.next=E0;T1.lanes=s0(T1.lanes,$0),C3($0)}else{if(S!==null){var I0={lane:l6,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};S=S.next=I0}if(g.hasEagerState)k=g.eagerState;else{var X1=g.action;k=v(k,X1)}}g=g.next}while(g!==null&&g!==O);if(S===null)M=k;else S.next=h;if(!x4(k,Q.memoizedState))_3();Q.memoizedState=k,Q.baseState=M,Q.baseQueue=S,X.lastRenderedState=k}var Z1=X.interleaved;if(Z1!==null){var D=Z1;do{var d=D.lane;T1.lanes=s0(T1.lanes,d),C3(d),D=D.next}while(D!==Z1)}else if(J===null)X.lanes=i;var f=X.dispatch;return[Q.memoizedState,f]}function QH(v,b,z){var Q=b5(),X=Q.queue;if(X===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");X.lastRenderedReducer=v;var{dispatch:Z,pending:J}=X,Y=Q.memoizedState;if(J!==null){X.pending=null;var $=J.next,q=$;do{var O=q.action;Y=v(Y,O),q=q.next}while(q!==$);if(!x4(Y,Q.memoizedState))_3();if(Q.memoizedState=Y,Q.baseQueue===null)Q.baseState=Y;X.lastRenderedState=Y}return[Y,Z]}function XH(v,b,z){return}function VQ(v,b,z){return}function ZH(v,b,z){var Q=T1,X=g5(),Z,J=s6();if(J){if(z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");if(Z=z(),!Mb){if(Z!==z())G("The result of getServerSnapshot should be cached to avoid an infinite loop"),Mb=!0}}else{if(Z=b(),!Mb){var Y=b();if(!x4(Z,Y))G("The result of getSnapshot should be cached to avoid an infinite loop"),Mb=!0}var $=HX();if($===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!wz($,Mv))lK(Q,b,Z)}X.memoizedState=Z;var q={value:Z,getSnapshot:b};return X.queue=q,CQ(pK.bind(null,Q,q,v),[v]),Q.flags|=H5,q3(E6|e6,iK.bind(null,Q,q,Z,b),void 0,null),Z}function DQ(v,b,z){var Q=T1,X=b5(),Z=b();if(!Mb){var J=b();if(!x4(Z,J))G("The result of getSnapshot should be cached to avoid an infinite loop"),Mb=!0}var Y=X.memoizedState,$=!x4(Y,Z);if($)X.memoizedState=Z,_3();var q=X.queue;if(O3(pK.bind(null,Q,q,v),[v]),q.getSnapshot!==b||$||S6!==null&&S6.memoizedState.tag&E6){Q.flags|=H5,q3(E6|e6,iK.bind(null,Q,q,Z,b),void 0,null);var O=HX();if(O===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!wz(O,Mv))lK(Q,b,Z)}return Z}function lK(v,b,z){v.flags|=Pz;var Q={getSnapshot:b,value:z},X=T1.updateQueue;if(X===null)X=xK(),T1.updateQueue=X,X.stores=[Q];else{var Z=X.stores;if(Z===null)X.stores=[Q];else Z.push(Q)}}function iK(v,b,z,Q){if(b.value=z,b.getSnapshot=Q,rK(b))nK(v)}function pK(v,b,z){var Q=function(){if(rK(b))nK(v)};return z(Q)}function rK(v){var{getSnapshot:b,value:z}=v;try{var Q=b();return!x4(z,Q)}catch(X){return!0}}function nK(v){var b=C4(v,j0);if(b!==null)d6(b,v,j0,t1)}function fQ(v){var b=g5();if(typeof v==="function")v=v();b.memoizedState=b.baseState=v;var z={pending:null,interleaved:null,lanes:i,dispatch:null,lastRenderedReducer:vH,lastRenderedState:v};b.queue=z;var Q=z.dispatch=HP.bind(null,T1,z);return[b.memoizedState,Q]}function JH(v){return zH(vH)}function HH(v){return QH(vH)}function q3(v,b,z,Q){var X={tag:v,create:b,destroy:z,deps:Q,next:null},Z=T1.updateQueue;if(Z===null)Z=xK(),T1.updateQueue=Z,Z.lastEffect=X.next=X;else{var J=Z.lastEffect;if(J===null)Z.lastEffect=X.next=X;else{var Y=J.next;J.next=X,X.next=Y,Z.lastEffect=X}}return X}function YH(v){var b=g5();{var z={current:v};return b.memoizedState=z,z}}function TQ(v){var b=b5();return b.memoizedState}function B3(v,b,z,Q){var X=g5(),Z=Q===void 0?null:Q;T1.flags|=v,X.memoizedState=q3(E6|b,z,void 0,Z)}function EQ(v,b,z,Q){var X=b5(),Z=Q===void 0?null:Q,J=void 0;if(h6!==null){var Y=h6.memoizedState;if(J=Y.destroy,Z!==null){var $=Y.deps;if(eJ(Z,$)){X.memoizedState=q3(b,z,J,Z);return}}}T1.flags|=v,X.memoizedState=q3(E6|b,z,J,Z)}function CQ(v,b){if((T1.mode&T5)!==h0)return B3(Wz|H5|XZ,e6,v,b);else return B3(H5|XZ,e6,v,b)}function O3(v,b){return EQ(H5,e6,v,b)}function GH(v,b){return B3(U1,S5,v,b)}function hQ(v,b){return EQ(U1,S5,v,b)}function $H(v,b){var z=U1;if(z|=Jv,(T1.mode&T5)!==h0)z|=s5;return B3(z,C6,v,b)}function SQ(v,b){return EQ(U1,C6,v,b)}function tK(v,b){if(typeof b==="function"){var z=b,Q=v();return z(Q),function(){z(null)}}else if(b!==null&&b!==void 0){var X=b;if(!X.hasOwnProperty("current"))G("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(X).join(", ")+"}");var Z=v();return X.current=Z,function(){X.current=null}}}function KH(v,b,z){if(typeof b!=="function")G("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",b!==null?typeof b:"null");var Q=z!==null&&z!==void 0?z.concat([v]):null,X=U1;if(X|=Jv,(T1.mode&T5)!==h0)X|=s5;return B3(X,C6,tK.bind(null,b,v),Q)}function gQ(v,b,z){if(typeof b!=="function")G("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",b!==null?typeof b:"null");var Q=z!==null&&z!==void 0?z.concat([v]):null;return EQ(U1,C6,tK.bind(null,b,v),Q)}function uQ(v,b){}var mQ=uQ;function UH(v,b){var z=g5(),Q=b===void 0?null:b;return z.memoizedState=[v,Q],v}function dQ(v,b){var z=b5(),Q=b===void 0?null:b,X=z.memoizedState;if(X!==null){if(Q!==null){var Z=X[1];if(eJ(Q,Z))return X[0]}}return z.memoizedState=[v,Q],v}function qH(v,b){var z=g5(),Q=b===void 0?null:b,X=v();return z.memoizedState=[X,Q],X}function aQ(v,b){var z=b5(),Q=b===void 0?null:b,X=z.memoizedState;if(X!==null){if(Q!==null){var Z=X[1];if(eJ(Q,Z))return X[0]}}var J=v();return z.memoizedState=[J,Q],J}function BH(v){var b=g5();return b.memoizedState=v,v}function sK(v){var b=b5(),z=h6,Q=z.memoizedState;return vU(b,Q,v)}function eK(v){var b=b5();if(h6===null)return b.memoizedState=v,v;else{var z=h6.memoizedState;return vU(b,z,v)}}function vU(v,b,z){var Q=!jO(Mv);if(Q){if(!x4(z,b)){var X=rG();T1.lanes=s0(T1.lanes,X),C3(X),v.baseState=!0}return b}else{if(v.baseState)v.baseState=!1,_3();return v.memoizedState=z,z}}function XP(v,b,z){var Q=G5();i6(sO(Q,b7)),v(!0);var X=$3.transition;$3.transition={};var Z=$3.transition;$3.transition._updatedFibers=new Set;try{v(!1),b()}finally{if(i6(Q),$3.transition=X,X===null&&Z._updatedFibers){var J=Z._updatedFibers.size;if(J>10)N("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.");Z._updatedFibers.clear()}}}function OH(){var v=fQ(!1),b=v[0],z=v[1],Q=XP.bind(null,z),X=g5();return X.memoizedState=Q,[b,Q]}function bU(){var v=JH(),b=v[0],z=b5(),Q=z.memoizedState;return[b,Q]}function zU(){var v=HH(),b=v[0],z=b5(),Q=z.memoizedState;return[b,Q]}var QU=!1;function ZP(){return QU}function LH(){var v=g5(),b=HX(),z=b.identifierPrefix,Q;if(s6()){var X=RA();Q=":"+z+"R"+X;var Z=U3++;if(Z>0)Q+="H"+Z.toString(32);Q+=":"}else{var J=bP++;Q=":"+z+"r"+J.toString(32)+":"}return v.memoizedState=Q,Q}function cQ(){var v=b5(),b=v.memoizedState;return b}function JP(v,b,z){if(typeof arguments[3]==="function")G("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().");var Q=x7(v),X={lane:Q,action:z,hasEagerState:!1,eagerState:null,next:null};if(XU(v))ZU(b,X);else{var Z=CK(v,b,X,Q);if(Z!==null){var J=w4();d6(Z,v,Q,J),JU(Z,b,Q)}}HU(v,Q)}function HP(v,b,z){if(typeof arguments[3]==="function")G("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().");var Q=x7(v),X={lane:Q,action:z,hasEagerState:!1,eagerState:null,next:null};if(XU(v))ZU(b,X);else{var Z=v.alternate;if(v.lanes===i&&(Z===null||Z.lanes===i)){var J=b.lastRenderedReducer;if(J!==null){var Y;Y=B0.current,B0.current=B5;try{var $=b.lastRenderedState,q=J($,z);if(X.hasEagerState=!0,X.eagerState=q,x4(q,$)){lA(v,b,X,Q);return}}catch(M){}finally{B0.current=Y}}}var O=CK(v,b,X,Q);if(O!==null){var k=w4();d6(O,v,Q,k),JU(O,b,Q)}}HU(v,Q)}function XU(v){var b=v.alternate;return v===T1||b!==null&&b===T1}function ZU(v,b){K3=IQ=!0;var z=v.pending;if(z===null)b.next=b;else b.next=z.next,z.next=b;v.pending=b}function JU(v,b,z){if(pG(z)){var Q=b.lanes;Q=nG(Q,v.pendingLanes);var X=s0(Q,z);b.lanes=X,hZ(v,X)}}function HU(v,b,z){GZ(v,b)}var yQ={readContext:V6,useCallback:B4,useContext:B4,useEffect:B4,useImperativeHandle:B4,useInsertionEffect:B4,useLayoutEffect:B4,useMemo:B4,useReducer:B4,useRef:B4,useState:B4,useDebugValue:B4,useDeferredValue:B4,useTransition:B4,useMutableSource:B4,useSyncExternalStore:B4,useId:B4,unstable_isNewReconciler:v1},YU=null,GU=null,$U=null,KU=null,u5=null,B5=null,jQ=null;{var NH=function(){G("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().")},o0=function(){G("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://reactjs.org/link/rules-of-hooks")};YU={readContext:function(v){return V6(v)},useCallback:function(v,b){return c="useCallback",_1(),kb(b),UH(v,b)},useContext:function(v){return c="useContext",_1(),V6(v)},useEffect:function(v,b){return c="useEffect",_1(),kb(b),CQ(v,b)},useImperativeHandle:function(v,b,z){return c="useImperativeHandle",_1(),kb(z),KH(v,b,z)},useInsertionEffect:function(v,b){return c="useInsertionEffect",_1(),kb(b),GH(v,b)},useLayoutEffect:function(v,b){return c="useLayoutEffect",_1(),kb(b),$H(v,b)},useMemo:function(v,b){c="useMemo",_1(),kb(b);var z=B0.current;B0.current=u5;try{return qH(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){c="useReducer",_1();var Q=B0.current;B0.current=u5;try{return bH(v,b,z)}finally{B0.current=Q}},useRef:function(v){return c="useRef",_1(),YH(v)},useState:function(v){c="useState",_1();var b=B0.current;B0.current=u5;try{return fQ(v)}finally{B0.current=b}},useDebugValue:function(v,b){return c="useDebugValue",_1(),uQ()},useDeferredValue:function(v){return c="useDeferredValue",_1(),BH(v)},useTransition:function(){return c="useTransition",_1(),OH()},useMutableSource:function(v,b,z){return c="useMutableSource",_1(),XH()},useSyncExternalStore:function(v,b,z){return c="useSyncExternalStore",_1(),ZH(v,b,z)},useId:function(){return c="useId",_1(),LH()},unstable_isNewReconciler:v1},GU={readContext:function(v){return V6(v)},useCallback:function(v,b){return c="useCallback",G0(),UH(v,b)},useContext:function(v){return c="useContext",G0(),V6(v)},useEffect:function(v,b){return c="useEffect",G0(),CQ(v,b)},useImperativeHandle:function(v,b,z){return c="useImperativeHandle",G0(),KH(v,b,z)},useInsertionEffect:function(v,b){return c="useInsertionEffect",G0(),GH(v,b)},useLayoutEffect:function(v,b){return c="useLayoutEffect",G0(),$H(v,b)},useMemo:function(v,b){c="useMemo",G0();var z=B0.current;B0.current=u5;try{return qH(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){c="useReducer",G0();var Q=B0.current;B0.current=u5;try{return bH(v,b,z)}finally{B0.current=Q}},useRef:function(v){return c="useRef",G0(),YH(v)},useState:function(v){c="useState",G0();var b=B0.current;B0.current=u5;try{return fQ(v)}finally{B0.current=b}},useDebugValue:function(v,b){return c="useDebugValue",G0(),uQ()},useDeferredValue:function(v){return c="useDeferredValue",G0(),BH(v)},useTransition:function(){return c="useTransition",G0(),OH()},useMutableSource:function(v,b,z){return c="useMutableSource",G0(),XH()},useSyncExternalStore:function(v,b,z){return c="useSyncExternalStore",G0(),ZH(v,b,z)},useId:function(){return c="useId",G0(),LH()},unstable_isNewReconciler:v1},$U={readContext:function(v){return V6(v)},useCallback:function(v,b){return c="useCallback",G0(),dQ(v,b)},useContext:function(v){return c="useContext",G0(),V6(v)},useEffect:function(v,b){return c="useEffect",G0(),O3(v,b)},useImperativeHandle:function(v,b,z){return c="useImperativeHandle",G0(),gQ(v,b,z)},useInsertionEffect:function(v,b){return c="useInsertionEffect",G0(),hQ(v,b)},useLayoutEffect:function(v,b){return c="useLayoutEffect",G0(),SQ(v,b)},useMemo:function(v,b){c="useMemo",G0();var z=B0.current;B0.current=B5;try{return aQ(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){c="useReducer",G0();var Q=B0.current;B0.current=B5;try{return zH(v,b,z)}finally{B0.current=Q}},useRef:function(v){return c="useRef",G0(),TQ()},useState:function(v){c="useState",G0();var b=B0.current;B0.current=B5;try{return JH(v)}finally{B0.current=b}},useDebugValue:function(v,b){return c="useDebugValue",G0(),mQ()},useDeferredValue:function(v){return c="useDeferredValue",G0(),sK(v)},useTransition:function(){return c="useTransition",G0(),bU()},useMutableSource:function(v,b,z){return c="useMutableSource",G0(),VQ()},useSyncExternalStore:function(v,b,z){return c="useSyncExternalStore",G0(),DQ(v,b)},useId:function(){return c="useId",G0(),cQ()},unstable_isNewReconciler:v1},KU={readContext:function(v){return V6(v)},useCallback:function(v,b){return c="useCallback",G0(),dQ(v,b)},useContext:function(v){return c="useContext",G0(),V6(v)},useEffect:function(v,b){return c="useEffect",G0(),O3(v,b)},useImperativeHandle:function(v,b,z){return c="useImperativeHandle",G0(),gQ(v,b,z)},useInsertionEffect:function(v,b){return c="useInsertionEffect",G0(),hQ(v,b)},useLayoutEffect:function(v,b){return c="useLayoutEffect",G0(),SQ(v,b)},useMemo:function(v,b){c="useMemo",G0();var z=B0.current;B0.current=jQ;try{return aQ(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){c="useReducer",G0();var Q=B0.current;B0.current=jQ;try{return QH(v,b,z)}finally{B0.current=Q}},useRef:function(v){return c="useRef",G0(),TQ()},useState:function(v){c="useState",G0();var b=B0.current;B0.current=jQ;try{return HH(v)}finally{B0.current=b}},useDebugValue:function(v,b){return c="useDebugValue",G0(),mQ()},useDeferredValue:function(v){return c="useDeferredValue",G0(),eK(v)},useTransition:function(){return c="useTransition",G0(),zU()},useMutableSource:function(v,b,z){return c="useMutableSource",G0(),VQ()},useSyncExternalStore:function(v,b,z){return c="useSyncExternalStore",G0(),DQ(v,b)},useId:function(){return c="useId",G0(),cQ()},unstable_isNewReconciler:v1},u5={readContext:function(v){return NH(),V6(v)},useCallback:function(v,b){return c="useCallback",o0(),_1(),UH(v,b)},useContext:function(v){return c="useContext",o0(),_1(),V6(v)},useEffect:function(v,b){return c="useEffect",o0(),_1(),CQ(v,b)},useImperativeHandle:function(v,b,z){return c="useImperativeHandle",o0(),_1(),KH(v,b,z)},useInsertionEffect:function(v,b){return c="useInsertionEffect",o0(),_1(),GH(v,b)},useLayoutEffect:function(v,b){return c="useLayoutEffect",o0(),_1(),$H(v,b)},useMemo:function(v,b){c="useMemo",o0(),_1();var z=B0.current;B0.current=u5;try{return qH(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){c="useReducer",o0(),_1();var Q=B0.current;B0.current=u5;try{return bH(v,b,z)}finally{B0.current=Q}},useRef:function(v){return c="useRef",o0(),_1(),YH(v)},useState:function(v){c="useState",o0(),_1();var b=B0.current;B0.current=u5;try{return fQ(v)}finally{B0.current=b}},useDebugValue:function(v,b){return c="useDebugValue",o0(),_1(),uQ()},useDeferredValue:function(v){return c="useDeferredValue",o0(),_1(),BH(v)},useTransition:function(){return c="useTransition",o0(),_1(),OH()},useMutableSource:function(v,b,z){return c="useMutableSource",o0(),_1(),XH()},useSyncExternalStore:function(v,b,z){return c="useSyncExternalStore",o0(),_1(),ZH(v,b,z)},useId:function(){return c="useId",o0(),_1(),LH()},unstable_isNewReconciler:v1},B5={readContext:function(v){return NH(),V6(v)},useCallback:function(v,b){return c="useCallback",o0(),G0(),dQ(v,b)},useContext:function(v){return c="useContext",o0(),G0(),V6(v)},useEffect:function(v,b){return c="useEffect",o0(),G0(),O3(v,b)},useImperativeHandle:function(v,b,z){return c="useImperativeHandle",o0(),G0(),gQ(v,b,z)},useInsertionEffect:function(v,b){return c="useInsertionEffect",o0(),G0(),hQ(v,b)},useLayoutEffect:function(v,b){return c="useLayoutEffect",o0(),G0(),SQ(v,b)},useMemo:function(v,b){c="useMemo",o0(),G0();var z=B0.current;B0.current=B5;try{return aQ(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){c="useReducer",o0(),G0();var Q=B0.current;B0.current=B5;try{return zH(v,b,z)}finally{B0.current=Q}},useRef:function(v){return c="useRef",o0(),G0(),TQ()},useState:function(v){c="useState",o0(),G0();var b=B0.current;B0.current=B5;try{return JH(v)}finally{B0.current=b}},useDebugValue:function(v,b){return c="useDebugValue",o0(),G0(),mQ()},useDeferredValue:function(v){return c="useDeferredValue",o0(),G0(),sK(v)},useTransition:function(){return c="useTransition",o0(),G0(),bU()},useMutableSource:function(v,b,z){return c="useMutableSource",o0(),G0(),VQ()},useSyncExternalStore:function(v,b,z){return c="useSyncExternalStore",o0(),G0(),DQ(v,b)},useId:function(){return c="useId",o0(),G0(),cQ()},unstable_isNewReconciler:v1},jQ={readContext:function(v){return NH(),V6(v)},useCallback:function(v,b){return c="useCallback",o0(),G0(),dQ(v,b)},useContext:function(v){return c="useContext",o0(),G0(),V6(v)},useEffect:function(v,b){return c="useEffect",o0(),G0(),O3(v,b)},useImperativeHandle:function(v,b,z){return c="useImperativeHandle",o0(),G0(),gQ(v,b,z)},useInsertionEffect:function(v,b){return c="useInsertionEffect",o0(),G0(),hQ(v,b)},useLayoutEffect:function(v,b){return c="useLayoutEffect",o0(),G0(),SQ(v,b)},useMemo:function(v,b){c="useMemo",o0(),G0();var z=B0.current;B0.current=B5;try{return aQ(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){c="useReducer",o0(),G0();var Q=B0.current;B0.current=B5;try{return QH(v,b,z)}finally{B0.current=Q}},useRef:function(v){return c="useRef",o0(),G0(),TQ()},useState:function(v){c="useState",o0(),G0();var b=B0.current;B0.current=B5;try{return HH(v)}finally{B0.current=b}},useDebugValue:function(v,b){return c="useDebugValue",o0(),G0(),mQ()},useDeferredValue:function(v){return c="useDeferredValue",o0(),G0(),eK(v)},useTransition:function(){return c="useTransition",o0(),G0(),zU()},useMutableSource:function(v,b,z){return c="useMutableSource",o0(),G0(),VQ()},useSyncExternalStore:function(v,b,z){return c="useSyncExternalStore",o0(),G0(),DQ(v,b)},useId:function(){return c="useId",o0(),G0(),cQ()},unstable_isNewReconciler:v1}}var c7=C1.unstable_now,UU=0,oQ=-1,L3=-1,xQ=-1,AH=!1,lQ=!1;function qU(){return AH}function YP(){lQ=!0}function GP(){AH=!1,lQ=!1}function $P(){AH=lQ,lQ=!1}function BU(){return UU}function OU(){UU=c7()}function PH(v){if(L3=c7(),v.actualStartTime<0)v.actualStartTime=c7()}function LU(v){L3=-1}function iQ(v,b){if(L3>=0){var z=c7()-L3;if(v.actualDuration+=z,b)v.selfBaseDuration=z;L3=-1}}function m5(v){if(oQ>=0){var b=c7()-oQ;oQ=-1;var z=v.return;while(z!==null){switch(z.tag){case T:var Q=z.stateNode;Q.effectDuration+=b;return;case K0:var X=z.stateNode;X.effectDuration+=b;return}z=z.return}}}function WH(v){if(xQ>=0){var b=c7()-xQ;xQ=-1;var z=v.return;while(z!==null){switch(z.tag){case T:var Q=z.stateNode;if(Q!==null)Q.passiveEffectDuration+=b;return;case K0:var X=z.stateNode;if(X!==null)X.passiveEffectDuration+=b;return}z=z.return}}}function d5(){oQ=c7()}function _H(){xQ=c7()}function FH(v){var b=v.child;while(b)v.actualDuration+=b.actualDuration,b=b.sibling}function O5(v,b){if(v&&v.defaultProps){var z=e0({},b),Q=v.defaultProps;for(var X in Q)if(z[X]===void 0)z[X]=Q[X];return z}return b}var RH={},MH,kH,wH,IH,VH,NU,pQ,DH,fH,TH,N3;{MH=new Set,kH=new Set,wH=new Set,IH=new Set,DH=new Set,VH=new Set,fH=new Set,TH=new Set,N3=new Set;var AU=new Set;pQ=function(v,b){if(v===null||typeof v==="function")return;var z=b+"_"+v;if(!AU.has(z))AU.add(z),G("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,v)},NU=function(v,b){if(b===void 0){var z=q1(v)||"Component";if(!VH.has(z))VH.add(z),G("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",z)}},Object.defineProperty(RH,"_processChildContext",{enumerable:!1,value:function(){throw Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(RH)}function EH(v,b,z,Q){var X=v.memoizedState,Z=z(Q,X);{if(v.mode&N6){x6(!0);try{Z=z(Q,X)}finally{x6(!1)}}NU(b,Z)}var J=Z===null||Z===void 0?X:e0({},X,Z);if(v.memoizedState=J,v.lanes===i){var Y=v.updateQueue;Y.baseState=J}}var CH={isMounted:zO,enqueueSetState:function(v,b,z){var Q=nv(v),X=w4(),Z=x7(Q),J=Y7(X,Z);if(J.payload=b,z!==void 0&&z!==null)pQ(z,"setState"),J.callback=z;var Y=u7(Q,J,Z);if(Y!==null)d6(Y,Q,Z,X),_Q(Y,Q,Z);GZ(Q,Z)},enqueueReplaceState:function(v,b,z){var Q=nv(v),X=w4(),Z=x7(Q),J=Y7(X,Z);if(J.tag=SK,J.payload=b,z!==void 0&&z!==null)pQ(z,"replaceState"),J.callback=z;var Y=u7(Q,J,Z);if(Y!==null)d6(Y,Q,Z,X),_Q(Y,Q,Z);GZ(Q,Z)},enqueueForceUpdate:function(v,b){var z=nv(v),Q=w4(),X=x7(z),Z=Y7(Q,X);if(Z.tag=AQ,b!==void 0&&b!==null)pQ(b,"forceUpdate"),Z.callback=b;var J=u7(z,Z,X);if(J!==null)d6(J,z,X,Q),_Q(J,z,X);CO(z,X)}};function PU(v,b,z,Q,X,Z,J){var Y=v.stateNode;if(typeof Y.shouldComponentUpdate==="function"){var $=Y.shouldComponentUpdate(Q,Z,J);{if(v.mode&N6){x6(!0);try{$=Y.shouldComponentUpdate(Q,Z,J)}finally{x6(!1)}}if($===void 0)G("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",q1(b)||"Component")}return $}if(b.prototype&&b.prototype.isPureReactComponent)return!d8(z,Q)||!d8(X,Z);return!0}function KP(v,b,z){var Q=v.stateNode;{var X=q1(b)||"Component",Z=Q.render;if(!Z)if(b.prototype&&typeof b.prototype.render==="function")G("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",X);else G("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",X);if(Q.getInitialState&&!Q.getInitialState.isReactClassApproved&&!Q.state)G("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?",X);if(Q.getDefaultProps&&!Q.getDefaultProps.isReactClassApproved)G("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.",X);if(Q.propTypes)G("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",X);if(Q.contextType)G("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",X);{if(b.childContextTypes&&!N3.has(b)&&(v.mode&N6)===h0)N3.add(b),G(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
85
-
86
- .Learn more about this warning here: https://reactjs.org/link/legacy-context`,X);if(b.contextTypes&&!N3.has(b)&&(v.mode&N6)===h0)N3.add(b),G(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
87
-
88
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,X);if(Q.contextTypes)G("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",X);if(b.contextType&&b.contextTypes&&!fH.has(b))fH.add(b),G("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",X)}if(typeof Q.componentShouldUpdate==="function")G("%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.",X);if(b.prototype&&b.prototype.isPureReactComponent&&typeof Q.shouldComponentUpdate<"u")G("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",q1(b)||"A pure component");if(typeof Q.componentDidUnmount==="function")G("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",X);if(typeof Q.componentDidReceiveProps==="function")G("%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().",X);if(typeof Q.componentWillRecieveProps==="function")G("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",X);if(typeof Q.UNSAFE_componentWillRecieveProps==="function")G("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",X);var J=Q.props!==z;if(Q.props!==void 0&&J)G("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",X,X);if(Q.defaultProps)G("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",X,X);if(typeof Q.getSnapshotBeforeUpdate==="function"&&typeof Q.componentDidUpdate!=="function"&&!wH.has(b))wH.add(b),G("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",q1(b));if(typeof Q.getDerivedStateFromProps==="function")G("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",X);if(typeof Q.getDerivedStateFromError==="function")G("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",X);if(typeof b.getSnapshotBeforeUpdate==="function")G("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",X);var Y=Q.state;if(Y&&(typeof Y!=="object"||N1(Y)))G("%s.state: must be set to an object or null",X);if(typeof Q.getChildContext==="function"&&typeof b.childContextTypes!=="object")G("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",X)}}function WU(v,b){b.updater=CH,v.stateNode=b,tB(b,v),b._reactInternalInstance=RH}function _U(v,b,z){var Q=!1,X=l4,Z=l4,J=b.contextType;if("contextType"in b){var Y=J===null||J!==void 0&&J.$$typeof===L&&J._context===void 0;if(!Y&&!TH.has(b)){TH.add(b);var $="";if(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.";else if(typeof J!=="object")$=" However, it is set to a "+typeof J+".";else if(J.$$typeof===x)$=" Did you accidentally pass the Context.Provider instead?";else if(J._context!==void 0)$=" Did you accidentally pass the Context.Consumer instead?";else $=" However, it is set to an object with keys {"+Object.keys(J).join(", ")+"}.";G("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",q1(b)||"Component",$)}}if(typeof J==="object"&&J!==null)Z=V6(J);else{X=qb(v,b,!0);var q=b.contextTypes;Q=q!==null&&q!==void 0,Z=Q?Bb(v,X):l4}var O=new b(z,Z);if(v.mode&N6){x6(!0);try{O=new b(z,Z)}finally{x6(!1)}}var k=v.memoizedState=O.state!==null&&O.state!==void 0?O.state:null;WU(v,O);{if(typeof b.getDerivedStateFromProps==="function"&&k===null){var M=q1(b)||"Component";if(!kH.has(M))kH.add(M),G("`%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.",M,O.state===null?"null":"undefined",M)}if(typeof b.getDerivedStateFromProps==="function"||typeof O.getSnapshotBeforeUpdate==="function"){var h=null,S=null,g=null;if(typeof O.componentWillMount==="function"&&O.componentWillMount.__suppressDeprecationWarning!==!0)h="componentWillMount";else if(typeof O.UNSAFE_componentWillMount==="function")h="UNSAFE_componentWillMount";if(typeof O.componentWillReceiveProps==="function"&&O.componentWillReceiveProps.__suppressDeprecationWarning!==!0)S="componentWillReceiveProps";else if(typeof O.UNSAFE_componentWillReceiveProps==="function")S="UNSAFE_componentWillReceiveProps";if(typeof O.componentWillUpdate==="function"&&O.componentWillUpdate.__suppressDeprecationWarning!==!0)g="componentWillUpdate";else if(typeof O.UNSAFE_componentWillUpdate==="function")g="UNSAFE_componentWillUpdate";if(h!==null||S!==null||g!==null){var $0=q1(b)||"Component",E0=typeof b.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";if(!IH.has($0))IH.add($0),G(`Unsafe legacy lifecycles will not be called for components using new component APIs.
89
-
90
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
91
-
92
- The above lifecycles should be removed. Learn more about this warning here:
93
- https://reactjs.org/link/unsafe-component-lifecycles`,$0,E0,h!==null?`
94
- `+h:"",S!==null?`
95
- `+S:"",g!==null?`
96
- `+g:"")}}}if(Q)$K(v,X,Z);return O}function UP(v,b){var z=b.state;if(typeof b.componentWillMount==="function")b.componentWillMount();if(typeof b.UNSAFE_componentWillMount==="function")b.UNSAFE_componentWillMount();if(z!==b.state)G("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t0(v)||"Component"),CH.enqueueReplaceState(b,b.state,null)}function FU(v,b,z,Q){var X=b.state;if(typeof b.componentWillReceiveProps==="function")b.componentWillReceiveProps(z,Q);if(typeof b.UNSAFE_componentWillReceiveProps==="function")b.UNSAFE_componentWillReceiveProps(z,Q);if(b.state!==X){{var Z=t0(v)||"Component";if(!MH.has(Z))MH.add(Z),G("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z)}CH.enqueueReplaceState(b,b.state,null)}}function hH(v,b,z,Q){KP(v,b,z);var X=v.stateNode;X.props=z,X.state=v.memoizedState,X.refs={},yJ(v);var Z=b.contextType;if(typeof Z==="object"&&Z!==null)X.context=V6(Z);else{var J=qb(v,b,!0);X.context=Bb(v,J)}{if(X.state===z){var Y=q1(b)||"Component";if(!DH.has(Y))DH.add(Y),G("%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.",Y)}if(v.mode&N6)U5.recordLegacyContextWarning(v,X);U5.recordUnsafeLifecycleWarnings(v,X)}X.state=v.memoizedState;var $=b.getDerivedStateFromProps;if(typeof $==="function")EH(v,b,$,z),X.state=v.memoizedState;if(typeof b.getDerivedStateFromProps!=="function"&&typeof X.getSnapshotBeforeUpdate!=="function"&&(typeof X.UNSAFE_componentWillMount==="function"||typeof X.componentWillMount==="function"))UP(v,X),FQ(v,z,X,Q),X.state=v.memoizedState;if(typeof X.componentDidMount==="function"){var q=U1;if(q|=Jv,(v.mode&T5)!==h0)q|=s5;v.flags|=q}}function qP(v,b,z,Q){var{stateNode:X,memoizedProps:Z}=v;X.props=Z;var J=X.context,Y=b.contextType,$=l4;if(typeof Y==="object"&&Y!==null)$=V6(Y);else{var q=qb(v,b,!0);$=Bb(v,q)}var O=b.getDerivedStateFromProps,k=typeof O==="function"||typeof X.getSnapshotBeforeUpdate==="function";if(!k&&(typeof X.UNSAFE_componentWillReceiveProps==="function"||typeof X.componentWillReceiveProps==="function")){if(Z!==z||J!==$)FU(v,X,z,$)}uK();var M=v.memoizedState,h=X.state=M;if(FQ(v,z,X,Q),h=v.memoizedState,Z===z&&M===h&&!QQ()&&!RQ()){if(typeof X.componentDidMount==="function"){var S=U1;if(S|=Jv,(v.mode&T5)!==h0)S|=s5;v.flags|=S}return!1}if(typeof O==="function")EH(v,b,O,z),h=v.memoizedState;var g=RQ()||PU(v,b,Z,z,M,h,$);if(g){if(!k&&(typeof X.UNSAFE_componentWillMount==="function"||typeof X.componentWillMount==="function")){if(typeof X.componentWillMount==="function")X.componentWillMount();if(typeof X.UNSAFE_componentWillMount==="function")X.UNSAFE_componentWillMount()}if(typeof X.componentDidMount==="function"){var $0=U1;if($0|=Jv,(v.mode&T5)!==h0)$0|=s5;v.flags|=$0}}else{if(typeof X.componentDidMount==="function"){var E0=U1;if(E0|=Jv,(v.mode&T5)!==h0)E0|=s5;v.flags|=E0}v.memoizedProps=z,v.memoizedState=h}return X.props=z,X.state=h,X.context=$,g}function BP(v,b,z,Q,X){var Z=b.stateNode;gK(v,b);var J=b.memoizedProps,Y=b.type===b.elementType?J:O5(b.type,J);Z.props=Y;var $=b.pendingProps,q=Z.context,O=z.contextType,k=l4;if(typeof O==="object"&&O!==null)k=V6(O);else{var M=qb(b,z,!0);k=Bb(b,M)}var h=z.getDerivedStateFromProps,S=typeof h==="function"||typeof Z.getSnapshotBeforeUpdate==="function";if(!S&&(typeof Z.UNSAFE_componentWillReceiveProps==="function"||typeof Z.componentWillReceiveProps==="function")){if(J!==$||q!==k)FU(b,Z,Q,k)}uK();var g=b.memoizedState,$0=Z.state=g;if(FQ(b,Q,Z,X),$0=b.memoizedState,J===$&&g===$0&&!QQ()&&!RQ()&&!R6){if(typeof Z.componentDidUpdate==="function"){if(J!==v.memoizedProps||g!==v.memoizedState)b.flags|=U1}if(typeof Z.getSnapshotBeforeUpdate==="function"){if(J!==v.memoizedProps||g!==v.memoizedState)b.flags|=Xv}return!1}if(typeof h==="function")EH(b,z,h,Q),$0=b.memoizedState;var E0=RQ()||PU(b,z,Y,Q,g,$0,k)||R6;if(E0){if(!S&&(typeof Z.UNSAFE_componentWillUpdate==="function"||typeof Z.componentWillUpdate==="function")){if(typeof Z.componentWillUpdate==="function")Z.componentWillUpdate(Q,$0,k);if(typeof Z.UNSAFE_componentWillUpdate==="function")Z.UNSAFE_componentWillUpdate(Q,$0,k)}if(typeof Z.componentDidUpdate==="function")b.flags|=U1;if(typeof Z.getSnapshotBeforeUpdate==="function")b.flags|=Xv}else{if(typeof Z.componentDidUpdate==="function"){if(J!==v.memoizedProps||g!==v.memoizedState)b.flags|=U1}if(typeof Z.getSnapshotBeforeUpdate==="function"){if(J!==v.memoizedProps||g!==v.memoizedState)b.flags|=Xv}b.memoizedProps=Q,b.memoizedState=$0}return Z.props=Q,Z.state=$0,Z.context=k,E0}function kv(v,b){return{value:v,source:b,stack:Z8(b),digest:null}}function SH(v,b,z){return{value:v,source:null,stack:z!=null?z:null,digest:b!=null?b:null}}function OP(v,b){return!0}function gH(v,b){try{var z=OP(v,b);if(z===!1)return;var{value:Q,source:X,stack:Z}=b,J=Z!==null?Z:"";if(Q!=null&&Q._suppressLogging){if(v.tag===P)return;console.error(Q)}var Y=X?t0(X):null,$=Y?"The above error occurred in the <"+Y+"> component:":"The above error occurred in one of your React components:",q;if(v.tag===T)q=`Consider adding an error boundary to your tree to customize error handling behavior.
97
- Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var O=t0(v)||"Anonymous";q="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+O+".")}var k=$+`
98
- `+J+`
99
-
100
- `+(""+q);console.error(k)}catch(M){setTimeout(function(){throw M})}}var LP=typeof WeakMap==="function"?WeakMap:Map;function RU(v,b,z){var Q=Y7(t1,z);Q.tag=aJ,Q.payload={element:null};var X=b.value;return Q.callback=function(){q_(X),gH(v,b)},Q}function uH(v,b,z){var Q=Y7(t1,z);Q.tag=aJ;var X=v.type.getDerivedStateFromError;if(typeof X==="function"){var Z=b.value;Q.payload=function(){return X(Z)},Q.callback=function(){S9(v),gH(v,b)}}var J=v.stateNode;if(J!==null&&typeof J.componentDidCatch==="function")Q.callback=function(){if(S9(v),gH(v,b),typeof X!=="function")K_(this);var{value:$,stack:q}=b;if(this.componentDidCatch($,{componentStack:q!==null?q:""}),typeof X!=="function"){if(!y4(v.lanes,j0))G("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",t0(v)||"Unknown")}};return Q}function MU(v,b,z){var Q=v.pingCache,X;if(Q===null)Q=v.pingCache=new LP,X=new Set,Q.set(b,X);else if(X=Q.get(b),X===void 0)X=new Set,Q.set(b,X);if(!X.has(z)){X.add(z);var Z=B_.bind(null,v,b,z);if(Y5)h3(v,z);b.then(Z,Z)}}function NP(v,b,z,Q){var X=v.updateQueue;if(X===null){var Z=new Set;Z.add(z),v.updateQueue=Z}else X.add(z)}function AP(v,b){var z=v.tag;if((v.mode&G1)===h0&&(z===F||z===a||z===X0)){var Q=v.alternate;if(Q)v.updateQueue=Q.updateQueue,v.memoizedState=Q.memoizedState,v.lanes=Q.lanes;else v.updateQueue=null,v.memoizedState=null}}function kU(v){var b=v;do{if(b.tag===o&&eA(b))return b;b=b.return}while(b!==null);return null}function wU(v,b,z,Q,X){if((v.mode&G1)===h0){if(v===b)v.flags|=R4;else{if(v.flags|=A1,z.flags|=zZ,z.flags&=~(sB|L8),z.tag===P){var Z=z.alternate;if(Z===null)z.tag=n0;else{var J=Y7(t1,j0);J.tag=AQ,u7(z,J,j0)}}z.lanes=s0(z.lanes,j0)}return v}return v.flags|=R4,v.lanes=X,v}function PP(v,b,z,Q,X){if(z.flags|=L8,Y5)h3(v,X);if(Q!==null&&typeof Q==="object"&&typeof Q.then==="function"){var Z=Q;if(AP(z),s6()&&z.mode&G1)NK();var J=kU(b);if(J!==null){if(J.flags&=~n5,wU(J,b,z,v,X),J.mode&G1)MU(v,Z,X);NP(J,v,Z);return}else{if(!yO(X)){MU(v,Z,X),NY();return}var Y=Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");Q=Y}}else if(s6()&&z.mode&G1){NK();var $=kU(b);if($!==null){if(($.flags&R4)===g0)$.flags|=n5;wU($,b,z,v,X),VJ(kv(Q,z));return}}Q=kv(Q,z),Q_(Q);var q=b;do{switch(q.tag){case T:{var O=Q;q.flags|=R4;var k=M8(X);q.lanes=s0(q.lanes,k);var M=RU(q,O,k);jJ(q,M);return}case P:var h=Q,S=q.type,g=q.stateNode;if((q.flags&A1)===g0&&(typeof S.getDerivedStateFromError==="function"||g!==null&&typeof g.componentDidCatch==="function"&&!w9(g))){q.flags|=R4;var $0=M8(X);q.lanes=s0(q.lanes,$0);var E0=uH(q,h,$0);jJ(q,E0);return}break}q=q.return}while(q!==null)}function WP(){return null}var A3=H.ReactCurrentOwner,L5=!1,mH,P3,dH,aH,cH,wv,yH,rQ,W3;mH={},P3={},dH={},aH={},cH={},wv=!1,yH={},rQ={},W3={};function M4(v,b,z,Q){if(v===null)b.child=DK(b,null,z,Q);else b.child=Ab(b,v.child,z,Q)}function _P(v,b,z,Q){b.child=Ab(b,v.child,null,Q),b.child=Ab(b,null,z,Q)}function IU(v,b,z,Q,X){if(b.type!==b.elementType){var Z=z.propTypes;if(Z)$5(Z,Q,"prop",q1(z))}var J=z.render,Y=b.ref,$,q;Wb(b,X),A8(b);{if(A3.current=b,a4(!0),$=wb(v,b,J,Q,Y,X),q=Ib(),b.mode&N6){x6(!0);try{$=wb(v,b,J,Q,Y,X),q=Ib()}finally{x6(!1)}}a4(!1)}if(ev(),v!==null&&!L5)return jK(v,b,X),G7(v,b,X);if(s6()&&q)FJ(b);return b.flags|=tv,M4(v,b,$,X),b.child}function VU(v,b,z,Q,X){if(v===null){var Z=z.type;if(T_(Z)&&z.compare===null&&z.defaultProps===void 0){var J=Z;return J=Sb(Z),b.tag=X0,b.type=J,xH(b,Z),DU(v,b,J,Q,X)}{var Y=Z.propTypes;if(Y)$5(Y,Q,"prop",q1(Z));if(z.defaultProps!==void 0){var $=q1(Z)||"Unknown";if(!W3[$])G("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",$),W3[$]=!0}}var q=VY(z.type,null,Q,b,b.mode,X);return q.ref=b.ref,q.return=b,b.child=q,q}{var O=z.type,k=O.propTypes;if(k)$5(k,Q,"prop",q1(O))}var M=v.child,h=tH(v,X);if(!h){var S=M.memoizedProps,g=z.compare;if(g=g!==null?g:d8,g(S,Q)&&v.ref===b.ref)return G7(v,b,X)}b.flags|=tv;var $0=Tv(M,Q);return $0.ref=b.ref,$0.return=b,b.child=$0,$0}function DU(v,b,z,Q,X){if(b.type!==b.elementType){var Z=b.elementType;if(Z.$$typeof===w0){var J=Z,Y=J._payload,$=J._init;try{Z=$(Y)}catch(k){Z=null}var q=Z&&Z.propTypes;if(q)$5(q,Q,"prop",q1(Z))}}if(v!==null){var O=v.memoizedProps;if(d8(O,Q)&&v.ref===b.ref&&b.type===v.type){if(L5=!1,b.pendingProps=Q=O,!tH(v,X))return b.lanes=v.lanes,G7(v,b,X);else if((v.flags&zZ)!==g0)L5=!0}}return jH(v,b,z,Q,X)}function fU(v,b,z){var Q=b.pendingProps,X=Q.children,Z=v!==null?v.memoizedState:null;if(Q.mode==="hidden"||s1)if((b.mode&G1)===h0){var J={baseLanes:i,cachePool:null,transitions:null};b.memoizedState=J,YX(b,z)}else if(!y4(z,c4)){var Y=null,$;if(Z!==null){var q=Z.baseLanes;$=s0(q,z)}else $=z;b.lanes=b.childLanes=Vz(c4);var O={baseLanes:$,cachePool:Y,transitions:null};return b.memoizedState=O,b.updateQueue=null,YX(b,$),null}else{var k={baseLanes:i,cachePool:null,transitions:null};b.memoizedState=k;var M=Z!==null?Z.baseLanes:z;YX(b,M)}else{var h;if(Z!==null)h=s0(Z.baseLanes,z),b.memoizedState=null;else h=z;YX(b,h)}return M4(v,b,X,z),b.child}function FP(v,b,z){var Q=b.pendingProps;return M4(v,b,Q,z),b.child}function RP(v,b,z){var Q=b.pendingProps.children;return M4(v,b,Q,z),b.child}function MP(v,b,z){{b.flags|=U1;{var Q=b.stateNode;Q.effectDuration=0,Q.passiveEffectDuration=0}}var X=b.pendingProps,Z=X.children;return M4(v,b,Z,z),b.child}function TU(v,b){var z=b.ref;if(v===null&&z!==null||v!==null&&v.ref!==z)b.flags|=k7,b.flags|=QZ}function jH(v,b,z,Q,X){if(b.type!==b.elementType){var Z=z.propTypes;if(Z)$5(Z,Q,"prop",q1(z))}var J;{var Y=qb(b,z,!0);J=Bb(b,Y)}var $,q;Wb(b,X),A8(b);{if(A3.current=b,a4(!0),$=wb(v,b,z,Q,J,X),q=Ib(),b.mode&N6){x6(!0);try{$=wb(v,b,z,Q,J,X),q=Ib()}finally{x6(!1)}}a4(!1)}if(ev(),v!==null&&!L5)return jK(v,b,X),G7(v,b,X);if(s6()&&q)FJ(b);return b.flags|=tv,M4(v,b,$,X),b.child}function EU(v,b,z,Q,X){{switch(l_(b)){case!1:{var{stateNode:Z,type:J}=b,Y=new J(b.memoizedProps,Z.context),$=Y.state;Z.updater.enqueueSetState(Z,$,null);break}case!0:{b.flags|=A1,b.flags|=R4;var q=Error("Simulated error coming from DevTools"),O=M8(X);b.lanes=s0(b.lanes,O);var k=uH(b,kv(q,b),O);jJ(b,k);break}}if(b.type!==b.elementType){var M=z.propTypes;if(M)$5(M,Q,"prop",q1(z))}}var h;if(h5(z))h=!0,ZQ(b);else h=!1;Wb(b,X);var S=b.stateNode,g;if(S===null)tQ(v,b),_U(b,z,Q),hH(b,z,Q,X),g=!0;else if(v===null)g=qP(b,z,Q,X);else g=BP(v,b,z,Q,X);var $0=oH(v,b,z,g,h,X);{var E0=b.stateNode;if(g&&E0.props!==Q){if(!wv)G("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",t0(b)||"a component");wv=!0}}return $0}function oH(v,b,z,Q,X,Z){TU(v,b);var J=(b.flags&A1)!==g0;if(!Q&&!J){if(X)qK(b,z,!1);return G7(v,b,Z)}var Y=b.stateNode;A3.current=b;var $;if(J&&typeof z.getDerivedStateFromError!=="function")$=null,LU();else{A8(b);{if(a4(!0),$=Y.render(),b.mode&N6){x6(!0);try{Y.render()}finally{x6(!1)}}a4(!1)}ev()}if(b.flags|=tv,v!==null&&J)_P(v,b,$,Z);else M4(v,b,$,Z);if(b.memoizedState=Y.state,X)qK(b,z,!0);return b.child}function CU(v){var b=v.stateNode;if(b.pendingContext)KK(v,b.pendingContext,b.pendingContext!==b.context);else if(b.context)KK(v,b.context,!1);oJ(v,b.containerInfo)}function kP(v,b,z){if(CU(b),v===null)throw Error("Should have a current fiber. This is a bug in React.");var{pendingProps:Q,memoizedState:X}=b,Z=X.element;gK(v,b),FQ(b,Q,null,z);var{memoizedState:J,stateNode:Y}=b,$=J.element;if(X.isDehydrated){var q={element:$,isDehydrated:!1,cache:J.cache,pendingSuspenseBoundaries:J.pendingSuspenseBoundaries,transitions:J.transitions},O=b.updateQueue;if(O.baseState=q,b.memoizedState=q,b.flags&n5){var k=kv(Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),b);return hU(v,b,$,z,k)}else if($!==Z){var M=kv(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),b);return hU(v,b,$,z,M)}else{DA(b);var h=DK(b,null,$,z);b.child=h;var S=h;while(S)S.flags=S.flags&~I6|t5,S=S.sibling}}else{if(Nb(),$===Z)return G7(v,b,z);M4(v,b,$,z)}return b.child}function hU(v,b,z,Q,X){return Nb(),VJ(X),b.flags|=n5,M4(v,b,z,Q),b.child}function wP(v,b,z){if(aK(b),v===null)IJ(b);var{type:Q,pendingProps:X}=b,Z=v!==null?v.memoizedProps:null,J=X.children,Y=GJ(Q,X);if(Y)J=null;else if(Z!==null&&GJ(Q,Z))b.flags|=O8;return TU(v,b),M4(v,b,J,z),b.child}function IP(v,b){if(v===null)IJ(b);return null}function VP(v,b,z,Q){tQ(v,b);var X=b.pendingProps,Z=z,J=Z._payload,Y=Z._init,$=Y(J);b.type=$;var q=b.tag=E_($),O=O5($,X),k;switch(q){case F:return xH(b,$),b.type=$=Sb($),k=jH(null,b,$,O,Q),k;case P:return b.type=$=FY($),k=EU(null,b,$,O,Q),k;case a:return b.type=$=RY($),k=IU(null,b,$,O,Q),k;case p:{if(b.type!==b.elementType){var M=$.propTypes;if(M)$5(M,O,"prop",q1($))}return k=VU(null,b,$,O5($.type,O),Q),k}}var h="";if($!==null&&typeof $==="object"&&$.$$typeof===w0)h=" Did you wrap a component in React.lazy() more than once?";throw Error("Element type is invalid. Received a promise that resolves to: "+$+". "+("Lazy element type must resolve to a class or function."+h))}function DP(v,b,z,Q,X){tQ(v,b),b.tag=P;var Z;if(h5(z))Z=!0,ZQ(b);else Z=!1;return Wb(b,X),_U(b,z,Q),hH(b,z,Q,X),oH(null,b,z,!0,Z,X)}function fP(v,b,z,Q){tQ(v,b);var X=b.pendingProps,Z;{var J=qb(b,z,!1);Z=Bb(b,J)}Wb(b,Q);var Y,$;A8(b);{if(z.prototype&&typeof z.prototype.render==="function"){var q=q1(z)||"Unknown";if(!mH[q])G("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.",q,q),mH[q]=!0}if(b.mode&N6)U5.recordLegacyContextWarning(b,null);a4(!0),A3.current=b,Y=wb(null,b,z,X,Z,Q),$=Ib(),a4(!1)}if(ev(),b.flags|=tv,typeof Y==="object"&&Y!==null&&typeof Y.render==="function"&&Y.$$typeof===void 0){var O=q1(z)||"Unknown";if(!P3[O])G("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",O,O,O),P3[O]=!0}if(typeof Y==="object"&&Y!==null&&typeof Y.render==="function"&&Y.$$typeof===void 0){{var k=q1(z)||"Unknown";if(!P3[k])G("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",k,k,k),P3[k]=!0}b.tag=P,b.memoizedState=null,b.updateQueue=null;var M=!1;if(h5(z))M=!0,ZQ(b);else M=!1;return b.memoizedState=Y.state!==null&&Y.state!==void 0?Y.state:null,yJ(b),WU(b,Y),hH(b,z,X,Q),oH(null,b,z,!0,M,Q)}else{if(b.tag=F,b.mode&N6){x6(!0);try{Y=wb(null,b,z,X,Z,Q),$=Ib()}finally{x6(!1)}}if(s6()&&$)FJ(b);return M4(null,b,Y,Q),xH(b,z),b.child}}function xH(v,b){{if(b){if(b.childContextTypes)G("%s(...): childContextTypes cannot be defined on a function component.",b.displayName||b.name||"Component")}if(v.ref!==null){var z="",Q=F7();if(Q)z+=`
101
-
102
- Check the render method of \``+Q+"`.";var X=Q||"",Z=v._debugSource;if(Z)X=Z.fileName+":"+Z.lineNumber;if(!cH[X])cH[X]=!0,G("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",z)}if(b.defaultProps!==void 0){var J=q1(b)||"Unknown";if(!W3[J])G("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",J),W3[J]=!0}if(typeof b.getDerivedStateFromProps==="function"){var Y=q1(b)||"Unknown";if(!aH[Y])G("%s: Function components do not support getDerivedStateFromProps.",Y),aH[Y]=!0}if(typeof b.contextType==="object"&&b.contextType!==null){var $=q1(b)||"Unknown";if(!dH[$])G("%s: Function components do not support contextType.",$),dH[$]=!0}}}var lH={dehydrated:null,treeContext:null,retryLane:l6};function iH(v){return{baseLanes:v,cachePool:WP(),transitions:null}}function TP(v,b){var z=null;return{baseLanes:s0(v.baseLanes,b),cachePool:z,transitions:v.transitions}}function EP(v,b,z,Q){if(b!==null){var X=b.memoizedState;if(X===null)return!1}return iJ(v,G3)}function CP(v,b){return Iz(v.childLanes,b)}function SU(v,b,z){var Q=b.pendingProps;if(i_(b))b.flags|=A1;var X=q5.current,Z=!1,J=(b.flags&A1)!==g0;if(J||EP(X,v))Z=!0,b.flags&=~A1;else if(v===null||v.memoizedState!==null)X=sA(X,yK);if(X=Fb(X),d7(b,X),v===null){IJ(b);var Y=b.memoizedState;if(Y!==null){var $=Y.dehydrated;if($!==null)return mP(b,$)}var{children:q,fallback:O}=Q;if(Z){var k=hP(b,q,O,z),M=b.child;return M.memoizedState=iH(z),b.memoizedState=lH,k}else return pH(b,q)}else{var h=v.memoizedState;if(h!==null){var S=h.dehydrated;if(S!==null)return dP(v,b,J,Q,S,h,z)}if(Z){var{fallback:g,children:$0}=Q,E0=gP(v,b,$0,g,z),I0=b.child,X1=v.child.memoizedState;return I0.memoizedState=X1===null?iH(z):TP(X1,z),I0.childLanes=CP(v,z),b.memoizedState=lH,E0}else{var Z1=Q.children,D=SP(v,b,Z1,z);return b.memoizedState=null,D}}}function pH(v,b,z){var Q=v.mode,X={mode:"visible",children:b},Z=rH(X,Q);return Z.return=v,v.child=Z,Z}function hP(v,b,z,Q){var{mode:X,child:Z}=v,J={mode:"hidden",children:b},Y,$;if((X&G1)===h0&&Z!==null){if(Y=Z,Y.childLanes=i,Y.pendingProps=J,v.mode&f1)Y.actualDuration=0,Y.actualStartTime=-1,Y.selfBaseDuration=0,Y.treeBaseDuration=0;$=i7(z,X,Q,null)}else Y=rH(J,X),$=i7(z,X,Q,null);return Y.return=v,$.return=v,Y.sibling=$,v.child=Y,$}function rH(v,b,z){return u9(v,b,i,null)}function gU(v,b){return Tv(v,b)}function SP(v,b,z,Q){var X=v.child,Z=X.sibling,J=gU(X,{mode:"visible",children:z});if((b.mode&G1)===h0)J.lanes=Q;if(J.return=b,J.sibling=null,Z!==null){var Y=b.deletions;if(Y===null)b.deletions=[Z],b.flags|=Qv;else Y.push(Z)}return b.child=J,J}function gP(v,b,z,Q,X){var Z=b.mode,J=v.child,Y=J.sibling,$={mode:"hidden",children:z},q;if((Z&G1)===h0&&b.child!==J){var O=b.child;if(q=O,q.childLanes=i,q.pendingProps=$,b.mode&f1)q.actualDuration=0,q.actualStartTime=-1,q.selfBaseDuration=J.selfBaseDuration,q.treeBaseDuration=J.treeBaseDuration;b.deletions=null}else q=gU(J,$),q.subtreeFlags=J.subtreeFlags&e5;var k;if(Y!==null)k=Tv(Y,Q);else k=i7(Q,Z,X,null),k.flags|=I6;return k.return=b,q.return=b,q.sibling=k,b.child=q,k}function nQ(v,b,z,Q){if(Q!==null)VJ(Q);Ab(b,v.child,null,z);var X=b.pendingProps,Z=X.children,J=pH(b,Z);return J.flags|=I6,b.memoizedState=null,J}function uP(v,b,z,Q,X){var Z=b.mode,J={mode:"visible",children:z},Y=rH(J,Z),$=i7(Q,Z,X,null);if($.flags|=I6,Y.return=b,$.return=b,Y.sibling=$,b.child=Y,(b.mode&G1)!==h0)Ab(b,v.child,null,X);return $}function mP(v,b,z){if((v.mode&G1)===h0)G("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),v.lanes=Vz(j0);else if(qJ(b))v.lanes=Vz($v);else v.lanes=Vz(c4);return null}function dP(v,b,z,Q,X,Z,J){if(!z){if(IA(),(b.mode&G1)===h0)return nQ(v,b,J,null);if(qJ(X)){var Y,$,q;{var O=oN(X);Y=O.digest,$=O.message,q=O.stack}var k;if($)k=Error($);else k=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var M=SH(k,Y,q);return nQ(v,b,J,M)}var h=y4(J,v.childLanes);if(L5||h){var S=HX();if(S!==null){var g=nO(S,J);if(g!==l6&&g!==Z.retryLane){Z.retryLane=g;var $0=t1;C4(v,g),d6(S,v,g,$0)}}NY();var E0=SH(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return nQ(v,b,J,E0)}else if(XK(X)){b.flags|=A1,b.child=v.child;var I0=O_.bind(null,v);return xN(X,I0),null}else{fA(b,X,Z.treeContext);var X1=Q.children,Z1=pH(b,X1);return Z1.flags|=t5,Z1}}else if(b.flags&n5){b.flags&=~n5;var D=SH(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return nQ(v,b,J,D)}else if(b.memoizedState!==null)return b.child=v.child,b.flags|=A1,null;else{var{children:d,fallback:f}=Q,r=uP(v,b,d,f,J),O0=b.child;return O0.memoizedState=iH(J),b.memoizedState=lH,r}}function uU(v,b,z){v.lanes=s0(v.lanes,b);var Q=v.alternate;if(Q!==null)Q.lanes=s0(Q.lanes,b);mJ(v.return,b,z)}function aP(v,b,z){var Q=b;while(Q!==null){if(Q.tag===o){var X=Q.memoizedState;if(X!==null)uU(Q,z,v)}else if(Q.tag===c0)uU(Q,z,v);else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===v)return;while(Q.sibling===null){if(Q.return===null||Q.return===v)return;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}}function cP(v){var b=v,z=null;while(b!==null){var Q=b.alternate;if(Q!==null&&wQ(Q)===null)z=b;b=b.sibling}return z}function yP(v){if(v!==void 0&&v!=="forwards"&&v!=="backwards"&&v!=="together"&&!yH[v])if(yH[v]=!0,typeof v==="string")switch(v.toLowerCase()){case"together":case"forwards":case"backwards":{G('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',v,v.toLowerCase());break}case"forward":case"backward":{G('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',v,v.toLowerCase());break}default:G('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v);break}else G('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v)}function jP(v,b){if(v!==void 0&&!rQ[v]){if(v!=="collapsed"&&v!=="hidden")rQ[v]=!0,G('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',v);else if(b!=="forwards"&&b!=="backwards")rQ[v]=!0,G('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',v)}}function mU(v,b){{var z=N1(v),Q=!z&&typeof n1(v)==="function";if(z||Q){var X=z?"array":"iterable";return G("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,b,X),!1}}return!0}function oP(v,b){if((b==="forwards"||b==="backwards")&&v!==void 0&&v!==null&&v!==!1)if(N1(v)){for(var z=0;z<v.length;z++)if(!mU(v[z],z))return}else{var Q=n1(v);if(typeof Q==="function"){var X=Q.call(v);if(X){var Z=X.next(),J=0;for(;!Z.done;Z=X.next()){if(!mU(Z.value,J))return;J++}}}else G('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?',b)}}function nH(v,b,z,Q,X){var Z=v.memoizedState;if(Z===null)v.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:Q,tail:z,tailMode:X};else Z.isBackwards=b,Z.rendering=null,Z.renderingStartTime=0,Z.last=Q,Z.tail=z,Z.tailMode=X}function dU(v,b,z){var Q=b.pendingProps,X=Q.revealOrder,Z=Q.tail,J=Q.children;yP(X),jP(Z,X),oP(J,X),M4(v,b,J,z);var Y=q5.current,$=iJ(Y,G3);if($)Y=pJ(Y,G3),b.flags|=A1;else{var q=v!==null&&(v.flags&A1)!==g0;if(q)aP(b,b.child,z);Y=Fb(Y)}if(d7(b,Y),(b.mode&G1)===h0)b.memoizedState=null;else switch(X){case"forwards":{var O=cP(b.child),k;if(O===null)k=b.child,b.child=null;else k=O.sibling,O.sibling=null;nH(b,!1,k,O,Z);break}case"backwards":{var M=null,h=b.child;b.child=null;while(h!==null){var S=h.alternate;if(S!==null&&wQ(S)===null){b.child=h;break}var g=h.sibling;h.sibling=M,M=h,h=g}nH(b,!0,M,null,Z);break}case"together":{nH(b,!1,null,null,void 0);break}default:b.memoizedState=null}return b.child}function xP(v,b,z){oJ(b,b.stateNode.containerInfo);var Q=b.pendingProps;if(v===null)b.child=Ab(b,null,Q,z);else M4(v,b,Q,z);return b.child}var aU=!1;function lP(v,b,z){var Q=b.type,X=Q._context,Z=b.pendingProps,J=b.memoizedProps,Y=Z.value;{if(!("value"in Z)){if(!aU)aU=!0,G("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")}var $=b.type.propTypes;if($)$5($,Z,"prop","Context.Provider")}if(EK(b,X,Y),J!==null){var q=J.value;if(x4(q,Y)){if(J.children===Z.children&&!QQ())return G7(v,b,z)}else jA(b,X,z)}var O=Z.children;return M4(v,b,O,z),b.child}var cU=!1;function iP(v,b,z){var Q=b.type;if(Q._context===void 0){if(Q!==Q.Consumer){if(!cU)cU=!0,G("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")}}else Q=Q._context;var X=b.pendingProps,Z=X.children;if(typeof Z!=="function")G("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.");Wb(b,z);var J=V6(Q);A8(b);var Y;return A3.current=b,a4(!0),Y=Z(J),a4(!1),ev(),b.flags|=tv,M4(v,b,Y,z),b.child}function _3(){L5=!0}function tQ(v,b){if((b.mode&G1)===h0){if(v!==null)v.alternate=null,b.alternate=null,b.flags|=I6}}function G7(v,b,z){if(v!==null)b.dependencies=v.dependencies;if(LU(),C3(b.lanes),!y4(z,b.childLanes))return null;return cA(v,b),b.child}function pP(v,b,z){{var Q=b.return;if(Q===null)throw Error("Cannot swap the root fiber.");if(v.alternate=null,b.alternate=null,z.index=b.index,z.sibling=b.sibling,z.return=b.return,z.ref=b.ref,b===Q.child)Q.child=z;else{var X=Q.child;if(X===null)throw Error("Expected parent to have a child.");while(X.sibling!==b)if(X=X.sibling,X===null)throw Error("Expected to find the previous sibling.");X.sibling=z}var Z=Q.deletions;if(Z===null)Q.deletions=[v],Q.flags|=Qv;else Z.push(v);return z.flags|=I6,z}}function tH(v,b){var z=v.lanes;if(y4(z,b))return!0;return!1}function rP(v,b,z){switch(b.tag){case T:CU(b);var Q=b.stateNode;Nb();break;case V:aK(b);break;case P:{var X=b.type;if(h5(X))ZQ(b);break}case R:oJ(b,b.stateNode.containerInfo);break;case t:{var Z=b.memoizedProps.value,J=b.type._context;EK(b,J,Z);break}case K0:{var Y=y4(z,b.childLanes);if(Y)b.flags|=U1;{var $=b.stateNode;$.effectDuration=0,$.passiveEffectDuration=0}}break;case o:{var q=b.memoizedState;if(q!==null){if(q.dehydrated!==null)return d7(b,Fb(q5.current)),b.flags|=A1,null;var O=b.child,k=O.childLanes;if(y4(z,k))return SU(v,b,z);else{d7(b,Fb(q5.current));var M=G7(v,b,z);if(M!==null)return M.sibling;else return null}}else d7(b,Fb(q5.current));break}case c0:{var h=(v.flags&A1)!==g0,S=y4(z,b.childLanes);if(h){if(S)return dU(v,b,z);b.flags|=A1}var g=b.memoizedState;if(g!==null)g.rendering=null,g.tail=null,g.lastEffect=null;if(d7(b,q5.current),S)break;else return null}case S0:case e:return b.lanes=i,fU(v,b,z)}return G7(v,b,z)}function yU(v,b,z){if(b._debugNeedsRemount&&v!==null)return pP(v,b,VY(b.type,b.key,b.pendingProps,b._debugOwner||null,b.mode,b.lanes));if(v!==null){var Q=v.memoizedProps,X=b.pendingProps;if(Q!==X||QQ()||b.type!==v.type)L5=!0;else{var Z=tH(v,z);if(!Z&&(b.flags&A1)===g0)return L5=!1,rP(v,b,z);if((v.flags&zZ)!==g0)L5=!0;else L5=!1}}else if(L5=!1,s6()&&_A(b)){var J=b.index,Y=FA();LK(b,Y,J)}switch(b.lanes=i,b.tag){case E:return fP(v,b,b.type,z);case P0:{var $=b.elementType;return VP(v,b,$,z)}case F:{var{type:q,pendingProps:O}=b,k=b.elementType===q?O:O5(q,O);return jH(v,b,q,k,z)}case P:{var{type:M,pendingProps:h}=b,S=b.elementType===M?h:O5(M,h);return EU(v,b,M,S,z)}case T:return kP(v,b,z);case V:return wP(v,b,z);case I:return IP(v,b);case o:return SU(v,b,z);case R:return xP(v,b,z);case a:{var{type:g,pendingProps:$0}=b,E0=b.elementType===g?$0:O5(g,$0);return IU(v,b,g,E0,z)}case l:return FP(v,b,z);case n:return RP(v,b,z);case K0:return MP(v,b,z);case t:return lP(v,b,z);case b0:return iP(v,b,z);case p:{var{type:I0,pendingProps:X1}=b,Z1=O5(I0,X1);if(b.type!==b.elementType){var D=I0.propTypes;if(D)$5(D,Z1,"prop",q1(I0))}return Z1=O5(I0.type,Z1),VU(v,b,I0,Z1,z)}case X0:return DU(v,b,b.type,b.pendingProps,z);case n0:{var{type:d,pendingProps:f}=b,r=b.elementType===d?f:O5(d,f);return DP(v,b,d,r,z)}case c0:return dU(v,b,z);case W0:break;case S0:return fU(v,b,z)}throw Error("Unknown unit of work tag ("+b.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Vb(v){v.flags|=U1}function jU(v){v.flags|=k7,v.flags|=QZ}var oU,sH,xU,lU;oU=function(v,b,z,Q){var X=b.child;while(X!==null){if(X.tag===V||X.tag===I)AN(v,X.stateNode);else if(X.tag===R);else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===b)return;while(X.sibling===null){if(X.return===null||X.return===b)return;X=X.return}X.sibling.return=X.return,X=X.sibling}},sH=function(v,b){},xU=function(v,b,z,Q,X){var Z=v.memoizedProps;if(Z===Q)return;var J=b.stateNode,Y=xJ(),$=WN(J,z,Z,Q,X,Y);if(b.updateQueue=$,$)Vb(b)},lU=function(v,b,z,Q){if(z!==Q)Vb(b)};function F3(v,b){if(s6())return;switch(v.tailMode){case"hidden":{var z=v.tail,Q=null;while(z!==null){if(z.alternate!==null)Q=z;z=z.sibling}if(Q===null)v.tail=null;else Q.sibling=null;break}case"collapsed":{var X=v.tail,Z=null;while(X!==null){if(X.alternate!==null)Z=X;X=X.sibling}if(Z===null)if(!b&&v.tail!==null)v.tail.sibling=null;else v.tail=null;else Z.sibling=null;break}}}function v4(v){var b=v.alternate!==null&&v.alternate.child===v.child,z=i,Q=g0;if(!b){if((v.mode&f1)!==h0){var{actualDuration:X,selfBaseDuration:Z,child:J}=v;while(J!==null)z=s0(z,s0(J.lanes,J.childLanes)),Q|=J.subtreeFlags,Q|=J.flags,X+=J.actualDuration,Z+=J.treeBaseDuration,J=J.sibling;v.actualDuration=X,v.treeBaseDuration=Z}else{var Y=v.child;while(Y!==null)z=s0(z,s0(Y.lanes,Y.childLanes)),Q|=Y.subtreeFlags,Q|=Y.flags,Y.return=v,Y=Y.sibling}v.subtreeFlags|=Q}else{if((v.mode&f1)!==h0){var{selfBaseDuration:$,child:q}=v;while(q!==null)z=s0(z,s0(q.lanes,q.childLanes)),Q|=q.subtreeFlags&e5,Q|=q.flags&e5,$+=q.treeBaseDuration,q=q.sibling;v.treeBaseDuration=$}else{var O=v.child;while(O!==null)z=s0(z,s0(O.lanes,O.childLanes)),Q|=O.subtreeFlags&e5,Q|=O.flags&e5,O.return=v,O=O.sibling}v.subtreeFlags|=Q}return v.childLanes=z,b}function nP(v,b,z){if(SA()&&(b.mode&G1)!==h0&&(b.flags&A1)===g0)return RK(b),Nb(),b.flags|=n5|L8|R4,!1;var Q=$Q(b);if(z!==null&&z.dehydrated!==null)if(v===null){if(!Q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(CA(b),v4(b),(b.mode&f1)!==h0){var X=z!==null;if(X){var Z=b.child;if(Z!==null)b.treeBaseDuration-=Z.treeBaseDuration}}return!1}else{if(Nb(),(b.flags&A1)===g0)b.memoizedState=null;if(b.flags|=U1,v4(b),(b.mode&f1)!==h0){var J=z!==null;if(J){var Y=b.child;if(Y!==null)b.treeBaseDuration-=Y.treeBaseDuration}}return!1}else return MK(),!0}function iU(v,b,z){var Q=b.pendingProps;switch(RJ(b),b.tag){case E:case P0:case X0:case F:case a:case l:case n:case K0:case b0:case p:return v4(b),null;case P:{var X=b.type;if(h5(X))XQ(b);return v4(b),null}case T:{var Z=b.stateNode;if(_b(b),PJ(b),nJ(),Z.pendingContext)Z.context=Z.pendingContext,Z.pendingContext=null;if(v===null||v.child===null){var J=$Q(b);if(J)Vb(b);else if(v!==null){var Y=v.memoizedState;if(!Y.isDehydrated||(b.flags&n5)!==g0)b.flags|=Xv,MK()}}return sH(v,b),v4(b),null}case V:{lJ(b);var $=dK(),q=b.type;if(v!==null&&b.stateNode!=null){if(xU(v,b,q,Q,$),v.ref!==b.ref)jU(b)}else{if(!Q){if(b.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 v4(b),null}var O=xJ(),k=$Q(b);if(k){if(TA(b,$,O))Vb(b)}else{var M=NN(q,Q,$,O,b);if(oU(M,b,!1,!1),b.stateNode=M,PN(M,q,Q,$))Vb(b)}if(b.ref!==null)jU(b)}return v4(b),null}case I:{var h=Q;if(v&&b.stateNode!=null){var S=v.memoizedProps;lU(v,b,S,h)}else{if(typeof h!=="string"){if(b.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.")}var g=dK(),$0=xJ(),E0=$Q(b);if(E0){if(EA(b))Vb(b)}else b.stateNode=_N(h,g,$0,b)}return v4(b),null}case o:{Rb(b);var I0=b.memoizedState;if(v===null||v.memoizedState!==null&&v.memoizedState.dehydrated!==null){var X1=nP(v,b,I0);if(!X1)if(b.flags&R4)return b;else return null}if((b.flags&A1)!==g0){if(b.lanes=z,(b.mode&f1)!==h0)FH(b);return b}var Z1=I0!==null,D=v!==null&&v.memoizedState!==null;if(Z1!==D){if(Z1){var d=b.child;if(d.flags|=Zv,(b.mode&G1)!==h0){var f=v===null&&(b.memoizedProps.unstable_avoidThisFallback!==!0||!a1);if(f||iJ(q5.current,yK))z_();else NY()}}}var r=b.updateQueue;if(r!==null)b.flags|=U1;if(v4(b),(b.mode&f1)!==h0){if(Z1){var O0=b.child;if(O0!==null)b.treeBaseDuration-=O0.treeBaseDuration}}return null}case R:if(_b(b),sH(v,b),v===null)BA(b.stateNode.containerInfo);return v4(b),null;case t:var U0=b.type._context;return uJ(U0,b),v4(b),null;case n0:{var d0=b.type;if(h5(d0))XQ(b);return v4(b),null}case c0:{Rb(b);var p0=b.memoizedState;if(p0===null)return v4(b),null;var E1=(b.flags&A1)!==g0,O1=p0.rendering;if(O1===null)if(!E1){var F6=X_()&&(v===null||(v.flags&A1)===g0);if(!F6){var L1=b.child;while(L1!==null){var A6=wQ(L1);if(A6!==null){E1=!0,b.flags|=A1,F3(p0,!1);var O4=A6.updateQueue;if(O4!==null)b.updateQueue=O4,b.flags|=U1;return b.subtreeFlags=g0,yA(b,z),d7(b,pJ(q5.current,G3)),b.child}L1=L1.sibling}}if(p0.tail!==null&&o6()>O9())b.flags|=A1,E1=!0,F3(p0,!1),b.lanes=xG}else F3(p0,!1);else{if(!E1){var Z4=wQ(O1);if(Z4!==null){b.flags|=A1,E1=!0;var p4=Z4.updateQueue;if(p4!==null)b.updateQueue=p4,b.flags|=U1;if(F3(p0,!0),p0.tail===null&&p0.tailMode==="hidden"&&!O1.alternate&&!s6())return v4(b),null}else if(o6()*2-p0.renderingStartTime>O9()&&z!==c4)b.flags|=A1,E1=!0,F3(p0,!1),b.lanes=xG}if(p0.isBackwards)O1.sibling=b.child,b.child=O1;else{var I4=p0.last;if(I4!==null)I4.sibling=O1;else b.child=O1;p0.last=O1}}if(p0.tail!==null){var V4=p0.tail;p0.rendering=V4,p0.tail=V4.sibling,p0.renderingStartTime=o6(),V4.sibling=null;var L4=q5.current;if(E1)L4=pJ(L4,G3);else L4=Fb(L4);return d7(b,L4),V4}return v4(b),null}case W0:break;case S0:case e:{LY(b);var B7=b.memoizedState,gb=B7!==null;if(v!==null){var m3=v.memoizedState,y5=m3!==null;if(y5!==gb&&!s1)b.flags|=Zv}if(!gb||(b.mode&G1)===h0)v4(b);else if(y4(c5,c4)){if(v4(b),b.subtreeFlags&(I6|U1))b.flags|=Zv}return null}case Z0:return null;case k0:return null}throw Error("Unknown unit of work tag ("+b.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function tP(v,b,z){switch(RJ(b),b.tag){case P:{var Q=b.type;if(h5(Q))XQ(b);var X=b.flags;if(X&R4){if(b.flags=X&~R4|A1,(b.mode&f1)!==h0)FH(b);return b}return null}case T:{var Z=b.stateNode;_b(b),PJ(b),nJ();var J=b.flags;if((J&R4)!==g0&&(J&A1)===g0)return b.flags=J&~R4|A1,b;return null}case V:return lJ(b),null;case o:{Rb(b);var Y=b.memoizedState;if(Y!==null&&Y.dehydrated!==null){if(b.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Nb()}var $=b.flags;if($&R4){if(b.flags=$&~R4|A1,(b.mode&f1)!==h0)FH(b);return b}return null}case c0:return Rb(b),null;case R:return _b(b),null;case t:var q=b.type._context;return uJ(q,b),null;case S0:case e:return LY(b),null;case Z0:return null;default:return null}}function pU(v,b,z){switch(RJ(b),b.tag){case P:{var Q=b.type.childContextTypes;if(Q!==null&&Q!==void 0)XQ(b);break}case T:{var X=b.stateNode;_b(b),PJ(b),nJ();break}case V:{lJ(b);break}case R:_b(b);break;case o:Rb(b);break;case c0:Rb(b);break;case t:var Z=b.type._context;uJ(Z,b);break;case S0:case e:LY(b);break}}var rU=null;rU=new Set;var sQ=!1,b4=!1,sP=typeof WeakSet==="function"?WeakSet:Set,_0=null,Db=null,fb=null;function eP(v){eX(null,function(){throw v}),vZ()}var vW=function(v,b){if(b.props=v.memoizedProps,b.state=v.memoizedState,v.mode&f1)try{d5(),b.componentWillUnmount()}finally{m5(v)}else b.componentWillUnmount()};function nU(v,b){try{y7(C6,v)}catch(z){x1(v,b,z)}}function eH(v,b,z){try{vW(v,z)}catch(Q){x1(v,b,Q)}}function bW(v,b,z){try{z.componentDidMount()}catch(Q){x1(v,b,Q)}}function tU(v,b){try{v9(v)}catch(z){x1(v,b,z)}}function Tb(v,b){var z=v.ref;if(z!==null)if(typeof z==="function"){var Q;try{if(e1&&i1&&v.mode&f1)try{d5(),Q=z(null)}finally{m5(v)}else Q=z(null)}catch(X){x1(v,b,X)}if(typeof Q==="function")G("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",t0(v))}else z.current=null}function eQ(v,b,z){try{z()}catch(Q){x1(v,b,Q)}}var sU=null,eU=!1;function zW(v,b){sU=ON(v.containerInfo),_0=b,QW();var z=eU;return eU=!1,sU=null,z}function QW(){while(_0!==null){var v=_0,b=v.child;if((v.subtreeFlags&ZZ)!==g0&&b!==null)b.return=v,_0=b;else XW()}}function XW(){while(_0!==null){var v=_0;q6(v);try{ZW(v)}catch(z){x1(v,v.return,z)}j6();var b=v.sibling;if(b!==null){b.return=v.return,_0=b;return}_0=v.return}}function ZW(v){var{alternate:b,flags:z}=v;if((z&Xv)!==g0){switch(q6(v),v.tag){case F:case a:case X0:break;case P:{if(b!==null){var{memoizedProps:Q,memoizedState:X}=b,Z=v.stateNode;if(v.type===v.elementType&&!wv){if(Z.props!==v.memoizedProps)G("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.",t0(v)||"instance");if(Z.state!==v.memoizedState)G("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.",t0(v)||"instance")}var J=Z.getSnapshotBeforeUpdate(v.elementType===v.type?Q:O5(v.type,Q),X);{var Y=rU;if(J===void 0&&!Y.has(v.type))Y.add(v.type),G("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",t0(v))}Z.__reactInternalSnapshotBeforeUpdate=J}break}case T:{{var $=v.stateNode;aN($.containerInfo)}break}case V:case I:case R:case n0:break;default: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.")}j6()}}function N5(v,b,z){var Q=b.updateQueue,X=Q!==null?Q.lastEffect:null;if(X!==null){var Z=X.next,J=Z;do{if((J.tag&v)===v){var Y=J.destroy;if(J.destroy=void 0,Y!==void 0){if((v&e6)!==h4)_O(b);else if((v&C6)!==h4)aG(b);if((v&S5)!==h4)S3(!0);if(eQ(b,z,Y),(v&S5)!==h4)S3(!1);if((v&e6)!==h4)FO();else if((v&C6)!==h4)cG()}}J=J.next}while(J!==Z)}}function y7(v,b){var z=b.updateQueue,Q=z!==null?z.lastEffect:null;if(Q!==null){var X=Q.next,Z=X;do{if((Z.tag&v)===v){if((v&e6)!==h4)PO(b);else if((v&C6)!==h4)RO(b);var J=Z.create;if((v&S5)!==h4)S3(!0);if(Z.destroy=J(),(v&S5)!==h4)S3(!1);if((v&e6)!==h4)WO();else if((v&C6)!==h4)MO();{var Y=Z.destroy;if(Y!==void 0&&typeof Y!=="function"){var $=void 0;if((Z.tag&C6)!==g0)$="useLayoutEffect";else if((Z.tag&S5)!==g0)$="useInsertionEffect";else $="useEffect";var q=void 0;if(Y===null)q=" You returned null. If your effect does not require clean up, return undefined (or nothing).";else if(typeof Y.then==="function")q=`
103
-
104
- It looks like you wrote `+$+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
105
-
106
- `+$+`(() => {
107
- async function fetchData() {
108
- // You can await here
109
- const response = await MyAPI.getData(someId);
110
- // ...
111
- }
112
- fetchData();
113
- }, [someId]); // Or [] if effect doesn't need props or state
114
-
115
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`;else q=" You returned: "+Y;G("%s must not return anything besides a function, which is used for clean-up.%s",$,q)}}}Z=Z.next}while(Z!==X)}}function JW(v,b){if((b.flags&U1)!==g0)switch(b.tag){case K0:{var z=b.stateNode.passiveEffectDuration,Q=b.memoizedProps,X=Q.id,Z=Q.onPostCommit,J=BU(),Y=b.alternate===null?"mount":"update";if(qU())Y="nested-update";if(typeof Z==="function")Z(X,Y,z,J);var $=b.return;v:while($!==null){switch($.tag){case T:var q=$.stateNode;q.passiveEffectDuration+=z;break v;case K0:var O=$.stateNode;O.passiveEffectDuration+=z;break v}$=$.return}break}}}function HW(v,b,z,Q){if((z.flags&N8)!==g0)switch(z.tag){case F:case a:case X0:{if(!b4)if(z.mode&f1)try{d5(),y7(C6|E6,z)}finally{m5(z)}else y7(C6|E6,z);break}case P:{var X=z.stateNode;if(z.flags&U1){if(!b4)if(b===null){if(z.type===z.elementType&&!wv){if(X.props!==z.memoizedProps)G("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.",t0(z)||"instance");if(X.state!==z.memoizedState)G("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.",t0(z)||"instance")}if(z.mode&f1)try{d5(),X.componentDidMount()}finally{m5(z)}else X.componentDidMount()}else{var Z=z.elementType===z.type?b.memoizedProps:O5(z.type,b.memoizedProps),J=b.memoizedState;if(z.type===z.elementType&&!wv){if(X.props!==z.memoizedProps)G("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.",t0(z)||"instance");if(X.state!==z.memoizedState)G("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.",t0(z)||"instance")}if(z.mode&f1)try{d5(),X.componentDidUpdate(Z,J,X.__reactInternalSnapshotBeforeUpdate)}finally{m5(z)}else X.componentDidUpdate(Z,J,X.__reactInternalSnapshotBeforeUpdate)}}var Y=z.updateQueue;if(Y!==null){if(z.type===z.elementType&&!wv){if(X.props!==z.memoizedProps)G("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.",t0(z)||"instance");if(X.state!==z.memoizedState)G("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.",t0(z)||"instance")}mK(z,Y,X)}break}case T:{var $=z.updateQueue;if($!==null){var q=null;if(z.child!==null)switch(z.child.tag){case V:q=YJ(z.child.stateNode);break;case P:q=z.child.stateNode;break}mK(z,$,q)}break}case V:{var O=z.stateNode;if(b===null&&z.flags&U1){var{type:k,memoizedProps:M}=z;wN(O,k,M)}break}case I:break;case R:break;case K0:{{var h=z.memoizedProps,S=h.onCommit,g=h.onRender,$0=z.stateNode.effectDuration,E0=BU(),I0=b===null?"mount":"update";if(qU())I0="nested-update";if(typeof g==="function")g(z.memoizedProps.id,I0,z.actualDuration,z.treeBaseDuration,z.actualStartTime,E0);{if(typeof S==="function")S(z.memoizedProps.id,I0,$0,E0);G_(z);var X1=z.return;v:while(X1!==null){switch(X1.tag){case T:var Z1=X1.stateNode;Z1.effectDuration+=$0;break v;case K0:var D=X1.stateNode;D.effectDuration+=$0;break v}X1=X1.return}}}break}case o:{OW(v,z);break}case c0:case n0:case W0:case S0:case e:case k0:break;default: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(!b4){if(z.flags&k7)v9(z)}}function YW(v){switch(v.tag){case F:case a:case X0:{if(v.mode&f1)try{d5(),nU(v,v.return)}finally{m5(v)}else nU(v,v.return);break}case P:{var b=v.stateNode;if(typeof b.componentDidMount==="function")bW(v,v.return,b);tU(v,v.return);break}case V:{tU(v,v.return);break}}}function GW(v,b){var z=null;{var Q=v;while(!0){if(Q.tag===V){if(z===null){z=Q;try{var X=Q.stateNode;if(b)gN(X);else mN(Q.stateNode,Q.memoizedProps)}catch(J){x1(v,v.return,J)}}}else if(Q.tag===I){if(z===null)try{var Z=Q.stateNode;if(b)uN(Z);else dN(Z,Q.memoizedProps)}catch(J){x1(v,v.return,J)}}else if((Q.tag===S0||Q.tag===e)&&Q.memoizedState!==null&&Q!==v);else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===v)return;while(Q.sibling===null){if(Q.return===null||Q.return===v)return;if(z===Q)z=null;Q=Q.return}if(z===Q)z=null;Q.sibling.return=Q.return,Q=Q.sibling}}}function v9(v){var b=v.ref;if(b!==null){var z=v.stateNode,Q;switch(v.tag){case V:Q=YJ(z);break;default:Q=z}if(typeof b==="function"){var X;if(v.mode&f1)try{d5(),X=b(Q)}finally{m5(v)}else X=b(Q);if(typeof X==="function")G("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",t0(v))}else{if(!b.hasOwnProperty("current"))G("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",t0(v));b.current=Q}}}function $W(v){var b=v.alternate;if(b!==null)b.return=null;v.return=null}function b9(v){var b=v.alternate;if(b!==null)v.alternate=null,b9(b);{if(v.child=null,v.deletions=null,v.sibling=null,v.tag===V){var z=v.stateNode;if(z!==null)NA(z)}v.stateNode=null,v._debugOwner=null,v.return=null,v.dependencies=null,v.memoizedProps=null,v.memoizedState=null,v.pendingProps=null,v.stateNode=null,v.updateQueue=null}}function KW(v){var b=v.return;while(b!==null){if(z9(b))return b;b=b.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function z9(v){return v.tag===V||v.tag===T||v.tag===R}function Q9(v){var b=v;v:while(!0){while(b.sibling===null){if(b.return===null||z9(b.return))return null;b=b.return}b.sibling.return=b.return,b=b.sibling;while(b.tag!==V&&b.tag!==I&&b.tag!==z1){if(b.flags&I6)continue v;if(b.child===null||b.tag===R)continue v;else b.child.return=b,b=b.child}if(!(b.flags&I6))return b.stateNode}}function UW(v){var b=KW(v);switch(b.tag){case V:{var z=b.stateNode;if(b.flags&O8)QK(z),b.flags&=~O8;var Q=Q9(v);bY(v,Q,z);break}case T:case R:{var X=b.stateNode.containerInfo,Z=Q9(v);vY(v,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 vY(v,b,z){var Q=v.tag,X=Q===V||Q===I;if(X){var Z=v.stateNode;if(b)EN(z,Z,b);else fN(z,Z)}else if(Q===R);else{var J=v.child;if(J!==null){vY(J,b,z);var Y=J.sibling;while(Y!==null)vY(Y,b,z),Y=Y.sibling}}}function bY(v,b,z){var Q=v.tag,X=Q===V||Q===I;if(X){var Z=v.stateNode;if(b)TN(z,Z,b);else DN(z,Z)}else if(Q===R);else{var J=v.child;if(J!==null){bY(J,b,z);var Y=J.sibling;while(Y!==null)bY(Y,b,z),Y=Y.sibling}}}var z4=null,A5=!1;function qW(v,b,z){{var Q=b;v:while(Q!==null){switch(Q.tag){case V:{z4=Q.stateNode,A5=!1;break v}case T:{z4=Q.stateNode.containerInfo,A5=!0;break v}case R:{z4=Q.stateNode.containerInfo,A5=!0;break v}}Q=Q.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.");X9(v,b,z),z4=null,A5=!1}$W(z)}function j7(v,b,z){var Q=z.child;while(Q!==null)X9(v,b,Q),Q=Q.sibling}function X9(v,b,z){switch(OO(z),z.tag){case V:if(!b4)Tb(z,b);case I:{{var Q=z4,X=A5;if(z4=null,j7(v,b,z),z4=Q,A5=X,z4!==null)if(A5)hN(z4,z.stateNode);else CN(z4,z.stateNode)}return}case z1:{if(z4!==null)if(A5)SN(z4,z.stateNode);else UJ(z4,z.stateNode);return}case R:{{var Z=z4,J=A5;z4=z.stateNode.containerInfo,A5=!0,j7(v,b,z),z4=Z,A5=J}return}case F:case a:case p:case X0:{if(!b4){var Y=z.updateQueue;if(Y!==null){var $=Y.lastEffect;if($!==null){var q=$.next,O=q;do{var k=O,M=k.destroy,h=k.tag;if(M!==void 0){if((h&S5)!==h4)eQ(z,b,M);else if((h&C6)!==h4){if(aG(z),z.mode&f1)d5(),eQ(z,b,M),m5(z);else eQ(z,b,M);cG()}}O=O.next}while(O!==q)}}}j7(v,b,z);return}case P:{if(!b4){Tb(z,b);var S=z.stateNode;if(typeof S.componentWillUnmount==="function")eH(z,b,S)}j7(v,b,z);return}case W0:{j7(v,b,z);return}case S0:{if(z.mode&G1){var g=b4;b4=g||z.memoizedState!==null,j7(v,b,z),b4=g}else j7(v,b,z);break}default:{j7(v,b,z);return}}}function BW(v){var b=v.memoizedState}function OW(v,b){var z=b.memoizedState;if(z===null){var Q=b.alternate;if(Q!==null){var X=Q.memoizedState;if(X!==null){var Z=X.dehydrated;if(Z!==null)vA(Z)}}}}function Z9(v){var b=v.updateQueue;if(b!==null){v.updateQueue=null;var z=v.stateNode;if(z===null)z=v.stateNode=new sP;b.forEach(function(Q){var X=L_.bind(null,v,Q);if(!z.has(Q)){if(z.add(Q),Y5)if(Db!==null&&fb!==null)h3(fb,Db);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");Q.then(X,X)}})}}function LW(v,b,z){Db=z,fb=v,q6(b),J9(b,v),q6(b),Db=null,fb=null}function P5(v,b,z){var Q=b.deletions;if(Q!==null)for(var X=0;X<Q.length;X++){var Z=Q[X];try{qW(v,b,Z)}catch($){x1(Z,b,$)}}var J=Jz();if(b.subtreeFlags&JZ){var Y=b.child;while(Y!==null)q6(Y),J9(Y,v),Y=Y.sibling}q6(J)}function J9(v,b,z){var{alternate:Q,flags:X}=v;switch(v.tag){case F:case a:case p:case X0:{if(P5(b,v),a5(v),X&U1){try{N5(S5|E6,v,v.return),y7(S5|E6,v)}catch(d0){x1(v,v.return,d0)}if(v.mode&f1){try{d5(),N5(C6|E6,v,v.return)}catch(d0){x1(v,v.return,d0)}m5(v)}else try{N5(C6|E6,v,v.return)}catch(d0){x1(v,v.return,d0)}}return}case P:{if(P5(b,v),a5(v),X&k7){if(Q!==null)Tb(Q,Q.return)}return}case V:{if(P5(b,v),a5(v),X&k7){if(Q!==null)Tb(Q,Q.return)}{if(v.flags&O8){var Z=v.stateNode;try{QK(Z)}catch(d0){x1(v,v.return,d0)}}if(X&U1){var J=v.stateNode;if(J!=null){var Y=v.memoizedProps,$=Q!==null?Q.memoizedProps:Y,q=v.type,O=v.updateQueue;if(v.updateQueue=null,O!==null)try{IN(J,O,q,$,Y,v)}catch(d0){x1(v,v.return,d0)}}}}return}case I:{if(P5(b,v),a5(v),X&U1){if(v.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.");var{stateNode:k,memoizedProps:M}=v,h=Q!==null?Q.memoizedProps:M;try{VN(k,h,M)}catch(d0){x1(v,v.return,d0)}}return}case T:{if(P5(b,v),a5(v),X&U1){if(Q!==null){var S=Q.memoizedState;if(S.isDehydrated)try{eN(b.containerInfo)}catch(d0){x1(v,v.return,d0)}}}return}case R:{P5(b,v),a5(v);return}case o:{P5(b,v),a5(v);var g=v.child;if(g.flags&Zv){var{stateNode:$0,memoizedState:E0}=g,I0=E0!==null;if($0.isHidden=I0,I0){var X1=g.alternate!==null&&g.alternate.memoizedState!==null;if(!X1)b_()}}if(X&U1){try{BW(v)}catch(d0){x1(v,v.return,d0)}Z9(v)}return}case S0:{var Z1=Q!==null&&Q.memoizedState!==null;if(v.mode&G1){var D=b4;b4=D||Z1,P5(b,v),b4=D}else P5(b,v);if(a5(v),X&Zv){var{stateNode:d,memoizedState:f}=v,r=f!==null,O0=v;if(d.isHidden=r,r){if(!Z1){if((O0.mode&G1)!==h0){_0=O0;var U0=O0.child;while(U0!==null)_0=U0,AW(U0),U0=U0.sibling}}}GW(O0,r)}return}case c0:{if(P5(b,v),a5(v),X&U1)Z9(v);return}case W0:return;default:{P5(b,v),a5(v);return}}}function a5(v){var b=v.flags;if(b&I6){try{UW(v)}catch(z){x1(v,v.return,z)}v.flags&=~I6}if(b&t5)v.flags&=~t5}function NW(v,b,z){Db=z,fb=b,_0=v,H9(v,b,z),Db=null,fb=null}function H9(v,b,z){var Q=(v.mode&G1)!==h0;while(_0!==null){var X=_0,Z=X.child;if(X.tag===S0&&Q){var J=X.memoizedState!==null,Y=J||sQ;if(Y){zY(v,b,z);continue}else{var $=X.alternate,q=$!==null&&$.memoizedState!==null,O=q||b4,k=sQ,M=b4;if(sQ=Y,b4=O,b4&&!M)_0=X,PW(X);var h=Z;while(h!==null)_0=h,H9(h,b,z),h=h.sibling;_0=X,sQ=k,b4=M,zY(v,b,z);continue}}if((X.subtreeFlags&N8)!==g0&&Z!==null)Z.return=X,_0=Z;else zY(v,b,z)}}function zY(v,b,z){while(_0!==null){var Q=_0;if((Q.flags&N8)!==g0){var X=Q.alternate;q6(Q);try{HW(b,X,Q,z)}catch(J){x1(Q,Q.return,J)}j6()}if(Q===v){_0=null;return}var Z=Q.sibling;if(Z!==null){Z.return=Q.return,_0=Z;return}_0=Q.return}}function AW(v){while(_0!==null){var b=_0,z=b.child;switch(b.tag){case F:case a:case p:case X0:{if(b.mode&f1)try{d5(),N5(C6,b,b.return)}finally{m5(b)}else N5(C6,b,b.return);break}case P:{Tb(b,b.return);var Q=b.stateNode;if(typeof Q.componentWillUnmount==="function")eH(b,b.return,Q);break}case V:{Tb(b,b.return);break}case S0:{var X=b.memoizedState!==null;if(X){Y9(v);continue}break}}if(z!==null)z.return=b,_0=z;else Y9(v)}}function Y9(v){while(_0!==null){var b=_0;if(b===v){_0=null;return}var z=b.sibling;if(z!==null){z.return=b.return,_0=z;return}_0=b.return}}function PW(v){while(_0!==null){var b=_0,z=b.child;if(b.tag===S0){var Q=b.memoizedState!==null;if(Q){G9(v);continue}}if(z!==null)z.return=b,_0=z;else G9(v)}}function G9(v){while(_0!==null){var b=_0;q6(b);try{YW(b)}catch(Q){x1(b,b.return,Q)}if(j6(),b===v){_0=null;return}var z=b.sibling;if(z!==null){z.return=b.return,_0=z;return}_0=b.return}}function WW(v,b,z,Q){_0=b,_W(b,v,z,Q)}function _W(v,b,z,Q){while(_0!==null){var X=_0,Z=X.child;if((X.subtreeFlags&sv)!==g0&&Z!==null)Z.return=X,_0=Z;else FW(v,b,z,Q)}}function FW(v,b,z,Q){while(_0!==null){var X=_0;if((X.flags&H5)!==g0){q6(X);try{RW(b,X,z,Q)}catch(J){x1(X,X.return,J)}j6()}if(X===v){_0=null;return}var Z=X.sibling;if(Z!==null){Z.return=X.return,_0=Z;return}_0=X.return}}function RW(v,b,z,Q){switch(b.tag){case F:case a:case X0:{if(b.mode&f1){_H();try{y7(e6|E6,b)}finally{WH(b)}}else y7(e6|E6,b);break}}}function MW(v){_0=v,kW()}function kW(){while(_0!==null){var v=_0,b=v.child;if((_0.flags&Qv)!==g0){var z=v.deletions;if(z!==null){for(var Q=0;Q<z.length;Q++){var X=z[Q];_0=X,VW(X,v)}{var Z=v.alternate;if(Z!==null){var J=Z.child;if(J!==null){Z.child=null;do{var Y=J.sibling;J.sibling=null,J=Y}while(J!==null)}}}_0=v}}if((v.subtreeFlags&sv)!==g0&&b!==null)b.return=v,_0=b;else wW()}}function wW(){while(_0!==null){var v=_0;if((v.flags&H5)!==g0)q6(v),IW(v),j6();var b=v.sibling;if(b!==null){b.return=v.return,_0=b;return}_0=v.return}}function IW(v){switch(v.tag){case F:case a:case X0:{if(v.mode&f1)_H(),N5(e6|E6,v,v.return),WH(v);else N5(e6|E6,v,v.return);break}}}function VW(v,b){while(_0!==null){var z=_0;q6(z),fW(z,b),j6();var Q=z.child;if(Q!==null)Q.return=z,_0=Q;else DW(v)}}function DW(v){while(_0!==null){var b=_0,z=b.sibling,Q=b.return;if(b9(b),b===v){_0=null;return}if(z!==null){z.return=Q,_0=z;return}_0=Q}}function fW(v,b){switch(v.tag){case F:case a:case X0:{if(v.mode&f1)_H(),N5(e6,v,b),WH(v);else N5(e6,v,b);break}}}function TW(v){switch(v.tag){case F:case a:case X0:{try{y7(C6|E6,v)}catch(z){x1(v,v.return,z)}break}case P:{var b=v.stateNode;try{b.componentDidMount()}catch(z){x1(v,v.return,z)}break}}}function EW(v){switch(v.tag){case F:case a:case X0:{try{y7(e6|E6,v)}catch(b){x1(v,v.return,b)}break}}}function CW(v){switch(v.tag){case F:case a:case X0:{try{N5(C6|E6,v,v.return)}catch(z){x1(v,v.return,z)}break}case P:{var b=v.stateNode;if(typeof b.componentWillUnmount==="function")eH(v,v.return,b);break}}}function hW(v){switch(v.tag){case F:case a:case X0:try{N5(e6|E6,v,v.return)}catch(b){x1(v,v.return,b)}}}var SW=0,gW=1,uW=2,mW=3,dW=4;if(typeof Symbol==="function"&&Symbol.for){var R3=Symbol.for;SW=R3("selector.component"),gW=R3("selector.has_pseudo_class"),uW=R3("selector.role"),mW=R3("selector.test_id"),dW=R3("selector.text")}var aW=[];function cW(){aW.forEach(function(v){return v()})}var yW=H.ReactCurrentActQueue;function jW(v){{var b=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,z=typeof jest<"u";return z&&b!==!1}}function $9(){{var v=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;if(!v&&yW.current!==null)G("The current testing environment is not configured to support act(...)");return v}}var oW=Math.ceil,QY=H.ReactCurrentDispatcher,XY=H.ReactCurrentOwner,Q4=H.ReactCurrentBatchConfig,W5=H.ReactCurrentActQueue,g6=0,K9=1,X4=2,z5=4,$7=0,M3=1,Iv=2,vX=3,k3=4,U9=5,ZY=6,$1=g6,k4=null,B6=null,u6=i,c5=i,JY=C7(i),m6=$7,w3=null,HY=i,bX=i,I3=i,zX=i,V3=null,S4=null,YY=0,q9=500,B9=1/0,xW=500,K7=null;function D3(){B9=o6()+xW}function O9(){return B9}var QX=!1,GY=null,Eb=null,Vv=!1,o7=null,f3=i,$Y=[],KY=null,lW=50,T3=0,UY=null,qY=!1,XX=!1,iW=50,Cb=0,ZX=null,E3=t1,JX=i,L9=!1;function HX(){return k4}function w4(){if(($1&(X4|z5))!==g6)return o6();if(E3!==t1)return E3;return E3=o6(),E3}function x7(v){var b=v.mode;if((b&G1)===h0)return j0;else if(($1&X4)!==g6&&u6!==i)return M8(u6);var z=mA()!==uA;if(z){if(Q4.transition!==null){var Q=Q4.transition;if(!Q._updatedFibers)Q._updatedFibers=new Set;Q._updatedFibers.add(v)}if(JX===l6)JX=rG();return JX}var X=G5();if(X!==l6)return X;var Z=FN();return Z}function pW(v){var b=v.mode;if((b&G1)===h0)return j0;return lO()}function d6(v,b,z,Q){if(A_(),L9)G("useInsertionEffect must not schedule updates.");if(qY)XX=!0;if(k8(v,z,Q),($1&X4)!==i&&v===k4)__(b);else{if(Y5)sG(v,b,z);if(F_(b),v===k4){if(($1&X4)===g6)I3=s0(I3,z);if(m6===k3)l7(v,u6)}if(g4(v,Q),z===j0&&$1===g6&&(b.mode&G1)===h0&&!W5.isBatchingLegacy)D3(),OK()}}function rW(v,b,z){var Q=v.current;Q.lanes=b,k8(v,b,z),g4(v,z)}function nW(v){return($1&X4)!==g6}function g4(v,b){var z=v.callbackNode;aO(v,b);var Q=kz(v,v===k4?u6:i);if(Q===i){if(z!==null)E9(z);v.callbackNode=null,v.callbackPriority=l6;return}var X=Uv(Q),Z=v.callbackPriority;if(Z===X&&!(W5.current!==null&&z!==WY)){if(z==null&&Z!==j0)G("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}if(z!=null)E9(z);var J;if(X===j0){if(v.tag===h7){if(W5.isBatchingLegacy!==null)W5.didScheduleLegacyUpdate=!0;WA(P9.bind(null,v))}else BK(P9.bind(null,v));if(W5.current!==null)W5.current.push(S7);else MN(function(){if(($1&(X4|z5))===g6)S7()});J=null}else{var Y;switch(b$(Q)){case j4:Y=_z;break;case b7:Y=HZ;break;case z7:Y=Yv;break;case Dz:Y=YZ;break;default:Y=Yv;break}J=_Y(Y,N9.bind(null,v))}v.callbackPriority=X,v.callbackNode=J}function N9(v,b){if(GP(),E3=t1,JX=i,($1&(X4|z5))!==g6)throw Error("Should not already be working.");var z=v.callbackNode,Q=q7();if(Q){if(v.callbackNode!==z)return null}var X=kz(v,v===k4?u6:i);if(X===i)return null;var Z=!wz(v,X)&&!xO(v,X)&&!b,J=Z?J_(v,X):GX(v,X);if(J!==$7){if(J===Iv){var Y=fZ(v);if(Y!==i)X=Y,J=BY(v,Y)}if(J===M3){var $=w3;throw Dv(v,i),l7(v,X),g4(v,o6()),$}if(J===ZY)l7(v,X);else{var q=!wz(v,X),O=v.current.alternate;if(q&&!sW(O)){if(J=GX(v,X),J===Iv){var k=fZ(v);if(k!==i)X=k,J=BY(v,k)}if(J===M3){var M=w3;throw Dv(v,i),l7(v,X),g4(v,o6()),M}}v.finishedWork=O,v.finishedLanes=X,tW(v,J,X)}}if(g4(v,o6()),v.callbackNode===z)return N9.bind(null,v);return null}function BY(v,b){var z=V3;if(fz(v)){var Q=Dv(v,b);Q.flags|=n5,qA(v.containerInfo)}var X=GX(v,b);if(X!==Iv){var Z=S4;if(S4=z,Z!==null)A9(Z)}return X}function A9(v){if(S4===null)S4=v;else S4.push.apply(S4,v)}function tW(v,b,z){switch(b){case $7:case M3:throw Error("Root did not complete. This is a bug in React.");case Iv:{fv(v,S4,K7);break}case vX:{if(l7(v,z),iG(z)&&!C9()){var Q=YY+q9-o6();if(Q>10){var X=kz(v,i);if(X!==i)break;var Z=v.suspendedLanes;if(!Qb(Z,z)){var J=w4();tG(v,Z);break}v.timeoutHandle=$J(fv.bind(null,v,S4,K7),Q);break}}fv(v,S4,K7);break}case k3:{if(l7(v,z),oO(z))break;if(!C9()){var Y=mO(v,z),$=Y,q=o6()-$,O=N_(q)-q;if(O>10){v.timeoutHandle=$J(fv.bind(null,v,S4,K7),O);break}}fv(v,S4,K7);break}case U9:{fv(v,S4,K7);break}default:throw Error("Unknown root exit status.")}}function sW(v){var b=v;while(!0){if(b.flags&Pz){var z=b.updateQueue;if(z!==null){var Q=z.stores;if(Q!==null)for(var X=0;X<Q.length;X++){var Z=Q[X],J=Z.getSnapshot,Y=Z.value;try{if(!x4(J(),Y))return!1}catch(q){return!1}}}}var $=b.child;if(b.subtreeFlags&Pz&&$!==null){$.return=b,b=$;continue}if(b===v)return!0;while(b.sibling===null){if(b.return===null||b.return===v)return!0;b=b.return}b.sibling.return=b.return,b=b.sibling}return!0}function l7(v,b){b=Iz(b,zX),b=Iz(b,I3),pO(v,b)}function P9(v){if($P(),($1&(X4|z5))!==g6)throw Error("Should not already be working.");q7();var b=kz(v,i);if(!y4(b,j0))return g4(v,o6()),null;var z=GX(v,b);if(v.tag!==h7&&z===Iv){var Q=fZ(v);if(Q!==i)b=Q,z=BY(v,Q)}if(z===M3){var X=w3;throw Dv(v,i),l7(v,b),g4(v,o6()),X}if(z===ZY)throw Error("Root did not complete. This is a bug in React.");var Z=v.current.alternate;return v.finishedWork=Z,v.finishedLanes=b,fv(v,S4,K7),g4(v,o6()),null}function eW(v,b){if(b!==i){if(hZ(v,s0(b,j0)),g4(v,o6()),($1&(X4|z5))===g6)D3(),S7()}}function OY(v,b){var z=$1;$1|=K9;try{return v(b)}finally{if($1=z,$1===g6&&!W5.isBatchingLegacy)D3(),OK()}}function v_(v,b,z,Q,X){var Z=G5(),J=Q4.transition;try{return Q4.transition=null,i6(j4),v(b,z,Q,X)}finally{if(i6(Z),Q4.transition=J,$1===g6)D3()}}function U7(v){if(o7!==null&&o7.tag===h7&&($1&(X4|z5))===g6)q7();var b=$1;$1|=K9;var z=Q4.transition,Q=G5();try{if(Q4.transition=null,i6(j4),v)return v();else return}finally{if(i6(Q),Q4.transition=z,$1=b,($1&(X4|z5))===g6)S7()}}function W9(){return($1&(X4|z5))!==g6}function YX(v,b){q4(JY,c5,v),c5=s0(c5,b),HY=s0(HY,b)}function LY(v){c5=JY.current,U4(JY,v)}function Dv(v,b){v.finishedWork=null,v.finishedLanes=i;var z=v.timeoutHandle;if(z!==KJ)v.timeoutHandle=KJ,RN(z);if(B6!==null){var Q=B6.return;while(Q!==null){var X=Q.alternate;pU(X,Q),Q=Q.return}}k4=v;var Z=Tv(v.current,null);return B6=Z,u6=c5=HY=b,m6=$7,w3=null,bX=i,I3=i,zX=i,V3=null,S4=null,xA(),U5.discardPendingWarnings(),Z}function _9(v,b){do{var z=B6;try{if(LQ(),oK(),j6(),XY.current=null,z===null||z.return===null){m6=M3,w3=b,B6=null;return}if(e1&&z.mode&f1)iQ(z,!0);if(K6)if(ev(),b!==null&&typeof b==="object"&&typeof b.then==="function"){var Q=b;wO(z,Q,u6)}else kO(z,b,u6);PP(v,z.return,z,b,u6),k9(z)}catch(X){if(b=X,B6===z&&z!==null)z=z.return,B6=z;else z=B6;continue}return}while(!0)}function F9(){var v=QY.current;if(QY.current=yQ,v===null)return yQ;else return v}function R9(v){QY.current=v}function b_(){YY=o6()}function C3(v){bX=s0(v,bX)}function z_(){if(m6===$7)m6=vX}function NY(){if(m6===$7||m6===vX||m6===Iv)m6=k3;if(k4!==null&&(TZ(bX)||TZ(I3)))l7(k4,u6)}function Q_(v){if(m6!==k3)m6=Iv;if(V3===null)V3=[v];else V3.push(v)}function X_(){return m6===$7}function GX(v,b){var z=$1;$1|=X4;var Q=F9();if(k4!==v||u6!==b){if(Y5){var X=v.memoizedUpdaters;if(X.size>0)h3(v,u6),X.clear();eG(v,b)}K7=v$(),Dv(v,b)}yG(b);do try{Z_();break}catch(Z){_9(v,Z)}while(!0);if(LQ(),$1=z,R9(Q),B6!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return jG(),k4=null,u6=i,m6}function Z_(){while(B6!==null)M9(B6)}function J_(v,b){var z=$1;$1|=X4;var Q=F9();if(k4!==v||u6!==b){if(Y5){var X=v.memoizedUpdaters;if(X.size>0)h3(v,u6),X.clear();eG(v,b)}K7=v$(),D3(),Dv(v,b)}yG(b);do try{H_();break}catch(Z){_9(v,Z)}while(!0);if(LQ(),R9(Q),$1=z,B6!==null)return TO(),$7;else return jG(),k4=null,u6=i,m6}function H_(){while(B6!==null&&!ZO())M9(B6)}function M9(v){var b=v.alternate;q6(v);var z;if((v.mode&f1)!==h0)PH(v),z=AY(b,v,c5),iQ(v,!0);else z=AY(b,v,c5);if(j6(),v.memoizedProps=v.pendingProps,z===null)k9(v);else B6=z;XY.current=null}function k9(v){var b=v;do{var{alternate:z,return:Q}=b;if((b.flags&L8)===g0){q6(b);var X=void 0;if((b.mode&f1)===h0)X=iU(z,b,c5);else PH(b),X=iU(z,b,c5),iQ(b,!1);if(j6(),X!==null){B6=X;return}}else{var Z=tP(z,b);if(Z!==null){Z.flags&=eB,B6=Z;return}if((b.mode&f1)!==h0){iQ(b,!1);var{actualDuration:J,child:Y}=b;while(Y!==null)J+=Y.actualDuration,Y=Y.sibling;b.actualDuration=J}if(Q!==null)Q.flags|=L8,Q.subtreeFlags=g0,Q.deletions=null;else{m6=ZY,B6=null;return}}var $=b.sibling;if($!==null){B6=$;return}b=Q,B6=b}while(b!==null);if(m6===$7)m6=U9}function fv(v,b,z){var Q=G5(),X=Q4.transition;try{Q4.transition=null,i6(j4),Y_(v,b,z,Q)}finally{Q4.transition=X,i6(Q)}return null}function Y_(v,b,z,Q){do q7();while(o7!==null);if(P_(),($1&(X4|z5))!==g6)throw Error("Should not already be working.");var{finishedWork:X,finishedLanes:Z}=v;if(AO(Z),X===null)return dG(),null;else if(Z===i)G("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(v.finishedWork=null,v.finishedLanes=i,X===v.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");v.callbackNode=null,v.callbackPriority=l6;var J=s0(X.lanes,X.childLanes);if(rO(v,J),v===k4)k4=null,B6=null,u6=i;if((X.subtreeFlags&sv)!==g0||(X.flags&sv)!==g0){if(!Vv)Vv=!0,KY=z,_Y(Yv,function(){return q7(),null})}var Y=(X.subtreeFlags&(ZZ|JZ|N8|sv))!==g0,$=(X.flags&(ZZ|JZ|N8|sv))!==g0;if(Y||$){var q=Q4.transition;Q4.transition=null;var O=G5();i6(j4);var k=$1;$1|=z5,XY.current=null;var M=zW(v,X);OU(),LW(v,X,Z),LN(v.containerInfo),v.current=X,IO(Z),NW(X,v,Z),VO(),JO(),$1=k,i6(O),Q4.transition=q}else v.current=X,OU();var h=Vv;if(Vv)Vv=!1,o7=v,f3=Z;else Cb=0,ZX=null;if(J=v.pendingLanes,J===i)Eb=null;if(!h)D9(v.current,!1);if(qO(X.stateNode,Q),Y5)v.memoizedUpdaters.clear();if(cW(),g4(v,o6()),b!==null){var S=v.onRecoverableError;for(var g=0;g<b.length;g++){var $0=b[g],E0=$0.stack,I0=$0.digest;S($0.value,{componentStack:E0,digest:I0})}}if(QX){QX=!1;var X1=GY;throw GY=null,X1}if(y4(f3,j0)&&v.tag!==h7)q7();if(J=v.pendingLanes,y4(J,j0))if(YP(),v===UY)T3++;else T3=0,UY=v;else T3=0;return S7(),dG(),null}function q7(){if(o7!==null){var v=b$(f3),b=eO(z7,v),z=Q4.transition,Q=G5();try{return Q4.transition=null,i6(b),$_()}finally{i6(Q),Q4.transition=z}}return!1}function G_(v){if($Y.push(v),!Vv)Vv=!0,_Y(Yv,function(){return q7(),null})}function $_(){if(o7===null)return!1;var v=KY;KY=null;var b=o7,z=f3;if(o7=null,f3=i,($1&(X4|z5))!==g6)throw Error("Cannot flush passive effects while already rendering.");qY=!0,XX=!1,DO(z);var Q=$1;$1|=z5,MW(b.current),WW(b,b.current,z,v);{var X=$Y;$Y=[];for(var Z=0;Z<X.length;Z++){var J=X[Z];JW(b,J)}}fO(),D9(b.current,!0),$1=Q,S7();{if(XX)if(b===ZX)Cb++;else Cb=0,ZX=b;else Cb=0;qY=!1,XX=!1}BO(b);{var Y=b.current.stateNode;Y.effectDuration=0,Y.passiveEffectDuration=0}return!0}function w9(v){return Eb!==null&&Eb.has(v)}function K_(v){if(Eb===null)Eb=new Set([v]);else Eb.add(v)}function U_(v){if(!QX)QX=!0,GY=v}var q_=U_;function I9(v,b,z){var Q=kv(z,b),X=RU(v,Q,j0),Z=u7(v,X,j0),J=w4();if(Z!==null)k8(Z,j0,J),g4(Z,J)}function x1(v,b,z){if(eP(z),S3(!1),v.tag===T){I9(v,v,z);return}var Q=null;Q=b;while(Q!==null){if(Q.tag===T){I9(Q,v,z);return}else if(Q.tag===P){var{type:X,stateNode:Z}=Q;if(typeof X.getDerivedStateFromError==="function"||typeof Z.componentDidCatch==="function"&&!w9(Z)){var J=kv(z,v),Y=uH(Q,J,j0),$=u7(Q,Y,j0),q=w4();if($!==null)k8($,j0,q),g4($,q);return}}Q=Q.return}G(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
116
-
117
- Error message:
118
-
119
- %s`,z)}function B_(v,b,z){var Q=v.pingCache;if(Q!==null)Q.delete(b);var X=w4();if(tG(v,z),R_(v),k4===v&&Qb(u6,z))if(m6===k3||m6===vX&&iG(u6)&&o6()-YY<q9)Dv(v,i);else zX=s0(zX,z);g4(v,X)}function V9(v,b){if(b===l6)b=pW(v);var z=w4(),Q=C4(v,b);if(Q!==null)k8(Q,b,z),g4(Q,z)}function O_(v){var b=v.memoizedState,z=l6;if(b!==null)z=b.retryLane;V9(v,z)}function L_(v,b){var z=l6,Q;switch(v.tag){case o:Q=v.stateNode;var X=v.memoizedState;if(X!==null)z=X.retryLane;break;case c0:Q=v.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}if(Q!==null)Q.delete(b);V9(v,z)}function N_(v){return v<120?120:v<480?480:v<1080?1080:v<1920?1920:v<3000?3000:v<4320?4320:oW(v/1960)*1960}function A_(){if(T3>lW)throw T3=0,UY=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.");if(Cb>iW)Cb=0,ZX=null,G("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.")}function P_(){U5.flushLegacyContextWarning(),U5.flushPendingUnsafeLifecycleWarnings()}function D9(v,b){{if(q6(v),$X(v,s5,CW),b)$X(v,Wz,hW);if($X(v,s5,TW),b)$X(v,Wz,EW);j6()}}function $X(v,b,z){{var Q=v,X=null;while(Q!==null){var Z=Q.subtreeFlags&b;if(Q!==X&&Q.child!==null&&Z!==g0)Q=Q.child;else{if((Q.flags&b)!==g0)z(Q);if(Q.sibling!==null)Q=Q.sibling;else Q=X=Q.return}}}}var KX=null;function f9(v){{if(($1&X4)!==g6)return;if(!(v.mode&G1))return;var b=v.tag;if(b!==E&&b!==T&&b!==P&&b!==F&&b!==a&&b!==p&&b!==X0)return;var z=t0(v)||"ReactComponent";if(KX!==null){if(KX.has(z))return;KX.add(z)}else KX=new Set([z]);var Q=K4;try{q6(v),G("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 later calls tries to update the component. Move this work to useEffect instead.")}finally{if(Q)q6(v);else j6()}}}var AY;{var W_=null;AY=function(v,b,z){var Q=m9(W_,b);try{return yU(v,b,z)}catch(Z){if(VA()||Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw Z;if(LQ(),oK(),pU(v,b),m9(b,Q),b.mode&f1)PH(b);if(eX(null,yU,null,v,b,z),rB()){var X=vZ();if(typeof X==="object"&&X!==null&&X._suppressLogging&&typeof Z==="object"&&Z!==null&&!Z._suppressLogging)Z._suppressLogging=!0}throw Z}}}var T9=!1,PY;PY=new Set;function __(v){if(e7&&!ZP())switch(v.tag){case F:case a:case X0:{var b=B6&&t0(B6)||"Unknown",z=b;if(!PY.has(z)){PY.add(z);var Q=t0(v)||"Unknown";G("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://reactjs.org/link/setstate-in-render",Q,b,b)}break}case P:{if(!T9)G("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),T9=!0;break}}}function h3(v,b){if(Y5){var z=v.memoizedUpdaters;z.forEach(function(Q){sG(v,Q,b)})}}var WY={};function _Y(v,b){{var z=W5.current;if(z!==null)return z.push(b),WY;else return mG(v,b)}}function E9(v){if(v===WY)return;return XO(v)}function C9(){return W5.current!==null}function F_(v){{if(v.mode&G1){if(!$9())return}else{if(!jW())return;if($1!==g6)return;if(v.tag!==F&&v.tag!==a&&v.tag!==X0)return}if(W5.current===null){var b=K4;try{q6(v),G(`An update to %s inside a test was not wrapped in act(...).
120
-
121
- When testing, code that causes React state updates should be wrapped into act(...):
122
-
123
- act(() => {
124
- /* fire events that update state */
125
- });
126
- /* assert on the output */
127
-
128
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,t0(v))}finally{if(b)q6(v);else j6()}}}}function R_(v){if(v.tag!==h7&&$9()&&W5.current===null)G(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
129
-
130
- When testing, code that resolves suspended data should be wrapped into act(...):
131
-
132
- act(() => {
133
- /* finish loading suspended data */
134
- });
135
- /* assert on the output */
136
-
137
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function S3(v){L9=v}var Q5=null,hb=null,M_=function(v){Q5=v};function Sb(v){{if(Q5===null)return v;var b=Q5(v);if(b===void 0)return v;return b.current}}function FY(v){return Sb(v)}function RY(v){{if(Q5===null)return v;var b=Q5(v);if(b===void 0){if(v!==null&&v!==void 0&&typeof v.render==="function"){var z=Sb(v.render);if(v.render!==z){var Q={$$typeof:w,render:z};if(v.displayName!==void 0)Q.displayName=v.displayName;return Q}}return v}return b.current}}function h9(v,b){{if(Q5===null)return!1;var z=v.elementType,Q=b.type,X=!1,Z=typeof Q==="object"&&Q!==null?Q.$$typeof:null;switch(v.tag){case P:{if(typeof Q==="function")X=!0;break}case F:{if(typeof Q==="function")X=!0;else if(Z===w0)X=!0;break}case a:{if(Z===w)X=!0;else if(Z===w0)X=!0;break}case p:case X0:{if(Z===Y0)X=!0;else if(Z===w0)X=!0;break}default:return!1}if(X){var J=Q5(z);if(J!==void 0&&J===Q5(Q))return!0}return!1}}function S9(v){{if(Q5===null)return;if(typeof WeakSet!=="function")return;if(hb===null)hb=new WeakSet;hb.add(v)}}var k_=function(v,b){{if(Q5===null)return;var{staleFamilies:z,updatedFamilies:Q}=b;q7(),U7(function(){MY(v.current,Q,z)})}},w_=function(v,b){{if(v.context!==l4)return;q7(),U7(function(){g3(b,v,null,null)})}};function MY(v,b,z){{var{alternate:Q,child:X,sibling:Z,tag:J,type:Y}=v,$=null;switch(J){case F:case X0:case P:$=Y;break;case a:$=Y.render;break}if(Q5===null)throw Error("Expected resolveFamily to be set during hot reload.");var q=!1,O=!1;if($!==null){var k=Q5($);if(k!==void 0){if(z.has(k))O=!0;else if(b.has(k))if(J===P)O=!0;else q=!0}}if(hb!==null){if(hb.has(v)||Q!==null&&hb.has(Q))O=!0}if(O)v._debugNeedsRemount=!0;if(O||q){var M=C4(v,j0);if(M!==null)d6(M,v,j0,t1)}if(X!==null&&!O)MY(X,b,z);if(Z!==null)MY(Z,b,z)}}var I_=function(v,b){{var z=new Set,Q=new Set(b.map(function(X){return X.current}));return kY(v.current,Q,z),z}};function kY(v,b,z){{var{child:Q,sibling:X,tag:Z,type:J}=v,Y=null;switch(Z){case F:case X0:case P:Y=J;break;case a:Y=J.render;break}var $=!1;if(Y!==null){if(b.has(Y))$=!0}if($)V_(v,z);else if(Q!==null)kY(Q,b,z);if(X!==null)kY(X,b,z)}}function V_(v,b){{var z=D_(v,b);if(z)return;var Q=v;while(!0){switch(Q.tag){case V:b.add(Q.stateNode);return;case R:b.add(Q.stateNode.containerInfo);return;case T:b.add(Q.stateNode.containerInfo);return}if(Q.return===null)throw Error("Expected to reach root first.");Q=Q.return}}}function D_(v,b){{var z=v,Q=!1;while(!0){if(z.tag===V)Q=!0,b.add(z.stateNode);else if(z.child!==null){z.child.return=z,z=z.child;continue}if(z===v)return Q;while(z.sibling===null){if(z.return===null||z.return===v)return Q;z=z.return}z.sibling.return=z.return,z=z.sibling}}return!1}var wY;{wY=!1;try{var g9=Object.preventExtensions({})}catch(v){wY=!0}}function f_(v,b,z,Q){if(this.tag=v,this.key=z,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=b,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=Q,this.flags=g0,this.subtreeFlags=g0,this.deletions=null,this.lanes=i,this.childLanes=i,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!wY&&typeof Object.preventExtensions==="function")Object.preventExtensions(this)}var i4=function(v,b,z,Q){return new f_(v,b,z,Q)};function IY(v){var b=v.prototype;return!!(b&&b.isReactComponent)}function T_(v){return typeof v==="function"&&!IY(v)&&v.defaultProps===void 0}function E_(v){if(typeof v==="function")return IY(v)?P:F;else if(v!==void 0&&v!==null){var b=v.$$typeof;if(b===w)return a;if(b===Y0)return p}return E}function Tv(v,b){var z=v.alternate;if(z===null)z=i4(v.tag,b,v.key,v.mode),z.elementType=v.elementType,z.type=v.type,z.stateNode=v.stateNode,z._debugSource=v._debugSource,z._debugOwner=v._debugOwner,z._debugHookTypes=v._debugHookTypes,z.alternate=v,v.alternate=z;else z.pendingProps=b,z.type=v.type,z.flags=g0,z.subtreeFlags=g0,z.deletions=null,z.actualDuration=0,z.actualStartTime=-1;z.flags=v.flags&e5,z.childLanes=v.childLanes,z.lanes=v.lanes,z.child=v.child,z.memoizedProps=v.memoizedProps,z.memoizedState=v.memoizedState,z.updateQueue=v.updateQueue;var Q=v.dependencies;switch(z.dependencies=Q===null?null:{lanes:Q.lanes,firstContext:Q.firstContext},z.sibling=v.sibling,z.index=v.index,z.ref=v.ref,z.selfBaseDuration=v.selfBaseDuration,z.treeBaseDuration=v.treeBaseDuration,z._debugNeedsRemount=v._debugNeedsRemount,z.tag){case E:case F:case X0:z.type=Sb(v.type);break;case P:z.type=FY(v.type);break;case a:z.type=RY(v.type);break}return z}function C_(v,b){v.flags&=e5|I6;var z=v.alternate;if(z===null)v.childLanes=i,v.lanes=b,v.child=null,v.subtreeFlags=g0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null,v.selfBaseDuration=0,v.treeBaseDuration=0;else{v.childLanes=z.childLanes,v.lanes=z.lanes,v.child=z.child,v.subtreeFlags=g0,v.deletions=null,v.memoizedProps=z.memoizedProps,v.memoizedState=z.memoizedState,v.updateQueue=z.updateQueue,v.type=z.type;var Q=z.dependencies;v.dependencies=Q===null?null:{lanes:Q.lanes,firstContext:Q.firstContext},v.selfBaseDuration=z.selfBaseDuration,v.treeBaseDuration=z.treeBaseDuration}return v}function h_(v,b,z){var Q;if(v===JQ){if(Q=G1,b===!0)Q|=N6,Q|=T5}else Q=h0;if(Y5)Q|=f1;return i4(T,null,null,Q)}function VY(v,b,z,Q,X,Z){var J=E,Y=v;if(typeof v==="function")if(IY(v))J=P,Y=FY(Y);else Y=Sb(Y);else if(typeof v==="string")J=V;else v:switch(v){case B1:return i7(z.children,X,Z,b);case A:if(J=n,X|=N6,(X&G1)!==h0)X|=T5;break;case m:return S_(z,X,Z,b);case y:return g_(z,X,Z,b);case s:return u_(z,X,Z,b);case z0:return u9(z,X,Z,b);case V0:case A0:case H1:case w1:case j:default:{if(typeof v==="object"&&v!==null)switch(v.$$typeof){case x:J=t;break v;case L:J=b0;break v;case w:J=a,Y=RY(Y);break v;case Y0:J=p;break v;case w0:J=P0,Y=null;break v}var $="";{if(v===void 0||typeof v==="object"&&v!==null&&Object.keys(v).length===0)$+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var q=Q?t0(Q):null;if(q)$+=`
138
-
139
- Check the render method of \``+q+"`."}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(v==null?v:typeof v)+"."+$))}}var O=i4(J,z,b,X);return O.elementType=v,O.type=Y,O.lanes=Z,O._debugOwner=Q,O}function DY(v,b,z){var Q=null;Q=v._owner;var{type:X,key:Z,props:J}=v,Y=VY(X,Z,J,Q,b,z);return Y._debugSource=v._source,Y._debugOwner=v._owner,Y}function i7(v,b,z,Q){var X=i4(l,v,Q,b);return X.lanes=z,X}function S_(v,b,z,Q){if(typeof v.id!=="string")G('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof v.id);var X=i4(K0,v,Q,b|f1);return X.elementType=m,X.lanes=z,X.stateNode={effectDuration:0,passiveEffectDuration:0},X}function g_(v,b,z,Q){var X=i4(o,v,Q,b);return X.elementType=y,X.lanes=z,X}function u_(v,b,z,Q){var X=i4(c0,v,Q,b);return X.elementType=s,X.lanes=z,X}function u9(v,b,z,Q){var X=i4(S0,v,Q,b);X.elementType=z0,X.lanes=z;var Z={isHidden:!1};return X.stateNode=Z,X}function fY(v,b,z){var Q=i4(I,v,null,b);return Q.lanes=z,Q}function m_(){var v=i4(V,null,null,h0);return v.elementType="DELETED",v}function d_(v){var b=i4(z1,null,null,h0);return b.stateNode=v,b}function TY(v,b,z){var Q=v.children!==null?v.children:[],X=i4(R,Q,v.key,b);return X.lanes=z,X.stateNode={containerInfo:v.containerInfo,pendingChildren:null,implementation:v.implementation},X}function m9(v,b){if(v===null)v=i4(E,null,null,h0);return v.tag=b.tag,v.key=b.key,v.elementType=b.elementType,v.type=b.type,v.stateNode=b.stateNode,v.return=b.return,v.child=b.child,v.sibling=b.sibling,v.index=b.index,v.ref=b.ref,v.pendingProps=b.pendingProps,v.memoizedProps=b.memoizedProps,v.updateQueue=b.updateQueue,v.memoizedState=b.memoizedState,v.dependencies=b.dependencies,v.mode=b.mode,v.flags=b.flags,v.subtreeFlags=b.subtreeFlags,v.deletions=b.deletions,v.lanes=b.lanes,v.childLanes=b.childLanes,v.alternate=b.alternate,v.actualDuration=b.actualDuration,v.actualStartTime=b.actualStartTime,v.selfBaseDuration=b.selfBaseDuration,v.treeBaseDuration=b.treeBaseDuration,v._debugSource=b._debugSource,v._debugOwner=b._debugOwner,v._debugNeedsRemount=b._debugNeedsRemount,v._debugHookTypes=b._debugHookTypes,v}function a_(v,b,z,Q,X){this.tag=b,this.containerInfo=v,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=KJ,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=l6,this.eventTimes=CZ(i),this.expirationTimes=CZ(t1),this.pendingLanes=i,this.suspendedLanes=i,this.pingedLanes=i,this.expiredLanes=i,this.mutableReadLanes=i,this.finishedLanes=i,this.entangledLanes=i,this.entanglements=CZ(i),this.identifierPrefix=Q,this.onRecoverableError=X,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;var Z=this.pendingUpdatersLaneMap=[];for(var J=0;J<$Z;J++)Z.push(new Set)}switch(b){case JQ:this._debugRootType=z?"hydrateRoot()":"createRoot()";break;case h7:this._debugRootType=z?"hydrate()":"render()";break}}function d9(v,b,z,Q,X,Z,J,Y,$,q){var O=new a_(v,b,z,Y,$),k=h_(b,Z);O.current=k,k.stateNode=O;{var M={element:Q,isDehydrated:z,cache:null,transitions:null,pendingSuspenseBoundaries:null};k.memoizedState=M}return yJ(k),O}var EY="18.3.1";function c_(v,b,z){var Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return W6(Q),{$$typeof:m1,key:Q==null?null:""+Q,children:v,containerInfo:b,implementation:z}}var CY,hY;CY=!1,hY={};function a9(v){if(!v)return l4;var b=nv(v),z=PA(b);if(b.tag===P){var Q=b.type;if(h5(Q))return UK(b,Q,z)}return z}function y_(v,b){{var z=nv(v);if(z===void 0)if(typeof v.render==="function")throw Error("Unable to find node on an unmounted component.");else{var Q=Object.keys(v).join(",");throw Error("Argument appears to not be a ReactComponent. Keys: "+Q)}var X=SG(z);if(X===null)return null;if(X.mode&N6){var Z=t0(z)||"Component";if(!hY[Z]){hY[Z]=!0;var J=K4;try{if(q6(X),z.mode&N6)G("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",b,b,Z);else G("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",b,b,Z)}finally{if(J)q6(J);else j6()}}}return X.stateNode}}function c9(v,b,z,Q,X,Z,J,Y){var $=!1,q=null;return d9(v,b,$,q,z,Q,X,Z,J)}function y9(v,b,z,Q,X,Z,J,Y,$,q){var O=!0,k=d9(z,Q,O,v,X,Z,J,Y,$);k.context=a9(null);var M=k.current,h=w4(),S=x7(M),g=Y7(h,S);return g.callback=b!==void 0&&b!==null?b:null,u7(M,g,S),rW(k,S,h),k}function g3(v,b,z,Q){UO(b,v);var X=b.current,Z=w4(),J=x7(X);EO(J);var Y=a9(z);if(b.context===null)b.context=Y;else b.pendingContext=Y;if(e7&&K4!==null&&!CY)CY=!0,G(`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.
140
-
141
- Check the render method of %s.`,t0(K4)||"Unknown");var $=Y7(Z,J);if($.payload={element:v},Q=Q===void 0?null:Q,Q!==null){if(typeof Q!=="function")G("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Q);$.callback=Q}var q=u7(X,$,J);if(q!==null)d6(q,X,J,Z),_Q(q,X,J);return J}function UX(v){var b=v.current;if(!b.child)return null;switch(b.child.tag){case V:return YJ(b.child.stateNode);default:return b.child.stateNode}}function j_(v){switch(v.tag){case T:{var b=v.stateNode;if(fz(b)){var z=cO(b);eW(b,z)}break}case o:{U7(function(){var X=C4(v,j0);if(X!==null){var Z=w4();d6(X,v,j0,Z)}});var Q=j0;SY(v,Q);break}}}function j9(v,b){var z=v.memoizedState;if(z!==null&&z.dehydrated!==null)z.retryLane=iO(z.retryLane,b)}function SY(v,b){j9(v,b);var z=v.alternate;if(z)j9(z,b)}function o_(v){if(v.tag!==o)return;var b=_8,z=C4(v,b);if(z!==null){var Q=w4();d6(z,v,b,Q)}SY(v,b)}function x_(v){if(v.tag!==o)return;var b=x7(v),z=C4(v,b);if(z!==null){var Q=w4();d6(z,v,b,Q)}SY(v,b)}function o9(v){var b=QO(v);if(b===null)return null;return b.stateNode}var x9=function(v){return null};function l_(v){return x9(v)}var l9=function(v){return!1};function i_(v){return l9(v)}var i9=null,p9=null,r9=null,n9=null,t9=null,s9=null,e9=null,vq=null,bq=null;{var zq=function(v,b,z){var Q=b[z],X=N1(v)?v.slice():e0({},v);if(z+1===b.length){if(N1(X))X.splice(Q,1);else delete X[Q];return X}return X[Q]=zq(v[Q],b,z+1),X},Qq=function(v,b){return zq(v,b,0)},Xq=function(v,b,z,Q){var X=b[Q],Z=N1(v)?v.slice():e0({},v);if(Q+1===b.length){var J=z[Q];if(Z[J]=Z[X],N1(Z))Z.splice(X,1);else delete Z[X]}else Z[X]=Xq(v[X],b,z,Q+1);return Z},Zq=function(v,b,z){if(b.length!==z.length){N("copyWithRename() expects paths of the same length");return}else for(var Q=0;Q<z.length-1;Q++)if(b[Q]!==z[Q]){N("copyWithRename() expects paths to be the same except for the deepest key");return}return Xq(v,b,z,0)},Jq=function(v,b,z,Q){if(z>=b.length)return Q;var X=b[z],Z=N1(v)?v.slice():e0({},v);return Z[X]=Jq(v[X],b,z+1,Q),Z},Hq=function(v,b,z){return Jq(v,b,0,z)},gY=function(v,b){var z=v.memoizedState;while(z!==null&&b>0)z=z.next,b--;return z};i9=function(v,b,z,Q){var X=gY(v,b);if(X!==null){var Z=Hq(X.memoizedState,z,Q);X.memoizedState=Z,X.baseState=Z,v.memoizedProps=e0({},v.memoizedProps);var J=C4(v,j0);if(J!==null)d6(J,v,j0,t1)}},p9=function(v,b,z){var Q=gY(v,b);if(Q!==null){var X=Qq(Q.memoizedState,z);Q.memoizedState=X,Q.baseState=X,v.memoizedProps=e0({},v.memoizedProps);var Z=C4(v,j0);if(Z!==null)d6(Z,v,j0,t1)}},r9=function(v,b,z,Q){var X=gY(v,b);if(X!==null){var Z=Zq(X.memoizedState,z,Q);X.memoizedState=Z,X.baseState=Z,v.memoizedProps=e0({},v.memoizedProps);var J=C4(v,j0);if(J!==null)d6(J,v,j0,t1)}},n9=function(v,b,z){if(v.pendingProps=Hq(v.memoizedProps,b,z),v.alternate)v.alternate.pendingProps=v.pendingProps;var Q=C4(v,j0);if(Q!==null)d6(Q,v,j0,t1)},t9=function(v,b){if(v.pendingProps=Qq(v.memoizedProps,b),v.alternate)v.alternate.pendingProps=v.pendingProps;var z=C4(v,j0);if(z!==null)d6(z,v,j0,t1)},s9=function(v,b,z){if(v.pendingProps=Zq(v.memoizedProps,b,z),v.alternate)v.alternate.pendingProps=v.pendingProps;var Q=C4(v,j0);if(Q!==null)d6(Q,v,j0,t1)},e9=function(v){var b=C4(v,j0);if(b!==null)d6(b,v,j0,t1)},vq=function(v){x9=v},bq=function(v){l9=v}}function p_(v){var b=SG(v);if(b===null)return null;return b.stateNode}function r_(v){return null}function n_(){return K4}function t_(v){var b=v.findFiberByHostInstance,z=H.ReactCurrentDispatcher;return KO({bundleType:v.bundleType,version:v.version,rendererPackageName:v.rendererPackageName,rendererConfig:v.rendererConfig,overrideHookState:i9,overrideHookStateDeletePath:p9,overrideHookStateRenamePath:r9,overrideProps:n9,overridePropsDeletePath:t9,overridePropsRenamePath:s9,setErrorHandler:vq,setSuspenseHandler:bq,scheduleUpdate:e9,currentDispatcherRef:z,findHostInstanceByFiber:p_,findFiberByHostInstance:b||r_,findHostInstancesForRefresh:I_,scheduleRefresh:k_,scheduleRoot:w_,setRefreshHandler:M_,getCurrentFiber:n_,reconcilerVersion:EY})}var Yq=typeof reportError==="function"?reportError:function(v){console.error(v)};function uY(v){this._internalRoot=v}qX.prototype.render=uY.prototype.render=function(v){var b=this._internalRoot;if(b===null)throw Error("Cannot update an unmounted root.");{if(typeof arguments[1]==="function")G("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");else if(BX(arguments[1]))G("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.");else if(typeof arguments[1]<"u")G("You passed a second argument to root.render(...) but it only accepts one argument.");var z=b.containerInfo;if(z.nodeType!==w6){var Q=o9(b.current);if(Q){if(Q.parentNode!==z)G("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}}g3(v,b,null,null)},qX.prototype.unmount=uY.prototype.unmount=function(){if(typeof arguments[0]==="function")G("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var v=this._internalRoot;if(v!==null){this._internalRoot=null;var b=v.containerInfo;if(W9())G("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.");U7(function(){g3(null,v,null,null)}),JK(b)}};function s_(v,b){if(!BX(v))throw Error("createRoot(...): Target container is not a DOM element.");Gq(v);var z=!1,Q=!1,X="",Z=Yq,J=null;if(b!==null&&b!==void 0){if(b.hydrate)N("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.");else if(typeof b==="object"&&b!==null&&b.$$typeof===k1)G(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
142
-
143
- let root = createRoot(domContainer);
144
- root.render(<App />);`);if(b.unstable_strictMode===!0)z=!0;if(b.identifierPrefix!==void 0)X=b.identifierPrefix;if(b.onRecoverableError!==void 0)Z=b.onRecoverableError;if(b.transitionCallbacks!==void 0)J=b.transitionCallbacks}var Y=c9(v,JQ,null,z,Q,X,Z);ez(Y.current,v);var $=v.nodeType===w6?v.parentNode:v;return y8($),new uY(Y)}function qX(v){this._internalRoot=v}function e_(v){if(v)$L(v)}qX.prototype.unstable_scheduleHydration=e_;function vF(v,b,z){if(!BX(v))throw Error("hydrateRoot(...): Target container is not a DOM element.");if(Gq(v),b===void 0)G("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Q=z!=null?z:null,X=z!=null&&z.hydratedSources||null,Z=!1,J=!1,Y="",$=Yq;if(z!==null&&z!==void 0){if(z.unstable_strictMode===!0)Z=!0;if(z.identifierPrefix!==void 0)Y=z.identifierPrefix;if(z.onRecoverableError!==void 0)$=z.onRecoverableError}var q=y9(b,null,v,JQ,Q,Z,J,Y,$);if(ez(q.current,v),y8(v),X)for(var O=0;O<X.length;O++){var k=X[O];vP(q,k)}return new qX(q)}function BX(v){return!!(v&&(v.nodeType===T4||v.nodeType===r5||v.nodeType===yX||!u0))}function u3(v){return!!(v&&(v.nodeType===T4||v.nodeType===r5||v.nodeType===yX||v.nodeType===w6&&v.nodeValue===" react-mount-point-unstable "))}function Gq(v){{if(v.nodeType===T4&&v.tagName&&v.tagName.toUpperCase()==="BODY")G("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app.");if(e8(v))if(v._reactRootContainer)G("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.");else G("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.")}}var bF=H.ReactCurrentOwner,$q;$q=function(v){if(v._reactRootContainer&&v.nodeType!==w6){var b=o9(v._reactRootContainer.current);if(b){if(b.parentNode!==v)G("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}}var z=!!v._reactRootContainer,Q=mY(v),X=!!(Q&&E7(Q));if(X&&!z)G("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render.");if(v.nodeType===T4&&v.tagName&&v.tagName.toUpperCase()==="BODY")G("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function mY(v){if(!v)return null;if(v.nodeType===r5)return v.documentElement;else return v.firstChild}function Kq(){}function zF(v,b,z,Q,X){if(X){if(typeof Q==="function"){var Z=Q;Q=function(){var M=UX(J);Z.call(M)}}var J=y9(b,Q,v,h7,null,!1,!1,"",Kq);v._reactRootContainer=J,ez(J.current,v);var Y=v.nodeType===w6?v.parentNode:v;return y8(Y),U7(),J}else{var $;while($=v.lastChild)v.removeChild($);if(typeof Q==="function"){var q=Q;Q=function(){var M=UX(O);q.call(M)}}var O=c9(v,h7,null,!1,!1,"",Kq);v._reactRootContainer=O,ez(O.current,v);var k=v.nodeType===w6?v.parentNode:v;return y8(k),U7(function(){g3(b,O,z,Q)}),O}}function QF(v,b){if(v!==null&&typeof v!=="function")G("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,v)}function OX(v,b,z,Q,X){$q(z),QF(X===void 0?null:X,"render");var Z=z._reactRootContainer,J;if(!Z)J=zF(z,b,v,X,Q);else{if(J=Z,typeof X==="function"){var Y=X;X=function(){var $=UX(J);Y.call($)}}g3(b,J,v,X)}return UX(J)}var Uq=!1;function XF(v){{if(!Uq)Uq=!0,G("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node");var b=bF.current;if(b!==null&&b.stateNode!==null){var z=b.stateNode._warnedAboutRefsInRender;if(!z)G("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",q1(b.type)||"A component");b.stateNode._warnedAboutRefsInRender=!0}}if(v==null)return null;if(v.nodeType===T4)return v;return y_(v,"findDOMNode")}function ZF(v,b,z){if(G("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!u3(b))throw Error("Target container is not a DOM element.");{var Q=e8(b)&&b._reactRootContainer===void 0;if(Q)G("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return OX(null,v,b,!0,z)}function JF(v,b,z){if(G("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!u3(b))throw Error("Target container is not a DOM element.");{var Q=e8(b)&&b._reactRootContainer===void 0;if(Q)G("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return OX(null,v,b,!1,z)}function HF(v,b,z,Q){if(G("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!u3(z))throw Error("Target container is not a DOM element.");if(v==null||!nB(v))throw Error("parentComponent must be a valid React Component");return OX(v,b,z,!1,Q)}var qq=!1;function YF(v){if(!qq)qq=!0,G("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot");if(!u3(v))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var b=e8(v)&&v._reactRootContainer===void 0;if(b)G("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(v._reactRootContainer){{var z=mY(v),Q=z&&!E7(z);if(Q)G("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return U7(function(){OX(null,null,v,!1,function(){v._reactRootContainer=null,JK(v)})}),!0}else{{var X=mY(v),Z=!!(X&&E7(X)),J=v.nodeType===T4&&u3(v.parentNode)&&!!v.parentNode._reactRootContainer;if(Z)G("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",J?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}if(vL(j_),zL(o_),QL(x_),XL(G5),ZL(tO),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")G("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");dB(JN),yB(OY,v_,U7);function GF(v,b){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!BX(b))throw Error("Target container is not a DOM element.");return c_(v,b,null,z)}function $F(v,b,z,Q){return HF(v,b,z,Q)}var dY={usingClientEntryPoint:!1,Events:[E7,Ub,vQ,RG,MG,OY]};function KF(v,b){if(!dY.usingClientEntryPoint)G('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return s_(v,b)}function UF(v,b,z){if(!dY.usingClientEntryPoint)G('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return vF(v,b,z)}function qF(v){if(W9())G("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.");return U7(v)}var BF=t_({findFiberByHostInstance:Lv,bundleType:1,version:EY,rendererPackageName:"react-dom"});if(!BF&&p1&&window.top===window.self){if(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1){var Bq=window.location.protocol;if(/^(https?|file):$/.test(Bq))console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(Bq==="file:"?`
145
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}}if(RF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dY,RF.createPortal=GF,RF.createRoot=KF,RF.findDOMNode=XF,RF.flushSync=qF,RF.hydrate=ZF,RF.hydrateRoot=UF,RF.render=JF,RF.unmountComponentAtNode=YF,RF.unstable_batchedUpdates=OY,RF.unstable_renderSubtreeIntoContainer=$F,RF.version=EY,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Pq=Ev((wk,Aq)=>{var MF=Q0(Nq());Aq.exports=MF});var Wq=Ev((kF)=>{var mb=Q0(Pq());ub=mb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kF.createRoot=function(H,U){ub.usingClientEntryPoint=!0;try{return mb.createRoot(H,U)}finally{ub.usingClientEntryPoint=!1}},kF.hydrateRoot=function(H,U,B){ub.usingClientEntryPoint=!0;try{return mb.hydrateRoot(H,U,B)}finally{ub.usingClientEntryPoint=!1}};var ub});var I1=Ev((wF)=>{var oY=Q0(Z6());(function(){var H=Symbol.for("react.element"),U=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),F=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),l=Symbol.iterator,n="@@iterator";function b0(A){if(A===null||typeof A!=="object")return null;var m=l&&A[l]||A[n];if(typeof m==="function")return m;return null}var t=oY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function a(A){{for(var m=arguments.length,x=Array(m>1?m-1:0),L=1;L<m;L++)x[L-1]=arguments[L];K0("error",A,x)}}function K0(A,m,x){{var L=t.ReactDebugCurrentFrame,w=L.getStackAddendum();if(w!=="")m+="%s",x=x.concat([w]);var y=x.map(function(s){return String(s)});y.unshift("Warning: "+m),Function.prototype.apply.call(console[A],console,y)}}var o=!1,p=!1,X0=!1,P0=!1,n0=!1,z1;z1=Symbol.for("react.module.reference");function c0(A){if(typeof A==="string"||typeof A==="function")return!0;if(A===B||A===G||n0||A===N||A===E||A===T||P0||A===I||o||p||X0)return!0;if(typeof A==="object"&&A!==null){if(A.$$typeof===V||A.$$typeof===R||A.$$typeof===_||A.$$typeof===F||A.$$typeof===P||A.$$typeof===z1||A.getModuleId!==void 0)return!0}return!1}function W0(A,m,x){var L=A.displayName;if(L)return L;var w=m.displayName||m.name||"";return w!==""?x+"("+w+")":x}function S0(A){return A.displayName||"Context"}function e(A){if(A==null)return null;if(typeof A.tag==="number")a("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof A==="function")return A.displayName||A.name||null;if(typeof A==="string")return A;switch(A){case B:return"Fragment";case U:return"Portal";case G:return"Profiler";case N:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList"}if(typeof A==="object")switch(A.$$typeof){case F:var m=A;return S0(m)+".Consumer";case _:var x=A;return S0(x._context)+".Provider";case P:return W0(A,A.render,"ForwardRef");case R:var L=A.displayName||null;if(L!==null)return L;return e(A.type)||"Memo";case V:{var w=A,y=w._payload,s=w._init;try{return e(s(y))}catch(Y0){return null}}}return null}var Z0=Object.assign,k0=0,L0,v1,R6,s1,a1,u0,Q1;function R1(){}R1.__reactDisabledLog=!0;function K6(){{if(k0===0){L0=console.log,v1=console.info,R6=console.warn,s1=console.error,a1=console.group,u0=console.groupCollapsed,Q1=console.groupEnd;var A={configurable:!0,enumerable:!0,value:R1,writable:!0};Object.defineProperties(console,{info:A,log:A,warn:A,error:A,group:A,groupCollapsed:A,groupEnd:A})}k0++}}function e1(){{if(k0--,k0===0){var A={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z0({},A,{value:L0}),info:Z0({},A,{value:v1}),warn:Z0({},A,{value:R6}),error:Z0({},A,{value:s1}),group:Z0({},A,{value:a1}),groupCollapsed:Z0({},A,{value:u0}),groupEnd:Z0({},A,{value:Q1})})}if(k0<0)a("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var i1=t.ReactCurrentDispatcher,U6;function h1(A,m,x){{if(U6===void 0)try{throw Error()}catch(w){var L=w.stack.trim().match(/\n( *(at )?)/);U6=L&&L[1]||""}return`
146
- `+U6+A}}var g1=!1,v6;{var D6=typeof WeakMap==="function"?WeakMap:Map;v6=new D6}function p1(A,m){if(!A||g1)return"";{var x=v6.get(A);if(x!==void 0)return x}var L;g1=!0;var w=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=i1.current,i1.current=null,K6();try{if(m){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(w1){L=w1}Reflect.construct(A,[],s)}else{try{s.call()}catch(w1){L=w1}A.call(s.prototype)}}else{try{throw Error()}catch(w1){L=w1}A()}}catch(w1){if(w1&&L&&typeof w1.stack==="string"){var Y0=w1.stack.split(`
147
- `),w0=L.stack.split(`
148
- `),A0=Y0.length-1,j=w0.length-1;while(A0>=1&&j>=0&&Y0[A0]!==w0[j])j--;for(;A0>=1&&j>=0;A0--,j--)if(Y0[A0]!==w0[j]){if(A0!==1||j!==1)do if(A0--,j--,j<0||Y0[A0]!==w0[j]){var z0=`
149
- `+Y0[A0].replace(" at new "," at ");if(A.displayName&&z0.includes("<anonymous>"))z0=z0.replace("<anonymous>",A.displayName);if(typeof A==="function")v6.set(A,z0);return z0}while(A0>=1&&j>=0);break}}}finally{g1=!1,i1.current=y,e1(),Error.prepareStackTrace=w}var V0=A?A.displayName||A.name:"",H1=V0?h1(V0):"";if(typeof A==="function")v6.set(A,H1);return H1}function f6(A,m,x){return p1(A,!1)}function T6(A){var m=A.prototype;return!!(m&&m.isReactComponent)}function u1(A,m,x){if(A==null)return"";if(typeof A==="function")return p1(A,T6(A));if(typeof A==="string")return h1(A);switch(A){case E:return h1("Suspense");case T:return h1("SuspenseList")}if(typeof A==="object")switch(A.$$typeof){case P:return f6(A.render);case R:return u1(A.type,m,x);case V:{var L=A,w=L._payload,y=L._init;try{return u1(y(w),m,x)}catch(s){}}}return""}var l0=Object.prototype.hasOwnProperty,M6={},W6=t.ReactDebugCurrentFrame;function b6(A){if(A){var m=A._owner,x=u1(A.type,A._source,m?m.type:null);W6.setExtraStackFrame(x)}else W6.setExtraStackFrame(null)}function Y6(A,m,x,L,w){{var y=Function.call.bind(l0);for(var s in A)if(y(A,s)){var Y0=void 0;try{if(typeof A[s]!=="function"){var w0=Error((L||"React class")+": "+x+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w0.name="Invariant Violation",w0}Y0=A[s](m,s,L,x,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(A0){Y0=A0}if(Y0&&!(Y0 instanceof Error))b6(w),a("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",x,s,typeof Y0),b6(null);if(Y0 instanceof Error&&!(Y0.message in M6))M6[Y0.message]=!0,b6(w),a("Failed %s type: %s",x,Y0.message),b6(null)}}}var X5=Array.isArray;function c1(A){return X5(A)}function p6(A){{var m=typeof Symbol==="function"&&Symbol.toStringTag,x=m&&A[Symbol.toStringTag]||A.constructor.name||"Object";return x}}function y1(A){try{return r6(A),!1}catch(m){return!0}}function r6(A){return""+A}function r1(A){if(y1(A))return a("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",p6(A)),r6(A)}var z6=t.ReactCurrentOwner,c6={key:!0,ref:!0,__self:!0,__source:!0},G4,O6,k6;k6={};function J0(A){if(l0.call(A,"ref")){var m=Object.getOwnPropertyDescriptor(A,"ref").get;if(m&&m.isReactWarning)return!1}return A.ref!==void 0}function f0(A){if(l0.call(A,"key")){var m=Object.getOwnPropertyDescriptor(A,"key").get;if(m&&m.isReactWarning)return!1}return A.key!==void 0}function C0(A,m){if(typeof A.ref==="string"&&z6.current&&m&&z6.current.stateNode!==m){var x=e(z6.current.type);if(!k6[x])a('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',e(z6.current.type),A.ref),k6[x]=!0}}function K1(A,m){{var x=function(){if(!G4)G4=!0,a("%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://reactjs.org/link/special-props)",m)};x.isReactWarning=!0,Object.defineProperty(A,"key",{get:x,configurable:!0})}}function M1(A,m){{var x=function(){if(!O6)O6=!0,a("%s: `ref` 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://reactjs.org/link/special-props)",m)};x.isReactWarning=!0,Object.defineProperty(A,"ref",{get:x,configurable:!0})}}var G6=function(A,m,x,L,w,y,s){var Y0={$$typeof:H,type:A,key:m,ref:x,props:s,_owner:y};if(Y0._store={},Object.defineProperty(Y0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Y0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(Y0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.freeze)Object.freeze(Y0.props),Object.freeze(Y0);return Y0};function S1(A,m,x,L,w){{var y,s={},Y0=null,w0=null;if(x!==void 0)r1(x),Y0=""+x;if(f0(m))r1(m.key),Y0=""+m.key;if(J0(m))w0=m.ref,C0(m,w);for(y in m)if(l0.call(m,y)&&!c6.hasOwnProperty(y))s[y]=m[y];if(A&&A.defaultProps){var A0=A.defaultProps;for(y in A0)if(s[y]===void 0)s[y]=A0[y]}if(Y0||w0){var j=typeof A==="function"?A.displayName||A.name||"Unknown":A;if(Y0)K1(s,j);if(w0)M1(s,j)}return G6(A,Y0,w0,w,L,z6.current,s)}}var{ReactCurrentOwner:_6,ReactDebugCurrentFrame:r0}=t;function i0(A){if(A){var m=A._owner,x=u1(A.type,A._source,m?m.type:null);r0.setExtraStackFrame(x)}else r0.setExtraStackFrame(null)}var P4=!1;function y6(A){return typeof A==="object"&&A!==null&&A.$$typeof===H}function W4(){{if(_6.current){var A=e(_6.current.type);if(A)return`
150
-
151
- Check the render method of \``+A+"`."}return""}}function w5(A){{if(A!==void 0){var m=A.fileName.replace(/^.*[\\\/]/,""),x=A.lineNumber;return`
152
-
153
- Check your code at `+m+":"+x+"."}return""}}var Z5={};function I5(A){{var m=W4();if(!m){var x=typeof A==="string"?A:A.displayName||A.name;if(x)m=`
154
-
155
- Check the top-level render call using <`+x+">."}return m}}function r4(A,m){{if(!A._store||A._store.validated||A.key!=null)return;A._store.validated=!0;var x=I5(m);if(Z5[x])return;Z5[x]=!0;var L="";if(A&&A._owner&&A._owner!==_6.current)L=" It was passed a child from "+e(A._owner.type)+".";i0(A),a('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',x,L),i0(null)}}function $4(A,m){{if(typeof A!=="object")return;if(c1(A))for(var x=0;x<A.length;x++){var L=A[x];if(y6(L))r4(L,m)}else if(y6(A)){if(A._store)A._store.validated=!0}else if(A){var w=b0(A);if(typeof w==="function"){if(w!==A.entries){var y=w.call(A),s;while(!(s=y.next()).done)if(y6(s.value))r4(s.value,m)}}}}}function J5(A){{var m=A.type;if(m===null||m===void 0||typeof m==="string")return;var x;if(typeof m==="function")x=m.propTypes;else if(typeof m==="object"&&(m.$$typeof===P||m.$$typeof===R))x=m.propTypes;else return;if(x){var L=e(m);Y6(x,A.props,"prop",L,A)}else if(m.PropTypes!==void 0&&!P4){P4=!0;var w=e(m);a("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w||"Unknown")}if(typeof m.getDefaultProps==="function"&&!m.getDefaultProps.isReactClassApproved)a("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function J1(A){{var m=Object.keys(A.props);for(var x=0;x<m.length;x++){var L=m[x];if(L!=="children"&&L!=="key"){i0(A),a("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),i0(null);break}}if(A.ref!==null)i0(A),a("Invalid attribute `ref` supplied to `React.Fragment`."),i0(null)}}var k1={};function m1(A,m,x,L,w,y){{var s=c0(A);if(!s){var Y0="";if(A===void 0||typeof A==="object"&&A!==null&&Object.keys(A).length===0)Y0+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var w0=w5(w);if(w0)Y0+=w0;else Y0+=W4();var A0;if(A===null)A0="null";else if(c1(A))A0="array";else if(A!==void 0&&A.$$typeof===H)A0="<"+(e(A.type)||"Unknown")+" />",Y0=" Did you accidentally export a JSX literal instead of a component?";else A0=typeof A;a("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A0,Y0)}var j=S1(A,m,x,w,y);if(j==null)return j;if(s){var z0=m.children;if(z0!==void 0)if(L)if(c1(z0)){for(var V0=0;V0<z0.length;V0++)$4(z0[V0],A);if(Object.freeze)Object.freeze(z0)}else a("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 $4(z0,A)}if(l0.call(m,"key")){var H1=e(A),w1=Object.keys(m).filter(function(n1){return n1!=="key"}),_4=w1.length>0?"{key: someKey, "+w1.join(": ..., ")+": ...}":"{key: someKey}";if(!k1[H1+_4]){var d4=w1.length>0?"{"+w1.join(": ..., ")+": ...}":"{}";a(`A props object containing a "key" prop is being spread into JSX:
156
- let props = %s;
157
- <%s {...props} />
158
- React keys must be passed directly to JSX without using spread:
159
- let props = %s;
160
- <%s key={someKey} {...props} />`,_4,H1,d4,H1),k1[H1+_4]=!0}}if(A===B)J1(j);else J5(j);return j}}var B1=m1;wF.Fragment=B,wF.jsxDEV=B1})()});var l1=Ev((OR)=>{var rY=Q0(Z6());(function(){var H=Symbol.for("react.element"),U=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),F=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),l=Symbol.iterator,n="@@iterator";function b0(L){if(L===null||typeof L!=="object")return null;var w=l&&L[l]||L[n];if(typeof w==="function")return w;return null}var t=rY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function a(L){{for(var w=arguments.length,y=Array(w>1?w-1:0),s=1;s<w;s++)y[s-1]=arguments[s];K0("error",L,y)}}function K0(L,w,y){{var s=t.ReactDebugCurrentFrame,Y0=s.getStackAddendum();if(Y0!=="")w+="%s",y=y.concat([Y0]);var w0=y.map(function(A0){return String(A0)});w0.unshift("Warning: "+w),Function.prototype.apply.call(console[L],console,w0)}}var o=!1,p=!1,X0=!1,P0=!1,n0=!1,z1;z1=Symbol.for("react.module.reference");function c0(L){if(typeof L==="string"||typeof L==="function")return!0;if(L===B||L===G||n0||L===N||L===E||L===T||P0||L===I||o||p||X0)return!0;if(typeof L==="object"&&L!==null){if(L.$$typeof===V||L.$$typeof===R||L.$$typeof===_||L.$$typeof===F||L.$$typeof===P||L.$$typeof===z1||L.getModuleId!==void 0)return!0}return!1}function W0(L,w,y){var s=L.displayName;if(s)return s;var Y0=w.displayName||w.name||"";return Y0!==""?y+"("+Y0+")":y}function S0(L){return L.displayName||"Context"}function e(L){if(L==null)return null;if(typeof L.tag==="number")a("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof L==="function")return L.displayName||L.name||null;if(typeof L==="string")return L;switch(L){case B:return"Fragment";case U:return"Portal";case G:return"Profiler";case N:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList"}if(typeof L==="object")switch(L.$$typeof){case F:var w=L;return S0(w)+".Consumer";case _:var y=L;return S0(y._context)+".Provider";case P:return W0(L,L.render,"ForwardRef");case R:var s=L.displayName||null;if(s!==null)return s;return e(L.type)||"Memo";case V:{var Y0=L,w0=Y0._payload,A0=Y0._init;try{return e(A0(w0))}catch(j){return null}}}return null}var Z0=Object.assign,k0=0,L0,v1,R6,s1,a1,u0,Q1;function R1(){}R1.__reactDisabledLog=!0;function K6(){{if(k0===0){L0=console.log,v1=console.info,R6=console.warn,s1=console.error,a1=console.group,u0=console.groupCollapsed,Q1=console.groupEnd;var L={configurable:!0,enumerable:!0,value:R1,writable:!0};Object.defineProperties(console,{info:L,log:L,warn:L,error:L,group:L,groupCollapsed:L,groupEnd:L})}k0++}}function e1(){{if(k0--,k0===0){var L={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z0({},L,{value:L0}),info:Z0({},L,{value:v1}),warn:Z0({},L,{value:R6}),error:Z0({},L,{value:s1}),group:Z0({},L,{value:a1}),groupCollapsed:Z0({},L,{value:u0}),groupEnd:Z0({},L,{value:Q1})})}if(k0<0)a("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var i1=t.ReactCurrentDispatcher,U6;function h1(L,w,y){{if(U6===void 0)try{throw Error()}catch(Y0){var s=Y0.stack.trim().match(/\n( *(at )?)/);U6=s&&s[1]||""}return`
161
- `+U6+L}}var g1=!1,v6;{var D6=typeof WeakMap==="function"?WeakMap:Map;v6=new D6}function p1(L,w){if(!L||g1)return"";{var y=v6.get(L);if(y!==void 0)return y}var s;g1=!0;var Y0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w0;w0=i1.current,i1.current=null,K6();try{if(w){var A0=function(){throw Error()};if(Object.defineProperty(A0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(A0,[])}catch(n1){s=n1}Reflect.construct(L,[],A0)}else{try{A0.call()}catch(n1){s=n1}L.call(A0.prototype)}}else{try{throw Error()}catch(n1){s=n1}L()}}catch(n1){if(n1&&s&&typeof n1.stack==="string"){var j=n1.stack.split(`
162
- `),z0=s.stack.split(`
163
- `),V0=j.length-1,H1=z0.length-1;while(V0>=1&&H1>=0&&j[V0]!==z0[H1])H1--;for(;V0>=1&&H1>=0;V0--,H1--)if(j[V0]!==z0[H1]){if(V0!==1||H1!==1)do if(V0--,H1--,H1<0||j[V0]!==z0[H1]){var w1=`
164
- `+j[V0].replace(" at new "," at ");if(L.displayName&&w1.includes("<anonymous>"))w1=w1.replace("<anonymous>",L.displayName);if(typeof L==="function")v6.set(L,w1);return w1}while(V0>=1&&H1>=0);break}}}finally{g1=!1,i1.current=w0,e1(),Error.prepareStackTrace=Y0}var _4=L?L.displayName||L.name:"",d4=_4?h1(_4):"";if(typeof L==="function")v6.set(L,d4);return d4}function f6(L,w,y){return p1(L,!1)}function T6(L){var w=L.prototype;return!!(w&&w.isReactComponent)}function u1(L,w,y){if(L==null)return"";if(typeof L==="function")return p1(L,T6(L));if(typeof L==="string")return h1(L);switch(L){case E:return h1("Suspense");case T:return h1("SuspenseList")}if(typeof L==="object")switch(L.$$typeof){case P:return f6(L.render);case R:return u1(L.type,w,y);case V:{var s=L,Y0=s._payload,w0=s._init;try{return u1(w0(Y0),w,y)}catch(A0){}}}return""}var l0=Object.prototype.hasOwnProperty,M6={},W6=t.ReactDebugCurrentFrame;function b6(L){if(L){var w=L._owner,y=u1(L.type,L._source,w?w.type:null);W6.setExtraStackFrame(y)}else W6.setExtraStackFrame(null)}function Y6(L,w,y,s,Y0){{var w0=Function.call.bind(l0);for(var A0 in L)if(w0(L,A0)){var j=void 0;try{if(typeof L[A0]!=="function"){var z0=Error((s||"React class")+": "+y+" type `"+A0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof L[A0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z0.name="Invariant Violation",z0}j=L[A0](w,A0,s,y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V0){j=V0}if(j&&!(j instanceof Error))b6(Y0),a("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",y,A0,typeof j),b6(null);if(j instanceof Error&&!(j.message in M6))M6[j.message]=!0,b6(Y0),a("Failed %s type: %s",y,j.message),b6(null)}}}var X5=Array.isArray;function c1(L){return X5(L)}function p6(L){{var w=typeof Symbol==="function"&&Symbol.toStringTag,y=w&&L[Symbol.toStringTag]||L.constructor.name||"Object";return y}}function y1(L){try{return r6(L),!1}catch(w){return!0}}function r6(L){return""+L}function r1(L){if(y1(L))return a("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",p6(L)),r6(L)}var z6=t.ReactCurrentOwner,c6={key:!0,ref:!0,__self:!0,__source:!0},G4,O6,k6;k6={};function J0(L){if(l0.call(L,"ref")){var w=Object.getOwnPropertyDescriptor(L,"ref").get;if(w&&w.isReactWarning)return!1}return L.ref!==void 0}function f0(L){if(l0.call(L,"key")){var w=Object.getOwnPropertyDescriptor(L,"key").get;if(w&&w.isReactWarning)return!1}return L.key!==void 0}function C0(L,w){if(typeof L.ref==="string"&&z6.current&&w&&z6.current.stateNode!==w){var y=e(z6.current.type);if(!k6[y])a('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',e(z6.current.type),L.ref),k6[y]=!0}}function K1(L,w){{var y=function(){if(!G4)G4=!0,a("%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://reactjs.org/link/special-props)",w)};y.isReactWarning=!0,Object.defineProperty(L,"key",{get:y,configurable:!0})}}function M1(L,w){{var y=function(){if(!O6)O6=!0,a("%s: `ref` 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://reactjs.org/link/special-props)",w)};y.isReactWarning=!0,Object.defineProperty(L,"ref",{get:y,configurable:!0})}}var G6=function(L,w,y,s,Y0,w0,A0){var j={$$typeof:H,type:L,key:w,ref:y,props:A0,_owner:w0};if(j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(j,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(j,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Y0}),Object.freeze)Object.freeze(j.props),Object.freeze(j);return j};function S1(L,w,y,s,Y0){{var w0,A0={},j=null,z0=null;if(y!==void 0)r1(y),j=""+y;if(f0(w))r1(w.key),j=""+w.key;if(J0(w))z0=w.ref,C0(w,Y0);for(w0 in w)if(l0.call(w,w0)&&!c6.hasOwnProperty(w0))A0[w0]=w[w0];if(L&&L.defaultProps){var V0=L.defaultProps;for(w0 in V0)if(A0[w0]===void 0)A0[w0]=V0[w0]}if(j||z0){var H1=typeof L==="function"?L.displayName||L.name||"Unknown":L;if(j)K1(A0,H1);if(z0)M1(A0,H1)}return G6(L,j,z0,Y0,s,z6.current,A0)}}var{ReactCurrentOwner:_6,ReactDebugCurrentFrame:r0}=t;function i0(L){if(L){var w=L._owner,y=u1(L.type,L._source,w?w.type:null);r0.setExtraStackFrame(y)}else r0.setExtraStackFrame(null)}var P4=!1;function y6(L){return typeof L==="object"&&L!==null&&L.$$typeof===H}function W4(){{if(_6.current){var L=e(_6.current.type);if(L)return`
165
-
166
- Check the render method of \``+L+"`."}return""}}function w5(L){{if(L!==void 0){var w=L.fileName.replace(/^.*[\\\/]/,""),y=L.lineNumber;return`
167
-
168
- Check your code at `+w+":"+y+"."}return""}}var Z5={};function I5(L){{var w=W4();if(!w){var y=typeof L==="string"?L:L.displayName||L.name;if(y)w=`
169
-
170
- Check the top-level render call using <`+y+">."}return w}}function r4(L,w){{if(!L._store||L._store.validated||L.key!=null)return;L._store.validated=!0;var y=I5(w);if(Z5[y])return;Z5[y]=!0;var s="";if(L&&L._owner&&L._owner!==_6.current)s=" It was passed a child from "+e(L._owner.type)+".";i0(L),a('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',y,s),i0(null)}}function $4(L,w){{if(typeof L!=="object")return;if(c1(L))for(var y=0;y<L.length;y++){var s=L[y];if(y6(s))r4(s,w)}else if(y6(L)){if(L._store)L._store.validated=!0}else if(L){var Y0=b0(L);if(typeof Y0==="function"){if(Y0!==L.entries){var w0=Y0.call(L),A0;while(!(A0=w0.next()).done)if(y6(A0.value))r4(A0.value,w)}}}}}function J5(L){{var w=L.type;if(w===null||w===void 0||typeof w==="string")return;var y;if(typeof w==="function")y=w.propTypes;else if(typeof w==="object"&&(w.$$typeof===P||w.$$typeof===R))y=w.propTypes;else return;if(y){var s=e(w);Y6(y,L.props,"prop",s,L)}else if(w.PropTypes!==void 0&&!P4){P4=!0;var Y0=e(w);a("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Y0||"Unknown")}if(typeof w.getDefaultProps==="function"&&!w.getDefaultProps.isReactClassApproved)a("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function J1(L){{var w=Object.keys(L.props);for(var y=0;y<w.length;y++){var s=w[y];if(s!=="children"&&s!=="key"){i0(L),a("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),i0(null);break}}if(L.ref!==null)i0(L),a("Invalid attribute `ref` supplied to `React.Fragment`."),i0(null)}}var k1={};function m1(L,w,y,s,Y0,w0){{var A0=c0(L);if(!A0){var j="";if(L===void 0||typeof L==="object"&&L!==null&&Object.keys(L).length===0)j+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var z0=w5(Y0);if(z0)j+=z0;else j+=W4();var V0;if(L===null)V0="null";else if(c1(L))V0="array";else if(L!==void 0&&L.$$typeof===H)V0="<"+(e(L.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?";else V0=typeof L;a("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",V0,j)}var H1=S1(L,w,y,Y0,w0);if(H1==null)return H1;if(A0){var w1=w.children;if(w1!==void 0)if(s)if(c1(w1)){for(var _4=0;_4<w1.length;_4++)$4(w1[_4],L);if(Object.freeze)Object.freeze(w1)}else a("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 $4(w1,L)}if(l0.call(w,"key")){var d4=e(L),n1=Object.keys(w).filter(function(V5){return V5!=="key"}),e0=n1.length>0?"{key: someKey, "+n1.join(": ..., ")+": ...}":"{key: someKey}";if(!k1[d4+e0]){var o5=n1.length>0?"{"+n1.join(": ..., ")+": ...}":"{}";a(`A props object containing a "key" prop is being spread into JSX:
171
- let props = %s;
172
- <%s {...props} />
173
- React keys must be passed directly to JSX without using spread:
174
- let props = %s;
175
- <%s key={someKey} {...props} />`,e0,d4,o5,d4),k1[d4+e0]=!0}}if(L===B)J1(H1);else J5(H1);return H1}}function B1(L,w,y){return m1(L,w,y,!0)}function A(L,w,y){return m1(L,w,y,!1)}var m=A,x=B1;OR.Fragment=B,OR.jsx=m,OR.jsxs=x})()});var A7=Q0(Z6(),1),nq=Q0(Wq(),1);var aY={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1};var hv=Q0(Z6(),1);function cY(H){let[U,B]=hv.useState([]),[N,G]=hv.useState(!0),_=hv.useCallback(async()=>{let V=await(await fetch("/api/agents")).json();B(V.agents||[]),G(!1)},[]);hv.useEffect(()=>{if(H)_()},[H,_]);let F=async(R)=>{await fetch("/api/agents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(R)}),await _()},P=async(R)=>{await fetch(`/api/agents/${R}`,{method:"DELETE"}),await _()},E=async(R)=>{let V=R.status==="running"?"stop":"start",I=await fetch(`/api/agents/${R.id}/${V}`,{method:"POST"}),l=await I.json();if(await _(),!I.ok&&l.error)return{error:l.error};return{}},T=U.filter((R)=>R.status==="running").length;return{agents:U,loading:N,runningCount:T,fetchAgents:_,createAgent:F,deleteAgent:P,toggleAgent:E}}var db=Q0(Z6(),1);function yY(H){let[U,B]=db.useState([]),N=db.useCallback(async()=>{let E=await(await fetch("/api/providers")).json();B(E.providers||[])},[]);db.useEffect(()=>{if(H)N()},[H,N]);let G=U.filter((P)=>P.hasKey);return{providers:U,configuredProviders:G,fetchProviders:N,saveKey:async(P,E)=>{let R=await(await fetch(`/api/keys/${P}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:E})})).json();if(!R.valid)return{success:!1,error:R.error||"API key is invalid"};let V=await fetch(`/api/keys/${P}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:E})});if(!V.ok)return{success:!1,error:(await V.json()).error||"Failed to save key"};return await N(),{success:!0}},deleteKey:async(P)=>{await fetch(`/api/keys/${P}`,{method:"DELETE"}),await N()}}}var ab=Q0(Z6(),1);function jY(){let[H,U]=ab.useState(null);ab.useEffect(()=>{fetch("/api/onboarding/status").then((N)=>N.json()).then((N)=>{U(N.completed||N.has_any_keys)}).catch(()=>U(!0))},[]);let B=ab.useCallback(async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),U(!0)},[]);return{isComplete:H,setIsComplete:U,complete:B}}var p7=Q0(I1(),1);function cb({message:H="Loading...",fullScreen:U=!1}){let B=p7.jsxDEV("div",{className:"flex items-center gap-3 text-[#666]",children:[p7.jsxDEV("svg",{className:"animate-spin h-5 w-5",viewBox:"0 0 24 24",children:[p7.jsxDEV("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"},void 0,!1,void 0,this),p7.jsxDEV("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p7.jsxDEV("span",{children:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(U)return p7.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center",children:B},void 0,!1,void 0,this);return p7.jsxDEV("div",{className:"flex items-center justify-center py-20",children:B},void 0,!1,void 0,this)}var xY=Q0(I1(),1);function NX({children:H,onClose:U}){return xY.jsxDEV("div",{className:"fixed inset-0 bg-black/70 flex items-center justify-center z-50",children:xY.jsxDEV("div",{className:"bg-[#111] rounded p-6 w-full max-w-md border border-[#1a1a1a]",children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var yb=Q0(Z6(),1),J4=Q0(I1(),1);function a3({value:H,options:U,onChange:B,placeholder:N="Select..."}){let[G,_]=yb.useState(!1),F=yb.useRef(null),P=U.find((E)=>E.value===H);return yb.useEffect(()=>{function E(T){if(F.current&&!F.current.contains(T.target))_(!1)}return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]),J4.jsxDEV("div",{ref:F,className:"relative",children:[J4.jsxDEV("button",{type:"button",onClick:()=>_(!G),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 text-left flex items-center justify-between focus:outline-none focus:border-[#f97316] text-[#e0e0e0] hover:border-[#333] transition",children:[J4.jsxDEV("span",{className:P?"text-[#e0e0e0]":"text-[#666]",children:P?J4.jsxDEV(J4.Fragment,{children:[P.label,P.recommended&&J4.jsxDEV("span",{className:"text-[#f97316] text-xs ml-2",children:"(Recommended)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):N},void 0,!1,void 0,this),J4.jsxDEV(IF,{isOpen:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G&&J4.jsxDEV("div",{className:"absolute z-50 w-full mt-1 bg-[#111] border border-[#222] rounded shadow-lg max-h-60 overflow-auto",children:U.map((E)=>J4.jsxDEV("button",{type:"button",onClick:()=>{B(E.value),_(!1)},className:`w-full px-3 py-2 text-left flex items-center justify-between hover:bg-[#1a1a1a] transition ${E.value===H?"bg-[#1a1a1a] text-[#f97316]":"text-[#e0e0e0]"}`,children:[J4.jsxDEV("span",{children:[E.label,E.recommended&&J4.jsxDEV("span",{className:"text-[#f97316] text-xs ml-2",children:"(Recommended)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E.value===H&&J4.jsxDEV("svg",{className:"w-4 h-4 text-[#f97316]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},E.value,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function IF({isOpen:H}){return J4.jsxDEV("svg",{className:`w-4 h-4 text-[#666] transition-transform ${H?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var J6=Q0(I1(),1);function r7({className:H="w-4 h-4"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Sv({className:H="w-5 h-5"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J6.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)}function AX({className:H="w-5 h-5"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J6.jsxDEV("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function PX({className:H="w-5 h-5"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function WX({className:H="w-5 h-5"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[J6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"},void 0,!1,void 0,this),J6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function c3({className:H="w-4 h-4"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function y3({className:H="w-4 h-4"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J6.jsxDEV("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function j3({className:H="w-4 h-4"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[J6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},void 0,!1,void 0,this),J6.jsxDEV("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"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function o3({className:H="w-4 h-4"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function x3({className:H="w-4 h-4"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J6.jsxDEV("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function l3({className:H="w-4 h-4"}){return J6.jsxDEV("svg",{className:H,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:J6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var gv=Q0(I1(),1);function _X({onNewAgent:H,canCreateAgent:U}){return gv.jsxDEV("header",{className:"border-b border-[#1a1a1a] px-6 py-4 flex-shrink-0",children:gv.jsxDEV("div",{className:"flex items-center justify-between",children:[gv.jsxDEV("div",{className:"flex items-center gap-2",children:[gv.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),gv.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),gv.jsxDEV("button",{onClick:H,disabled:!U,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)},void 0,!1,void 0,this)}var _5=Q0(I1(),1);function FX({route:H,agentCount:U,onNavigate:B}){return _5.jsxDEV("aside",{className:"w-56 border-r border-[#1a1a1a] flex-shrink-0 p-4",children:_5.jsxDEV("nav",{className:"space-y-1",children:[_5.jsxDEV(lY,{icon:_5.jsxDEV(AX,{},void 0,!1,void 0,this),label:"Dashboard",active:H==="dashboard",onClick:()=>B("dashboard")},void 0,!1,void 0,this),_5.jsxDEV(lY,{icon:_5.jsxDEV(PX,{},void 0,!1,void 0,this),label:"Agents",active:H==="agents",onClick:()=>B("agents"),badge:U>0?String(U):void 0},void 0,!1,void 0,this),_5.jsxDEV(lY,{icon:_5.jsxDEV(WX,{},void 0,!1,void 0,this),label:"Settings",active:H==="settings",onClick:()=>B("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function lY({icon:H,label:U,active:B,onClick:N,badge:G}){return _5.jsxDEV("button",{onClick:N,className:`w-full flex items-center gap-3 px-3 py-2 rounded font-medium transition ${B?"bg-[#111] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:[H,U,G&&_5.jsxDEV("span",{className:"ml-auto bg-[#333] text-[#888] text-xs px-2 py-0.5 rounded-full",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var i3=Q0(I1(),1);function RX({message:H,onDismiss:U}){return i3.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:[i3.jsxDEV("span",{children:H},void 0,!1,void 0,this),i3.jsxDEV("button",{onClick:U,className:"hover:text-red-300",children:i3.jsxDEV(Sv,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var F5=Q0(Z6(),1);var D0=Q0(I1(),1);function MX({onComplete:H}){let[U,B]=F5.useState(1),[N,G]=F5.useState([]),[_,F]=F5.useState(null),[P,E]=F5.useState(""),[T,R]=F5.useState(!1),[V,I]=F5.useState(!1),[l,n]=F5.useState(null),[b0,t]=F5.useState(null);F5.useEffect(()=>{fetch("/api/providers").then((p)=>p.json()).then((p)=>G(p.providers||[]))},[]);let a=N.filter((p)=>p.hasKey),K0=async()=>{if(!_||!P)return;R(!0),n(null),t(null);try{I(!0);let X0=await(await fetch(`/api/keys/${_}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:P})})).json();if(I(!1),!X0.valid){n(X0.error||"API key is invalid"),R(!1);return}let P0=await fetch(`/api/keys/${_}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:P})}),n0=await P0.json();if(!P0.ok)n(n0.error||"Failed to save key");else{t("API key saved successfully!"),E("");let c0=await(await fetch("/api/providers")).json();G(c0.providers||[]),F(null)}}catch(p){n("Failed to save key")}R(!1)},o=async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),H()};return D0.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:D0.jsxDEV("div",{className:"w-full max-w-2xl",children:[D0.jsxDEV("div",{className:"text-center mb-8",children:[D0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[D0.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[D0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${U>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),D0.jsxDEV("div",{className:`w-16 h-0.5 ${U>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),D0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${U>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[U===1&&D0.jsxDEV(VF,{providers:N,configuredProviders:a,selectedProvider:_,apiKey:P,saving:T,testing:V,error:l,success:b0,onSelectProvider:F,onApiKeyChange:E,onSaveKey:K0,onContinue:()=>B(2)},void 0,!1,void 0,this),U===2&&D0.jsxDEV(fF,{configuredProviders:a,onAddMore:()=>B(1),onComplete:o},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 VF({providers:H,configuredProviders:U,selectedProvider:B,apiKey:N,saving:G,testing:_,error:F,success:P,onSelectProvider:E,onApiKeyChange:T,onSaveKey:R,onContinue:V}){let I=H.find((l)=>l.id===B);if(B&&I)return D0.jsxDEV(D0.Fragment,{children:[D0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",I.name," Key"]},void 0,!0,void 0,this),D0.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),D0.jsxDEV("div",{className:"mb-6",children:[D0.jsxDEV("div",{className:"p-4 rounded border border-[#f97316] bg-[#f97316]/5 mb-4",children:D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("div",{children:[D0.jsxDEV("p",{className:"font-medium",children:I.name},void 0,!1,void 0,this),D0.jsxDEV("p",{className:"text-sm text-[#666]",children:[I.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("a",{href:I.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),D0.jsxDEV("div",{className:"space-y-3",children:[D0.jsxDEV("input",{type:"password",value:N,onChange:(l)=>T(l.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),F&&D0.jsxDEV("p",{className:"text-red-400 text-sm",children:F},void 0,!1,void 0,this),P&&D0.jsxDEV("p",{className:"text-green-400 text-sm",children:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"flex gap-3",children:[D0.jsxDEV("button",{onClick:()=>{E(null),T("")},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),D0.jsxDEV("button",{onClick:R,disabled:!N||G,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:_?"Testing...":G?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return D0.jsxDEV(D0.Fragment,{children:[D0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),D0.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),D0.jsxDEV("div",{className:"space-y-3 mb-6",children:H.map((l)=>D0.jsxDEV(DF,{provider:l,selected:!1,onSelect:()=>!l.hasKey&&E(l.id)},l.id,!1,void 0,this))},void 0,!1,void 0,this),D0.jsxDEV("button",{onClick:V,disabled:U.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:U.length===0?"Add at least one API key to continue":`Continue with ${U.length} provider${U.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function DF({provider:H,selected:U,onSelect:B}){return D0.jsxDEV("div",{onClick:B,className:`p-4 rounded border transition cursor-pointer ${H.hasKey?"border-green-500/30 bg-green-500/5":U?"border-[#f97316] bg-[#f97316]/5":"border-[#222] hover:border-[#333]"}`,children:D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("div",{children:[D0.jsxDEV("p",{className:"font-medium",children:H.name},void 0,!1,void 0,this),D0.jsxDEV("p",{className:"text-sm text-[#666]",children:[H.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.hasKey?D0.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[D0.jsxDEV(r7,{},void 0,!1,void 0,this),"Configured (",H.keyHint,")"]},void 0,!0,void 0,this):D0.jsxDEV("a",{href:H.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(N)=>N.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 fF({configuredProviders:H,onAddMore:U,onComplete:B}){return D0.jsxDEV(D0.Fragment,{children:[D0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),D0.jsxDEV("p",{className:"text-[#666] mb-6",children:["You've configured ",H.length," provider",H.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"space-y-2 mb-6",children:H.map((N)=>D0.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[#0a0a0a] rounded",children:[D0.jsxDEV(r7,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),D0.jsxDEV("span",{children:N.name},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"text-[#666] text-sm",children:["(",N.keyHint,")"]},void 0,!0,void 0,this)]},N.id,!0,void 0,this))},void 0,!1,void 0,this),D0.jsxDEV("div",{className:"flex gap-3",children:[D0.jsxDEV("button",{onClick:U,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),D0.jsxDEV("button",{onClick:B,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 N4=Q0(Z6(),1);var F0=Q0(I1(),1);function kX(){let[H,U]=N4.useState("providers");return F0.jsxDEV("div",{className:"flex-1 flex overflow-hidden",children:[F0.jsxDEV("div",{className:"w-48 border-r border-[#1a1a1a] p-4",children:[F0.jsxDEV("h2",{className:"text-sm font-medium text-[#666] uppercase tracking-wider mb-3",children:"Settings"},void 0,!1,void 0,this),F0.jsxDEV("nav",{className:"space-y-1",children:[F0.jsxDEV(_q,{label:"Providers",active:H==="providers",onClick:()=>U("providers")},void 0,!1,void 0,this),F0.jsxDEV(_q,{label:"Updates",active:H==="updates",onClick:()=>U("updates")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[H==="providers"&&F0.jsxDEV(TF,{},void 0,!1,void 0,this),H==="updates"&&F0.jsxDEV(EF,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function _q({label:H,active:U,onClick:B}){return F0.jsxDEV("button",{onClick:B,className:`w-full text-left px-3 py-2 rounded text-sm transition ${U?"bg-[#1a1a1a] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:H},void 0,!1,void 0,this)}function TF(){let[H,U]=N4.useState([]),[B,N]=N4.useState(null),[G,_]=N4.useState(""),[F,P]=N4.useState(!1),[E,T]=N4.useState(!1),[R,V]=N4.useState(null),[I,l]=N4.useState(null),n=async()=>{let o=await(await fetch("/api/providers")).json();U(o.providers||[])};N4.useEffect(()=>{n()},[]);let b0=async()=>{if(!B||!G)return;P(!0),V(null),l(null);try{T(!0);let o=await(await fetch(`/api/keys/${B}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:G})})).json();if(T(!1),!o.valid){V(o.error||"API key is invalid"),P(!1);return}let p=await fetch(`/api/keys/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:G})});if(!p.ok){let X0=await p.json();V(X0.error||"Failed to save key")}else l("API key saved!"),_(""),N(null),n()}catch(K0){V("Failed to save key")}P(!1)},t=async(K0)=>{if(!confirm("Are you sure you want to remove this API key?"))return;await fetch(`/api/keys/${K0}`,{method:"DELETE"}),n()},a=H.filter((K0)=>K0.hasKey).length;return F0.jsxDEV("div",{className:"max-w-4xl",children:[F0.jsxDEV("div",{className:"mb-6",children:[F0.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"AI Providers"},void 0,!1,void 0,this),F0.jsxDEV("p",{className:"text-[#666]",children:["Manage your API keys for AI providers. ",a," of ",H.length," configured."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2",children:H.map((K0)=>F0.jsxDEV(CF,{provider:K0,isEditing:B===K0.id,apiKey:G,saving:F,testing:E,error:B===K0.id?R:null,success:B===K0.id?I:null,onStartEdit:()=>{N(K0.id),V(null),l(null)},onCancelEdit:()=>{N(null),_(""),V(null)},onApiKeyChange:_,onSave:b0,onDelete:()=>t(K0.id)},K0.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function EF(){let[H,U]=N4.useState(null),[B,N]=N4.useState(!1),[G,_]=N4.useState(null),[F,P]=N4.useState(!1),E=async()=>{N(!0),_(null);try{let R=await fetch("/api/version");if(!R.ok)throw Error("Failed to check for updates");let V=await R.json();U(V)}catch(R){_("Failed to check for updates")}N(!1)};N4.useEffect(()=>{E()},[]);let T=()=>{if(H?.updateCommand)navigator.clipboard.writeText(H.updateCommand),P(!0),setTimeout(()=>P(!1),2000)};return F0.jsxDEV("div",{className:"max-w-2xl",children:[F0.jsxDEV("div",{className:"mb-6",children:[F0.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"Updates"},void 0,!1,void 0,this),F0.jsxDEV("p",{className:"text-[#666]",children:"Check for new versions of apteva."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-6",children:B&&!H?F0.jsxDEV("div",{className:"text-[#666]",children:"Checking for updates..."},void 0,!1,void 0,this):G?F0.jsxDEV("div",{className:"text-red-400",children:G},void 0,!1,void 0,this):H?F0.jsxDEV("div",{className:"space-y-4",children:[F0.jsxDEV("div",{className:"flex items-center justify-between",children:[F0.jsxDEV("div",{children:[F0.jsxDEV("div",{className:"text-sm text-[#666]",children:"Current version"},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"text-xl font-mono",children:["v",H.current]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"text-right",children:[F0.jsxDEV("div",{className:"text-sm text-[#666]",children:"Latest version"},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"text-xl font-mono",children:["v",H.latest]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.updateAvailable?F0.jsxDEV("div",{className:"bg-[#f97316]/10 border border-[#f97316]/30 rounded-lg p-4",children:[F0.jsxDEV("div",{className:"flex items-center gap-2 text-[#f97316] font-medium mb-2",children:[F0.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:F0.jsxDEV("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Update available!"]},void 0,!0,void 0,this),F0.jsxDEV("p",{className:"text-sm text-[#888] mb-3",children:"A new version of apteva is available. Run this command to update:"},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"flex items-center gap-2",children:[F0.jsxDEV("code",{className:"flex-1 bg-[#0a0a0a] px-3 py-2 rounded font-mono text-sm",children:H.updateCommand},void 0,!1,void 0,this),F0.jsxDEV("button",{onClick:T,className:"px-3 py-2 bg-[#1a1a1a] hover:bg-[#222] rounded text-sm",children:F?"Copied!":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F0.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4 flex items-center gap-2 text-green-400",children:[F0.jsxDEV(r7,{className:"w-5 h-5"},void 0,!1,void 0,this),"You're running the latest version!"]},void 0,!0,void 0,this),F0.jsxDEV("button",{onClick:E,disabled:B,className:"text-sm text-[#666] hover:text-[#888] disabled:opacity-50",children:B?"Checking...":"Check again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function CF({provider:H,isEditing:U,apiKey:B,saving:N,testing:G,error:_,success:F,onStartEdit:P,onCancelEdit:E,onApiKeyChange:T,onSave:R,onDelete:V}){return F0.jsxDEV("div",{className:`bg-[#111] border rounded-lg p-4 ${H.hasKey?"border-green-500/20":"border-[#1a1a1a]"}`,children:[F0.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[F0.jsxDEV("div",{children:[F0.jsxDEV("h3",{className:"font-medium",children:H.name},void 0,!1,void 0,this),F0.jsxDEV("p",{className:"text-sm text-[#666]",children:[H.models.length," models"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.hasKey?F0.jsxDEV("span",{className:"text-green-400 text-xs flex items-center gap-1 bg-green-500/10 px-2 py-1 rounded",children:[F0.jsxDEV(r7,{className:"w-3 h-3"},void 0,!1,void 0,this),H.keyHint]},void 0,!0,void 0,this):F0.jsxDEV("span",{className:"text-[#666] text-xs bg-[#1a1a1a] px-2 py-1 rounded",children:"Not configured"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.hasKey?F0.jsxDEV("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-[#1a1a1a]",children:[F0.jsxDEV("a",{href:H.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"View docs"},void 0,!1,void 0,this),F0.jsxDEV("button",{onClick:V,className:"text-red-400 hover:text-red-300 text-sm",children:"Remove key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F0.jsxDEV("div",{className:"mt-3 pt-3 border-t border-[#1a1a1a]",children:U?F0.jsxDEV("div",{className:"space-y-3",children:[F0.jsxDEV("input",{type:"password",value:B,onChange:(I)=>T(I.target.value),placeholder:"Enter API key...",autoFocus:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-3 py-2 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),_&&F0.jsxDEV("p",{className:"text-red-400 text-sm",children:_},void 0,!1,void 0,this),F&&F0.jsxDEV("p",{className:"text-green-400 text-sm",children:F},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"flex gap-2",children:[F0.jsxDEV("button",{onClick:E,className:"flex-1 px-3 py-1.5 border border-[#333] rounded text-sm hover:border-[#666]",children:"Cancel"},void 0,!1,void 0,this),F0.jsxDEV("button",{onClick:R,disabled:!B||N,className:"flex-1 px-3 py-1.5 bg-[#f97316] text-black rounded text-sm font-medium disabled:opacity-50",children:G?"Validating...":N?"Saving...":"Save"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F0.jsxDEV("div",{className:"flex items-center justify-between",children:[F0.jsxDEV("a",{href:H.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"Get API key"},void 0,!1,void 0,this),F0.jsxDEV("button",{onClick:P,className:"text-sm text-[#f97316] hover:text-[#fb923c]",children:"+ Add key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var A4=Q0(I1(),1),hF=[{key:"memory",icon:c3,label:"Memory"},{key:"tasks",icon:y3,label:"Tasks"},{key:"vision",icon:j3,label:"Vision"},{key:"operator",icon:o3,label:"Operator"},{key:"mcp",icon:x3,label:"MCP"},{key:"realtime",icon:l3,label:"Realtime"}];function wX({agent:H,selected:U,onSelect:B,onToggle:N,onDelete:G}){let _=hF.filter((F)=>H.features?.[F.key]);return A4.jsxDEV("div",{onClick:B,className:`bg-[#111] rounded p-5 border transition cursor-pointer ${U?"border-[#f97316]":"border-[#1a1a1a] hover:border-[#333]"}`,children:[A4.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[A4.jsxDEV("div",{children:[A4.jsxDEV("h3",{className:"font-semibold text-lg",children:H.name},void 0,!1,void 0,this),A4.jsxDEV("p",{className:"text-sm text-[#666]",children:[H.provider," / ",H.model,H.port&&A4.jsxDEV("span",{className:"text-[#444]",children:[" · :",H.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A4.jsxDEV(SF,{status:H.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_.length>0&&A4.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:_.map(({key:F,icon:P,label:E})=>A4.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-[#1a1a1a] text-[#888] text-xs",title:E,children:[A4.jsxDEV(P,{className:"w-3 h-3"},void 0,!1,void 0,this),E]},F,!0,void 0,this))},void 0,!1,void 0,this),A4.jsxDEV("p",{className:"text-sm text-[#666] line-clamp-2 mb-4",children:H.systemPrompt},void 0,!1,void 0,this),A4.jsxDEV("div",{className:"flex gap-2",children:[A4.jsxDEV("button",{onClick:N,className:`flex-1 px-3 py-1.5 rounded text-sm font-medium transition ${H.status==="running"?"bg-[#f97316]/20 text-[#f97316] hover:bg-[#f97316]/30":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:H.status==="running"?"Stop":"Start"},void 0,!1,void 0,this),A4.jsxDEV("button",{onClick:G,className:"px-3 py-1.5 rounded text-sm font-medium bg-red-500/20 text-red-400 hover:bg-red-500/30 transition",children:"Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function SF({status:H}){return A4.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ${H==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[#333] text-[#666]"}`,children:H},void 0,!1,void 0,this)}var V1=Q0(I1(),1),gF=[{key:"memory",label:"Memory",description:"Remember information across conversations",icon:c3},{key:"tasks",label:"Tasks",description:"Create and execute scheduled tasks",icon:y3},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:j3},{key:"operator",label:"Operator",description:"Browser automation (computer use)",icon:o3},{key:"mcp",label:"MCP",description:"Connect to external tools and services",icon:x3},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:l3}];function IX({form:H,providers:U,configuredProviders:B,onFormChange:N,onProviderChange:G,onCreate:_,onClose:F,onGoToSettings:P}){let E=U.find((I)=>I.id===H.provider),T=B.map((I)=>({value:I.id,label:I.name})),R=E?.models.map((I)=>({value:I.value,label:I.label,recommended:I.recommended}))||[],V=(I)=>{N({...H,features:{...H.features,[I]:!H.features[I]}})};return V1.jsxDEV(NX,{children:[V1.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),B.length===0?V1.jsxDEV(uF,{onGoToSettings:P},void 0,!1,void 0,this):V1.jsxDEV(V1.Fragment,{children:[V1.jsxDEV("div",{className:"space-y-4",children:[V1.jsxDEV(p3,{label:"Name",children:V1.jsxDEV("input",{type:"text",value:H.name,onChange:(I)=>N({...H,name:I.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),V1.jsxDEV(p3,{label:"Provider",children:V1.jsxDEV(a3,{value:H.provider,options:T,onChange:G,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),V1.jsxDEV(p3,{label:"Model",children:V1.jsxDEV(a3,{value:H.model,options:R,onChange:(I)=>N({...H,model:I}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),V1.jsxDEV(p3,{label:"System Prompt",children:V1.jsxDEV("textarea",{value:H.systemPrompt,onChange:(I)=>N({...H,systemPrompt:I.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),V1.jsxDEV(p3,{label:"Features",children:V1.jsxDEV("div",{className:"grid grid-cols-2 gap-2",children:gF.map(({key:I,label:l,description:n,icon:b0})=>V1.jsxDEV("button",{type:"button",onClick:()=>V(I),className:`flex items-center gap-3 p-3 rounded border text-left transition ${H.features[I]?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[V1.jsxDEV(b0,{className:`w-5 h-5 ${H.features[I]?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"flex-1 min-w-0",children:[V1.jsxDEV("div",{className:`text-sm font-medium ${H.features[I]?"text-[#f97316]":""}`,children:l},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"text-xs text-[#666] truncate",children:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},I,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{className:"flex gap-3 mt-6",children:[V1.jsxDEV("button",{onClick:F,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),V1.jsxDEV("button",{onClick:_,disabled:!H.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 p3({label:H,children:U}){return V1.jsxDEV("div",{children:[V1.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:H},void 0,!1,void 0,this),U]},void 0,!0,void 0,this)}function uF({onGoToSettings:H}){return V1.jsxDEV("div",{className:"text-center py-6",children:[V1.jsxDEV("p",{className:"text-[#666] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),V1.jsxDEV("button",{onClick:H,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 F1=Q0(Z6(),1),lb=Q0(Z6(),1),mv=Q0(Z6(),1);function Fq(H){var U,B,N="";if(typeof H=="string"||typeof H=="number")N+=H;else if(typeof H=="object")if(Array.isArray(H)){var G=H.length;for(U=0;U<G;U++)H[U]&&(B=Fq(H[U]))&&(N&&(N+=" "),N+=B)}else for(B in H)H[B]&&(N&&(N+=" "),N+=B);return N}function Rq(){for(var H,U,B=0,N="",G=arguments.length;B<G;B++)(H=arguments[B])&&(U=Fq(H))&&(N&&(N+=" "),N+=U);return N}var mF=(H)=>{let U=aF(H),{conflictingClassGroups:B,conflictingClassGroupModifiers:N}=H;return{getClassGroupId:(F)=>{let P=F.split("-");if(P[0]===""&&P.length!==1)P.shift();return wq(P,U)||dF(F)},getConflictingClassGroupIds:(F,P)=>{let E=B[F]||[];if(P&&N[F])return[...E,...N[F]];return E}}},wq=(H,U)=>{if(H.length===0)return U.classGroupId;let B=H[0],N=U.nextPart.get(B),G=N?wq(H.slice(1),N):void 0;if(G)return G;if(U.validators.length===0)return;let _=H.join("-");return U.validators.find(({validator:F})=>F(_))?.classGroupId},Mq=/^\[(.+)\]$/,dF=(H)=>{if(Mq.test(H)){let U=Mq.exec(H)[1],B=U?.substring(0,U.indexOf(":"));if(B)return"arbitrary.."+B}},aF=(H)=>{let{theme:U,prefix:B}=H,N={nextPart:new Map,validators:[]};return yF(Object.entries(H.classGroups),B).forEach(([_,F])=>{pY(F,N,_,U)}),N},pY=(H,U,B,N)=>{H.forEach((G)=>{if(typeof G==="string"){let _=G===""?U:kq(U,G);_.classGroupId=B;return}if(typeof G==="function"){if(cF(G)){pY(G(N),U,B,N);return}U.validators.push({validator:G,classGroupId:B});return}Object.entries(G).forEach(([_,F])=>{pY(F,kq(U,_),B,N)})})},kq=(H,U)=>{let B=H;return U.split("-").forEach((N)=>{if(!B.nextPart.has(N))B.nextPart.set(N,{nextPart:new Map,validators:[]});B=B.nextPart.get(N)}),B},cF=(H)=>H.isThemeGetter,yF=(H,U)=>{if(!U)return H;return H.map(([B,N])=>{let G=N.map((_)=>{if(typeof _==="string")return U+_;if(typeof _==="object")return Object.fromEntries(Object.entries(_).map(([F,P])=>[U+F,P]));return _});return[B,G]})},jF=(H)=>{if(H<1)return{get:()=>{return},set:()=>{}};let U=0,B=new Map,N=new Map,G=(_,F)=>{if(B.set(_,F),U++,U>H)U=0,N=B,B=new Map};return{get(_){let F=B.get(_);if(F!==void 0)return F;if((F=N.get(_))!==void 0)return G(_,F),F},set(_,F){if(B.has(_))B.set(_,F);else G(_,F)}}};var oF=(H)=>{let{separator:U,experimentalParseClassName:B}=H,N=U.length===1,G=U[0],_=U.length,F=(P)=>{let E=[],T=0,R=0,V;for(let t=0;t<P.length;t++){let a=P[t];if(T===0){if(a===G&&(N||P.slice(t,t+_)===U)){E.push(P.slice(R,t)),R=t+_;continue}if(a==="/"){V=t;continue}}if(a==="[")T++;else if(a==="]")T--}let I=E.length===0?P:P.substring(R),l=I.startsWith("!"),n=l?I.substring(1):I,b0=V&&V>R?V-R:void 0;return{modifiers:E,hasImportantModifier:l,baseClassName:n,maybePostfixModifierPosition:b0}};if(B)return(P)=>B({className:P,parseClassName:F});return F},xF=(H)=>{if(H.length<=1)return H;let U=[],B=[];return H.forEach((N)=>{if(N[0]==="[")U.push(...B.sort(),N),B=[];else B.push(N)}),U.push(...B.sort()),U},lF=(H)=>({cache:jF(H.cacheSize),parseClassName:oF(H),...mF(H)}),iF=/\s+/,pF=(H,U)=>{let{parseClassName:B,getClassGroupId:N,getConflictingClassGroupIds:G}=U,_=[],F=H.trim().split(iF),P="";for(let E=F.length-1;E>=0;E-=1){let T=F[E],{modifiers:R,hasImportantModifier:V,baseClassName:I,maybePostfixModifierPosition:l}=B(T),n=Boolean(l),b0=N(n?I.substring(0,l):I);if(!b0){if(!n){P=T+(P.length>0?" "+P:P);continue}if(b0=N(I),!b0){P=T+(P.length>0?" "+P:P);continue}n=!1}let t=xF(R).join(":"),a=V?t+"!":t,K0=a+b0;if(_.includes(K0))continue;_.push(K0);let o=G(b0,n);for(let p=0;p<o.length;++p){let X0=o[p];_.push(a+X0)}P=T+(P.length>0?" "+P:P)}return P};function rF(){let H=0,U,B,N="";while(H<arguments.length)if(U=arguments[H++]){if(B=Iq(U))N&&(N+=" "),N+=B}return N}var Iq=(H)=>{if(typeof H==="string")return H;let U,B="";for(let N=0;N<H.length;N++)if(H[N]){if(U=Iq(H[N]))B&&(B+=" "),B+=U}return B};function nF(H,...U){let B,N,G,_=F;function F(E){let T=U.reduce((R,V)=>V(R),H());return B=lF(T),N=B.cache.get,G=B.cache.set,_=P,P(E)}function P(E){let T=N(E);if(T)return T;let R=pF(E,B);return G(E,R),R}return function(){return _(rF.apply(null,arguments))}}var H6=(H)=>{let U=(B)=>B[H]||[];return U.isThemeGetter=!0,U},Vq=/^\[(?:([a-z-]+):)?(.+)\]$/i,tF=/^\d+\/\d+$/,sF=new Set(["px","full","screen"]),eF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vR=/\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$/,bR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,QR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O7=(H)=>jb(H)||sF.has(H)||tF.test(H),n7=(H)=>ob(H,"length",KR),jb=(H)=>Boolean(H)&&!Number.isNaN(Number(H)),iY=(H)=>ob(H,"number",jb),r3=(H)=>Boolean(H)&&Number.isInteger(Number(H)),XR=(H)=>H.endsWith("%")&&jb(H.slice(0,-1)),b1=(H)=>Vq.test(H),t7=(H)=>eF.test(H),ZR=new Set(["length","size","percentage"]),JR=(H)=>ob(H,ZR,Dq),HR=(H)=>ob(H,"position",Dq),YR=new Set(["image","url"]),GR=(H)=>ob(H,YR,qR),$R=(H)=>ob(H,"",UR),n3=()=>!0,ob=(H,U,B)=>{let N=Vq.exec(H);if(N){if(N[1])return typeof U==="string"?N[1]===U:U.has(N[1]);return B(N[2])}return!1},KR=(H)=>vR.test(H)&&!bR.test(H),Dq=()=>!1,UR=(H)=>zR.test(H),qR=(H)=>QR.test(H);var BR=()=>{let H=H6("colors"),U=H6("spacing"),B=H6("blur"),N=H6("brightness"),G=H6("borderColor"),_=H6("borderRadius"),F=H6("borderSpacing"),P=H6("borderWidth"),E=H6("contrast"),T=H6("grayscale"),R=H6("hueRotate"),V=H6("invert"),I=H6("gap"),l=H6("gradientColorStops"),n=H6("gradientColorStopPositions"),b0=H6("inset"),t=H6("margin"),a=H6("opacity"),K0=H6("padding"),o=H6("saturate"),p=H6("scale"),X0=H6("sepia"),P0=H6("skew"),n0=H6("space"),z1=H6("translate"),c0=()=>["auto","contain","none"],W0=()=>["auto","hidden","clip","visible","scroll"],S0=()=>["auto",b1,U],e=()=>[b1,U],Z0=()=>["",O7,n7],k0=()=>["auto",jb,b1],L0=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],v1=()=>["solid","dashed","dotted","double","none"],R6=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],s1=()=>["start","end","center","between","around","evenly","stretch"],a1=()=>["","0",b1],u0=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q1=()=>[jb,b1];return{cacheSize:500,separator:":",theme:{colors:[n3],spacing:[O7,n7],blur:["none","",t7,b1],brightness:Q1(),borderColor:[H],borderRadius:["none","","full",t7,b1],borderSpacing:e(),borderWidth:Z0(),contrast:Q1(),grayscale:a1(),hueRotate:Q1(),invert:a1(),gap:e(),gradientColorStops:[H],gradientColorStopPositions:[XR,n7],inset:S0(),margin:S0(),opacity:Q1(),padding:e(),saturate:Q1(),scale:Q1(),sepia:a1(),skew:Q1(),space:e(),translate:e()},classGroups:{aspect:[{aspect:["auto","square","video",b1]}],container:["container"],columns:[{columns:[t7]}],"break-after":[{"break-after":u0()}],"break-before":[{"break-before":u0()}],"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:[...L0(),b1]}],overflow:[{overflow:W0()}],"overflow-x":[{"overflow-x":W0()}],"overflow-y":[{"overflow-y":W0()}],overscroll:[{overscroll:c0()}],"overscroll-x":[{"overscroll-x":c0()}],"overscroll-y":[{"overscroll-y":c0()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b0]}],"inset-x":[{"inset-x":[b0]}],"inset-y":[{"inset-y":[b0]}],start:[{start:[b0]}],end:[{end:[b0]}],top:[{top:[b0]}],right:[{right:[b0]}],bottom:[{bottom:[b0]}],left:[{left:[b0]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",r3,b1]}],basis:[{basis:S0()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",b1]}],grow:[{grow:a1()}],shrink:[{shrink:a1()}],order:[{order:["first","last","none",r3,b1]}],"grid-cols":[{"grid-cols":[n3]}],"col-start-end":[{col:["auto",{span:["full",r3,b1]},b1]}],"col-start":[{"col-start":k0()}],"col-end":[{"col-end":k0()}],"grid-rows":[{"grid-rows":[n3]}],"row-start-end":[{row:["auto",{span:[r3,b1]},b1]}],"row-start":[{"row-start":k0()}],"row-end":[{"row-end":k0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",b1]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",b1]}],gap:[{gap:[I]}],"gap-x":[{"gap-x":[I]}],"gap-y":[{"gap-y":[I]}],"justify-content":[{justify:["normal",...s1()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...s1(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...s1(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[K0]}],px:[{px:[K0]}],py:[{py:[K0]}],ps:[{ps:[K0]}],pe:[{pe:[K0]}],pt:[{pt:[K0]}],pr:[{pr:[K0]}],pb:[{pb:[K0]}],pl:[{pl:[K0]}],m:[{m:[t]}],mx:[{mx:[t]}],my:[{my:[t]}],ms:[{ms:[t]}],me:[{me:[t]}],mt:[{mt:[t]}],mr:[{mr:[t]}],mb:[{mb:[t]}],ml:[{ml:[t]}],"space-x":[{"space-x":[n0]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[n0]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",b1,U]}],"min-w":[{"min-w":[b1,U,"min","max","fit"]}],"max-w":[{"max-w":[b1,U,"none","full","min","max","fit","prose",{screen:[t7]},t7]}],h:[{h:[b1,U,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[b1,U,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[b1,U,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[b1,U,"auto","min","max","fit"]}],"font-size":[{text:["base",t7,n7]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",iY]}],"font-family":[{font:[n3]}],"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",b1]}],"line-clamp":[{"line-clamp":["none",jb,iY]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O7,b1]}],"list-image":[{"list-image":["none",b1]}],"list-style-type":[{list:["none","disc","decimal",b1]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[H]}],"placeholder-opacity":[{"placeholder-opacity":[a]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[H]}],"text-opacity":[{"text-opacity":[a]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...v1(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O7,n7]}],"underline-offset":[{"underline-offset":["auto",O7,b1]}],"text-decoration-color":[{decoration:[H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:e()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b1]}],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",b1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[a]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L0(),HR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",JR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},GR]}],"bg-color":[{bg:[H]}],"gradient-from-pos":[{from:[n]}],"gradient-via-pos":[{via:[n]}],"gradient-to-pos":[{to:[n]}],"gradient-from":[{from:[l]}],"gradient-via":[{via:[l]}],"gradient-to":[{to:[l]}],rounded:[{rounded:[_]}],"rounded-s":[{"rounded-s":[_]}],"rounded-e":[{"rounded-e":[_]}],"rounded-t":[{"rounded-t":[_]}],"rounded-r":[{"rounded-r":[_]}],"rounded-b":[{"rounded-b":[_]}],"rounded-l":[{"rounded-l":[_]}],"rounded-ss":[{"rounded-ss":[_]}],"rounded-se":[{"rounded-se":[_]}],"rounded-ee":[{"rounded-ee":[_]}],"rounded-es":[{"rounded-es":[_]}],"rounded-tl":[{"rounded-tl":[_]}],"rounded-tr":[{"rounded-tr":[_]}],"rounded-br":[{"rounded-br":[_]}],"rounded-bl":[{"rounded-bl":[_]}],"border-w":[{border:[P]}],"border-w-x":[{"border-x":[P]}],"border-w-y":[{"border-y":[P]}],"border-w-s":[{"border-s":[P]}],"border-w-e":[{"border-e":[P]}],"border-w-t":[{"border-t":[P]}],"border-w-r":[{"border-r":[P]}],"border-w-b":[{"border-b":[P]}],"border-w-l":[{"border-l":[P]}],"border-opacity":[{"border-opacity":[a]}],"border-style":[{border:[...v1(),"hidden"]}],"divide-x":[{"divide-x":[P]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[P]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[a]}],"divide-style":[{divide:v1()}],"border-color":[{border:[G]}],"border-color-x":[{"border-x":[G]}],"border-color-y":[{"border-y":[G]}],"border-color-s":[{"border-s":[G]}],"border-color-e":[{"border-e":[G]}],"border-color-t":[{"border-t":[G]}],"border-color-r":[{"border-r":[G]}],"border-color-b":[{"border-b":[G]}],"border-color-l":[{"border-l":[G]}],"divide-color":[{divide:[G]}],"outline-style":[{outline:["",...v1()]}],"outline-offset":[{"outline-offset":[O7,b1]}],"outline-w":[{outline:[O7,n7]}],"outline-color":[{outline:[H]}],"ring-w":[{ring:Z0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[H]}],"ring-opacity":[{"ring-opacity":[a]}],"ring-offset-w":[{"ring-offset":[O7,n7]}],"ring-offset-color":[{"ring-offset":[H]}],shadow:[{shadow:["","inner","none",t7,$R]}],"shadow-color":[{shadow:[n3]}],opacity:[{opacity:[a]}],"mix-blend":[{"mix-blend":[...R6(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":R6()}],filter:[{filter:["","none"]}],blur:[{blur:[B]}],brightness:[{brightness:[N]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",t7,b1]}],grayscale:[{grayscale:[T]}],"hue-rotate":[{"hue-rotate":[R]}],invert:[{invert:[V]}],saturate:[{saturate:[o]}],sepia:[{sepia:[X0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[B]}],"backdrop-brightness":[{"backdrop-brightness":[N]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R]}],"backdrop-invert":[{"backdrop-invert":[V]}],"backdrop-opacity":[{"backdrop-opacity":[a]}],"backdrop-saturate":[{"backdrop-saturate":[o]}],"backdrop-sepia":[{"backdrop-sepia":[X0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[F]}],"border-spacing-x":[{"border-spacing-x":[F]}],"border-spacing-y":[{"border-spacing-y":[F]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",b1]}],duration:[{duration:Q1()}],ease:[{ease:["linear","in","out","in-out",b1]}],delay:[{delay:Q1()}],animate:[{animate:["none","spin","ping","pulse","bounce",b1]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[p]}],"scale-x":[{"scale-x":[p]}],"scale-y":[{"scale-y":[p]}],rotate:[{rotate:[r3,b1]}],"translate-x":[{"translate-x":[z1]}],"translate-y":[{"translate-y":[z1]}],"skew-x":[{"skew-x":[P0]}],"skew-y":[{"skew-y":[P0]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",b1]}],accent:[{accent:["auto",H]}],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",b1]}],"caret-color":[{caret:[H]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":e()}],"scroll-mx":[{"scroll-mx":e()}],"scroll-my":[{"scroll-my":e()}],"scroll-ms":[{"scroll-ms":e()}],"scroll-me":[{"scroll-me":e()}],"scroll-mt":[{"scroll-mt":e()}],"scroll-mr":[{"scroll-mr":e()}],"scroll-mb":[{"scroll-mb":e()}],"scroll-ml":[{"scroll-ml":e()}],"scroll-p":[{"scroll-p":e()}],"scroll-px":[{"scroll-px":e()}],"scroll-py":[{"scroll-py":e()}],"scroll-ps":[{"scroll-ps":e()}],"scroll-pe":[{"scroll-pe":e()}],"scroll-pt":[{"scroll-pt":e()}],"scroll-pr":[{"scroll-pr":e()}],"scroll-pb":[{"scroll-pb":e()}],"scroll-pl":[{"scroll-pl":e()}],"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",b1]}],fill:[{fill:[H,"none"]}],"stroke-w":[{stroke:[O7,n7,iY]}],stroke:[{stroke:[H,"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 fq=nF(BR);var mq=Q0(Z6(),1),M5=Q0(l1(),1),ib=Q0(Z6(),1),H4=Q0(l1(),1),dq=Q0(l1(),1),vG=Q0(l1(),1),pb=Q0(Z6(),1),P6=Q0(l1(),1),aq=Q0(Z6(),1),a6=Q0(l1(),1),s3=Q0(l1(),1),H0=Q0(l1(),1),u4=Q0(l1(),1),zG=Q0(l1(),1),T0=Q0(l1(),1),$6=Q0(l1(),1),P1=Q0(l1(),1),N0=Q0(l1(),1),x0=Q0(l1(),1),t3=Q0(l1(),1),j5=Q0(Z6(),1),a0=Q0(l1(),1),N7=Q0(Z6(),1),M0=Q0(l1(),1),D4=Q0(l1(),1),QM=Q0(Z6(),1),yq=Q0(l1(),1),QG=Q0(Z6(),1),XG=Q0(l1(),1),XM=Q0(Z6(),1),jq=Q0(l1(),1),oq=Q0(Z6(),1),xq=Q0(l1(),1),ZM=Q0(Z6(),1),lq=Q0(l1(),1),iq=Q0(l1(),1),pq=Q0(l1(),1),LR=Object.defineProperty,NR=(H,U,B)=>(U in H)?LR(H,U,{enumerable:!0,configurable:!0,writable:!0,value:B}):H[U]=B,AR=(H,U,B)=>NR(H,typeof U!=="symbol"?U+"":U,B);function d1(...H){return fq(Rq(H))}var hw=[{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)}],Sw=[{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 PR(H=1000){return new Promise((U)=>{setTimeout(()=>{U({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})},H)})}function WR(H){let U=H.toLowerCase();if(U.includes("analyze")||U.includes("analysis"))return`Analysis complete for "${H}". 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(U.includes("sales")||U.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(U.includes("report")||U.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(U.includes("data")||U.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(U.includes("customer")||U.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 _R(H){let U=WR(H),B=H.toLowerCase(),N=[],G;if(B.includes("sales")||B.includes("revenue")||B.includes("analyze"))N.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(B.includes("customer")||B.includes("user"))N.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(B.includes("task")||B.includes("todo")||B.includes("work")||B.includes("completed"))N.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:{}}]}),G={type:"update_database",payload:{table:"tasks",operation:"mark_as_viewed",taskIds:["task-1","task-2","task-3"],timestamp:new Date().toISOString()}};if(B.includes("analyze")||B.includes("analysis"))G={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:U,widgets:N,action:G}}function FR(H,U,B,N,G=30){let{message:_,widgets:F}=_R(H),P=_.split(" "),E=0,T=setInterval(()=>{try{if(E<P.length)U({type:"token",content:P[E]+" "}),E++;else{clearInterval(T),F.forEach((V)=>{U({type:"widget",widget:V})});let R=`mock_thread_${Date.now()}`;U({type:"complete"}),B(R)}}catch(R){clearInterval(T),N(R instanceof Error?R:Error("Mock streaming error"))}},G)}function RR(H){return new Promise((U,B)=>{let N=new FileReader;N.onload=()=>{let _=N.result.split(",")[1];U(_)},N.onerror=()=>B(Error("Failed to read file")),N.readAsDataURL(H)})}function MR(H){if(H.startsWith("image/"))return"image";return"document"}function kR(H){return["image/jpeg","image/png","image/gif","image/webp","application/pdf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(H.type)}async function wR(H){let U=await RR(H);return{type:MR(H.type),source:{type:"base64",media_type:H.type,data:U}}}async function IR(H){let U=Array.from(H);return await Promise.all(U.map((N)=>wR(N)))}async function Tq(H,U){if(!U||U.length===0)return H;let B=[];if(H.trim())B.push({type:"text",text:H.trim()});let N=await IR(U);return B.push(...N),B}function DX(H){if(H<1024)return`${H} B`;if(H<1048576)return`${(H/1024).toFixed(1)} KB`;return`${(H/1048576).toFixed(1)} MB`}var Eq=10485760;function Sq(H){if(!kR(H))return{valid:!1,error:`Unsupported file type: ${H.type}`};if(H.size>Eq)return{valid:!1,error:`File too large: ${DX(H.size)} (max ${DX(Eq)})`};return{valid:!0}}var VR=["list","table"];function DR(H){let U=[],B=!1,N=H.match(/"items"\s*:\s*\[/);if(!N)return{items:U,isStreaming:!1};let G=H.indexOf("[",N.index);if(G===-1)return{items:U,isStreaming:!0};let _=0,F=!1,P=!1,E=-1;for(let V=G+1;V<H.length;V++){let I=H[V];if(P){P=!1;continue}if(I==="\\"&&F){P=!0;continue}if(I==='"'){F=!F;continue}if(F)continue;if(I==="{"){if(_===0)E=V;_++}else if(I==="}"){if(_--,_===0&&E!==-1){let l=H.slice(E,V+1);try{let n=JSON.parse(l);if(!n.id)n.id=`item-${U.length}-${sY(l)}`;U.push(n)}catch(n){}E=-1}}else if(I==="]"&&_===0){B=!1;break}}if(_>0||E!==-1)B=!0;let T=H.slice(G);if(eY(T,0)===-1)B=!0;return{items:U,isStreaming:B}}function sY(H){let U=0;for(let B=0;B<H.length;B++){let N=H.charCodeAt(B);U=(U<<5)-U+N,U=U&U}return Math.abs(U).toString(36)}function eY(H,U){let B=0,N=!1,G=!1;for(let _=U;_<H.length;_++){let F=H[_];if(G){G=!1;continue}if(F==="\\"&&N){G=!0;continue}if(F==='"'){N=!N;continue}if(N)continue;if(F==="["||F==="{")B++;else if(F==="]"||F==="}"){if(B--,B===0)return _}}return-1}function VX(H){let U=[],B=!1,N=!1,G=0,_=null,F=H,P=H.lastIndexOf("@ui:");if(P!==-1){let R=H.slice(P),V=R.match(/^@ui:(\w+)/);if(V){let I=V[1],l=R.indexOf("[");if(l===-1)F=H.slice(0,P),_=I,N=!0;else{let n=P+l;if(eY(H,n)===-1)if(VR.includes(I)){let t=H.slice(n+1),{items:a,isStreaming:K0}=DR(t);if(a.length>0){F=H.slice(0,P);let o=`widget-${I}-streaming-${sY(t)}`,p=F.replace(/[\s:;\-–—\.]+$/g,"").trim();if(p)U.push({type:"text",content:p});U.push({type:"widget",widget:{type:I,id:o,props:I==="table"?{rows:a,columns:[]}:{items:a},isStreaming:K0}}),B=!0,N=!1,F=""}else F=H.slice(0,P),_=I,N=!0}else F=H.slice(0,P),_=I,N=!0}}}if(N)F=F.replace(/[\s:;\-–—\.]+$/g,"");let E=/@ui:(\w+)\[/g,T;while((T=E.exec(F))!==null){let R=T[1],V=T.index+T[0].length-1,I=eY(F,V);if(I===-1)continue;let l=F.slice(V+1,I);if(T.index>G){let n=F.slice(G,T.index).trim();if(n)U.push({type:"text",content:n})}try{let n=l.trim(),b0=JSON.parse(n),t=`widget-${R}-${sY(n)}`,{metadata:a,actions:K0,...o}=b0;U.push({type:"widget",widget:{type:R,id:t,props:o,...K0&&{actions:K0},...a&&{metadata:a}}}),B=!0}catch(n){}G=I+1,E.lastIndex=G}if(G<F.length){let R=F.slice(G).trim();if(R)U.push({type:"text",content:R})}if(U.length===0&&F.trim())U.push({type:"text",content:F.trim()});if(_)U.push({type:"widget_pending",pendingType:_});return{segments:U,hasWidgets:B,hasPendingWidget:N}}var gq={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"}]}]'}},fR=Object.keys(gq),TR=["flow"],uq=fR.filter((H)=>!TR.includes(H));function ER(H){let U=H||uq,B=`
176
- ## UI Widgets
177
- SYNTAX: @ui:type[{json}] - MUST use SQUARE BRACKETS [] around the JSON object.
178
- CORRECT: @ui:list[{"items": [...]}]
179
- WRONG: @ui:list{"items": [...]} (missing square brackets)
180
-
181
- `;for(let N of U){let G=gq[N];if(!G)continue;B+=`${N}: ${G.schema} | ${G.example}
182
- `}return B+=`
183
- Per-item "metadata" is sent as payload on action click.
184
- `,B}function CR(H){return`
185
- Widgets: @ui:type[{json}] - MUST use square brackets []. Example: @ui:list[{"items": [...]}]. Types: ${(H||uq).join(", ")}. Per-item "metadata" is sent as action payload.
186
- `}function hR({widget:H,onAction:U}){let{title:B,description:N,image:G,footer:_}=H.props;return M5.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[G&&M5.jsx("img",{src:G,alt:B,className:"w-full h-48 object-cover"}),M5.jsxs("div",{className:"p-4",children:[M5.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white",children:B}),N&&M5.jsx("p",{className:"!text-neutral-600 dark:!text-neutral-400 mt-2",children:N})]}),(_||H.actions&&H.actions.length>0)&&M5.jsxs("div",{className:"border-t border-neutral-200 dark:border-neutral-700 p-4 flex justify-between items-center",children:[_&&M5.jsx("span",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:_}),H.actions&&H.actions.length>0&&M5.jsx("div",{className:"flex gap-2",children:H.actions.map((F,P)=>M5.jsx("button",{onClick:()=>U?.({type:F.type,payload:F.payload,widgetId:H.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))})]})]})}function SR({widget:H,onAction:U}){let{items:B}=H.props,N=H.isStreaming??!1,G=ib.useRef(new Set),[_,F]=ib.useState(new Set);return ib.useEffect(()=>{let P=new Set(B.map((T)=>T.id)),E=new Set;if(B.forEach((T)=>{if(!G.current.has(T.id))E.add(T.id)}),B.forEach((T)=>G.current.add(T.id)),E.size>0){F(E);let T=setTimeout(()=>{F(new Set)},500);return()=>clearTimeout(T)}},[B]),H4.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[B.map((P,E)=>{let T=_.has(P.id),R=E===B.length-1;return H4.jsxs("div",{className:`apteva-list-item flex items-center p-4 transition-colors ${!R||N?"border-b border-neutral-200 dark:border-neutral-700":""} ${!P.backgroundColor?"hover:bg-neutral-50 dark:hover:bg-neutral-800":""} ${T?"apteva-list-item-new":""}`,style:P.backgroundColor?{backgroundColor:P.backgroundColor}:void 0,children:[P.image&&H4.jsx("img",{src:P.image,alt:P.title,className:"w-16 h-16 rounded object-cover"}),H4.jsxs("div",{className:`flex-1 ${P.image?"ml-4":""}`,children:[H4.jsx("h4",{className:"font-semibold !text-neutral-900 dark:!text-white",children:P.title}),P.subtitle&&H4.jsx("p",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:P.subtitle}),P.description&&H4.jsx("p",{className:"!text-xs !text-neutral-500 dark:!text-neutral-500 mt-1",children:P.description})]}),H.actions&&H.actions.length>0&&H4.jsx("div",{className:"flex gap-2",children:H.actions.map((V,I)=>H4.jsx("button",{onClick:()=>U?.({type:V.type,payload:P.metadata||P,widgetId:H.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:V.label},I))})]},P.id)}),N&&H4.jsxs("div",{className:"apteva-list-streaming flex items-center gap-3 p-4 text-neutral-500 dark:text-neutral-400",children:[H4.jsxs("div",{className:"apteva-streaming-dots flex gap-1",children:[H4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),H4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),H4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),H4.jsx("span",{className:"text-sm",children:"Loading more..."})]})]})}function gR({widget:H,onAction:U}){let{label:B,variant:N="primary",disabled:G=!1}=H.props;return dq.jsx("button",{onClick:()=>H.actions?.[0]&&U?.({type:H.actions[0].type,payload:H.actions[0].payload,widgetId:H.id,timestamp:new Date}),disabled:G,className:d1("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"}[N],{"opacity-50 cursor-not-allowed":G}),children:B})}function uR({widget:H,onAction:U}){let{layout:B="horizontal",buttons:N}=H.props,G={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"},_=(F)=>{return H.actions?.find((P)=>P.payload?.buttonId===F)||H.actions?.[0]};return vG.jsx("div",{className:d1("flex gap-2",B==="vertical"?"flex-col":"flex-row flex-wrap"),children:N.map((F)=>{let P=_(F.id);return vG.jsx("button",{onClick:()=>{if(P)U?.({type:P.type,payload:{...P.payload,buttonId:F.id},widgetId:H.id,timestamp:new Date})},className:d1("px-4 py-2 rounded-lg font-medium transition-colors text-sm",G[F.variant||"secondary"]),children:F.label},F.id)})})}function mR({widget:H,onAction:U}){let{columns:B,rows:N,caption:G,compact:_=!1,striped:F=!1}=H.props,P=H.isStreaming??!1,E=pb.useRef(new Set),[T,R]=pb.useState(new Set);pb.useEffect(()=>{let I=new Set;if(N.forEach((l,n)=>{let b0=l.id||`row-${n}`;if(!E.current.has(b0))I.add(b0)}),N.forEach((l,n)=>{let b0=l.id||`row-${n}`;E.current.add(b0)}),I.size>0){R(I);let l=setTimeout(()=>{R(new Set)},500);return()=>clearTimeout(l)}},[N]);let V=(I)=>{switch(I){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return P6.jsx("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:P6.jsx("div",{className:"overflow-x-auto",children:P6.jsxs("table",{className:"w-full",children:[G&&P6.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:G}),P6.jsx("thead",{children:P6.jsx("tr",{className:"bg-neutral-50 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:B.map((I)=>P6.jsx("th",{className:d1("font-semibold text-neutral-900 dark:text-white",_?"px-3 py-2 text-xs":"px-4 py-3 text-sm",V(I.align)),style:I.width?{width:I.width}:void 0,children:I.label},I.key))})}),P6.jsxs("tbody",{children:[N.map((I,l)=>{let n=I.id||`row-${l}`,b0=T.has(n);return P6.jsx("tr",{className:d1("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",F&&l%2===1&&"bg-neutral-50/50 dark:bg-neutral-800/50",b0&&"apteva-table-row-new"),onClick:()=>{if(H.actions&&H.actions.length>0)U?.({type:H.actions[0].type,payload:I,widgetId:H.id,timestamp:new Date})},style:{cursor:H.actions?.length?"pointer":"default"},children:B.map((t)=>P6.jsx("td",{className:d1("text-neutral-700 dark:text-neutral-300",_?"px-3 py-2 text-xs":"px-4 py-3 text-sm",V(t.align)),children:I[t.key]??"—"},t.key))},n)}),N.length===0&&!P&&P6.jsx("tr",{children:P6.jsx("td",{colSpan:B.length||1,className:"px-4 py-8 text-center text-sm text-neutral-500 dark:text-neutral-400",children:"No data available"})}),P&&P6.jsx("tr",{className:"apteva-table-streaming",children:P6.jsx("td",{colSpan:B.length||1,className:"px-4 py-3 text-center",children:P6.jsxs("div",{className:"flex items-center justify-center gap-3 text-neutral-500 dark:text-neutral-400",children:[P6.jsxs("div",{className:"flex gap-1",children:[P6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),P6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),P6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),P6.jsx("span",{className:"text-sm",children:"Loading more..."})]})})})]})]})})})}function dR({widget:H,onAction:U}){let{title:B,fields:N}=H.props,[G,_]=aq.useState(()=>{let R={};return N.forEach((V)=>{R[V.name]=V.defaultValue??(V.type==="checkbox"?!1:"")}),R}),F=(R,V)=>{_((I)=>({...I,[R]:V}))},P=(R)=>{if(R.preventDefault(),H.actions?.[0]&&U)U({type:H.actions[0].type,payload:{...H.actions[0].payload,formData:G},widgetId:H.id,timestamp:new Date})},E=(R)=>{switch(R.type){case"text":case"password":case"number":case"date":return a6.jsx("input",{type:R.type,name:R.name,value:G[R.name]||"",onChange:(I)=>F(R.name,R.type==="number"?Number(I.target.value):I.target.value),placeholder:R.placeholder,required:R.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 a6.jsx("textarea",{name:R.name,value:G[R.name]||"",onChange:(I)=>F(R.name,I.target.value),placeholder:R.placeholder,required:R.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 a6.jsxs("select",{name:R.name,value:G[R.name]||"",onChange:(I)=>F(R.name,I.target.value),required:R.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:[a6.jsx("option",{value:"",children:R.placeholder||"Select..."}),R.options?.map((I)=>a6.jsx("option",{value:I.value,children:I.label},I.value))]});case"checkbox":return a6.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[a6.jsx("input",{type:"checkbox",name:R.name,checked:G[R.name]||!1,onChange:(I)=>F(R.name,I.target.checked),className:"w-4 h-4 rounded border-neutral-300 dark:border-neutral-600 text-blue-500 focus:ring-blue-500"}),a6.jsx("span",{className:"!text-neutral-700 dark:!text-neutral-300",children:R.label})]});default:return null}},T=H.actions?.find((R)=>R.type==="submit")||H.actions?.[0];return a6.jsxs("form",{onSubmit:P,className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[a6.jsxs("div",{className:"p-4",children:[B&&a6.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white mb-4",children:B}),a6.jsx("div",{className:"space-y-3",children:N.map((R)=>a6.jsxs("div",{className:R.type==="checkbox"?"":"space-y-1",children:[R.type!=="checkbox"&&a6.jsxs("label",{className:"block !text-sm font-medium !text-neutral-600 dark:!text-neutral-400",children:[R.label,R.required&&a6.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),E(R)]},R.name))})]}),T&&a6.jsx("div",{className:"px-4 pb-4",children:a6.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:T.label||"Submit"})})]})}function aR({widget:H}){let{src:U,alt:B,caption:N}=H.props;return s3.jsxs("figure",{className:"overflow-hidden rounded-xl",children:[s3.jsx("img",{src:U,alt:B,className:"w-full h-auto object-contain bg-neutral-100 dark:bg-neutral-800",loading:"lazy"}),N&&s3.jsx("figcaption",{className:"mt-2 text-center text-sm text-neutral-600 dark:text-neutral-400",children:N})]})}function cR({type:H,status:U}){if(U==="completed")return H0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})});if(U==="error")return H0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})});if(U==="active")return H0.jsx("div",{className:"w-3.5 h-3.5 rounded-full bg-current animate-pulse"});let B="w-4 h-4";if(H==="time"||H==="schedule"||H==="clock")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})});if(H==="recurring"||H==="repeat")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="agent"||H?.startsWith("@"))return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="email"||H==="mail")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="slack"||H==="message"||H==="chat")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="webhook"||H==="api")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="build"||H==="compile"||H==="package")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="test"||H==="check"||H==="verify")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="deploy"||H==="rocket"||H==="launch")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})});if(H==="push"||H==="upload"||H==="cloud")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="generate"||H==="create"||H==="document"||H==="file")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="review"||H==="inspect"||H==="eye")return H0.jsxs("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[H0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),H0.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(H==="analyze"||H==="research"||H==="chart")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="scrape"||H==="crawl"||H==="spider")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="data"||H==="database"||H==="storage")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="notification"||H==="bell"||H==="alert")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="transform"||H==="process"||H==="convert")return H0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})});return H0.jsx("div",{className:"w-2 h-2 rounded-full bg-current opacity-50"})}function yR({icon:H}){if(H==="research"||H==="multi-agent"||H==="agents")return H0.jsx("div",{className:"w-10 h-10 rounded-lg bg-purple-100 dark:bg-purple-500/20 flex items-center justify-center",children:H0.jsx("svg",{className:"w-6 h-6 text-purple-600 dark:text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(H==="schedule"||H==="report"||H==="calendar")return H0.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-100 dark:bg-amber-500/20 flex items-center justify-center",children:H0.jsx("svg",{className:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="recurring"||H==="repeat"||H==="sync")return H0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:H0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="analyze"||H==="analysis"||H==="chart")return H0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:H0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="deploy"||H==="rocket"||H==="launch")return H0.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-500/20 flex items-center justify-center",children:H0.jsx("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(H==="automation"||H==="workflow"||H==="process")return H0.jsx("div",{className:"w-10 h-10 rounded-lg bg-indigo-100 dark:bg-indigo-500/20 flex items-center justify-center",children:H0.jsx("svg",{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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(H==="data"||H==="pipeline"||H==="etl")return H0.jsx("div",{className:"w-10 h-10 rounded-lg bg-emerald-100 dark:bg-emerald-500/20 flex items-center justify-center",children:H0.jsx("svg",{className:"w-6 h-6 text-emerald-600 dark:text-emerald-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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 H0.jsx("div",{className:"w-10 h-10 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center",children:H0.jsx("svg",{className:"w-6 h-6 text-neutral-600 dark:text-neutral-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H0.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 jR(){return H0.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:H0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}var R5={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 oR(H,U){if(H.color&&R5[H.color])return R5[H.color];if(U==="time"||U==="schedule"||U==="clock")return R5.blue;if(U==="agent"||U?.startsWith("@"))return R5.purple;if(U==="email"||U==="slack"||U==="message"||U==="notification")return R5.cyan;if(U==="generate"||U==="document"||U==="create")return R5.amber;if(U==="deploy"||U==="rocket"||U==="launch")return R5.rose;if(U==="build"||U==="compile"||U==="package")return R5.indigo;if(U==="test"||U==="check"||U==="verify")return R5.emerald;if(U==="data"||U==="database"||U==="storage")return R5.orange;return R5.blue}function xR({widget:H}){let{title:U,subtitle:B,icon:N,steps:G}=H.props;return H0.jsxs("div",{className:"rounded-xl bg-white dark:bg-neutral-900 border border-neutral-200 dark:border-neutral-700 overflow-hidden",children:[H0.jsxs("div",{className:"px-4 py-4 flex items-center gap-4",children:[H0.jsx(yR,{icon:N}),H0.jsxs("div",{className:"flex-1 min-w-0",children:[H0.jsx("h3",{className:"font-semibold text-base text-neutral-900 dark:text-white truncate",children:U}),B&&H0.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 truncate mt-0.5",children:B})]})]}),H0.jsx("div",{className:"px-4 pb-4",children:H0.jsx("div",{className:"flex flex-wrap items-center gap-2",children:G.map((_,F)=>{let P=F===G.length-1,E=_.status==="active",T=_.status==="completed",R=_.status==="error",V=_.status==="skipped",I=_.label,l=_.type;if(!l)if(I.startsWith("@"))l="agent";else if(/^\d+[ap]m$/i.test(I)||/^(mon|tue|wed|thu|fri|sat|sun)/i.test(I))l="time";else{let t=I.toLowerCase();l={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"}[t]}let n,b0="";if(E)n="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(T)n="bg-emerald-100 dark:bg-emerald-900/40 !text-emerald-700 dark:!text-emerald-300 border-emerald-400 dark:border-emerald-400";else if(R)n="bg-red-100 dark:bg-red-900/40 !text-red-700 dark:!text-red-300 border-red-400 dark:border-red-400";else if(V)n="bg-neutral-100 dark:bg-neutral-800 !text-neutral-400 dark:!text-neutral-500 border-neutral-300 dark:border-neutral-600",b0="line-through";else n=oR(_,l);return H0.jsxs("div",{className:"flex items-center gap-2",children:[H0.jsxs("span",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium border transition-colors ${n} ${b0}`,children:[H0.jsx(cR,{type:l,status:_.status}),I]}),!P&&H0.jsx(jR,{})]},_.id)})})})]})}function bG({widget:H,onAction:U}){return u4.jsx("div",{className:"apteva-widget",children:(()=>{switch(H.type){case"card":return u4.jsx(hR,{widget:H,onAction:U});case"list":return u4.jsx(SR,{widget:H,onAction:U});case"button":return u4.jsx(gR,{widget:H,onAction:U});case"button_group":return u4.jsx(uR,{widget:H,onAction:U});case"table":return u4.jsx(mR,{widget:H,onAction:U});case"form":return u4.jsx(dR,{widget:H,onAction:U});case"image":return u4.jsx(aR,{widget:H});case"flow":return u4.jsx(xR,{widget:H});default:return u4.jsxs("div",{className:"p-4 border border-yellow-300 bg-yellow-50 rounded-lg",children:[u4.jsxs("p",{className:"text-sm text-yellow-800",children:["Unknown widget type: ",H.type]}),u4.jsx("pre",{className:"text-xs mt-2 overflow-auto",children:JSON.stringify(H,null,2)})]})}})()})}function nY({widgets:H,onAction:U,onWidgetMount:B,layout:N="stack",spacing:G="normal",columns:_=3,className:F}){mq.useEffect(()=>{H.forEach((T)=>{B?.(T.id)})},[H,B]);let P={stack:"flex flex-col",grid:`grid grid-cols-1 md:grid-cols-${_}`,masonry:"columns-1 md:columns-2 lg:columns-3"},E={tight:"gap-2",normal:"gap-4",loose:"gap-6"};return zG.jsx("div",{className:d1(P[N],E[G],F),children:H.map((T)=>zG.jsx(bG,{widget:T,onAction:U},T.id))})}function Cq({type:H,className:U}){switch(H){case"card":return T0.jsx("div",{className:d1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",U),children:T0.jsxs("div",{className:"p-4 space-y-3",children:[T0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"}),T0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"}),T0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-5/6"})]})});case"list":return T0.jsx("div",{className:d1("apteva-widget-skeleton animate-pulse space-y-2",U),children:[1,2,3].map((B)=>T0.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border border-neutral-200 dark:border-neutral-800",children:[T0.jsx("div",{className:"w-10 h-10 bg-neutral-200 dark:bg-neutral-700 rounded-full flex-shrink-0"}),T0.jsxs("div",{className:"flex-1 space-y-2",children:[T0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2"}),T0.jsx("div",{className:"h-2 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"})]})]},B))});case"button_group":return T0.jsxs("div",{className:d1("apteva-widget-skeleton animate-pulse flex gap-2",U),children:[T0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),T0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),T0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"})]});case"form":return T0.jsxs("div",{className:d1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4 space-y-4",U),children:[T0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/3"}),T0.jsxs("div",{className:"space-y-3",children:[T0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"}),T0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"})]}),T0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})]});case"chart":return T0.jsxs("div",{className:d1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",U),children:[T0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/4 mb-4"}),T0.jsxs("div",{className:"flex items-end gap-2 h-32",children:[T0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/2"}),T0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-3/4"}),T0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/3"}),T0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-full"}),T0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-2/3"})]})]});case"image":return T0.jsx("div",{className:d1("apteva-widget-skeleton animate-pulse",U),children:T0.jsx("div",{className:"aspect-video bg-neutral-200 dark:bg-neutral-700 rounded-lg"})});case"gallery":return T0.jsx("div",{className:d1("apteva-widget-skeleton animate-pulse grid grid-cols-3 gap-2",U),children:[1,2,3].map((B)=>T0.jsx("div",{className:"aspect-square bg-neutral-200 dark:bg-neutral-700 rounded-lg"},B))});case"map":return T0.jsx("div",{className:d1("apteva-widget-skeleton animate-pulse",U),children:T0.jsx("div",{className:"h-48 bg-neutral-200 dark:bg-neutral-700 rounded-lg flex items-center justify-center",children:T0.jsxs("svg",{className:"w-8 h-8 text-neutral-400 dark:text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[T0.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"}),T0.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 T0.jsxs("div",{className:d1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",U),children:[T0.jsxs("div",{className:"flex bg-neutral-100 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:[T0.jsx("div",{className:"flex-1 px-4 py-3",children:T0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-16"})}),T0.jsx("div",{className:"flex-1 px-4 py-3",children:T0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-20"})}),T0.jsx("div",{className:"flex-1 px-4 py-3",children:T0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-14"})})]}),[1,2,3].map((B)=>T0.jsxs("div",{className:"flex border-b border-neutral-200 dark:border-neutral-800 last:border-b-0",children:[T0.jsx("div",{className:"flex-1 px-4 py-3",children:T0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})}),T0.jsx("div",{className:"flex-1 px-4 py-3",children:T0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-16"})}),T0.jsx("div",{className:"flex-1 px-4 py-3",children:T0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-20"})})]},B))]});default:return T0.jsxs("div",{className:d1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",U),children:[T0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2 mb-2"}),T0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"})]})}}function lR(H){return/\.(jpg|jpeg|png|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(H)}function uv(H,U=""){let B=[],N=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|(\*\*|__)(.+?)\5|`([^`]+)`/g,G=0,_,F=0;while((_=N.exec(H))!==null){if(_.index>G)B.push(H.slice(G,_.index));if(_[1]!==void 0||_[2]!==void 0){let P=_[1]||"",E=_[2];B.push($6.jsx("img",{src:E,alt:P,className:"apteva-md-img"},`${U}img${F++}`))}else if(_[3]!==void 0||_[4]!==void 0){let P=_[3],E=_[4];if(lR(E))B.push($6.jsx("img",{src:E,alt:P,className:"apteva-md-img"},`${U}img${F++}`));else B.push($6.jsx("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:"apteva-md-link",children:P},`${U}a${F++}`))}else if(_[5]!==void 0)B.push($6.jsx("strong",{children:_[6]},`${U}b${F++}`));else if(_[7]!==void 0)B.push($6.jsx("code",{className:"apteva-md-inline-code",children:_[7]},`${U}code${F++}`));G=_.index+_[0].length}if(G<H.length)B.push(H.slice(G));return B.length>0?B:[H]}function iR(H){let U=H.split(`
187
- `),B=[],N=0,G=0;while(G<U.length){let _=U[G],F=_.match(/^##\s+(.*)$/);if(F){B.push($6.jsx("h2",{className:"apteva-md-h2",children:uv(F[1],`${N}`)},`h2${N++}`)),G++;continue}let P=_.match(/^###\s+(.*)$/);if(P){B.push($6.jsx("h3",{className:"apteva-md-h3",children:uv(P[1],`${N}`)},`h3${N++}`)),G++;continue}let E=_.match(/^(\s*)([-*+])\s+(.*)$/);if(E){let V=[],I=E[1].length;while(G<U.length){let l=U[G].match(/^(\s*)([-*+])\s+(.*)$/);if(l&&l[1].length===I)V.push($6.jsx("li",{className:"apteva-md-li",children:uv(l[3],`${N}`)},`li${N++}`)),G++;else break}B.push($6.jsx("ul",{className:"apteva-md-ul",children:V},`ul${N++}`));continue}let T=_.match(/^(\s*)(\d+)\.\s+(.*)$/);if(T){let V=[],I=T[1].length;while(G<U.length){let l=U[G].match(/^(\s*)(\d+)\.\s+(.*)$/);if(l&&l[1].length===I)V.push($6.jsx("li",{className:"apteva-md-li",children:uv(l[3],`${N}`)},`li${N++}`)),G++;else break}B.push($6.jsx("ol",{className:"apteva-md-ol",children:V},`ol${N++}`));continue}if(_.match(/^\|(.+)\|$/)&&G+1<U.length){if(U[G+1].match(/^\|([\s:-]+\|)+$/)){let l=_.split("|").filter((b0)=>b0.trim()!=="").map((b0)=>b0.trim());G+=2;let n=[];while(G<U.length)if(U[G].match(/^\|(.+)\|$/)){let t=U[G].split("|").filter((a)=>a.trim()!=="").map((a)=>a.trim());n.push(t),G++}else break;B.push($6.jsx("div",{className:"apteva-md-table-wrapper",children:$6.jsxs("table",{className:"apteva-md-table",children:[$6.jsx("thead",{children:$6.jsx("tr",{children:l.map((b0,t)=>$6.jsx("th",{className:"apteva-md-th",children:uv(b0,`th${N}${t}`)},`th${t}`))})}),$6.jsx("tbody",{children:n.map((b0,t)=>$6.jsx("tr",{children:b0.map((a,K0)=>$6.jsx("td",{className:"apteva-md-td",children:uv(a,`td${N}${t}${K0}`)},`td${K0}`))},`tr${t}`))})]})},`table-wrapper${N++}`));continue}}if(_==="")B.push($6.jsx("br",{},`br${N++}`));else B.push($6.jsxs("span",{children:[uv(_,`${N}`),G<U.length-1?`
188
- `:""]},`p${N++}`));G++}return B}function L7({content:H,className:U=""}){return $6.jsx("div",{className:`apteva-md ${U}`,children:iR(H)})}function pR({name:H,status:U,isReceiving:B=!1,inputLength:N=0,streamOutput:G}){if(U==="preparing")return P1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-preparing",children:[P1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[P1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),P1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),P1.jsxs("span",{className:"apteva-tool-label",children:[P1.jsx("strong",{children:H}),P1.jsx("span",{className:"apteva-tool-status-text",children:" preparing..."})]})]});if(U==="running")return P1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-running",children:[P1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[P1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),P1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),P1.jsxs("span",{className:"apteva-tool-label",children:[P1.jsx("strong",{children:H}),G?P1.jsx("span",{className:"apteva-tool-stream-separator",children:" · "}):null,G?P1.jsx("span",{className:"apteva-tool-stream-output",children:G}):P1.jsxs(P1.Fragment,{children:[P1.jsx("span",{className:"apteva-tool-status-text",children:" running"}),P1.jsxs("span",{className:"apteva-tool-dots",children:[P1.jsx("span",{children:"."}),P1.jsx("span",{children:"."}),P1.jsx("span",{children:"."})]})]})]})]});if(U==="completed")return P1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-completed",children:[P1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:P1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),P1.jsx("span",{className:"apteva-tool-label",children:H})]});return P1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-error",children:[P1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:P1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),P1.jsxs("span",{className:"apteva-tool-label",children:[H," failed"]})]})}function rR({message:H,onAction:U,enableWidgets:B,onWidgetRender:N}){let G=H.role==="user",_=H.metadata?.content_segments,F=H.metadata?.isStreaming===!0,P=H.content||_&&_.length>0,E=mv.useRef(new Set),T=mv.useMemo(()=>{if(!B||G||!H.content)return[];return VX(H.content).segments.filter((p)=>p.type==="widget"&&!!p.widget).map((p)=>p.widget)},[B,G,H.content]);mv.useEffect(()=>{if(N&&H.widgets){for(let o of H.widgets)if(!E.current.has(o.id))E.current.add(o.id),N(o)}},[H.widgets,N]),mv.useEffect(()=>{if(N&&T.length>0){for(let o of T)if(!E.current.has(o.id))E.current.add(o.id),N(o)}},[T,N]);let R=(o)=>{if(!B||G)return N0.jsx(L7,{content:o});let X0=VX(o).segments.filter((P0)=>P0.type==="text"&&P0.content).map((P0)=>P0.content).join("");if(!X0.trim())return null;return N0.jsx(L7,{content:X0})},V=()=>{if(!B||G||!H.content)return null;let o=VX(H.content),p=[],X0="";if(o.segments.forEach((P0,n0)=>{if(P0.type==="text"&&P0.content)X0+=P0.content;else if(P0.type==="widget"&&P0.widget){if(X0.trim())p.push(N0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:N0.jsx("div",{className:"apteva-message-content-assistant",children:N0.jsx(L7,{content:X0})})},`text-${n0}`)),X0="";p.push(N0.jsx("div",{className:"apteva-widget-standalone",children:N0.jsx(bG,{widget:P0.widget,onAction:U})},`widget-${n0}`))}else if(P0.type==="widget_pending"&&P0.pendingType){if(X0.trim())p.push(N0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:N0.jsx("div",{className:"apteva-message-content-assistant",children:N0.jsx(L7,{content:X0})})},`text-${n0}`)),X0="";p.push(N0.jsx("div",{className:"apteva-widget-standalone",children:N0.jsx(Cq,{type:P0.pendingType})},`pending-${n0}`))}}),X0.trim())p.push(N0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:N0.jsx("div",{className:"apteva-message-content-assistant",children:N0.jsx(L7,{content:X0})})},"text-final"));return p.length>0?p:null},I=H.metadata?.attachments||[],l=I.length>0,n=()=>{if(!l)return null;return N0.jsx("div",{className:"apteva-message-attachments flex flex-wrap gap-2 mb-2 justify-end",children:I.map((o,p)=>{let X0=o.type.startsWith("image/"),P0=o.type==="application/pdf";if(X0&&o.preview)return N0.jsx("div",{className:"apteva-attachment-image relative rounded-lg overflow-hidden shadow-sm",children:N0.jsx("img",{src:o.preview,alt:o.name,className:"max-w-[150px] max-h-[150px] object-cover"})},p);return N0.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:[N0.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:P0?N0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:N0.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"})}):N0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:N0.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"})})}),N0.jsxs("div",{className:"flex flex-col min-w-0",children:[N0.jsx("span",{className:"text-sm font-medium text-neutral-800 dark:text-neutral-200 truncate max-w-[180px]",children:o.name}),N0.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[P0?"PDF":"Document"," · ",DX(o.size)]})]})]},p)})})},b0=()=>{if(G)return N0.jsx("div",{className:"apteva-message-text",children:H.content});if(F&&!P)return N0.jsxs("div",{className:"apteva-typing-indicator",children:[N0.jsx("span",{}),N0.jsx("span",{}),N0.jsx("span",{})]});if(_&&_.length>0)return null;return R(H.content)},t=(o,p)=>{if(!B)return N0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:N0.jsx("div",{className:"apteva-message-content-assistant",children:N0.jsx(L7,{content:o})})},p);let X0=VX(o),P0=[],n0="";if(X0.segments.forEach((z1,c0)=>{if(z1.type==="text"&&z1.content)n0+=z1.content;else if(z1.type==="widget"&&z1.widget){if(n0.trim())P0.push(N0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:N0.jsx("div",{className:"apteva-message-content-assistant",children:N0.jsx(L7,{content:n0})})},`${p}-text-${c0}`)),n0="";P0.push(N0.jsx("div",{className:"apteva-widget-standalone",children:N0.jsx(bG,{widget:z1.widget,onAction:U})},`${p}-widget-${c0}`))}else if(z1.type==="widget_pending"&&z1.pendingType){if(n0.trim())P0.push(N0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:N0.jsx("div",{className:"apteva-message-content-assistant",children:N0.jsx(L7,{content:n0})})},`${p}-text-${c0}`)),n0="";P0.push(N0.jsx("div",{className:"apteva-widget-standalone",children:N0.jsx(Cq,{type:z1.pendingType})},`${p}-pending-${c0}`))}}),n0.trim())P0.push(N0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:N0.jsx("div",{className:"apteva-message-content-assistant",children:N0.jsx(L7,{content:n0})})},`${p}-text-final`));return P0},a=()=>{if(!_||_.length===0)return null;let o=[];return _.forEach((p,X0)=>{if(p.type==="text"&&p.content){let P0=t(p.content,`seg-${X0}`);if(Array.isArray(P0))o.push(...P0);else o.push(P0)}else if(p.type==="tool")o.push(N0.jsx("div",{className:"apteva-tool-call-standalone",children:N0.jsx(pR,{name:p.name,status:p.status||(p.result!==void 0?"completed":"running"),isReceiving:p.isReceiving,inputLength:p.inputLength,streamOutput:p.streamOutput})},p.id))}),o};if(!G&&(_&&_.length>0))return N0.jsxs("div",{className:"apteva-message-segmented",children:[a(),H.widgets&&H.widgets.length>0&&N0.jsx("div",{className:"apteva-widget-standalone",children:N0.jsx(nY,{widgets:H.widgets,onAction:U,layout:"stack"})}),N0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:H.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});let K0=V();if(!G&&B&&K0)return N0.jsxs("div",{className:"apteva-message-segmented",children:[K0,H.widgets&&H.widgets.length>0&&N0.jsx("div",{className:"apteva-widget-standalone",children:N0.jsx(nY,{widgets:H.widgets,onAction:U,layout:"stack"})}),N0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:H.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});if(G&&l)return N0.jsxs("div",{className:"apteva-message-segmented apteva-message-user-with-attachments flex flex-col items-end",children:[n(),H.content&&N0.jsx("div",{className:"apteva-message-bubble apteva-message-user",children:N0.jsx("div",{className:"apteva-message-content-user",children:N0.jsx("div",{className:"apteva-message-text",children:H.content})})}),N0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-user",suppressHydrationWarning:!0,children:H.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});return N0.jsxs("div",{className:d1("apteva-message-bubble",G?"apteva-message-user":"apteva-message-assistant"),children:[N0.jsx("div",{className:G?"apteva-message-content-user":"apteva-message-content-assistant",children:b0()}),H.widgets&&H.widgets.length>0&&N0.jsx("div",{className:"apteva-widget-standalone",children:N0.jsx(nY,{widgets:H.widgets,onAction:U,layout:"stack"})}),N0.jsx("div",{className:d1("apteva-message-timestamp",G?"apteva-message-timestamp-user":"apteva-message-timestamp-assistant"),suppressHydrationWarning:!0,children:H.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})}var hq=()=>x0.jsx("svg",{className:"w-12 h-12 sm:w-16 sm:h-16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x0.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"})}),tY=()=>x0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})});function nR({title:H,subtitle:U,icon:B,prompts:N,variant:G="centered",chatVariant:_="default",onPromptClick:F}){let P=(N||[]).map((R)=>typeof R==="string"?{text:R}:R),E=P.length>0,T=H||U||B;if(!T&&!E)return x0.jsx("div",{className:"flex items-center justify-center h-full !text-neutral-500 dark:!text-neutral-400",children:x0.jsxs("div",{className:"text-center space-y-2",children:[x0.jsx("div",{className:"flex justify-center",children:x0.jsx(hq,{})}),x0.jsx("p",{className:"text-sm",children:"No messages yet. Start a conversation!"})]})});if(G==="minimal")return x0.jsxs("div",{className:"flex flex-col h-full px-4 py-4",children:[T&&x0.jsxs("div",{className:"mb-4",children:[H&&x0.jsx("h2",{className:"text-lg font-semibold !text-neutral-900 dark:!text-white",children:H}),U&&x0.jsx("p",{className:"text-sm !text-neutral-500 dark:!text-neutral-400 mt-1",children:U})]}),E&&x0.jsx("div",{className:"flex-1 space-y-2",children:P.map((R,V)=>x0.jsx("button",{onClick:()=>F(R.text),className:d1("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:x0.jsxs("div",{className:"flex items-center gap-3",children:[x0.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:R.icon||x0.jsx(tY,{})}),x0.jsxs("div",{className:"flex-1 min-w-0",children:[x0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white truncate",children:R.text}),R.description&&x0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 truncate",children:R.description})]})]})},V))})]});return x0.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 py-6 sm:py-8",children:[x0.jsxs("div",{className:"text-center mb-6 sm:mb-8 max-w-md",children:[x0.jsx("div",{className:"mb-4 !text-neutral-400 dark:!text-neutral-500 flex justify-center",children:B||x0.jsx(hq,{})}),H&&x0.jsx("h1",{className:"text-xl sm:text-2xl font-semibold !text-neutral-900 dark:!text-white mb-2",children:H}),U&&x0.jsx("p",{className:"text-sm sm:text-base !text-neutral-500 dark:!text-neutral-400",children:U})]}),E&&x0.jsxs("div",{className:"w-full max-w-2xl",children:[x0.jsx("div",{className:"sm:hidden space-y-2",children:P.map((R,V)=>x0.jsx("button",{onClick:()=>F(R.text),className:d1("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:x0.jsxs("div",{className:"flex items-center gap-3",children:[x0.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:R.icon||x0.jsx(tY,{})}),x0.jsxs("div",{className:"flex-1 min-w-0",children:[x0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white",children:R.text}),R.description&&x0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 line-clamp-1",children:R.description})]}),x0.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:x0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})},V))}),x0.jsx("div",{className:"hidden sm:grid sm:grid-cols-2 gap-3",children:P.map((R,V)=>x0.jsx("button",{onClick:()=>F(R.text),className:d1("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:x0.jsxs("div",{className:"flex items-start gap-3",children:[x0.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:R.icon||x0.jsx(tY,{})}),x0.jsxs("div",{className:"flex-1 min-w-0",children:[x0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white leading-snug",children:R.text}),R.description&&x0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-1 line-clamp-2",children:R.description})]})]})},V))})]})]})}function tR({messages:H,onAction:U,welcomeTitle:B,welcomeSubtitle:N,welcomeIcon:G,suggestedPrompts:_,welcomeVariant:F,chatVariant:P,onPromptClick:E,enableWidgets:T,onWidgetRender:R}){let V=lb.useRef(null),I=lb.useRef(!0),l=lb.useRef(0),n=()=>{if(V.current){let{scrollTop:b0,scrollHeight:t,clientHeight:a}=V.current;I.current=t-b0-a<100}};return lb.useEffect(()=>{if(V.current&&I.current){let b0=V.current.scrollHeight;if(b0!==l.current)V.current.scrollTop=b0,l.current=b0}},[H]),t3.jsx("div",{ref:V,className:"apteva-message-list apteva-scrollbar-hidden",onScroll:n,children:H.length===0?t3.jsx(nR,{title:B,subtitle:N,icon:G,prompts:_,variant:F,chatVariant:P,onPromptClick:E||(()=>{})}):H.map((b0)=>t3.jsx("div",{className:b0.role==="user"?"apteva-message-row-user":"apteva-message-row-assistant",children:t3.jsx(rR,{message:b0,onAction:U,enableWidgets:T,onWidgetRender:R})},b0.id))})}function sR({onSendMessage:H,placeholder:U="Type a message...",disabled:B=!1,isLoading:N=!1,onStop:G,onFileUpload:_,onSwitchMode:F}){let[P,E]=j5.useState(""),[T,R]=j5.useState(!1),[V,I]=j5.useState([]),[l,n]=j5.useState(null),[b0,t]=j5.useState(!1),a=j5.useRef(null),K0=j5.useRef(null),o=j5.useRef(null),p=(W0)=>{if(W0.key==="Enter"&&!W0.shiftKey)W0.preventDefault(),X0()},X0=()=>{let W0=P.trim(),S0=V.length>0;if((W0||S0)&&!B){let e=V.map((Z0)=>Z0.file);if(H(P.trim(),e.length>0?e:void 0),E(""),I([]),n(null),t(!1),a.current)a.current.style.height="auto"}},P0=(W0)=>{E(W0.target.value),W0.target.style.height="auto";let S0=W0.target.scrollHeight;W0.target.style.height=`${S0}px`;let e=W0.target.value.includes(`
189
- `),k0=S0>36;if(!b0&&(e||k0))t(!0);else if(b0&&!e&&!k0&&W0.target.value.length<20)t(!1)},n0=(W0)=>{if(W0.target.files&&W0.target.files.length>0){let S0=Array.from(W0.target.files),e=[],Z0=[];if(S0.forEach((k0)=>{let L0=Sq(k0);if(L0.valid){let v1={file:k0};if(k0.type.startsWith("image/"))v1.preview=URL.createObjectURL(k0);e.push(v1)}else Z0.push(L0.error||"Invalid file")}),e.length>0)I((k0)=>[...k0,...e]);if(Z0.length>0)n(Z0.join(", ")),setTimeout(()=>n(null),5000);_?.(W0.target.files),R(!1),W0.target.value=""}},z1=(W0)=>{I((S0)=>{let e=S0[W0];if(e.preview)URL.revokeObjectURL(e.preview);return S0.filter((Z0,k0)=>k0!==W0)})},c0=(W0)=>{if(W0.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(W0==="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:[l&&a0.jsx("div",{className:"absolute bottom-full left-4 right-4 mb-2 p-3 bg-red-50 dark:bg-red-900/30 border border-red-200 dark:border-red-800 rounded-lg z-20",children:a0.jsxs("div",{className:"flex items-center gap-2 !text-red-700 dark:!text-red-300 text-sm",children:[a0.jsx("svg",{className:"w-4 h-4 flex-shrink-0",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:l})]})}),V.length>0&&a0.jsx("div",{className:"mb-2 flex flex-wrap gap-2",children:V.map((W0,S0)=>a0.jsxs("div",{className:"relative group flex items-center gap-2 px-3 py-2 bg-neutral-100 dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700 rounded-lg",children:[W0.preview?a0.jsx("img",{src:W0.preview,alt:W0.file.name,className:"w-8 h-8 object-cover rounded"}):a0.jsx("div",{className:"w-8 h-8 flex items-center justify-center bg-neutral-200 dark:bg-neutral-700 rounded !text-neutral-500 dark:!text-neutral-400",children:c0(W0.file.type)}),a0.jsxs("div",{className:"flex flex-col min-w-0",children:[a0.jsx("span",{className:"text-xs font-medium !text-neutral-700 dark:!text-neutral-300 truncate max-w-[120px]",children:W0.file.name}),a0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:DX(W0.file.size)})]}),a0.jsx("button",{onClick:()=>z1(S0),className:"absolute -top-1.5 -right-1.5 w-5 h-5 bg-neutral-500 hover:bg-red-500 text-white rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",title:"Remove file",children:a0.jsx("svg",{className:"w-3 h-3",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"})})})]},S0))}),a0.jsxs("div",{className:"apteva-composer",style:{gridTemplateColumns:"auto 1fr auto",gridTemplateAreas:b0?'"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:o,onClick:()=>R(!T),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"})})}),T&&a0.jsxs(a0.Fragment,{children:[a0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>R(!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:o.current?.getBoundingClientRect().left??0,bottom:window.innerHeight-(o.current?.getBoundingClientRect().top??0)+8},children:[a0.jsxs("button",{onClick:()=>{K0.current?.click(),R(!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"})]}),F&&a0.jsxs("button",{onClick:()=>{F(),R(!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:a,value:P,onChange:P0,onKeyDown:p,placeholder:U,disabled:B,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:N&&G?a0.jsx("button",{onClick:G,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:X0,disabled:!P.trim()&&V.length===0||B,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:K0,type:"file",multiple:!0,onChange:n0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}function eR({onExecute:H,state:U,response:B,error:N,plan:G,streamedContent:_,toolName:F,onApprove:P,onReject:E,onReset:T,onStop:R,onExpand:V,placeholder:I="Enter your command...",disabled:l=!1}){let[n,b0]=N7.useState(""),[t,a]=N7.useState([]),[K0,o]=N7.useState(null),[p,X0]=N7.useState(!1),P0=N7.useRef(null),n0=N7.useRef(null),z1=N7.useRef(null),c0=()=>{let u0=n.trim(),Q1=t.length>0;if((u0||Q1)&&!l&&U==="idle"){let R1=t.map((K6)=>K6.file);H(n.trim(),R1.length>0?R1:void 0),b0(""),a([])}},W0=(u0)=>{if(u0.key==="Enter"&&!u0.shiftKey)u0.preventDefault(),c0()},S0=()=>{T?.(),P0.current?.focus()},e=(u0)=>{if(b0(u0),P0.current)P0.current.style.height="auto",P0.current.style.height=`${Math.min(P0.current.scrollHeight,120)}px`},Z0=(u0)=>{if(u0.target.files&&u0.target.files.length>0){let Q1=Array.from(u0.target.files),R1=[],K6=[];if(Q1.forEach((e1)=>{let i1=Sq(e1);if(i1.valid){let U6={file:e1};if(e1.type.startsWith("image/"))U6.preview=URL.createObjectURL(e1);R1.push(U6)}else K6.push(i1.error||"Invalid file")}),R1.length>0)a((e1)=>[...e1,...R1]);if(K6.length>0)o(K6.join(", ")),setTimeout(()=>o(null),5000);X0(!1),u0.target.value=""}},k0=(u0)=>{a((Q1)=>{let R1=Q1[u0];if(R1.preview)URL.revokeObjectURL(R1.preview);return Q1.filter((K6,e1)=>e1!==u0)})},L0=(u0)=>{if(u0.startsWith("image/"))return M0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.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(u0==="application/pdf")return M0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.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 M0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.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"})})},v1=()=>{if(U==="loading"){if(F)return{text:F,isToolCall:!0};if(_)return{text:_,isToolCall:!1};return{text:"Processing...",isToolCall:!1}}if(U==="success"&&B)return{text:B,isToolCall:!1};if(U==="error"&&N)return{text:N,isToolCall:!1};if(U==="plan-pending"&&G)return{text:G,isToolCall:!1};return{text:"",isToolCall:!1}},R6=U!=="idle",{text:s1,isToolCall:a1}=v1();return M0.jsxs("div",{className:"w-full relative",children:[K0&&M0.jsx("div",{className:"absolute -top-12 left-0 right-0 mx-3 p-2 bg-red-50 dark:bg-red-900/30 border border-red-200 dark:border-red-800 rounded-lg z-30",children:M0.jsxs("div",{className:"flex items-center gap-2 !text-red-700 dark:!text-red-300 text-xs",children:[M0.jsx("svg",{className:"w-3 h-3 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),M0.jsx("span",{children:K0})]})}),M0.jsxs("div",{className:d1("apteva-composer flex items-center gap-2 px-3 py-2 border-2 bg-white dark:bg-neutral-900 transition-all duration-200",U==="idle"&&"border-neutral-200 dark:border-neutral-700",U==="loading"&&"border-blue-400 dark:border-blue-500",U==="plan-pending"&&"border-amber-400 dark:border-amber-500",U==="success"&&"border-green-400 dark:border-green-500",U==="error"&&"border-red-400 dark:border-red-500"),children:[M0.jsxs("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:[U==="idle"&&M0.jsxs("div",{className:"relative",children:[M0.jsx("button",{ref:z1,onClick:()=>X0(!p),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:M0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),p&&M0.jsxs(M0.Fragment,{children:[M0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>X0(!1)}),M0.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:z1.current?.getBoundingClientRect().left??0,top:(z1.current?.getBoundingClientRect().bottom??0)+8},children:[M0.jsxs("button",{onClick:()=>{n0.current?.click(),X0(!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:[M0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M0.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)"})}),M0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),V&&M0.jsxs("button",{onClick:()=>{V(),X0(!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:[M0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.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"})}),M0.jsx("span",{className:"!text-sm font-medium",children:"Expand to chat"})]})]})]})]}),U==="loading"&&!F&&M0.jsx("div",{className:"w-4 h-4 border-2 border-blue-200 border-t-blue-500 rounded-full animate-spin"}),U==="loading"&&F&&M0.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]}),t.length>0&&U==="idle"&&M0.jsx("div",{className:"flex items-center gap-1 flex-shrink-0",children:t.map((u0,Q1)=>M0.jsxs("div",{className:"relative group flex items-center justify-center w-6 h-6 bg-neutral-100 dark:bg-neutral-800 rounded overflow-hidden",title:u0.file.name,children:[u0.preview?M0.jsx("img",{src:u0.preview,alt:u0.file.name,className:"w-6 h-6 object-cover"}):M0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:L0(u0.file.type)}),M0.jsx("button",{onClick:()=>k0(Q1),className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 flex items-center justify-center transition-opacity",title:"Remove",children:M0.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},Q1))}),U==="idle"?M0.jsx("textarea",{ref:P0,value:n,onChange:(u0)=>e(u0.target.value),onKeyDown:W0,placeholder:t.length>0?"Add a message...":I,disabled:l,rows:1,className:d1("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"}}):M0.jsx("div",{className:d1("flex-1 text-sm py-1 truncate flex items-center gap-2",U==="loading"&&!a1&&"!text-neutral-600 dark:!text-neutral-400",U==="loading"&&a1&&"!text-blue-600 dark:!text-blue-400",U==="success"&&"!text-neutral-900 dark:!text-neutral-100",U==="error"&&"!text-red-600 dark:!text-red-400",U==="plan-pending"&&"!text-amber-700 dark:!text-amber-300"),children:a1?M0.jsxs(M0.Fragment,{children:[M0.jsx("span",{className:"font-mono",children:s1}),M0.jsx("span",{className:"text-neutral-400 dark:text-neutral-500",children:"Running..."})]}):s1}),M0.jsx("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:U==="plan-pending"?M0.jsxs("div",{className:"flex items-center gap-1",children:[M0.jsx("button",{onClick:P,className:"px-2 py-1 bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors text-xs font-medium",children:"Approve"}),M0.jsx("button",{onClick:E,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"})]}):M0.jsxs(M0.Fragment,{children:[U==="loading"&&R&&M0.jsx("button",{onClick:R,className:"apteva-composer-stop-btn",title:"Stop generation",children:M0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}),(U==="success"||U==="error")&&M0.jsx("button",{onClick:S0,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:M0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),U==="idle"&&M0.jsx("button",{onClick:c0,disabled:!n.trim()&&t.length===0||l,className:d1("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",n.trim()||t.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:M0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14M12 5l7 7-7 7"})})})]})})]}),M0.jsx("input",{ref:n0,type:"file",multiple:!0,onChange:Z0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}var vM="http://91.99.200.48:3000/agents",bM="agt_894abd5966bc9f1e9f8f17f2a6f6b5e0",zM=class{constructor(){AR(this,"config"),this.config={apiUrl:vM,apiKey:bM}}configure(H){if(H.apiUrl)this.config.apiUrl=H.apiUrl;if(H.apiKey)this.config.apiKey=H.apiKey}getConfig(){return{...this.config}}async chat(H){try{console.log("[AptevaClient] Chat request:",{agent_id:H.agent_id,message:typeof H.message==="string"?H.message.substring(0,100)+"...":"[multi-part message]",system:H.system,stream:H.stream});let U=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify(H)});if(!U.ok){let N=await U.json().catch(()=>({error:"Request failed"}));throw Error(N.error||`Request failed with status ${U.status}`)}let B=await U.json();return{message:B.response||B.message||"",thread_id:B.thread_id,widgets:B.widgets}}catch(U){throw console.error("Chat API error:",U),U}}async chatStream(H,U,B,N){try{console.log("[AptevaClient] Chat stream request:",{agent_id:H.agent_id,message:typeof H.message==="string"?H.message.substring(0,100)+"...":"[multi-part message]",system:H.system,stream:H.stream});let G=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({...H,stream:!0})});if(!G.ok){let T=await G.json().catch(()=>({error:"Request failed"}));throw Error(T.error||`Request failed with status ${G.status}`)}let _=G.body?.getReader();if(!_)throw Error("Response body is not readable");let F=new TextDecoder,P="",E="";while(!0){let{done:T,value:R}=await _.read();if(T)break;P+=F.decode(R,{stream:!0});let V=P.split(`
190
- `);P=V.pop()||"";for(let I of V){if(!I.trim()||I.startsWith(":"))continue;if(I.startsWith("data: ")){let l=I.slice(6);if(l==="[DONE]"){B?.(E);return}try{let n=JSON.parse(l);if(n.thread_id)E=n.thread_id;U(n)}catch(n){console.warn("[AptevaClient] Failed to parse SSE data:",l)}}}}B?.(E)}catch(G){let _=G instanceof Error?G:Error("Unknown error");throw N?.(_),_}}async createThread(H,U){let B=await fetch(`${this.config.apiUrl}/agents/${H}/threads`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify({metadata:U})});if(!B.ok){let G=await B.json().catch(()=>({error:"Request failed"}));throw Error(G.error||`Request failed with status ${B.status}`)}return(await B.json()).thread_id}async getThreadMessages(H){let U=await fetch(`${this.config.apiUrl}/threads/${H}/messages`,{method:"GET",headers:{"X-API-Key":this.config.apiKey}});if(!U.ok){let N=await U.json().catch(()=>({error:"Request failed"}));throw Error(N.error||`Request failed with status ${U.status}`)}return(await U.json()).messages}async cancelRequest(H,U){try{let B=await fetch(`${this.config.apiUrl}/agents/${H}/requests/${U}/cancel`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey}});if(!B.ok){let N=await B.json().catch(()=>({error:"Cancel request failed"}));throw Error(N.error||`Cancel request failed with status ${B.status}`)}}catch(B){throw console.error("[AptevaClient] Cancel request error:",B),B}}},xb=new zM,cq=F1.forwardRef(function({agentId:U,threadId:B,initialMessages:N=[],context:G,apiUrl:_,apiKey:F,useMock:P=!1,initialMode:E="chat",showModeToggle:T=!1,onModeChange:R,commandVariant:V="default",planMode:I=!1,onPlanModeChange:l,enableStreaming:n=!0,showProgress:b0=!0,loadingText:t="Processing...",welcomeTitle:a,welcomeSubtitle:K0,welcomeIcon:o,suggestedPrompts:p,welcomeVariant:X0,onThreadChange:P0,onMessageSent:n0,onAction:z1,onFileUpload:c0,onComplete:W0,onError:S0,onToolCall:e,onToolResult:Z0,variant:k0="default",placeholder:L0,showHeader:v1=!0,headerTitle:R6="Chat",enableWidgets:s1=!1,availableWidgets:a1,compactWidgetContext:u0=!1,onWidgetRender:Q1,className:R1},K6){let[e1,i1]=F1.useState(N),[U6,h1]=F1.useState(!1),[g1,v6]=F1.useState(B||null),[D6,p1]=F1.useState(E),[f6,T6]=F1.useState(null),[u1,l0]=F1.useState("idle"),[M6,W6]=F1.useState(null),[b6,Y6]=F1.useState(null),[X5,c1]=F1.useState(0),[p6,y1]=F1.useState(""),[r6,r1]=F1.useState(""),[z6,c6]=F1.useState(null),[G4,O6]=F1.useState(null),[k6,J0]=F1.useState(""),[f0,C0]=F1.useState(""),[K1,M1]=F1.useState(I),[G6,S1]=F1.useState(!1),_6=F1.useRef(null),r0=F1.useRef(null);F1.useImperativeHandle(K6,()=>({sendMessage:async(J1)=>{if(r0.current)await r0.current(J1)},sendSystemMessage:async(J1)=>{if(r0.current)await r0.current(J1,void 0,!0)},getMessages:()=>e1,clearMessages:()=>i1([])}),[e1]);let i0=F1.useMemo(()=>{if(!s1)return G;let J1=u0?CR(a1):ER(a1);return G?`${G}
191
- ${J1}`:J1},[G,s1,a1,u0]);F1.useEffect(()=>{if(_||F)xb.configure({..._&&{apiUrl:_},...F&&{apiKey:F}})},[_,F]),F1.useEffect(()=>{if(B)P0?.(B)},[B,P0]),F1.useEffect(()=>{M1(I)},[I]),F1.useEffect(()=>{let J1=(k1)=>{let m1=k1.target;if(G6&&!m1.closest(".settings-menu-container"))S1(!1)};return document.addEventListener("mousedown",J1),()=>document.removeEventListener("mousedown",J1)},[G6]);let P4=(J1)=>{if(p1(J1),R?.(J1),J1==="command")l0("idle"),W6(null),Y6(null)},y6=D6==="chat"?"Type a message...":"Enter your command...",W4=async(J1,k1,m1)=>{let B1=k1&&k1.length>0,A=B1?k1.map((m)=>({name:m.name,type:m.type,size:m.size,preview:m.type.startsWith("image/")?URL.createObjectURL(m):void 0})):[];if(!m1){let m={id:`msg-${Date.now()}`,role:"user",content:J1,timestamp:new Date,metadata:B1?{attachments:A}:void 0};i1((x)=>[...x,m]),n0?.(m)}h1(!0);try{let m=await Tq(J1,k1);if(P){let x=await PR(1000);i1((L)=>[...L,x])}else{let x=[],L="",w=[],y=g1,s={},Y0={},w0=`msg-${Date.now()}`,A0=()=>{let j=[...x];if(L){let z0=j[j.length-1];if(z0&&z0.type==="text")z0.content=L;else j.push({type:"text",content:L})}i1((z0)=>{let V0=z0[z0.length-1];if(V0&&V0.role==="assistant")return[...z0.slice(0,-1),{...V0,content:L,widgets:w.length>0?w:void 0,metadata:{...V0.metadata,content_segments:j,isStreaming:!0}}];else return[...z0,{id:w0,role:"assistant",content:L,widgets:w.length>0?w:void 0,timestamp:new Date,metadata:{content_segments:j,isStreaming:!0}}]})};await xb.chatStream({agent_id:U,message:m,stream:!0,...g1&&{thread_id:g1},...i0&&{system:i0}},(j)=>{switch(j.type){case"thread_id":if(j.thread_id){if(y=j.thread_id,!g1)v6(j.thread_id),P0?.(j.thread_id)}break;case"request_id":if(j.request_id)O6(j.request_id);break;case"content":case"token":if(j.content)L+=j.content,A0();break;case"tool_call":if(j.tool_id&&j.tool_name){let z0=j.tool_display_name||j.tool_name;if(L)x.push({type:"text",content:L}),L="";x.push({type:"tool",id:j.tool_id,name:z0,status:"preparing"}),s[j.tool_id]="",T6(z0),e?.(j.tool_name,j.tool_id),A0()}break;case"tool_input_delta":if(j.tool_id&&j.content){let z0=j.tool_id;if(s[z0]===void 0)s[z0]="";s[z0]+=j.content;let V0=x.find((H1)=>H1.type==="tool"&&H1.id===z0);if(V0){if(V0.isReceiving=!0,V0.inputLength=s[z0].length,A0(),Y0[z0])clearTimeout(Y0[z0]);Y0[z0]=setTimeout(()=>{if(V0.status==="preparing")V0.isReceiving=!1,A0()},150)}}break;case"tool_use":if(j.tool_id){let z0=x.find((V0)=>V0.type==="tool"&&V0.id===j.tool_id);if(z0&&z0.status==="preparing")z0.status="running",z0.isReceiving=!1,A0()}break;case"tool_stream":if(j.tool_id){let z0=x.find((V0)=>V0.type==="tool"&&V0.id===j.tool_id);if(z0){if(j.event==="chunk"&&j.content){if(z0.pendingReset)z0.streamOutput="",z0.pendingReset=!1;z0.streamOutput=(z0.streamOutput||"")+j.content,A0()}else if(j.event==="log"||j.event==="progress")z0.pendingReset=!0}}break;case"tool_result":if(j.tool_id){let z0=x.find((V0)=>V0.type==="tool"&&V0.id===j.tool_id);if(z0)z0.result=j.content,z0.status="completed",z0.isReceiving=!1,Z0?.(z0.name,j.content);T6(null),A0()}break;case"widget":if(j.widget)w.push(j.widget),A0();break;case"error":throw Error(j.message||"Stream error")}},(j)=>{if(L){let z0=x[x.length-1];if(z0&&z0.type==="text")z0.content=L;else x.push({type:"text",content:L})}if(i1((z0)=>{let V0=z0[z0.length-1];if(V0&&V0.role==="assistant")return[...z0.slice(0,-1),{...V0,content:L||"Response received",widgets:w.length>0?w:void 0,metadata:{thread_id:j,content_segments:x,isStreaming:!1}}];return z0}),j&&j!==g1)v6(j),P0?.(j);h1(!1),O6(null),T6(null)},(j)=>{let z0={id:`msg-${Date.now()}-error`,role:"assistant",content:`Error: ${j.message}`,timestamp:new Date,metadata:{error:!0}};i1((V0)=>{let H1=V0[V0.length-1];if(H1&&H1.id.includes("streaming"))return[...V0.slice(0,-1),z0];return[...V0,z0]}),h1(!1),O6(null),T6(null),S0?.(j)})}}catch(m){let x={id:`msg-${Date.now()}-error`,role:"assistant",content:m instanceof Error?`Error: ${m.message}`:"An error occurred",timestamp:new Date,metadata:{error:!0}};i1((L)=>[...L,x]),S0?.(m instanceof Error?m:Error("Unknown error"))}finally{h1(!1)}};r0.current=W4;let w5=async(J1,k1)=>{let m1=J1||p6;if(!m1.trim()&&(!k1||k1.length===0)){Y6(Error("Please enter a command")),l0("error");return}if(K1&&u1!=="plan-pending"){if(l0("loading"),Y6(null),y1(""),P)setTimeout(()=>{let B1=`1. Analyze the request: "${m1}"
192
- 2. Process the data
193
- 3. Generate response
194
- 4. Return results`;J0(B1),C0(m1),l0("plan-pending")},800);else try{let A=i0?`${i0}
195
-
196
- 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.",m=await xb.chat({agent_id:U,message:m1,stream:!1,system:A});J0(m.message),C0(m1),l0("plan-pending")}catch(B1){let A=B1 instanceof Error?B1:Error("Failed to generate plan");Y6(A),l0("error"),S0?.(A)}return}l0("loading"),Y6(null),c1(0),r1(""),y1("");try{if(P)if(n){let B1="";FR(m1,(A)=>{if(A.type==="token"&&A.content){B1+=A.content,r1(B1);let m=Math.min(Math.round(B1.length/10),90);c1(m)}},(A)=>{let m={success:!0,data:{summary:B1,thread_id:A},message:B1||"Command executed successfully"};W6(m),l0("success"),c1(100),W0?.(m)},(A)=>{Y6(A),l0("error"),S0?.(A)})}else{await new Promise((A)=>setTimeout(A,1500));let B1={success:!0,data:{summary:`Executed: ${m1}`},message:"Command executed successfully"};W6(B1),l0("success"),c1(100),W0?.(B1)}else{let A=i0?`${i0}
197
-
198
- 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.`,m=k1&&k1.length>0?await Tq(m1,k1):m1;if(n){let x="",L="";await xb.chatStream({agent_id:U,message:m,stream:!0,...g1&&{thread_id:g1},system:A},(w)=>{if((w.type==="token"||w.type==="content")&&w.content){x+=w.content,r1(x),c6(null);let y=Math.min(Math.round(x.length/10),90);c1(y)}else if(w.type==="tool_call"&&w.tool_name){let y=w.tool_display_name||w.tool_name;L=w.tool_name,c6(y),e?.(w.tool_name,w.tool_id||""),x="",r1("")}else if(w.type==="tool_result")Z0?.(L,w.content),c6(null);else if(w.type==="thread_id"&&w.thread_id){if(!g1)v6(w.thread_id),P0?.(w.thread_id)}else if(w.type==="request_id"&&w.request_id)O6(w.request_id)},(w)=>{let y={success:!0,data:{summary:x,thread_id:w},message:x||"Command executed successfully"};W6(y),l0("success"),c1(100),O6(null),W0?.(y)},(w)=>{Y6(w),l0("error"),O6(null),S0?.(w)})}else{let x=await xb.chat({agent_id:U,message:m,stream:!1,...g1&&{thread_id:g1},system:A}),L={success:!0,data:{summary:x.message,thread_id:x.thread_id},widgets:x.widgets,message:x.message};W6(L),l0("success"),c1(100),W0?.(L)}}}catch(B1){let A=B1 instanceof Error?B1:Error("Unknown error");Y6(A),l0("error"),S0?.(A)}},Z5=()=>{l0("idle"),W6(null),Y6(null),c1(0),y1(""),J0(""),C0(""),r1(""),c6(null)},I5=()=>{let J1=k6;J0(""),C0("");let k1=`Execute this plan now:
199
-
200
- ${J1}`;w5(k1)},r4=()=>{y1(f0),J0(""),C0(""),l0("idle")},$4=async()=>{if(G4&&U)try{await xb.cancelRequest(U,G4)}catch(J1){console.error("Failed to cancel request:",J1)}if(h1(!1),u1==="loading")l0("idle"),r1(""),c6(null),c1(0);O6(null)},J5=V==="compact";return D4.jsxs("div",{className:d1("apteva-chat flex flex-col h-full",k0!=="default"&&`apteva-chat-${k0}`,R1),children:[v1&&D6==="chat"&&D4.jsx("div",{className:"apteva-chat-header px-4 py-3 flex items-center justify-between",children:D4.jsxs("div",{children:[D4.jsx("div",{className:"apteva-chat-title",children:R6}),D4.jsx("div",{className:d1("apteva-chat-status",U6?f6?"apteva-chat-status-tool":"apteva-chat-status-thinking":"apteva-chat-status-ready"),children:U6?f6?`Using ${f6}...`:"Thinking...":"Ready"})]})}),D6==="chat"&&D4.jsxs(D4.Fragment,{children:[D4.jsx(tR,{messages:e1,onAction:z1,welcomeTitle:a,welcomeSubtitle:K0,welcomeIcon:o,suggestedPrompts:p,welcomeVariant:X0,chatVariant:k0,onPromptClick:(J1)=>W4(J1),enableWidgets:s1,onWidgetRender:Q1}),D4.jsx(sR,{onSendMessage:W4,placeholder:L0||y6,disabled:U6,isLoading:U6,onStop:$4,onFileUpload:c0,onSwitchMode:T?()=>P4("command"):void 0})]}),D6==="command"&&D4.jsx("div",{className:"w-full",children:D4.jsx(eR,{onExecute:(J1,k1)=>{y1(J1),w5(J1,k1)},state:u1,response:M6?.data?.summary||M6?.message,error:b6?.message,plan:k6,streamedContent:r6,toolName:z6,onApprove:I5,onReject:r4,onReset:Z5,onStop:$4,onExpand:T?()=>P4("chat"):void 0,placeholder:L0||"Enter your command..."})}),D4.jsx("style",{dangerouslySetInnerHTML:{__html:`
201
- @keyframes pulse-border {
202
- 0%, 100% { border-color: rgb(59, 130, 246); }
203
- 50% { border-color: rgb(147, 197, 253); }
204
- }
205
- .animate-pulse-border {
206
- animation: pulse-border 2s ease-in-out infinite;
207
- }
208
- .apteva-composer {
209
- border-radius: var(--apteva-border-radius, 1rem) !important;
210
- }
211
- `}})]})});var Y4=Q0(I1(),1);function fX({agent:H,onClose:U,onStartAgent:B}){if(H.status==="running"&&H.port)return Y4.jsxDEV("div",{className:"w-1/2 flex flex-col overflow-hidden",children:Y4.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden relative",children:[Y4.jsxDEV("button",{onClick:U,className:"absolute top-3 right-3 z-10 text-[#666] hover:text-[#e0e0e0] transition",children:Y4.jsxDEV(Sv,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y4.jsxDEV(cq,{agentId:"default",apiUrl:`/api/agents/${H.id}`,placeholder:"Message this agent...",context:H.systemPrompt,variant:"terminal",headerTitle:H.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return Y4.jsxDEV("div",{className:"w-1/2 flex flex-col overflow-hidden",children:[Y4.jsxDEV("div",{className:"border-b border-[#1a1a1a] p-4 flex items-center justify-between",children:[Y4.jsxDEV("div",{children:[Y4.jsxDEV("h2",{className:"font-semibold",children:H.name},void 0,!1,void 0,this),Y4.jsxDEV("p",{className:"text-sm text-[#666]",children:[H.provider," / ",H.model]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y4.jsxDEV("button",{onClick:U,className:"text-[#666] hover:text-[#e0e0e0] transition",children:Y4.jsxDEV(Sv,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y4.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:Y4.jsxDEV("div",{className:"text-center",children:[Y4.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),Y4.jsxDEV("button",{onClick:B,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)]},void 0,!0,void 0,this)}var k5=Q0(I1(),1);function TX({agents:H,loading:U,selectedAgent:B,onSelectAgent:N,onCloseAgent:G,onToggleAgent:_,onDeleteAgent:F}){return k5.jsxDEV("div",{className:"flex-1 flex overflow-hidden",children:[k5.jsxDEV("div",{className:`${B?"w-1/2 border-r border-[#1a1a1a]":"flex-1"} overflow-auto p-6 transition-all`,children:U?k5.jsxDEV(cb,{message:"Loading agents..."},void 0,!1,void 0,this):H.length===0?k5.jsxDEV(JM,{},void 0,!1,void 0,this):k5.jsxDEV("div",{className:`grid gap-4 ${B?"grid-cols-1 xl:grid-cols-2":"md:grid-cols-2 xl:grid-cols-3"}`,children:H.map((P)=>k5.jsxDEV(wX,{agent:P,selected:B?.id===P.id,onSelect:()=>N(P),onToggle:(E)=>_(P,E),onDelete:(E)=>F(P.id,E)},P.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),B&&k5.jsxDEV(fX,{agent:B,onClose:G,onStartAgent:(P)=>_(B,P)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JM(){return k5.jsxDEV("div",{className:"text-center py-20 text-[#666]",children:[k5.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),k5.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)}var W1=Q0(I1(),1);function EX({agents:H,loading:U,runningCount:B,configuredProviders:N,onNavigate:G,onSelectAgent:_}){return W1.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[W1.jsxDEV("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[W1.jsxDEV(ZG,{label:"Total Agents",value:H.length},void 0,!1,void 0,this),W1.jsxDEV(ZG,{label:"Running",value:B,color:"text-[#3b82f6]"},void 0,!1,void 0,this),W1.jsxDEV(ZG,{label:"Providers",value:N.length,color:"text-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W1.jsxDEV("div",{className:"grid grid-cols-2 gap-6",children:[W1.jsxDEV(rq,{title:"Agents",actionLabel:"View All",onAction:()=>G("agents"),children:U?W1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"Loading..."},void 0,!1,void 0,this):H.length===0?W1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"No agents yet"},void 0,!1,void 0,this):W1.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:H.slice(0,5).map((F)=>W1.jsxDEV("div",{onClick:()=>_(F),className:"px-4 py-3 hover:bg-[#1a1a1a] cursor-pointer flex items-center justify-between",children:[W1.jsxDEV("div",{children:[W1.jsxDEV("p",{className:"font-medium",children:F.name},void 0,!1,void 0,this),W1.jsxDEV("p",{className:"text-sm text-[#666]",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W1.jsxDEV("span",{className:`w-2 h-2 rounded-full ${F.status==="running"?"bg-[#3b82f6]":"bg-[#444]"}`},void 0,!1,void 0,this)]},F.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(rq,{title:"Providers",actionLabel:"Manage",onAction:()=>G("settings"),children:N.length===0?W1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:[W1.jsxDEV("p",{children:"No providers configured"},void 0,!1,void 0,this),W1.jsxDEV("button",{onClick:()=>G("settings"),className:"text-[#f97316] hover:underline mt-1",children:"Add API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):W1.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:N.map((F)=>W1.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[W1.jsxDEV("div",{children:[W1.jsxDEV("p",{className:"font-medium",children:F.name},void 0,!1,void 0,this),W1.jsxDEV("p",{className:"text-sm text-[#666]",children:[F.models.length," models"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W1.jsxDEV("span",{className:"text-green-400 text-sm",children:F.keyHint},void 0,!1,void 0,this)]},F.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 ZG({label:H,value:U,color:B}){return W1.jsxDEV("div",{className:"bg-[#111] rounded p-4 border border-[#1a1a1a]",children:[W1.jsxDEV("p",{className:"text-sm text-[#666] mb-1",children:H},void 0,!1,void 0,this),W1.jsxDEV("p",{className:`text-2xl font-semibold ${B||""}`,children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function rq({title:H,actionLabel:U,onAction:B,children:N}){return W1.jsxDEV("div",{className:"bg-[#111] rounded border border-[#1a1a1a] overflow-hidden",children:[W1.jsxDEV("div",{className:"px-4 py-3 border-b border-[#1a1a1a] flex items-center justify-between",children:[W1.jsxDEV("h3",{className:"font-semibold",children:H},void 0,!1,void 0,this),W1.jsxDEV("button",{onClick:B,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N]},void 0,!0,void 0,this)}var m4=Q0(I1(),1);function HM(){let{isComplete:H,setIsComplete:U}=jY(),{agents:B,loading:N,runningCount:G,fetchAgents:_,createAgent:F,deleteAgent:P,toggleAgent:E}=cY(H===!0),{providers:T,configuredProviders:R,fetchProviders:V}=yY(H===!0),[I,l]=A7.useState(!1),[n,b0]=A7.useState(null),[t,a]=A7.useState("dashboard"),[K0,o]=A7.useState(null),[p,X0]=A7.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{...aY}});A7.useEffect(()=>{if(R.length>0&&!p.provider){let Z0=R[0],k0=Z0.models.find((L0)=>L0.recommended)?.value||Z0.models[0]?.value||"";X0((L0)=>({...L0,provider:Z0.id,model:k0}))}},[R,p.provider]),A7.useEffect(()=>{if(n){let Z0=B.find((k0)=>k0.id===n.id);if(Z0)b0(Z0);else b0(null)}},[B,n]);let P0=(Z0)=>{let k0=T.find((v1)=>v1.id===Z0),L0=k0?.models.find((v1)=>v1.recommended)?.value||k0?.models[0]?.value||"";X0((v1)=>({...v1,provider:Z0,model:L0}))},n0=async()=>{if(!p.name)return;await F(p);let Z0=R[0],k0=Z0?.models.find((L0)=>L0.recommended)?.value||Z0?.models[0]?.value||"";X0({name:"",model:k0,provider:Z0?.id||"",systemPrompt:"You are a helpful assistant.",features:{...aY}}),l(!1)},z1=async(Z0,k0)=>{k0?.stopPropagation(),o(null);let L0=await E(Z0);if(L0.error)o(L0.error)},c0=async(Z0,k0)=>{if(k0?.stopPropagation(),n?.id===Z0)b0(null);await P(Z0)},W0=(Z0)=>{b0(Z0),o(null),a("agents")},S0=(Z0)=>{a(Z0),b0(null)},e=()=>{U(!0),V()};if(H===null)return m4.jsxDEV(cb,{fullScreen:!0},void 0,!1,void 0,this);if(!H)return m4.jsxDEV(MX,{onComplete:e},void 0,!1,void 0,this);return m4.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex flex-col",children:[m4.jsxDEV(_X,{onNewAgent:()=>l(!0),canCreateAgent:R.length>0},void 0,!1,void 0,this),K0&&m4.jsxDEV(RX,{message:K0,onDismiss:()=>o(null)},void 0,!1,void 0,this),m4.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[m4.jsxDEV(FX,{route:t,agentCount:B.length,onNavigate:S0},void 0,!1,void 0,this),m4.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:[t==="settings"&&m4.jsxDEV(kX,{},void 0,!1,void 0,this),t==="agents"&&m4.jsxDEV(TX,{agents:B,loading:N,selectedAgent:n,onSelectAgent:W0,onCloseAgent:()=>b0(null),onToggleAgent:z1,onDeleteAgent:c0},void 0,!1,void 0,this),t==="dashboard"&&m4.jsxDEV(EX,{agents:B,loading:N,runningCount:G,configuredProviders:R,onNavigate:S0,onSelectAgent:W0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),I&&m4.jsxDEV(IX,{form:p,providers:T,configuredProviders:R,onFormChange:X0,onProviderChange:P0,onCreate:n0,onClose:()=>l(!1),onGoToSettings:()=>{l(!1),a("settings")}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var YM=nq.createRoot(document.getElementById("root"));YM.render(m4.jsxDEV(HM,{},void 0,!1,void 0,this));
212
-
213
- //# debugId=BABC4FA61920F5DA64756E2164756E21