apteva 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +63 -0
- package/README.md +84 -0
- package/bin/agent-linux-amd64 +0 -0
- package/bin/apteva.js +144 -0
- package/dist/App.g02zmbqf.js +213 -0
- package/dist/App.g02zmbqf.js.map +37 -0
- package/dist/App.mq6jqare.js +1 -0
- package/dist/apteva-kit.css +1 -0
- package/dist/index.html +14 -0
- package/dist/styles.css +1 -0
- package/package.json +65 -0
- package/src/binary.ts +116 -0
- package/src/crypto.ts +152 -0
- package/src/db.ts +446 -0
- package/src/providers.ts +255 -0
- package/src/routes/api.ts +380 -0
- package/src/routes/static.ts +47 -0
- package/src/server.ts +134 -0
- package/src/web/App.tsx +218 -0
- package/src/web/components/agents/AgentCard.tsx +71 -0
- package/src/web/components/agents/AgentsView.tsx +69 -0
- package/src/web/components/agents/ChatPanel.tsx +63 -0
- package/src/web/components/agents/CreateAgentModal.tsx +128 -0
- package/src/web/components/agents/index.ts +4 -0
- package/src/web/components/common/Icons.tsx +61 -0
- package/src/web/components/common/LoadingSpinner.tsx +44 -0
- package/src/web/components/common/Modal.tsx +16 -0
- package/src/web/components/common/Select.tsx +96 -0
- package/src/web/components/common/index.ts +4 -0
- package/src/web/components/dashboard/Dashboard.tsx +136 -0
- package/src/web/components/dashboard/index.ts +1 -0
- package/src/web/components/index.ts +11 -0
- package/src/web/components/layout/ErrorBanner.tsx +18 -0
- package/src/web/components/layout/Header.tsx +26 -0
- package/src/web/components/layout/Sidebar.tsx +66 -0
- package/src/web/components/layout/index.ts +3 -0
- package/src/web/components/onboarding/OnboardingWizard.tsx +344 -0
- package/src/web/components/onboarding/index.ts +1 -0
- package/src/web/components/settings/SettingsPage.tsx +285 -0
- package/src/web/components/settings/index.ts +1 -0
- package/src/web/hooks/index.ts +3 -0
- package/src/web/hooks/useAgents.ts +62 -0
- package/src/web/hooks/useOnboarding.ts +25 -0
- package/src/web/hooks/useProviders.ts +65 -0
- package/src/web/index.html +21 -0
- package/src/web/styles.css +23 -0
- package/src/web/types.ts +43 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
var $M=Object.create;var{getPrototypeOf:UM,defineProperty:G9,getOwnPropertyNames:qM}=Object;var KM=Object.prototype.hasOwnProperty;var X0=(b,K,v)=>{v=b!=null?$M(UM(b)):{};let _=K||!b||!b.__esModule?G9(v,"default",{value:b,enumerable:!0}):v;for(let $ of qM(b))if(!KM.call(_,$))G9(_,$,{get:()=>b[$],enumerable:!0});return _};var T8=(b,K)=>()=>(K||b((K={exports:{}}).exports,K),K.exports);var J6=T8((BM,$Y)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b="18.3.1",K=Symbol.for("react.element"),v=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),A=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),o=Symbol.for("react.offscreen"),s=Symbol.iterator,Z0="@@iterator";function n(q){if(q===null||typeof q!=="object")return null;var F=s&&q[s]||q[Z0];if(typeof F==="function")return F;return null}var y={current:null},q0={transition:null},l={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},i={current:null},J0={},F0=null;function r0(q){F0=q}J0.setExtraStackFrame=function(q){F0=q},J0.getCurrentStack=null,J0.getStackAddendum=function(){var q="";if(F0)q+=F0;var F=J0.getCurrentStack;if(F)q+=F()||"";return q};var Q1=!1,y0=!1,A0=!1,S0=!1,e=!1,Y0={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:q0,ReactCurrentOwner:i};Y0.ReactDebugCurrentFrame=J0,Y0.ReactCurrentActQueue=l;function N0(q){{for(var F=arguments.length,f=Array(F>1?F-1:0),j=1;j<F;j++)f[j-1]=arguments[j];e0("warn",q,f)}}function L0(q){{for(var F=arguments.length,f=Array(F>1?F-1:0),j=1;j<F;j++)f[j-1]=arguments[j];e0("error",q,f)}}function e0(q,F,f){{var j=Y0.ReactDebugCurrentFrame,z0=j.getStackAddendum();if(z0!=="")F+="%s",f=f.concat([z0]);var j0=f.map(function(P0){return String(P0)});j0.unshift("Warning: "+F),Function.prototype.apply.call(console[q],console,j0)}}var P6={};function t1(q,F){{var f=q.constructor,j=f&&(f.displayName||f.name)||"ReactClass",z0=j+"."+F;if(P6[z0])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.",F,j),P6[z0]=!0}}var m1={isMounted:function(q){return!1},enqueueForceUpdate:function(q,F,f){t1(q,"forceUpdate")},enqueueReplaceState:function(q,F,f,j){t1(q,"replaceState")},enqueueSetState:function(q,F,f,j){t1(q,"setState")}},g0=Object.assign,X1={};Object.freeze(X1);function M1(q,F,f){this.props=q,this.context=F,this.refs=X1,this.updater=f||m1}M1.prototype.isReactComponent={},M1.prototype.setState=function(q,F){if(typeof q!=="object"&&typeof q!=="function"&&q!=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,q,F,"setState")},M1.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};{var U6={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)."]},s1=function(q,F){Object.defineProperty(M1.prototype,q,{get:function(){N0("%s(...) is deprecated in plain JavaScript React classes. %s",F[0],F[1]);return}})};for(var p1 in U6)if(U6.hasOwnProperty(p1))s1(p1,U6[p1])}function q6(){}q6.prototype=M1.prototype;function C1(q,F,f){this.props=q,this.context=F,this.refs=X1,this.updater=f||m1}var h1=C1.prototype=new q6;h1.constructor=C1,g0(h1,M1.prototype),h1.isPureReactComponent=!0;function e1(){var q={current:null};return Object.seal(q),q}var D6=Array.isArray;function o1(q){return D6(q)}function I6(q){{var F=typeof Symbol==="function"&&Symbol.toStringTag,f=F&&q[Symbol.toStringTag]||q.constructor.name||"Object";return f}}function E6(q){try{return g1(q),!1}catch(F){return!0}}function g1(q){return""+q}function a0(q){if(E6(q))return L0("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",I6(q)),g1(q)}function M6(q,F,f){var j=q.displayName;if(j)return j;var z0=F.displayName||F.name||"";return z0!==""?f+"("+z0+")":f}function F6(q){return q.displayName||"Context"}function z6(q){if(q==null)return null;if(typeof q.tag==="number")L0("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof q==="function")return q.displayName||q.name||null;if(typeof q==="string")return q;switch(q){case _:return"Fragment";case v:return"Portal";case R:return"Profiler";case $:return"StrictMode";case E:return"Suspense";case N:return"SuspenseList"}if(typeof q==="object")switch(q.$$typeof){case A:var F=q;return F6(F)+".Consumer";case P:var f=q;return F6(f._context)+".Provider";case h:return M6(q,q.render,"ForwardRef");case w:var j=q.displayName||null;if(j!==null)return j;return z6(q.type)||"Memo";case T:{var z0=q,j0=z0._payload,P0=z0._init;try{return z6(P0(j0))}catch(x0){return null}}}return null}var H6=Object.prototype.hasOwnProperty,Z5={key:!0,ref:!0,__self:!0,__source:!0},y1,o6,x1;x1={};function i6(q){if(H6.call(q,"ref")){var F=Object.getOwnPropertyDescriptor(q,"ref").get;if(F&&F.isReactWarning)return!1}return q.ref!==void 0}function i1(q){if(H6.call(q,"key")){var F=Object.getOwnPropertyDescriptor(q,"key").get;if(F&&F.isReactWarning)return!1}return q.key!==void 0}function Q6(q,F){var f=function(){if(!y1)y1=!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)",F)};f.isReactWarning=!0,Object.defineProperty(q,"key",{get:f,configurable:!0})}function y6(q,F){var f=function(){if(!o6)o6=!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)",F)};f.isReactWarning=!0,Object.defineProperty(q,"ref",{get:f,configurable:!0})}function G4(q){if(typeof q.ref==="string"&&i.current&&q.__self&&i.current.stateNode!==q.__self){var F=z6(i.current.type);if(!x1[F])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',F,q.ref),x1[F]=!0}}var v6=function(q,F,f,j,z0,j0,P0){var x0={$$typeof:K,type:q,key:F,ref:f,props:P0,_owner:j0};if(x0._store={},Object.defineProperty(x0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.defineProperty(x0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z0}),Object.freeze)Object.freeze(x0.props),Object.freeze(x0);return x0};function N6(q,F,f){var j,z0={},j0=null,P0=null,x0=null,b1=null;if(F!=null){if(i6(F))P0=F.ref,G4(F);if(i1(F))a0(F.key),j0=""+F.key;x0=F.__self===void 0?null:F.__self,b1=F.__source===void 0?null:F.__source;for(j in F)if(H6.call(F,j)&&!Z5.hasOwnProperty(j))z0[j]=F[j]}var D1=arguments.length-2;if(D1===1)z0.children=f;else if(D1>1){var d1=Array(D1);for(var c1=0;c1<D1;c1++)d1[c1]=arguments[c1+2];if(Object.freeze)Object.freeze(d1);z0.children=d1}if(q&&q.defaultProps){var X6=q.defaultProps;for(j in X6)if(z0[j]===void 0)z0[j]=X6[j]}if(j0||P0){var O6=typeof q==="function"?q.displayName||q.name||"Unknown":q;if(j0)Q6(z0,O6);if(P0)y6(z0,O6)}return v6(q,j0,P0,x0,b1,i.current,z0)}function H0(q,F){var f=v6(q.type,F,q.ref,q._self,q._source,q._owner,q.props);return f}function I0(q,F,f){if(q===null||q===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+q+".");var j,z0=g0({},q.props),j0=q.key,P0=q.ref,x0=q._self,b1=q._source,D1=q._owner;if(F!=null){if(i6(F))P0=F.ref,D1=i.current;if(i1(F))a0(F.key),j0=""+F.key;var d1;if(q.type&&q.type.defaultProps)d1=q.type.defaultProps;for(j in F)if(H6.call(F,j)&&!Z5.hasOwnProperty(j))if(F[j]===void 0&&d1!==void 0)z0[j]=d1[j];else z0[j]=F[j]}var c1=arguments.length-2;if(c1===1)z0.children=f;else if(c1>1){var X6=Array(c1);for(var O6=0;O6<c1;O6++)X6[O6]=arguments[O6+2];z0.children=X6}return v6(q.type,j0,P0,x0,b1,D1,z0)}function f0(q){return typeof q==="object"&&q!==null&&q.$$typeof===K}var q1=".",N1=":";function b6(q){var F=/[=:]/g,f={"=":"=0",":":"=2"},j=q.replace(F,function(z0){return f[z0]});return"$"+j}var S1=!1,A6=/\/+/g;function i0(q){return q.replace(A6,"$&/")}function p0(q,F){if(typeof q==="object"&&q!==null&&q.key!=null)return a0(q.key),b6(""+q.key);return F.toString(36)}function L4(q,F,f,j,z0){var j0=typeof q;if(j0==="undefined"||j0==="boolean")q=null;var P0=!1;if(q===null)P0=!0;else switch(j0){case"string":case"number":P0=!0;break;case"object":switch(q.$$typeof){case K:case v:P0=!0}}if(P0){var x0=q,b1=z0(x0),D1=j===""?q1+p0(x0,0):j;if(o1(b1)){var d1="";if(D1!=null)d1=i0(D1)+"/";L4(b1,F,d1,"",function(TY){return TY})}else if(b1!=null){if(f0(b1)){if(b1.key&&(!x0||x0.key!==b1.key))a0(b1.key);b1=H0(b1,f+(b1.key&&(!x0||x0.key!==b1.key)?i0(""+b1.key)+"/":"")+D1)}F.push(b1)}return 1}var c1,X6,O6=0,_1=j===""?q1:j+N1;if(o1(q))for(var z8=0;z8<q.length;z8++)c1=q[z8],X6=_1+p0(c1,z8),O6+=L4(c1,F,f,X6,z0);else{var l8=n(q);if(typeof l8==="function"){var bQ=q;if(l8===bQ.entries){if(!S1)N0("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");S1=!0}var EY=l8.call(bQ),p5,GQ=0;while(!(p5=EY.next()).done)c1=p5.value,X6=_1+p0(c1,GQ++),O6+=L4(c1,F,f,X6,z0)}else if(j0==="object"){var $Q=String(q);throw Error("Objects are not valid as a React child (found: "+($Q==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":$Q)+"). If you meant to render a collection of children, use an array instead.")}}return O6}function x6(q,F,f){if(q==null)return q;var j=[],z0=0;return L4(q,j,"","",function(j0){return F.call(f,j0,z0++)}),j}function _4(q){var F=0;return x6(q,function(){F++}),F}function k5(q,F,f){x6(q,function(){F.apply(this,arguments)},f)}function J5(q){return x6(q,function(F){return F})||[]}function w5(q){if(!f0(q))throw Error("React.Children.only expected to receive a single React element child.");return q}function o4(q){var F={$$typeof:A,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};F.Provider={$$typeof:P,_context:F};var f=!1,j=!1,z0=!1;{var j0={$$typeof:A,_context:F};Object.defineProperties(j0,{Provider:{get:function(){if(!j)j=!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 F.Provider},set:function(P0){F.Provider=P0}},_currentValue:{get:function(){return F._currentValue},set:function(P0){F._currentValue=P0}},_currentValue2:{get:function(){return F._currentValue2},set:function(P0){F._currentValue2=P0}},_threadCount:{get:function(){return F._threadCount},set:function(P0){F._threadCount=P0}},Consumer:{get:function(){if(!f)f=!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 F.Consumer}},displayName:{get:function(){return F.displayName},set:function(P0){if(!z0)N0("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",P0),z0=!0}}}),F.Consumer=j0}return F._currentRenderer=null,F._currentRenderer2=null,F}var $4=-1,Y5=0,Y1=1,V1=2;function j1(q){if(q._status===$4){var F=q._result,f=F();if(f.then(function(j0){if(q._status===Y5||q._status===$4){var P0=q;P0._status=Y1,P0._result=j0}},function(j0){if(q._status===Y5||q._status===$4){var P0=q;P0._status=V1,P0._result=j0}}),q._status===$4){var j=q;j._status=Y5,j._result=f}}if(q._status===Y1){var z0=q._result;if(z0===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?`,z0);if(!("default"in z0))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'))`,z0);return z0.default}else throw q._result}function v1(q){var F={_status:$4,_result:q},f={$$typeof:T,_payload:F,_init:j1};{var j,z0;Object.defineProperties(f,{defaultProps:{configurable:!0,get:function(){return j},set:function(j0){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."),j=j0,Object.defineProperty(f,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return z0},set:function(j0){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."),z0=j0,Object.defineProperty(f,"propTypes",{enumerable:!0})}}})}return f}function W(q){{if(q!=null&&q.$$typeof===w)L0("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");else if(typeof q!=="function")L0("forwardRef requires a render function but was given %s.",q===null?"null":typeof q);else if(q.length!==0&&q.length!==2)L0("forwardRef render functions accept exactly two parameters: props and ref. %s",q.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined.");if(q!=null){if(q.defaultProps!=null||q.propTypes!=null)L0("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")}}var F={$$typeof:h,render:q};{var f;Object.defineProperty(F,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(j){if(f=j,!q.name&&!q.displayName)q.displayName=j}})}return F}var u=Symbol.for("react.module.reference");function a(q){if(typeof q==="string"||typeof q==="function")return!0;if(q===_||q===R||e||q===$||q===E||q===N||S0||q===o||Q1||y0||A0)return!0;if(typeof q==="object"&&q!==null){if(q.$$typeof===T||q.$$typeof===w||q.$$typeof===P||q.$$typeof===A||q.$$typeof===h||q.$$typeof===u||q.getModuleId!==void 0)return!0}return!1}function L(q,F){if(!a(q))L0("memo: The first argument must be a component. Instead received: %s",q===null?"null":typeof q);var f={$$typeof:w,type:q,compare:F===void 0?null:F};{var j;Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return j},set:function(z0){if(j=z0,!q.name&&!q.displayName)q.displayName=z0}})}return f}function k(){var q=y.current;if(q===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 q}function d(q){var F=k();if(q._context!==void 0){var f=q._context;if(f.Consumer===q)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(f.Provider===q)L0("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return F.useContext(q)}function t(q){var F=k();return F.useState(q)}function G0(q,F,f){var j=k();return j.useReducer(q,F,f)}function V0(q){var F=k();return F.useRef(q)}function W0(q,F){var f=k();return f.useEffect(q,F)}function c(q,F){var f=k();return f.useInsertionEffect(q,F)}function Q0(q,F){var f=k();return f.useLayoutEffect(q,F)}function w0(q,F){var f=k();return f.useCallback(q,F)}function H1(q,F){var f=k();return f.useMemo(q,F)}function k1(q,F,f){var j=k();return j.useImperativeHandle(q,F,f)}function W4(q,F){{var f=k();return f.useDebugValue(q,F)}}function g4(){var q=k();return q.useTransition()}function r1(q){var F=k();return F.useDeferredValue(q)}function s0(){var q=k();return q.useId()}function l5(q,F,f){var j=k();return j.useSyncExternalStore(q,F,f)}var D5=0,rz,nz,tz,sz,ez,zQ,QQ;function pX(){}pX.__reactDisabledLog=!0;function wY(){{if(D5===0){rz=console.log,nz=console.info,tz=console.warn,sz=console.error,ez=console.group,zQ=console.groupCollapsed,QQ=console.groupEnd;var q={configurable:!0,enumerable:!0,value:pX,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}D5++}}function XQ(){{if(D5--,D5===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g0({},q,{value:rz}),info:g0({},q,{value:nz}),warn:g0({},q,{value:tz}),error:g0({},q,{value:sz}),group:g0({},q,{value:ez}),groupCollapsed:g0({},q,{value:zQ}),groupEnd:g0({},q,{value:QQ})})}if(D5<0)L0("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var t7=Y0.ReactCurrentDispatcher,i4;function F7(q,F,f){{if(i4===void 0)try{throw Error()}catch(z0){var j=z0.stack.trim().match(/\n( *(at )?)/);i4=j&&j[1]||""}return`
|
|
14
|
+
`+i4+q}}var A7=!1,m8;{var ZQ=typeof WeakMap==="function"?WeakMap:Map;m8=new ZQ}function oX(q,F){if(!q||A7)return"";{var f=m8.get(q);if(f!==void 0)return f}var j;A7=!0;var z0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j0;j0=t7.current,t7.current=null,wY();try{if(F){var P0=function(){throw Error()};if(Object.defineProperty(P0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(P0,[])}catch(_1){j=_1}Reflect.construct(q,[],P0)}else{try{P0.call()}catch(_1){j=_1}q.call(P0.prototype)}}else{try{throw Error()}catch(_1){j=_1}q()}}catch(_1){if(_1&&j&&typeof _1.stack==="string"){var x0=_1.stack.split(`
|
|
15
|
+
`),b1=j.stack.split(`
|
|
16
|
+
`),D1=x0.length-1,d1=b1.length-1;while(D1>=1&&d1>=0&&x0[D1]!==b1[d1])d1--;for(;D1>=1&&d1>=0;D1--,d1--)if(x0[D1]!==b1[d1]){if(D1!==1||d1!==1)do if(D1--,d1--,d1<0||x0[D1]!==b1[d1]){var c1=`
|
|
17
|
+
`+x0[D1].replace(" at new "," at ");if(q.displayName&&c1.includes("<anonymous>"))c1=c1.replace("<anonymous>",q.displayName);if(typeof q==="function")m8.set(q,c1);return c1}while(D1>=1&&d1>=0);break}}}finally{A7=!1,t7.current=j0,XQ(),Error.prepareStackTrace=z0}var X6=q?q.displayName||q.name:"",O6=X6?F7(X6):"";if(typeof q==="function")m8.set(q,O6);return O6}function JQ(q,F,f){return oX(q,!1)}function DY(q){var F=q.prototype;return!!(F&&F.isReactComponent)}function R7(q,F,f){if(q==null)return"";if(typeof q==="function")return oX(q,DY(q));if(typeof q==="string")return F7(q);switch(q){case E:return F7("Suspense");case N:return F7("SuspenseList")}if(typeof q==="object")switch(q.$$typeof){case h:return JQ(q.render);case w:return R7(q.type,F,f);case T:{var j=q,z0=j._payload,j0=j._init;try{return R7(j0(z0),F,f)}catch(P0){}}}return""}var iX={},YQ=Y0.ReactDebugCurrentFrame;function y8(q){if(q){var F=q._owner,f=R7(q.type,q._source,F?F.type:null);YQ.setExtraStackFrame(f)}else YQ.setExtraStackFrame(null)}function rX(q,F,f,j,z0){{var j0=Function.call.bind(H6);for(var P0 in q)if(j0(q,P0)){var x0=void 0;try{if(typeof q[P0]!=="function"){var b1=Error((j||"React class")+": "+f+" type `"+P0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[P0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b1.name="Invariant Violation",b1}x0=q[P0](F,P0,j,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D1){x0=D1}if(x0&&!(x0 instanceof Error))y8(z0),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).",j||"React class",f,P0,typeof x0),y8(null);if(x0 instanceof Error&&!(x0.message in iX))iX[x0.message]=!0,y8(z0),L0("Failed %s type: %s",f,x0.message),y8(null)}}}function B1(q){if(q){var F=q._owner,f=R7(q.type,q._source,F?F.type:null);r0(f)}else r0(null)}var nX=!1;function HQ(){if(i.current){var q=z6(i.current.type);if(q)return`
|
|
18
|
+
|
|
19
|
+
Check the render method of \``+q+"`."}return""}function n0(q){if(q!==void 0){var F=q.fileName.replace(/^.*[\\\/]/,""),f=q.lineNumber;return`
|
|
20
|
+
|
|
21
|
+
Check your code at `+F+":"+f+"."}return""}function tX(q){if(q!==null&&q!==void 0)return n0(q.__source);return""}var U4={};function s7(q){var F=HQ();if(!F){var f=typeof q==="string"?q:q.displayName||q.name;if(f)F=`
|
|
22
|
+
|
|
23
|
+
Check the top-level render call using <`+f+">."}return F}function P7(q,F){if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var f=s7(F);if(U4[f])return;U4[f]=!0;var j="";if(q&&q._owner&&q._owner!==i.current)j=" It was passed a child from "+z6(q._owner.type)+".";B1(q),L0('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,j),B1(null)}function sX(q,F){if(typeof q!=="object")return;if(o1(q))for(var f=0;f<q.length;f++){var j=q[f];if(f0(j))P7(j,F)}else if(f0(q)){if(q._store)q._store.validated=!0}else if(q){var z0=n(q);if(typeof z0==="function"){if(z0!==q.entries){var j0=z0.call(q),P0;while(!(P0=j0.next()).done)if(f0(P0.value))P7(P0.value,F)}}}}function d6(q){{var F=q.type;if(F===null||F===void 0||typeof F==="string")return;var f;if(typeof F==="function")f=F.propTypes;else if(typeof F==="object"&&(F.$$typeof===h||F.$$typeof===w))f=F.propTypes;else return;if(f){var j=z6(F);rX(f,q.props,"prop",j,q)}else if(F.PropTypes!==void 0&&!nX){nX=!0;var z0=z6(F);L0("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z0||"Unknown")}if(typeof F.getDefaultProps==="function"&&!F.getDefaultProps.isReactClassApproved)L0("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function K6(q){{var F=Object.keys(q.props);for(var f=0;f<F.length;f++){var j=F[f];if(j!=="children"&&j!=="key"){B1(q),L0("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",j),B1(null);break}}if(q.ref!==null)B1(q),L0("Invalid attribute `ref` supplied to `React.Fragment`."),B1(null)}}function eX(q,F,f){var j=a(q);if(!j){var z0="";if(q===void 0||typeof q==="object"&&q!==null&&Object.keys(q).length===0)z0+=" 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 j0=tX(F);if(j0)z0+=j0;else z0+=HQ();var P0;if(q===null)P0="null";else if(o1(q))P0="array";else if(q!==void 0&&q.$$typeof===K)P0="<"+(z6(q.type)||"Unknown")+" />",z0=" Did you accidentally export a JSX literal instead of a component?";else P0=typeof q;L0("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P0,z0)}var x0=N6.apply(this,arguments);if(x0==null)return x0;if(j)for(var b1=2;b1<arguments.length;b1++)sX(arguments[b1],q);if(q===_)K6(x0);else d6(x0);return x0}var j4=!1;function w4(q){var F=eX.bind(null,q);F.type=q;{if(!j4)j4=!0,N0("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");Object.defineProperty(F,"type",{enumerable:!1,get:function(){return N0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:q}),q}})}return F}function I5(q,F,f){var j=I0.apply(this,arguments);for(var z0=2;z0<arguments.length;z0++)sX(arguments[z0],j.type);return d6(j),j}function IY(q,F){var f=q0.transition;q0.transition={};var j=q0.transition;q0.transition._updatedFibers=new Set;try{q()}finally{if(q0.transition=f,f===null&&j._updatedFibers){var z0=j._updatedFibers.size;if(z0>10)N0("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.");j._updatedFibers.clear()}}}var x8=!1,e7=null;function zZ(q){if(e7===null)try{var F=("require"+Math.random()).slice(0,7),f=$Y&&$Y[F];e7=f.call($Y,"timers").setImmediate}catch(j){e7=function(z0){if(x8===!1){if(x8=!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 j0=new MessageChannel;j0.port1.onmessage=z0,j0.port2.postMessage(void 0)}}return e7(q)}var M7=0,QZ=!1;function XZ(q){{var F=M7;if(M7++,l.current===null)l.current=[];var f=l.isBatchingLegacy,j;try{if(l.isBatchingLegacy=!0,j=q(),!f&&l.didScheduleLegacyUpdate){var z0=l.current;if(z0!==null)l.didScheduleLegacyUpdate=!1,c8(z0)}}catch(X6){throw a5(F),X6}finally{l.isBatchingLegacy=f}if(j!==null&&typeof j==="object"&&typeof j.then==="function"){var j0=j,P0=!1,x0={then:function(X6,O6){P0=!0,j0.then(function(_1){if(a5(F),M7===0)d8(_1,X6,O6);else X6(_1)},function(_1){a5(F),O6(_1)})}};if(!QZ&&typeof Promise<"u")Promise.resolve().then(function(){}).then(function(){if(!P0)QZ=!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 x0}else{var b1=j;if(a5(F),M7===0){var D1=l.current;if(D1!==null)c8(D1),l.current=null;var d1={then:function(X6,O6){if(l.current===null)l.current=[],d8(b1,X6,O6);else X6(b1)}};return d1}else{var c1={then:function(X6,O6){X6(b1)}};return c1}}}}function a5(q){{if(q!==M7-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. ");M7=q}}function d8(q,F,f){{var j=l.current;if(j!==null)try{c8(j),zZ(function(){if(j.length===0)l.current=null,F(q);else d8(q,F,f)})}catch(z0){f(z0)}else F(q)}}var N7=!1;function c8(q){if(!N7){N7=!0;var F=0;try{for(;F<q.length;F++){var f=q[F];do f=f(!0);while(f!==null)}q.length=0}catch(j){throw q=q.slice(F+1),j}finally{N7=!1}}}var ZZ=eX,JZ=I5,YZ=w4,HZ={map:x6,forEach:k5,count:_4,toArray:J5,only:w5};if(BM.Children=HZ,BM.Component=M1,BM.Fragment=_,BM.Profiler=R,BM.PureComponent=C1,BM.StrictMode=$,BM.Suspense=E,BM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y0,BM.act=XZ,BM.cloneElement=JZ,BM.createContext=o4,BM.createElement=ZZ,BM.createFactory=YZ,BM.createRef=e1,BM.forwardRef=W,BM.isValidElement=f0,BM.lazy=v1,BM.memo=L,BM.startTransition=IY,BM.unstable_act=XZ,BM.useCallback=w0,BM.useContext=d,BM.useDebugValue=W4,BM.useDeferredValue=r1,BM.useEffect=W0,BM.useId=s0,BM.useImperativeHandle=k1,BM.useInsertionEffect=c,BM.useLayoutEffect=Q0,BM.useMemo=H1,BM.useReducer=G0,BM.useRef=V0,BM.useState=t,BM.useSyncExternalStore=l5,BM.useTransition=g4,BM.version=b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $9=T8((vM)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b=!1,K=!1,v=5;function _(H0,I0){var f0=H0.length;H0.push(I0),P(H0,I0,f0)}function $(H0){return H0.length===0?null:H0[0]}function R(H0){if(H0.length===0)return null;var I0=H0[0],f0=H0.pop();if(f0!==I0)H0[0]=f0,A(H0,f0,0);return I0}function P(H0,I0,f0){var q1=f0;while(q1>0){var N1=q1-1>>>1,b6=H0[N1];if(h(b6,I0)>0)H0[N1]=I0,H0[q1]=b6,q1=N1;else return}}function A(H0,I0,f0){var q1=f0,N1=H0.length,b6=N1>>>1;while(q1<b6){var S1=(q1+1)*2-1,A6=H0[S1],i0=S1+1,p0=H0[i0];if(h(A6,I0)<0)if(i0<N1&&h(p0,A6)<0)H0[q1]=p0,H0[i0]=I0,q1=i0;else H0[q1]=A6,H0[S1]=I0,q1=S1;else if(i0<N1&&h(p0,I0)<0)H0[q1]=p0,H0[i0]=I0,q1=i0;else return}}function h(H0,I0){var f0=H0.sortIndex-I0.sortIndex;return f0!==0?f0:H0.id-I0.id}var E=1,N=2,w=3,T=4,o=5;function s(H0,I0){}var Z0=typeof performance==="object"&&typeof performance.now==="function";if(Z0){var n=performance;vM.unstable_now=function(){return n.now()}}else{var y=Date,q0=y.now();vM.unstable_now=function(){return y.now()-q0}}var l=1073741823,i=-1,J0=250,F0=5000,r0=1e4,Q1=l,y0=[],A0=[],S0=1,e=null,Y0=w,N0=!1,L0=!1,e0=!1,P6=typeof setTimeout==="function"?setTimeout:null,t1=typeof clearTimeout==="function"?clearTimeout:null,m1=typeof setImmediate<"u"?setImmediate:null,g0=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function X1(H0){var I0=$(A0);while(I0!==null){if(I0.callback===null)R(A0);else if(I0.startTime<=H0)R(A0),I0.sortIndex=I0.expirationTime,_(y0,I0);else return;I0=$(A0)}}function M1(H0){if(e0=!1,X1(H0),!L0)if($(y0)!==null)L0=!0,Q6(U6);else{var I0=$(A0);if(I0!==null)y6(M1,I0.startTime-H0)}}function U6(H0,I0){if(L0=!1,e0)e0=!1,G4();N0=!0;var f0=Y0;try{if(K)try{return s1(H0,I0)}catch(N1){if(e!==null){var q1=vM.unstable_now();s(e,q1),e.isQueued=!1}throw N1}else return s1(H0,I0)}finally{e=null,Y0=f0,N0=!1}}function s1(H0,I0){var f0=I0;X1(f0),e=$(y0);while(e!==null&&!b){if(e.expirationTime>f0&&(!H0||H6()))break;var q1=e.callback;if(typeof q1==="function"){e.callback=null,Y0=e.priorityLevel;var N1=e.expirationTime<=f0,b6=q1(N1);if(f0=vM.unstable_now(),typeof b6==="function")e.callback=b6;else if(e===$(y0))R(y0);X1(f0)}else R(y0);e=$(y0)}if(e!==null)return!0;else{var S1=$(A0);if(S1!==null)y6(M1,S1.startTime-f0);return!1}}function p1(H0,I0){switch(H0){case E:case N:case w:case T:case o:break;default:H0=w}var f0=Y0;Y0=H0;try{return I0()}finally{Y0=f0}}function q6(H0){var I0;switch(Y0){case E:case N:case w:I0=w;break;default:I0=Y0;break}var f0=Y0;Y0=I0;try{return H0()}finally{Y0=f0}}function C1(H0){var I0=Y0;return function(){var f0=Y0;Y0=I0;try{return H0.apply(this,arguments)}finally{Y0=f0}}}function h1(H0,I0,f0){var q1=vM.unstable_now(),N1;if(typeof f0==="object"&&f0!==null){var b6=f0.delay;if(typeof b6==="number"&&b6>0)N1=q1+b6;else N1=q1}else N1=q1;var S1;switch(H0){case E:S1=i;break;case N:S1=J0;break;case o:S1=Q1;break;case T:S1=r0;break;case w:default:S1=F0;break}var A6=N1+S1,i0={id:S0++,callback:I0,priorityLevel:H0,startTime:N1,expirationTime:A6,sortIndex:-1};if(N1>q1){if(i0.sortIndex=N1,_(A0,i0),$(y0)===null&&i0===$(A0)){if(e0)G4();else e0=!0;y6(M1,N1-q1)}}else if(i0.sortIndex=A6,_(y0,i0),!L0&&!N0)L0=!0,Q6(U6);return i0}function e1(){}function D6(){if(!L0&&!N0)L0=!0,Q6(U6)}function o1(){return $(y0)}function I6(H0){H0.callback=null}function E6(){return Y0}var g1=!1,a0=null,M6=-1,F6=v,z6=-1;function H6(){var H0=vM.unstable_now()-z6;if(H0<F6)return!1;return!0}function Z5(){}function y1(H0){if(H0<0||H0>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(H0>0)F6=Math.floor(1000/H0);else F6=v}var o6=function(){if(a0!==null){var H0=vM.unstable_now();z6=H0;var I0=!0,f0=!0;try{f0=a0(I0,H0)}finally{if(f0)x1();else g1=!1,a0=null}}else g1=!1},x1;if(typeof m1==="function")x1=function(){m1(o6)};else if(typeof MessageChannel<"u"){var i6=new MessageChannel,i1=i6.port2;i6.port1.onmessage=o6,x1=function(){i1.postMessage(null)}}else x1=function(){P6(o6,0)};function Q6(H0){if(a0=H0,!g1)g1=!0,x1()}function y6(H0,I0){M6=P6(function(){H0(vM.unstable_now())},I0)}function G4(){t1(M6),M6=-1}var v6=Z5,N6=null;if(vM.unstable_IdlePriority=o,vM.unstable_ImmediatePriority=E,vM.unstable_LowPriority=T,vM.unstable_NormalPriority=w,vM.unstable_Profiling=N6,vM.unstable_UserBlockingPriority=N,vM.unstable_cancelCallback=I6,vM.unstable_continueExecution=D6,vM.unstable_forceFrameRate=y1,vM.unstable_getCurrentPriorityLevel=E6,vM.unstable_getFirstCallbackNode=o1,vM.unstable_next=q6,vM.unstable_pauseExecution=e1,vM.unstable_requestPaint=v6,vM.unstable_runWithPriority=p1,vM.unstable_scheduleCallback=h1,vM.unstable_shouldYield=H6,vM.unstable_wrapCallback=C1,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var U9=T8((OM)=>{var mX=X0(J6()),f1=X0($9());(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b=mX.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,K=!1;function v(z){K=z}function _(z){if(!K){for(var Q=arguments.length,X=Array(Q>1?Q-1:0),Z=1;Z<Q;Z++)X[Z-1]=arguments[Z];R("warn",z,X)}}function $(z){if(!K){for(var Q=arguments.length,X=Array(Q>1?Q-1:0),Z=1;Z<Q;Z++)X[Z-1]=arguments[Z];R("error",z,X)}}function R(z,Q,X){{var Z=b.ReactDebugCurrentFrame,J=Z.getStackAddendum();if(J!=="")Q+="%s",X=X.concat([J]);var Y=X.map(function(H){return String(H)});Y.unshift("Warning: "+Q),Function.prototype.apply.call(console[z],console,Y)}}var P=0,A=1,h=2,E=3,N=4,w=5,T=6,o=7,s=8,Z0=9,n=10,y=11,q0=12,l=13,i=14,J0=15,F0=16,r0=17,Q1=18,y0=19,A0=21,S0=22,e=23,Y0=24,N0=25,L0=!0,e0=!1,P6=!1,t1=!1,m1=!1,g0=!0,X1=!1,M1=!0,U6=!0,s1=!0,p1=!0,q6=new Set,C1={},h1={};function e1(z,Q){D6(z,Q),D6(z+"Capture",Q)}function D6(z,Q){if(C1[z])$("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",z);C1[z]=Q;{var X=z.toLowerCase();if(h1[X]=z,z==="onDoubleClick")h1.ondblclick=z}for(var Z=0;Z<Q.length;Z++)q6.add(Q[Z])}var o1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I6=Object.prototype.hasOwnProperty;function E6(z){{var Q=typeof Symbol==="function"&&Symbol.toStringTag,X=Q&&z[Symbol.toStringTag]||z.constructor.name||"Object";return X}}function g1(z){try{return a0(z),!1}catch(Q){return!0}}function a0(z){return""+z}function M6(z,Q){if(g1(z))return $("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,E6(z)),a0(z)}function F6(z){if(g1(z))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",E6(z)),a0(z)}function z6(z,Q){if(g1(z))return $("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,E6(z)),a0(z)}function H6(z,Q){if(g1(z))return $("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,E6(z)),a0(z)}function Z5(z){if(g1(z))return $("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",E6(z)),a0(z)}function y1(z){if(g1(z))return $("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.",E6(z)),a0(z)}var o6=0,x1=1,i6=2,i1=3,Q6=4,y6=5,G4=6,v6=":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",N6=v6+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",H0=new RegExp("^["+v6+"]["+N6+"]*$"),I0={},f0={};function q1(z){if(I6.call(f0,z))return!0;if(I6.call(I0,z))return!1;if(H0.test(z))return f0[z]=!0,!0;return I0[z]=!0,$("Invalid attribute name: `%s`",z),!1}function N1(z,Q,X){if(Q!==null)return Q.type===o6;if(X)return!1;if(z.length>2&&(z[0]==="o"||z[0]==="O")&&(z[1]==="n"||z[1]==="N"))return!0;return!1}function b6(z,Q,X,Z){if(X!==null&&X.type===o6)return!1;switch(typeof Q){case"function":case"symbol":return!0;case"boolean":{if(Z)return!1;if(X!==null)return!X.acceptsBooleans;else{var J=z.toLowerCase().slice(0,5);return J!=="data-"&&J!=="aria-"}}default:return!1}}function S1(z,Q,X,Z){if(Q===null||typeof Q>"u")return!0;if(b6(z,Q,X,Z))return!0;if(Z)return!1;if(X!==null)switch(X.type){case i1:return!Q;case Q6:return Q===!1;case y6:return isNaN(Q);case G4:return isNaN(Q)||Q<1}return!1}function A6(z){return p0.hasOwnProperty(z)?p0[z]:null}function i0(z,Q,X,Z,J,Y,H){this.acceptsBooleans=Q===i6||Q===i1||Q===Q6,this.attributeName=Z,this.attributeNamespace=J,this.mustUseProperty=X,this.propertyName=z,this.type=Q,this.sanitizeURL=Y,this.removeEmptyString=H}var p0={},L4=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];L4.forEach(function(z){p0[z]=new i0(z,o6,!1,z,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(z){var Q=z[0],X=z[1];p0[Q]=new i0(Q,x1,!1,X,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(z){p0[z]=new i0(z,i6,!1,z.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(z){p0[z]=new i0(z,i6,!1,z,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(z){p0[z]=new i0(z,i1,!1,z.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(z){p0[z]=new i0(z,i1,!0,z,null,!1,!1)}),["capture","download"].forEach(function(z){p0[z]=new i0(z,Q6,!1,z,null,!1,!1)}),["cols","rows","size","span"].forEach(function(z){p0[z]=new i0(z,G4,!1,z,null,!1,!1)}),["rowSpan","start"].forEach(function(z){p0[z]=new i0(z,y6,!1,z.toLowerCase(),null,!1,!1)});var x6=/[\-\:]([a-z])/g,_4=function(z){return z[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(z){var Q=z.replace(x6,_4);p0[Q]=new i0(Q,x1,!1,z,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(z){var Q=z.replace(x6,_4);p0[Q]=new i0(Q,x1,!1,z,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(z){var Q=z.replace(x6,_4);p0[Q]=new i0(Q,x1,!1,z,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(z){p0[z]=new i0(z,x1,!1,z.toLowerCase(),null,!1,!1)});var k5="xlinkHref";p0[k5]=new i0("xlinkHref",x1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(z){p0[z]=new i0(z,x1,!1,z.toLowerCase(),null,!0,!0)});var J5=/^[\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,w5=!1;function o4(z){if(!w5&&J5.test(z))w5=!0,$("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(z))}function $4(z,Q,X,Z){if(Z.mustUseProperty){var J=Z.propertyName;return z[J]}else{if(M6(X,Q),Z.sanitizeURL)o4(""+X);var Y=Z.attributeName,H=null;if(Z.type===Q6){if(z.hasAttribute(Y)){var G=z.getAttribute(Y);if(G==="")return!0;if(S1(Q,X,Z,!1))return G;if(G===""+X)return X;return G}}else if(z.hasAttribute(Y)){if(S1(Q,X,Z,!1))return z.getAttribute(Y);if(Z.type===i1)return X;H=z.getAttribute(Y)}if(S1(Q,X,Z,!1))return H===null?X:H;else if(H===""+X)return X;else return H}}function Y5(z,Q,X,Z){{if(!q1(Q))return;if(!z.hasAttribute(Q))return X===void 0?void 0:null;var J=z.getAttribute(Q);if(M6(X,Q),J===""+X)return X;return J}}function Y1(z,Q,X,Z){var J=A6(Q);if(N1(Q,J,Z))return;if(S1(Q,X,J,Z))X=null;if(Z||J===null){if(q1(Q)){var Y=Q;if(X===null)z.removeAttribute(Y);else M6(X,Q),z.setAttribute(Y,""+X)}return}var H=J.mustUseProperty;if(H){var G=J.propertyName;if(X===null){var U=J.type;z[G]=U===i1?!1:""}else z[G]=X;return}var{attributeName:B,attributeNamespace:O}=J;if(X===null)z.removeAttribute(B);else{var V=J.type,M;if(V===i1||V===Q6&&X===!0)M="";else if(M6(X,B),M=""+X,J.sanitizeURL)o4(M.toString());if(O)z.setAttributeNS(O,B,M);else z.setAttribute(B,M)}}var V1=Symbol.for("react.element"),j1=Symbol.for("react.portal"),v1=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),t=Symbol.for("react.suspense_list"),G0=Symbol.for("react.memo"),V0=Symbol.for("react.lazy"),W0=Symbol.for("react.scope"),c=Symbol.for("react.debug_trace_mode"),Q0=Symbol.for("react.offscreen"),w0=Symbol.for("react.legacy_hidden"),H1=Symbol.for("react.cache"),k1=Symbol.for("react.tracing_marker"),W4=Symbol.iterator,g4="@@iterator";function r1(z){if(z===null||typeof z!=="object")return null;var Q=W4&&z[W4]||z[g4];if(typeof Q==="function")return Q;return null}var s0=Object.assign,l5=0,D5,rz,nz,tz,sz,ez,zQ;function QQ(){}QQ.__reactDisabledLog=!0;function pX(){{if(l5===0){D5=console.log,rz=console.info,nz=console.warn,tz=console.error,sz=console.group,ez=console.groupCollapsed,zQ=console.groupEnd;var z={configurable:!0,enumerable:!0,value:QQ,writable:!0};Object.defineProperties(console,{info:z,log:z,warn:z,error:z,group:z,groupCollapsed:z,groupEnd:z})}l5++}}function wY(){{if(l5--,l5===0){var z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:s0({},z,{value:D5}),info:s0({},z,{value:rz}),warn:s0({},z,{value:nz}),error:s0({},z,{value:tz}),group:s0({},z,{value:sz}),groupCollapsed:s0({},z,{value:ez}),groupEnd:s0({},z,{value:zQ})})}if(l5<0)$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var XQ=b.ReactCurrentDispatcher,t7;function i4(z,Q,X){{if(t7===void 0)try{throw Error()}catch(J){var Z=J.stack.trim().match(/\n( *(at )?)/);t7=Z&&Z[1]||""}return`
|
|
24
|
+
`+t7+z}}var F7=!1,A7;{var m8=typeof WeakMap==="function"?WeakMap:Map;A7=new m8}function ZQ(z,Q){if(!z||F7)return"";{var X=A7.get(z);if(X!==void 0)return X}var Z;F7=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Y;Y=XQ.current,XQ.current=null,pX();try{if(Q){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(S){Z=S}Reflect.construct(z,[],H)}else{try{H.call()}catch(S){Z=S}z.call(H.prototype)}}else{try{throw Error()}catch(S){Z=S}z()}}catch(S){if(S&&Z&&typeof S.stack==="string"){var G=S.stack.split(`
|
|
25
|
+
`),U=Z.stack.split(`
|
|
26
|
+
`),B=G.length-1,O=U.length-1;while(B>=1&&O>=0&&G[B]!==U[O])O--;for(;B>=1&&O>=0;B--,O--)if(G[B]!==U[O]){if(B!==1||O!==1)do if(B--,O--,O<0||G[B]!==U[O]){var V=`
|
|
27
|
+
`+G[B].replace(" at new "," at ");if(z.displayName&&V.includes("<anonymous>"))V=V.replace("<anonymous>",z.displayName);if(typeof z==="function")A7.set(z,V);return V}while(B>=1&&O>=0);break}}}finally{F7=!1,XQ.current=Y,wY(),Error.prepareStackTrace=J}var M=z?z.displayName||z.name:"",C=M?i4(M):"";if(typeof z==="function")A7.set(z,C);return C}function oX(z,Q,X){return ZQ(z,!0)}function JQ(z,Q,X){return ZQ(z,!1)}function DY(z){var Q=z.prototype;return!!(Q&&Q.isReactComponent)}function R7(z,Q,X){if(z==null)return"";if(typeof z==="function")return ZQ(z,DY(z));if(typeof z==="string")return i4(z);switch(z){case d:return i4("Suspense");case t:return i4("SuspenseList")}if(typeof z==="object")switch(z.$$typeof){case k:return JQ(z.render);case G0:return R7(z.type,Q,X);case V0:{var Z=z,J=Z._payload,Y=Z._init;try{return R7(Y(J),Q,X)}catch(H){}}}return""}function iX(z){var Q=z._debugOwner?z._debugOwner.type:null,X=z._debugSource;switch(z.tag){case w:return i4(z.type);case F0:return i4("Lazy");case l:return i4("Suspense");case y0:return i4("SuspenseList");case P:case h:case J0:return JQ(z.type);case y:return JQ(z.type.render);case A:return oX(z.type);default:return""}}function YQ(z){try{var Q="",X=z;do Q+=iX(X),X=X.return;while(X);return Q}catch(Z){return`
|
|
28
|
+
Error generating stack: `+Z.message+`
|
|
29
|
+
`+Z.stack}}function y8(z,Q,X){var Z=z.displayName;if(Z)return Z;var J=Q.displayName||Q.name||"";return J!==""?X+"("+J+")":X}function rX(z){return z.displayName||"Context"}function B1(z){if(z==null)return null;if(typeof z.tag==="number")$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof z==="function")return z.displayName||z.name||null;if(typeof z==="string")return z;switch(z){case v1:return"Fragment";case j1:return"Portal";case u:return"Profiler";case W:return"StrictMode";case d:return"Suspense";case t:return"SuspenseList"}if(typeof z==="object")switch(z.$$typeof){case L:var Q=z;return rX(Q)+".Consumer";case a:var X=z;return rX(X._context)+".Provider";case k:return y8(z,z.render,"ForwardRef");case G0:var Z=z.displayName||null;if(Z!==null)return Z;return B1(z.type)||"Memo";case V0:{var J=z,Y=J._payload,H=J._init;try{return B1(H(Y))}catch(G){return null}}}return null}function nX(z,Q,X){var Z=Q.displayName||Q.name||"";return z.displayName||(Z!==""?X+"("+Z+")":X)}function HQ(z){return z.displayName||"Context"}function n0(z){var{tag:Q,type:X}=z;switch(Q){case Y0:return"Cache";case Z0:var Z=X;return HQ(Z)+".Consumer";case n:var J=X;return HQ(J._context)+".Provider";case Q1:return"DehydratedFragment";case y:return nX(X,X.render,"ForwardRef");case o:return"Fragment";case w:return X;case N:return"Portal";case E:return"Root";case T:return"Text";case F0:return B1(X);case s:if(X===W)return"StrictMode";return"Mode";case S0:return"Offscreen";case q0:return"Profiler";case A0:return"Scope";case l:return"Suspense";case y0:return"SuspenseList";case N0:return"TracingMarker";case A:case P:case r0:case h:case i:case J0:if(typeof X==="function")return X.displayName||X.name||null;if(typeof X==="string")return X;break}return null}var tX=b.ReactDebugCurrentFrame,U4=null,s7=!1;function P7(){{if(U4===null)return null;var z=U4._debugOwner;if(z!==null&&typeof z<"u")return n0(z)}return null}function sX(){{if(U4===null)return"";return YQ(U4)}}function d6(){tX.getCurrentStack=null,U4=null,s7=!1}function K6(z){tX.getCurrentStack=z===null?null:sX,U4=z,s7=!1}function eX(){return U4}function j4(z){s7=z}function w4(z){return""+z}function I5(z){switch(typeof z){case"boolean":case"number":case"string":case"undefined":return z;case"object":return y1(z),z;default:return""}}var IY={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function x8(z,Q){{if(!(IY[Q.type]||Q.onChange||Q.onInput||Q.readOnly||Q.disabled||Q.value==null))$("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(!(Q.onChange||Q.readOnly||Q.disabled||Q.checked==null))$("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 e7(z){var{type:Q,nodeName:X}=z;return X&&X.toLowerCase()==="input"&&(Q==="checkbox"||Q==="radio")}function zZ(z){return z._valueTracker}function M7(z){z._valueTracker=null}function QZ(z){var Q="";if(!z)return Q;if(e7(z))Q=z.checked?"true":"false";else Q=z.value;return Q}function XZ(z){var Q=e7(z)?"checked":"value",X=Object.getOwnPropertyDescriptor(z.constructor.prototype,Q);y1(z[Q]);var Z=""+z[Q];if(z.hasOwnProperty(Q)||typeof X>"u"||typeof X.get!=="function"||typeof X.set!=="function")return;var{get:J,set:Y}=X;Object.defineProperty(z,Q,{configurable:!0,get:function(){return J.call(this)},set:function(G){y1(G),Z=""+G,Y.call(this,G)}}),Object.defineProperty(z,Q,{enumerable:X.enumerable});var H={getValue:function(){return Z},setValue:function(G){y1(G),Z=""+G},stopTracking:function(){M7(z),delete z[Q]}};return H}function a5(z){if(zZ(z))return;z._valueTracker=XZ(z)}function d8(z){if(!z)return!1;var Q=zZ(z);if(!Q)return!0;var X=Q.getValue(),Z=QZ(z);if(Z!==X)return Q.setValue(Z),!0;return!1}function N7(z){if(z=z||(typeof document<"u"?document:void 0),typeof z>"u")return null;try{return z.activeElement||z.body}catch(Q){return z.body}}var c8=!1,ZZ=!1,JZ=!1,YZ=!1;function HZ(z){var Q=z.type==="checkbox"||z.type==="radio";return Q?z.checked!=null:z.value!=null}function q(z,Q){var X=z,Z=Q.checked,J=s0({},Q,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Z!=null?Z:X._wrapperState.initialChecked});return J}function F(z,Q){{if(x8("input",Q),Q.checked!==void 0&&Q.defaultChecked!==void 0&&!ZZ)$("%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",P7()||"A component",Q.type),ZZ=!0;if(Q.value!==void 0&&Q.defaultValue!==void 0&&!c8)$("%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",P7()||"A component",Q.type),c8=!0}var X=z,Z=Q.defaultValue==null?"":Q.defaultValue;X._wrapperState={initialChecked:Q.checked!=null?Q.checked:Q.defaultChecked,initialValue:I5(Q.value!=null?Q.value:Z),controlled:HZ(Q)}}function f(z,Q){var X=z,Z=Q.checked;if(Z!=null)Y1(X,"checked",Z,!1)}function j(z,Q){var X=z;{var Z=HZ(Q);if(!X._wrapperState.controlled&&Z&&!YZ)$("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"),YZ=!0;if(X._wrapperState.controlled&&!Z&&!JZ)$("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"),JZ=!0}f(z,Q);var J=I5(Q.value),Y=Q.type;if(J!=null){if(Y==="number"){if(J===0&&X.value===""||X.value!=J)X.value=w4(J)}else if(X.value!==w4(J))X.value=w4(J)}else if(Y==="submit"||Y==="reset"){X.removeAttribute("value");return}if(Q.hasOwnProperty("value"))x0(X,Q.type,J);else if(Q.hasOwnProperty("defaultValue"))x0(X,Q.type,I5(Q.defaultValue));if(Q.checked==null&&Q.defaultChecked!=null)X.defaultChecked=!!Q.defaultChecked}function z0(z,Q,X){var Z=z;if(Q.hasOwnProperty("value")||Q.hasOwnProperty("defaultValue")){var J=Q.type,Y=J==="submit"||J==="reset";if(Y&&(Q.value===void 0||Q.value===null))return;var H=w4(Z._wrapperState.initialValue);if(!X){if(H!==Z.value)Z.value=H}Z.defaultValue=H}var G=Z.name;if(G!=="")Z.name="";if(Z.defaultChecked=!Z.defaultChecked,Z.defaultChecked=!!Z._wrapperState.initialChecked,G!=="")Z.name=G}function j0(z,Q){var X=z;j(X,Q),P0(X,Q)}function P0(z,Q){var X=Q.name;if(Q.type==="radio"&&X!=null){var Z=z;while(Z.parentNode)Z=Z.parentNode;M6(X,"name");var J=Z.querySelectorAll("input[name="+JSON.stringify(""+X)+'][type="radio"]');for(var Y=0;Y<J.length;Y++){var H=J[Y];if(H===z||H.form!==z.form)continue;var G=oZ(H);if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");d8(H),j(H,G)}}}function x0(z,Q,X){if(Q!=="number"||N7(z.ownerDocument)!==z){if(X==null)z.defaultValue=w4(z._wrapperState.initialValue);else if(z.defaultValue!==w4(X))z.defaultValue=w4(X)}}var b1=!1,D1=!1,d1=!1;function c1(z,Q){{if(Q.value==null){if(typeof Q.children==="object"&&Q.children!==null)mX.Children.forEach(Q.children,function(X){if(X==null)return;if(typeof X==="string"||typeof X==="number")return;if(!D1)D1=!0,$("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")});else if(Q.dangerouslySetInnerHTML!=null){if(!d1)d1=!0,$("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")}}if(Q.selected!=null&&!b1)$("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),b1=!0}}function X6(z,Q){if(Q.value!=null)z.setAttribute("value",w4(I5(Q.value)))}var O6=Array.isArray;function _1(z){return O6(z)}var z8=!1;function l8(){var z=P7();if(z)return`
|
|
30
|
+
|
|
31
|
+
Check the render method of \``+z+"`.";return""}var bQ=["value","defaultValue"];function EY(z){{x8("select",z);for(var Q=0;Q<bQ.length;Q++){var X=bQ[Q];if(z[X]==null)continue;var Z=_1(z[X]);if(z.multiple&&!Z)$("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",X,l8());else if(!z.multiple&&Z)$("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",X,l8())}}}function p5(z,Q,X,Z){var J=z.options;if(Q){var Y=X,H={};for(var G=0;G<Y.length;G++)H["$"+Y[G]]=!0;for(var U=0;U<J.length;U++){var B=H.hasOwnProperty("$"+J[U].value);if(J[U].selected!==B)J[U].selected=B;if(B&&Z)J[U].defaultSelected=!0}}else{var O=w4(I5(X)),V=null;for(var M=0;M<J.length;M++){if(J[M].value===O){if(J[M].selected=!0,Z)J[M].defaultSelected=!0;return}if(V===null&&!J[M].disabled)V=J[M]}if(V!==null)V.selected=!0}}function GQ(z,Q){return s0({},Q,{value:void 0})}function $Q(z,Q){var X=z;if(EY(Q),X._wrapperState={wasMultiple:!!Q.multiple},Q.value!==void 0&&Q.defaultValue!==void 0&&!z8)$("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"),z8=!0}function TY(z,Q){var X=z;X.multiple=!!Q.multiple;var Z=Q.value;if(Z!=null)p5(X,!!Q.multiple,Z,!1);else if(Q.defaultValue!=null)p5(X,!!Q.multiple,Q.defaultValue,!0)}function c9(z,Q){var X=z,Z=X._wrapperState.wasMultiple;X._wrapperState.wasMultiple=!!Q.multiple;var J=Q.value;if(J!=null)p5(X,!!Q.multiple,J,!1);else if(Z!==!!Q.multiple)if(Q.defaultValue!=null)p5(X,!!Q.multiple,Q.defaultValue,!0);else p5(X,!!Q.multiple,Q.multiple?[]:"",!1)}function l9(z,Q){var X=z,Z=Q.value;if(Z!=null)p5(X,!!Q.multiple,Z,!1)}var e$=!1;function fY(z,Q){var X=z;if(Q.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var Z=s0({},Q,{value:void 0,defaultValue:void 0,children:w4(X._wrapperState.initialValue)});return Z}function zU(z,Q){var X=z;if(x8("textarea",Q),Q.value!==void 0&&Q.defaultValue!==void 0&&!e$)$("%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",P7()||"A component"),e$=!0;var Z=Q.value;if(Z==null){var{children:J,defaultValue:Y}=Q;if(J!=null){$("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(Y!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(_1(J)){if(J.length>1)throw Error("<textarea> can only have at most one child.");J=J[0]}Y=J}}if(Y==null)Y="";Z=Y}X._wrapperState={initialValue:I5(Z)}}function QU(z,Q){var X=z,Z=I5(Q.value),J=I5(Q.defaultValue);if(Z!=null){var Y=w4(Z);if(Y!==X.value)X.value=Y;if(Q.defaultValue==null&&X.defaultValue!==Y)X.defaultValue=Y}if(J!=null)X.defaultValue=w4(J)}function XU(z,Q){var X=z,Z=X.textContent;if(Z===X._wrapperState.initialValue){if(Z!==""&&Z!==null)X.value=Z}}function a9(z,Q){QU(z,Q)}var o5="http://www.w3.org/1999/xhtml",p9="http://www.w3.org/1998/Math/MathML",CY="http://www.w3.org/2000/svg";function SY(z){switch(z){case"svg":return CY;case"math":return p9;default:return o5}}function hY(z,Q){if(z==null||z===o5)return SY(Q);if(z===CY&&Q==="foreignObject")return o5;return z}var o9=function(z){if(typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction)return function(Q,X,Z,J){MSApp.execUnsafeLocalFunction(function(){return z(Q,X,Z,J)})};else return z},bZ,ZU=o9(function(z,Q){if(z.namespaceURI===CY){if(!("innerHTML"in z)){bZ=bZ||document.createElement("div"),bZ.innerHTML="<svg>"+Q.valueOf().toString()+"</svg>";var X=bZ.firstChild;while(z.firstChild)z.removeChild(z.firstChild);while(X.firstChild)z.appendChild(X.firstChild);return}}z.innerHTML=Q}),D4=1,i5=3,V6=8,r5=9,gY=11,GZ=function(z,Q){if(Q){var X=z.firstChild;if(X&&X===z.lastChild&&X.nodeType===i5){X.nodeValue=Q;return}}z.textContent=Q},i9={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"]},UQ={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 r9(z,Q){return z+Q.charAt(0).toUpperCase()+Q.substring(1)}var n9=["Webkit","ms","Moz","O"];Object.keys(UQ).forEach(function(z){n9.forEach(function(Q){UQ[r9(Q,z)]=UQ[z]})});function jY(z,Q,X){var Z=Q==null||typeof Q==="boolean"||Q==="";if(Z)return"";if(!X&&typeof Q==="number"&&Q!==0&&!(UQ.hasOwnProperty(z)&&UQ[z]))return Q+"px";return H6(Q,z),(""+Q).trim()}var t9=/([A-Z])/g,s9=/^ms-/;function e9(z){return z.replace(t9,"-$1").toLowerCase().replace(s9,"-ms-")}var JU=function(){};{var zv=/^(?:webkit|moz|o)[A-Z]/,Qv=/^-ms-/,Xv=/-(.)/g,YU=/;\s*$/,a8={},uY={},HU=!1,bU=!1,Zv=function(z){return z.replace(Xv,function(Q,X){return X.toUpperCase()})},Jv=function(z){if(a8.hasOwnProperty(z)&&a8[z])return;a8[z]=!0,$("Unsupported style property %s. Did you mean %s?",z,Zv(z.replace(Qv,"ms-")))},Yv=function(z){if(a8.hasOwnProperty(z)&&a8[z])return;a8[z]=!0,$("Unsupported vendor-prefixed style property %s. Did you mean %s?",z,z.charAt(0).toUpperCase()+z.slice(1))},Hv=function(z,Q){if(uY.hasOwnProperty(Q)&&uY[Q])return;uY[Q]=!0,$(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,z,Q.replace(YU,""))},bv=function(z,Q){if(HU)return;HU=!0,$("`NaN` is an invalid value for the `%s` css style property.",z)},Gv=function(z,Q){if(bU)return;bU=!0,$("`Infinity` is an invalid value for the `%s` css style property.",z)};JU=function(z,Q){if(z.indexOf("-")>-1)Jv(z);else if(zv.test(z))Yv(z);else if(YU.test(Q))Hv(z,Q);if(typeof Q==="number"){if(isNaN(Q))bv(z,Q);else if(!isFinite(Q))Gv(z,Q)}}}var $v=JU;function Uv(z){{var Q="",X="";for(var Z in z){if(!z.hasOwnProperty(Z))continue;var J=z[Z];if(J!=null){var Y=Z.indexOf("--")===0;Q+=X+(Y?Z:e9(Z))+":",Q+=jY(Z,J,Y),X=";"}}return Q||null}}function GU(z,Q){var X=z.style;for(var Z in Q){if(!Q.hasOwnProperty(Z))continue;var J=Z.indexOf("--")===0;if(!J)$v(Z,Q[Z]);var Y=jY(Z,Q[Z],J);if(Z==="float")Z="cssFloat";if(J)X.setProperty(Z,Y);else X[Z]=Y}}function qv(z){return z==null||typeof z==="boolean"||z===""}function $U(z){var Q={};for(var X in z){var Z=i9[X]||[X];for(var J=0;J<Z.length;J++)Q[Z[J]]=X}return Q}function Kv(z,Q){{if(!Q)return;var X=$U(z),Z=$U(Q),J={};for(var Y in X){var H=X[Y],G=Z[Y];if(G&&H!==G){var U=H+","+G;if(J[U])continue;J[U]=!0,$("%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.",qv(z[H])?"Removing":"Updating",H,G)}}}}var Bv={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},vv=s0({menuitem:!0},Bv),Ov="__html";function mY(z,Q){if(!Q)return;if(vv[z]){if(Q.children!=null||Q.dangerouslySetInnerHTML!=null)throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.")}if(Q.dangerouslySetInnerHTML!=null){if(Q.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Q.dangerouslySetInnerHTML!=="object"||!(Ov in Q.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(!Q.suppressContentEditableWarning&&Q.contentEditable&&Q.children!=null)$("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(Q.style!=null&&typeof Q.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 Q8(z,Q){if(z.indexOf("-")===-1)return typeof Q.is==="string";switch(z){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $Z={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"},UU={"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},p8={},Lv=new RegExp("^(aria)-["+N6+"]*$"),_v=new RegExp("^(aria)[A-Z]["+N6+"]*$");function Wv(z,Q){{if(I6.call(p8,Q)&&p8[Q])return!0;if(_v.test(Q)){var X="aria-"+Q.slice(4).toLowerCase(),Z=UU.hasOwnProperty(X)?X:null;if(Z==null)return $("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Q),p8[Q]=!0,!0;if(Q!==Z)return $("Invalid ARIA attribute `%s`. Did you mean `%s`?",Q,Z),p8[Q]=!0,!0}if(Lv.test(Q)){var J=Q.toLowerCase(),Y=UU.hasOwnProperty(J)?J:null;if(Y==null)return p8[Q]=!0,!1;if(Q!==Y)return $("Unknown ARIA attribute `%s`. Did you mean `%s`?",Q,Y),p8[Q]=!0,!0}}return!0}function Fv(z,Q){{var X=[];for(var Z in Q){var J=Wv(z,Z);if(!J)X.push(Z)}var Y=X.map(function(H){return"`"+H+"`"}).join(", ");if(X.length===1)$("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",Y,z);else if(X.length>1)$("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",Y,z)}}function Av(z,Q){if(Q8(z,Q))return;Fv(z,Q)}var qU=!1;function Rv(z,Q){{if(z!=="input"&&z!=="textarea"&&z!=="select")return;if(Q!=null&&Q.value===null&&!qU)if(qU=!0,z==="select"&&Q.multiple)$("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",z);else $("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",z)}}var KU=function(){};{var F4={},BU=/^on./,Pv=/^on[^A-Z]/,Mv=new RegExp("^(aria)-["+N6+"]*$"),Nv=new RegExp("^(aria)[A-Z]["+N6+"]*$");KU=function(z,Q,X,Z){if(I6.call(F4,Q)&&F4[Q])return!0;var J=Q.toLowerCase();if(J==="onfocusin"||J==="onfocusout")return $("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[Q]=!0,!0;if(Z!=null){var{registrationNameDependencies:Y,possibleRegistrationNames:H}=Z;if(Y.hasOwnProperty(Q))return!0;var G=H.hasOwnProperty(J)?H[J]:null;if(G!=null)return $("Invalid event handler property `%s`. Did you mean `%s`?",Q,G),F4[Q]=!0,!0;if(BU.test(Q))return $("Unknown event handler property `%s`. It will be ignored.",Q),F4[Q]=!0,!0}else if(BU.test(Q)){if(Pv.test(Q))$("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Q);return F4[Q]=!0,!0}if(Mv.test(Q)||Nv.test(Q))return!0;if(J==="innerhtml")return $("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),F4[Q]=!0,!0;if(J==="aria")return $("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),F4[Q]=!0,!0;if(J==="is"&&X!==null&&X!==void 0&&typeof X!=="string")return $("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof X),F4[Q]=!0,!0;if(typeof X==="number"&&isNaN(X))return $("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Q),F4[Q]=!0,!0;var U=A6(Q),B=U!==null&&U.type===o6;if($Z.hasOwnProperty(J)){var O=$Z[J];if(O!==Q)return $("Invalid DOM property `%s`. Did you mean `%s`?",Q,O),F4[Q]=!0,!0}else if(!B&&Q!==J)return $("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.",Q,J),F4[Q]=!0,!0;if(typeof X==="boolean"&&b6(Q,X,U,!1)){if(X)$('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',X,Q,Q,X,Q);else $('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',X,Q,Q,X,Q,Q,Q);return F4[Q]=!0,!0}if(B)return!0;if(b6(Q,X,U,!1))return F4[Q]=!0,!1;if((X==="false"||X==="true")&&U!==null&&U.type===i1)return $("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",X,Q,X==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',Q,X),F4[Q]=!0,!0;return!0}}var Vv=function(z,Q,X){{var Z=[];for(var J in Q){var Y=KU(z,J,Q[J],X);if(!Y)Z.push(J)}var H=Z.map(function(G){return"`"+G+"`"}).join(", ");if(Z.length===1)$("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 ",H,z);else if(Z.length>1)$("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 ",H,z)}};function kv(z,Q,X){if(Q8(z,Q))return;Vv(z,Q,X)}var vU=1,yY=2,qQ=4,wv=vU|yY|qQ,KQ=null;function Dv(z){if(KQ!==null)$("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.");KQ=z}function Iv(){if(KQ===null)$("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.");KQ=null}function Ev(z){return z===KQ}function xY(z){var Q=z.target||z.srcElement||window;if(Q.correspondingUseElement)Q=Q.correspondingUseElement;return Q.nodeType===i5?Q.parentNode:Q}var dY=null,o8=null,i8=null;function OU(z){var Q=f7(z);if(!Q)return;if(typeof dY!=="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 X=Q.stateNode;if(X){var Z=oZ(X);dY(Q.stateNode,Q.type,Z)}}function Tv(z){dY=z}function LU(z){if(o8)if(i8)i8.push(z);else i8=[z];else o8=z}function fv(){return o8!==null||i8!==null}function _U(){if(!o8)return;var z=o8,Q=i8;if(o8=null,i8=null,OU(z),Q)for(var X=0;X<Q.length;X++)OU(Q[X])}var WU=function(z,Q){return z(Q)},FU=function(){},cY=!1;function Cv(){var z=fv();if(z)FU(),_U()}function AU(z,Q,X){if(cY)return z(Q,X);cY=!0;try{return WU(z,Q,X)}finally{cY=!1,Cv()}}function Sv(z,Q,X){WU=z,FU=X}function hv(z){return z==="button"||z==="input"||z==="select"||z==="textarea"}function gv(z,Q,X){switch(z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(X.disabled&&hv(Q));default:return!1}}function BQ(z,Q){var X=z.stateNode;if(X===null)return null;var Z=oZ(X);if(Z===null)return null;var J=Z[Q];if(gv(Q,z.type,Z))return null;if(J&&typeof J!=="function")throw Error("Expected `"+Q+"` listener to be a function, instead got a value of `"+typeof J+"` type.");return J}var lY=!1;if(o1)try{var vQ={};Object.defineProperty(vQ,"passive",{get:function(){lY=!0}}),window.addEventListener("test",vQ,vQ),window.removeEventListener("test",vQ,vQ)}catch(z){lY=!1}function RU(z,Q,X,Z,J,Y,H,G,U){var B=Array.prototype.slice.call(arguments,3);try{Q.apply(X,B)}catch(O){this.onError(O)}}var PU=RU;if(typeof window<"u"&&typeof window.dispatchEvent==="function"&&typeof document<"u"&&typeof document.createEvent==="function"){var aY=document.createElement("react");PU=function(Q,X,Z,J,Y,H,G,U,B){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"),V=!1,M=!0,C=window.event,S=Object.getOwnPropertyDescriptor(window,"event");function g(){if(aY.removeEventListener(m,T0,!1),typeof window.event<"u"&&window.hasOwnProperty("event"))window.event=C}var U0=Array.prototype.slice.call(arguments,3);function T0(){V=!0,g(),X.apply(Z,U0),M=!1}var k0,Z1=!1,J1=!1;function D(I){if(k0=I.error,Z1=!0,k0===null&&I.colno===0&&I.lineno===0)J1=!0;if(I.defaultPrevented){if(k0!=null&&typeof k0==="object")try{k0._suppressLogging=!0}catch(r){}}}var m="react-"+(Q?Q:"invokeguardedcallback");if(window.addEventListener("error",D),aY.addEventListener(m,T0,!1),O.initEvent(m,!1,!1),aY.dispatchEvent(O),S)Object.defineProperty(window,"event",S);if(V&&M){if(!Z1)k0=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(J1)k0=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(k0)}if(window.removeEventListener("error",D),!V)return g(),RU.apply(this,arguments)}}var jv=PU,r8=!1,UZ=null,qZ=!1,pY=null,uv={onError:function(z){r8=!0,UZ=z}};function oY(z,Q,X,Z,J,Y,H,G,U){r8=!1,UZ=null,jv.apply(uv,arguments)}function mv(z,Q,X,Z,J,Y,H,G,U){if(oY.apply(this,arguments),r8){var B=iY();if(!qZ)qZ=!0,pY=B}}function yv(){if(qZ){var z=pY;throw qZ=!1,pY=null,z}}function xv(){return r8}function iY(){if(r8){var z=UZ;return r8=!1,UZ=null,z}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 n8(z){return z._reactInternals}function dv(z){return z._reactInternals!==void 0}function cv(z,Q){z._reactInternals=Q}var h0=0,t8=1,k6=2,K1=4,X8=16,OQ=32,rY=64,W1=128,n5=256,V7=512,Z8=1024,H5=2048,t5=4096,J8=8192,KZ=16384,lv=H5|K1|rY|V7|Z8|KZ,av=32767,LQ=32768,A4=65536,nY=131072,MU=1048576,tY=2097152,Y8=4194304,sY=8388608,s5=16777216,BZ=33554432,eY=K1|Z8|0,zH=k6|K1|X8|OQ|V7|t5|J8,_Q=K1|rY|V7|J8,s8=H5|X8,e5=Y8|sY|tY,pv=b.ReactCurrentOwner;function H8(z){var Q=z,X=z;if(!z.alternate){var Z=Q;do{if(Q=Z,(Q.flags&(k6|t5))!==h0)X=Q.return;Z=Q.return}while(Z)}else while(Q.return)Q=Q.return;if(Q.tag===E)return X;return null}function NU(z){if(z.tag===l){var Q=z.memoizedState;if(Q===null){var X=z.alternate;if(X!==null)Q=X.memoizedState}if(Q!==null)return Q.dehydrated}return null}function VU(z){return z.tag===E?z.stateNode.containerInfo:null}function ov(z){return H8(z)===z}function iv(z){{var Q=pv.current;if(Q!==null&&Q.tag===A){var X=Q,Z=X.stateNode;if(!Z._warnedAboutRefsInRender)$("%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.",n0(X)||"A component");Z._warnedAboutRefsInRender=!0}}var J=n8(z);if(!J)return!1;return H8(J)===J}function kU(z){if(H8(z)!==z)throw Error("Unable to find node on an unmounted component.")}function wU(z){var Q=z.alternate;if(!Q){var X=H8(z);if(X===null)throw Error("Unable to find node on an unmounted component.");if(X!==z)return null;return z}var Z=z,J=Q;while(!0){var Y=Z.return;if(Y===null)break;var H=Y.alternate;if(H===null){var G=Y.return;if(G!==null){Z=J=G;continue}break}if(Y.child===H.child){var U=Y.child;while(U){if(U===Z)return kU(Y),z;if(U===J)return kU(Y),Q;U=U.sibling}throw Error("Unable to find node on an unmounted component.")}if(Z.return!==J.return)Z=Y,J=H;else{var B=!1,O=Y.child;while(O){if(O===Z){B=!0,Z=Y,J=H;break}if(O===J){B=!0,J=Y,Z=H;break}O=O.sibling}if(!B){O=H.child;while(O){if(O===Z){B=!0,Z=H,J=Y;break}if(O===J){B=!0,J=H,Z=Y;break}O=O.sibling}if(!B)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(Z.alternate!==J)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(Z.tag!==E)throw Error("Unable to find node on an unmounted component.");if(Z.stateNode.current===Z)return z;return Q}function DU(z){var Q=wU(z);return Q!==null?IU(Q):null}function IU(z){if(z.tag===w||z.tag===T)return z;var Q=z.child;while(Q!==null){var X=IU(Q);if(X!==null)return X;Q=Q.sibling}return null}function rv(z){var Q=wU(z);return Q!==null?EU(Q):null}function EU(z){if(z.tag===w||z.tag===T)return z;var Q=z.child;while(Q!==null){if(Q.tag!==N){var X=EU(Q);if(X!==null)return X}Q=Q.sibling}return null}var TU=f1.unstable_scheduleCallback,nv=f1.unstable_cancelCallback,tv=f1.unstable_shouldYield,sv=f1.unstable_requestPaint,c6=f1.unstable_now,ev=f1.unstable_getCurrentPriorityLevel,vZ=f1.unstable_ImmediatePriority,QH=f1.unstable_UserBlockingPriority,b8=f1.unstable_NormalPriority,zO=f1.unstable_LowPriority,XH=f1.unstable_IdlePriority,QO=f1.unstable_yieldValue,XO=f1.unstable_setDisableYieldValue,G8=null,r6=null,B0=null,E5=!1,b5=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function ZO(z){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Q=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Q.isDisabled)return!0;if(!Q.supportsFiber)return $("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(U6)z=s0({},z,{getLaneLabelMap:$O,injectProfilingHooks:GO});G8=Q.inject(z),r6=Q}catch(X){$("React instrumentation encountered an error: %s.",X)}if(Q.checkDCE)return!0;else return!1}function JO(z,Q){if(r6&&typeof r6.onScheduleFiberRoot==="function")try{r6.onScheduleFiberRoot(G8,z,Q)}catch(X){if(!E5)E5=!0,$("React instrumentation encountered an error: %s",X)}}function YO(z,Q){if(r6&&typeof r6.onCommitFiberRoot==="function")try{var X=(z.current.flags&W1)===W1;if(s1){var Z;switch(Q){case y4:Z=vZ;break;case Q7:Z=QH;break;case X7:Z=b8;break;case PZ:Z=XH;break;default:Z=b8;break}r6.onCommitFiberRoot(G8,z,Z,X)}else r6.onCommitFiberRoot(G8,z,void 0,X)}catch(J){if(!E5)E5=!0,$("React instrumentation encountered an error: %s",J)}}function HO(z){if(r6&&typeof r6.onPostCommitFiberRoot==="function")try{r6.onPostCommitFiberRoot(G8,z)}catch(Q){if(!E5)E5=!0,$("React instrumentation encountered an error: %s",Q)}}function bO(z){if(r6&&typeof r6.onCommitFiberUnmount==="function")try{r6.onCommitFiberUnmount(G8,z)}catch(Q){if(!E5)E5=!0,$("React instrumentation encountered an error: %s",Q)}}function l6(z){{if(typeof QO==="function")XO(z),v(z);if(r6&&typeof r6.setStrictMode==="function")try{r6.setStrictMode(G8,z)}catch(Q){if(!E5)E5=!0,$("React instrumentation encountered an error: %s",Q)}}}function GO(z){B0=z}function $O(){{var z=new Map,Q=1;for(var X=0;X<JH;X++){var Z=IO(Q);z.set(Q,Z),Q*=2}return z}}function UO(z){if(B0!==null&&typeof B0.markCommitStarted==="function")B0.markCommitStarted(z)}function fU(){if(B0!==null&&typeof B0.markCommitStopped==="function")B0.markCommitStopped()}function WQ(z){if(B0!==null&&typeof B0.markComponentRenderStarted==="function")B0.markComponentRenderStarted(z)}function e8(){if(B0!==null&&typeof B0.markComponentRenderStopped==="function")B0.markComponentRenderStopped()}function qO(z){if(B0!==null&&typeof B0.markComponentPassiveEffectMountStarted==="function")B0.markComponentPassiveEffectMountStarted(z)}function KO(){if(B0!==null&&typeof B0.markComponentPassiveEffectMountStopped==="function")B0.markComponentPassiveEffectMountStopped()}function BO(z){if(B0!==null&&typeof B0.markComponentPassiveEffectUnmountStarted==="function")B0.markComponentPassiveEffectUnmountStarted(z)}function vO(){if(B0!==null&&typeof B0.markComponentPassiveEffectUnmountStopped==="function")B0.markComponentPassiveEffectUnmountStopped()}function OO(z){if(B0!==null&&typeof B0.markComponentLayoutEffectMountStarted==="function")B0.markComponentLayoutEffectMountStarted(z)}function LO(){if(B0!==null&&typeof B0.markComponentLayoutEffectMountStopped==="function")B0.markComponentLayoutEffectMountStopped()}function CU(z){if(B0!==null&&typeof B0.markComponentLayoutEffectUnmountStarted==="function")B0.markComponentLayoutEffectUnmountStarted(z)}function SU(){if(B0!==null&&typeof B0.markComponentLayoutEffectUnmountStopped==="function")B0.markComponentLayoutEffectUnmountStopped()}function _O(z,Q,X){if(B0!==null&&typeof B0.markComponentErrored==="function")B0.markComponentErrored(z,Q,X)}function WO(z,Q,X){if(B0!==null&&typeof B0.markComponentSuspended==="function")B0.markComponentSuspended(z,Q,X)}function FO(z){if(B0!==null&&typeof B0.markLayoutEffectsStarted==="function")B0.markLayoutEffectsStarted(z)}function AO(){if(B0!==null&&typeof B0.markLayoutEffectsStopped==="function")B0.markLayoutEffectsStopped()}function RO(z){if(B0!==null&&typeof B0.markPassiveEffectsStarted==="function")B0.markPassiveEffectsStarted(z)}function PO(){if(B0!==null&&typeof B0.markPassiveEffectsStopped==="function")B0.markPassiveEffectsStopped()}function hU(z){if(B0!==null&&typeof B0.markRenderStarted==="function")B0.markRenderStarted(z)}function MO(){if(B0!==null&&typeof B0.markRenderYielded==="function")B0.markRenderYielded()}function gU(){if(B0!==null&&typeof B0.markRenderStopped==="function")B0.markRenderStopped()}function NO(z){if(B0!==null&&typeof B0.markRenderScheduled==="function")B0.markRenderScheduled(z)}function VO(z,Q){if(B0!==null&&typeof B0.markForceUpdateScheduled==="function")B0.markForceUpdateScheduled(z,Q)}function ZH(z,Q){if(B0!==null&&typeof B0.markStateUpdateScheduled==="function")B0.markStateUpdateScheduled(z,Q)}var C0=0,G1=1,I1=2,L6=8,T5=16,jU=Math.clz32?Math.clz32:DO,kO=Math.log,wO=Math.LN2;function DO(z){var Q=z>>>0;if(Q===0)return 32;return 31-(kO(Q)/wO|0)|0}var JH=31,p=0,a6=0,d0=1,zz=2,z7=4,$8=8,f5=16,FQ=32,Qz=4194240,AQ=64,YH=128,HH=256,bH=512,GH=1024,$H=2048,UH=4096,qH=8192,KH=16384,BH=32768,vH=65536,OH=131072,LH=262144,_H=524288,WH=1048576,FH=2097152,OZ=130023424,Xz=4194304,AH=8388608,RH=16777216,PH=33554432,MH=67108864,uU=Xz,RQ=134217728,mU=268435455,PQ=268435456,U8=536870912,u4=1073741824;function IO(z){{if(z&d0)return"Sync";if(z&zz)return"InputContinuousHydration";if(z&z7)return"InputContinuous";if(z&$8)return"DefaultHydration";if(z&f5)return"Default";if(z&FQ)return"TransitionHydration";if(z&Qz)return"Transition";if(z&OZ)return"Retry";if(z&RQ)return"SelectiveHydration";if(z&PQ)return"IdleHydration";if(z&U8)return"Idle";if(z&u4)return"Offscreen"}}var n1=-1,LZ=AQ,_Z=Xz;function MQ(z){switch(q8(z)){case d0:return d0;case zz:return zz;case z7:return z7;case $8:return $8;case f5:return f5;case FQ:return FQ;case AQ:case YH:case HH:case bH:case GH:case $H:case UH:case qH:case KH:case BH:case vH:case OH:case LH:case _H:case WH:case FH:return z&Qz;case Xz:case AH:case RH:case PH:case MH:return z&OZ;case RQ:return RQ;case PQ:return PQ;case U8:return U8;case u4:return u4;default:return $("Should have found matching lanes. This is a bug in React."),z}}function WZ(z,Q){var X=z.pendingLanes;if(X===p)return p;var Z=p,J=z.suspendedLanes,Y=z.pingedLanes,H=X&mU;if(H!==p){var G=H&~J;if(G!==p)Z=MQ(G);else{var U=H&Y;if(U!==p)Z=MQ(U)}}else{var B=X&~J;if(B!==p)Z=MQ(B);else if(Y!==p)Z=MQ(Y)}if(Z===p)return p;if(Q!==p&&Q!==Z&&(Q&J)===p){var O=q8(Z),V=q8(Q);if(O>=V||O===f5&&(V&Qz)!==p)return Q}if((Z&z7)!==p)Z|=X&f5;var M=z.entangledLanes;if(M!==p){var C=z.entanglements,S=Z&M;while(S>0){var g=K8(S),U0=1<<g;Z|=C[g],S&=~U0}}return Z}function EO(z,Q){var X=z.eventTimes,Z=n1;while(Q>0){var J=K8(Q),Y=1<<J,H=X[J];if(H>Z)Z=H;Q&=~Y}return Z}function TO(z,Q){switch(z){case d0:case zz:case z7:return Q+250;case $8:case f5:case FQ:case AQ:case YH:case HH:case bH:case GH:case $H:case UH:case qH:case KH:case BH:case vH:case OH:case LH:case _H:case WH:case FH:return Q+5000;case Xz:case AH:case RH:case PH:case MH:return n1;case RQ:case PQ:case U8:case u4:return n1;default:return $("Should have found matching lanes. This is a bug in React."),n1}}function fO(z,Q){var{pendingLanes:X,suspendedLanes:Z,pingedLanes:J,expirationTimes:Y}=z,H=X;while(H>0){var G=K8(H),U=1<<G,B=Y[G];if(B===n1){if((U&Z)===p||(U&J)!==p)Y[G]=TO(U,Q)}else if(B<=Q)z.expiredLanes|=U;H&=~U}}function CO(z){return MQ(z.pendingLanes)}function NH(z){var Q=z.pendingLanes&~u4;if(Q!==p)return Q;if(Q&u4)return u4;return p}function SO(z){return(z&d0)!==p}function VH(z){return(z&mU)!==p}function yU(z){return(z&OZ)===z}function hO(z){var Q=d0|z7|f5;return(z&Q)===p}function gO(z){return(z&Qz)===z}function FZ(z,Q){var X=zz|z7|$8|f5;return(Q&X)!==p}function jO(z,Q){return(Q&z.expiredLanes)!==p}function xU(z){return(z&Qz)!==p}function dU(){var z=LZ;if(LZ<<=1,(LZ&Qz)===p)LZ=AQ;return z}function uO(){var z=_Z;if(_Z<<=1,(_Z&OZ)===p)_Z=Xz;return z}function q8(z){return z&-z}function NQ(z){return q8(z)}function K8(z){return 31-jU(z)}function kH(z){return K8(z)}function m4(z,Q){return(z&Q)!==p}function Zz(z,Q){return(z&Q)===Q}function t0(z,Q){return z|Q}function AZ(z,Q){return z&~Q}function cU(z,Q){return z&Q}function RZ(z){return z}function mO(z,Q){return z!==a6&&z<Q?z:Q}function wH(z){var Q=[];for(var X=0;X<JH;X++)Q.push(z);return Q}function VQ(z,Q,X){if(z.pendingLanes|=Q,Q!==U8)z.suspendedLanes=p,z.pingedLanes=p;var Z=z.eventTimes,J=kH(Q);Z[J]=X}function yO(z,Q){z.suspendedLanes|=Q,z.pingedLanes&=~Q;var X=z.expirationTimes,Z=Q;while(Z>0){var J=K8(Z),Y=1<<J;X[J]=n1,Z&=~Y}}function lU(z,Q,X){z.pingedLanes|=z.suspendedLanes&Q}function xO(z,Q){var X=z.pendingLanes&~Q;z.pendingLanes=Q,z.suspendedLanes=p,z.pingedLanes=p,z.expiredLanes&=Q,z.mutableReadLanes&=Q,z.entangledLanes&=Q;var{entanglements:Z,eventTimes:J,expirationTimes:Y}=z,H=X;while(H>0){var G=K8(H),U=1<<G;Z[G]=p,J[G]=n1,Y[G]=n1,H&=~U}}function DH(z,Q){var X=z.entangledLanes|=Q,Z=z.entanglements,J=X;while(J){var Y=K8(J),H=1<<Y;if(H&Q|Z[Y]&Q)Z[Y]|=Q;J&=~H}}function dO(z,Q){var X=q8(Q),Z;switch(X){case z7:Z=zz;break;case f5:Z=$8;break;case AQ:case YH:case HH:case bH:case GH:case $H:case UH:case qH:case KH:case BH:case vH:case OH:case LH:case _H:case WH:case FH:case Xz:case AH:case RH:case PH:case MH:Z=FQ;break;case U8:Z=PQ;break;default:Z=a6;break}if((Z&(z.suspendedLanes|Q))!==a6)return a6;return Z}function aU(z,Q,X){if(!b5)return;var Z=z.pendingUpdatersLaneMap;while(X>0){var J=kH(X),Y=1<<J,H=Z[J];H.add(Q),X&=~Y}}function pU(z,Q){if(!b5)return;var{pendingUpdatersLaneMap:X,memoizedUpdaters:Z}=z;while(Q>0){var J=kH(Q),Y=1<<J,H=X[J];if(H.size>0)H.forEach(function(G){var U=G.alternate;if(U===null||!Z.has(U))Z.add(G)}),H.clear();Q&=~Y}}function oU(z,Q){return null}var y4=d0,Q7=z7,X7=f5,PZ=U8,kQ=a6;function G5(){return kQ}function p6(z){kQ=z}function cO(z,Q){var X=kQ;try{return kQ=z,Q()}finally{kQ=X}}function lO(z,Q){return z!==0&&z<Q?z:Q}function aO(z,Q){return z===0||z>Q?z:Q}function IH(z,Q){return z!==0&&z<Q}function iU(z){var Q=q8(z);if(!IH(y4,Q))return y4;if(!IH(Q7,Q))return Q7;if(VH(Q))return X7;return PZ}function MZ(z){var Q=z.current.memoizedState;return Q.isDehydrated}var rU;function pO(z){rU=z}function oO(z){rU(z)}var EH;function iO(z){EH=z}var nU;function rO(z){nU=z}var tU;function nO(z){tU=z}var sU;function tO(z){sU=z}var TH=!1,NZ=[],k7=null,w7=null,D7=null,wQ=new Map,DQ=new Map,I7=[],sO=["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 eO(z){return sO.indexOf(z)>-1}function zL(z,Q,X,Z,J){return{blockedOn:z,domEventName:Q,eventSystemFlags:X,nativeEvent:J,targetContainers:[Z]}}function eU(z,Q){switch(z){case"focusin":case"focusout":k7=null;break;case"dragenter":case"dragleave":w7=null;break;case"mouseover":case"mouseout":D7=null;break;case"pointerover":case"pointerout":{var X=Q.pointerId;wQ.delete(X);break}case"gotpointercapture":case"lostpointercapture":{var Z=Q.pointerId;DQ.delete(Z);break}}}function IQ(z,Q,X,Z,J,Y){if(z===null||z.nativeEvent!==Y){var H=zL(Q,X,Z,J,Y);if(Q!==null){var G=f7(Q);if(G!==null)EH(G)}return H}z.eventSystemFlags|=Z;var U=z.targetContainers;if(J!==null&&U.indexOf(J)===-1)U.push(J);return z}function QL(z,Q,X,Z,J){switch(Q){case"focusin":{var Y=J;return k7=IQ(k7,z,Q,X,Z,Y),!0}case"dragenter":{var H=J;return w7=IQ(w7,z,Q,X,Z,H),!0}case"mouseover":{var G=J;return D7=IQ(D7,z,Q,X,Z,G),!0}case"pointerover":{var U=J,B=U.pointerId;return wQ.set(B,IQ(wQ.get(B)||null,z,Q,X,Z,U)),!0}case"gotpointercapture":{var O=J,V=O.pointerId;return DQ.set(V,IQ(DQ.get(V)||null,z,Q,X,Z,O)),!0}}return!1}function zq(z){var Q=O8(z.target);if(Q!==null){var X=H8(Q);if(X!==null){var Z=X.tag;if(Z===l){var J=NU(X);if(J!==null){z.blockedOn=J,sU(z.priority,function(){nU(X)});return}}else if(Z===E){var Y=X.stateNode;if(MZ(Y)){z.blockedOn=VU(X);return}}}}z.blockedOn=null}function XL(z){var Q=tU(),X={blockedOn:null,target:z,priority:Q},Z=0;for(;Z<I7.length;Z++)if(!IH(Q,I7[Z].priority))break;if(I7.splice(Z,0,X),Z===0)zq(X)}function VZ(z){if(z.blockedOn!==null)return!1;var Q=z.targetContainers;while(Q.length>0){var X=Q[0],Z=SH(z.domEventName,z.eventSystemFlags,X,z.nativeEvent);if(Z===null){var J=z.nativeEvent,Y=new J.constructor(J.type,J);Dv(Y),J.target.dispatchEvent(Y),Iv()}else{var H=f7(Z);if(H!==null)EH(H);return z.blockedOn=Z,!1}Q.shift()}return!0}function Qq(z,Q,X){if(VZ(z))X.delete(Q)}function ZL(){if(TH=!1,k7!==null&&VZ(k7))k7=null;if(w7!==null&&VZ(w7))w7=null;if(D7!==null&&VZ(D7))D7=null;wQ.forEach(Qq),DQ.forEach(Qq)}function EQ(z,Q){if(z.blockedOn===Q){if(z.blockedOn=null,!TH)TH=!0,f1.unstable_scheduleCallback(f1.unstable_NormalPriority,ZL)}}function TQ(z){if(NZ.length>0){EQ(NZ[0],z);for(var Q=1;Q<NZ.length;Q++){var X=NZ[Q];if(X.blockedOn===z)X.blockedOn=null}}if(k7!==null)EQ(k7,z);if(w7!==null)EQ(w7,z);if(D7!==null)EQ(D7,z);var Z=function(G){return EQ(G,z)};wQ.forEach(Z),DQ.forEach(Z);for(var J=0;J<I7.length;J++){var Y=I7[J];if(Y.blockedOn===z)Y.blockedOn=null}while(I7.length>0){var H=I7[0];if(H.blockedOn!==null)break;else if(zq(H),H.blockedOn===null)I7.shift()}}var Jz=b.ReactCurrentBatchConfig,fH=!0;function Xq(z){fH=!!z}function JL(){return fH}function YL(z,Q,X){var Z=Zq(Q),J;switch(Z){case y4:J=HL;break;case Q7:J=bL;break;case X7:default:J=CH;break}return J.bind(null,Q,X,z)}function HL(z,Q,X,Z){var J=G5(),Y=Jz.transition;Jz.transition=null;try{p6(y4),CH(z,Q,X,Z)}finally{p6(J),Jz.transition=Y}}function bL(z,Q,X,Z){var J=G5(),Y=Jz.transition;Jz.transition=null;try{p6(Q7),CH(z,Q,X,Z)}finally{p6(J),Jz.transition=Y}}function CH(z,Q,X,Z){if(!fH)return;GL(z,Q,X,Z)}function GL(z,Q,X,Z){var J=SH(z,Q,X,Z);if(J===null){iH(z,Q,Z,kZ,X),eU(z,Z);return}if(QL(J,z,Q,X,Z)){Z.stopPropagation();return}if(eU(z,Z),Q&qQ&&eO(z)){while(J!==null){var Y=f7(J);if(Y!==null)oO(Y);var H=SH(z,Q,X,Z);if(H===null)iH(z,Q,Z,kZ,X);if(H===J)break;J=H}if(J!==null)Z.stopPropagation();return}iH(z,Q,Z,null,X)}var kZ=null;function SH(z,Q,X,Z){kZ=null;var J=xY(Z),Y=O8(J);if(Y!==null){var H=H8(Y);if(H===null)Y=null;else{var G=H.tag;if(G===l){var U=NU(H);if(U!==null)return U;Y=null}else if(G===E){var B=H.stateNode;if(MZ(B))return VU(H);Y=null}else if(H!==Y)Y=null}}return kZ=Y,null}function Zq(z){switch(z){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 y4;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 Q7;case"message":{var Q=ev();switch(Q){case vZ:return y4;case QH:return Q7;case b8:case zO:return X7;case XH:return PZ;default:return X7}}default:return X7}}function $L(z,Q,X){return z.addEventListener(Q,X,!1),X}function UL(z,Q,X){return z.addEventListener(Q,X,!0),X}function qL(z,Q,X,Z){return z.addEventListener(Q,X,{capture:!0,passive:Z}),X}function KL(z,Q,X,Z){return z.addEventListener(Q,X,{passive:Z}),X}var fQ=null,hH=null,CQ=null;function BL(z){return fQ=z,hH=Yq(),!0}function vL(){fQ=null,hH=null,CQ=null}function Jq(){if(CQ)return CQ;var z,Q=hH,X=Q.length,Z,J=Yq(),Y=J.length;for(z=0;z<X;z++)if(Q[z]!==J[z])break;var H=X-z;for(Z=1;Z<=H;Z++)if(Q[X-Z]!==J[Y-Z])break;var G=Z>1?1-Z:void 0;return CQ=J.slice(z,G),CQ}function Yq(){if("value"in fQ)return fQ.value;return fQ.textContent}function wZ(z){var Q,X=z.keyCode;if("charCode"in z){if(Q=z.charCode,Q===0&&X===13)Q=13}else Q=X;if(Q===10)Q=13;if(Q>=32||Q===13)return Q;return 0}function DZ(){return!0}function Hq(){return!1}function x4(z){function Q(X,Z,J,Y,H){this._reactName=X,this._targetInst=J,this.type=Z,this.nativeEvent=Y,this.target=H,this.currentTarget=null;for(var G in z){if(!z.hasOwnProperty(G))continue;var U=z[G];if(U)this[G]=U(Y);else this[G]=Y[G]}var B=Y.defaultPrevented!=null?Y.defaultPrevented:Y.returnValue===!1;if(B)this.isDefaultPrevented=DZ;else this.isDefaultPrevented=Hq;return this.isPropagationStopped=Hq,this}return s0(Q.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;if(!X)return;if(X.preventDefault)X.preventDefault();else if(typeof X.returnValue!=="unknown")X.returnValue=!1;this.isDefaultPrevented=DZ},stopPropagation:function(){var X=this.nativeEvent;if(!X)return;if(X.stopPropagation)X.stopPropagation();else if(typeof X.cancelBubble!=="unknown")X.cancelBubble=!0;this.isPropagationStopped=DZ},persist:function(){},isPersistent:DZ}),Q}var Yz={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(z){return z.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gH=x4(Yz),SQ=s0({},Yz,{view:0,detail:0}),OL=x4(SQ),jH,uH,hQ;function LL(z){if(z!==hQ){if(hQ&&z.type==="mousemove")jH=z.screenX-hQ.screenX,uH=z.screenY-hQ.screenY;else jH=0,uH=0;hQ=z}}var IZ=s0({},SQ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yH,button:0,buttons:0,relatedTarget:function(z){if(z.relatedTarget===void 0)return z.fromElement===z.srcElement?z.toElement:z.fromElement;return z.relatedTarget},movementX:function(z){if("movementX"in z)return z.movementX;return LL(z),jH},movementY:function(z){if("movementY"in z)return z.movementY;return uH}}),bq=x4(IZ),_L=s0({},IZ,{dataTransfer:0}),WL=x4(_L),FL=s0({},SQ,{relatedTarget:0}),mH=x4(FL),AL=s0({},Yz,{animationName:0,elapsedTime:0,pseudoElement:0}),RL=x4(AL),PL=s0({},Yz,{clipboardData:function(z){return"clipboardData"in z?z.clipboardData:window.clipboardData}}),ML=x4(PL),NL=s0({},Yz,{data:0}),Gq=x4(NL),VL=Gq,kL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wL={"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 DL(z){if(z.key){var Q=kL[z.key]||z.key;if(Q!=="Unidentified")return Q}if(z.type==="keypress"){var X=wZ(z);return X===13?"Enter":String.fromCharCode(X)}if(z.type==="keydown"||z.type==="keyup")return wL[z.keyCode]||"Unidentified";return""}var IL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function EL(z){var Q=this,X=Q.nativeEvent;if(X.getModifierState)return X.getModifierState(z);var Z=IL[z];return Z?!!X[Z]:!1}function yH(z){return EL}var TL=s0({},SQ,{key:DL,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yH,charCode:function(z){if(z.type==="keypress")return wZ(z);return 0},keyCode:function(z){if(z.type==="keydown"||z.type==="keyup")return z.keyCode;return 0},which:function(z){if(z.type==="keypress")return wZ(z);if(z.type==="keydown"||z.type==="keyup")return z.keyCode;return 0}}),fL=x4(TL),CL=s0({},IZ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$q=x4(CL),SL=s0({},SQ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yH}),hL=x4(SL),gL=s0({},Yz,{propertyName:0,elapsedTime:0,pseudoElement:0}),jL=x4(gL),uL=s0({},IZ,{deltaX:function(z){return"deltaX"in z?z.deltaX:("wheelDeltaX"in z)?-z.wheelDeltaX:0},deltaY:function(z){return"deltaY"in z?z.deltaY:("wheelDeltaY"in z)?-z.wheelDeltaY:("wheelDelta"in z)?-z.wheelDelta:0},deltaZ:0,deltaMode:0}),mL=x4(uL),yL=[9,13,27,32],Uq=229,xH=o1&&"CompositionEvent"in window,gQ=null;if(o1&&"documentMode"in document)gQ=document.documentMode;var xL=o1&&"TextEvent"in window&&!gQ,qq=o1&&(!xH||gQ&&gQ>8&&gQ<=11),Kq=32,Bq=String.fromCharCode(Kq);function dL(){e1("onBeforeInput",["compositionend","keypress","textInput","paste"]),e1("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),e1("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),e1("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var vq=!1;function cL(z){return(z.ctrlKey||z.altKey||z.metaKey)&&!(z.ctrlKey&&z.altKey)}function lL(z){switch(z){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function aL(z,Q){return z==="keydown"&&Q.keyCode===Uq}function Oq(z,Q){switch(z){case"keyup":return yL.indexOf(Q.keyCode)!==-1;case"keydown":return Q.keyCode!==Uq;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lq(z){var Q=z.detail;if(typeof Q==="object"&&"data"in Q)return Q.data;return null}function _q(z){return z.locale==="ko"}var Hz=!1;function pL(z,Q,X,Z,J){var Y,H;if(xH)Y=lL(Q);else if(!Hz){if(aL(Q,Z))Y="onCompositionStart"}else if(Oq(Q,Z))Y="onCompositionEnd";if(!Y)return null;if(qq&&!_q(Z)){if(!Hz&&Y==="onCompositionStart")Hz=BL(J);else if(Y==="onCompositionEnd"){if(Hz)H=Jq()}}var G=SZ(X,Y);if(G.length>0){var U=new Gq(Y,Q,null,Z,J);if(z.push({event:U,listeners:G}),H)U.data=H;else{var B=Lq(Z);if(B!==null)U.data=B}}}function oL(z,Q){switch(z){case"compositionend":return Lq(Q);case"keypress":var X=Q.which;if(X!==Kq)return null;return vq=!0,Bq;case"textInput":var Z=Q.data;if(Z===Bq&&vq)return null;return Z;default:return null}}function iL(z,Q){if(Hz){if(z==="compositionend"||!xH&&Oq(z,Q)){var X=Jq();return vL(),Hz=!1,X}return null}switch(z){case"paste":return null;case"keypress":if(!cL(Q)){if(Q.char&&Q.char.length>1)return Q.char;else if(Q.which)return String.fromCharCode(Q.which)}return null;case"compositionend":return qq&&!_q(Q)?null:Q.data;default:return null}}function rL(z,Q,X,Z,J){var Y;if(xL)Y=oL(Q,Z);else Y=iL(Q,Z);if(!Y)return null;var H=SZ(X,"onBeforeInput");if(H.length>0){var G=new VL("onBeforeInput","beforeinput",null,Z,J);z.push({event:G,listeners:H}),G.data=Y}}function nL(z,Q,X,Z,J,Y,H){pL(z,Q,X,Z,J),rL(z,Q,X,Z,J)}var tL={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 Wq(z){var Q=z&&z.nodeName&&z.nodeName.toLowerCase();if(Q==="input")return!!tL[z.type];if(Q==="textarea")return!0;return!1}function sL(z){if(!o1)return!1;var Q="on"+z,X=Q in document;if(!X){var Z=document.createElement("div");Z.setAttribute(Q,"return;"),X=typeof Z[Q]==="function"}return X}function eL(){e1("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Fq(z,Q,X,Z){LU(Z);var J=SZ(Q,"onChange");if(J.length>0){var Y=new gH("onChange","change",null,X,Z);z.push({event:Y,listeners:J})}}var jQ=null,uQ=null;function z_(z){var Q=z.nodeName&&z.nodeName.toLowerCase();return Q==="select"||Q==="input"&&z.type==="file"}function Q_(z){var Q=[];Fq(Q,uQ,z,xY(z)),AU(X_,Q)}function X_(z){jq(z,0)}function EZ(z){var Q=Kz(z);if(d8(Q))return z}function Z_(z,Q){if(z==="change")return Q}var Aq=!1;if(o1)Aq=sL("input")&&(!document.documentMode||document.documentMode>9);function J_(z,Q){jQ=z,uQ=Q,jQ.attachEvent("onpropertychange",Pq)}function Rq(){if(!jQ)return;jQ.detachEvent("onpropertychange",Pq),jQ=null,uQ=null}function Pq(z){if(z.propertyName!=="value")return;if(EZ(uQ))Q_(z)}function Y_(z,Q,X){if(z==="focusin")Rq(),J_(Q,X);else if(z==="focusout")Rq()}function H_(z,Q){if(z==="selectionchange"||z==="keyup"||z==="keydown")return EZ(uQ)}function b_(z){var Q=z.nodeName;return Q&&Q.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")}function G_(z,Q){if(z==="click")return EZ(Q)}function $_(z,Q){if(z==="input"||z==="change")return EZ(Q)}function U_(z){var Q=z._wrapperState;if(!Q||!Q.controlled||z.type!=="number")return;x0(z,"number",z.value)}function q_(z,Q,X,Z,J,Y,H){var G=X?Kz(X):window,U,B;if(z_(G))U=Z_;else if(Wq(G))if(Aq)U=$_;else U=H_,B=Y_;else if(b_(G))U=G_;if(U){var O=U(Q,X);if(O){Fq(z,O,Z,J);return}}if(B)B(Q,G,X);if(Q==="focusout")U_(G)}function K_(){D6("onMouseEnter",["mouseout","mouseover"]),D6("onMouseLeave",["mouseout","mouseover"]),D6("onPointerEnter",["pointerout","pointerover"]),D6("onPointerLeave",["pointerout","pointerover"])}function B_(z,Q,X,Z,J,Y,H){var G=Q==="mouseover"||Q==="pointerover",U=Q==="mouseout"||Q==="pointerout";if(G&&!Ev(Z)){var B=Z.relatedTarget||Z.fromElement;if(B){if(O8(B)||eQ(B))return}}if(!U&&!G)return;var O;if(J.window===J)O=J;else{var V=J.ownerDocument;if(V)O=V.defaultView||V.parentWindow;else O=window}var M,C;if(U){var S=Z.relatedTarget||Z.toElement;if(M=X,C=S?O8(S):null,C!==null){var g=H8(C);if(C!==g||C.tag!==w&&C.tag!==T)C=null}}else M=null,C=X;if(M===C)return;var U0=bq,T0="onMouseLeave",k0="onMouseEnter",Z1="mouse";if(Q==="pointerout"||Q==="pointerover")U0=$q,T0="onPointerLeave",k0="onPointerEnter",Z1="pointer";var J1=M==null?O:Kz(M),D=C==null?O:Kz(C),m=new U0(T0,Z1+"leave",M,Z,J);m.target=J1,m.relatedTarget=D;var I=null,r=O8(J);if(r===X){var O0=new U0(k0,Z1+"enter",C,Z,J);O0.target=D,O0.relatedTarget=J1,I=O0}j_(z,m,I,M,C)}function v_(z,Q){return z===Q&&(z!==0||1/z===1/Q)||z!==z&&Q!==Q}var d4=typeof Object.is==="function"?Object.is:v_;function mQ(z,Q){if(d4(z,Q))return!0;if(typeof z!=="object"||z===null||typeof Q!=="object"||Q===null)return!1;var X=Object.keys(z),Z=Object.keys(Q);if(X.length!==Z.length)return!1;for(var J=0;J<X.length;J++){var Y=X[J];if(!I6.call(Q,Y)||!d4(z[Y],Q[Y]))return!1}return!0}function Mq(z){while(z&&z.firstChild)z=z.firstChild;return z}function O_(z){while(z){if(z.nextSibling)return z.nextSibling;z=z.parentNode}}function Nq(z,Q){var X=Mq(z),Z=0,J=0;while(X){if(X.nodeType===i5){if(J=Z+X.textContent.length,Z<=Q&&J>=Q)return{node:X,offset:Q-Z};Z=J}X=Mq(O_(X))}}function L_(z){var Q=z.ownerDocument,X=Q&&Q.defaultView||window,Z=X.getSelection&&X.getSelection();if(!Z||Z.rangeCount===0)return null;var{anchorNode:J,anchorOffset:Y,focusNode:H,focusOffset:G}=Z;try{J.nodeType,H.nodeType}catch(U){return null}return __(z,J,Y,H,G)}function __(z,Q,X,Z,J){var Y=0,H=-1,G=-1,U=0,B=0,O=z,V=null;z:while(!0){var M=null;while(!0){if(O===Q&&(X===0||O.nodeType===i5))H=Y+X;if(O===Z&&(J===0||O.nodeType===i5))G=Y+J;if(O.nodeType===i5)Y+=O.nodeValue.length;if((M=O.firstChild)===null)break;V=O,O=M}while(!0){if(O===z)break z;if(V===Q&&++U===X)H=Y;if(V===Z&&++B===J)G=Y;if((M=O.nextSibling)!==null)break;O=V,V=O.parentNode}O=M}if(H===-1||G===-1)return null;return{start:H,end:G}}function W_(z,Q){var X=z.ownerDocument||document,Z=X&&X.defaultView||window;if(!Z.getSelection)return;var J=Z.getSelection(),Y=z.textContent.length,H=Math.min(Q.start,Y),G=Q.end===void 0?H:Math.min(Q.end,Y);if(!J.extend&&H>G){var U=G;G=H,H=U}var B=Nq(z,H),O=Nq(z,G);if(B&&O){if(J.rangeCount===1&&J.anchorNode===B.node&&J.anchorOffset===B.offset&&J.focusNode===O.node&&J.focusOffset===O.offset)return;var V=X.createRange();if(V.setStart(B.node,B.offset),J.removeAllRanges(),H>G)J.addRange(V),J.extend(O.node,O.offset);else V.setEnd(O.node,O.offset),J.addRange(V)}}function Vq(z){return z&&z.nodeType===i5}function kq(z,Q){if(!z||!Q)return!1;else if(z===Q)return!0;else if(Vq(z))return!1;else if(Vq(Q))return kq(z,Q.parentNode);else if("contains"in z)return z.contains(Q);else if(z.compareDocumentPosition)return!!(z.compareDocumentPosition(Q)&16);else return!1}function F_(z){return z&&z.ownerDocument&&kq(z.ownerDocument.documentElement,z)}function A_(z){try{return typeof z.contentWindow.location.href==="string"}catch(Q){return!1}}function wq(){var z=window,Q=N7();while(Q instanceof z.HTMLIFrameElement){if(A_(Q))z=Q.contentWindow;else return Q;Q=N7(z.document)}return Q}function dH(z){var Q=z&&z.nodeName&&z.nodeName.toLowerCase();return Q&&(Q==="input"&&(z.type==="text"||z.type==="search"||z.type==="tel"||z.type==="url"||z.type==="password")||Q==="textarea"||z.contentEditable==="true")}function R_(){var z=wq();return{focusedElem:z,selectionRange:dH(z)?M_(z):null}}function P_(z){var Q=wq(),X=z.focusedElem,Z=z.selectionRange;if(Q!==X&&F_(X)){if(Z!==null&&dH(X))N_(X,Z);var J=[],Y=X;while(Y=Y.parentNode)if(Y.nodeType===D4)J.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});if(typeof X.focus==="function")X.focus();for(var H=0;H<J.length;H++){var G=J[H];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}}function M_(z){var Q;if("selectionStart"in z)Q={start:z.selectionStart,end:z.selectionEnd};else Q=L_(z);return Q||{start:0,end:0}}function N_(z,Q){var{start:X,end:Z}=Q;if(Z===void 0)Z=X;if("selectionStart"in z)z.selectionStart=X,z.selectionEnd=Math.min(Z,z.value.length);else W_(z,Q)}var V_=o1&&"documentMode"in document&&document.documentMode<=11;function k_(){e1("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var bz=null,cH=null,yQ=null,lH=!1;function w_(z){if("selectionStart"in z&&dH(z))return{start:z.selectionStart,end:z.selectionEnd};else{var Q=z.ownerDocument&&z.ownerDocument.defaultView||window,X=Q.getSelection();return{anchorNode:X.anchorNode,anchorOffset:X.anchorOffset,focusNode:X.focusNode,focusOffset:X.focusOffset}}}function D_(z){return z.window===z?z.document:z.nodeType===r5?z:z.ownerDocument}function Dq(z,Q,X){var Z=D_(X);if(lH||bz==null||bz!==N7(Z))return;var J=w_(bz);if(!yQ||!mQ(yQ,J)){yQ=J;var Y=SZ(cH,"onSelect");if(Y.length>0){var H=new gH("onSelect","select",null,Q,X);z.push({event:H,listeners:Y}),H.target=bz}}}function I_(z,Q,X,Z,J,Y,H){var G=X?Kz(X):window;switch(Q){case"focusin":if(Wq(G)||G.contentEditable==="true")bz=G,cH=X,yQ=null;break;case"focusout":bz=null,cH=null,yQ=null;break;case"mousedown":lH=!0;break;case"contextmenu":case"mouseup":case"dragend":lH=!1,Dq(z,Z,J);break;case"selectionchange":if(V_)break;case"keydown":case"keyup":Dq(z,Z,J)}}function TZ(z,Q){var X={};return X[z.toLowerCase()]=Q.toLowerCase(),X["Webkit"+z]="webkit"+Q,X["Moz"+z]="moz"+Q,X}var Gz={animationend:TZ("Animation","AnimationEnd"),animationiteration:TZ("Animation","AnimationIteration"),animationstart:TZ("Animation","AnimationStart"),transitionend:TZ("Transition","TransitionEnd")},aH={},Iq={};if(o1){if(Iq=document.createElement("div").style,!("AnimationEvent"in window))delete Gz.animationend.animation,delete Gz.animationiteration.animation,delete Gz.animationstart.animation;if(!("TransitionEvent"in window))delete Gz.transitionend.transition}function fZ(z){if(aH[z])return aH[z];else if(!Gz[z])return z;var Q=Gz[z];for(var X in Q)if(Q.hasOwnProperty(X)&&X in Iq)return aH[z]=Q[X];return z}var Eq=fZ("animationend"),Tq=fZ("animationiteration"),fq=fZ("animationstart"),Cq=fZ("transitionend"),Sq=new Map,hq=["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 E7(z,Q){Sq.set(z,Q),e1(Q,[z])}function E_(){for(var z=0;z<hq.length;z++){var Q=hq[z],X=Q.toLowerCase(),Z=Q[0].toUpperCase()+Q.slice(1);E7(X,"on"+Z)}E7(Eq,"onAnimationEnd"),E7(Tq,"onAnimationIteration"),E7(fq,"onAnimationStart"),E7("dblclick","onDoubleClick"),E7("focusin","onFocus"),E7("focusout","onBlur"),E7(Cq,"onTransitionEnd")}function T_(z,Q,X,Z,J,Y,H){var G=Sq.get(Q);if(G===void 0)return;var U=gH,B=Q;switch(Q){case"keypress":if(wZ(Z)===0)return;case"keydown":case"keyup":U=fL;break;case"focusin":B="focus",U=mH;break;case"focusout":B="blur",U=mH;break;case"beforeblur":case"afterblur":U=mH;break;case"click":if(Z.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=bq;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=WL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=hL;break;case Eq:case Tq:case fq:U=RL;break;case Cq:U=jL;break;case"scroll":U=OL;break;case"wheel":U=mL;break;case"copy":case"cut":case"paste":U=ML;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=$q;break}var O=(Y&qQ)!==0;{var V=!O&&Q==="scroll",M=h_(X,G,Z.type,O,V);if(M.length>0){var C=new U(G,B,null,Z,J);z.push({event:C,listeners:M})}}}E_(),K_(),eL(),k_(),dL();function f_(z,Q,X,Z,J,Y,H){T_(z,Q,X,Z,J,Y);var G=(Y&wv)===0;if(G)B_(z,Q,X,Z,J),q_(z,Q,X,Z,J),I_(z,Q,X,Z,J),nL(z,Q,X,Z,J)}var xQ=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],pH=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(xQ));function gq(z,Q,X){var Z=z.type||"unknown-event";z.currentTarget=X,mv(Z,Q,void 0,z),z.currentTarget=null}function C_(z,Q,X){var Z;if(X)for(var J=Q.length-1;J>=0;J--){var Y=Q[J],H=Y.instance,G=Y.currentTarget,U=Y.listener;if(H!==Z&&z.isPropagationStopped())return;gq(z,U,G),Z=H}else for(var B=0;B<Q.length;B++){var O=Q[B],V=O.instance,M=O.currentTarget,C=O.listener;if(V!==Z&&z.isPropagationStopped())return;gq(z,C,M),Z=V}}function jq(z,Q){var X=(Q&qQ)!==0;for(var Z=0;Z<z.length;Z++){var J=z[Z],Y=J.event,H=J.listeners;C_(Y,H,X)}yv()}function S_(z,Q,X,Z,J){var Y=xY(X),H=[];f_(H,z,Z,X,Y,Q),jq(H,Q)}function Z6(z,Q){if(!pH.has(z))$('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',z);var X=!1,Z=UF(Q),J=u_(z,X);if(!Z.has(J))uq(Q,z,yY,X),Z.add(J)}function oH(z,Q,X){if(pH.has(z)&&!Q)$('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',z);var Z=0;if(Q)Z|=qQ;uq(X,z,Z,Q)}var CZ="_reactListening"+Math.random().toString(36).slice(2);function dQ(z){if(!z[CZ]){z[CZ]=!0,q6.forEach(function(X){if(X!=="selectionchange"){if(!pH.has(X))oH(X,!1,z);oH(X,!0,z)}});var Q=z.nodeType===r5?z:z.ownerDocument;if(Q!==null){if(!Q[CZ])Q[CZ]=!0,oH("selectionchange",!1,Q)}}}function uq(z,Q,X,Z,J){var Y=YL(z,Q,X),H=void 0;if(lY){if(Q==="touchstart"||Q==="touchmove"||Q==="wheel")H=!0}z=z;var G;if(Z)if(H!==void 0)G=qL(z,Q,Y,H);else G=UL(z,Q,Y);else if(H!==void 0)G=KL(z,Q,Y,H);else G=$L(z,Q,Y)}function mq(z,Q){return z===Q||z.nodeType===V6&&z.parentNode===Q}function iH(z,Q,X,Z,J){var Y=Z;if((Q&vU)===0&&(Q&yY)===0){var H=J;if(Z!==null){var G=Z;z:while(!0){if(G===null)return;var U=G.tag;if(U===E||U===N){var B=G.stateNode.containerInfo;if(mq(B,H))break;if(U===N){var O=G.return;while(O!==null){var V=O.tag;if(V===E||V===N){var M=O.stateNode.containerInfo;if(mq(M,H))return}O=O.return}}while(B!==null){var C=O8(B);if(C===null)return;var S=C.tag;if(S===w||S===T){G=Y=C;continue z}B=B.parentNode}}G=G.return}}}AU(function(){return S_(z,Q,X,Y)})}function cQ(z,Q,X){return{instance:z,listener:Q,currentTarget:X}}function h_(z,Q,X,Z,J,Y){var H=Q!==null?Q+"Capture":null,G=Z?H:Q,U=[],B=z,O=null;while(B!==null){var V=B,M=V.stateNode,C=V.tag;if(C===w&&M!==null){if(O=M,G!==null){var S=BQ(B,G);if(S!=null)U.push(cQ(B,S,O))}}if(J)break;B=B.return}return U}function SZ(z,Q){var X=Q+"Capture",Z=[],J=z;while(J!==null){var Y=J,H=Y.stateNode,G=Y.tag;if(G===w&&H!==null){var U=H,B=BQ(J,X);if(B!=null)Z.unshift(cQ(J,B,U));var O=BQ(J,Q);if(O!=null)Z.push(cQ(J,O,U))}J=J.return}return Z}function $z(z){if(z===null)return null;do z=z.return;while(z&&z.tag!==w);if(z)return z;return null}function g_(z,Q){var X=z,Z=Q,J=0;for(var Y=X;Y;Y=$z(Y))J++;var H=0;for(var G=Z;G;G=$z(G))H++;while(J-H>0)X=$z(X),J--;while(H-J>0)Z=$z(Z),H--;var U=J;while(U--){if(X===Z||Z!==null&&X===Z.alternate)return X;X=$z(X),Z=$z(Z)}return null}function yq(z,Q,X,Z,J){var Y=Q._reactName,H=[],G=X;while(G!==null){if(G===Z)break;var U=G,B=U.alternate,O=U.stateNode,V=U.tag;if(B!==null&&B===Z)break;if(V===w&&O!==null){var M=O;if(J){var C=BQ(G,Y);if(C!=null)H.unshift(cQ(G,C,M))}else if(!J){var S=BQ(G,Y);if(S!=null)H.push(cQ(G,S,M))}}G=G.return}if(H.length!==0)z.push({event:Q,listeners:H})}function j_(z,Q,X,Z,J){var Y=Z&&J?g_(Z,J):null;if(Z!==null)yq(z,Q,Z,Y,!1);if(J!==null&&X!==null)yq(z,X,J,Y,!0)}function u_(z,Q){return z+"__"+(Q?"capture":"bubble")}var I4=!1,lQ="dangerouslySetInnerHTML",hZ="suppressContentEditableWarning",T7="suppressHydrationWarning",xq="autoFocus",B8="children",v8="style",gZ="__html",rH,jZ,aQ,dq,uZ,cq,lq;rH={dialog:!0,webview:!0},jZ=function(z,Q){Av(z,Q),Rv(z,Q),kv(z,Q,{registrationNameDependencies:C1,possibleRegistrationNames:h1})},cq=o1&&!document.documentMode,aQ=function(z,Q,X){if(I4)return;var Z=mZ(X),J=mZ(Q);if(J===Z)return;I4=!0,$("Prop `%s` did not match. Server: %s Client: %s",z,JSON.stringify(J),JSON.stringify(Z))},dq=function(z){if(I4)return;I4=!0;var Q=[];z.forEach(function(X){Q.push(X)}),$("Extra attributes from the server: %s",Q)},uZ=function(z,Q){if(Q===!1)$("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",z,z,z);else $("Expected `%s` listener to be a function, instead got a value of `%s` type.",z,typeof Q)},lq=function(z,Q){var X=z.namespaceURI===o5?z.ownerDocument.createElement(z.tagName):z.ownerDocument.createElementNS(z.namespaceURI,z.tagName);return X.innerHTML=Q,X.innerHTML};var m_=/\r\n?/g,y_=/\u0000|\uFFFD/g;function mZ(z){Z5(z);var Q=typeof z==="string"?z:""+z;return Q.replace(m_,`
|
|
32
|
+
`).replace(y_,"")}function yZ(z,Q,X,Z){var J=mZ(Q),Y=mZ(z);if(Y===J)return;if(Z){if(!I4)I4=!0,$('Text content did not match. Server: "%s" Client: "%s"',Y,J)}if(X&&L0)throw Error("Text content does not match server-rendered HTML.")}function aq(z){return z.nodeType===r5?z:z.ownerDocument}function x_(){}function xZ(z){z.onclick=x_}function d_(z,Q,X,Z,J){for(var Y in Z){if(!Z.hasOwnProperty(Y))continue;var H=Z[Y];if(Y===v8){if(H)Object.freeze(H);GU(Q,H)}else if(Y===lQ){var G=H?H[gZ]:void 0;if(G!=null)ZU(Q,G)}else if(Y===B8){if(typeof H==="string"){var U=z!=="textarea"||H!=="";if(U)GZ(Q,H)}else if(typeof H==="number")GZ(Q,""+H)}else if(Y===hZ||Y===T7);else if(Y===xq);else if(C1.hasOwnProperty(Y)){if(H!=null){if(typeof H!=="function")uZ(Y,H);if(Y==="onScroll")Z6("scroll",Q)}}else if(H!=null)Y1(Q,Y,H,J)}}function c_(z,Q,X,Z){for(var J=0;J<Q.length;J+=2){var Y=Q[J],H=Q[J+1];if(Y===v8)GU(z,H);else if(Y===lQ)ZU(z,H);else if(Y===B8)GZ(z,H);else Y1(z,Y,H,Z)}}function l_(z,Q,X,Z){var J,Y=aq(X),H,G=Z;if(G===o5)G=SY(z);if(G===o5){if(J=Q8(z,Q),!J&&z!==z.toLowerCase())$("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",z);if(z==="script"){var U=Y.createElement("div");U.innerHTML="<script></script>";var B=U.firstChild;H=U.removeChild(B)}else if(typeof Q.is==="string")H=Y.createElement(z,{is:Q.is});else if(H=Y.createElement(z),z==="select"){var O=H;if(Q.multiple)O.multiple=!0;else if(Q.size)O.size=Q.size}}else H=Y.createElementNS(G,z);if(G===o5){if(!J&&Object.prototype.toString.call(H)==="[object HTMLUnknownElement]"&&!I6.call(rH,z))rH[z]=!0,$("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",z)}return H}function a_(z,Q){return aq(Q).createTextNode(z)}function p_(z,Q,X,Z){var J=Q8(Q,X);jZ(Q,X);var Y;switch(Q){case"dialog":Z6("cancel",z),Z6("close",z),Y=X;break;case"iframe":case"object":case"embed":Z6("load",z),Y=X;break;case"video":case"audio":for(var H=0;H<xQ.length;H++)Z6(xQ[H],z);Y=X;break;case"source":Z6("error",z),Y=X;break;case"img":case"image":case"link":Z6("error",z),Z6("load",z),Y=X;break;case"details":Z6("toggle",z),Y=X;break;case"input":F(z,X),Y=q(z,X),Z6("invalid",z);break;case"option":c1(z,X),Y=X;break;case"select":$Q(z,X),Y=GQ(z,X),Z6("invalid",z);break;case"textarea":zU(z,X),Y=fY(z,X),Z6("invalid",z);break;default:Y=X}switch(mY(Q,Y),d_(Q,z,Z,Y,J),Q){case"input":a5(z),z0(z,X,!1);break;case"textarea":a5(z),XU(z);break;case"option":X6(z,X);break;case"select":TY(z,X);break;default:if(typeof Y.onClick==="function")xZ(z);break}}function o_(z,Q,X,Z,J){jZ(Q,Z);var Y=null,H,G;switch(Q){case"input":H=q(z,X),G=q(z,Z),Y=[];break;case"select":H=GQ(z,X),G=GQ(z,Z),Y=[];break;case"textarea":H=fY(z,X),G=fY(z,Z),Y=[];break;default:if(H=X,G=Z,typeof H.onClick!=="function"&&typeof G.onClick==="function")xZ(z);break}mY(Q,G);var U,B,O=null;for(U in H){if(G.hasOwnProperty(U)||!H.hasOwnProperty(U)||H[U]==null)continue;if(U===v8){var V=H[U];for(B in V)if(V.hasOwnProperty(B)){if(!O)O={};O[B]=""}}else if(U===lQ||U===B8);else if(U===hZ||U===T7);else if(U===xq);else if(C1.hasOwnProperty(U)){if(!Y)Y=[]}else(Y=Y||[]).push(U,null)}for(U in G){var M=G[U],C=H!=null?H[U]:void 0;if(!G.hasOwnProperty(U)||M===C||M==null&&C==null)continue;if(U===v8){if(M)Object.freeze(M);if(C){for(B in C)if(C.hasOwnProperty(B)&&(!M||!M.hasOwnProperty(B))){if(!O)O={};O[B]=""}for(B in M)if(M.hasOwnProperty(B)&&C[B]!==M[B]){if(!O)O={};O[B]=M[B]}}else{if(!O){if(!Y)Y=[];Y.push(U,O)}O=M}}else if(U===lQ){var S=M?M[gZ]:void 0,g=C?C[gZ]:void 0;if(S!=null){if(g!==S)(Y=Y||[]).push(U,S)}}else if(U===B8){if(typeof M==="string"||typeof M==="number")(Y=Y||[]).push(U,""+M)}else if(U===hZ||U===T7);else if(C1.hasOwnProperty(U)){if(M!=null){if(typeof M!=="function")uZ(U,M);if(U==="onScroll")Z6("scroll",z)}if(!Y&&C!==M)Y=[]}else(Y=Y||[]).push(U,M)}if(O)Kv(O,G[v8]),(Y=Y||[]).push(v8,O);return Y}function i_(z,Q,X,Z,J){if(X==="input"&&J.type==="radio"&&J.name!=null)f(z,J);var Y=Q8(X,Z),H=Q8(X,J);switch(c_(z,Q,Y,H),X){case"input":j(z,J);break;case"textarea":QU(z,J);break;case"select":c9(z,J);break}}function r_(z){{var Q=z.toLowerCase();if(!$Z.hasOwnProperty(Q))return null;return $Z[Q]||null}}function n_(z,Q,X,Z,J,Y,H){var G,U;switch(G=Q8(Q,X),jZ(Q,X),Q){case"dialog":Z6("cancel",z),Z6("close",z);break;case"iframe":case"object":case"embed":Z6("load",z);break;case"video":case"audio":for(var B=0;B<xQ.length;B++)Z6(xQ[B],z);break;case"source":Z6("error",z);break;case"img":case"image":case"link":Z6("error",z),Z6("load",z);break;case"details":Z6("toggle",z);break;case"input":F(z,X),Z6("invalid",z);break;case"option":c1(z,X);break;case"select":$Q(z,X),Z6("invalid",z);break;case"textarea":zU(z,X),Z6("invalid",z);break}mY(Q,X);{U=new Set;var O=z.attributes;for(var V=0;V<O.length;V++){var M=O[V].name.toLowerCase();switch(M){case"value":break;case"checked":break;case"selected":break;default:U.add(O[V].name)}}}var C=null;for(var S in X){if(!X.hasOwnProperty(S))continue;var g=X[S];if(S===B8){if(typeof g==="string"){if(z.textContent!==g){if(X[T7]!==!0)yZ(z.textContent,g,Y,H);C=[B8,g]}}else if(typeof g==="number"){if(z.textContent!==""+g){if(X[T7]!==!0)yZ(z.textContent,g,Y,H);C=[B8,""+g]}}}else if(C1.hasOwnProperty(S)){if(g!=null){if(typeof g!=="function")uZ(S,g);if(S==="onScroll")Z6("scroll",z)}}else if(H&&!0&&typeof G==="boolean"){var U0=void 0,T0=G&&X1?null:A6(S);if(X[T7]===!0);else if(S===hZ||S===T7||S==="value"||S==="checked"||S==="selected");else if(S===lQ){var k0=z.innerHTML,Z1=g?g[gZ]:void 0;if(Z1!=null){var J1=lq(z,Z1);if(J1!==k0)aQ(S,k0,J1)}}else if(S===v8){if(U.delete(S),cq){var D=Uv(g);if(U0=z.getAttribute("style"),D!==U0)aQ(S,U0,D)}}else if(G&&!X1){if(U.delete(S.toLowerCase()),U0=Y5(z,S,g),g!==U0)aQ(S,U0,g)}else if(!N1(S,T0,G)&&!S1(S,g,T0,G)){var m=!1;if(T0!==null)U.delete(T0.attributeName),U0=$4(z,S,g,T0);else{var I=Z;if(I===o5)I=SY(Q);if(I===o5)U.delete(S.toLowerCase());else{var r=r_(S);if(r!==null&&r!==S)m=!0,U.delete(r);U.delete(S)}U0=Y5(z,S,g)}var O0=X1;if(!O0&&g!==U0&&!m)aQ(S,U0,g)}}}if(H){if(U.size>0&&X[T7]!==!0)dq(U)}switch(Q){case"input":a5(z),z0(z,X,!0);break;case"textarea":a5(z),XU(z);break;case"select":case"option":break;default:if(typeof X.onClick==="function")xZ(z);break}return C}function t_(z,Q,X){var Z=z.nodeValue!==Q;return Z}function nH(z,Q){{if(I4)return;I4=!0,$("Did not expect server HTML to contain a <%s> in <%s>.",Q.nodeName.toLowerCase(),z.nodeName.toLowerCase())}}function tH(z,Q){{if(I4)return;I4=!0,$('Did not expect server HTML to contain the text node "%s" in <%s>.',Q.nodeValue,z.nodeName.toLowerCase())}}function sH(z,Q,X){{if(I4)return;I4=!0,$("Expected server HTML to contain a matching <%s> in <%s>.",Q,z.nodeName.toLowerCase())}}function eH(z,Q){{if(Q==="")return;if(I4)return;I4=!0,$('Expected server HTML to contain a matching text node for "%s" in <%s>.',Q,z.nodeName.toLowerCase())}}function s_(z,Q,X){switch(Q){case"input":j0(z,X);return;case"textarea":a9(z,X);return;case"select":l9(z,X);return}}var pQ=function(){},oQ=function(){};{var e_=["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"],pq=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],zW=pq.concat(["button"]),QW=["dd","dt","li","option","optgroup","p","rp","rt"],oq={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};oQ=function(z,Q){var X=s0({},z||oq),Z={tag:Q};if(pq.indexOf(Q)!==-1)X.aTagInScope=null,X.buttonTagInScope=null,X.nobrTagInScope=null;if(zW.indexOf(Q)!==-1)X.pTagInButtonScope=null;if(e_.indexOf(Q)!==-1&&Q!=="address"&&Q!=="div"&&Q!=="p")X.listItemTagAutoclosing=null,X.dlItemTagAutoclosing=null;if(X.current=Z,Q==="form")X.formTag=Z;if(Q==="a")X.aTagInScope=Z;if(Q==="button")X.buttonTagInScope=Z;if(Q==="nobr")X.nobrTagInScope=Z;if(Q==="p")X.pTagInButtonScope=Z;if(Q==="li")X.listItemTagAutoclosing=Z;if(Q==="dd"||Q==="dt")X.dlItemTagAutoclosing=Z;return X};var XW=function(z,Q){switch(Q){case"select":return z==="option"||z==="optgroup"||z==="#text";case"optgroup":return z==="option"||z==="#text";case"option":return z==="#text";case"tr":return z==="th"||z==="td"||z==="style"||z==="script"||z==="template";case"tbody":case"thead":case"tfoot":return z==="tr"||z==="style"||z==="script"||z==="template";case"colgroup":return z==="col"||z==="template";case"table":return z==="caption"||z==="colgroup"||z==="tbody"||z==="tfoot"||z==="thead"||z==="style"||z==="script"||z==="template";case"head":return z==="base"||z==="basefont"||z==="bgsound"||z==="link"||z==="meta"||z==="title"||z==="noscript"||z==="noframes"||z==="style"||z==="script"||z==="template";case"html":return z==="head"||z==="body"||z==="frameset";case"frameset":return z==="frame";case"#document":return z==="html"}switch(z){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Q!=="h1"&&Q!=="h2"&&Q!=="h3"&&Q!=="h4"&&Q!=="h5"&&Q!=="h6";case"rp":case"rt":return QW.indexOf(Q)===-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 Q==null}return!0},ZW=function(z,Q){switch(z){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Q.pTagInButtonScope;case"form":return Q.formTag||Q.pTagInButtonScope;case"li":return Q.listItemTagAutoclosing;case"dd":case"dt":return Q.dlItemTagAutoclosing;case"button":return Q.buttonTagInScope;case"a":return Q.aTagInScope;case"nobr":return Q.nobrTagInScope}return null},iq={};pQ=function(z,Q,X){X=X||oq;var Z=X.current,J=Z&&Z.tag;if(Q!=null){if(z!=null)$("validateDOMNesting: when childText is passed, childTag should be null");z="#text"}var Y=XW(z,J)?null:Z,H=Y?null:ZW(z,X),G=Y||H;if(!G)return;var U=G.tag,B=!!Y+"|"+z+"|"+U;if(iq[B])return;iq[B]=!0;var O=z,V="";if(z==="#text")if(/\S/.test(Q))O="Text nodes";else O="Whitespace text nodes",V=" Make sure you don't have any extra whitespace between tags on each line of your source code.";else O="<"+z+">";if(Y){var M="";if(U==="table"&&z==="tr")M+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.";$("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",O,U,V,M)}else $("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",O,U)}}var dZ="suppressHydrationWarning",cZ="$",lZ="/$",iQ="$?",rQ="$!",JW="style",zb=null,Qb=null;function YW(z){var Q,X,Z=z.nodeType;switch(Z){case r5:case gY:{Q=Z===r5?"#document":"#fragment";var J=z.documentElement;X=J?J.namespaceURI:hY(null,"");break}default:{var Y=Z===V6?z.parentNode:z,H=Y.namespaceURI||null;Q=Y.tagName,X=hY(H,Q);break}}{var G=Q.toLowerCase(),U=oQ(null,G);return{namespace:X,ancestorInfo:U}}}function HW(z,Q,X){{var Z=z,J=hY(Z.namespace,Q),Y=oQ(Z.ancestorInfo,Q);return{namespace:J,ancestorInfo:Y}}}function Xb(z){return z}function bW(z){zb=JL(),Qb=R_();var Q=null;return Xq(!1),Q}function GW(z){P_(Qb),Xq(zb),zb=null,Qb=null}function $W(z,Q,X,Z,J){var Y;{var H=Z;if(pQ(z,null,H.ancestorInfo),typeof Q.children==="string"||typeof Q.children==="number"){var G=""+Q.children,U=oQ(H.ancestorInfo,z);pQ(null,G,U)}Y=H.namespace}var B=l_(z,Q,X,Y);return sQ(J,B),Ub(B,Q),B}function UW(z,Q){z.appendChild(Q)}function qW(z,Q,X,Z,J){switch(p_(z,Q,X,Z),Q){case"button":case"input":case"select":case"textarea":return!!X.autoFocus;case"img":return!0;default:return!1}}function KW(z,Q,X,Z,J,Y){{var H=Y;if(typeof Z.children!==typeof X.children&&(typeof Z.children==="string"||typeof Z.children==="number")){var G=""+Z.children,U=oQ(H.ancestorInfo,Q);pQ(null,G,U)}}return o_(z,Q,X,Z)}function Zb(z,Q){return z==="textarea"||z==="noscript"||typeof Q.children==="string"||typeof Q.children==="number"||typeof Q.dangerouslySetInnerHTML==="object"&&Q.dangerouslySetInnerHTML!==null&&Q.dangerouslySetInnerHTML.__html!=null}function BW(z,Q,X,Z){{var J=X;pQ(null,z,J.ancestorInfo)}var Y=a_(z,Q);return sQ(Z,Y),Y}function vW(){var z=window.event;if(z===void 0)return X7;return Zq(z.type)}var Jb=typeof setTimeout==="function"?setTimeout:void 0,OW=typeof clearTimeout==="function"?clearTimeout:void 0,Yb=-1,rq=typeof Promise==="function"?Promise:void 0,LW=typeof queueMicrotask==="function"?queueMicrotask:typeof rq<"u"?function(z){return rq.resolve(null).then(z).catch(_W)}:Jb;function _W(z){setTimeout(function(){throw z})}function WW(z,Q,X,Z){switch(Q){case"button":case"input":case"select":case"textarea":if(X.autoFocus)z.focus();return;case"img":{if(X.src)z.src=X.src;return}}}function FW(z,Q,X,Z,J,Y){i_(z,Q,X,Z,J),Ub(z,J)}function nq(z){GZ(z,"")}function AW(z,Q,X){z.nodeValue=X}function RW(z,Q){z.appendChild(Q)}function PW(z,Q){var X;if(z.nodeType===V6)X=z.parentNode,X.insertBefore(Q,z);else X=z,X.appendChild(Q);var Z=z._reactRootContainer;if((Z===null||Z===void 0)&&X.onclick===null)xZ(X)}function MW(z,Q,X){z.insertBefore(Q,X)}function NW(z,Q,X){if(z.nodeType===V6)z.parentNode.insertBefore(Q,X);else z.insertBefore(Q,X)}function VW(z,Q){z.removeChild(Q)}function kW(z,Q){if(z.nodeType===V6)z.parentNode.removeChild(Q);else z.removeChild(Q)}function Hb(z,Q){var X=Q,Z=0;do{var J=X.nextSibling;if(z.removeChild(X),J&&J.nodeType===V6){var Y=J.data;if(Y===lZ)if(Z===0){z.removeChild(J),TQ(Q);return}else Z--;else if(Y===cZ||Y===iQ||Y===rQ)Z++}X=J}while(X);TQ(Q)}function wW(z,Q){if(z.nodeType===V6)Hb(z.parentNode,Q);else if(z.nodeType===D4)Hb(z,Q);TQ(z)}function DW(z){z=z;var Q=z.style;if(typeof Q.setProperty==="function")Q.setProperty("display","none","important");else Q.display="none"}function IW(z){z.nodeValue=""}function EW(z,Q){z=z;var X=Q[JW],Z=X!==void 0&&X!==null&&X.hasOwnProperty("display")?X.display:null;z.style.display=jY("display",Z)}function TW(z,Q){z.nodeValue=Q}function fW(z){if(z.nodeType===D4)z.textContent="";else if(z.nodeType===r5){if(z.documentElement)z.removeChild(z.documentElement)}}function CW(z,Q,X){if(z.nodeType!==D4||Q.toLowerCase()!==z.nodeName.toLowerCase())return null;return z}function SW(z,Q){if(Q===""||z.nodeType!==i5)return null;return z}function hW(z){if(z.nodeType!==V6)return null;return z}function tq(z){return z.data===iQ}function bb(z){return z.data===rQ}function gW(z){var Q=z.nextSibling&&z.nextSibling.dataset,X,Z,J;if(Q)X=Q.dgst,Z=Q.msg,J=Q.stck;return{message:Z,digest:X,stack:J}}function jW(z,Q){z._reactRetry=Q}function aZ(z){for(;z!=null;z=z.nextSibling){var Q=z.nodeType;if(Q===D4||Q===i5)break;if(Q===V6){var X=z.data;if(X===cZ||X===rQ||X===iQ)break;if(X===lZ)return null}}return z}function nQ(z){return aZ(z.nextSibling)}function uW(z){return aZ(z.firstChild)}function mW(z){return aZ(z.firstChild)}function yW(z){return aZ(z.nextSibling)}function xW(z,Q,X,Z,J,Y,H){sQ(Y,z),Ub(z,X);var G;{var U=J;G=U.namespace}var B=(Y.mode&G1)!==C0;return n_(z,Q,X,G,Z,B,H)}function dW(z,Q,X,Z){sQ(X,z);var J=(X.mode&G1)!==C0;return t_(z,Q)}function cW(z,Q){sQ(Q,z)}function lW(z){var Q=z.nextSibling,X=0;while(Q){if(Q.nodeType===V6){var Z=Q.data;if(Z===lZ)if(X===0)return nQ(Q);else X--;else if(Z===cZ||Z===rQ||Z===iQ)X++}Q=Q.nextSibling}return null}function sq(z){var Q=z.previousSibling,X=0;while(Q){if(Q.nodeType===V6){var Z=Q.data;if(Z===cZ||Z===rQ||Z===iQ)if(X===0)return Q;else X--;else if(Z===lZ)X++}Q=Q.previousSibling}return null}function aW(z){TQ(z)}function pW(z){TQ(z)}function oW(z){return z!=="head"&&z!=="body"}function iW(z,Q,X,Z){var J=!0;yZ(Q.nodeValue,X,Z,J)}function rW(z,Q,X,Z,J,Y){if(Q[dZ]!==!0){var H=!0;yZ(Z.nodeValue,J,Y,H)}}function nW(z,Q){if(Q.nodeType===D4)nH(z,Q);else if(Q.nodeType===V6);else tH(z,Q)}function tW(z,Q){{var X=z.parentNode;if(X!==null)if(Q.nodeType===D4)nH(X,Q);else if(Q.nodeType===V6);else tH(X,Q)}}function sW(z,Q,X,Z,J){if(J||Q[dZ]!==!0)if(Z.nodeType===D4)nH(X,Z);else if(Z.nodeType===V6);else tH(X,Z)}function eW(z,Q,X){sH(z,Q)}function zF(z,Q){eH(z,Q)}function QF(z,Q,X){{var Z=z.parentNode;if(Z!==null)sH(Z,Q)}}function XF(z,Q){{var X=z.parentNode;if(X!==null)eH(X,Q)}}function ZF(z,Q,X,Z,J,Y){if(Y||Q[dZ]!==!0)sH(X,Z)}function JF(z,Q,X,Z,J){if(J||Q[dZ]!==!0)eH(X,Z)}function YF(z){$("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",z.nodeName.toLowerCase())}function HF(z){dQ(z)}var Uz=Math.random().toString(36).slice(2),qz="__reactFiber$"+Uz,Gb="__reactProps$"+Uz,tQ="__reactContainer$"+Uz,$b="__reactEvents$"+Uz,bF="__reactListeners$"+Uz,GF="__reactHandles$"+Uz;function $F(z){delete z[qz],delete z[Gb],delete z[$b],delete z[bF],delete z[GF]}function sQ(z,Q){Q[qz]=z}function pZ(z,Q){Q[tQ]=z}function eq(z){z[tQ]=null}function eQ(z){return!!z[tQ]}function O8(z){var Q=z[qz];if(Q)return Q;var X=z.parentNode;while(X){if(Q=X[tQ]||X[qz],Q){var Z=Q.alternate;if(Q.child!==null||Z!==null&&Z.child!==null){var J=sq(z);while(J!==null){var Y=J[qz];if(Y)return Y;J=sq(J)}}return Q}z=X,X=z.parentNode}return null}function f7(z){var Q=z[qz]||z[tQ];if(Q)if(Q.tag===w||Q.tag===T||Q.tag===l||Q.tag===E)return Q;else return null;return null}function Kz(z){if(z.tag===w||z.tag===T)return z.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function oZ(z){return z[Gb]||null}function Ub(z,Q){z[Gb]=Q}function UF(z){var Q=z[$b];if(Q===void 0)Q=z[$b]=new Set;return Q}var zK={},QK=b.ReactDebugCurrentFrame;function iZ(z){if(z){var Q=z._owner,X=R7(z.type,z._source,Q?Q.type:null);QK.setExtraStackFrame(X)}else QK.setExtraStackFrame(null)}function $5(z,Q,X,Z,J){{var Y=Function.call.bind(I6);for(var H in z)if(Y(z,H)){var G=void 0;try{if(typeof z[H]!=="function"){var U=Error((Z||"React class")+": "+X+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof z[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw U.name="Invariant Violation",U}G=z[H](Q,H,Z,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){G=B}if(G&&!(G instanceof Error))iZ(J),$("%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).",Z||"React class",X,H,typeof G),iZ(null);if(G instanceof Error&&!(G.message in zK))zK[G.message]=!0,iZ(J),$("Failed %s type: %s",X,G.message),iZ(null)}}}var qb=[],rZ;rZ=[];var Z7=-1;function C7(z){return{current:z}}function q4(z,Q){if(Z7<0){$("Unexpected pop.");return}if(Q!==rZ[Z7])$("Unexpected Fiber popped.");z.current=qb[Z7],qb[Z7]=null,rZ[Z7]=null,Z7--}function K4(z,Q,X){Z7++,qb[Z7]=z.current,rZ[Z7]=X,z.current=Q}var XK={},c4={};Object.freeze(c4);var J7=C7(c4),C5=C7(!1),Kb=c4;function Bz(z,Q,X){{if(X&&S5(Q))return Kb;return J7.current}}function ZK(z,Q,X){{var Z=z.stateNode;Z.__reactInternalMemoizedUnmaskedChildContext=Q,Z.__reactInternalMemoizedMaskedChildContext=X}}function vz(z,Q){{var X=z.type,Z=X.contextTypes;if(!Z)return c4;var J=z.stateNode;if(J&&J.__reactInternalMemoizedUnmaskedChildContext===Q)return J.__reactInternalMemoizedMaskedChildContext;var Y={};for(var H in Z)Y[H]=Q[H];{var G=n0(z)||"Unknown";$5(Z,Y,"context",G)}if(J)ZK(z,Q,Y);return Y}}function nZ(){return C5.current}function S5(z){{var Q=z.childContextTypes;return Q!==null&&Q!==void 0}}function tZ(z){q4(C5,z),q4(J7,z)}function Bb(z){q4(C5,z),q4(J7,z)}function JK(z,Q,X){{if(J7.current!==c4)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");K4(J7,Q,z),K4(C5,X,z)}}function YK(z,Q,X){{var Z=z.stateNode,J=Q.childContextTypes;if(typeof Z.getChildContext!=="function"){{var Y=n0(z)||"Unknown";if(!XK[Y])XK[Y]=!0,$("%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.",Y,Y)}return X}var H=Z.getChildContext();for(var G in H)if(!(G in J))throw Error((n0(z)||"Unknown")+'.getChildContext(): key "'+G+'" is not defined in childContextTypes.');{var U=n0(z)||"Unknown";$5(J,H,"child context",U)}return s0({},X,H)}}function sZ(z){{var Q=z.stateNode,X=Q&&Q.__reactInternalMemoizedMergedChildContext||c4;return Kb=J7.current,K4(J7,X,z),K4(C5,C5.current,z),!0}}function HK(z,Q,X){{var Z=z.stateNode;if(!Z)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(X){var J=YK(z,Q,Kb);Z.__reactInternalMemoizedMergedChildContext=J,q4(C5,z),q4(J7,z),K4(J7,J,z),K4(C5,X,z)}else q4(C5,z),K4(C5,X,z)}}function qF(z){{if(!ov(z)||z.tag!==A)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 Q=z;do{switch(Q.tag){case E:return Q.stateNode.context;case A:{var X=Q.type;if(S5(X))return Q.stateNode.__reactInternalMemoizedMergedChildContext;break}}Q=Q.return}while(Q!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var S7=0,eZ=1,Y7=null,vb=!1,Ob=!1;function bK(z){if(Y7===null)Y7=[z];else Y7.push(z)}function KF(z){vb=!0,bK(z)}function GK(){if(vb)h7()}function h7(){if(!Ob&&Y7!==null){Ob=!0;var z=0,Q=G5();try{var X=!0,Z=Y7;p6(y4);for(;z<Z.length;z++){var J=Z[z];do J=J(X);while(J!==null)}Y7=null,vb=!1}catch(Y){if(Y7!==null)Y7=Y7.slice(z+1);throw TU(vZ,h7),Y}finally{p6(Q),Ob=!1}}return null}var Oz=[],Lz=0,zJ=null,QJ=0,r4=[],n4=0,L8=null,H7=1,b7="";function BF(z){return W8(),(z.flags&MU)!==h0}function vF(z){return W8(),QJ}function OF(){var z=b7,Q=H7,X=Q&~LF(Q);return X.toString(32)+z}function _8(z,Q){W8(),Oz[Lz++]=QJ,Oz[Lz++]=zJ,zJ=z,QJ=Q}function $K(z,Q,X){W8(),r4[n4++]=H7,r4[n4++]=b7,r4[n4++]=L8,L8=z;var Z=H7,J=b7,Y=XJ(Z)-1,H=Z&~(1<<Y),G=X+1,U=XJ(Q)+Y;if(U>30){var B=Y-Y%5,O=(1<<B)-1,V=(H&O).toString(32),M=H>>B,C=Y-B,S=XJ(Q)+C,g=G<<C,U0=g|M,T0=V+J;H7=1<<S|U0,b7=T0}else{var k0=G<<Y,Z1=k0|H,J1=J;H7=1<<U|Z1,b7=J1}}function Lb(z){W8();var Q=z.return;if(Q!==null){var X=1,Z=0;_8(z,X),$K(z,X,Z)}}function XJ(z){return 32-jU(z)}function LF(z){return 1<<XJ(z)-1}function _b(z){while(z===zJ)zJ=Oz[--Lz],Oz[Lz]=null,QJ=Oz[--Lz],Oz[Lz]=null;while(z===L8)L8=r4[--n4],r4[n4]=null,b7=r4[--n4],r4[n4]=null,H7=r4[--n4],r4[n4]=null}function _F(){if(W8(),L8!==null)return{id:H7,overflow:b7};else return null}function WF(z,Q){W8(),r4[n4++]=H7,r4[n4++]=b7,r4[n4++]=L8,H7=Q.id,b7=Q.overflow,L8=z}function W8(){if(!t6())$("Expected to be hydrating. This is a bug in React. Please file an issue.")}var n6=null,t4=null,U5=!1,F8=!1,g7=null;function FF(){if(U5)$("We should not be hydrating here. This is a bug in React. Please file a bug.")}function UK(){F8=!0}function AF(){return F8}function RF(z){var Q=z.stateNode.containerInfo;return t4=mW(Q),n6=z,U5=!0,g7=null,F8=!1,!0}function PF(z,Q,X){if(t4=yW(Q),n6=z,U5=!0,g7=null,F8=!1,X!==null)WF(z,X);return!0}function qK(z,Q){switch(z.tag){case E:{nW(z.stateNode.containerInfo,Q);break}case w:{var X=(z.mode&G1)!==C0;sW(z.type,z.memoizedProps,z.stateNode,Q,X);break}case l:{var Z=z.memoizedState;if(Z.dehydrated!==null)tW(Z.dehydrated,Q);break}}}function KK(z,Q){qK(z,Q);var X=EP();X.stateNode=Q,X.return=z;var Z=z.deletions;if(Z===null)z.deletions=[X],z.flags|=X8;else Z.push(X)}function Wb(z,Q){{if(F8)return;switch(z.tag){case E:{var X=z.stateNode.containerInfo;switch(Q.tag){case w:var{type:Z,pendingProps:J}=Q;eW(X,Z);break;case T:var Y=Q.pendingProps;zF(X,Y);break}break}case w:{var{type:H,memoizedProps:G,stateNode:U}=z;switch(Q.tag){case w:{var{type:B,pendingProps:O}=Q,V=(z.mode&G1)!==C0;ZF(H,G,U,B,O,V);break}case T:{var M=Q.pendingProps,C=(z.mode&G1)!==C0;JF(H,G,U,M,C);break}}break}case l:{var S=z.memoizedState,g=S.dehydrated;if(g!==null)switch(Q.tag){case w:var{type:U0,pendingProps:T0}=Q;QF(g,U0);break;case T:var k0=Q.pendingProps;XF(g,k0);break}break}default:return}}}function BK(z,Q){Q.flags=Q.flags&~t5|k6,Wb(z,Q)}function vK(z,Q){switch(z.tag){case w:{var{type:X,pendingProps:Z}=z,J=CW(Q,X);if(J!==null)return z.stateNode=J,n6=z,t4=uW(J),!0;return!1}case T:{var Y=z.pendingProps,H=SW(Q,Y);if(H!==null)return z.stateNode=H,n6=z,t4=null,!0;return!1}case l:{var G=hW(Q);if(G!==null){var U={dehydrated:G,treeContext:_F(),retryLane:u4};z.memoizedState=U;var B=TP(G);return B.return=z,z.child=B,n6=z,t4=null,!0}return!1}default:return!1}}function Fb(z){return(z.mode&G1)!==C0&&(z.flags&W1)===h0}function Ab(z){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Rb(z){if(!U5)return;var Q=t4;if(!Q){if(Fb(z))Wb(n6,z),Ab();BK(n6,z),U5=!1,n6=z;return}var X=Q;if(!vK(z,Q)){if(Fb(z))Wb(n6,z),Ab();Q=nQ(X);var Z=n6;if(!Q||!vK(z,Q)){BK(n6,z),U5=!1,n6=z;return}KK(Z,X)}}function MF(z,Q,X){var Z=z.stateNode,J=!F8,Y=xW(Z,z.type,z.memoizedProps,Q,X,z,J);if(z.updateQueue=Y,Y!==null)return!0;return!1}function NF(z){var{stateNode:Q,memoizedProps:X}=z,Z=dW(Q,X,z);if(Z){var J=n6;if(J!==null)switch(J.tag){case E:{var Y=J.stateNode.containerInfo,H=(J.mode&G1)!==C0;iW(Y,Q,X,H);break}case w:{var{type:G,memoizedProps:U,stateNode:B}=J,O=(J.mode&G1)!==C0;rW(G,U,B,Q,X,O);break}}}return Z}function VF(z){var Q=z.memoizedState,X=Q!==null?Q.dehydrated:null;if(!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");cW(X,z)}function kF(z){var Q=z.memoizedState,X=Q!==null?Q.dehydrated:null;if(!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return lW(X)}function OK(z){var Q=z.return;while(Q!==null&&Q.tag!==w&&Q.tag!==E&&Q.tag!==l)Q=Q.return;n6=Q}function ZJ(z){if(z!==n6)return!1;if(!U5)return OK(z),U5=!0,!1;if(z.tag!==E&&(z.tag!==w||oW(z.type)&&!Zb(z.type,z.memoizedProps))){var Q=t4;if(Q)if(Fb(z))LK(z),Ab();else while(Q)KK(z,Q),Q=nQ(Q)}if(OK(z),z.tag===l)t4=kF(z);else t4=n6?nQ(z.stateNode):null;return!0}function wF(){return U5&&t4!==null}function LK(z){var Q=t4;while(Q)qK(z,Q),Q=nQ(Q)}function _z(){n6=null,t4=null,U5=!1,F8=!1}function _K(){if(g7!==null)q3(g7),g7=null}function t6(){return U5}function Pb(z){if(g7===null)g7=[z];else g7.push(z)}var DF=b.ReactCurrentBatchConfig,IF=null;function EF(){return DF.transition}var q5={recordUnsafeLifecycleWarnings:function(z,Q){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(z,Q){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var TF=function(z){var Q=null,X=z;while(X!==null){if(X.mode&L6)Q=X;X=X.return}return Q},A8=function(z){var Q=[];return z.forEach(function(X){Q.push(X)}),Q.sort().join(", ")},zX=[],QX=[],XX=[],ZX=[],JX=[],YX=[],R8=new Set;q5.recordUnsafeLifecycleWarnings=function(z,Q){if(R8.has(z.type))return;if(typeof Q.componentWillMount==="function"&&Q.componentWillMount.__suppressDeprecationWarning!==!0)zX.push(z);if(z.mode&L6&&typeof Q.UNSAFE_componentWillMount==="function")QX.push(z);if(typeof Q.componentWillReceiveProps==="function"&&Q.componentWillReceiveProps.__suppressDeprecationWarning!==!0)XX.push(z);if(z.mode&L6&&typeof Q.UNSAFE_componentWillReceiveProps==="function")ZX.push(z);if(typeof Q.componentWillUpdate==="function"&&Q.componentWillUpdate.__suppressDeprecationWarning!==!0)JX.push(z);if(z.mode&L6&&typeof Q.UNSAFE_componentWillUpdate==="function")YX.push(z)},q5.flushPendingUnsafeLifecycleWarnings=function(){var z=new Set;if(zX.length>0)zX.forEach(function(M){z.add(n0(M)||"Component"),R8.add(M.type)}),zX=[];var Q=new Set;if(QX.length>0)QX.forEach(function(M){Q.add(n0(M)||"Component"),R8.add(M.type)}),QX=[];var X=new Set;if(XX.length>0)XX.forEach(function(M){X.add(n0(M)||"Component"),R8.add(M.type)}),XX=[];var Z=new Set;if(ZX.length>0)ZX.forEach(function(M){Z.add(n0(M)||"Component"),R8.add(M.type)}),ZX=[];var J=new Set;if(JX.length>0)JX.forEach(function(M){J.add(n0(M)||"Component"),R8.add(M.type)}),JX=[];var Y=new Set;if(YX.length>0)YX.forEach(function(M){Y.add(n0(M)||"Component"),R8.add(M.type)}),YX=[];if(Q.size>0){var H=A8(Q);$(`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`,H)}if(Z.size>0){var G=A8(Z);$(`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`,G)}if(Y.size>0){var U=A8(Y);$(`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`,U)}if(z.size>0){var B=A8(z);_(`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`,B)}if(X.size>0){var O=A8(X);_(`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(J.size>0){var V=A8(J);_(`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`,V)}};var JJ=new Map,WK=new Set;q5.recordLegacyContextWarning=function(z,Q){var X=TF(z);if(X===null){$("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(WK.has(z.type))return;var Z=JJ.get(X);if(z.type.contextTypes!=null||z.type.childContextTypes!=null||Q!==null&&typeof Q.getChildContext==="function"){if(Z===void 0)Z=[],JJ.set(X,Z);Z.push(z)}},q5.flushLegacyContextWarning=function(){JJ.forEach(function(z,Q){if(z.length===0)return;var X=z[0],Z=new Set;z.forEach(function(Y){Z.add(n0(Y)||"Component"),WK.add(Y.type)});var J=A8(Z);try{K6(X),$(`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`,J)}finally{d6()}})},q5.discardPendingWarnings=function(){zX=[],QX=[],XX=[],ZX=[],JX=[],YX=[],JJ=new Map}}var Mb,Nb,Vb,kb,wb,FK=function(z,Q){};Mb=!1,Nb=!1,Vb={},kb={},wb={},FK=function(z,Q){if(z===null||typeof z!=="object")return;if(!z._store||z._store.validated||z.key!=null)return;if(typeof z._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.");z._store.validated=!0;var X=n0(Q)||"Component";if(kb[X])return;kb[X]=!0,$('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.')};function fF(z){return z.prototype&&z.prototype.isReactComponent}function HX(z,Q,X){var Z=X.ref;if(Z!==null&&typeof Z!=="function"&&typeof Z!=="object"){if((z.mode&L6||M1)&&!(X._owner&&X._self&&X._owner.stateNode!==X._self)&&!(X._owner&&X._owner.tag!==A)&&!(typeof X.type==="function"&&!fF(X.type))&&X._owner){var J=n0(z)||"Component";if(!Vb[J])$('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',J,Z),Vb[J]=!0}if(X._owner){var Y=X._owner,H;if(Y){var G=Y;if(G.tag!==A)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");H=G.stateNode}if(!H)throw Error("Missing owner for string ref "+Z+". This error is likely caused by a bug in React. Please file an issue.");var U=H;z6(Z,"ref");var B=""+Z;if(Q!==null&&Q.ref!==null&&typeof Q.ref==="function"&&Q.ref._stringRef===B)return Q.ref;var O=function(V){var M=U.refs;if(V===null)delete M[B];else M[B]=V};return O._stringRef=B,O}else{if(typeof Z!=="string")throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!X._owner)throw Error("Element ref was specified as a string ("+Z+`) 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 Z}function YJ(z,Q){var X=Object.prototype.toString.call(Q);throw Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}function HJ(z){{var Q=n0(z)||"Component";if(wb[Q])return;wb[Q]=!0,$("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 AK(z){var{_payload:Q,_init:X}=z;return X(Q)}function RK(z){function Q(D,m){if(!z)return;var I=D.deletions;if(I===null)D.deletions=[m],D.flags|=X8;else I.push(m)}function X(D,m){if(!z)return null;var I=m;while(I!==null)Q(D,I),I=I.sibling;return null}function Z(D,m){var I=new Map,r=m;while(r!==null){if(r.key!==null)I.set(r.key,r);else I.set(r.index,r);r=r.sibling}return I}function J(D,m){var I=E8(D,m);return I.index=0,I.sibling=null,I}function Y(D,m,I){if(D.index=I,!z)return D.flags|=MU,m;var r=D.alternate;if(r!==null){var O0=r.index;if(O0<m)return D.flags|=k6,m;else return O0}else return D.flags|=k6,m}function H(D){if(z&&D.alternate===null)D.flags|=k6;return D}function G(D,m,I,r){if(m===null||m.tag!==T){var O0=N$(I,D.mode,r);return O0.return=D,O0}else{var K0=J(m,I);return K0.return=D,K0}}function U(D,m,I,r){var O0=I.type;if(O0===v1)return O(D,m,I.props.children,r,I.key);if(m!==null){if(m.elementType===O0||w3(m,I)||typeof O0==="object"&&O0!==null&&O0.$$typeof===V0&&AK(O0)===m.type){var K0=J(m,I.props);return K0.ref=HX(D,m,I),K0.return=D,K0._debugSource=I._source,K0._debugOwner=I._owner,K0}}var u0=M$(I,D.mode,r);return u0.ref=HX(D,m,I),u0.return=D,u0}function B(D,m,I,r){if(m===null||m.tag!==N||m.stateNode.containerInfo!==I.containerInfo||m.stateNode.implementation!==I.implementation){var O0=V$(I,D.mode,r);return O0.return=D,O0}else{var K0=J(m,I.children||[]);return K0.return=D,K0}}function O(D,m,I,r,O0){if(m===null||m.tag!==o){var K0=o7(I,D.mode,r,O0);return K0.return=D,K0}else{var u0=J(m,I);return u0.return=D,u0}}function V(D,m,I){if(typeof m==="string"&&m!==""||typeof m==="number"){var r=N$(""+m,D.mode,I);return r.return=D,r}if(typeof m==="object"&&m!==null){switch(m.$$typeof){case V1:{var O0=M$(m,D.mode,I);return O0.ref=HX(D,null,m),O0.return=D,O0}case j1:{var K0=V$(m,D.mode,I);return K0.return=D,K0}case V0:{var{_payload:u0,_init:o0}=m;return V(D,o0(u0),I)}}if(_1(m)||r1(m)){var T1=o7(m,D.mode,I,null);return T1.return=D,T1}YJ(D,m)}if(typeof m==="function")HJ(D);return null}function M(D,m,I,r){var O0=m!==null?m.key:null;if(typeof I==="string"&&I!==""||typeof I==="number"){if(O0!==null)return null;return G(D,m,""+I,r)}if(typeof I==="object"&&I!==null){switch(I.$$typeof){case V1:if(I.key===O0)return U(D,m,I,r);else return null;case j1:if(I.key===O0)return B(D,m,I,r);else return null;case V0:{var{_payload:K0,_init:u0}=I;return M(D,m,u0(K0),r)}}if(_1(I)||r1(I)){if(O0!==null)return null;return O(D,m,I,r,null)}YJ(D,I)}if(typeof I==="function")HJ(D);return null}function C(D,m,I,r,O0){if(typeof r==="string"&&r!==""||typeof r==="number"){var K0=D.get(I)||null;return G(m,K0,""+r,O0)}if(typeof r==="object"&&r!==null){switch(r.$$typeof){case V1:{var u0=D.get(r.key===null?I:r.key)||null;return U(m,u0,r,O0)}case j1:{var o0=D.get(r.key===null?I:r.key)||null;return B(m,o0,r,O0)}case V0:var{_payload:T1,_init:O1}=r;return C(D,m,I,O1(T1),O0)}if(_1(r)||r1(r)){var R6=D.get(I)||null;return O(m,R6,r,O0,null)}YJ(m,r)}if(typeof r==="function")HJ(m);return null}function S(D,m,I){{if(typeof D!=="object"||D===null)return m;switch(D.$$typeof){case V1:case j1:FK(D,I);var r=D.key;if(typeof r!=="string")break;if(m===null){m=new Set,m.add(r);break}if(!m.has(r)){m.add(r);break}$("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 V0:var{_payload:O0,_init:K0}=D;S(K0(O0),m,I);break}}return m}function g(D,m,I,r){{var O0=null;for(var K0=0;K0<I.length;K0++){var u0=I[K0];O0=S(u0,O0,D)}}var o0=null,T1=null,O1=m,R6=0,L1=0,_6=null;for(;O1!==null&&L1<I.length;L1++){if(O1.index>L1)_6=O1,O1=null;else _6=O1.sibling;var v4=M(D,O1,I[L1],r);if(v4===null){if(O1===null)O1=_6;break}if(z){if(O1&&v4.alternate===null)Q(D,O1)}if(R6=Y(v4,R6,L1),T1===null)o0=v4;else T1.sibling=v4;T1=v4,O1=_6}if(L1===I.length){if(X(D,O1),t6()){var J4=L1;_8(D,J4)}return o0}if(O1===null){for(;L1<I.length;L1++){var a4=V(D,I[L1],r);if(a4===null)continue;if(R6=Y(a4,R6,L1),T1===null)o0=a4;else T1.sibling=a4;T1=a4}if(t6()){var N4=L1;_8(D,N4)}return o0}var V4=Z(D,O1);for(;L1<I.length;L1++){var O4=C(V4,D,L1,I[L1],r);if(O4!==null){if(z){if(O4.alternate!==null)V4.delete(O4.key===null?L1:O4.key)}if(R6=Y(O4,R6,L1),T1===null)o0=O4;else T1.sibling=O4;T1=O4}}if(z)V4.forEach(function(gz){return Q(D,gz)});if(t6()){var v7=L1;_8(D,v7)}return o0}function U0(D,m,I,r){var O0=r1(I);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"&&I[Symbol.toStringTag]==="Generator"){if(!Nb)$("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.");Nb=!0}if(I.entries===O0){if(!Mb)$("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");Mb=!0}var K0=O0.call(I);if(K0){var u0=null,o0=K0.next();for(;!o0.done;o0=K0.next()){var T1=o0.value;u0=S(T1,u0,D)}}}var O1=O0.call(I);if(O1==null)throw Error("An iterable object provided no iterator.");var R6=null,L1=null,_6=m,v4=0,J4=0,a4=null,N4=O1.next();for(;_6!==null&&!N4.done;J4++,N4=O1.next()){if(_6.index>J4)a4=_6,_6=null;else a4=_6.sibling;var V4=M(D,_6,N4.value,r);if(V4===null){if(_6===null)_6=a4;break}if(z){if(_6&&V4.alternate===null)Q(D,_6)}if(v4=Y(V4,v4,J4),L1===null)R6=V4;else L1.sibling=V4;L1=V4,_6=a4}if(N4.done){if(X(D,_6),t6()){var O4=J4;_8(D,O4)}return R6}if(_6===null){for(;!N4.done;J4++,N4=O1.next()){var v7=V(D,N4.value,r);if(v7===null)continue;if(v4=Y(v7,v4,J4),L1===null)R6=v7;else L1.sibling=v7;L1=v7}if(t6()){var gz=J4;_8(D,gz)}return R6}var uX=Z(D,_6);for(;!N4.done;J4++,N4=O1.next()){var d5=C(uX,D,J4,N4.value,r);if(d5!==null){if(z){if(d5.alternate!==null)uX.delete(d5.key===null?J4:d5.key)}if(v4=Y(d5,v4,J4),L1===null)R6=d5;else L1.sibling=d5;L1=d5}}if(z)uX.forEach(function(GM){return Q(D,GM)});if(t6()){var bM=J4;_8(D,bM)}return R6}function T0(D,m,I,r){if(m!==null&&m.tag===T){X(D,m.sibling);var O0=J(m,I);return O0.return=D,O0}X(D,m);var K0=N$(I,D.mode,r);return K0.return=D,K0}function k0(D,m,I,r){var O0=I.key,K0=m;while(K0!==null){if(K0.key===O0){var u0=I.type;if(u0===v1){if(K0.tag===o){X(D,K0.sibling);var o0=J(K0,I.props.children);return o0.return=D,o0._debugSource=I._source,o0._debugOwner=I._owner,o0}}else if(K0.elementType===u0||w3(K0,I)||typeof u0==="object"&&u0!==null&&u0.$$typeof===V0&&AK(u0)===K0.type){X(D,K0.sibling);var T1=J(K0,I.props);return T1.ref=HX(D,K0,I),T1.return=D,T1._debugSource=I._source,T1._debugOwner=I._owner,T1}X(D,K0);break}else Q(D,K0);K0=K0.sibling}if(I.type===v1){var O1=o7(I.props.children,D.mode,r,I.key);return O1.return=D,O1}else{var R6=M$(I,D.mode,r);return R6.ref=HX(D,m,I),R6.return=D,R6}}function Z1(D,m,I,r){var O0=I.key,K0=m;while(K0!==null){if(K0.key===O0)if(K0.tag===N&&K0.stateNode.containerInfo===I.containerInfo&&K0.stateNode.implementation===I.implementation){X(D,K0.sibling);var u0=J(K0,I.children||[]);return u0.return=D,u0}else{X(D,K0);break}else Q(D,K0);K0=K0.sibling}var o0=V$(I,D.mode,r);return o0.return=D,o0}function J1(D,m,I,r){var O0=typeof I==="object"&&I!==null&&I.type===v1&&I.key===null;if(O0)I=I.props.children;if(typeof I==="object"&&I!==null){switch(I.$$typeof){case V1:return H(k0(D,m,I,r));case j1:return H(Z1(D,m,I,r));case V0:var{_payload:K0,_init:u0}=I;return J1(D,m,u0(K0),r)}if(_1(I))return g(D,m,I,r);if(r1(I))return U0(D,m,I,r);YJ(D,I)}if(typeof I==="string"&&I!==""||typeof I==="number")return H(T0(D,m,""+I,r));if(typeof I==="function")HJ(D);return X(D,m)}return J1}var Wz=RK(!0),PK=RK(!1);function CF(z,Q){if(z!==null&&Q.child!==z.child)throw Error("Resuming work not yet implemented.");if(Q.child===null)return;var X=Q.child,Z=E8(X,X.pendingProps);Q.child=Z,Z.return=Q;while(X.sibling!==null)X=X.sibling,Z=Z.sibling=E8(X,X.pendingProps),Z.return=Q;Z.sibling=null}function SF(z,Q){var X=z.child;while(X!==null)VP(X,Q),X=X.sibling}var Db=C7(null),Ib;Ib={};var bJ=null,Fz=null,Eb=null,GJ=!1;function $J(){bJ=null,Fz=null,Eb=null,GJ=!1}function MK(){GJ=!0}function NK(){GJ=!1}function VK(z,Q,X){{K4(Db,Q._currentValue,z),Q._currentValue=X;{if(Q._currentRenderer!==void 0&&Q._currentRenderer!==null&&Q._currentRenderer!==Ib)$("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");Q._currentRenderer=Ib}}}function Tb(z,Q){var X=Db.current;q4(Db,Q),z._currentValue=X}function fb(z,Q,X){var Z=z;while(Z!==null){var J=Z.alternate;if(!Zz(Z.childLanes,Q)){if(Z.childLanes=t0(Z.childLanes,Q),J!==null)J.childLanes=t0(J.childLanes,Q)}else if(J!==null&&!Zz(J.childLanes,Q))J.childLanes=t0(J.childLanes,Q);if(Z===X)break;Z=Z.return}if(Z!==X)$("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 hF(z,Q,X){gF(z,Q,X)}function gF(z,Q,X){var Z=z.child;if(Z!==null)Z.return=z;while(Z!==null){var J=void 0,Y=Z.dependencies;if(Y!==null){J=Z.child;var H=Y.firstContext;while(H!==null){if(H.context===Q){if(Z.tag===A){var G=NQ(X),U=G7(n1,G);U.tag=qJ;var B=Z.updateQueue;if(B===null);else{var O=B.shared,V=O.pending;if(V===null)U.next=U;else U.next=V.next,V.next=U;O.pending=U}}Z.lanes=t0(Z.lanes,X);var M=Z.alternate;if(M!==null)M.lanes=t0(M.lanes,X);fb(Z.return,X,z),Y.lanes=t0(Y.lanes,X);break}H=H.next}}else if(Z.tag===n)J=Z.type===z.type?null:Z.child;else if(Z.tag===Q1){var C=Z.return;if(C===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");C.lanes=t0(C.lanes,X);var S=C.alternate;if(S!==null)S.lanes=t0(S.lanes,X);fb(C,X,z),J=Z.sibling}else J=Z.child;if(J!==null)J.return=Z;else{J=Z;while(J!==null){if(J===z){J=null;break}var g=J.sibling;if(g!==null){g.return=J.return,J=g;break}J=J.return}}Z=J}}function Az(z,Q){bJ=z,Fz=null,Eb=null;var X=z.dependencies;if(X!==null){var Z=X.firstContext;if(Z!==null){if(m4(X.lanes,Q))RX();X.firstContext=null}}}function w6(z){if(GJ)$("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 Q=z._currentValue;if(Eb===z);else{var X={context:z,memoizedValue:Q,next:null};if(Fz===null){if(bJ===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().");Fz=X,bJ.dependencies={lanes:p,firstContext:X}}else Fz=Fz.next=X}return Q}var P8=null;function Cb(z){if(P8===null)P8=[z];else P8.push(z)}function jF(){if(P8!==null){for(var z=0;z<P8.length;z++){var Q=P8[z],X=Q.interleaved;if(X!==null){Q.interleaved=null;var Z=X.next,J=Q.pending;if(J!==null){var Y=J.next;J.next=Z,X.next=Y}Q.pending=X}}P8=null}}function kK(z,Q,X,Z){var J=Q.interleaved;if(J===null)X.next=X,Cb(Q);else X.next=J.next,J.next=X;return Q.interleaved=X,UJ(z,Z)}function uF(z,Q,X,Z){var J=Q.interleaved;if(J===null)X.next=X,Cb(Q);else X.next=J.next,J.next=X;Q.interleaved=X}function mF(z,Q,X,Z){var J=Q.interleaved;if(J===null)X.next=X,Cb(Q);else X.next=J.next,J.next=X;return Q.interleaved=X,UJ(z,Z)}function E4(z,Q){return UJ(z,Q)}var yF=UJ;function UJ(z,Q){z.lanes=t0(z.lanes,Q);var X=z.alternate;if(X!==null)X.lanes=t0(X.lanes,Q);if(X===null&&(z.flags&(k6|t5))!==h0)M3(z);var Z=z,J=z.return;while(J!==null){if(J.childLanes=t0(J.childLanes,Q),X=J.alternate,X!==null)X.childLanes=t0(X.childLanes,Q);else if((J.flags&(k6|t5))!==h0)M3(z);Z=J,J=J.return}if(Z.tag===E){var Y=Z.stateNode;return Y}else return null}var wK=0,DK=1,qJ=2,Sb=3,KJ=!1,hb,BJ;hb=!1,BJ=null;function gb(z){var Q={baseState:z.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:p},effects:null};z.updateQueue=Q}function IK(z,Q){var X=Q.updateQueue,Z=z.updateQueue;if(X===Z){var J={baseState:Z.baseState,firstBaseUpdate:Z.firstBaseUpdate,lastBaseUpdate:Z.lastBaseUpdate,shared:Z.shared,effects:Z.effects};Q.updateQueue=J}}function G7(z,Q){var X={eventTime:z,lane:Q,tag:wK,payload:null,callback:null,next:null};return X}function j7(z,Q,X){var Z=z.updateQueue;if(Z===null)return null;var J=Z.shared;if(BJ===J&&!hb)$("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."),hb=!0;if(dR()){var Y=J.pending;if(Y===null)Q.next=Q;else Q.next=Y.next,Y.next=Q;return J.pending=Q,yF(z,X)}else return mF(z,J,Q,X)}function vJ(z,Q,X){var Z=Q.updateQueue;if(Z===null)return;var J=Z.shared;if(xU(X)){var Y=J.lanes;Y=cU(Y,z.pendingLanes);var H=t0(Y,X);J.lanes=H,DH(z,H)}}function jb(z,Q){var{updateQueue:X,alternate:Z}=z;if(Z!==null){var J=Z.updateQueue;if(X===J){var Y=null,H=null,G=X.firstBaseUpdate;if(G!==null){var U=G;do{var B={eventTime:U.eventTime,lane:U.lane,tag:U.tag,payload:U.payload,callback:U.callback,next:null};if(H===null)Y=H=B;else H.next=B,H=B;U=U.next}while(U!==null);if(H===null)Y=H=Q;else H.next=Q,H=Q}else Y=H=Q;X={baseState:J.baseState,firstBaseUpdate:Y,lastBaseUpdate:H,shared:J.shared,effects:J.effects},z.updateQueue=X;return}}var O=X.lastBaseUpdate;if(O===null)X.firstBaseUpdate=Q;else O.next=Q;X.lastBaseUpdate=Q}function xF(z,Q,X,Z,J,Y){switch(X.tag){case DK:{var H=X.payload;if(typeof H==="function"){MK();var G=H.call(Y,Z,J);{if(z.mode&L6){l6(!0);try{H.call(Y,Z,J)}finally{l6(!1)}}NK()}return G}return H}case Sb:z.flags=z.flags&~A4|W1;case wK:{var U=X.payload,B;if(typeof U==="function"){MK(),B=U.call(Y,Z,J);{if(z.mode&L6){l6(!0);try{U.call(Y,Z,J)}finally{l6(!1)}}NK()}}else B=U;if(B===null||B===void 0)return Z;return s0({},Z,B)}case qJ:return KJ=!0,Z}return Z}function OJ(z,Q,X,Z){var J=z.updateQueue;KJ=!1,BJ=J.shared;var{firstBaseUpdate:Y,lastBaseUpdate:H}=J,G=J.shared.pending;if(G!==null){J.shared.pending=null;var U=G,B=U.next;if(U.next=null,H===null)Y=B;else H.next=B;H=U;var O=z.alternate;if(O!==null){var V=O.updateQueue,M=V.lastBaseUpdate;if(M!==H){if(M===null)V.firstBaseUpdate=B;else M.next=B;V.lastBaseUpdate=U}}}if(Y!==null){var C=J.baseState,S=p,g=null,U0=null,T0=null,k0=Y;do{var{lane:Z1,eventTime:J1}=k0;if(!Zz(Z,Z1)){var D={eventTime:J1,lane:Z1,tag:k0.tag,payload:k0.payload,callback:k0.callback,next:null};if(T0===null)U0=T0=D,g=C;else T0=T0.next=D;S=t0(S,Z1)}else{if(T0!==null){var m={eventTime:J1,lane:a6,tag:k0.tag,payload:k0.payload,callback:k0.callback,next:null};T0=T0.next=m}C=xF(z,J,k0,C,Q,X);var I=k0.callback;if(I!==null&&k0.lane!==a6){z.flags|=rY;var r=J.effects;if(r===null)J.effects=[k0];else r.push(k0)}}if(k0=k0.next,k0===null)if(G=J.shared.pending,G===null)break;else{var O0=G,K0=O0.next;O0.next=null,k0=K0,J.lastBaseUpdate=O0,J.shared.pending=null}}while(!0);if(T0===null)g=C;J.baseState=g,J.firstBaseUpdate=U0,J.lastBaseUpdate=T0;var u0=J.shared.interleaved;if(u0!==null){var o0=u0;do S=t0(S,o0.lane),o0=o0.next;while(o0!==u0)}else if(Y===null)J.shared.lanes=p;CX(S),z.lanes=S,z.memoizedState=C}BJ=null}function dF(z,Q){if(typeof z!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+z));z.call(Q)}function EK(){KJ=!1}function LJ(){return KJ}function TK(z,Q,X){var Z=Q.effects;if(Q.effects=null,Z!==null)for(var J=0;J<Z.length;J++){var Y=Z[J],H=Y.callback;if(H!==null)Y.callback=null,dF(H,X)}}var bX={},u7=C7(bX),GX=C7(bX),_J=C7(bX);function WJ(z){if(z===bX)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return z}function fK(){var z=WJ(_J.current);return z}function ub(z,Q){K4(_J,Q,z),K4(GX,z,z),K4(u7,bX,z);var X=YW(Q);q4(u7,z),K4(u7,X,z)}function Rz(z){q4(u7,z),q4(GX,z),q4(_J,z)}function mb(){var z=WJ(u7.current);return z}function CK(z){var Q=WJ(_J.current),X=WJ(u7.current),Z=HW(X,z.type);if(X===Z)return;K4(GX,z,z),K4(u7,Z,z)}function yb(z){if(GX.current!==z)return;q4(u7,z),q4(GX,z)}var cF=0,SK=1,hK=1,$X=2,K5=C7(cF);function xb(z,Q){return(z&Q)!==0}function Pz(z){return z&SK}function db(z,Q){return z&SK|Q}function lF(z,Q){return z|Q}function m7(z,Q){K4(K5,Q,z)}function Mz(z){q4(K5,z)}function aF(z,Q){var X=z.memoizedState;if(X!==null){if(X.dehydrated!==null)return!0;return!1}var Z=z.memoizedProps;return!0}function FJ(z){var Q=z;while(Q!==null){if(Q.tag===l){var X=Q.memoizedState;if(X!==null){var Z=X.dehydrated;if(Z===null||tq(Z)||bb(Z))return Q}}else if(Q.tag===y0&&Q.memoizedProps.revealOrder!==void 0){var J=(Q.flags&W1)!==h0;if(J)return Q}else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===z)return null;while(Q.sibling===null){if(Q.return===null||Q.return===z)return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return null}var T4=0,T6=1,h5=2,f6=4,s6=8,cb=[];function lb(){for(var z=0;z<cb.length;z++){var Q=cb[z];Q._workInProgressVersionPrimary=null}cb.length=0}function pF(z,Q){var X=Q._getVersion,Z=X(Q._source);if(z.mutableSourceEagerHydrationData==null)z.mutableSourceEagerHydrationData=[Q,Z];else z.mutableSourceEagerHydrationData.push(Q,Z)}var{ReactCurrentDispatcher:v0,ReactCurrentBatchConfig:UX}=b,ab,Nz;ab=new Set;var M8=p,E1=null,C6=null,S6=null,AJ=!1,qX=!1,KX=0,oF=0,iF=25,x=null,s4=null,y7=-1,pb=!1;function R1(){{var z=x;if(s4===null)s4=[z];else s4.push(z)}}function $0(){{var z=x;if(s4!==null){if(y7++,s4[y7]!==z)rF(z)}}}function Vz(z){if(z!==void 0&&z!==null&&!_1(z))$("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",x,typeof z)}function rF(z){{var Q=n0(E1);if(!ab.has(Q)){if(ab.add(Q),s4!==null){var X="",Z=30;for(var J=0;J<=y7;J++){var Y=s4[J],H=J===y7?z:Y,G=J+1+". "+Y;while(G.length<Z)G+=" ";G+=H+`
|
|
72
|
+
`,X+=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
|
+
`,Q,X)}}}}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 ob(z,Q){if(pb)return!1;if(Q===null)return $("%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.",x),!1;if(z.length!==Q.length)$(`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`,x,"["+Q.join(", ")+"]","["+z.join(", ")+"]");for(var X=0;X<Q.length&&X<z.length;X++){if(d4(z[X],Q[X]))continue;return!1}return!0}function kz(z,Q,X,Z,J,Y){if(M8=Y,E1=Q,s4=z!==null?z._debugHookTypes:null,y7=-1,pb=z!==null&&z.type!==Q.type,Q.memoizedState=null,Q.updateQueue=null,Q.lanes=p,z!==null&&z.memoizedState!==null)v0.current=ZB;else if(s4!==null)v0.current=XB;else v0.current=QB;var H=X(Z,J);if(qX){var G=0;do{if(qX=!1,KX=0,G>=iF)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");G+=1,pb=!1,C6=null,S6=null,Q.updateQueue=null,y7=-1,v0.current=JB,H=X(Z,J)}while(qX)}v0.current=hJ,Q._debugHookTypes=s4;var U=C6!==null&&C6.next!==null;if(M8=p,E1=null,C6=null,S6=null,x=null,s4=null,y7=-1,z!==null&&(z.flags&e5)!==(Q.flags&e5)&&(z.mode&G1)!==C0)$("Internal React error: Expected static flag was missing. Please notify the React team.");if(AJ=!1,U)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return H}function wz(){var z=KX!==0;return KX=0,z}function gK(z,Q,X){if(Q.updateQueue=z.updateQueue,(Q.mode&T5)!==C0)Q.flags&=~(BZ|s5|H5|K1);else Q.flags&=~(H5|K1);z.lanes=AZ(z.lanes,X)}function jK(){if(v0.current=hJ,AJ){var z=E1.memoizedState;while(z!==null){var Q=z.queue;if(Q!==null)Q.pending=null;z=z.next}AJ=!1}M8=p,E1=null,C6=null,S6=null,s4=null,y7=-1,x=null,nK=!1,qX=!1,KX=0}function g5(){var z={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};if(S6===null)E1.memoizedState=S6=z;else S6=S6.next=z;return S6}function e4(){var z;if(C6===null){var Q=E1.alternate;if(Q!==null)z=Q.memoizedState;else z=null}else z=C6.next;var X;if(S6===null)X=E1.memoizedState;else X=S6.next;if(X!==null)S6=X,X=S6.next,C6=z;else{if(z===null)throw Error("Rendered more hooks than during the previous render.");C6=z;var Z={memoizedState:C6.memoizedState,baseState:C6.baseState,baseQueue:C6.baseQueue,queue:C6.queue,next:null};if(S6===null)E1.memoizedState=S6=Z;else S6=S6.next=Z}return S6}function uK(){return{lastEffect:null,stores:null}}function ib(z,Q){return typeof Q==="function"?Q(z):Q}function rb(z,Q,X){var Z=g5(),J;if(X!==void 0)J=X(Q);else J=Q;Z.memoizedState=Z.baseState=J;var Y={pending:null,interleaved:null,lanes:p,dispatch:null,lastRenderedReducer:z,lastRenderedState:J};Z.queue=Y;var H=Y.dispatch=sF.bind(null,E1,Y);return[Z.memoizedState,H]}function nb(z,Q,X){var Z=e4(),J=Z.queue;if(J===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");J.lastRenderedReducer=z;var Y=C6,H=Y.baseQueue,G=J.pending;if(G!==null){if(H!==null){var U=H.next,B=G.next;H.next=B,G.next=U}if(Y.baseQueue!==H)$("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.");Y.baseQueue=H=G,J.pending=null}if(H!==null){var O=H.next,V=Y.baseState,M=null,C=null,S=null,g=O;do{var U0=g.lane;if(!Zz(M8,U0)){var T0={lane:U0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};if(S===null)C=S=T0,M=V;else S=S.next=T0;E1.lanes=t0(E1.lanes,U0),CX(U0)}else{if(S!==null){var k0={lane:a6,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};S=S.next=k0}if(g.hasEagerState)V=g.eagerState;else{var Z1=g.action;V=z(V,Z1)}}g=g.next}while(g!==null&&g!==O);if(S===null)M=V;else S.next=C;if(!d4(V,Z.memoizedState))RX();Z.memoizedState=V,Z.baseState=M,Z.baseQueue=S,J.lastRenderedState=V}var J1=J.interleaved;if(J1!==null){var D=J1;do{var m=D.lane;E1.lanes=t0(E1.lanes,m),CX(m),D=D.next}while(D!==J1)}else if(H===null)J.lanes=p;var I=J.dispatch;return[Z.memoizedState,I]}function tb(z,Q,X){var Z=e4(),J=Z.queue;if(J===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");J.lastRenderedReducer=z;var{dispatch:Y,pending:H}=J,G=Z.memoizedState;if(H!==null){J.pending=null;var U=H.next,B=U;do{var O=B.action;G=z(G,O),B=B.next}while(B!==U);if(!d4(G,Z.memoizedState))RX();if(Z.memoizedState=G,Z.baseQueue===null)Z.baseState=G;J.lastRenderedState=G}return[G,Y]}function sb(z,Q,X){return}function RJ(z,Q,X){return}function eb(z,Q,X){var Z=E1,J=g5(),Y,H=t6();if(H){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");if(Y=X(),!Nz){if(Y!==X())$("The result of getServerSnapshot should be cached to avoid an infinite loop"),Nz=!0}}else{if(Y=Q(),!Nz){var G=Q();if(!d4(Y,G))$("The result of getSnapshot should be cached to avoid an infinite loop"),Nz=!0}var U=zY();if(U===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!FZ(U,M8))mK(Z,Q,Y)}J.memoizedState=Y;var B={value:Y,getSnapshot:Q};return J.queue=B,kJ(xK.bind(null,Z,B,z),[z]),Z.flags|=H5,BX(T6|s6,yK.bind(null,Z,B,Y,Q),void 0,null),Y}function PJ(z,Q,X){var Z=E1,J=e4(),Y=Q();if(!Nz){var H=Q();if(!d4(Y,H))$("The result of getSnapshot should be cached to avoid an infinite loop"),Nz=!0}var G=J.memoizedState,U=!d4(G,Y);if(U)J.memoizedState=Y,RX();var B=J.queue;if(OX(xK.bind(null,Z,B,z),[z]),B.getSnapshot!==Q||U||S6!==null&&S6.memoizedState.tag&T6){Z.flags|=H5,BX(T6|s6,yK.bind(null,Z,B,Y,Q),void 0,null);var O=zY();if(O===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!FZ(O,M8))mK(Z,Q,Y)}return Y}function mK(z,Q,X){z.flags|=KZ;var Z={getSnapshot:Q,value:X},J=E1.updateQueue;if(J===null)J=uK(),E1.updateQueue=J,J.stores=[Z];else{var Y=J.stores;if(Y===null)J.stores=[Z];else Y.push(Z)}}function yK(z,Q,X,Z){if(Q.value=X,Q.getSnapshot=Z,dK(Q))cK(z)}function xK(z,Q,X){var Z=function(){if(dK(Q))cK(z)};return X(Z)}function dK(z){var{getSnapshot:Q,value:X}=z;try{var Z=Q();return!d4(X,Z)}catch(J){return!0}}function cK(z){var Q=E4(z,d0);if(Q!==null)u6(Q,z,d0,n1)}function MJ(z){var Q=g5();if(typeof z==="function")z=z();Q.memoizedState=Q.baseState=z;var X={pending:null,interleaved:null,lanes:p,dispatch:null,lastRenderedReducer:ib,lastRenderedState:z};Q.queue=X;var Z=X.dispatch=eF.bind(null,E1,X);return[Q.memoizedState,Z]}function zG(z){return nb(ib)}function QG(z){return tb(ib)}function BX(z,Q,X,Z){var J={tag:z,create:Q,destroy:X,deps:Z,next:null},Y=E1.updateQueue;if(Y===null)Y=uK(),E1.updateQueue=Y,Y.lastEffect=J.next=J;else{var H=Y.lastEffect;if(H===null)Y.lastEffect=J.next=J;else{var G=H.next;H.next=J,J.next=G,Y.lastEffect=J}}return J}function XG(z){var Q=g5();{var X={current:z};return Q.memoizedState=X,X}}function NJ(z){var Q=e4();return Q.memoizedState}function vX(z,Q,X,Z){var J=g5(),Y=Z===void 0?null:Z;E1.flags|=z,J.memoizedState=BX(T6|Q,X,void 0,Y)}function VJ(z,Q,X,Z){var J=e4(),Y=Z===void 0?null:Z,H=void 0;if(C6!==null){var G=C6.memoizedState;if(H=G.destroy,Y!==null){var U=G.deps;if(ob(Y,U)){J.memoizedState=BX(Q,X,H,Y);return}}}E1.flags|=z,J.memoizedState=BX(T6|Q,X,H,Y)}function kJ(z,Q){if((E1.mode&T5)!==C0)return vX(BZ|H5|sY,s6,z,Q);else return vX(H5|sY,s6,z,Q)}function OX(z,Q){return VJ(H5,s6,z,Q)}function ZG(z,Q){return vX(K1,h5,z,Q)}function wJ(z,Q){return VJ(K1,h5,z,Q)}function JG(z,Q){var X=K1;if(X|=Y8,(E1.mode&T5)!==C0)X|=s5;return vX(X,f6,z,Q)}function DJ(z,Q){return VJ(K1,f6,z,Q)}function lK(z,Q){if(typeof Q==="function"){var X=Q,Z=z();return X(Z),function(){X(null)}}else if(Q!==null&&Q!==void 0){var J=Q;if(!J.hasOwnProperty("current"))$("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(J).join(", ")+"}");var Y=z();return J.current=Y,function(){J.current=null}}}function YG(z,Q,X){if(typeof Q!=="function")$("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null");var Z=X!==null&&X!==void 0?X.concat([z]):null,J=K1;if(J|=Y8,(E1.mode&T5)!==C0)J|=s5;return vX(J,f6,lK.bind(null,Q,z),Z)}function IJ(z,Q,X){if(typeof Q!=="function")$("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null");var Z=X!==null&&X!==void 0?X.concat([z]):null;return VJ(K1,f6,lK.bind(null,Q,z),Z)}function EJ(z,Q){}var TJ=EJ;function HG(z,Q){var X=g5(),Z=Q===void 0?null:Q;return X.memoizedState=[z,Z],z}function fJ(z,Q){var X=e4(),Z=Q===void 0?null:Q,J=X.memoizedState;if(J!==null){if(Z!==null){var Y=J[1];if(ob(Z,Y))return J[0]}}return X.memoizedState=[z,Z],z}function bG(z,Q){var X=g5(),Z=Q===void 0?null:Q,J=z();return X.memoizedState=[J,Z],J}function CJ(z,Q){var X=e4(),Z=Q===void 0?null:Q,J=X.memoizedState;if(J!==null){if(Z!==null){var Y=J[1];if(ob(Z,Y))return J[0]}}var H=z();return X.memoizedState=[H,Z],H}function GG(z){var Q=g5();return Q.memoizedState=z,z}function aK(z){var Q=e4(),X=C6,Z=X.memoizedState;return oK(Q,Z,z)}function pK(z){var Q=e4();if(C6===null)return Q.memoizedState=z,z;else{var X=C6.memoizedState;return oK(Q,X,z)}}function oK(z,Q,X){var Z=!hO(M8);if(Z){if(!d4(X,Q)){var J=dU();E1.lanes=t0(E1.lanes,J),CX(J),z.baseState=!0}return Q}else{if(z.baseState)z.baseState=!1,RX();return z.memoizedState=X,X}}function nF(z,Q,X){var Z=G5();p6(lO(Z,Q7)),z(!0);var J=UX.transition;UX.transition={};var Y=UX.transition;UX.transition._updatedFibers=new Set;try{z(!1),Q()}finally{if(p6(Z),UX.transition=J,J===null&&Y._updatedFibers){var H=Y._updatedFibers.size;if(H>10)_("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.");Y._updatedFibers.clear()}}}function $G(){var z=MJ(!1),Q=z[0],X=z[1],Z=nF.bind(null,X),J=g5();return J.memoizedState=Z,[Q,Z]}function iK(){var z=zG(),Q=z[0],X=e4(),Z=X.memoizedState;return[Q,Z]}function rK(){var z=QG(),Q=z[0],X=e4(),Z=X.memoizedState;return[Q,Z]}var nK=!1;function tF(){return nK}function UG(){var z=g5(),Q=zY(),X=Q.identifierPrefix,Z;if(t6()){var J=OF();Z=":"+X+"R"+J;var Y=KX++;if(Y>0)Z+="H"+Y.toString(32);Z+=":"}else{var H=oF++;Z=":"+X+"r"+H.toString(32)+":"}return z.memoizedState=Z,Z}function SJ(){var z=e4(),Q=z.memoizedState;return Q}function sF(z,Q,X){if(typeof arguments[3]==="function")$("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 Z=a7(z),J={lane:Z,action:X,hasEagerState:!1,eagerState:null,next:null};if(tK(z))sK(Q,J);else{var Y=kK(z,Q,J,Z);if(Y!==null){var H=M4();u6(Y,z,Z,H),eK(Y,Q,Z)}}zB(z,Z)}function eF(z,Q,X){if(typeof arguments[3]==="function")$("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 Z=a7(z),J={lane:Z,action:X,hasEagerState:!1,eagerState:null,next:null};if(tK(z))sK(Q,J);else{var Y=z.alternate;if(z.lanes===p&&(Y===null||Y.lanes===p)){var H=Q.lastRenderedReducer;if(H!==null){var G;G=v0.current,v0.current=B5;try{var U=Q.lastRenderedState,B=H(U,X);if(J.hasEagerState=!0,J.eagerState=B,d4(B,U)){uF(z,Q,J,Z);return}}catch(M){}finally{v0.current=G}}}var O=kK(z,Q,J,Z);if(O!==null){var V=M4();u6(O,z,Z,V),eK(O,Q,Z)}}zB(z,Z)}function tK(z){var Q=z.alternate;return z===E1||Q!==null&&Q===E1}function sK(z,Q){qX=AJ=!0;var X=z.pending;if(X===null)Q.next=Q;else Q.next=X.next,X.next=Q;z.pending=Q}function eK(z,Q,X){if(xU(X)){var Z=Q.lanes;Z=cU(Z,z.pendingLanes);var J=t0(Z,X);Q.lanes=J,DH(z,J)}}function zB(z,Q,X){ZH(z,Q)}var hJ={readContext:w6,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:e0},QB=null,XB=null,ZB=null,JB=null,j5=null,B5=null,gJ=null;{var qG=function(){$("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().")},c0=function(){$("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")};QB={readContext:function(z){return w6(z)},useCallback:function(z,Q){return x="useCallback",R1(),Vz(Q),HG(z,Q)},useContext:function(z){return x="useContext",R1(),w6(z)},useEffect:function(z,Q){return x="useEffect",R1(),Vz(Q),kJ(z,Q)},useImperativeHandle:function(z,Q,X){return x="useImperativeHandle",R1(),Vz(X),YG(z,Q,X)},useInsertionEffect:function(z,Q){return x="useInsertionEffect",R1(),Vz(Q),ZG(z,Q)},useLayoutEffect:function(z,Q){return x="useLayoutEffect",R1(),Vz(Q),JG(z,Q)},useMemo:function(z,Q){x="useMemo",R1(),Vz(Q);var X=v0.current;v0.current=j5;try{return bG(z,Q)}finally{v0.current=X}},useReducer:function(z,Q,X){x="useReducer",R1();var Z=v0.current;v0.current=j5;try{return rb(z,Q,X)}finally{v0.current=Z}},useRef:function(z){return x="useRef",R1(),XG(z)},useState:function(z){x="useState",R1();var Q=v0.current;v0.current=j5;try{return MJ(z)}finally{v0.current=Q}},useDebugValue:function(z,Q){return x="useDebugValue",R1(),EJ()},useDeferredValue:function(z){return x="useDeferredValue",R1(),GG(z)},useTransition:function(){return x="useTransition",R1(),$G()},useMutableSource:function(z,Q,X){return x="useMutableSource",R1(),sb()},useSyncExternalStore:function(z,Q,X){return x="useSyncExternalStore",R1(),eb(z,Q,X)},useId:function(){return x="useId",R1(),UG()},unstable_isNewReconciler:e0},XB={readContext:function(z){return w6(z)},useCallback:function(z,Q){return x="useCallback",$0(),HG(z,Q)},useContext:function(z){return x="useContext",$0(),w6(z)},useEffect:function(z,Q){return x="useEffect",$0(),kJ(z,Q)},useImperativeHandle:function(z,Q,X){return x="useImperativeHandle",$0(),YG(z,Q,X)},useInsertionEffect:function(z,Q){return x="useInsertionEffect",$0(),ZG(z,Q)},useLayoutEffect:function(z,Q){return x="useLayoutEffect",$0(),JG(z,Q)},useMemo:function(z,Q){x="useMemo",$0();var X=v0.current;v0.current=j5;try{return bG(z,Q)}finally{v0.current=X}},useReducer:function(z,Q,X){x="useReducer",$0();var Z=v0.current;v0.current=j5;try{return rb(z,Q,X)}finally{v0.current=Z}},useRef:function(z){return x="useRef",$0(),XG(z)},useState:function(z){x="useState",$0();var Q=v0.current;v0.current=j5;try{return MJ(z)}finally{v0.current=Q}},useDebugValue:function(z,Q){return x="useDebugValue",$0(),EJ()},useDeferredValue:function(z){return x="useDeferredValue",$0(),GG(z)},useTransition:function(){return x="useTransition",$0(),$G()},useMutableSource:function(z,Q,X){return x="useMutableSource",$0(),sb()},useSyncExternalStore:function(z,Q,X){return x="useSyncExternalStore",$0(),eb(z,Q,X)},useId:function(){return x="useId",$0(),UG()},unstable_isNewReconciler:e0},ZB={readContext:function(z){return w6(z)},useCallback:function(z,Q){return x="useCallback",$0(),fJ(z,Q)},useContext:function(z){return x="useContext",$0(),w6(z)},useEffect:function(z,Q){return x="useEffect",$0(),OX(z,Q)},useImperativeHandle:function(z,Q,X){return x="useImperativeHandle",$0(),IJ(z,Q,X)},useInsertionEffect:function(z,Q){return x="useInsertionEffect",$0(),wJ(z,Q)},useLayoutEffect:function(z,Q){return x="useLayoutEffect",$0(),DJ(z,Q)},useMemo:function(z,Q){x="useMemo",$0();var X=v0.current;v0.current=B5;try{return CJ(z,Q)}finally{v0.current=X}},useReducer:function(z,Q,X){x="useReducer",$0();var Z=v0.current;v0.current=B5;try{return nb(z,Q,X)}finally{v0.current=Z}},useRef:function(z){return x="useRef",$0(),NJ()},useState:function(z){x="useState",$0();var Q=v0.current;v0.current=B5;try{return zG(z)}finally{v0.current=Q}},useDebugValue:function(z,Q){return x="useDebugValue",$0(),TJ()},useDeferredValue:function(z){return x="useDeferredValue",$0(),aK(z)},useTransition:function(){return x="useTransition",$0(),iK()},useMutableSource:function(z,Q,X){return x="useMutableSource",$0(),RJ()},useSyncExternalStore:function(z,Q,X){return x="useSyncExternalStore",$0(),PJ(z,Q)},useId:function(){return x="useId",$0(),SJ()},unstable_isNewReconciler:e0},JB={readContext:function(z){return w6(z)},useCallback:function(z,Q){return x="useCallback",$0(),fJ(z,Q)},useContext:function(z){return x="useContext",$0(),w6(z)},useEffect:function(z,Q){return x="useEffect",$0(),OX(z,Q)},useImperativeHandle:function(z,Q,X){return x="useImperativeHandle",$0(),IJ(z,Q,X)},useInsertionEffect:function(z,Q){return x="useInsertionEffect",$0(),wJ(z,Q)},useLayoutEffect:function(z,Q){return x="useLayoutEffect",$0(),DJ(z,Q)},useMemo:function(z,Q){x="useMemo",$0();var X=v0.current;v0.current=gJ;try{return CJ(z,Q)}finally{v0.current=X}},useReducer:function(z,Q,X){x="useReducer",$0();var Z=v0.current;v0.current=gJ;try{return tb(z,Q,X)}finally{v0.current=Z}},useRef:function(z){return x="useRef",$0(),NJ()},useState:function(z){x="useState",$0();var Q=v0.current;v0.current=gJ;try{return QG(z)}finally{v0.current=Q}},useDebugValue:function(z,Q){return x="useDebugValue",$0(),TJ()},useDeferredValue:function(z){return x="useDeferredValue",$0(),pK(z)},useTransition:function(){return x="useTransition",$0(),rK()},useMutableSource:function(z,Q,X){return x="useMutableSource",$0(),RJ()},useSyncExternalStore:function(z,Q,X){return x="useSyncExternalStore",$0(),PJ(z,Q)},useId:function(){return x="useId",$0(),SJ()},unstable_isNewReconciler:e0},j5={readContext:function(z){return qG(),w6(z)},useCallback:function(z,Q){return x="useCallback",c0(),R1(),HG(z,Q)},useContext:function(z){return x="useContext",c0(),R1(),w6(z)},useEffect:function(z,Q){return x="useEffect",c0(),R1(),kJ(z,Q)},useImperativeHandle:function(z,Q,X){return x="useImperativeHandle",c0(),R1(),YG(z,Q,X)},useInsertionEffect:function(z,Q){return x="useInsertionEffect",c0(),R1(),ZG(z,Q)},useLayoutEffect:function(z,Q){return x="useLayoutEffect",c0(),R1(),JG(z,Q)},useMemo:function(z,Q){x="useMemo",c0(),R1();var X=v0.current;v0.current=j5;try{return bG(z,Q)}finally{v0.current=X}},useReducer:function(z,Q,X){x="useReducer",c0(),R1();var Z=v0.current;v0.current=j5;try{return rb(z,Q,X)}finally{v0.current=Z}},useRef:function(z){return x="useRef",c0(),R1(),XG(z)},useState:function(z){x="useState",c0(),R1();var Q=v0.current;v0.current=j5;try{return MJ(z)}finally{v0.current=Q}},useDebugValue:function(z,Q){return x="useDebugValue",c0(),R1(),EJ()},useDeferredValue:function(z){return x="useDeferredValue",c0(),R1(),GG(z)},useTransition:function(){return x="useTransition",c0(),R1(),$G()},useMutableSource:function(z,Q,X){return x="useMutableSource",c0(),R1(),sb()},useSyncExternalStore:function(z,Q,X){return x="useSyncExternalStore",c0(),R1(),eb(z,Q,X)},useId:function(){return x="useId",c0(),R1(),UG()},unstable_isNewReconciler:e0},B5={readContext:function(z){return qG(),w6(z)},useCallback:function(z,Q){return x="useCallback",c0(),$0(),fJ(z,Q)},useContext:function(z){return x="useContext",c0(),$0(),w6(z)},useEffect:function(z,Q){return x="useEffect",c0(),$0(),OX(z,Q)},useImperativeHandle:function(z,Q,X){return x="useImperativeHandle",c0(),$0(),IJ(z,Q,X)},useInsertionEffect:function(z,Q){return x="useInsertionEffect",c0(),$0(),wJ(z,Q)},useLayoutEffect:function(z,Q){return x="useLayoutEffect",c0(),$0(),DJ(z,Q)},useMemo:function(z,Q){x="useMemo",c0(),$0();var X=v0.current;v0.current=B5;try{return CJ(z,Q)}finally{v0.current=X}},useReducer:function(z,Q,X){x="useReducer",c0(),$0();var Z=v0.current;v0.current=B5;try{return nb(z,Q,X)}finally{v0.current=Z}},useRef:function(z){return x="useRef",c0(),$0(),NJ()},useState:function(z){x="useState",c0(),$0();var Q=v0.current;v0.current=B5;try{return zG(z)}finally{v0.current=Q}},useDebugValue:function(z,Q){return x="useDebugValue",c0(),$0(),TJ()},useDeferredValue:function(z){return x="useDeferredValue",c0(),$0(),aK(z)},useTransition:function(){return x="useTransition",c0(),$0(),iK()},useMutableSource:function(z,Q,X){return x="useMutableSource",c0(),$0(),RJ()},useSyncExternalStore:function(z,Q,X){return x="useSyncExternalStore",c0(),$0(),PJ(z,Q)},useId:function(){return x="useId",c0(),$0(),SJ()},unstable_isNewReconciler:e0},gJ={readContext:function(z){return qG(),w6(z)},useCallback:function(z,Q){return x="useCallback",c0(),$0(),fJ(z,Q)},useContext:function(z){return x="useContext",c0(),$0(),w6(z)},useEffect:function(z,Q){return x="useEffect",c0(),$0(),OX(z,Q)},useImperativeHandle:function(z,Q,X){return x="useImperativeHandle",c0(),$0(),IJ(z,Q,X)},useInsertionEffect:function(z,Q){return x="useInsertionEffect",c0(),$0(),wJ(z,Q)},useLayoutEffect:function(z,Q){return x="useLayoutEffect",c0(),$0(),DJ(z,Q)},useMemo:function(z,Q){x="useMemo",c0(),$0();var X=v0.current;v0.current=B5;try{return CJ(z,Q)}finally{v0.current=X}},useReducer:function(z,Q,X){x="useReducer",c0(),$0();var Z=v0.current;v0.current=B5;try{return tb(z,Q,X)}finally{v0.current=Z}},useRef:function(z){return x="useRef",c0(),$0(),NJ()},useState:function(z){x="useState",c0(),$0();var Q=v0.current;v0.current=B5;try{return QG(z)}finally{v0.current=Q}},useDebugValue:function(z,Q){return x="useDebugValue",c0(),$0(),TJ()},useDeferredValue:function(z){return x="useDeferredValue",c0(),$0(),pK(z)},useTransition:function(){return x="useTransition",c0(),$0(),rK()},useMutableSource:function(z,Q,X){return x="useMutableSource",c0(),$0(),RJ()},useSyncExternalStore:function(z,Q,X){return x="useSyncExternalStore",c0(),$0(),PJ(z,Q)},useId:function(){return x="useId",c0(),$0(),SJ()},unstable_isNewReconciler:e0}}var x7=f1.unstable_now,YB=0,jJ=-1,LX=-1,uJ=-1,KG=!1,mJ=!1;function HB(){return KG}function zA(){mJ=!0}function QA(){KG=!1,mJ=!1}function XA(){KG=mJ,mJ=!1}function bB(){return YB}function GB(){YB=x7()}function BG(z){if(LX=x7(),z.actualStartTime<0)z.actualStartTime=x7()}function $B(z){LX=-1}function yJ(z,Q){if(LX>=0){var X=x7()-LX;if(z.actualDuration+=X,Q)z.selfBaseDuration=X;LX=-1}}function u5(z){if(jJ>=0){var Q=x7()-jJ;jJ=-1;var X=z.return;while(X!==null){switch(X.tag){case E:var Z=X.stateNode;Z.effectDuration+=Q;return;case q0:var J=X.stateNode;J.effectDuration+=Q;return}X=X.return}}}function vG(z){if(uJ>=0){var Q=x7()-uJ;uJ=-1;var X=z.return;while(X!==null){switch(X.tag){case E:var Z=X.stateNode;if(Z!==null)Z.passiveEffectDuration+=Q;return;case q0:var J=X.stateNode;if(J!==null)J.passiveEffectDuration+=Q;return}X=X.return}}}function m5(){jJ=x7()}function OG(){uJ=x7()}function LG(z){var Q=z.child;while(Q)z.actualDuration+=Q.actualDuration,Q=Q.sibling}function v5(z,Q){if(z&&z.defaultProps){var X=s0({},Q),Z=z.defaultProps;for(var J in Z)if(X[J]===void 0)X[J]=Z[J];return X}return Q}var _G={},WG,FG,AG,RG,PG,UB,xJ,MG,NG,VG,_X;{WG=new Set,FG=new Set,AG=new Set,RG=new Set,MG=new Set,PG=new Set,NG=new Set,VG=new Set,_X=new Set;var qB=new Set;xJ=function(z,Q){if(z===null||typeof z==="function")return;var X=Q+"_"+z;if(!qB.has(X))qB.add(X),$("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Q,z)},UB=function(z,Q){if(Q===void 0){var X=B1(z)||"Component";if(!PG.has(X))PG.add(X),$("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",X)}},Object.defineProperty(_G,"_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(_G)}function kG(z,Q,X,Z){var J=z.memoizedState,Y=X(Z,J);{if(z.mode&L6){l6(!0);try{Y=X(Z,J)}finally{l6(!1)}}UB(Q,Y)}var H=Y===null||Y===void 0?J:s0({},J,Y);if(z.memoizedState=H,z.lanes===p){var G=z.updateQueue;G.baseState=H}}var wG={isMounted:iv,enqueueSetState:function(z,Q,X){var Z=n8(z),J=M4(),Y=a7(Z),H=G7(J,Y);if(H.payload=Q,X!==void 0&&X!==null)xJ(X,"setState"),H.callback=X;var G=j7(Z,H,Y);if(G!==null)u6(G,Z,Y,J),vJ(G,Z,Y);ZH(Z,Y)},enqueueReplaceState:function(z,Q,X){var Z=n8(z),J=M4(),Y=a7(Z),H=G7(J,Y);if(H.tag=DK,H.payload=Q,X!==void 0&&X!==null)xJ(X,"replaceState"),H.callback=X;var G=j7(Z,H,Y);if(G!==null)u6(G,Z,Y,J),vJ(G,Z,Y);ZH(Z,Y)},enqueueForceUpdate:function(z,Q){var X=n8(z),Z=M4(),J=a7(X),Y=G7(Z,J);if(Y.tag=qJ,Q!==void 0&&Q!==null)xJ(Q,"forceUpdate"),Y.callback=Q;var H=j7(X,Y,J);if(H!==null)u6(H,X,J,Z),vJ(H,X,J);VO(X,J)}};function KB(z,Q,X,Z,J,Y,H){var G=z.stateNode;if(typeof G.shouldComponentUpdate==="function"){var U=G.shouldComponentUpdate(Z,Y,H);{if(z.mode&L6){l6(!0);try{U=G.shouldComponentUpdate(Z,Y,H)}finally{l6(!1)}}if(U===void 0)$("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",B1(Q)||"Component")}return U}if(Q.prototype&&Q.prototype.isPureReactComponent)return!mQ(X,Z)||!mQ(J,Y);return!0}function ZA(z,Q,X){var Z=z.stateNode;{var J=B1(Q)||"Component",Y=Z.render;if(!Y)if(Q.prototype&&typeof Q.prototype.render==="function")$("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",J);else $("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",J);if(Z.getInitialState&&!Z.getInitialState.isReactClassApproved&&!Z.state)$("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?",J);if(Z.getDefaultProps&&!Z.getDefaultProps.isReactClassApproved)$("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.",J);if(Z.propTypes)$("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",J);if(Z.contextType)$("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",J);{if(Q.childContextTypes&&!_X.has(Q)&&(z.mode&L6)===C0)_X.add(Q),$(`%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`,J);if(Q.contextTypes&&!_X.has(Q)&&(z.mode&L6)===C0)_X.add(Q),$(`%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`,J);if(Z.contextTypes)$("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",J);if(Q.contextType&&Q.contextTypes&&!NG.has(Q))NG.add(Q),$("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",J)}if(typeof Z.componentShouldUpdate==="function")$("%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.",J);if(Q.prototype&&Q.prototype.isPureReactComponent&&typeof Z.shouldComponentUpdate<"u")$("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",B1(Q)||"A pure component");if(typeof Z.componentDidUnmount==="function")$("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",J);if(typeof Z.componentDidReceiveProps==="function")$("%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().",J);if(typeof Z.componentWillRecieveProps==="function")$("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",J);if(typeof Z.UNSAFE_componentWillRecieveProps==="function")$("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",J);var H=Z.props!==X;if(Z.props!==void 0&&H)$("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",J,J);if(Z.defaultProps)$("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",J,J);if(typeof Z.getSnapshotBeforeUpdate==="function"&&typeof Z.componentDidUpdate!=="function"&&!AG.has(Q))AG.add(Q),$("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",B1(Q));if(typeof Z.getDerivedStateFromProps==="function")$("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",J);if(typeof Z.getDerivedStateFromError==="function")$("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",J);if(typeof Q.getSnapshotBeforeUpdate==="function")$("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",J);var G=Z.state;if(G&&(typeof G!=="object"||_1(G)))$("%s.state: must be set to an object or null",J);if(typeof Z.getChildContext==="function"&&typeof Q.childContextTypes!=="object")$("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",J)}}function BB(z,Q){Q.updater=wG,z.stateNode=Q,cv(Q,z),Q._reactInternalInstance=_G}function vB(z,Q,X){var Z=!1,J=c4,Y=c4,H=Q.contextType;if("contextType"in Q){var G=H===null||H!==void 0&&H.$$typeof===L&&H._context===void 0;if(!G&&!VG.has(Q)){VG.add(Q);var U="";if(H===void 0)U=" 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 H!=="object")U=" However, it is set to a "+typeof H+".";else if(H.$$typeof===a)U=" Did you accidentally pass the Context.Provider instead?";else if(H._context!==void 0)U=" Did you accidentally pass the Context.Consumer instead?";else U=" However, it is set to an object with keys {"+Object.keys(H).join(", ")+"}.";$("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",B1(Q)||"Component",U)}}if(typeof H==="object"&&H!==null)Y=w6(H);else{J=Bz(z,Q,!0);var B=Q.contextTypes;Z=B!==null&&B!==void 0,Y=Z?vz(z,J):c4}var O=new Q(X,Y);if(z.mode&L6){l6(!0);try{O=new Q(X,Y)}finally{l6(!1)}}var V=z.memoizedState=O.state!==null&&O.state!==void 0?O.state:null;BB(z,O);{if(typeof Q.getDerivedStateFromProps==="function"&&V===null){var M=B1(Q)||"Component";if(!FG.has(M))FG.add(M),$("`%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 Q.getDerivedStateFromProps==="function"||typeof O.getSnapshotBeforeUpdate==="function"){var C=null,S=null,g=null;if(typeof O.componentWillMount==="function"&&O.componentWillMount.__suppressDeprecationWarning!==!0)C="componentWillMount";else if(typeof O.UNSAFE_componentWillMount==="function")C="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(C!==null||S!==null||g!==null){var U0=B1(Q)||"Component",T0=typeof Q.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";if(!RG.has(U0))RG.add(U0),$(`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`,U0,T0,C!==null?`
|
|
94
|
+
`+C:"",S!==null?`
|
|
95
|
+
`+S:"",g!==null?`
|
|
96
|
+
`+g:"")}}}if(Z)ZK(z,J,Y);return O}function JA(z,Q){var X=Q.state;if(typeof Q.componentWillMount==="function")Q.componentWillMount();if(typeof Q.UNSAFE_componentWillMount==="function")Q.UNSAFE_componentWillMount();if(X!==Q.state)$("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",n0(z)||"Component"),wG.enqueueReplaceState(Q,Q.state,null)}function OB(z,Q,X,Z){var J=Q.state;if(typeof Q.componentWillReceiveProps==="function")Q.componentWillReceiveProps(X,Z);if(typeof Q.UNSAFE_componentWillReceiveProps==="function")Q.UNSAFE_componentWillReceiveProps(X,Z);if(Q.state!==J){{var Y=n0(z)||"Component";if(!WG.has(Y))WG.add(Y),$("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Y)}wG.enqueueReplaceState(Q,Q.state,null)}}function DG(z,Q,X,Z){ZA(z,Q,X);var J=z.stateNode;J.props=X,J.state=z.memoizedState,J.refs={},gb(z);var Y=Q.contextType;if(typeof Y==="object"&&Y!==null)J.context=w6(Y);else{var H=Bz(z,Q,!0);J.context=vz(z,H)}{if(J.state===X){var G=B1(Q)||"Component";if(!MG.has(G))MG.add(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.",G)}if(z.mode&L6)q5.recordLegacyContextWarning(z,J);q5.recordUnsafeLifecycleWarnings(z,J)}J.state=z.memoizedState;var U=Q.getDerivedStateFromProps;if(typeof U==="function")kG(z,Q,U,X),J.state=z.memoizedState;if(typeof Q.getDerivedStateFromProps!=="function"&&typeof J.getSnapshotBeforeUpdate!=="function"&&(typeof J.UNSAFE_componentWillMount==="function"||typeof J.componentWillMount==="function"))JA(z,J),OJ(z,X,J,Z),J.state=z.memoizedState;if(typeof J.componentDidMount==="function"){var B=K1;if(B|=Y8,(z.mode&T5)!==C0)B|=s5;z.flags|=B}}function YA(z,Q,X,Z){var{stateNode:J,memoizedProps:Y}=z;J.props=Y;var H=J.context,G=Q.contextType,U=c4;if(typeof G==="object"&&G!==null)U=w6(G);else{var B=Bz(z,Q,!0);U=vz(z,B)}var O=Q.getDerivedStateFromProps,V=typeof O==="function"||typeof J.getSnapshotBeforeUpdate==="function";if(!V&&(typeof J.UNSAFE_componentWillReceiveProps==="function"||typeof J.componentWillReceiveProps==="function")){if(Y!==X||H!==U)OB(z,J,X,U)}EK();var M=z.memoizedState,C=J.state=M;if(OJ(z,X,J,Z),C=z.memoizedState,Y===X&&M===C&&!nZ()&&!LJ()){if(typeof J.componentDidMount==="function"){var S=K1;if(S|=Y8,(z.mode&T5)!==C0)S|=s5;z.flags|=S}return!1}if(typeof O==="function")kG(z,Q,O,X),C=z.memoizedState;var g=LJ()||KB(z,Q,Y,X,M,C,U);if(g){if(!V&&(typeof J.UNSAFE_componentWillMount==="function"||typeof J.componentWillMount==="function")){if(typeof J.componentWillMount==="function")J.componentWillMount();if(typeof J.UNSAFE_componentWillMount==="function")J.UNSAFE_componentWillMount()}if(typeof J.componentDidMount==="function"){var U0=K1;if(U0|=Y8,(z.mode&T5)!==C0)U0|=s5;z.flags|=U0}}else{if(typeof J.componentDidMount==="function"){var T0=K1;if(T0|=Y8,(z.mode&T5)!==C0)T0|=s5;z.flags|=T0}z.memoizedProps=X,z.memoizedState=C}return J.props=X,J.state=C,J.context=U,g}function HA(z,Q,X,Z,J){var Y=Q.stateNode;IK(z,Q);var H=Q.memoizedProps,G=Q.type===Q.elementType?H:v5(Q.type,H);Y.props=G;var U=Q.pendingProps,B=Y.context,O=X.contextType,V=c4;if(typeof O==="object"&&O!==null)V=w6(O);else{var M=Bz(Q,X,!0);V=vz(Q,M)}var C=X.getDerivedStateFromProps,S=typeof C==="function"||typeof Y.getSnapshotBeforeUpdate==="function";if(!S&&(typeof Y.UNSAFE_componentWillReceiveProps==="function"||typeof Y.componentWillReceiveProps==="function")){if(H!==U||B!==V)OB(Q,Y,Z,V)}EK();var g=Q.memoizedState,U0=Y.state=g;if(OJ(Q,Z,Y,J),U0=Q.memoizedState,H===U&&g===U0&&!nZ()&&!LJ()&&!P6){if(typeof Y.componentDidUpdate==="function"){if(H!==z.memoizedProps||g!==z.memoizedState)Q.flags|=K1}if(typeof Y.getSnapshotBeforeUpdate==="function"){if(H!==z.memoizedProps||g!==z.memoizedState)Q.flags|=Z8}return!1}if(typeof C==="function")kG(Q,X,C,Z),U0=Q.memoizedState;var T0=LJ()||KB(Q,X,G,Z,g,U0,V)||P6;if(T0){if(!S&&(typeof Y.UNSAFE_componentWillUpdate==="function"||typeof Y.componentWillUpdate==="function")){if(typeof Y.componentWillUpdate==="function")Y.componentWillUpdate(Z,U0,V);if(typeof Y.UNSAFE_componentWillUpdate==="function")Y.UNSAFE_componentWillUpdate(Z,U0,V)}if(typeof Y.componentDidUpdate==="function")Q.flags|=K1;if(typeof Y.getSnapshotBeforeUpdate==="function")Q.flags|=Z8}else{if(typeof Y.componentDidUpdate==="function"){if(H!==z.memoizedProps||g!==z.memoizedState)Q.flags|=K1}if(typeof Y.getSnapshotBeforeUpdate==="function"){if(H!==z.memoizedProps||g!==z.memoizedState)Q.flags|=Z8}Q.memoizedProps=Z,Q.memoizedState=U0}return Y.props=Z,Y.state=U0,Y.context=V,T0}function N8(z,Q){return{value:z,source:Q,stack:YQ(Q),digest:null}}function IG(z,Q,X){return{value:z,source:null,stack:X!=null?X:null,digest:Q!=null?Q:null}}function bA(z,Q){return!0}function EG(z,Q){try{var X=bA(z,Q);if(X===!1)return;var{value:Z,source:J,stack:Y}=Q,H=Y!==null?Y:"";if(Z!=null&&Z._suppressLogging){if(z.tag===A)return;console.error(Z)}var G=J?n0(J):null,U=G?"The above error occurred in the <"+G+"> component:":"The above error occurred in one of your React components:",B;if(z.tag===E)B=`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=n0(z)||"Anonymous";B="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+O+".")}var V=U+`
|
|
98
|
+
`+H+`
|
|
99
|
+
|
|
100
|
+
`+(""+B);console.error(V)}catch(M){setTimeout(function(){throw M})}}var GA=typeof WeakMap==="function"?WeakMap:Map;function LB(z,Q,X){var Z=G7(n1,X);Z.tag=Sb,Z.payload={element:null};var J=Q.value;return Z.callback=function(){YP(J),EG(z,Q)},Z}function TG(z,Q,X){var Z=G7(n1,X);Z.tag=Sb;var J=z.type.getDerivedStateFromError;if(typeof J==="function"){var Y=Q.value;Z.payload=function(){return J(Y)},Z.callback=function(){D3(z),EG(z,Q)}}var H=z.stateNode;if(H!==null&&typeof H.componentDidCatch==="function")Z.callback=function(){if(D3(z),EG(z,Q),typeof J!=="function")ZP(this);var{value:U,stack:B}=Q;if(this.componentDidCatch(U,{componentStack:B!==null?B:""}),typeof J!=="function"){if(!m4(z.lanes,d0))$("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",n0(z)||"Unknown")}};return Z}function _B(z,Q,X){var Z=z.pingCache,J;if(Z===null)Z=z.pingCache=new GA,J=new Set,Z.set(Q,J);else if(J=Z.get(Q),J===void 0)J=new Set,Z.set(Q,J);if(!J.has(X)){J.add(X);var Y=HP.bind(null,z,Q,X);if(b5)SX(z,X);Q.then(Y,Y)}}function $A(z,Q,X,Z){var J=z.updateQueue;if(J===null){var Y=new Set;Y.add(X),z.updateQueue=Y}else J.add(X)}function UA(z,Q){var X=z.tag;if((z.mode&G1)===C0&&(X===P||X===y||X===J0)){var Z=z.alternate;if(Z)z.updateQueue=Z.updateQueue,z.memoizedState=Z.memoizedState,z.lanes=Z.lanes;else z.updateQueue=null,z.memoizedState=null}}function WB(z){var Q=z;do{if(Q.tag===l&&aF(Q))return Q;Q=Q.return}while(Q!==null);return null}function FB(z,Q,X,Z,J){if((z.mode&G1)===C0){if(z===Q)z.flags|=A4;else{if(z.flags|=W1,X.flags|=nY,X.flags&=~(lv|LQ),X.tag===A){var Y=X.alternate;if(Y===null)X.tag=r0;else{var H=G7(n1,d0);H.tag=qJ,j7(X,H,d0)}}X.lanes=t0(X.lanes,d0)}return z}return z.flags|=A4,z.lanes=J,z}function qA(z,Q,X,Z,J){if(X.flags|=LQ,b5)SX(z,J);if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function"){var Y=Z;if(UA(X),t6()&&X.mode&G1)UK();var H=WB(Q);if(H!==null){if(H.flags&=~n5,FB(H,Q,X,z,J),H.mode&G1)_B(z,Y,J);$A(H,z,Y);return}else{if(!SO(J)){_B(z,Y,J),q$();return}var G=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.");Z=G}}else if(t6()&&X.mode&G1){UK();var U=WB(Q);if(U!==null){if((U.flags&A4)===h0)U.flags|=n5;FB(U,Q,X,z,J),Pb(N8(Z,X));return}}Z=N8(Z,X),rR(Z);var B=Q;do{switch(B.tag){case E:{var O=Z;B.flags|=A4;var V=NQ(J);B.lanes=t0(B.lanes,V);var M=LB(B,O,V);jb(B,M);return}case A:var C=Z,S=B.type,g=B.stateNode;if((B.flags&W1)===h0&&(typeof S.getDerivedStateFromError==="function"||g!==null&&typeof g.componentDidCatch==="function"&&!F3(g))){B.flags|=A4;var U0=NQ(J);B.lanes=t0(B.lanes,U0);var T0=TG(B,C,U0);jb(B,T0);return}break}B=B.return}while(B!==null)}function KA(){return null}var WX=b.ReactCurrentOwner,O5=!1,fG,FX,CG,SG,hG,V8,gG,dJ,AX;fG={},FX={},CG={},SG={},hG={},V8=!1,gG={},dJ={},AX={};function R4(z,Q,X,Z){if(z===null)Q.child=PK(Q,null,X,Z);else Q.child=Wz(Q,z.child,X,Z)}function BA(z,Q,X,Z){Q.child=Wz(Q,z.child,null,Z),Q.child=Wz(Q,null,X,Z)}function AB(z,Q,X,Z,J){if(Q.type!==Q.elementType){var Y=X.propTypes;if(Y)$5(Y,Z,"prop",B1(X))}var H=X.render,G=Q.ref,U,B;Az(Q,J),WQ(Q);{if(WX.current=Q,j4(!0),U=kz(z,Q,H,Z,G,J),B=wz(),Q.mode&L6){l6(!0);try{U=kz(z,Q,H,Z,G,J),B=wz()}finally{l6(!1)}}j4(!1)}if(e8(),z!==null&&!O5)return gK(z,Q,J),$7(z,Q,J);if(t6()&&B)Lb(Q);return Q.flags|=t8,R4(z,Q,U,J),Q.child}function RB(z,Q,X,Z,J){if(z===null){var Y=X.type;if(MP(Y)&&X.compare===null&&X.defaultProps===void 0){var H=Y;return H=hz(Y),Q.tag=J0,Q.type=H,mG(Q,Y),PB(z,Q,H,Z,J)}{var G=Y.propTypes;if(G)$5(G,Z,"prop",B1(Y));if(X.defaultProps!==void 0){var U=B1(Y)||"Unknown";if(!AX[U])$("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",U),AX[U]=!0}}var B=P$(X.type,null,Z,Q,Q.mode,J);return B.ref=Q.ref,B.return=Q,Q.child=B,B}{var O=X.type,V=O.propTypes;if(V)$5(V,Z,"prop",B1(O))}var M=z.child,C=aG(z,J);if(!C){var S=M.memoizedProps,g=X.compare;if(g=g!==null?g:mQ,g(S,Z)&&z.ref===Q.ref)return $7(z,Q,J)}Q.flags|=t8;var U0=E8(M,Z);return U0.ref=Q.ref,U0.return=Q,Q.child=U0,U0}function PB(z,Q,X,Z,J){if(Q.type!==Q.elementType){var Y=Q.elementType;if(Y.$$typeof===V0){var H=Y,G=H._payload,U=H._init;try{Y=U(G)}catch(V){Y=null}var B=Y&&Y.propTypes;if(B)$5(B,Z,"prop",B1(Y))}}if(z!==null){var O=z.memoizedProps;if(mQ(O,Z)&&z.ref===Q.ref&&Q.type===z.type){if(O5=!1,Q.pendingProps=Z=O,!aG(z,J))return Q.lanes=z.lanes,$7(z,Q,J);else if((z.flags&nY)!==h0)O5=!0}}return jG(z,Q,X,Z,J)}function MB(z,Q,X){var Z=Q.pendingProps,J=Z.children,Y=z!==null?z.memoizedState:null;if(Z.mode==="hidden"||t1)if((Q.mode&G1)===C0){var H={baseLanes:p,cachePool:null,transitions:null};Q.memoizedState=H,QY(Q,X)}else if(!m4(X,u4)){var G=null,U;if(Y!==null){var B=Y.baseLanes;U=t0(B,X)}else U=X;Q.lanes=Q.childLanes=RZ(u4);var O={baseLanes:U,cachePool:G,transitions:null};return Q.memoizedState=O,Q.updateQueue=null,QY(Q,U),null}else{var V={baseLanes:p,cachePool:null,transitions:null};Q.memoizedState=V;var M=Y!==null?Y.baseLanes:X;QY(Q,M)}else{var C;if(Y!==null)C=t0(Y.baseLanes,X),Q.memoizedState=null;else C=X;QY(Q,C)}return R4(z,Q,J,X),Q.child}function vA(z,Q,X){var Z=Q.pendingProps;return R4(z,Q,Z,X),Q.child}function OA(z,Q,X){var Z=Q.pendingProps.children;return R4(z,Q,Z,X),Q.child}function LA(z,Q,X){{Q.flags|=K1;{var Z=Q.stateNode;Z.effectDuration=0,Z.passiveEffectDuration=0}}var J=Q.pendingProps,Y=J.children;return R4(z,Q,Y,X),Q.child}function NB(z,Q){var X=Q.ref;if(z===null&&X!==null||z!==null&&z.ref!==X)Q.flags|=V7,Q.flags|=tY}function jG(z,Q,X,Z,J){if(Q.type!==Q.elementType){var Y=X.propTypes;if(Y)$5(Y,Z,"prop",B1(X))}var H;{var G=Bz(Q,X,!0);H=vz(Q,G)}var U,B;Az(Q,J),WQ(Q);{if(WX.current=Q,j4(!0),U=kz(z,Q,X,Z,H,J),B=wz(),Q.mode&L6){l6(!0);try{U=kz(z,Q,X,Z,H,J),B=wz()}finally{l6(!1)}}j4(!1)}if(e8(),z!==null&&!O5)return gK(z,Q,J),$7(z,Q,J);if(t6()&&B)Lb(Q);return Q.flags|=t8,R4(z,Q,U,J),Q.child}function VB(z,Q,X,Z,J){{switch(uP(Q)){case!1:{var{stateNode:Y,type:H}=Q,G=new H(Q.memoizedProps,Y.context),U=G.state;Y.updater.enqueueSetState(Y,U,null);break}case!0:{Q.flags|=W1,Q.flags|=A4;var B=Error("Simulated error coming from DevTools"),O=NQ(J);Q.lanes=t0(Q.lanes,O);var V=TG(Q,N8(B,Q),O);jb(Q,V);break}}if(Q.type!==Q.elementType){var M=X.propTypes;if(M)$5(M,Z,"prop",B1(X))}}var C;if(S5(X))C=!0,sZ(Q);else C=!1;Az(Q,J);var S=Q.stateNode,g;if(S===null)lJ(z,Q),vB(Q,X,Z),DG(Q,X,Z,J),g=!0;else if(z===null)g=YA(Q,X,Z,J);else g=HA(z,Q,X,Z,J);var U0=uG(z,Q,X,g,C,J);{var T0=Q.stateNode;if(g&&T0.props!==Z){if(!V8)$("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",n0(Q)||"a component");V8=!0}}return U0}function uG(z,Q,X,Z,J,Y){NB(z,Q);var H=(Q.flags&W1)!==h0;if(!Z&&!H){if(J)HK(Q,X,!1);return $7(z,Q,Y)}var G=Q.stateNode;WX.current=Q;var U;if(H&&typeof X.getDerivedStateFromError!=="function")U=null,$B();else{WQ(Q);{if(j4(!0),U=G.render(),Q.mode&L6){l6(!0);try{G.render()}finally{l6(!1)}}j4(!1)}e8()}if(Q.flags|=t8,z!==null&&H)BA(z,Q,U,Y);else R4(z,Q,U,Y);if(Q.memoizedState=G.state,J)HK(Q,X,!0);return Q.child}function kB(z){var Q=z.stateNode;if(Q.pendingContext)JK(z,Q.pendingContext,Q.pendingContext!==Q.context);else if(Q.context)JK(z,Q.context,!1);ub(z,Q.containerInfo)}function _A(z,Q,X){if(kB(Q),z===null)throw Error("Should have a current fiber. This is a bug in React.");var{pendingProps:Z,memoizedState:J}=Q,Y=J.element;IK(z,Q),OJ(Q,Z,null,X);var{memoizedState:H,stateNode:G}=Q,U=H.element;if(J.isDehydrated){var B={element:U,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},O=Q.updateQueue;if(O.baseState=B,Q.memoizedState=B,Q.flags&n5){var V=N8(Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),Q);return wB(z,Q,U,X,V)}else if(U!==Y){var M=N8(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Q);return wB(z,Q,U,X,M)}else{RF(Q);var C=PK(Q,null,U,X);Q.child=C;var S=C;while(S)S.flags=S.flags&~k6|t5,S=S.sibling}}else{if(_z(),U===Y)return $7(z,Q,X);R4(z,Q,U,X)}return Q.child}function wB(z,Q,X,Z,J){return _z(),Pb(J),Q.flags|=n5,R4(z,Q,X,Z),Q.child}function WA(z,Q,X){if(CK(Q),z===null)Rb(Q);var{type:Z,pendingProps:J}=Q,Y=z!==null?z.memoizedProps:null,H=J.children,G=Zb(Z,J);if(G)H=null;else if(Y!==null&&Zb(Z,Y))Q.flags|=OQ;return NB(z,Q),R4(z,Q,H,X),Q.child}function FA(z,Q){if(z===null)Rb(Q);return null}function AA(z,Q,X,Z){lJ(z,Q);var J=Q.pendingProps,Y=X,H=Y._payload,G=Y._init,U=G(H);Q.type=U;var B=Q.tag=NP(U),O=v5(U,J),V;switch(B){case P:return mG(Q,U),Q.type=U=hz(U),V=jG(null,Q,U,O,Z),V;case A:return Q.type=U=L$(U),V=VB(null,Q,U,O,Z),V;case y:return Q.type=U=_$(U),V=AB(null,Q,U,O,Z),V;case i:{if(Q.type!==Q.elementType){var M=U.propTypes;if(M)$5(M,O,"prop",B1(U))}return V=RB(null,Q,U,v5(U.type,O),Z),V}}var C="";if(U!==null&&typeof U==="object"&&U.$$typeof===V0)C=" Did you wrap a component in React.lazy() more than once?";throw Error("Element type is invalid. Received a promise that resolves to: "+U+". "+("Lazy element type must resolve to a class or function."+C))}function RA(z,Q,X,Z,J){lJ(z,Q),Q.tag=A;var Y;if(S5(X))Y=!0,sZ(Q);else Y=!1;return Az(Q,J),vB(Q,X,Z),DG(Q,X,Z,J),uG(null,Q,X,!0,Y,J)}function PA(z,Q,X,Z){lJ(z,Q);var J=Q.pendingProps,Y;{var H=Bz(Q,X,!1);Y=vz(Q,H)}Az(Q,Z);var G,U;WQ(Q);{if(X.prototype&&typeof X.prototype.render==="function"){var B=B1(X)||"Unknown";if(!fG[B])$("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.",B,B),fG[B]=!0}if(Q.mode&L6)q5.recordLegacyContextWarning(Q,null);j4(!0),WX.current=Q,G=kz(null,Q,X,J,Y,Z),U=wz(),j4(!1)}if(e8(),Q.flags|=t8,typeof G==="object"&&G!==null&&typeof G.render==="function"&&G.$$typeof===void 0){var O=B1(X)||"Unknown";if(!FX[O])$("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),FX[O]=!0}if(typeof G==="object"&&G!==null&&typeof G.render==="function"&&G.$$typeof===void 0){{var V=B1(X)||"Unknown";if(!FX[V])$("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.",V,V,V),FX[V]=!0}Q.tag=A,Q.memoizedState=null,Q.updateQueue=null;var M=!1;if(S5(X))M=!0,sZ(Q);else M=!1;return Q.memoizedState=G.state!==null&&G.state!==void 0?G.state:null,gb(Q),BB(Q,G),DG(Q,X,J,Z),uG(null,Q,X,!0,M,Z)}else{if(Q.tag=P,Q.mode&L6){l6(!0);try{G=kz(null,Q,X,J,Y,Z),U=wz()}finally{l6(!1)}}if(t6()&&U)Lb(Q);return R4(null,Q,G,Z),mG(Q,X),Q.child}}function mG(z,Q){{if(Q){if(Q.childContextTypes)$("%s(...): childContextTypes cannot be defined on a function component.",Q.displayName||Q.name||"Component")}if(z.ref!==null){var X="",Z=P7();if(Z)X+=`
|
|
101
|
+
|
|
102
|
+
Check the render method of \``+Z+"`.";var J=Z||"",Y=z._debugSource;if(Y)J=Y.fileName+":"+Y.lineNumber;if(!hG[J])hG[J]=!0,$("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",X)}if(Q.defaultProps!==void 0){var H=B1(Q)||"Unknown";if(!AX[H])$("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",H),AX[H]=!0}if(typeof Q.getDerivedStateFromProps==="function"){var G=B1(Q)||"Unknown";if(!SG[G])$("%s: Function components do not support getDerivedStateFromProps.",G),SG[G]=!0}if(typeof Q.contextType==="object"&&Q.contextType!==null){var U=B1(Q)||"Unknown";if(!CG[U])$("%s: Function components do not support contextType.",U),CG[U]=!0}}}var yG={dehydrated:null,treeContext:null,retryLane:a6};function xG(z){return{baseLanes:z,cachePool:KA(),transitions:null}}function MA(z,Q){var X=null;return{baseLanes:t0(z.baseLanes,Q),cachePool:X,transitions:z.transitions}}function NA(z,Q,X,Z){if(Q!==null){var J=Q.memoizedState;if(J===null)return!1}return xb(z,$X)}function VA(z,Q){return AZ(z.childLanes,Q)}function DB(z,Q,X){var Z=Q.pendingProps;if(mP(Q))Q.flags|=W1;var J=K5.current,Y=!1,H=(Q.flags&W1)!==h0;if(H||NA(J,z))Y=!0,Q.flags&=~W1;else if(z===null||z.memoizedState!==null)J=lF(J,hK);if(J=Pz(J),m7(Q,J),z===null){Rb(Q);var G=Q.memoizedState;if(G!==null){var U=G.dehydrated;if(U!==null)return EA(Q,U)}var{children:B,fallback:O}=Z;if(Y){var V=kA(Q,B,O,X),M=Q.child;return M.memoizedState=xG(X),Q.memoizedState=yG,V}else return dG(Q,B)}else{var C=z.memoizedState;if(C!==null){var S=C.dehydrated;if(S!==null)return TA(z,Q,H,Z,S,C,X)}if(Y){var{fallback:g,children:U0}=Z,T0=DA(z,Q,U0,g,X),k0=Q.child,Z1=z.child.memoizedState;return k0.memoizedState=Z1===null?xG(X):MA(Z1,X),k0.childLanes=VA(z,X),Q.memoizedState=yG,T0}else{var J1=Z.children,D=wA(z,Q,J1,X);return Q.memoizedState=null,D}}}function dG(z,Q,X){var Z=z.mode,J={mode:"visible",children:Q},Y=cG(J,Z);return Y.return=z,z.child=Y,Y}function kA(z,Q,X,Z){var{mode:J,child:Y}=z,H={mode:"hidden",children:Q},G,U;if((J&G1)===C0&&Y!==null){if(G=Y,G.childLanes=p,G.pendingProps=H,z.mode&I1)G.actualDuration=0,G.actualStartTime=-1,G.selfBaseDuration=0,G.treeBaseDuration=0;U=o7(X,J,Z,null)}else G=cG(H,J),U=o7(X,J,Z,null);return G.return=z,U.return=z,G.sibling=U,z.child=G,U}function cG(z,Q,X){return E3(z,Q,p,null)}function IB(z,Q){return E8(z,Q)}function wA(z,Q,X,Z){var J=z.child,Y=J.sibling,H=IB(J,{mode:"visible",children:X});if((Q.mode&G1)===C0)H.lanes=Z;if(H.return=Q,H.sibling=null,Y!==null){var G=Q.deletions;if(G===null)Q.deletions=[Y],Q.flags|=X8;else G.push(Y)}return Q.child=H,H}function DA(z,Q,X,Z,J){var Y=Q.mode,H=z.child,G=H.sibling,U={mode:"hidden",children:X},B;if((Y&G1)===C0&&Q.child!==H){var O=Q.child;if(B=O,B.childLanes=p,B.pendingProps=U,Q.mode&I1)B.actualDuration=0,B.actualStartTime=-1,B.selfBaseDuration=H.selfBaseDuration,B.treeBaseDuration=H.treeBaseDuration;Q.deletions=null}else B=IB(H,U),B.subtreeFlags=H.subtreeFlags&e5;var V;if(G!==null)V=E8(G,Z);else V=o7(Z,Y,J,null),V.flags|=k6;return V.return=Q,B.return=Q,B.sibling=V,Q.child=B,V}function cJ(z,Q,X,Z){if(Z!==null)Pb(Z);Wz(Q,z.child,null,X);var J=Q.pendingProps,Y=J.children,H=dG(Q,Y);return H.flags|=k6,Q.memoizedState=null,H}function IA(z,Q,X,Z,J){var Y=Q.mode,H={mode:"visible",children:X},G=cG(H,Y),U=o7(Z,Y,J,null);if(U.flags|=k6,G.return=Q,U.return=Q,G.sibling=U,Q.child=G,(Q.mode&G1)!==C0)Wz(Q,z.child,null,J);return U}function EA(z,Q,X){if((z.mode&G1)===C0)$("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."),z.lanes=RZ(d0);else if(bb(Q))z.lanes=RZ($8);else z.lanes=RZ(u4);return null}function TA(z,Q,X,Z,J,Y,H){if(!X){if(FF(),(Q.mode&G1)===C0)return cJ(z,Q,H,null);if(bb(J)){var G,U,B;{var O=gW(J);G=O.digest,U=O.message,B=O.stack}var V;if(U)V=Error(U);else V=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var M=IG(V,G,B);return cJ(z,Q,H,M)}var C=m4(H,z.childLanes);if(O5||C){var S=zY();if(S!==null){var g=dO(S,H);if(g!==a6&&g!==Y.retryLane){Y.retryLane=g;var U0=n1;E4(z,g),u6(S,z,g,U0)}}q$();var T0=IG(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 cJ(z,Q,H,T0)}else if(tq(J)){Q.flags|=W1,Q.child=z.child;var k0=bP.bind(null,z);return jW(J,k0),null}else{PF(Q,J,Y.treeContext);var Z1=Z.children,J1=dG(Q,Z1);return J1.flags|=t5,J1}}else if(Q.flags&n5){Q.flags&=~n5;var D=IG(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return cJ(z,Q,H,D)}else if(Q.memoizedState!==null)return Q.child=z.child,Q.flags|=W1,null;else{var{children:m,fallback:I}=Z,r=IA(z,Q,m,I,H),O0=Q.child;return O0.memoizedState=xG(H),Q.memoizedState=yG,r}}function EB(z,Q,X){z.lanes=t0(z.lanes,Q);var Z=z.alternate;if(Z!==null)Z.lanes=t0(Z.lanes,Q);fb(z.return,Q,X)}function fA(z,Q,X){var Z=Q;while(Z!==null){if(Z.tag===l){var J=Z.memoizedState;if(J!==null)EB(Z,X,z)}else if(Z.tag===y0)EB(Z,X,z);else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===z)return;while(Z.sibling===null){if(Z.return===null||Z.return===z)return;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}function CA(z){var Q=z,X=null;while(Q!==null){var Z=Q.alternate;if(Z!==null&&FJ(Z)===null)X=Q;Q=Q.sibling}return X}function SA(z){if(z!==void 0&&z!=="forwards"&&z!=="backwards"&&z!=="together"&&!gG[z])if(gG[z]=!0,typeof z==="string")switch(z.toLowerCase()){case"together":case"forwards":case"backwards":{$('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',z,z.toLowerCase());break}case"forward":case"backward":{$('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',z,z.toLowerCase());break}default:$('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',z);break}else $('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',z)}function hA(z,Q){if(z!==void 0&&!dJ[z]){if(z!=="collapsed"&&z!=="hidden")dJ[z]=!0,$('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',z);else if(Q!=="forwards"&&Q!=="backwards")dJ[z]=!0,$('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',z)}}function TB(z,Q){{var X=_1(z),Z=!X&&typeof r1(z)==="function";if(X||Z){var J=X?"array":"iterable";return $("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>",J,Q,J),!1}}return!0}function gA(z,Q){if((Q==="forwards"||Q==="backwards")&&z!==void 0&&z!==null&&z!==!1)if(_1(z)){for(var X=0;X<z.length;X++)if(!TB(z[X],X))return}else{var Z=r1(z);if(typeof Z==="function"){var J=Z.call(z);if(J){var Y=J.next(),H=0;for(;!Y.done;Y=J.next()){if(!TB(Y.value,H))return;H++}}}else $('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?',Q)}}function lG(z,Q,X,Z,J){var Y=z.memoizedState;if(Y===null)z.memoizedState={isBackwards:Q,rendering:null,renderingStartTime:0,last:Z,tail:X,tailMode:J};else Y.isBackwards=Q,Y.rendering=null,Y.renderingStartTime=0,Y.last=Z,Y.tail=X,Y.tailMode=J}function fB(z,Q,X){var Z=Q.pendingProps,J=Z.revealOrder,Y=Z.tail,H=Z.children;SA(J),hA(Y,J),gA(H,J),R4(z,Q,H,X);var G=K5.current,U=xb(G,$X);if(U)G=db(G,$X),Q.flags|=W1;else{var B=z!==null&&(z.flags&W1)!==h0;if(B)fA(Q,Q.child,X);G=Pz(G)}if(m7(Q,G),(Q.mode&G1)===C0)Q.memoizedState=null;else switch(J){case"forwards":{var O=CA(Q.child),V;if(O===null)V=Q.child,Q.child=null;else V=O.sibling,O.sibling=null;lG(Q,!1,V,O,Y);break}case"backwards":{var M=null,C=Q.child;Q.child=null;while(C!==null){var S=C.alternate;if(S!==null&&FJ(S)===null){Q.child=C;break}var g=C.sibling;C.sibling=M,M=C,C=g}lG(Q,!0,M,null,Y);break}case"together":{lG(Q,!1,null,null,void 0);break}default:Q.memoizedState=null}return Q.child}function jA(z,Q,X){ub(Q,Q.stateNode.containerInfo);var Z=Q.pendingProps;if(z===null)Q.child=Wz(Q,null,Z,X);else R4(z,Q,Z,X);return Q.child}var CB=!1;function uA(z,Q,X){var Z=Q.type,J=Z._context,Y=Q.pendingProps,H=Q.memoizedProps,G=Y.value;{if(!("value"in Y)){if(!CB)CB=!0,$("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")}var U=Q.type.propTypes;if(U)$5(U,Y,"prop","Context.Provider")}if(VK(Q,J,G),H!==null){var B=H.value;if(d4(B,G)){if(H.children===Y.children&&!nZ())return $7(z,Q,X)}else hF(Q,J,X)}var O=Y.children;return R4(z,Q,O,X),Q.child}var SB=!1;function mA(z,Q,X){var Z=Q.type;if(Z._context===void 0){if(Z!==Z.Consumer){if(!SB)SB=!0,$("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")}}else Z=Z._context;var J=Q.pendingProps,Y=J.children;if(typeof Y!=="function")$("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.");Az(Q,X);var H=w6(Z);WQ(Q);var G;return WX.current=Q,j4(!0),G=Y(H),j4(!1),e8(),Q.flags|=t8,R4(z,Q,G,X),Q.child}function RX(){O5=!0}function lJ(z,Q){if((Q.mode&G1)===C0){if(z!==null)z.alternate=null,Q.alternate=null,Q.flags|=k6}}function $7(z,Q,X){if(z!==null)Q.dependencies=z.dependencies;if($B(),CX(Q.lanes),!m4(X,Q.childLanes))return null;return CF(z,Q),Q.child}function yA(z,Q,X){{var Z=Q.return;if(Z===null)throw Error("Cannot swap the root fiber.");if(z.alternate=null,Q.alternate=null,X.index=Q.index,X.sibling=Q.sibling,X.return=Q.return,X.ref=Q.ref,Q===Z.child)Z.child=X;else{var J=Z.child;if(J===null)throw Error("Expected parent to have a child.");while(J.sibling!==Q)if(J=J.sibling,J===null)throw Error("Expected to find the previous sibling.");J.sibling=X}var Y=Z.deletions;if(Y===null)Z.deletions=[z],Z.flags|=X8;else Y.push(z);return X.flags|=k6,X}}function aG(z,Q){var X=z.lanes;if(m4(X,Q))return!0;return!1}function xA(z,Q,X){switch(Q.tag){case E:kB(Q);var Z=Q.stateNode;_z();break;case w:CK(Q);break;case A:{var J=Q.type;if(S5(J))sZ(Q);break}case N:ub(Q,Q.stateNode.containerInfo);break;case n:{var Y=Q.memoizedProps.value,H=Q.type._context;VK(Q,H,Y);break}case q0:{var G=m4(X,Q.childLanes);if(G)Q.flags|=K1;{var U=Q.stateNode;U.effectDuration=0,U.passiveEffectDuration=0}}break;case l:{var B=Q.memoizedState;if(B!==null){if(B.dehydrated!==null)return m7(Q,Pz(K5.current)),Q.flags|=W1,null;var O=Q.child,V=O.childLanes;if(m4(X,V))return DB(z,Q,X);else{m7(Q,Pz(K5.current));var M=$7(z,Q,X);if(M!==null)return M.sibling;else return null}}else m7(Q,Pz(K5.current));break}case y0:{var C=(z.flags&W1)!==h0,S=m4(X,Q.childLanes);if(C){if(S)return fB(z,Q,X);Q.flags|=W1}var g=Q.memoizedState;if(g!==null)g.rendering=null,g.tail=null,g.lastEffect=null;if(m7(Q,K5.current),S)break;else return null}case S0:case e:return Q.lanes=p,MB(z,Q,X)}return $7(z,Q,X)}function hB(z,Q,X){if(Q._debugNeedsRemount&&z!==null)return yA(z,Q,P$(Q.type,Q.key,Q.pendingProps,Q._debugOwner||null,Q.mode,Q.lanes));if(z!==null){var Z=z.memoizedProps,J=Q.pendingProps;if(Z!==J||nZ()||Q.type!==z.type)O5=!0;else{var Y=aG(z,X);if(!Y&&(Q.flags&W1)===h0)return O5=!1,xA(z,Q,X);if((z.flags&nY)!==h0)O5=!0;else O5=!1}}else if(O5=!1,t6()&&BF(Q)){var H=Q.index,G=vF();$K(Q,G,H)}switch(Q.lanes=p,Q.tag){case h:return PA(z,Q,Q.type,X);case F0:{var U=Q.elementType;return AA(z,Q,U,X)}case P:{var{type:B,pendingProps:O}=Q,V=Q.elementType===B?O:v5(B,O);return jG(z,Q,B,V,X)}case A:{var{type:M,pendingProps:C}=Q,S=Q.elementType===M?C:v5(M,C);return VB(z,Q,M,S,X)}case E:return _A(z,Q,X);case w:return WA(z,Q,X);case T:return FA(z,Q);case l:return DB(z,Q,X);case N:return jA(z,Q,X);case y:{var{type:g,pendingProps:U0}=Q,T0=Q.elementType===g?U0:v5(g,U0);return AB(z,Q,g,T0,X)}case o:return vA(z,Q,X);case s:return OA(z,Q,X);case q0:return LA(z,Q,X);case n:return uA(z,Q,X);case Z0:return mA(z,Q,X);case i:{var{type:k0,pendingProps:Z1}=Q,J1=v5(k0,Z1);if(Q.type!==Q.elementType){var D=k0.propTypes;if(D)$5(D,J1,"prop",B1(k0))}return J1=v5(k0.type,J1),RB(z,Q,k0,J1,X)}case J0:return PB(z,Q,Q.type,Q.pendingProps,X);case r0:{var{type:m,pendingProps:I}=Q,r=Q.elementType===m?I:v5(m,I);return RA(z,Q,m,r,X)}case y0:return fB(z,Q,X);case A0:break;case S0:return MB(z,Q,X)}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Dz(z){z.flags|=K1}function gB(z){z.flags|=V7,z.flags|=tY}var jB,pG,uB,mB;jB=function(z,Q,X,Z){var J=Q.child;while(J!==null){if(J.tag===w||J.tag===T)UW(z,J.stateNode);else if(J.tag===N);else if(J.child!==null){J.child.return=J,J=J.child;continue}if(J===Q)return;while(J.sibling===null){if(J.return===null||J.return===Q)return;J=J.return}J.sibling.return=J.return,J=J.sibling}},pG=function(z,Q){},uB=function(z,Q,X,Z,J){var Y=z.memoizedProps;if(Y===Z)return;var H=Q.stateNode,G=mb(),U=KW(H,X,Y,Z,J,G);if(Q.updateQueue=U,U)Dz(Q)},mB=function(z,Q,X,Z){if(X!==Z)Dz(Q)};function PX(z,Q){if(t6())return;switch(z.tailMode){case"hidden":{var X=z.tail,Z=null;while(X!==null){if(X.alternate!==null)Z=X;X=X.sibling}if(Z===null)z.tail=null;else Z.sibling=null;break}case"collapsed":{var J=z.tail,Y=null;while(J!==null){if(J.alternate!==null)Y=J;J=J.sibling}if(Y===null)if(!Q&&z.tail!==null)z.tail.sibling=null;else z.tail=null;else Y.sibling=null;break}}}function e6(z){var Q=z.alternate!==null&&z.alternate.child===z.child,X=p,Z=h0;if(!Q){if((z.mode&I1)!==C0){var{actualDuration:J,selfBaseDuration:Y,child:H}=z;while(H!==null)X=t0(X,t0(H.lanes,H.childLanes)),Z|=H.subtreeFlags,Z|=H.flags,J+=H.actualDuration,Y+=H.treeBaseDuration,H=H.sibling;z.actualDuration=J,z.treeBaseDuration=Y}else{var G=z.child;while(G!==null)X=t0(X,t0(G.lanes,G.childLanes)),Z|=G.subtreeFlags,Z|=G.flags,G.return=z,G=G.sibling}z.subtreeFlags|=Z}else{if((z.mode&I1)!==C0){var{selfBaseDuration:U,child:B}=z;while(B!==null)X=t0(X,t0(B.lanes,B.childLanes)),Z|=B.subtreeFlags&e5,Z|=B.flags&e5,U+=B.treeBaseDuration,B=B.sibling;z.treeBaseDuration=U}else{var O=z.child;while(O!==null)X=t0(X,t0(O.lanes,O.childLanes)),Z|=O.subtreeFlags&e5,Z|=O.flags&e5,O.return=z,O=O.sibling}z.subtreeFlags|=Z}return z.childLanes=X,Q}function dA(z,Q,X){if(wF()&&(Q.mode&G1)!==C0&&(Q.flags&W1)===h0)return LK(Q),_z(),Q.flags|=n5|LQ|A4,!1;var Z=ZJ(Q);if(X!==null&&X.dehydrated!==null)if(z===null){if(!Z)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(VF(Q),e6(Q),(Q.mode&I1)!==C0){var J=X!==null;if(J){var Y=Q.child;if(Y!==null)Q.treeBaseDuration-=Y.treeBaseDuration}}return!1}else{if(_z(),(Q.flags&W1)===h0)Q.memoizedState=null;if(Q.flags|=K1,e6(Q),(Q.mode&I1)!==C0){var H=X!==null;if(H){var G=Q.child;if(G!==null)Q.treeBaseDuration-=G.treeBaseDuration}}return!1}else return _K(),!0}function yB(z,Q,X){var Z=Q.pendingProps;switch(_b(Q),Q.tag){case h:case F0:case J0:case P:case y:case o:case s:case q0:case Z0:case i:return e6(Q),null;case A:{var J=Q.type;if(S5(J))tZ(Q);return e6(Q),null}case E:{var Y=Q.stateNode;if(Rz(Q),Bb(Q),lb(),Y.pendingContext)Y.context=Y.pendingContext,Y.pendingContext=null;if(z===null||z.child===null){var H=ZJ(Q);if(H)Dz(Q);else if(z!==null){var G=z.memoizedState;if(!G.isDehydrated||(Q.flags&n5)!==h0)Q.flags|=Z8,_K()}}return pG(z,Q),e6(Q),null}case w:{yb(Q);var U=fK(),B=Q.type;if(z!==null&&Q.stateNode!=null){if(uB(z,Q,B,Z,U),z.ref!==Q.ref)gB(Q)}else{if(!Z){if(Q.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 e6(Q),null}var O=mb(),V=ZJ(Q);if(V){if(MF(Q,U,O))Dz(Q)}else{var M=$W(B,Z,U,O,Q);if(jB(M,Q,!1,!1),Q.stateNode=M,qW(M,B,Z,U))Dz(Q)}if(Q.ref!==null)gB(Q)}return e6(Q),null}case T:{var C=Z;if(z&&Q.stateNode!=null){var S=z.memoizedProps;mB(z,Q,S,C)}else{if(typeof C!=="string"){if(Q.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=fK(),U0=mb(),T0=ZJ(Q);if(T0){if(NF(Q))Dz(Q)}else Q.stateNode=BW(C,g,U0,Q)}return e6(Q),null}case l:{Mz(Q);var k0=Q.memoizedState;if(z===null||z.memoizedState!==null&&z.memoizedState.dehydrated!==null){var Z1=dA(z,Q,k0);if(!Z1)if(Q.flags&A4)return Q;else return null}if((Q.flags&W1)!==h0){if(Q.lanes=X,(Q.mode&I1)!==C0)LG(Q);return Q}var J1=k0!==null,D=z!==null&&z.memoizedState!==null;if(J1!==D){if(J1){var m=Q.child;if(m.flags|=J8,(Q.mode&G1)!==C0){var I=z===null&&(Q.memoizedProps.unstable_avoidThisFallback!==!0||!m1);if(I||xb(K5.current,hK))iR();else q$()}}}var r=Q.updateQueue;if(r!==null)Q.flags|=K1;if(e6(Q),(Q.mode&I1)!==C0){if(J1){var O0=Q.child;if(O0!==null)Q.treeBaseDuration-=O0.treeBaseDuration}}return null}case N:if(Rz(Q),pG(z,Q),z===null)HF(Q.stateNode.containerInfo);return e6(Q),null;case n:var K0=Q.type._context;return Tb(K0,Q),e6(Q),null;case r0:{var u0=Q.type;if(S5(u0))tZ(Q);return e6(Q),null}case y0:{Mz(Q);var o0=Q.memoizedState;if(o0===null)return e6(Q),null;var T1=(Q.flags&W1)!==h0,O1=o0.rendering;if(O1===null)if(!T1){var R6=nR()&&(z===null||(z.flags&W1)===h0);if(!R6){var L1=Q.child;while(L1!==null){var _6=FJ(L1);if(_6!==null){T1=!0,Q.flags|=W1,PX(o0,!1);var v4=_6.updateQueue;if(v4!==null)Q.updateQueue=v4,Q.flags|=K1;return Q.subtreeFlags=h0,SF(Q,X),m7(Q,db(K5.current,$X)),Q.child}L1=L1.sibling}}if(o0.tail!==null&&c6()>G3())Q.flags|=W1,T1=!0,PX(o0,!1),Q.lanes=uU}else PX(o0,!1);else{if(!T1){var J4=FJ(O1);if(J4!==null){Q.flags|=W1,T1=!0;var a4=J4.updateQueue;if(a4!==null)Q.updateQueue=a4,Q.flags|=K1;if(PX(o0,!0),o0.tail===null&&o0.tailMode==="hidden"&&!O1.alternate&&!t6())return e6(Q),null}else if(c6()*2-o0.renderingStartTime>G3()&&X!==u4)Q.flags|=W1,T1=!0,PX(o0,!1),Q.lanes=uU}if(o0.isBackwards)O1.sibling=Q.child,Q.child=O1;else{var N4=o0.last;if(N4!==null)N4.sibling=O1;else Q.child=O1;o0.last=O1}}if(o0.tail!==null){var V4=o0.tail;o0.rendering=V4,o0.tail=V4.sibling,o0.renderingStartTime=c6(),V4.sibling=null;var O4=K5.current;if(T1)O4=db(O4,$X);else O4=Pz(O4);return m7(Q,O4),V4}return e6(Q),null}case A0:break;case S0:case e:{U$(Q);var v7=Q.memoizedState,gz=v7!==null;if(z!==null){var uX=z.memoizedState,d5=uX!==null;if(d5!==gz&&!t1)Q.flags|=J8}if(!gz||(Q.mode&G1)===C0)e6(Q);else if(m4(x5,u4)){if(e6(Q),Q.subtreeFlags&(k6|K1))Q.flags|=J8}return null}case Y0:return null;case N0:return null}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function cA(z,Q,X){switch(_b(Q),Q.tag){case A:{var Z=Q.type;if(S5(Z))tZ(Q);var J=Q.flags;if(J&A4){if(Q.flags=J&~A4|W1,(Q.mode&I1)!==C0)LG(Q);return Q}return null}case E:{var Y=Q.stateNode;Rz(Q),Bb(Q),lb();var H=Q.flags;if((H&A4)!==h0&&(H&W1)===h0)return Q.flags=H&~A4|W1,Q;return null}case w:return yb(Q),null;case l:{Mz(Q);var G=Q.memoizedState;if(G!==null&&G.dehydrated!==null){if(Q.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");_z()}var U=Q.flags;if(U&A4){if(Q.flags=U&~A4|W1,(Q.mode&I1)!==C0)LG(Q);return Q}return null}case y0:return Mz(Q),null;case N:return Rz(Q),null;case n:var B=Q.type._context;return Tb(B,Q),null;case S0:case e:return U$(Q),null;case Y0:return null;default:return null}}function xB(z,Q,X){switch(_b(Q),Q.tag){case A:{var Z=Q.type.childContextTypes;if(Z!==null&&Z!==void 0)tZ(Q);break}case E:{var J=Q.stateNode;Rz(Q),Bb(Q),lb();break}case w:{yb(Q);break}case N:Rz(Q);break;case l:Mz(Q);break;case y0:Mz(Q);break;case n:var Y=Q.type._context;Tb(Y,Q);break;case S0:case e:U$(Q);break}}var dB=null;dB=new Set;var aJ=!1,z4=!1,lA=typeof WeakSet==="function"?WeakSet:Set,R0=null,Iz=null,Ez=null;function aA(z){oY(null,function(){throw z}),iY()}var pA=function(z,Q){if(Q.props=z.memoizedProps,Q.state=z.memoizedState,z.mode&I1)try{m5(),Q.componentWillUnmount()}finally{u5(z)}else Q.componentWillUnmount()};function cB(z,Q){try{d7(f6,z)}catch(X){l1(z,Q,X)}}function oG(z,Q,X){try{pA(z,X)}catch(Z){l1(z,Q,Z)}}function oA(z,Q,X){try{X.componentDidMount()}catch(Z){l1(z,Q,Z)}}function lB(z,Q){try{oB(z)}catch(X){l1(z,Q,X)}}function Tz(z,Q){var X=z.ref;if(X!==null)if(typeof X==="function"){var Z;try{if(s1&&p1&&z.mode&I1)try{m5(),Z=X(null)}finally{u5(z)}else Z=X(null)}catch(J){l1(z,Q,J)}if(typeof Z==="function")$("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",n0(z))}else X.current=null}function pJ(z,Q,X){try{X()}catch(Z){l1(z,Q,Z)}}var aB=null,pB=!1;function iA(z,Q){aB=bW(z.containerInfo),R0=Q,rA();var X=pB;return pB=!1,aB=null,X}function rA(){while(R0!==null){var z=R0,Q=z.child;if((z.subtreeFlags&eY)!==h0&&Q!==null)Q.return=z,R0=Q;else nA()}}function nA(){while(R0!==null){var z=R0;K6(z);try{tA(z)}catch(X){l1(z,z.return,X)}d6();var Q=z.sibling;if(Q!==null){Q.return=z.return,R0=Q;return}R0=z.return}}function tA(z){var{alternate:Q,flags:X}=z;if((X&Z8)!==h0){switch(K6(z),z.tag){case P:case y:case J0:break;case A:{if(Q!==null){var{memoizedProps:Z,memoizedState:J}=Q,Y=z.stateNode;if(z.type===z.elementType&&!V8){if(Y.props!==z.memoizedProps)$("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.",n0(z)||"instance");if(Y.state!==z.memoizedState)$("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.",n0(z)||"instance")}var H=Y.getSnapshotBeforeUpdate(z.elementType===z.type?Z:v5(z.type,Z),J);{var G=dB;if(H===void 0&&!G.has(z.type))G.add(z.type),$("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",n0(z))}Y.__reactInternalSnapshotBeforeUpdate=H}break}case E:{{var U=z.stateNode;fW(U.containerInfo)}break}case w:case T:case N:case r0: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.")}d6()}}function L5(z,Q,X){var Z=Q.updateQueue,J=Z!==null?Z.lastEffect:null;if(J!==null){var Y=J.next,H=Y;do{if((H.tag&z)===z){var G=H.destroy;if(H.destroy=void 0,G!==void 0){if((z&s6)!==T4)BO(Q);else if((z&f6)!==T4)CU(Q);if((z&h5)!==T4)hX(!0);if(pJ(Q,X,G),(z&h5)!==T4)hX(!1);if((z&s6)!==T4)vO();else if((z&f6)!==T4)SU()}}H=H.next}while(H!==Y)}}function d7(z,Q){var X=Q.updateQueue,Z=X!==null?X.lastEffect:null;if(Z!==null){var J=Z.next,Y=J;do{if((Y.tag&z)===z){if((z&s6)!==T4)qO(Q);else if((z&f6)!==T4)OO(Q);var H=Y.create;if((z&h5)!==T4)hX(!0);if(Y.destroy=H(),(z&h5)!==T4)hX(!1);if((z&s6)!==T4)KO();else if((z&f6)!==T4)LO();{var G=Y.destroy;if(G!==void 0&&typeof G!=="function"){var U=void 0;if((Y.tag&f6)!==h0)U="useLayoutEffect";else if((Y.tag&h5)!==h0)U="useInsertionEffect";else U="useEffect";var B=void 0;if(G===null)B=" You returned null. If your effect does not require clean up, return undefined (or nothing).";else if(typeof G.then==="function")B=`
|
|
103
|
+
|
|
104
|
+
It looks like you wrote `+U+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
105
|
+
|
|
106
|
+
`+U+`(() => {
|
|
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 B=" You returned: "+G;$("%s must not return anything besides a function, which is used for clean-up.%s",U,B)}}}Y=Y.next}while(Y!==J)}}function sA(z,Q){if((Q.flags&K1)!==h0)switch(Q.tag){case q0:{var X=Q.stateNode.passiveEffectDuration,Z=Q.memoizedProps,J=Z.id,Y=Z.onPostCommit,H=bB(),G=Q.alternate===null?"mount":"update";if(HB())G="nested-update";if(typeof Y==="function")Y(J,G,X,H);var U=Q.return;z:while(U!==null){switch(U.tag){case E:var B=U.stateNode;B.passiveEffectDuration+=X;break z;case q0:var O=U.stateNode;O.passiveEffectDuration+=X;break z}U=U.return}break}}}function eA(z,Q,X,Z){if((X.flags&_Q)!==h0)switch(X.tag){case P:case y:case J0:{if(!z4)if(X.mode&I1)try{m5(),d7(f6|T6,X)}finally{u5(X)}else d7(f6|T6,X);break}case A:{var J=X.stateNode;if(X.flags&K1){if(!z4)if(Q===null){if(X.type===X.elementType&&!V8){if(J.props!==X.memoizedProps)$("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.",n0(X)||"instance");if(J.state!==X.memoizedState)$("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.",n0(X)||"instance")}if(X.mode&I1)try{m5(),J.componentDidMount()}finally{u5(X)}else J.componentDidMount()}else{var Y=X.elementType===X.type?Q.memoizedProps:v5(X.type,Q.memoizedProps),H=Q.memoizedState;if(X.type===X.elementType&&!V8){if(J.props!==X.memoizedProps)$("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.",n0(X)||"instance");if(J.state!==X.memoizedState)$("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.",n0(X)||"instance")}if(X.mode&I1)try{m5(),J.componentDidUpdate(Y,H,J.__reactInternalSnapshotBeforeUpdate)}finally{u5(X)}else J.componentDidUpdate(Y,H,J.__reactInternalSnapshotBeforeUpdate)}}var G=X.updateQueue;if(G!==null){if(X.type===X.elementType&&!V8){if(J.props!==X.memoizedProps)$("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.",n0(X)||"instance");if(J.state!==X.memoizedState)$("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.",n0(X)||"instance")}TK(X,G,J)}break}case E:{var U=X.updateQueue;if(U!==null){var B=null;if(X.child!==null)switch(X.child.tag){case w:B=Xb(X.child.stateNode);break;case A:B=X.child.stateNode;break}TK(X,U,B)}break}case w:{var O=X.stateNode;if(Q===null&&X.flags&K1){var{type:V,memoizedProps:M}=X;WW(O,V,M)}break}case T:break;case N:break;case q0:{{var C=X.memoizedProps,S=C.onCommit,g=C.onRender,U0=X.stateNode.effectDuration,T0=bB(),k0=Q===null?"mount":"update";if(HB())k0="nested-update";if(typeof g==="function")g(X.memoizedProps.id,k0,X.actualDuration,X.treeBaseDuration,X.actualStartTime,T0);{if(typeof S==="function")S(X.memoizedProps.id,k0,U0,T0);QP(X);var Z1=X.return;z:while(Z1!==null){switch(Z1.tag){case E:var J1=Z1.stateNode;J1.effectDuration+=U0;break z;case q0:var D=Z1.stateNode;D.effectDuration+=U0;break z}Z1=Z1.return}}}break}case l:{bR(z,X);break}case y0:case r0:case A0:case S0:case e: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.")}if(!z4){if(X.flags&V7)oB(X)}}function zR(z){switch(z.tag){case P:case y:case J0:{if(z.mode&I1)try{m5(),cB(z,z.return)}finally{u5(z)}else cB(z,z.return);break}case A:{var Q=z.stateNode;if(typeof Q.componentDidMount==="function")oA(z,z.return,Q);lB(z,z.return);break}case w:{lB(z,z.return);break}}}function QR(z,Q){var X=null;{var Z=z;while(!0){if(Z.tag===w){if(X===null){X=Z;try{var J=Z.stateNode;if(Q)DW(J);else EW(Z.stateNode,Z.memoizedProps)}catch(H){l1(z,z.return,H)}}}else if(Z.tag===T){if(X===null)try{var Y=Z.stateNode;if(Q)IW(Y);else TW(Y,Z.memoizedProps)}catch(H){l1(z,z.return,H)}}else if((Z.tag===S0||Z.tag===e)&&Z.memoizedState!==null&&Z!==z);else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===z)return;while(Z.sibling===null){if(Z.return===null||Z.return===z)return;if(X===Z)X=null;Z=Z.return}if(X===Z)X=null;Z.sibling.return=Z.return,Z=Z.sibling}}}function oB(z){var Q=z.ref;if(Q!==null){var X=z.stateNode,Z;switch(z.tag){case w:Z=Xb(X);break;default:Z=X}if(typeof Q==="function"){var J;if(z.mode&I1)try{m5(),J=Q(Z)}finally{u5(z)}else J=Q(Z);if(typeof J==="function")$("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",n0(z))}else{if(!Q.hasOwnProperty("current"))$("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",n0(z));Q.current=Z}}}function XR(z){var Q=z.alternate;if(Q!==null)Q.return=null;z.return=null}function iB(z){var Q=z.alternate;if(Q!==null)z.alternate=null,iB(Q);{if(z.child=null,z.deletions=null,z.sibling=null,z.tag===w){var X=z.stateNode;if(X!==null)$F(X)}z.stateNode=null,z._debugOwner=null,z.return=null,z.dependencies=null,z.memoizedProps=null,z.memoizedState=null,z.pendingProps=null,z.stateNode=null,z.updateQueue=null}}function ZR(z){var Q=z.return;while(Q!==null){if(rB(Q))return Q;Q=Q.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function rB(z){return z.tag===w||z.tag===E||z.tag===N}function nB(z){var Q=z;z:while(!0){while(Q.sibling===null){if(Q.return===null||rB(Q.return))return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling;while(Q.tag!==w&&Q.tag!==T&&Q.tag!==Q1){if(Q.flags&k6)continue z;if(Q.child===null||Q.tag===N)continue z;else Q.child.return=Q,Q=Q.child}if(!(Q.flags&k6))return Q.stateNode}}function JR(z){var Q=ZR(z);switch(Q.tag){case w:{var X=Q.stateNode;if(Q.flags&OQ)nq(X),Q.flags&=~OQ;var Z=nB(z);rG(z,Z,X);break}case E:case N:{var J=Q.stateNode.containerInfo,Y=nB(z);iG(z,Y,J);break}default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function iG(z,Q,X){var Z=z.tag,J=Z===w||Z===T;if(J){var Y=z.stateNode;if(Q)NW(X,Y,Q);else PW(X,Y)}else if(Z===N);else{var H=z.child;if(H!==null){iG(H,Q,X);var G=H.sibling;while(G!==null)iG(G,Q,X),G=G.sibling}}}function rG(z,Q,X){var Z=z.tag,J=Z===w||Z===T;if(J){var Y=z.stateNode;if(Q)MW(X,Y,Q);else RW(X,Y)}else if(Z===N);else{var H=z.child;if(H!==null){rG(H,Q,X);var G=H.sibling;while(G!==null)rG(G,Q,X),G=G.sibling}}}var Q4=null,_5=!1;function YR(z,Q,X){{var Z=Q;z:while(Z!==null){switch(Z.tag){case w:{Q4=Z.stateNode,_5=!1;break z}case E:{Q4=Z.stateNode.containerInfo,_5=!0;break z}case N:{Q4=Z.stateNode.containerInfo,_5=!0;break z}}Z=Z.return}if(Q4===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");tB(z,Q,X),Q4=null,_5=!1}XR(X)}function c7(z,Q,X){var Z=X.child;while(Z!==null)tB(z,Q,Z),Z=Z.sibling}function tB(z,Q,X){switch(bO(X),X.tag){case w:if(!z4)Tz(X,Q);case T:{{var Z=Q4,J=_5;if(Q4=null,c7(z,Q,X),Q4=Z,_5=J,Q4!==null)if(_5)kW(Q4,X.stateNode);else VW(Q4,X.stateNode)}return}case Q1:{if(Q4!==null)if(_5)wW(Q4,X.stateNode);else Hb(Q4,X.stateNode);return}case N:{{var Y=Q4,H=_5;Q4=X.stateNode.containerInfo,_5=!0,c7(z,Q,X),Q4=Y,_5=H}return}case P:case y:case i:case J0:{if(!z4){var G=X.updateQueue;if(G!==null){var U=G.lastEffect;if(U!==null){var B=U.next,O=B;do{var V=O,M=V.destroy,C=V.tag;if(M!==void 0){if((C&h5)!==T4)pJ(X,Q,M);else if((C&f6)!==T4){if(CU(X),X.mode&I1)m5(),pJ(X,Q,M),u5(X);else pJ(X,Q,M);SU()}}O=O.next}while(O!==B)}}}c7(z,Q,X);return}case A:{if(!z4){Tz(X,Q);var S=X.stateNode;if(typeof S.componentWillUnmount==="function")oG(X,Q,S)}c7(z,Q,X);return}case A0:{c7(z,Q,X);return}case S0:{if(X.mode&G1){var g=z4;z4=g||X.memoizedState!==null,c7(z,Q,X),z4=g}else c7(z,Q,X);break}default:{c7(z,Q,X);return}}}function HR(z){var Q=z.memoizedState}function bR(z,Q){var X=Q.memoizedState;if(X===null){var Z=Q.alternate;if(Z!==null){var J=Z.memoizedState;if(J!==null){var Y=J.dehydrated;if(Y!==null)pW(Y)}}}}function sB(z){var Q=z.updateQueue;if(Q!==null){z.updateQueue=null;var X=z.stateNode;if(X===null)X=z.stateNode=new lA;Q.forEach(function(Z){var J=GP.bind(null,z,Z);if(!X.has(Z)){if(X.add(Z),b5)if(Iz!==null&&Ez!==null)SX(Ez,Iz);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");Z.then(J,J)}})}}function GR(z,Q,X){Iz=X,Ez=z,K6(Q),eB(Q,z),K6(Q),Iz=null,Ez=null}function W5(z,Q,X){var Z=Q.deletions;if(Z!==null)for(var J=0;J<Z.length;J++){var Y=Z[J];try{YR(z,Q,Y)}catch(U){l1(Y,Q,U)}}var H=eX();if(Q.subtreeFlags&zH){var G=Q.child;while(G!==null)K6(G),eB(G,z),G=G.sibling}K6(H)}function eB(z,Q,X){var{alternate:Z,flags:J}=z;switch(z.tag){case P:case y:case i:case J0:{if(W5(Q,z),y5(z),J&K1){try{L5(h5|T6,z,z.return),d7(h5|T6,z)}catch(u0){l1(z,z.return,u0)}if(z.mode&I1){try{m5(),L5(f6|T6,z,z.return)}catch(u0){l1(z,z.return,u0)}u5(z)}else try{L5(f6|T6,z,z.return)}catch(u0){l1(z,z.return,u0)}}return}case A:{if(W5(Q,z),y5(z),J&V7){if(Z!==null)Tz(Z,Z.return)}return}case w:{if(W5(Q,z),y5(z),J&V7){if(Z!==null)Tz(Z,Z.return)}{if(z.flags&OQ){var Y=z.stateNode;try{nq(Y)}catch(u0){l1(z,z.return,u0)}}if(J&K1){var H=z.stateNode;if(H!=null){var G=z.memoizedProps,U=Z!==null?Z.memoizedProps:G,B=z.type,O=z.updateQueue;if(z.updateQueue=null,O!==null)try{FW(H,O,B,U,G,z)}catch(u0){l1(z,z.return,u0)}}}}return}case T:{if(W5(Q,z),y5(z),J&K1){if(z.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var{stateNode:V,memoizedProps:M}=z,C=Z!==null?Z.memoizedProps:M;try{AW(V,C,M)}catch(u0){l1(z,z.return,u0)}}return}case E:{if(W5(Q,z),y5(z),J&K1){if(Z!==null){var S=Z.memoizedState;if(S.isDehydrated)try{aW(Q.containerInfo)}catch(u0){l1(z,z.return,u0)}}}return}case N:{W5(Q,z),y5(z);return}case l:{W5(Q,z),y5(z);var g=z.child;if(g.flags&J8){var{stateNode:U0,memoizedState:T0}=g,k0=T0!==null;if(U0.isHidden=k0,k0){var Z1=g.alternate!==null&&g.alternate.memoizedState!==null;if(!Z1)oR()}}if(J&K1){try{HR(z)}catch(u0){l1(z,z.return,u0)}sB(z)}return}case S0:{var J1=Z!==null&&Z.memoizedState!==null;if(z.mode&G1){var D=z4;z4=D||J1,W5(Q,z),z4=D}else W5(Q,z);if(y5(z),J&J8){var{stateNode:m,memoizedState:I}=z,r=I!==null,O0=z;if(m.isHidden=r,r){if(!J1){if((O0.mode&G1)!==C0){R0=O0;var K0=O0.child;while(K0!==null)R0=K0,UR(K0),K0=K0.sibling}}}QR(O0,r)}return}case y0:{if(W5(Q,z),y5(z),J&K1)sB(z);return}case A0:return;default:{W5(Q,z),y5(z);return}}}function y5(z){var Q=z.flags;if(Q&k6){try{JR(z)}catch(X){l1(z,z.return,X)}z.flags&=~k6}if(Q&t5)z.flags&=~t5}function $R(z,Q,X){Iz=X,Ez=Q,R0=z,z3(z,Q,X),Iz=null,Ez=null}function z3(z,Q,X){var Z=(z.mode&G1)!==C0;while(R0!==null){var J=R0,Y=J.child;if(J.tag===S0&&Z){var H=J.memoizedState!==null,G=H||aJ;if(G){nG(z,Q,X);continue}else{var U=J.alternate,B=U!==null&&U.memoizedState!==null,O=B||z4,V=aJ,M=z4;if(aJ=G,z4=O,z4&&!M)R0=J,qR(J);var C=Y;while(C!==null)R0=C,z3(C,Q,X),C=C.sibling;R0=J,aJ=V,z4=M,nG(z,Q,X);continue}}if((J.subtreeFlags&_Q)!==h0&&Y!==null)Y.return=J,R0=Y;else nG(z,Q,X)}}function nG(z,Q,X){while(R0!==null){var Z=R0;if((Z.flags&_Q)!==h0){var J=Z.alternate;K6(Z);try{eA(Q,J,Z,X)}catch(H){l1(Z,Z.return,H)}d6()}if(Z===z){R0=null;return}var Y=Z.sibling;if(Y!==null){Y.return=Z.return,R0=Y;return}R0=Z.return}}function UR(z){while(R0!==null){var Q=R0,X=Q.child;switch(Q.tag){case P:case y:case i:case J0:{if(Q.mode&I1)try{m5(),L5(f6,Q,Q.return)}finally{u5(Q)}else L5(f6,Q,Q.return);break}case A:{Tz(Q,Q.return);var Z=Q.stateNode;if(typeof Z.componentWillUnmount==="function")oG(Q,Q.return,Z);break}case w:{Tz(Q,Q.return);break}case S0:{var J=Q.memoizedState!==null;if(J){Q3(z);continue}break}}if(X!==null)X.return=Q,R0=X;else Q3(z)}}function Q3(z){while(R0!==null){var Q=R0;if(Q===z){R0=null;return}var X=Q.sibling;if(X!==null){X.return=Q.return,R0=X;return}R0=Q.return}}function qR(z){while(R0!==null){var Q=R0,X=Q.child;if(Q.tag===S0){var Z=Q.memoizedState!==null;if(Z){X3(z);continue}}if(X!==null)X.return=Q,R0=X;else X3(z)}}function X3(z){while(R0!==null){var Q=R0;K6(Q);try{zR(Q)}catch(Z){l1(Q,Q.return,Z)}if(d6(),Q===z){R0=null;return}var X=Q.sibling;if(X!==null){X.return=Q.return,R0=X;return}R0=Q.return}}function KR(z,Q,X,Z){R0=Q,BR(Q,z,X,Z)}function BR(z,Q,X,Z){while(R0!==null){var J=R0,Y=J.child;if((J.subtreeFlags&s8)!==h0&&Y!==null)Y.return=J,R0=Y;else vR(z,Q,X,Z)}}function vR(z,Q,X,Z){while(R0!==null){var J=R0;if((J.flags&H5)!==h0){K6(J);try{OR(Q,J,X,Z)}catch(H){l1(J,J.return,H)}d6()}if(J===z){R0=null;return}var Y=J.sibling;if(Y!==null){Y.return=J.return,R0=Y;return}R0=J.return}}function OR(z,Q,X,Z){switch(Q.tag){case P:case y:case J0:{if(Q.mode&I1){OG();try{d7(s6|T6,Q)}finally{vG(Q)}}else d7(s6|T6,Q);break}}}function LR(z){R0=z,_R()}function _R(){while(R0!==null){var z=R0,Q=z.child;if((R0.flags&X8)!==h0){var X=z.deletions;if(X!==null){for(var Z=0;Z<X.length;Z++){var J=X[Z];R0=J,AR(J,z)}{var Y=z.alternate;if(Y!==null){var H=Y.child;if(H!==null){Y.child=null;do{var G=H.sibling;H.sibling=null,H=G}while(H!==null)}}}R0=z}}if((z.subtreeFlags&s8)!==h0&&Q!==null)Q.return=z,R0=Q;else WR()}}function WR(){while(R0!==null){var z=R0;if((z.flags&H5)!==h0)K6(z),FR(z),d6();var Q=z.sibling;if(Q!==null){Q.return=z.return,R0=Q;return}R0=z.return}}function FR(z){switch(z.tag){case P:case y:case J0:{if(z.mode&I1)OG(),L5(s6|T6,z,z.return),vG(z);else L5(s6|T6,z,z.return);break}}}function AR(z,Q){while(R0!==null){var X=R0;K6(X),PR(X,Q),d6();var Z=X.child;if(Z!==null)Z.return=X,R0=Z;else RR(z)}}function RR(z){while(R0!==null){var Q=R0,X=Q.sibling,Z=Q.return;if(iB(Q),Q===z){R0=null;return}if(X!==null){X.return=Z,R0=X;return}R0=Z}}function PR(z,Q){switch(z.tag){case P:case y:case J0:{if(z.mode&I1)OG(),L5(s6,z,Q),vG(z);else L5(s6,z,Q);break}}}function MR(z){switch(z.tag){case P:case y:case J0:{try{d7(f6|T6,z)}catch(X){l1(z,z.return,X)}break}case A:{var Q=z.stateNode;try{Q.componentDidMount()}catch(X){l1(z,z.return,X)}break}}}function NR(z){switch(z.tag){case P:case y:case J0:{try{d7(s6|T6,z)}catch(Q){l1(z,z.return,Q)}break}}}function VR(z){switch(z.tag){case P:case y:case J0:{try{L5(f6|T6,z,z.return)}catch(X){l1(z,z.return,X)}break}case A:{var Q=z.stateNode;if(typeof Q.componentWillUnmount==="function")oG(z,z.return,Q);break}}}function kR(z){switch(z.tag){case P:case y:case J0:try{L5(s6|T6,z,z.return)}catch(Q){l1(z,z.return,Q)}}}var wR=0,DR=1,IR=2,ER=3,TR=4;if(typeof Symbol==="function"&&Symbol.for){var MX=Symbol.for;wR=MX("selector.component"),DR=MX("selector.has_pseudo_class"),IR=MX("selector.role"),ER=MX("selector.test_id"),TR=MX("selector.text")}var fR=[];function CR(){fR.forEach(function(z){return z()})}var SR=b.ReactCurrentActQueue;function hR(z){{var Q=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,X=typeof jest<"u";return X&&Q!==!1}}function Z3(){{var z=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;if(!z&&SR.current!==null)$("The current testing environment is not configured to support act(...)");return z}}var gR=Math.ceil,tG=b.ReactCurrentDispatcher,sG=b.ReactCurrentOwner,X4=b.ReactCurrentBatchConfig,F5=b.ReactCurrentActQueue,h6=0,J3=1,Z4=2,z5=4,U7=0,NX=1,k8=2,oJ=3,VX=4,Y3=5,eG=6,$1=h6,P4=null,B6=null,g6=p,x5=p,z$=C7(p),j6=U7,kX=null,Q$=p,iJ=p,wX=p,rJ=p,DX=null,f4=null,X$=0,H3=500,b3=1/0,jR=500,q7=null;function IX(){b3=c6()+jR}function G3(){return b3}var nJ=!1,Z$=null,fz=null,w8=!1,l7=null,EX=p,J$=[],Y$=null,uR=50,TX=0,H$=null,b$=!1,tJ=!1,mR=50,Cz=0,sJ=null,fX=n1,eJ=p,$3=!1;function zY(){return P4}function M4(){if(($1&(Z4|z5))!==h6)return c6();if(fX!==n1)return fX;return fX=c6(),fX}function a7(z){var Q=z.mode;if((Q&G1)===C0)return d0;else if(($1&Z4)!==h6&&g6!==p)return NQ(g6);var X=EF()!==IF;if(X){if(X4.transition!==null){var Z=X4.transition;if(!Z._updatedFibers)Z._updatedFibers=new Set;Z._updatedFibers.add(z)}if(eJ===a6)eJ=dU();return eJ}var J=G5();if(J!==a6)return J;var Y=vW();return Y}function yR(z){var Q=z.mode;if((Q&G1)===C0)return d0;return uO()}function u6(z,Q,X,Z){if(UP(),$3)$("useInsertionEffect must not schedule updates.");if(b$)tJ=!0;if(VQ(z,X,Z),($1&Z4)!==p&&z===P4)BP(Q);else{if(b5)aU(z,Q,X);if(vP(Q),z===P4){if(($1&Z4)===h6)wX=t0(wX,X);if(j6===VX)p7(z,g6)}if(C4(z,Z),X===d0&&$1===h6&&(Q.mode&G1)===C0&&!F5.isBatchingLegacy)IX(),GK()}}function xR(z,Q,X){var Z=z.current;Z.lanes=Q,VQ(z,Q,X),C4(z,X)}function dR(z){return($1&Z4)!==h6}function C4(z,Q){var X=z.callbackNode;fO(z,Q);var Z=WZ(z,z===P4?g6:p);if(Z===p){if(X!==null)V3(X);z.callbackNode=null,z.callbackPriority=a6;return}var J=q8(Z),Y=z.callbackPriority;if(Y===J&&!(F5.current!==null&&X!==v$)){if(X==null&&Y!==d0)$("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}if(X!=null)V3(X);var H;if(J===d0){if(z.tag===S7){if(F5.isBatchingLegacy!==null)F5.didScheduleLegacyUpdate=!0;KF(K3.bind(null,z))}else bK(K3.bind(null,z));if(F5.current!==null)F5.current.push(h7);else LW(function(){if(($1&(Z4|z5))===h6)h7()});H=null}else{var G;switch(iU(Z)){case y4:G=vZ;break;case Q7:G=QH;break;case X7:G=b8;break;case PZ:G=XH;break;default:G=b8;break}H=O$(G,U3.bind(null,z))}z.callbackPriority=J,z.callbackNode=H}function U3(z,Q){if(QA(),fX=n1,eJ=p,($1&(Z4|z5))!==h6)throw Error("Should not already be working.");var X=z.callbackNode,Z=B7();if(Z){if(z.callbackNode!==X)return null}var J=WZ(z,z===P4?g6:p);if(J===p)return null;var Y=!FZ(z,J)&&!jO(z,J)&&!Q,H=Y?sR(z,J):XY(z,J);if(H!==U7){if(H===k8){var G=NH(z);if(G!==p)J=G,H=G$(z,G)}if(H===NX){var U=kX;throw D8(z,p),p7(z,J),C4(z,c6()),U}if(H===eG)p7(z,J);else{var B=!FZ(z,J),O=z.current.alternate;if(B&&!lR(O)){if(H=XY(z,J),H===k8){var V=NH(z);if(V!==p)J=V,H=G$(z,V)}if(H===NX){var M=kX;throw D8(z,p),p7(z,J),C4(z,c6()),M}}z.finishedWork=O,z.finishedLanes=J,cR(z,H,J)}}if(C4(z,c6()),z.callbackNode===X)return U3.bind(null,z);return null}function G$(z,Q){var X=DX;if(MZ(z)){var Z=D8(z,Q);Z.flags|=n5,YF(z.containerInfo)}var J=XY(z,Q);if(J!==k8){var Y=f4;if(f4=X,Y!==null)q3(Y)}return J}function q3(z){if(f4===null)f4=z;else f4.push.apply(f4,z)}function cR(z,Q,X){switch(Q){case U7:case NX:throw Error("Root did not complete. This is a bug in React.");case k8:{I8(z,f4,q7);break}case oJ:{if(p7(z,X),yU(X)&&!k3()){var Z=X$+H3-c6();if(Z>10){var J=WZ(z,p);if(J!==p)break;var Y=z.suspendedLanes;if(!Zz(Y,X)){var H=M4();lU(z,Y);break}z.timeoutHandle=Jb(I8.bind(null,z,f4,q7),Z);break}}I8(z,f4,q7);break}case VX:{if(p7(z,X),gO(X))break;if(!k3()){var G=EO(z,X),U=G,B=c6()-U,O=$P(B)-B;if(O>10){z.timeoutHandle=Jb(I8.bind(null,z,f4,q7),O);break}}I8(z,f4,q7);break}case Y3:{I8(z,f4,q7);break}default:throw Error("Unknown root exit status.")}}function lR(z){var Q=z;while(!0){if(Q.flags&KZ){var X=Q.updateQueue;if(X!==null){var Z=X.stores;if(Z!==null)for(var J=0;J<Z.length;J++){var Y=Z[J],H=Y.getSnapshot,G=Y.value;try{if(!d4(H(),G))return!1}catch(B){return!1}}}}var U=Q.child;if(Q.subtreeFlags&KZ&&U!==null){U.return=Q,Q=U;continue}if(Q===z)return!0;while(Q.sibling===null){if(Q.return===null||Q.return===z)return!0;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return!0}function p7(z,Q){Q=AZ(Q,rJ),Q=AZ(Q,wX),yO(z,Q)}function K3(z){if(XA(),($1&(Z4|z5))!==h6)throw Error("Should not already be working.");B7();var Q=WZ(z,p);if(!m4(Q,d0))return C4(z,c6()),null;var X=XY(z,Q);if(z.tag!==S7&&X===k8){var Z=NH(z);if(Z!==p)Q=Z,X=G$(z,Z)}if(X===NX){var J=kX;throw D8(z,p),p7(z,Q),C4(z,c6()),J}if(X===eG)throw Error("Root did not complete. This is a bug in React.");var Y=z.current.alternate;return z.finishedWork=Y,z.finishedLanes=Q,I8(z,f4,q7),C4(z,c6()),null}function aR(z,Q){if(Q!==p){if(DH(z,t0(Q,d0)),C4(z,c6()),($1&(Z4|z5))===h6)IX(),h7()}}function $$(z,Q){var X=$1;$1|=J3;try{return z(Q)}finally{if($1=X,$1===h6&&!F5.isBatchingLegacy)IX(),GK()}}function pR(z,Q,X,Z,J){var Y=G5(),H=X4.transition;try{return X4.transition=null,p6(y4),z(Q,X,Z,J)}finally{if(p6(Y),X4.transition=H,$1===h6)IX()}}function K7(z){if(l7!==null&&l7.tag===S7&&($1&(Z4|z5))===h6)B7();var Q=$1;$1|=J3;var X=X4.transition,Z=G5();try{if(X4.transition=null,p6(y4),z)return z();else return}finally{if(p6(Z),X4.transition=X,$1=Q,($1&(Z4|z5))===h6)h7()}}function B3(){return($1&(Z4|z5))!==h6}function QY(z,Q){K4(z$,x5,z),x5=t0(x5,Q),Q$=t0(Q$,Q)}function U$(z){x5=z$.current,q4(z$,z)}function D8(z,Q){z.finishedWork=null,z.finishedLanes=p;var X=z.timeoutHandle;if(X!==Yb)z.timeoutHandle=Yb,OW(X);if(B6!==null){var Z=B6.return;while(Z!==null){var J=Z.alternate;xB(J,Z),Z=Z.return}}P4=z;var Y=E8(z.current,null);return B6=Y,g6=x5=Q$=Q,j6=U7,kX=null,iJ=p,wX=p,rJ=p,DX=null,f4=null,jF(),q5.discardPendingWarnings(),Y}function v3(z,Q){do{var X=B6;try{if($J(),jK(),d6(),sG.current=null,X===null||X.return===null){j6=NX,kX=Q,B6=null;return}if(s1&&X.mode&I1)yJ(X,!0);if(U6)if(e8(),Q!==null&&typeof Q==="object"&&typeof Q.then==="function"){var Z=Q;WO(X,Z,g6)}else _O(X,Q,g6);qA(z,X.return,X,Q,g6),W3(X)}catch(J){if(Q=J,B6===X&&X!==null)X=X.return,B6=X;else X=B6;continue}return}while(!0)}function O3(){var z=tG.current;if(tG.current=hJ,z===null)return hJ;else return z}function L3(z){tG.current=z}function oR(){X$=c6()}function CX(z){iJ=t0(z,iJ)}function iR(){if(j6===U7)j6=oJ}function q$(){if(j6===U7||j6===oJ||j6===k8)j6=VX;if(P4!==null&&(VH(iJ)||VH(wX)))p7(P4,g6)}function rR(z){if(j6!==VX)j6=k8;if(DX===null)DX=[z];else DX.push(z)}function nR(){return j6===U7}function XY(z,Q){var X=$1;$1|=Z4;var Z=O3();if(P4!==z||g6!==Q){if(b5){var J=z.memoizedUpdaters;if(J.size>0)SX(z,g6),J.clear();pU(z,Q)}q7=oU(),D8(z,Q)}hU(Q);do try{tR();break}catch(Y){v3(z,Y)}while(!0);if($J(),$1=X,L3(Z),B6!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return gU(),P4=null,g6=p,j6}function tR(){while(B6!==null)_3(B6)}function sR(z,Q){var X=$1;$1|=Z4;var Z=O3();if(P4!==z||g6!==Q){if(b5){var J=z.memoizedUpdaters;if(J.size>0)SX(z,g6),J.clear();pU(z,Q)}q7=oU(),IX(),D8(z,Q)}hU(Q);do try{eR();break}catch(Y){v3(z,Y)}while(!0);if($J(),L3(Z),$1=X,B6!==null)return MO(),U7;else return gU(),P4=null,g6=p,j6}function eR(){while(B6!==null&&!tv())_3(B6)}function _3(z){var Q=z.alternate;K6(z);var X;if((z.mode&I1)!==C0)BG(z),X=K$(Q,z,x5),yJ(z,!0);else X=K$(Q,z,x5);if(d6(),z.memoizedProps=z.pendingProps,X===null)W3(z);else B6=X;sG.current=null}function W3(z){var Q=z;do{var{alternate:X,return:Z}=Q;if((Q.flags&LQ)===h0){K6(Q);var J=void 0;if((Q.mode&I1)===C0)J=yB(X,Q,x5);else BG(Q),J=yB(X,Q,x5),yJ(Q,!1);if(d6(),J!==null){B6=J;return}}else{var Y=cA(X,Q);if(Y!==null){Y.flags&=av,B6=Y;return}if((Q.mode&I1)!==C0){yJ(Q,!1);var{actualDuration:H,child:G}=Q;while(G!==null)H+=G.actualDuration,G=G.sibling;Q.actualDuration=H}if(Z!==null)Z.flags|=LQ,Z.subtreeFlags=h0,Z.deletions=null;else{j6=eG,B6=null;return}}var U=Q.sibling;if(U!==null){B6=U;return}Q=Z,B6=Q}while(Q!==null);if(j6===U7)j6=Y3}function I8(z,Q,X){var Z=G5(),J=X4.transition;try{X4.transition=null,p6(y4),zP(z,Q,X,Z)}finally{X4.transition=J,p6(Z)}return null}function zP(z,Q,X,Z){do B7();while(l7!==null);if(qP(),($1&(Z4|z5))!==h6)throw Error("Should not already be working.");var{finishedWork:J,finishedLanes:Y}=z;if(UO(Y),J===null)return fU(),null;else if(Y===p)$("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(z.finishedWork=null,z.finishedLanes=p,J===z.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");z.callbackNode=null,z.callbackPriority=a6;var H=t0(J.lanes,J.childLanes);if(xO(z,H),z===P4)P4=null,B6=null,g6=p;if((J.subtreeFlags&s8)!==h0||(J.flags&s8)!==h0){if(!w8)w8=!0,Y$=X,O$(b8,function(){return B7(),null})}var G=(J.subtreeFlags&(eY|zH|_Q|s8))!==h0,U=(J.flags&(eY|zH|_Q|s8))!==h0;if(G||U){var B=X4.transition;X4.transition=null;var O=G5();p6(y4);var V=$1;$1|=z5,sG.current=null;var M=iA(z,J);GB(),GR(z,J,Y),GW(z.containerInfo),z.current=J,FO(Y),$R(J,z,Y),AO(),sv(),$1=V,p6(O),X4.transition=B}else z.current=J,GB();var C=w8;if(w8)w8=!1,l7=z,EX=Y;else Cz=0,sJ=null;if(H=z.pendingLanes,H===p)fz=null;if(!C)P3(z.current,!1);if(YO(J.stateNode,Z),b5)z.memoizedUpdaters.clear();if(CR(),C4(z,c6()),Q!==null){var S=z.onRecoverableError;for(var g=0;g<Q.length;g++){var U0=Q[g],T0=U0.stack,k0=U0.digest;S(U0.value,{componentStack:T0,digest:k0})}}if(nJ){nJ=!1;var Z1=Z$;throw Z$=null,Z1}if(m4(EX,d0)&&z.tag!==S7)B7();if(H=z.pendingLanes,m4(H,d0))if(zA(),z===H$)TX++;else TX=0,H$=z;else TX=0;return h7(),fU(),null}function B7(){if(l7!==null){var z=iU(EX),Q=aO(X7,z),X=X4.transition,Z=G5();try{return X4.transition=null,p6(Q),XP()}finally{p6(Z),X4.transition=X}}return!1}function QP(z){if(J$.push(z),!w8)w8=!0,O$(b8,function(){return B7(),null})}function XP(){if(l7===null)return!1;var z=Y$;Y$=null;var Q=l7,X=EX;if(l7=null,EX=p,($1&(Z4|z5))!==h6)throw Error("Cannot flush passive effects while already rendering.");b$=!0,tJ=!1,RO(X);var Z=$1;$1|=z5,LR(Q.current),KR(Q,Q.current,X,z);{var J=J$;J$=[];for(var Y=0;Y<J.length;Y++){var H=J[Y];sA(Q,H)}}PO(),P3(Q.current,!0),$1=Z,h7();{if(tJ)if(Q===sJ)Cz++;else Cz=0,sJ=Q;else Cz=0;b$=!1,tJ=!1}HO(Q);{var G=Q.current.stateNode;G.effectDuration=0,G.passiveEffectDuration=0}return!0}function F3(z){return fz!==null&&fz.has(z)}function ZP(z){if(fz===null)fz=new Set([z]);else fz.add(z)}function JP(z){if(!nJ)nJ=!0,Z$=z}var YP=JP;function A3(z,Q,X){var Z=N8(X,Q),J=LB(z,Z,d0),Y=j7(z,J,d0),H=M4();if(Y!==null)VQ(Y,d0,H),C4(Y,H)}function l1(z,Q,X){if(aA(X),hX(!1),z.tag===E){A3(z,z,X);return}var Z=null;Z=Q;while(Z!==null){if(Z.tag===E){A3(Z,z,X);return}else if(Z.tag===A){var{type:J,stateNode:Y}=Z;if(typeof J.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&!F3(Y)){var H=N8(X,z),G=TG(Z,H,d0),U=j7(Z,G,d0),B=M4();if(U!==null)VQ(U,d0,B),C4(U,B);return}}Z=Z.return}$(`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`,X)}function HP(z,Q,X){var Z=z.pingCache;if(Z!==null)Z.delete(Q);var J=M4();if(lU(z,X),OP(z),P4===z&&Zz(g6,X))if(j6===VX||j6===oJ&&yU(g6)&&c6()-X$<H3)D8(z,p);else rJ=t0(rJ,X);C4(z,J)}function R3(z,Q){if(Q===a6)Q=yR(z);var X=M4(),Z=E4(z,Q);if(Z!==null)VQ(Z,Q,X),C4(Z,X)}function bP(z){var Q=z.memoizedState,X=a6;if(Q!==null)X=Q.retryLane;R3(z,X)}function GP(z,Q){var X=a6,Z;switch(z.tag){case l:Z=z.stateNode;var J=z.memoizedState;if(J!==null)X=J.retryLane;break;case y0:Z=z.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}if(Z!==null)Z.delete(Q);R3(z,X)}function $P(z){return z<120?120:z<480?480:z<1080?1080:z<1920?1920:z<3000?3000:z<4320?4320:gR(z/1960)*1960}function UP(){if(TX>uR)throw TX=0,H$=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(Cz>mR)Cz=0,sJ=null,$("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 qP(){q5.flushLegacyContextWarning(),q5.flushPendingUnsafeLifecycleWarnings()}function P3(z,Q){{if(K6(z),ZY(z,s5,VR),Q)ZY(z,BZ,kR);if(ZY(z,s5,MR),Q)ZY(z,BZ,NR);d6()}}function ZY(z,Q,X){{var Z=z,J=null;while(Z!==null){var Y=Z.subtreeFlags&Q;if(Z!==J&&Z.child!==null&&Y!==h0)Z=Z.child;else{if((Z.flags&Q)!==h0)X(Z);if(Z.sibling!==null)Z=Z.sibling;else Z=J=Z.return}}}}var JY=null;function M3(z){{if(($1&Z4)!==h6)return;if(!(z.mode&G1))return;var Q=z.tag;if(Q!==h&&Q!==E&&Q!==A&&Q!==P&&Q!==y&&Q!==i&&Q!==J0)return;var X=n0(z)||"ReactComponent";if(JY!==null){if(JY.has(X))return;JY.add(X)}else JY=new Set([X]);var Z=U4;try{K6(z),$("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(Z)K6(z);else d6()}}}var K$;{var KP=null;K$=function(z,Q,X){var Z=T3(KP,Q);try{return hB(z,Q,X)}catch(Y){if(AF()||Y!==null&&typeof Y==="object"&&typeof Y.then==="function")throw Y;if($J(),jK(),xB(z,Q),T3(Q,Z),Q.mode&I1)BG(Q);if(oY(null,hB,null,z,Q,X),xv()){var J=iY();if(typeof J==="object"&&J!==null&&J._suppressLogging&&typeof Y==="object"&&Y!==null&&!Y._suppressLogging)Y._suppressLogging=!0}throw Y}}}var N3=!1,B$;B$=new Set;function BP(z){if(s7&&!tF())switch(z.tag){case P:case y:case J0:{var Q=B6&&n0(B6)||"Unknown",X=Q;if(!B$.has(X)){B$.add(X);var Z=n0(z)||"Unknown";$("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",Z,Q,Q)}break}case A:{if(!N3)$("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),N3=!0;break}}}function SX(z,Q){if(b5){var X=z.memoizedUpdaters;X.forEach(function(Z){aU(z,Z,Q)})}}var v$={};function O$(z,Q){{var X=F5.current;if(X!==null)return X.push(Q),v$;else return TU(z,Q)}}function V3(z){if(z===v$)return;return nv(z)}function k3(){return F5.current!==null}function vP(z){{if(z.mode&G1){if(!Z3())return}else{if(!hR())return;if($1!==h6)return;if(z.tag!==P&&z.tag!==y&&z.tag!==J0)return}if(F5.current===null){var Q=U4;try{K6(z),$(`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`,n0(z))}finally{if(Q)K6(z);else d6()}}}}function OP(z){if(z.tag!==S7&&Z3()&&F5.current===null)$(`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 hX(z){$3=z}var Q5=null,Sz=null,LP=function(z){Q5=z};function hz(z){{if(Q5===null)return z;var Q=Q5(z);if(Q===void 0)return z;return Q.current}}function L$(z){return hz(z)}function _$(z){{if(Q5===null)return z;var Q=Q5(z);if(Q===void 0){if(z!==null&&z!==void 0&&typeof z.render==="function"){var X=hz(z.render);if(z.render!==X){var Z={$$typeof:k,render:X};if(z.displayName!==void 0)Z.displayName=z.displayName;return Z}}return z}return Q.current}}function w3(z,Q){{if(Q5===null)return!1;var X=z.elementType,Z=Q.type,J=!1,Y=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch(z.tag){case A:{if(typeof Z==="function")J=!0;break}case P:{if(typeof Z==="function")J=!0;else if(Y===V0)J=!0;break}case y:{if(Y===k)J=!0;else if(Y===V0)J=!0;break}case i:case J0:{if(Y===G0)J=!0;else if(Y===V0)J=!0;break}default:return!1}if(J){var H=Q5(X);if(H!==void 0&&H===Q5(Z))return!0}return!1}}function D3(z){{if(Q5===null)return;if(typeof WeakSet!=="function")return;if(Sz===null)Sz=new WeakSet;Sz.add(z)}}var _P=function(z,Q){{if(Q5===null)return;var{staleFamilies:X,updatedFamilies:Z}=Q;B7(),K7(function(){W$(z.current,Z,X)})}},WP=function(z,Q){{if(z.context!==c4)return;B7(),K7(function(){gX(Q,z,null,null)})}};function W$(z,Q,X){{var{alternate:Z,child:J,sibling:Y,tag:H,type:G}=z,U=null;switch(H){case P:case J0:case A:U=G;break;case y:U=G.render;break}if(Q5===null)throw Error("Expected resolveFamily to be set during hot reload.");var B=!1,O=!1;if(U!==null){var V=Q5(U);if(V!==void 0){if(X.has(V))O=!0;else if(Q.has(V))if(H===A)O=!0;else B=!0}}if(Sz!==null){if(Sz.has(z)||Z!==null&&Sz.has(Z))O=!0}if(O)z._debugNeedsRemount=!0;if(O||B){var M=E4(z,d0);if(M!==null)u6(M,z,d0,n1)}if(J!==null&&!O)W$(J,Q,X);if(Y!==null)W$(Y,Q,X)}}var FP=function(z,Q){{var X=new Set,Z=new Set(Q.map(function(J){return J.current}));return F$(z.current,Z,X),X}};function F$(z,Q,X){{var{child:Z,sibling:J,tag:Y,type:H}=z,G=null;switch(Y){case P:case J0:case A:G=H;break;case y:G=H.render;break}var U=!1;if(G!==null){if(Q.has(G))U=!0}if(U)AP(z,X);else if(Z!==null)F$(Z,Q,X);if(J!==null)F$(J,Q,X)}}function AP(z,Q){{var X=RP(z,Q);if(X)return;var Z=z;while(!0){switch(Z.tag){case w:Q.add(Z.stateNode);return;case N:Q.add(Z.stateNode.containerInfo);return;case E:Q.add(Z.stateNode.containerInfo);return}if(Z.return===null)throw Error("Expected to reach root first.");Z=Z.return}}}function RP(z,Q){{var X=z,Z=!1;while(!0){if(X.tag===w)Z=!0,Q.add(X.stateNode);else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===z)return Z;while(X.sibling===null){if(X.return===null||X.return===z)return Z;X=X.return}X.sibling.return=X.return,X=X.sibling}}return!1}var A$;{A$=!1;try{var I3=Object.preventExtensions({})}catch(z){A$=!0}}function PP(z,Q,X,Z){if(this.tag=z,this.key=X,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=Q,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=Z,this.flags=h0,this.subtreeFlags=h0,this.deletions=null,this.lanes=p,this.childLanes=p,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,!A$&&typeof Object.preventExtensions==="function")Object.preventExtensions(this)}var l4=function(z,Q,X,Z){return new PP(z,Q,X,Z)};function R$(z){var Q=z.prototype;return!!(Q&&Q.isReactComponent)}function MP(z){return typeof z==="function"&&!R$(z)&&z.defaultProps===void 0}function NP(z){if(typeof z==="function")return R$(z)?A:P;else if(z!==void 0&&z!==null){var Q=z.$$typeof;if(Q===k)return y;if(Q===G0)return i}return h}function E8(z,Q){var X=z.alternate;if(X===null)X=l4(z.tag,Q,z.key,z.mode),X.elementType=z.elementType,X.type=z.type,X.stateNode=z.stateNode,X._debugSource=z._debugSource,X._debugOwner=z._debugOwner,X._debugHookTypes=z._debugHookTypes,X.alternate=z,z.alternate=X;else X.pendingProps=Q,X.type=z.type,X.flags=h0,X.subtreeFlags=h0,X.deletions=null,X.actualDuration=0,X.actualStartTime=-1;X.flags=z.flags&e5,X.childLanes=z.childLanes,X.lanes=z.lanes,X.child=z.child,X.memoizedProps=z.memoizedProps,X.memoizedState=z.memoizedState,X.updateQueue=z.updateQueue;var Z=z.dependencies;switch(X.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext},X.sibling=z.sibling,X.index=z.index,X.ref=z.ref,X.selfBaseDuration=z.selfBaseDuration,X.treeBaseDuration=z.treeBaseDuration,X._debugNeedsRemount=z._debugNeedsRemount,X.tag){case h:case P:case J0:X.type=hz(z.type);break;case A:X.type=L$(z.type);break;case y:X.type=_$(z.type);break}return X}function VP(z,Q){z.flags&=e5|k6;var X=z.alternate;if(X===null)z.childLanes=p,z.lanes=Q,z.child=null,z.subtreeFlags=h0,z.memoizedProps=null,z.memoizedState=null,z.updateQueue=null,z.dependencies=null,z.stateNode=null,z.selfBaseDuration=0,z.treeBaseDuration=0;else{z.childLanes=X.childLanes,z.lanes=X.lanes,z.child=X.child,z.subtreeFlags=h0,z.deletions=null,z.memoizedProps=X.memoizedProps,z.memoizedState=X.memoizedState,z.updateQueue=X.updateQueue,z.type=X.type;var Z=X.dependencies;z.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext},z.selfBaseDuration=X.selfBaseDuration,z.treeBaseDuration=X.treeBaseDuration}return z}function kP(z,Q,X){var Z;if(z===eZ){if(Z=G1,Q===!0)Z|=L6,Z|=T5}else Z=C0;if(b5)Z|=I1;return l4(E,null,null,Z)}function P$(z,Q,X,Z,J,Y){var H=h,G=z;if(typeof z==="function")if(R$(z))H=A,G=L$(G);else G=hz(G);else if(typeof z==="string")H=w;else z:switch(z){case v1:return o7(X.children,J,Y,Q);case W:if(H=s,J|=L6,(J&G1)!==C0)J|=T5;break;case u:return wP(X,J,Y,Q);case d:return DP(X,J,Y,Q);case t:return IP(X,J,Y,Q);case Q0:return E3(X,J,Y,Q);case w0:case W0:case H1:case k1:case c:default:{if(typeof z==="object"&&z!==null)switch(z.$$typeof){case a:H=n;break z;case L:H=Z0;break z;case k:H=y,G=_$(G);break z;case G0:H=i;break z;case V0:H=F0,G=null;break z}var U="";{if(z===void 0||typeof z==="object"&&z!==null&&Object.keys(z).length===0)U+=" 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 B=Z?n0(Z):null;if(B)U+=`
|
|
138
|
+
|
|
139
|
+
Check the render method of \``+B+"`."}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(z==null?z:typeof z)+"."+U))}}var O=l4(H,X,Q,J);return O.elementType=z,O.type=G,O.lanes=Y,O._debugOwner=Z,O}function M$(z,Q,X){var Z=null;Z=z._owner;var{type:J,key:Y,props:H}=z,G=P$(J,Y,H,Z,Q,X);return G._debugSource=z._source,G._debugOwner=z._owner,G}function o7(z,Q,X,Z){var J=l4(o,z,Z,Q);return J.lanes=X,J}function wP(z,Q,X,Z){if(typeof z.id!=="string")$('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof z.id);var J=l4(q0,z,Z,Q|I1);return J.elementType=u,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J}function DP(z,Q,X,Z){var J=l4(l,z,Z,Q);return J.elementType=d,J.lanes=X,J}function IP(z,Q,X,Z){var J=l4(y0,z,Z,Q);return J.elementType=t,J.lanes=X,J}function E3(z,Q,X,Z){var J=l4(S0,z,Z,Q);J.elementType=Q0,J.lanes=X;var Y={isHidden:!1};return J.stateNode=Y,J}function N$(z,Q,X){var Z=l4(T,z,null,Q);return Z.lanes=X,Z}function EP(){var z=l4(w,null,null,C0);return z.elementType="DELETED",z}function TP(z){var Q=l4(Q1,null,null,C0);return Q.stateNode=z,Q}function V$(z,Q,X){var Z=z.children!==null?z.children:[],J=l4(N,Z,z.key,Q);return J.lanes=X,J.stateNode={containerInfo:z.containerInfo,pendingChildren:null,implementation:z.implementation},J}function T3(z,Q){if(z===null)z=l4(h,null,null,C0);return z.tag=Q.tag,z.key=Q.key,z.elementType=Q.elementType,z.type=Q.type,z.stateNode=Q.stateNode,z.return=Q.return,z.child=Q.child,z.sibling=Q.sibling,z.index=Q.index,z.ref=Q.ref,z.pendingProps=Q.pendingProps,z.memoizedProps=Q.memoizedProps,z.updateQueue=Q.updateQueue,z.memoizedState=Q.memoizedState,z.dependencies=Q.dependencies,z.mode=Q.mode,z.flags=Q.flags,z.subtreeFlags=Q.subtreeFlags,z.deletions=Q.deletions,z.lanes=Q.lanes,z.childLanes=Q.childLanes,z.alternate=Q.alternate,z.actualDuration=Q.actualDuration,z.actualStartTime=Q.actualStartTime,z.selfBaseDuration=Q.selfBaseDuration,z.treeBaseDuration=Q.treeBaseDuration,z._debugSource=Q._debugSource,z._debugOwner=Q._debugOwner,z._debugNeedsRemount=Q._debugNeedsRemount,z._debugHookTypes=Q._debugHookTypes,z}function fP(z,Q,X,Z,J){this.tag=Q,this.containerInfo=z,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Yb,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=a6,this.eventTimes=wH(p),this.expirationTimes=wH(n1),this.pendingLanes=p,this.suspendedLanes=p,this.pingedLanes=p,this.expiredLanes=p,this.mutableReadLanes=p,this.finishedLanes=p,this.entangledLanes=p,this.entanglements=wH(p),this.identifierPrefix=Z,this.onRecoverableError=J,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;var Y=this.pendingUpdatersLaneMap=[];for(var H=0;H<JH;H++)Y.push(new Set)}switch(Q){case eZ:this._debugRootType=X?"hydrateRoot()":"createRoot()";break;case S7:this._debugRootType=X?"hydrate()":"render()";break}}function f3(z,Q,X,Z,J,Y,H,G,U,B){var O=new fP(z,Q,X,G,U),V=kP(Q,Y);O.current=V,V.stateNode=O;{var M={element:Z,isDehydrated:X,cache:null,transitions:null,pendingSuspenseBoundaries:null};V.memoizedState=M}return gb(V),O}var k$="18.3.1";function CP(z,Q,X){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return F6(Z),{$$typeof:j1,key:Z==null?null:""+Z,children:z,containerInfo:Q,implementation:X}}var w$,D$;w$=!1,D$={};function C3(z){if(!z)return c4;var Q=n8(z),X=qF(Q);if(Q.tag===A){var Z=Q.type;if(S5(Z))return YK(Q,Z,X)}return X}function SP(z,Q){{var X=n8(z);if(X===void 0)if(typeof z.render==="function")throw Error("Unable to find node on an unmounted component.");else{var Z=Object.keys(z).join(",");throw Error("Argument appears to not be a ReactComponent. Keys: "+Z)}var J=DU(X);if(J===null)return null;if(J.mode&L6){var Y=n0(X)||"Component";if(!D$[Y]){D$[Y]=!0;var H=U4;try{if(K6(J),X.mode&L6)$("%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",Q,Q,Y);else $("%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",Q,Q,Y)}finally{if(H)K6(H);else d6()}}}return J.stateNode}}function S3(z,Q,X,Z,J,Y,H,G){var U=!1,B=null;return f3(z,Q,U,B,X,Z,J,Y,H)}function h3(z,Q,X,Z,J,Y,H,G,U,B){var O=!0,V=f3(X,Z,O,z,J,Y,H,G,U);V.context=C3(null);var M=V.current,C=M4(),S=a7(M),g=G7(C,S);return g.callback=Q!==void 0&&Q!==null?Q:null,j7(M,g,S),xR(V,S,C),V}function gX(z,Q,X,Z){JO(Q,z);var J=Q.current,Y=M4(),H=a7(J);NO(H);var G=C3(X);if(Q.context===null)Q.context=G;else Q.pendingContext=G;if(s7&&U4!==null&&!w$)w$=!0,$(`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.`,n0(U4)||"Unknown");var U=G7(Y,H);if(U.payload={element:z},Z=Z===void 0?null:Z,Z!==null){if(typeof Z!=="function")$("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Z);U.callback=Z}var B=j7(J,U,H);if(B!==null)u6(B,J,H,Y),vJ(B,J,H);return H}function YY(z){var Q=z.current;if(!Q.child)return null;switch(Q.child.tag){case w:return Xb(Q.child.stateNode);default:return Q.child.stateNode}}function hP(z){switch(z.tag){case E:{var Q=z.stateNode;if(MZ(Q)){var X=CO(Q);aR(Q,X)}break}case l:{K7(function(){var J=E4(z,d0);if(J!==null){var Y=M4();u6(J,z,d0,Y)}});var Z=d0;I$(z,Z);break}}}function g3(z,Q){var X=z.memoizedState;if(X!==null&&X.dehydrated!==null)X.retryLane=mO(X.retryLane,Q)}function I$(z,Q){g3(z,Q);var X=z.alternate;if(X)g3(X,Q)}function gP(z){if(z.tag!==l)return;var Q=RQ,X=E4(z,Q);if(X!==null){var Z=M4();u6(X,z,Q,Z)}I$(z,Q)}function jP(z){if(z.tag!==l)return;var Q=a7(z),X=E4(z,Q);if(X!==null){var Z=M4();u6(X,z,Q,Z)}I$(z,Q)}function j3(z){var Q=rv(z);if(Q===null)return null;return Q.stateNode}var u3=function(z){return null};function uP(z){return u3(z)}var m3=function(z){return!1};function mP(z){return m3(z)}var y3=null,x3=null,d3=null,c3=null,l3=null,a3=null,p3=null,o3=null,i3=null;{var r3=function(z,Q,X){var Z=Q[X],J=_1(z)?z.slice():s0({},z);if(X+1===Q.length){if(_1(J))J.splice(Z,1);else delete J[Z];return J}return J[Z]=r3(z[Z],Q,X+1),J},n3=function(z,Q){return r3(z,Q,0)},t3=function(z,Q,X,Z){var J=Q[Z],Y=_1(z)?z.slice():s0({},z);if(Z+1===Q.length){var H=X[Z];if(Y[H]=Y[J],_1(Y))Y.splice(J,1);else delete Y[J]}else Y[J]=t3(z[J],Q,X,Z+1);return Y},s3=function(z,Q,X){if(Q.length!==X.length){_("copyWithRename() expects paths of the same length");return}else for(var Z=0;Z<X.length-1;Z++)if(Q[Z]!==X[Z]){_("copyWithRename() expects paths to be the same except for the deepest key");return}return t3(z,Q,X,0)},e3=function(z,Q,X,Z){if(X>=Q.length)return Z;var J=Q[X],Y=_1(z)?z.slice():s0({},z);return Y[J]=e3(z[J],Q,X+1,Z),Y},z9=function(z,Q,X){return e3(z,Q,0,X)},E$=function(z,Q){var X=z.memoizedState;while(X!==null&&Q>0)X=X.next,Q--;return X};y3=function(z,Q,X,Z){var J=E$(z,Q);if(J!==null){var Y=z9(J.memoizedState,X,Z);J.memoizedState=Y,J.baseState=Y,z.memoizedProps=s0({},z.memoizedProps);var H=E4(z,d0);if(H!==null)u6(H,z,d0,n1)}},x3=function(z,Q,X){var Z=E$(z,Q);if(Z!==null){var J=n3(Z.memoizedState,X);Z.memoizedState=J,Z.baseState=J,z.memoizedProps=s0({},z.memoizedProps);var Y=E4(z,d0);if(Y!==null)u6(Y,z,d0,n1)}},d3=function(z,Q,X,Z){var J=E$(z,Q);if(J!==null){var Y=s3(J.memoizedState,X,Z);J.memoizedState=Y,J.baseState=Y,z.memoizedProps=s0({},z.memoizedProps);var H=E4(z,d0);if(H!==null)u6(H,z,d0,n1)}},c3=function(z,Q,X){if(z.pendingProps=z9(z.memoizedProps,Q,X),z.alternate)z.alternate.pendingProps=z.pendingProps;var Z=E4(z,d0);if(Z!==null)u6(Z,z,d0,n1)},l3=function(z,Q){if(z.pendingProps=n3(z.memoizedProps,Q),z.alternate)z.alternate.pendingProps=z.pendingProps;var X=E4(z,d0);if(X!==null)u6(X,z,d0,n1)},a3=function(z,Q,X){if(z.pendingProps=s3(z.memoizedProps,Q,X),z.alternate)z.alternate.pendingProps=z.pendingProps;var Z=E4(z,d0);if(Z!==null)u6(Z,z,d0,n1)},p3=function(z){var Q=E4(z,d0);if(Q!==null)u6(Q,z,d0,n1)},o3=function(z){u3=z},i3=function(z){m3=z}}function yP(z){var Q=DU(z);if(Q===null)return null;return Q.stateNode}function xP(z){return null}function dP(){return U4}function cP(z){var Q=z.findFiberByHostInstance,X=b.ReactCurrentDispatcher;return ZO({bundleType:z.bundleType,version:z.version,rendererPackageName:z.rendererPackageName,rendererConfig:z.rendererConfig,overrideHookState:y3,overrideHookStateDeletePath:x3,overrideHookStateRenamePath:d3,overrideProps:c3,overridePropsDeletePath:l3,overridePropsRenamePath:a3,setErrorHandler:o3,setSuspenseHandler:i3,scheduleUpdate:p3,currentDispatcherRef:X,findHostInstanceByFiber:yP,findFiberByHostInstance:Q||xP,findHostInstancesForRefresh:FP,scheduleRefresh:_P,scheduleRoot:WP,setRefreshHandler:LP,getCurrentFiber:dP,reconcilerVersion:k$})}var Q9=typeof reportError==="function"?reportError:function(z){console.error(z)};function T$(z){this._internalRoot=z}HY.prototype.render=T$.prototype.render=function(z){var Q=this._internalRoot;if(Q===null)throw Error("Cannot update an unmounted root.");{if(typeof arguments[1]==="function")$("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(bY(arguments[1]))$("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")$("You passed a second argument to root.render(...) but it only accepts one argument.");var X=Q.containerInfo;if(X.nodeType!==V6){var Z=j3(Q.current);if(Z){if(Z.parentNode!==X)$("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.")}}}gX(z,Q,null,null)},HY.prototype.unmount=T$.prototype.unmount=function(){if(typeof arguments[0]==="function")$("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var z=this._internalRoot;if(z!==null){this._internalRoot=null;var Q=z.containerInfo;if(B3())$("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.");K7(function(){gX(null,z,null,null)}),eq(Q)}};function lP(z,Q){if(!bY(z))throw Error("createRoot(...): Target container is not a DOM element.");X9(z);var X=!1,Z=!1,J="",Y=Q9,H=null;if(Q!==null&&Q!==void 0){if(Q.hydrate)_("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.");else if(typeof Q==="object"&&Q!==null&&Q.$$typeof===V1)$(`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(Q.unstable_strictMode===!0)X=!0;if(Q.identifierPrefix!==void 0)J=Q.identifierPrefix;if(Q.onRecoverableError!==void 0)Y=Q.onRecoverableError;if(Q.transitionCallbacks!==void 0)H=Q.transitionCallbacks}var G=S3(z,eZ,null,X,Z,J,Y);pZ(G.current,z);var U=z.nodeType===V6?z.parentNode:z;return dQ(U),new T$(G)}function HY(z){this._internalRoot=z}function aP(z){if(z)XL(z)}HY.prototype.unstable_scheduleHydration=aP;function pP(z,Q,X){if(!bY(z))throw Error("hydrateRoot(...): Target container is not a DOM element.");if(X9(z),Q===void 0)$("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Z=X!=null?X:null,J=X!=null&&X.hydratedSources||null,Y=!1,H=!1,G="",U=Q9;if(X!==null&&X!==void 0){if(X.unstable_strictMode===!0)Y=!0;if(X.identifierPrefix!==void 0)G=X.identifierPrefix;if(X.onRecoverableError!==void 0)U=X.onRecoverableError}var B=h3(Q,null,z,eZ,Z,Y,H,G,U);if(pZ(B.current,z),dQ(z),J)for(var O=0;O<J.length;O++){var V=J[O];pF(B,V)}return new HY(B)}function bY(z){return!!(z&&(z.nodeType===D4||z.nodeType===r5||z.nodeType===gY||!g0))}function jX(z){return!!(z&&(z.nodeType===D4||z.nodeType===r5||z.nodeType===gY||z.nodeType===V6&&z.nodeValue===" react-mount-point-unstable "))}function X9(z){{if(z.nodeType===D4&&z.tagName&&z.tagName.toUpperCase()==="BODY")$("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(eQ(z))if(z._reactRootContainer)$("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.");else $("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 oP=b.ReactCurrentOwner,Z9;Z9=function(z){if(z._reactRootContainer&&z.nodeType!==V6){var Q=j3(z._reactRootContainer.current);if(Q){if(Q.parentNode!==z)$("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 X=!!z._reactRootContainer,Z=f$(z),J=!!(Z&&f7(Z));if(J&&!X)$("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(z.nodeType===D4&&z.tagName&&z.tagName.toUpperCase()==="BODY")$("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 f$(z){if(!z)return null;if(z.nodeType===r5)return z.documentElement;else return z.firstChild}function J9(){}function iP(z,Q,X,Z,J){if(J){if(typeof Z==="function"){var Y=Z;Z=function(){var M=YY(H);Y.call(M)}}var H=h3(Q,Z,z,S7,null,!1,!1,"",J9);z._reactRootContainer=H,pZ(H.current,z);var G=z.nodeType===V6?z.parentNode:z;return dQ(G),K7(),H}else{var U;while(U=z.lastChild)z.removeChild(U);if(typeof Z==="function"){var B=Z;Z=function(){var M=YY(O);B.call(M)}}var O=S3(z,S7,null,!1,!1,"",J9);z._reactRootContainer=O,pZ(O.current,z);var V=z.nodeType===V6?z.parentNode:z;return dQ(V),K7(function(){gX(Q,O,X,Z)}),O}}function rP(z,Q){if(z!==null&&typeof z!=="function")$("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Q,z)}function GY(z,Q,X,Z,J){Z9(X),rP(J===void 0?null:J,"render");var Y=X._reactRootContainer,H;if(!Y)H=iP(X,Q,z,J,Z);else{if(H=Y,typeof J==="function"){var G=J;J=function(){var U=YY(H);G.call(U)}}gX(Q,H,z,J)}return YY(H)}var Y9=!1;function nP(z){{if(!Y9)Y9=!0,$("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 Q=oP.current;if(Q!==null&&Q.stateNode!==null){var X=Q.stateNode._warnedAboutRefsInRender;if(!X)$("%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.",B1(Q.type)||"A component");Q.stateNode._warnedAboutRefsInRender=!0}}if(z==null)return null;if(z.nodeType===D4)return z;return SP(z,"findDOMNode")}function tP(z,Q,X){if($("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"),!jX(Q))throw Error("Target container is not a DOM element.");{var Z=eQ(Q)&&Q._reactRootContainer===void 0;if(Z)$("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 GY(null,z,Q,!0,X)}function sP(z,Q,X){if($("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"),!jX(Q))throw Error("Target container is not a DOM element.");{var Z=eQ(Q)&&Q._reactRootContainer===void 0;if(Z)$("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 GY(null,z,Q,!1,X)}function eP(z,Q,X,Z){if($("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"),!jX(X))throw Error("Target container is not a DOM element.");if(z==null||!dv(z))throw Error("parentComponent must be a valid React Component");return GY(z,Q,X,!1,Z)}var H9=!1;function zM(z){if(!H9)H9=!0,$("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(!jX(z))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var Q=eQ(z)&&z._reactRootContainer===void 0;if(Q)$("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(z._reactRootContainer){{var X=f$(z),Z=X&&!f7(X);if(Z)$("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return K7(function(){GY(null,null,z,!1,function(){z._reactRootContainer=null,eq(z)})}),!0}else{{var J=f$(z),Y=!!(J&&f7(J)),H=z.nodeType===D4&&jX(z.parentNode)&&!!z.parentNode._reactRootContainer;if(Y)$("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",H?"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(pO(hP),iO(gP),rO(jP),nO(G5),tO(cO),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")$("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");Tv(s_),Sv($$,pR,K7);function QM(z,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!bY(Q))throw Error("Target container is not a DOM element.");return CP(z,Q,null,X)}function XM(z,Q,X,Z){return eP(z,Q,X,Z)}var C$={usingClientEntryPoint:!1,Events:[f7,Kz,oZ,LU,_U,$$]};function ZM(z,Q){if(!C$.usingClientEntryPoint)$('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return lP(z,Q)}function JM(z,Q,X){if(!C$.usingClientEntryPoint)$('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return pP(z,Q,X)}function YM(z){if(B3())$("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 K7(z)}var HM=cP({findFiberByHostInstance:O8,bundleType:1,version:k$,rendererPackageName:"react-dom"});if(!HM&&o1&&window.top===window.self){if(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1){var b9=window.location.protocol;if(/^(https?|file):$/.test(b9))console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(b9==="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(OM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C$,OM.createPortal=QM,OM.createRoot=ZM,OM.findDOMNode=nP,OM.flushSync=YM,OM.hydrate=tP,OM.hydrateRoot=JM,OM.render=sP,OM.unmountComponentAtNode=zM,OM.unstable_batchedUpdates=$$,OM.unstable_renderSubtreeIntoContainer=XM,OM.version=k$,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var K9=T8((LV,q9)=>{var LM=X0(U9());q9.exports=LM});var B9=T8((_M)=>{var uz=X0(K9());jz=uz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_M.createRoot=function(b,K){jz.usingClientEntryPoint=!0;try{return uz.createRoot(b,K)}finally{jz.usingClientEntryPoint=!1}},_M.hydrateRoot=function(b,K,v){jz.usingClientEntryPoint=!0;try{return uz.hydrateRoot(b,K,v)}finally{jz.usingClientEntryPoint=!1}};var jz});var w1=T8((WM)=>{var j$=X0(J6());(function(){var b=Symbol.for("react.element"),K=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),o=Symbol.iterator,s="@@iterator";function Z0(W){if(W===null||typeof W!=="object")return null;var u=o&&W[o]||W[s];if(typeof u==="function")return u;return null}var n=j$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(W){{for(var u=arguments.length,a=Array(u>1?u-1:0),L=1;L<u;L++)a[L-1]=arguments[L];q0("error",W,a)}}function q0(W,u,a){{var L=n.ReactDebugCurrentFrame,k=L.getStackAddendum();if(k!=="")u+="%s",a=a.concat([k]);var d=a.map(function(t){return String(t)});d.unshift("Warning: "+u),Function.prototype.apply.call(console[W],console,d)}}var l=!1,i=!1,J0=!1,F0=!1,r0=!1,Q1;Q1=Symbol.for("react.module.reference");function y0(W){if(typeof W==="string"||typeof W==="function")return!0;if(W===v||W===$||r0||W===_||W===h||W===E||F0||W===T||l||i||J0)return!0;if(typeof W==="object"&&W!==null){if(W.$$typeof===w||W.$$typeof===N||W.$$typeof===R||W.$$typeof===P||W.$$typeof===A||W.$$typeof===Q1||W.getModuleId!==void 0)return!0}return!1}function A0(W,u,a){var L=W.displayName;if(L)return L;var k=u.displayName||u.name||"";return k!==""?a+"("+k+")":a}function S0(W){return W.displayName||"Context"}function e(W){if(W==null)return null;if(typeof W.tag==="number")y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof W==="function")return W.displayName||W.name||null;if(typeof W==="string")return W;switch(W){case v:return"Fragment";case K:return"Portal";case $:return"Profiler";case _:return"StrictMode";case h:return"Suspense";case E:return"SuspenseList"}if(typeof W==="object")switch(W.$$typeof){case P:var u=W;return S0(u)+".Consumer";case R:var a=W;return S0(a._context)+".Provider";case A:return A0(W,W.render,"ForwardRef");case N:var L=W.displayName||null;if(L!==null)return L;return e(W.type)||"Memo";case w:{var k=W,d=k._payload,t=k._init;try{return e(t(d))}catch(G0){return null}}}return null}var Y0=Object.assign,N0=0,L0,e0,P6,t1,m1,g0,X1;function M1(){}M1.__reactDisabledLog=!0;function U6(){{if(N0===0){L0=console.log,e0=console.info,P6=console.warn,t1=console.error,m1=console.group,g0=console.groupCollapsed,X1=console.groupEnd;var W={configurable:!0,enumerable:!0,value:M1,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}N0++}}function s1(){{if(N0--,N0===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y0({},W,{value:L0}),info:Y0({},W,{value:e0}),warn:Y0({},W,{value:P6}),error:Y0({},W,{value:t1}),group:Y0({},W,{value:m1}),groupCollapsed:Y0({},W,{value:g0}),groupEnd:Y0({},W,{value:X1})})}if(N0<0)y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var p1=n.ReactCurrentDispatcher,q6;function C1(W,u,a){{if(q6===void 0)try{throw Error()}catch(k){var L=k.stack.trim().match(/\n( *(at )?)/);q6=L&&L[1]||""}return`
|
|
146
|
+
`+q6+W}}var h1=!1,e1;{var D6=typeof WeakMap==="function"?WeakMap:Map;e1=new D6}function o1(W,u){if(!W||h1)return"";{var a=e1.get(W);if(a!==void 0)return a}var L;h1=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var d;d=p1.current,p1.current=null,U6();try{if(u){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(k1){L=k1}Reflect.construct(W,[],t)}else{try{t.call()}catch(k1){L=k1}W.call(t.prototype)}}else{try{throw Error()}catch(k1){L=k1}W()}}catch(k1){if(k1&&L&&typeof k1.stack==="string"){var G0=k1.stack.split(`
|
|
147
|
+
`),V0=L.stack.split(`
|
|
148
|
+
`),W0=G0.length-1,c=V0.length-1;while(W0>=1&&c>=0&&G0[W0]!==V0[c])c--;for(;W0>=1&&c>=0;W0--,c--)if(G0[W0]!==V0[c]){if(W0!==1||c!==1)do if(W0--,c--,c<0||G0[W0]!==V0[c]){var Q0=`
|
|
149
|
+
`+G0[W0].replace(" at new "," at ");if(W.displayName&&Q0.includes("<anonymous>"))Q0=Q0.replace("<anonymous>",W.displayName);if(typeof W==="function")e1.set(W,Q0);return Q0}while(W0>=1&&c>=0);break}}}finally{h1=!1,p1.current=d,s1(),Error.prepareStackTrace=k}var w0=W?W.displayName||W.name:"",H1=w0?C1(w0):"";if(typeof W==="function")e1.set(W,H1);return H1}function I6(W,u,a){return o1(W,!1)}function E6(W){var u=W.prototype;return!!(u&&u.isReactComponent)}function g1(W,u,a){if(W==null)return"";if(typeof W==="function")return o1(W,E6(W));if(typeof W==="string")return C1(W);switch(W){case h:return C1("Suspense");case E:return C1("SuspenseList")}if(typeof W==="object")switch(W.$$typeof){case A:return I6(W.render);case N:return g1(W.type,u,a);case w:{var L=W,k=L._payload,d=L._init;try{return g1(d(k),u,a)}catch(t){}}}return""}var a0=Object.prototype.hasOwnProperty,M6={},F6=n.ReactDebugCurrentFrame;function z6(W){if(W){var u=W._owner,a=g1(W.type,W._source,u?u.type:null);F6.setExtraStackFrame(a)}else F6.setExtraStackFrame(null)}function H6(W,u,a,L,k){{var d=Function.call.bind(a0);for(var t in W)if(d(W,t)){var G0=void 0;try{if(typeof W[t]!=="function"){var V0=Error((L||"React class")+": "+a+" type `"+t+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof W[t]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V0.name="Invariant Violation",V0}G0=W[t](u,t,L,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W0){G0=W0}if(G0&&!(G0 instanceof Error))z6(k),y("%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",a,t,typeof G0),z6(null);if(G0 instanceof Error&&!(G0.message in M6))M6[G0.message]=!0,z6(k),y("Failed %s type: %s",a,G0.message),z6(null)}}}var Z5=Array.isArray;function y1(W){return Z5(W)}function o6(W){{var u=typeof Symbol==="function"&&Symbol.toStringTag,a=u&&W[Symbol.toStringTag]||W.constructor.name||"Object";return a}}function x1(W){try{return i6(W),!1}catch(u){return!0}}function i6(W){return""+W}function i1(W){if(x1(W))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",o6(W)),i6(W)}var Q6=n.ReactCurrentOwner,y6={key:!0,ref:!0,__self:!0,__source:!0},G4,v6,N6;N6={};function H0(W){if(a0.call(W,"ref")){var u=Object.getOwnPropertyDescriptor(W,"ref").get;if(u&&u.isReactWarning)return!1}return W.ref!==void 0}function I0(W){if(a0.call(W,"key")){var u=Object.getOwnPropertyDescriptor(W,"key").get;if(u&&u.isReactWarning)return!1}return W.key!==void 0}function f0(W,u){if(typeof W.ref==="string"&&Q6.current&&u&&Q6.current.stateNode!==u){var a=e(Q6.current.type);if(!N6[a])y('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(Q6.current.type),W.ref),N6[a]=!0}}function q1(W,u){{var a=function(){if(!G4)G4=!0,y("%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)",u)};a.isReactWarning=!0,Object.defineProperty(W,"key",{get:a,configurable:!0})}}function N1(W,u){{var a=function(){if(!v6)v6=!0,y("%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)",u)};a.isReactWarning=!0,Object.defineProperty(W,"ref",{get:a,configurable:!0})}}var b6=function(W,u,a,L,k,d,t){var G0={$$typeof:b,type:W,key:u,ref:a,props:t,_owner:d};if(G0._store={},Object.defineProperty(G0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(G0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(G0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze)Object.freeze(G0.props),Object.freeze(G0);return G0};function S1(W,u,a,L,k){{var d,t={},G0=null,V0=null;if(a!==void 0)i1(a),G0=""+a;if(I0(u))i1(u.key),G0=""+u.key;if(H0(u))V0=u.ref,f0(u,k);for(d in u)if(a0.call(u,d)&&!y6.hasOwnProperty(d))t[d]=u[d];if(W&&W.defaultProps){var W0=W.defaultProps;for(d in W0)if(t[d]===void 0)t[d]=W0[d]}if(G0||V0){var c=typeof W==="function"?W.displayName||W.name||"Unknown":W;if(G0)q1(t,c);if(V0)N1(t,c)}return b6(W,G0,V0,k,L,Q6.current,t)}}var{ReactCurrentOwner:A6,ReactDebugCurrentFrame:i0}=n;function p0(W){if(W){var u=W._owner,a=g1(W.type,W._source,u?u.type:null);i0.setExtraStackFrame(a)}else i0.setExtraStackFrame(null)}var L4=!1;function x6(W){return typeof W==="object"&&W!==null&&W.$$typeof===b}function _4(){{if(A6.current){var W=e(A6.current.type);if(W)return`
|
|
150
|
+
|
|
151
|
+
Check the render method of \``+W+"`."}return""}}function k5(W){{if(W!==void 0){var u=W.fileName.replace(/^.*[\\\/]/,""),a=W.lineNumber;return`
|
|
152
|
+
|
|
153
|
+
Check your code at `+u+":"+a+"."}return""}}var J5={};function w5(W){{var u=_4();if(!u){var a=typeof W==="string"?W:W.displayName||W.name;if(a)u=`
|
|
154
|
+
|
|
155
|
+
Check the top-level render call using <`+a+">."}return u}}function o4(W,u){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var a=w5(u);if(J5[a])return;J5[a]=!0;var L="";if(W&&W._owner&&W._owner!==A6.current)L=" It was passed a child from "+e(W._owner.type)+".";p0(W),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,L),p0(null)}}function $4(W,u){{if(typeof W!=="object")return;if(y1(W))for(var a=0;a<W.length;a++){var L=W[a];if(x6(L))o4(L,u)}else if(x6(W)){if(W._store)W._store.validated=!0}else if(W){var k=Z0(W);if(typeof k==="function"){if(k!==W.entries){var d=k.call(W),t;while(!(t=d.next()).done)if(x6(t.value))o4(t.value,u)}}}}}function Y5(W){{var u=W.type;if(u===null||u===void 0||typeof u==="string")return;var a;if(typeof u==="function")a=u.propTypes;else if(typeof u==="object"&&(u.$$typeof===A||u.$$typeof===N))a=u.propTypes;else return;if(a){var L=e(u);H6(a,W.props,"prop",L,W)}else if(u.PropTypes!==void 0&&!L4){L4=!0;var k=e(u);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}if(typeof u.getDefaultProps==="function"&&!u.getDefaultProps.isReactClassApproved)y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Y1(W){{var u=Object.keys(W.props);for(var a=0;a<u.length;a++){var L=u[a];if(L!=="children"&&L!=="key"){p0(W),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),p0(null);break}}if(W.ref!==null)p0(W),y("Invalid attribute `ref` supplied to `React.Fragment`."),p0(null)}}var V1={};function j1(W,u,a,L,k,d){{var t=y0(W);if(!t){var G0="";if(W===void 0||typeof W==="object"&&W!==null&&Object.keys(W).length===0)G0+=" 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 V0=k5(k);if(V0)G0+=V0;else G0+=_4();var W0;if(W===null)W0="null";else if(y1(W))W0="array";else if(W!==void 0&&W.$$typeof===b)W0="<"+(e(W.type)||"Unknown")+" />",G0=" Did you accidentally export a JSX literal instead of a component?";else W0=typeof W;y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",W0,G0)}var c=S1(W,u,a,k,d);if(c==null)return c;if(t){var Q0=u.children;if(Q0!==void 0)if(L)if(y1(Q0)){for(var w0=0;w0<Q0.length;w0++)$4(Q0[w0],W);if(Object.freeze)Object.freeze(Q0)}else y("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(Q0,W)}if(a0.call(u,"key")){var H1=e(W),k1=Object.keys(u).filter(function(r1){return r1!=="key"}),W4=k1.length>0?"{key: someKey, "+k1.join(": ..., ")+": ...}":"{key: someKey}";if(!V1[H1+W4]){var g4=k1.length>0?"{"+k1.join(": ..., ")+": ...}":"{}";y(`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} />`,W4,H1,g4,H1),V1[H1+W4]=!0}}if(W===v)Y1(c);else Y5(c);return c}}var v1=j1;WM.Fragment=v,WM.jsxDEV=v1})()});var a1=T8((YN)=>{var d$=X0(J6());(function(){var b=Symbol.for("react.element"),K=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),o=Symbol.iterator,s="@@iterator";function Z0(L){if(L===null||typeof L!=="object")return null;var k=o&&L[o]||L[s];if(typeof k==="function")return k;return null}var n=d$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(L){{for(var k=arguments.length,d=Array(k>1?k-1:0),t=1;t<k;t++)d[t-1]=arguments[t];q0("error",L,d)}}function q0(L,k,d){{var t=n.ReactDebugCurrentFrame,G0=t.getStackAddendum();if(G0!=="")k+="%s",d=d.concat([G0]);var V0=d.map(function(W0){return String(W0)});V0.unshift("Warning: "+k),Function.prototype.apply.call(console[L],console,V0)}}var l=!1,i=!1,J0=!1,F0=!1,r0=!1,Q1;Q1=Symbol.for("react.module.reference");function y0(L){if(typeof L==="string"||typeof L==="function")return!0;if(L===v||L===$||r0||L===_||L===h||L===E||F0||L===T||l||i||J0)return!0;if(typeof L==="object"&&L!==null){if(L.$$typeof===w||L.$$typeof===N||L.$$typeof===R||L.$$typeof===P||L.$$typeof===A||L.$$typeof===Q1||L.getModuleId!==void 0)return!0}return!1}function A0(L,k,d){var t=L.displayName;if(t)return t;var G0=k.displayName||k.name||"";return G0!==""?d+"("+G0+")":d}function S0(L){return L.displayName||"Context"}function e(L){if(L==null)return null;if(typeof L.tag==="number")y("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 v:return"Fragment";case K:return"Portal";case $:return"Profiler";case _:return"StrictMode";case h:return"Suspense";case E:return"SuspenseList"}if(typeof L==="object")switch(L.$$typeof){case P:var k=L;return S0(k)+".Consumer";case R:var d=L;return S0(d._context)+".Provider";case A:return A0(L,L.render,"ForwardRef");case N:var t=L.displayName||null;if(t!==null)return t;return e(L.type)||"Memo";case w:{var G0=L,V0=G0._payload,W0=G0._init;try{return e(W0(V0))}catch(c){return null}}}return null}var Y0=Object.assign,N0=0,L0,e0,P6,t1,m1,g0,X1;function M1(){}M1.__reactDisabledLog=!0;function U6(){{if(N0===0){L0=console.log,e0=console.info,P6=console.warn,t1=console.error,m1=console.group,g0=console.groupCollapsed,X1=console.groupEnd;var L={configurable:!0,enumerable:!0,value:M1,writable:!0};Object.defineProperties(console,{info:L,log:L,warn:L,error:L,group:L,groupCollapsed:L,groupEnd:L})}N0++}}function s1(){{if(N0--,N0===0){var L={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y0({},L,{value:L0}),info:Y0({},L,{value:e0}),warn:Y0({},L,{value:P6}),error:Y0({},L,{value:t1}),group:Y0({},L,{value:m1}),groupCollapsed:Y0({},L,{value:g0}),groupEnd:Y0({},L,{value:X1})})}if(N0<0)y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var p1=n.ReactCurrentDispatcher,q6;function C1(L,k,d){{if(q6===void 0)try{throw Error()}catch(G0){var t=G0.stack.trim().match(/\n( *(at )?)/);q6=t&&t[1]||""}return`
|
|
161
|
+
`+q6+L}}var h1=!1,e1;{var D6=typeof WeakMap==="function"?WeakMap:Map;e1=new D6}function o1(L,k){if(!L||h1)return"";{var d=e1.get(L);if(d!==void 0)return d}var t;h1=!0;var G0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var V0;V0=p1.current,p1.current=null,U6();try{if(k){var W0=function(){throw Error()};if(Object.defineProperty(W0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(W0,[])}catch(r1){t=r1}Reflect.construct(L,[],W0)}else{try{W0.call()}catch(r1){t=r1}L.call(W0.prototype)}}else{try{throw Error()}catch(r1){t=r1}L()}}catch(r1){if(r1&&t&&typeof r1.stack==="string"){var c=r1.stack.split(`
|
|
162
|
+
`),Q0=t.stack.split(`
|
|
163
|
+
`),w0=c.length-1,H1=Q0.length-1;while(w0>=1&&H1>=0&&c[w0]!==Q0[H1])H1--;for(;w0>=1&&H1>=0;w0--,H1--)if(c[w0]!==Q0[H1]){if(w0!==1||H1!==1)do if(w0--,H1--,H1<0||c[w0]!==Q0[H1]){var k1=`
|
|
164
|
+
`+c[w0].replace(" at new "," at ");if(L.displayName&&k1.includes("<anonymous>"))k1=k1.replace("<anonymous>",L.displayName);if(typeof L==="function")e1.set(L,k1);return k1}while(w0>=1&&H1>=0);break}}}finally{h1=!1,p1.current=V0,s1(),Error.prepareStackTrace=G0}var W4=L?L.displayName||L.name:"",g4=W4?C1(W4):"";if(typeof L==="function")e1.set(L,g4);return g4}function I6(L,k,d){return o1(L,!1)}function E6(L){var k=L.prototype;return!!(k&&k.isReactComponent)}function g1(L,k,d){if(L==null)return"";if(typeof L==="function")return o1(L,E6(L));if(typeof L==="string")return C1(L);switch(L){case h:return C1("Suspense");case E:return C1("SuspenseList")}if(typeof L==="object")switch(L.$$typeof){case A:return I6(L.render);case N:return g1(L.type,k,d);case w:{var t=L,G0=t._payload,V0=t._init;try{return g1(V0(G0),k,d)}catch(W0){}}}return""}var a0=Object.prototype.hasOwnProperty,M6={},F6=n.ReactDebugCurrentFrame;function z6(L){if(L){var k=L._owner,d=g1(L.type,L._source,k?k.type:null);F6.setExtraStackFrame(d)}else F6.setExtraStackFrame(null)}function H6(L,k,d,t,G0){{var V0=Function.call.bind(a0);for(var W0 in L)if(V0(L,W0)){var c=void 0;try{if(typeof L[W0]!=="function"){var Q0=Error((t||"React class")+": "+d+" type `"+W0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof L[W0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Q0.name="Invariant Violation",Q0}c=L[W0](k,W0,t,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w0){c=w0}if(c&&!(c instanceof Error))z6(G0),y("%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).",t||"React class",d,W0,typeof c),z6(null);if(c instanceof Error&&!(c.message in M6))M6[c.message]=!0,z6(G0),y("Failed %s type: %s",d,c.message),z6(null)}}}var Z5=Array.isArray;function y1(L){return Z5(L)}function o6(L){{var k=typeof Symbol==="function"&&Symbol.toStringTag,d=k&&L[Symbol.toStringTag]||L.constructor.name||"Object";return d}}function x1(L){try{return i6(L),!1}catch(k){return!0}}function i6(L){return""+L}function i1(L){if(x1(L))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",o6(L)),i6(L)}var Q6=n.ReactCurrentOwner,y6={key:!0,ref:!0,__self:!0,__source:!0},G4,v6,N6;N6={};function H0(L){if(a0.call(L,"ref")){var k=Object.getOwnPropertyDescriptor(L,"ref").get;if(k&&k.isReactWarning)return!1}return L.ref!==void 0}function I0(L){if(a0.call(L,"key")){var k=Object.getOwnPropertyDescriptor(L,"key").get;if(k&&k.isReactWarning)return!1}return L.key!==void 0}function f0(L,k){if(typeof L.ref==="string"&&Q6.current&&k&&Q6.current.stateNode!==k){var d=e(Q6.current.type);if(!N6[d])y('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(Q6.current.type),L.ref),N6[d]=!0}}function q1(L,k){{var d=function(){if(!G4)G4=!0,y("%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)",k)};d.isReactWarning=!0,Object.defineProperty(L,"key",{get:d,configurable:!0})}}function N1(L,k){{var d=function(){if(!v6)v6=!0,y("%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)",k)};d.isReactWarning=!0,Object.defineProperty(L,"ref",{get:d,configurable:!0})}}var b6=function(L,k,d,t,G0,V0,W0){var c={$$typeof:b,type:L,key:k,ref:d,props:W0,_owner:V0};if(c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G0}),Object.freeze)Object.freeze(c.props),Object.freeze(c);return c};function S1(L,k,d,t,G0){{var V0,W0={},c=null,Q0=null;if(d!==void 0)i1(d),c=""+d;if(I0(k))i1(k.key),c=""+k.key;if(H0(k))Q0=k.ref,f0(k,G0);for(V0 in k)if(a0.call(k,V0)&&!y6.hasOwnProperty(V0))W0[V0]=k[V0];if(L&&L.defaultProps){var w0=L.defaultProps;for(V0 in w0)if(W0[V0]===void 0)W0[V0]=w0[V0]}if(c||Q0){var H1=typeof L==="function"?L.displayName||L.name||"Unknown":L;if(c)q1(W0,H1);if(Q0)N1(W0,H1)}return b6(L,c,Q0,G0,t,Q6.current,W0)}}var{ReactCurrentOwner:A6,ReactDebugCurrentFrame:i0}=n;function p0(L){if(L){var k=L._owner,d=g1(L.type,L._source,k?k.type:null);i0.setExtraStackFrame(d)}else i0.setExtraStackFrame(null)}var L4=!1;function x6(L){return typeof L==="object"&&L!==null&&L.$$typeof===b}function _4(){{if(A6.current){var L=e(A6.current.type);if(L)return`
|
|
165
|
+
|
|
166
|
+
Check the render method of \``+L+"`."}return""}}function k5(L){{if(L!==void 0){var k=L.fileName.replace(/^.*[\\\/]/,""),d=L.lineNumber;return`
|
|
167
|
+
|
|
168
|
+
Check your code at `+k+":"+d+"."}return""}}var J5={};function w5(L){{var k=_4();if(!k){var d=typeof L==="string"?L:L.displayName||L.name;if(d)k=`
|
|
169
|
+
|
|
170
|
+
Check the top-level render call using <`+d+">."}return k}}function o4(L,k){{if(!L._store||L._store.validated||L.key!=null)return;L._store.validated=!0;var d=w5(k);if(J5[d])return;J5[d]=!0;var t="";if(L&&L._owner&&L._owner!==A6.current)t=" It was passed a child from "+e(L._owner.type)+".";p0(L),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,t),p0(null)}}function $4(L,k){{if(typeof L!=="object")return;if(y1(L))for(var d=0;d<L.length;d++){var t=L[d];if(x6(t))o4(t,k)}else if(x6(L)){if(L._store)L._store.validated=!0}else if(L){var G0=Z0(L);if(typeof G0==="function"){if(G0!==L.entries){var V0=G0.call(L),W0;while(!(W0=V0.next()).done)if(x6(W0.value))o4(W0.value,k)}}}}}function Y5(L){{var k=L.type;if(k===null||k===void 0||typeof k==="string")return;var d;if(typeof k==="function")d=k.propTypes;else if(typeof k==="object"&&(k.$$typeof===A||k.$$typeof===N))d=k.propTypes;else return;if(d){var t=e(k);H6(d,L.props,"prop",t,L)}else if(k.PropTypes!==void 0&&!L4){L4=!0;var G0=e(k);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G0||"Unknown")}if(typeof k.getDefaultProps==="function"&&!k.getDefaultProps.isReactClassApproved)y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Y1(L){{var k=Object.keys(L.props);for(var d=0;d<k.length;d++){var t=k[d];if(t!=="children"&&t!=="key"){p0(L),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",t),p0(null);break}}if(L.ref!==null)p0(L),y("Invalid attribute `ref` supplied to `React.Fragment`."),p0(null)}}var V1={};function j1(L,k,d,t,G0,V0){{var W0=y0(L);if(!W0){var c="";if(L===void 0||typeof L==="object"&&L!==null&&Object.keys(L).length===0)c+=" 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 Q0=k5(G0);if(Q0)c+=Q0;else c+=_4();var w0;if(L===null)w0="null";else if(y1(L))w0="array";else if(L!==void 0&&L.$$typeof===b)w0="<"+(e(L.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?";else w0=typeof L;y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w0,c)}var H1=S1(L,k,d,G0,V0);if(H1==null)return H1;if(W0){var k1=k.children;if(k1!==void 0)if(t)if(y1(k1)){for(var W4=0;W4<k1.length;W4++)$4(k1[W4],L);if(Object.freeze)Object.freeze(k1)}else y("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(k1,L)}if(a0.call(k,"key")){var g4=e(L),r1=Object.keys(k).filter(function(D5){return D5!=="key"}),s0=r1.length>0?"{key: someKey, "+r1.join(": ..., ")+": ...}":"{key: someKey}";if(!V1[g4+s0]){var l5=r1.length>0?"{"+r1.join(": ..., ")+": ...}":"{}";y(`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} />`,s0,g4,l5,g4),V1[g4+s0]=!0}}if(L===v)Y1(H1);else Y5(H1);return H1}}function v1(L,k,d){return j1(L,k,d,!0)}function W(L,k,d){return j1(L,k,d,!1)}var u=W,a=v1;YN.Fragment=v,YN.jsx=u,YN.jsxs=a})()});var W7=X0(J6(),1),d9=X0(B9(),1);var C8=X0(J6(),1);function S$(b){let[K,v]=C8.useState([]),[_,$]=C8.useState(!0),R=C8.useCallback(async()=>{let w=await(await fetch("/api/agents")).json();v(w.agents||[]),$(!1)},[]);C8.useEffect(()=>{if(b)R()},[b,R]);let P=async(N)=>{await fetch("/api/agents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)}),await R()},A=async(N)=>{await fetch(`/api/agents/${N}`,{method:"DELETE"}),await R()},h=async(N)=>{let w=N.status==="running"?"stop":"start",T=await fetch(`/api/agents/${N.id}/${w}`,{method:"POST"}),o=await T.json();if(await R(),!T.ok&&o.error)return{error:o.error};return{}},E=K.filter((N)=>N.status==="running").length;return{agents:K,loading:_,runningCount:E,fetchAgents:R,createAgent:P,deleteAgent:A,toggleAgent:h}}var mz=X0(J6(),1);function h$(b){let[K,v]=mz.useState([]),_=mz.useCallback(async()=>{let h=await(await fetch("/api/providers")).json();v(h.providers||[])},[]);mz.useEffect(()=>{if(b)_()},[b,_]);let $=K.filter((A)=>A.hasKey);return{providers:K,configuredProviders:$,fetchProviders:_,saveKey:async(A,h)=>{let N=await(await fetch(`/api/keys/${A}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:h})})).json();if(!N.valid)return{success:!1,error:N.error||"API key is invalid"};let w=await fetch(`/api/keys/${A}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:h})});if(!w.ok)return{success:!1,error:(await w.json()).error||"Failed to save key"};return await _(),{success:!0}},deleteKey:async(A)=>{await fetch(`/api/keys/${A}`,{method:"DELETE"}),await _()}}}var yz=X0(J6(),1);function g$(){let[b,K]=yz.useState(null);yz.useEffect(()=>{fetch("/api/onboarding/status").then((_)=>_.json()).then((_)=>{K(_.completed||_.has_any_keys)}).catch(()=>K(!0))},[]);let v=yz.useCallback(async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),K(!0)},[]);return{isComplete:b,setIsComplete:K,complete:v}}var i7=X0(w1(),1);function xz({message:b="Loading...",fullScreen:K=!1}){let v=i7.jsxDEV("div",{className:"flex items-center gap-3 text-[#666]",children:[i7.jsxDEV("svg",{className:"animate-spin h-5 w-5",viewBox:"0 0 24 24",children:[i7.jsxDEV("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"},void 0,!1,void 0,this),i7.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),i7.jsxDEV("span",{children:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(K)return i7.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center",children:v},void 0,!1,void 0,this);return i7.jsxDEV("div",{className:"flex items-center justify-center py-20",children:v},void 0,!1,void 0,this)}var u$=X0(w1(),1);function UY({children:b,onClose:K}){return u$.jsxDEV("div",{className:"fixed inset-0 bg-black/70 flex items-center justify-center z-50",children:u$.jsxDEV("div",{className:"bg-[#111] rounded p-6 w-full max-w-md border border-[#1a1a1a]",children:b},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var dz=X0(J6(),1),Y4=X0(w1(),1);function yX({value:b,options:K,onChange:v,placeholder:_="Select..."}){let[$,R]=dz.useState(!1),P=dz.useRef(null),A=K.find((h)=>h.value===b);return dz.useEffect(()=>{function h(E){if(P.current&&!P.current.contains(E.target))R(!1)}return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]),Y4.jsxDEV("div",{ref:P,className:"relative",children:[Y4.jsxDEV("button",{type:"button",onClick:()=>R(!$),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:[Y4.jsxDEV("span",{className:A?"text-[#e0e0e0]":"text-[#666]",children:A?Y4.jsxDEV(Y4.Fragment,{children:[A.label,A.recommended&&Y4.jsxDEV("span",{className:"text-[#f97316] text-xs ml-2",children:"(Recommended)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):_},void 0,!1,void 0,this),Y4.jsxDEV(FM,{isOpen:$},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$&&Y4.jsxDEV("div",{className:"absolute z-50 w-full mt-1 bg-[#111] border border-[#222] rounded shadow-lg max-h-60 overflow-auto",children:K.map((h)=>Y4.jsxDEV("button",{type:"button",onClick:()=>{v(h.value),R(!1)},className:`w-full px-3 py-2 text-left flex items-center justify-between hover:bg-[#1a1a1a] transition ${h.value===b?"bg-[#1a1a1a] text-[#f97316]":"text-[#e0e0e0]"}`,children:[Y4.jsxDEV("span",{children:[h.label,h.recommended&&Y4.jsxDEV("span",{className:"text-[#f97316] text-xs ml-2",children:"(Recommended)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.value===b&&Y4.jsxDEV("svg",{className:"w-4 h-4 text-[#f97316]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y4.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)]},h.value,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FM({isOpen:b}){return Y4.jsxDEV("svg",{className:`w-4 h-4 text-[#666] transition-transform ${b?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y4.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 X5=X0(w1(),1);function S8({className:b="w-4 h-4"}){return X5.jsxDEV("svg",{className:b,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X5.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 h8({className:b="w-5 h-5"}){return X5.jsxDEV("svg",{className:b,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X5.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 qY({className:b="w-5 h-5"}){return X5.jsxDEV("svg",{className:b,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X5.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 KY({className:b="w-5 h-5"}){return X5.jsxDEV("svg",{className:b,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X5.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 BY({className:b="w-5 h-5"}){return X5.jsxDEV("svg",{className:b,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[X5.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),X5.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)}var g8=X0(w1(),1);function vY({onNewAgent:b,canCreateAgent:K}){return g8.jsxDEV("header",{className:"border-b border-[#1a1a1a] px-6 py-4 flex-shrink-0",children:g8.jsxDEV("div",{className:"flex items-center justify-between",children:[g8.jsxDEV("div",{className:"flex items-center gap-2",children:[g8.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),g8.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g8.jsxDEV("button",{onClick:b,disabled:!K,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 A5=X0(w1(),1);function OY({route:b,agentCount:K,onNavigate:v}){return A5.jsxDEV("aside",{className:"w-56 border-r border-[#1a1a1a] flex-shrink-0 p-4",children:A5.jsxDEV("nav",{className:"space-y-1",children:[A5.jsxDEV(m$,{icon:A5.jsxDEV(qY,{},void 0,!1,void 0,this),label:"Dashboard",active:b==="dashboard",onClick:()=>v("dashboard")},void 0,!1,void 0,this),A5.jsxDEV(m$,{icon:A5.jsxDEV(KY,{},void 0,!1,void 0,this),label:"Agents",active:b==="agents",onClick:()=>v("agents"),badge:K>0?String(K):void 0},void 0,!1,void 0,this),A5.jsxDEV(m$,{icon:A5.jsxDEV(BY,{},void 0,!1,void 0,this),label:"Settings",active:b==="settings",onClick:()=>v("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function m$({icon:b,label:K,active:v,onClick:_,badge:$}){return A5.jsxDEV("button",{onClick:_,className:`w-full flex items-center gap-3 px-3 py-2 rounded font-medium transition ${v?"bg-[#111] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:[b,K,$&&A5.jsxDEV("span",{className:"ml-auto bg-[#333] text-[#888] text-xs px-2 py-0.5 rounded-full",children:$},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var xX=X0(w1(),1);function LY({message:b,onDismiss:K}){return xX.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:[xX.jsxDEV("span",{children:b},void 0,!1,void 0,this),xX.jsxDEV("button",{onClick:K,className:"hover:text-red-300",children:xX.jsxDEV(h8,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var R5=X0(J6(),1);var D0=X0(w1(),1);function _Y({onComplete:b}){let[K,v]=R5.useState(1),[_,$]=R5.useState([]),[R,P]=R5.useState(null),[A,h]=R5.useState(""),[E,N]=R5.useState(!1),[w,T]=R5.useState(!1),[o,s]=R5.useState(null),[Z0,n]=R5.useState(null);R5.useEffect(()=>{fetch("/api/providers").then((i)=>i.json()).then((i)=>$(i.providers||[]))},[]);let y=_.filter((i)=>i.hasKey),q0=async()=>{if(!R||!A)return;N(!0),s(null),n(null);try{T(!0);let J0=await(await fetch(`/api/keys/${R}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:A})})).json();if(T(!1),!J0.valid){s(J0.error||"API key is invalid"),N(!1);return}let F0=await fetch(`/api/keys/${R}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:A})}),r0=await F0.json();if(!F0.ok)s(r0.error||"Failed to save key");else{n("API key saved successfully!"),h("");let y0=await(await fetch("/api/providers")).json();$(y0.providers||[]),P(null)}}catch(i){s("Failed to save key")}N(!1)},l=async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),b()};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 ${K>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),D0.jsxDEV("div",{className:`w-16 h-0.5 ${K>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),D0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${K>=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:[K===1&&D0.jsxDEV(AM,{providers:_,configuredProviders:y,selectedProvider:R,apiKey:A,saving:E,testing:w,error:o,success:Z0,onSelectProvider:P,onApiKeyChange:h,onSaveKey:q0,onContinue:()=>v(2)},void 0,!1,void 0,this),K===2&&D0.jsxDEV(PM,{configuredProviders:y,onAddMore:()=>v(1),onComplete:l},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 AM({providers:b,configuredProviders:K,selectedProvider:v,apiKey:_,saving:$,testing:R,error:P,success:A,onSelectProvider:h,onApiKeyChange:E,onSaveKey:N,onContinue:w}){let T=b.find((o)=>o.id===v);if(v&&T)return D0.jsxDEV(D0.Fragment,{children:[D0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",T.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:T.name},void 0,!1,void 0,this),D0.jsxDEV("p",{className:"text-sm text-[#666]",children:[T.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("a",{href:T.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:_,onChange:(o)=>E(o.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),P&&D0.jsxDEV("p",{className:"text-red-400 text-sm",children:P},void 0,!1,void 0,this),A&&D0.jsxDEV("p",{className:"text-green-400 text-sm",children:A},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:()=>{h(null),E("")},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:N,disabled:!_||$,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:R?"Testing...":$?"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:b.map((o)=>D0.jsxDEV(RM,{provider:o,selected:!1,onSelect:()=>!o.hasKey&&h(o.id)},o.id,!1,void 0,this))},void 0,!1,void 0,this),D0.jsxDEV("button",{onClick:w,disabled:K.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:K.length===0?"Add at least one API key to continue":`Continue with ${K.length} provider${K.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function RM({provider:b,selected:K,onSelect:v}){return D0.jsxDEV("div",{onClick:v,className:`p-4 rounded border transition cursor-pointer ${b.hasKey?"border-green-500/30 bg-green-500/5":K?"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:b.name},void 0,!1,void 0,this),D0.jsxDEV("p",{className:"text-sm text-[#666]",children:[b.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),b.hasKey?D0.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[D0.jsxDEV(S8,{},void 0,!1,void 0,this),"Configured (",b.keyHint,")"]},void 0,!0,void 0,this):D0.jsxDEV("a",{href:b.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(_)=>_.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 PM({configuredProviders:b,onAddMore:K,onComplete:v}){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 ",b.length," provider",b.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:b.map((_)=>D0.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[#0a0a0a] rounded",children:[D0.jsxDEV(S8,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),D0.jsxDEV("span",{children:_.name},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"text-[#666] text-sm",children:["(",_.keyHint,")"]},void 0,!0,void 0,this)]},_.id,!0,void 0,this))},void 0,!1,void 0,this),D0.jsxDEV("div",{className:"flex gap-3",children:[D0.jsxDEV("button",{onClick:K,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:v,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 P5=X0(J6(),1);var U1=X0(w1(),1);function WY(){let[b,K]=P5.useState("providers");return U1.jsxDEV("div",{className:"flex-1 flex overflow-hidden",children:[U1.jsxDEV("div",{className:"w-48 border-r border-[#1a1a1a] p-4",children:[U1.jsxDEV("h2",{className:"text-sm font-medium text-[#666] uppercase tracking-wider mb-3",children:"Settings"},void 0,!1,void 0,this),U1.jsxDEV("nav",{className:"space-y-1",children:U1.jsxDEV(MM,{label:"Providers",active:b==="providers",onClick:()=>K("providers")},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U1.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:b==="providers"&&U1.jsxDEV(NM,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function MM({label:b,active:K,onClick:v}){return U1.jsxDEV("button",{onClick:v,className:`w-full text-left px-3 py-2 rounded text-sm transition ${K?"bg-[#1a1a1a] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:b},void 0,!1,void 0,this)}function NM(){let[b,K]=P5.useState([]),[v,_]=P5.useState(null),[$,R]=P5.useState(""),[P,A]=P5.useState(!1),[h,E]=P5.useState(!1),[N,w]=P5.useState(null),[T,o]=P5.useState(null),s=async()=>{let l=await(await fetch("/api/providers")).json();K(l.providers||[])};P5.useEffect(()=>{s()},[]);let Z0=async()=>{if(!v||!$)return;A(!0),w(null),o(null);try{E(!0);let l=await(await fetch(`/api/keys/${v}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:$})})).json();if(E(!1),!l.valid){w(l.error||"API key is invalid"),A(!1);return}let i=await fetch(`/api/keys/${v}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:$})});if(!i.ok){let J0=await i.json();w(J0.error||"Failed to save key")}else o("API key saved!"),R(""),_(null),s()}catch(q0){w("Failed to save key")}A(!1)},n=async(q0)=>{if(!confirm("Are you sure you want to remove this API key?"))return;await fetch(`/api/keys/${q0}`,{method:"DELETE"}),s()},y=b.filter((q0)=>q0.hasKey).length;return U1.jsxDEV("div",{className:"max-w-4xl",children:[U1.jsxDEV("div",{className:"mb-6",children:[U1.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"AI Providers"},void 0,!1,void 0,this),U1.jsxDEV("p",{className:"text-[#666]",children:["Manage your API keys for AI providers. ",y," of ",b.length," configured."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),U1.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2",children:b.map((q0)=>U1.jsxDEV(VM,{provider:q0,isEditing:v===q0.id,apiKey:$,saving:P,testing:h,error:v===q0.id?N:null,success:v===q0.id?T:null,onStartEdit:()=>{_(q0.id),w(null),o(null)},onCancelEdit:()=>{_(null),R(""),w(null)},onApiKeyChange:R,onSave:Z0,onDelete:()=>n(q0.id)},q0.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function VM({provider:b,isEditing:K,apiKey:v,saving:_,testing:$,error:R,success:P,onStartEdit:A,onCancelEdit:h,onApiKeyChange:E,onSave:N,onDelete:w}){return U1.jsxDEV("div",{className:`bg-[#111] border rounded-lg p-4 ${b.hasKey?"border-green-500/20":"border-[#1a1a1a]"}`,children:[U1.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[U1.jsxDEV("div",{children:[U1.jsxDEV("h3",{className:"font-medium",children:b.name},void 0,!1,void 0,this),U1.jsxDEV("p",{className:"text-sm text-[#666]",children:[b.models.length," models"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),b.hasKey?U1.jsxDEV("span",{className:"text-green-400 text-xs flex items-center gap-1 bg-green-500/10 px-2 py-1 rounded",children:[U1.jsxDEV(S8,{className:"w-3 h-3"},void 0,!1,void 0,this),b.keyHint]},void 0,!0,void 0,this):U1.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),b.hasKey?U1.jsxDEV("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-[#1a1a1a]",children:[U1.jsxDEV("a",{href:b.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"View docs"},void 0,!1,void 0,this),U1.jsxDEV("button",{onClick:w,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):U1.jsxDEV("div",{className:"mt-3 pt-3 border-t border-[#1a1a1a]",children:K?U1.jsxDEV("div",{className:"space-y-3",children:[U1.jsxDEV("input",{type:"password",value:v,onChange:(T)=>E(T.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),R&&U1.jsxDEV("p",{className:"text-red-400 text-sm",children:R},void 0,!1,void 0,this),P&&U1.jsxDEV("p",{className:"text-green-400 text-sm",children:P},void 0,!1,void 0,this),U1.jsxDEV("div",{className:"flex gap-2",children:[U1.jsxDEV("button",{onClick:h,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),U1.jsxDEV("button",{onClick:N,disabled:!v||_,className:"flex-1 px-3 py-1.5 bg-[#f97316] text-black rounded text-sm font-medium disabled:opacity-50",children:$?"Validating...":_?"Saving...":"Save"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):U1.jsxDEV("div",{className:"flex items-center justify-between",children:[U1.jsxDEV("a",{href:b.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"Get API key"},void 0,!1,void 0,this),U1.jsxDEV("button",{onClick:A,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 p4=X0(w1(),1);function FY({agent:b,selected:K,onSelect:v,onToggle:_,onDelete:$}){return p4.jsxDEV("div",{onClick:v,className:`bg-[#111] rounded p-5 border transition cursor-pointer ${K?"border-[#f97316]":"border-[#1a1a1a] hover:border-[#333]"}`,children:[p4.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[p4.jsxDEV("div",{children:[p4.jsxDEV("h3",{className:"font-semibold text-lg",children:b.name},void 0,!1,void 0,this),p4.jsxDEV("p",{className:"text-sm text-[#666]",children:[b.provider," / ",b.model,b.port&&p4.jsxDEV("span",{className:"text-[#444]",children:[" · :",b.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p4.jsxDEV(kM,{status:b.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p4.jsxDEV("p",{className:"text-sm text-[#666] line-clamp-2 mb-4",children:b.systemPrompt},void 0,!1,void 0,this),p4.jsxDEV("div",{className:"flex gap-2",children:[p4.jsxDEV("button",{onClick:_,className:`flex-1 px-3 py-1.5 rounded text-sm font-medium transition ${b.status==="running"?"bg-[#f97316]/20 text-[#f97316] hover:bg-[#f97316]/30":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:b.status==="running"?"Stop":"Start"},void 0,!1,void 0,this),p4.jsxDEV("button",{onClick:$,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 kM({status:b}){return p4.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ${b==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[#333] text-[#666]"}`,children:b},void 0,!1,void 0,this)}var G6=X0(w1(),1);function RY({form:b,providers:K,configuredProviders:v,onFormChange:_,onProviderChange:$,onCreate:R,onClose:P,onGoToSettings:A}){let h=K.find((w)=>w.id===b.provider),E=v.map((w)=>({value:w.id,label:w.name})),N=h?.models.map((w)=>({value:w.value,label:w.label,recommended:w.recommended}))||[];return G6.jsxDEV(UY,{children:[G6.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),v.length===0?G6.jsxDEV(wM,{onGoToSettings:A},void 0,!1,void 0,this):G6.jsxDEV(G6.Fragment,{children:[G6.jsxDEV("div",{className:"space-y-4",children:[G6.jsxDEV(AY,{label:"Name",children:G6.jsxDEV("input",{type:"text",value:b.name,onChange:(w)=>_({...b,name:w.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),G6.jsxDEV(AY,{label:"Provider",children:G6.jsxDEV(yX,{value:b.provider,options:E,onChange:$,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),G6.jsxDEV(AY,{label:"Model",children:G6.jsxDEV(yX,{value:b.model,options:N,onChange:(w)=>_({...b,model:w}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),G6.jsxDEV(AY,{label:"System Prompt",children:G6.jsxDEV("textarea",{value:b.systemPrompt,onChange:(w)=>_({...b,systemPrompt:w.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)]},void 0,!0,void 0,this),G6.jsxDEV("div",{className:"flex gap-3 mt-6",children:[G6.jsxDEV("button",{onClick:P,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),G6.jsxDEV("button",{onClick:R,disabled:!b.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 AY({label:b,children:K}){return G6.jsxDEV("div",{children:[G6.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:b},void 0,!1,void 0,this),K]},void 0,!0,void 0,this)}function wM({onGoToSettings:b}){return G6.jsxDEV("div",{className:"text-center py-6",children:[G6.jsxDEV("p",{className:"text-[#666] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),G6.jsxDEV("button",{onClick:b,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 P1=X0(J6(),1),pz=X0(J6(),1),u8=X0(J6(),1);function v9(b){var K,v,_="";if(typeof b=="string"||typeof b=="number")_+=b;else if(typeof b=="object")if(Array.isArray(b)){var $=b.length;for(K=0;K<$;K++)b[K]&&(v=v9(b[K]))&&(_&&(_+=" "),_+=v)}else for(v in b)b[v]&&(_&&(_+=" "),_+=v);return _}function O9(){for(var b,K,v=0,_="",$=arguments.length;v<$;v++)(b=arguments[v])&&(K=v9(b))&&(_&&(_+=" "),_+=K);return _}var DM=(b)=>{let K=EM(b),{conflictingClassGroups:v,conflictingClassGroupModifiers:_}=b;return{getClassGroupId:(P)=>{let A=P.split("-");if(A[0]===""&&A.length!==1)A.shift();return W9(A,K)||IM(P)},getConflictingClassGroupIds:(P,A)=>{let h=v[P]||[];if(A&&_[P])return[...h,..._[P]];return h}}},W9=(b,K)=>{if(b.length===0)return K.classGroupId;let v=b[0],_=K.nextPart.get(v),$=_?W9(b.slice(1),_):void 0;if($)return $;if(K.validators.length===0)return;let R=b.join("-");return K.validators.find(({validator:P})=>P(R))?.classGroupId},L9=/^\[(.+)\]$/,IM=(b)=>{if(L9.test(b)){let K=L9.exec(b)[1],v=K?.substring(0,K.indexOf(":"));if(v)return"arbitrary.."+v}},EM=(b)=>{let{theme:K,prefix:v}=b,_={nextPart:new Map,validators:[]};return fM(Object.entries(b.classGroups),v).forEach(([R,P])=>{x$(P,_,R,K)}),_},x$=(b,K,v,_)=>{b.forEach(($)=>{if(typeof $==="string"){let R=$===""?K:_9(K,$);R.classGroupId=v;return}if(typeof $==="function"){if(TM($)){x$($(_),K,v,_);return}K.validators.push({validator:$,classGroupId:v});return}Object.entries($).forEach(([R,P])=>{x$(P,_9(K,R),v,_)})})},_9=(b,K)=>{let v=b;return K.split("-").forEach((_)=>{if(!v.nextPart.has(_))v.nextPart.set(_,{nextPart:new Map,validators:[]});v=v.nextPart.get(_)}),v},TM=(b)=>b.isThemeGetter,fM=(b,K)=>{if(!K)return b;return b.map(([v,_])=>{let $=_.map((R)=>{if(typeof R==="string")return K+R;if(typeof R==="object")return Object.fromEntries(Object.entries(R).map(([P,A])=>[K+P,A]));return R});return[v,$]})},CM=(b)=>{if(b<1)return{get:()=>{return},set:()=>{}};let K=0,v=new Map,_=new Map,$=(R,P)=>{if(v.set(R,P),K++,K>b)K=0,_=v,v=new Map};return{get(R){let P=v.get(R);if(P!==void 0)return P;if((P=_.get(R))!==void 0)return $(R,P),P},set(R,P){if(v.has(R))v.set(R,P);else $(R,P)}}};var SM=(b)=>{let{separator:K,experimentalParseClassName:v}=b,_=K.length===1,$=K[0],R=K.length,P=(A)=>{let h=[],E=0,N=0,w;for(let n=0;n<A.length;n++){let y=A[n];if(E===0){if(y===$&&(_||A.slice(n,n+R)===K)){h.push(A.slice(N,n)),N=n+R;continue}if(y==="/"){w=n;continue}}if(y==="[")E++;else if(y==="]")E--}let T=h.length===0?A:A.substring(N),o=T.startsWith("!"),s=o?T.substring(1):T,Z0=w&&w>N?w-N:void 0;return{modifiers:h,hasImportantModifier:o,baseClassName:s,maybePostfixModifierPosition:Z0}};if(v)return(A)=>v({className:A,parseClassName:P});return P},hM=(b)=>{if(b.length<=1)return b;let K=[],v=[];return b.forEach((_)=>{if(_[0]==="[")K.push(...v.sort(),_),v=[];else v.push(_)}),K.push(...v.sort()),K},gM=(b)=>({cache:CM(b.cacheSize),parseClassName:SM(b),...DM(b)}),jM=/\s+/,uM=(b,K)=>{let{parseClassName:v,getClassGroupId:_,getConflictingClassGroupIds:$}=K,R=[],P=b.trim().split(jM),A="";for(let h=P.length-1;h>=0;h-=1){let E=P[h],{modifiers:N,hasImportantModifier:w,baseClassName:T,maybePostfixModifierPosition:o}=v(E),s=Boolean(o),Z0=_(s?T.substring(0,o):T);if(!Z0){if(!s){A=E+(A.length>0?" "+A:A);continue}if(Z0=_(T),!Z0){A=E+(A.length>0?" "+A:A);continue}s=!1}let n=hM(N).join(":"),y=w?n+"!":n,q0=y+Z0;if(R.includes(q0))continue;R.push(q0);let l=$(Z0,s);for(let i=0;i<l.length;++i){let J0=l[i];R.push(y+J0)}A=E+(A.length>0?" "+A:A)}return A};function mM(){let b=0,K,v,_="";while(b<arguments.length)if(K=arguments[b++]){if(v=F9(K))_&&(_+=" "),_+=v}return _}var F9=(b)=>{if(typeof b==="string")return b;let K,v="";for(let _=0;_<b.length;_++)if(b[_]){if(K=F9(b[_]))v&&(v+=" "),v+=K}return v};function yM(b,...K){let v,_,$,R=P;function P(h){let E=K.reduce((N,w)=>w(N),b());return v=gM(E),_=v.cache.get,$=v.cache.set,R=A,A(h)}function A(h){let E=_(h);if(E)return E;let N=uM(h,v);return $(h,N),N}return function(){return R(mM.apply(null,arguments))}}var Y6=(b)=>{let K=(v)=>v[b]||[];return K.isThemeGetter=!0,K},A9=/^\[(?:([a-z-]+):)?(.+)\]$/i,xM=/^\d+\/\d+$/,dM=new Set(["px","full","screen"]),cM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lM=/\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$/,aM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O7=(b)=>cz(b)||dM.has(b)||xM.test(b),r7=(b)=>lz(b,"length",QN),cz=(b)=>Boolean(b)&&!Number.isNaN(Number(b)),y$=(b)=>lz(b,"number",cz),dX=(b)=>Boolean(b)&&Number.isInteger(Number(b)),iM=(b)=>b.endsWith("%")&&cz(b.slice(0,-1)),z1=(b)=>A9.test(b),n7=(b)=>cM.test(b),rM=new Set(["length","size","percentage"]),nM=(b)=>lz(b,rM,R9),tM=(b)=>lz(b,"position",R9),sM=new Set(["image","url"]),eM=(b)=>lz(b,sM,ZN),zN=(b)=>lz(b,"",XN),cX=()=>!0,lz=(b,K,v)=>{let _=A9.exec(b);if(_){if(_[1])return typeof K==="string"?_[1]===K:K.has(_[1]);return v(_[2])}return!1},QN=(b)=>lM.test(b)&&!aM.test(b),R9=()=>!1,XN=(b)=>pM.test(b),ZN=(b)=>oM.test(b);var JN=()=>{let b=Y6("colors"),K=Y6("spacing"),v=Y6("blur"),_=Y6("brightness"),$=Y6("borderColor"),R=Y6("borderRadius"),P=Y6("borderSpacing"),A=Y6("borderWidth"),h=Y6("contrast"),E=Y6("grayscale"),N=Y6("hueRotate"),w=Y6("invert"),T=Y6("gap"),o=Y6("gradientColorStops"),s=Y6("gradientColorStopPositions"),Z0=Y6("inset"),n=Y6("margin"),y=Y6("opacity"),q0=Y6("padding"),l=Y6("saturate"),i=Y6("scale"),J0=Y6("sepia"),F0=Y6("skew"),r0=Y6("space"),Q1=Y6("translate"),y0=()=>["auto","contain","none"],A0=()=>["auto","hidden","clip","visible","scroll"],S0=()=>["auto",z1,K],e=()=>[z1,K],Y0=()=>["",O7,r7],N0=()=>["auto",cz,z1],L0=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],e0=()=>["solid","dashed","dotted","double","none"],P6=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],t1=()=>["start","end","center","between","around","evenly","stretch"],m1=()=>["","0",z1],g0=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X1=()=>[cz,z1];return{cacheSize:500,separator:":",theme:{colors:[cX],spacing:[O7,r7],blur:["none","",n7,z1],brightness:X1(),borderColor:[b],borderRadius:["none","","full",n7,z1],borderSpacing:e(),borderWidth:Y0(),contrast:X1(),grayscale:m1(),hueRotate:X1(),invert:m1(),gap:e(),gradientColorStops:[b],gradientColorStopPositions:[iM,r7],inset:S0(),margin:S0(),opacity:X1(),padding:e(),saturate:X1(),scale:X1(),sepia:m1(),skew:X1(),space:e(),translate:e()},classGroups:{aspect:[{aspect:["auto","square","video",z1]}],container:["container"],columns:[{columns:[n7]}],"break-after":[{"break-after":g0()}],"break-before":[{"break-before":g0()}],"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(),z1]}],overflow:[{overflow:A0()}],"overflow-x":[{"overflow-x":A0()}],"overflow-y":[{"overflow-y":A0()}],overscroll:[{overscroll:y0()}],"overscroll-x":[{"overscroll-x":y0()}],"overscroll-y":[{"overscroll-y":y0()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[Z0]}],"inset-x":[{"inset-x":[Z0]}],"inset-y":[{"inset-y":[Z0]}],start:[{start:[Z0]}],end:[{end:[Z0]}],top:[{top:[Z0]}],right:[{right:[Z0]}],bottom:[{bottom:[Z0]}],left:[{left:[Z0]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",dX,z1]}],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",z1]}],grow:[{grow:m1()}],shrink:[{shrink:m1()}],order:[{order:["first","last","none",dX,z1]}],"grid-cols":[{"grid-cols":[cX]}],"col-start-end":[{col:["auto",{span:["full",dX,z1]},z1]}],"col-start":[{"col-start":N0()}],"col-end":[{"col-end":N0()}],"grid-rows":[{"grid-rows":[cX]}],"row-start-end":[{row:["auto",{span:[dX,z1]},z1]}],"row-start":[{"row-start":N0()}],"row-end":[{"row-end":N0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z1]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z1]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...t1()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...t1(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...t1(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[q0]}],px:[{px:[q0]}],py:[{py:[q0]}],ps:[{ps:[q0]}],pe:[{pe:[q0]}],pt:[{pt:[q0]}],pr:[{pr:[q0]}],pb:[{pb:[q0]}],pl:[{pl:[q0]}],m:[{m:[n]}],mx:[{mx:[n]}],my:[{my:[n]}],ms:[{ms:[n]}],me:[{me:[n]}],mt:[{mt:[n]}],mr:[{mr:[n]}],mb:[{mb:[n]}],ml:[{ml:[n]}],"space-x":[{"space-x":[r0]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[r0]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z1,K]}],"min-w":[{"min-w":[z1,K,"min","max","fit"]}],"max-w":[{"max-w":[z1,K,"none","full","min","max","fit","prose",{screen:[n7]},n7]}],h:[{h:[z1,K,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z1,K,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z1,K,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z1,K,"auto","min","max","fit"]}],"font-size":[{text:["base",n7,r7]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",y$]}],"font-family":[{font:[cX]}],"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",z1]}],"line-clamp":[{"line-clamp":["none",cz,y$]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O7,z1]}],"list-image":[{"list-image":["none",z1]}],"list-style-type":[{list:["none","disc","decimal",z1]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[b]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[b]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...e0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O7,r7]}],"underline-offset":[{"underline-offset":["auto",O7,z1]}],"text-decoration-color":[{decoration:[b]}],"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",z1]}],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",z1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L0(),tM]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eM]}],"bg-color":[{bg:[b]}],"gradient-from-pos":[{from:[s]}],"gradient-via-pos":[{via:[s]}],"gradient-to-pos":[{to:[s]}],"gradient-from":[{from:[o]}],"gradient-via":[{via:[o]}],"gradient-to":[{to:[o]}],rounded:[{rounded:[R]}],"rounded-s":[{"rounded-s":[R]}],"rounded-e":[{"rounded-e":[R]}],"rounded-t":[{"rounded-t":[R]}],"rounded-r":[{"rounded-r":[R]}],"rounded-b":[{"rounded-b":[R]}],"rounded-l":[{"rounded-l":[R]}],"rounded-ss":[{"rounded-ss":[R]}],"rounded-se":[{"rounded-se":[R]}],"rounded-ee":[{"rounded-ee":[R]}],"rounded-es":[{"rounded-es":[R]}],"rounded-tl":[{"rounded-tl":[R]}],"rounded-tr":[{"rounded-tr":[R]}],"rounded-br":[{"rounded-br":[R]}],"rounded-bl":[{"rounded-bl":[R]}],"border-w":[{border:[A]}],"border-w-x":[{"border-x":[A]}],"border-w-y":[{"border-y":[A]}],"border-w-s":[{"border-s":[A]}],"border-w-e":[{"border-e":[A]}],"border-w-t":[{"border-t":[A]}],"border-w-r":[{"border-r":[A]}],"border-w-b":[{"border-b":[A]}],"border-w-l":[{"border-l":[A]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...e0(),"hidden"]}],"divide-x":[{"divide-x":[A]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[A]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:e0()}],"border-color":[{border:[$]}],"border-color-x":[{"border-x":[$]}],"border-color-y":[{"border-y":[$]}],"border-color-s":[{"border-s":[$]}],"border-color-e":[{"border-e":[$]}],"border-color-t":[{"border-t":[$]}],"border-color-r":[{"border-r":[$]}],"border-color-b":[{"border-b":[$]}],"border-color-l":[{"border-l":[$]}],"divide-color":[{divide:[$]}],"outline-style":[{outline:["",...e0()]}],"outline-offset":[{"outline-offset":[O7,z1]}],"outline-w":[{outline:[O7,r7]}],"outline-color":[{outline:[b]}],"ring-w":[{ring:Y0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[b]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[O7,r7]}],"ring-offset-color":[{"ring-offset":[b]}],shadow:[{shadow:["","inner","none",n7,zN]}],"shadow-color":[{shadow:[cX]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...P6(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":P6()}],filter:[{filter:["","none"]}],blur:[{blur:[v]}],brightness:[{brightness:[_]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",n7,z1]}],grayscale:[{grayscale:[E]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[w]}],saturate:[{saturate:[l]}],sepia:[{sepia:[J0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[v]}],"backdrop-brightness":[{"backdrop-brightness":[_]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[E]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[l]}],"backdrop-sepia":[{"backdrop-sepia":[J0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[P]}],"border-spacing-x":[{"border-spacing-x":[P]}],"border-spacing-y":[{"border-spacing-y":[P]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z1]}],duration:[{duration:X1()}],ease:[{ease:["linear","in","out","in-out",z1]}],delay:[{delay:X1()}],animate:[{animate:["none","spin","ping","pulse","bounce",z1]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[i]}],"scale-x":[{"scale-x":[i]}],"scale-y":[{"scale-y":[i]}],rotate:[{rotate:[dX,z1]}],"translate-x":[{"translate-x":[Q1]}],"translate-y":[{"translate-y":[Q1]}],"skew-x":[{"skew-x":[F0]}],"skew-y":[{"skew-y":[F0]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z1]}],accent:[{accent:["auto",b]}],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",z1]}],"caret-color":[{caret:[b]}],"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",z1]}],fill:[{fill:[b,"none"]}],"stroke-w":[{stroke:[O7,r7,y$]}],stroke:[{stroke:[b,"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 P9=yM(JN);var E9=X0(J6(),1),N5=X0(a1(),1),oz=X0(J6(),1),H4=X0(a1(),1),T9=X0(a1(),1),o$=X0(a1(),1),iz=X0(J6(),1),W6=X0(a1(),1),f9=X0(J6(),1),m6=X0(a1(),1),aX=X0(a1(),1),b0=X0(a1(),1),S4=X0(a1(),1),r$=X0(a1(),1),E0=X0(a1(),1),$6=X0(a1(),1),F1=X0(a1(),1),_0=X0(a1(),1),l0=X0(a1(),1),lX=X0(a1(),1),c5=X0(J6(),1),m0=X0(a1(),1),_7=X0(J6(),1),M0=X0(a1(),1),k4=X0(a1(),1),oN=X0(J6(),1),S9=X0(a1(),1),n$=X0(J6(),1),t$=X0(a1(),1),iN=X0(J6(),1),h9=X0(a1(),1),g9=X0(J6(),1),j9=X0(a1(),1),rN=X0(J6(),1),u9=X0(a1(),1),m9=X0(a1(),1),y9=X0(a1(),1),HN=Object.defineProperty,bN=(b,K,v)=>(K in b)?HN(b,K,{enumerable:!0,configurable:!0,writable:!0,value:v}):b[K]=v,GN=(b,K,v)=>bN(b,typeof K!=="symbol"?K+"":K,v);function u1(...b){return P9(O9(b))}var Rk=[{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)}],Pk=[{id:"thread-1",title:"Trip to Europe",preview:"Planning a 5-day trip...",createdAt:new Date(Date.now()-86400000),updatedAt:new Date(Date.now()-3600000),messageCount:12},{id:"thread-2",title:"Restaurant Recommendations",preview:"Looking for good places...",createdAt:new Date(Date.now()-172800000),updatedAt:new Date(Date.now()-86400000),messageCount:8},{id:"thread-3",title:"Budget Planning",preview:"Help with monthly budget",createdAt:new Date(Date.now()-259200000),updatedAt:new Date(Date.now()-172800000),messageCount:15}];function $N(b=1000){return new Promise((K)=>{setTimeout(()=>{K({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})},b)})}function UN(b){let K=b.toLowerCase();if(K.includes("analyze")||K.includes("analysis"))return`Analysis complete for "${b}". 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(K.includes("sales")||K.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(K.includes("report")||K.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(K.includes("data")||K.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(K.includes("customer")||K.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 qN(b){let K=UN(b),v=b.toLowerCase(),_=[],$;if(v.includes("sales")||v.includes("revenue")||v.includes("analyze"))_.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(v.includes("customer")||v.includes("user"))_.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(v.includes("task")||v.includes("todo")||v.includes("work")||v.includes("completed"))_.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:{}}]}),$={type:"update_database",payload:{table:"tasks",operation:"mark_as_viewed",taskIds:["task-1","task-2","task-3"],timestamp:new Date().toISOString()}};if(v.includes("analyze")||v.includes("analysis"))$={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:K,widgets:_,action:$}}function KN(b,K,v,_,$=30){let{message:R,widgets:P}=qN(b),A=R.split(" "),h=0,E=setInterval(()=>{try{if(h<A.length)K({type:"token",content:A[h]+" "}),h++;else{clearInterval(E),P.forEach((w)=>{K({type:"widget",widget:w})});let N=`mock_thread_${Date.now()}`;K({type:"complete"}),v(N)}}catch(N){clearInterval(E),_(N instanceof Error?N:Error("Mock streaming error"))}},$)}function BN(b){return new Promise((K,v)=>{let _=new FileReader;_.onload=()=>{let R=_.result.split(",")[1];K(R)},_.onerror=()=>v(Error("Failed to read file")),_.readAsDataURL(b)})}function vN(b){if(b.startsWith("image/"))return"image";return"document"}function ON(b){return["image/jpeg","image/png","image/gif","image/webp","application/pdf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(b.type)}async function LN(b){let K=await BN(b);return{type:vN(b.type),source:{type:"base64",media_type:b.type,data:K}}}async function _N(b){let K=Array.from(b);return await Promise.all(K.map((_)=>LN(_)))}async function M9(b,K){if(!K||K.length===0)return b;let v=[];if(b.trim())v.push({type:"text",text:b.trim()});let _=await _N(K);return v.push(..._),v}function MY(b){if(b<1024)return`${b} B`;if(b<1048576)return`${(b/1024).toFixed(1)} KB`;return`${(b/1048576).toFixed(1)} MB`}var N9=10485760;function w9(b){if(!ON(b))return{valid:!1,error:`Unsupported file type: ${b.type}`};if(b.size>N9)return{valid:!1,error:`File too large: ${MY(b.size)} (max ${MY(N9)})`};return{valid:!0}}var WN=["list","table"];function FN(b){let K=[],v=!1,_=b.match(/"items"\s*:\s*\[/);if(!_)return{items:K,isStreaming:!1};let $=b.indexOf("[",_.index);if($===-1)return{items:K,isStreaming:!0};let R=0,P=!1,A=!1,h=-1;for(let w=$+1;w<b.length;w++){let T=b[w];if(A){A=!1;continue}if(T==="\\"&&P){A=!0;continue}if(T==='"'){P=!P;continue}if(P)continue;if(T==="{"){if(R===0)h=w;R++}else if(T==="}"){if(R--,R===0&&h!==-1){let o=b.slice(h,w+1);try{let s=JSON.parse(o);if(!s.id)s.id=`item-${K.length}-${a$(o)}`;K.push(s)}catch(s){}h=-1}}else if(T==="]"&&R===0){v=!1;break}}if(R>0||h!==-1)v=!0;let E=b.slice($);if(p$(E,0)===-1)v=!0;return{items:K,isStreaming:v}}function a$(b){let K=0;for(let v=0;v<b.length;v++){let _=b.charCodeAt(v);K=(K<<5)-K+_,K=K&K}return Math.abs(K).toString(36)}function p$(b,K){let v=0,_=!1,$=!1;for(let R=K;R<b.length;R++){let P=b[R];if($){$=!1;continue}if(P==="\\"&&_){$=!0;continue}if(P==='"'){_=!_;continue}if(_)continue;if(P==="["||P==="{")v++;else if(P==="]"||P==="}"){if(v--,v===0)return R}}return-1}function PY(b){let K=[],v=!1,_=!1,$=0,R=null,P=b,A=b.lastIndexOf("@ui:");if(A!==-1){let N=b.slice(A),w=N.match(/^@ui:(\w+)/);if(w){let T=w[1],o=N.indexOf("[");if(o===-1)P=b.slice(0,A),R=T,_=!0;else{let s=A+o;if(p$(b,s)===-1)if(WN.includes(T)){let n=b.slice(s+1),{items:y,isStreaming:q0}=FN(n);if(y.length>0){P=b.slice(0,A);let l=`widget-${T}-streaming-${a$(n)}`,i=P.replace(/[\s:;\-–—\.]+$/g,"").trim();if(i)K.push({type:"text",content:i});K.push({type:"widget",widget:{type:T,id:l,props:T==="table"?{rows:y,columns:[]}:{items:y},isStreaming:q0}}),v=!0,_=!1,P=""}else P=b.slice(0,A),R=T,_=!0}else P=b.slice(0,A),R=T,_=!0}}}if(_)P=P.replace(/[\s:;\-–—\.]+$/g,"");let h=/@ui:(\w+)\[/g,E;while((E=h.exec(P))!==null){let N=E[1],w=E.index+E[0].length-1,T=p$(P,w);if(T===-1)continue;let o=P.slice(w+1,T);if(E.index>$){let s=P.slice($,E.index).trim();if(s)K.push({type:"text",content:s})}try{let s=o.trim(),Z0=JSON.parse(s),n=`widget-${N}-${a$(s)}`,{metadata:y,actions:q0,...l}=Z0;K.push({type:"widget",widget:{type:N,id:n,props:l,...q0&&{actions:q0},...y&&{metadata:y}}}),v=!0}catch(s){}$=T+1,h.lastIndex=$}if($<P.length){let N=P.slice($).trim();if(N)K.push({type:"text",content:N})}if(K.length===0&&P.trim())K.push({type:"text",content:P.trim()});if(R)K.push({type:"widget_pending",pendingType:R});return{segments:K,hasWidgets:v,hasPendingWidget:_}}var D9={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"}]}]'}},AN=Object.keys(D9),RN=["flow"],I9=AN.filter((b)=>!RN.includes(b));function PN(b){let K=b||I9,v=`
|
|
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 _ of K){let $=D9[_];if(!$)continue;v+=`${_}: ${$.schema} | ${$.example}
|
|
182
|
+
`}return v+=`
|
|
183
|
+
Per-item "metadata" is sent as payload on action click.
|
|
184
|
+
`,v}function MN(b){return`
|
|
185
|
+
Widgets: @ui:type[{json}] - MUST use square brackets []. Example: @ui:list[{"items": [...]}]. Types: ${(b||I9).join(", ")}. Per-item "metadata" is sent as action payload.
|
|
186
|
+
`}function NN({widget:b,onAction:K}){let{title:v,description:_,image:$,footer:R}=b.props;return N5.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[$&&N5.jsx("img",{src:$,alt:v,className:"w-full h-48 object-cover"}),N5.jsxs("div",{className:"p-4",children:[N5.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white",children:v}),_&&N5.jsx("p",{className:"!text-neutral-600 dark:!text-neutral-400 mt-2",children:_})]}),(R||b.actions&&b.actions.length>0)&&N5.jsxs("div",{className:"border-t border-neutral-200 dark:border-neutral-700 p-4 flex justify-between items-center",children:[R&&N5.jsx("span",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:R}),b.actions&&b.actions.length>0&&N5.jsx("div",{className:"flex gap-2",children:b.actions.map((P,A)=>N5.jsx("button",{onClick:()=>K?.({type:P.type,payload:P.payload,widgetId:b.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:P.label},A))})]})]})}function VN({widget:b,onAction:K}){let{items:v}=b.props,_=b.isStreaming??!1,$=oz.useRef(new Set),[R,P]=oz.useState(new Set);return oz.useEffect(()=>{let A=new Set(v.map((E)=>E.id)),h=new Set;if(v.forEach((E)=>{if(!$.current.has(E.id))h.add(E.id)}),v.forEach((E)=>$.current.add(E.id)),h.size>0){P(h);let E=setTimeout(()=>{P(new Set)},500);return()=>clearTimeout(E)}},[v]),H4.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[v.map((A,h)=>{let E=R.has(A.id),N=h===v.length-1;return H4.jsxs("div",{className:`apteva-list-item flex items-center p-4 transition-colors ${!N||_?"border-b border-neutral-200 dark:border-neutral-700":""} ${!A.backgroundColor?"hover:bg-neutral-50 dark:hover:bg-neutral-800":""} ${E?"apteva-list-item-new":""}`,style:A.backgroundColor?{backgroundColor:A.backgroundColor}:void 0,children:[A.image&&H4.jsx("img",{src:A.image,alt:A.title,className:"w-16 h-16 rounded object-cover"}),H4.jsxs("div",{className:`flex-1 ${A.image?"ml-4":""}`,children:[H4.jsx("h4",{className:"font-semibold !text-neutral-900 dark:!text-white",children:A.title}),A.subtitle&&H4.jsx("p",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:A.subtitle}),A.description&&H4.jsx("p",{className:"!text-xs !text-neutral-500 dark:!text-neutral-500 mt-1",children:A.description})]}),b.actions&&b.actions.length>0&&H4.jsx("div",{className:"flex gap-2",children:b.actions.map((w,T)=>H4.jsx("button",{onClick:()=>K?.({type:w.type,payload:A.metadata||A,widgetId:b.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:w.label},T))})]},A.id)}),_&&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 kN({widget:b,onAction:K}){let{label:v,variant:_="primary",disabled:$=!1}=b.props;return T9.jsx("button",{onClick:()=>b.actions?.[0]&&K?.({type:b.actions[0].type,payload:b.actions[0].payload,widgetId:b.id,timestamp:new Date}),disabled:$,className:u1("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"}[_],{"opacity-50 cursor-not-allowed":$}),children:v})}function wN({widget:b,onAction:K}){let{layout:v="horizontal",buttons:_}=b.props,$={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"},R=(P)=>{return b.actions?.find((A)=>A.payload?.buttonId===P)||b.actions?.[0]};return o$.jsx("div",{className:u1("flex gap-2",v==="vertical"?"flex-col":"flex-row flex-wrap"),children:_.map((P)=>{let A=R(P.id);return o$.jsx("button",{onClick:()=>{if(A)K?.({type:A.type,payload:{...A.payload,buttonId:P.id},widgetId:b.id,timestamp:new Date})},className:u1("px-4 py-2 rounded-lg font-medium transition-colors text-sm",$[P.variant||"secondary"]),children:P.label},P.id)})})}function DN({widget:b,onAction:K}){let{columns:v,rows:_,caption:$,compact:R=!1,striped:P=!1}=b.props,A=b.isStreaming??!1,h=iz.useRef(new Set),[E,N]=iz.useState(new Set);iz.useEffect(()=>{let T=new Set;if(_.forEach((o,s)=>{let Z0=o.id||`row-${s}`;if(!h.current.has(Z0))T.add(Z0)}),_.forEach((o,s)=>{let Z0=o.id||`row-${s}`;h.current.add(Z0)}),T.size>0){N(T);let o=setTimeout(()=>{N(new Set)},500);return()=>clearTimeout(o)}},[_]);let w=(T)=>{switch(T){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return W6.jsx("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:W6.jsx("div",{className:"overflow-x-auto",children:W6.jsxs("table",{className:"w-full",children:[$&&W6.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:$}),W6.jsx("thead",{children:W6.jsx("tr",{className:"bg-neutral-50 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:v.map((T)=>W6.jsx("th",{className:u1("font-semibold text-neutral-900 dark:text-white",R?"px-3 py-2 text-xs":"px-4 py-3 text-sm",w(T.align)),style:T.width?{width:T.width}:void 0,children:T.label},T.key))})}),W6.jsxs("tbody",{children:[_.map((T,o)=>{let s=T.id||`row-${o}`,Z0=E.has(s);return W6.jsx("tr",{className:u1("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",P&&o%2===1&&"bg-neutral-50/50 dark:bg-neutral-800/50",Z0&&"apteva-table-row-new"),onClick:()=>{if(b.actions&&b.actions.length>0)K?.({type:b.actions[0].type,payload:T,widgetId:b.id,timestamp:new Date})},style:{cursor:b.actions?.length?"pointer":"default"},children:v.map((n)=>W6.jsx("td",{className:u1("text-neutral-700 dark:text-neutral-300",R?"px-3 py-2 text-xs":"px-4 py-3 text-sm",w(n.align)),children:T[n.key]??"—"},n.key))},s)}),_.length===0&&!A&&W6.jsx("tr",{children:W6.jsx("td",{colSpan:v.length||1,className:"px-4 py-8 text-center text-sm text-neutral-500 dark:text-neutral-400",children:"No data available"})}),A&&W6.jsx("tr",{className:"apteva-table-streaming",children:W6.jsx("td",{colSpan:v.length||1,className:"px-4 py-3 text-center",children:W6.jsxs("div",{className:"flex items-center justify-center gap-3 text-neutral-500 dark:text-neutral-400",children:[W6.jsxs("div",{className:"flex gap-1",children:[W6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),W6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),W6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),W6.jsx("span",{className:"text-sm",children:"Loading more..."})]})})})]})]})})})}function IN({widget:b,onAction:K}){let{title:v,fields:_}=b.props,[$,R]=f9.useState(()=>{let N={};return _.forEach((w)=>{N[w.name]=w.defaultValue??(w.type==="checkbox"?!1:"")}),N}),P=(N,w)=>{R((T)=>({...T,[N]:w}))},A=(N)=>{if(N.preventDefault(),b.actions?.[0]&&K)K({type:b.actions[0].type,payload:{...b.actions[0].payload,formData:$},widgetId:b.id,timestamp:new Date})},h=(N)=>{switch(N.type){case"text":case"password":case"number":case"date":return m6.jsx("input",{type:N.type,name:N.name,value:$[N.name]||"",onChange:(T)=>P(N.name,N.type==="number"?Number(T.target.value):T.target.value),placeholder:N.placeholder,required:N.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 m6.jsx("textarea",{name:N.name,value:$[N.name]||"",onChange:(T)=>P(N.name,T.target.value),placeholder:N.placeholder,required:N.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 m6.jsxs("select",{name:N.name,value:$[N.name]||"",onChange:(T)=>P(N.name,T.target.value),required:N.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:[m6.jsx("option",{value:"",children:N.placeholder||"Select..."}),N.options?.map((T)=>m6.jsx("option",{value:T.value,children:T.label},T.value))]});case"checkbox":return m6.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[m6.jsx("input",{type:"checkbox",name:N.name,checked:$[N.name]||!1,onChange:(T)=>P(N.name,T.target.checked),className:"w-4 h-4 rounded border-neutral-300 dark:border-neutral-600 text-blue-500 focus:ring-blue-500"}),m6.jsx("span",{className:"!text-neutral-700 dark:!text-neutral-300",children:N.label})]});default:return null}},E=b.actions?.find((N)=>N.type==="submit")||b.actions?.[0];return m6.jsxs("form",{onSubmit:A,className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[m6.jsxs("div",{className:"p-4",children:[v&&m6.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white mb-4",children:v}),m6.jsx("div",{className:"space-y-3",children:_.map((N)=>m6.jsxs("div",{className:N.type==="checkbox"?"":"space-y-1",children:[N.type!=="checkbox"&&m6.jsxs("label",{className:"block !text-sm font-medium !text-neutral-600 dark:!text-neutral-400",children:[N.label,N.required&&m6.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),h(N)]},N.name))})]}),E&&m6.jsx("div",{className:"px-4 pb-4",children:m6.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:E.label||"Submit"})})]})}function EN({widget:b}){let{src:K,alt:v,caption:_}=b.props;return aX.jsxs("figure",{className:"overflow-hidden rounded-xl",children:[aX.jsx("img",{src:K,alt:v,className:"w-full h-auto object-contain bg-neutral-100 dark:bg-neutral-800",loading:"lazy"}),_&&aX.jsx("figcaption",{className:"mt-2 text-center text-sm text-neutral-600 dark:text-neutral-400",children:_})]})}function TN({type:b,status:K}){if(K==="completed")return b0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})});if(K==="error")return b0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})});if(K==="active")return b0.jsx("div",{className:"w-3.5 h-3.5 rounded-full bg-current animate-pulse"});let v="w-4 h-4";if(b==="time"||b==="schedule"||b==="clock")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})});if(b==="recurring"||b==="repeat")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="agent"||b?.startsWith("@"))return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="email"||b==="mail")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="slack"||b==="message"||b==="chat")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="webhook"||b==="api")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="build"||b==="compile"||b==="package")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="test"||b==="check"||b==="verify")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="deploy"||b==="rocket"||b==="launch")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})});if(b==="push"||b==="upload"||b==="cloud")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="generate"||b==="create"||b==="document"||b==="file")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="review"||b==="inspect"||b==="eye")return b0.jsxs("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[b0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),b0.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(b==="analyze"||b==="research"||b==="chart")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="scrape"||b==="crawl"||b==="spider")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="data"||b==="database"||b==="storage")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="notification"||b==="bell"||b==="alert")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="transform"||b==="process"||b==="convert")return b0.jsx("svg",{className:v,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})});return b0.jsx("div",{className:"w-2 h-2 rounded-full bg-current opacity-50"})}function fN({icon:b}){if(b==="research"||b==="multi-agent"||b==="agents")return b0.jsx("div",{className:"w-10 h-10 rounded-lg bg-purple-100 dark:bg-purple-500/20 flex items-center justify-center",children:b0.jsx("svg",{className:"w-6 h-6 text-purple-600 dark:text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(b==="schedule"||b==="report"||b==="calendar")return b0.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-100 dark:bg-amber-500/20 flex items-center justify-center",children:b0.jsx("svg",{className:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="recurring"||b==="repeat"||b==="sync")return b0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:b0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="analyze"||b==="analysis"||b==="chart")return b0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:b0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="deploy"||b==="rocket"||b==="launch")return b0.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-500/20 flex items-center justify-center",children:b0.jsx("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(b==="automation"||b==="workflow"||b==="process")return b0.jsx("div",{className:"w-10 h-10 rounded-lg bg-indigo-100 dark:bg-indigo-500/20 flex items-center justify-center",children:b0.jsx("svg",{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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(b==="data"||b==="pipeline"||b==="etl")return b0.jsx("div",{className:"w-10 h-10 rounded-lg bg-emerald-100 dark:bg-emerald-500/20 flex items-center justify-center",children:b0.jsx("svg",{className:"w-6 h-6 text-emerald-600 dark:text-emerald-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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 b0.jsx("div",{className:"w-10 h-10 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center",children:b0.jsx("svg",{className:"w-6 h-6 text-neutral-600 dark:text-neutral-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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 CN(){return b0.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:b0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}var M5={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 SN(b,K){if(b.color&&M5[b.color])return M5[b.color];if(K==="time"||K==="schedule"||K==="clock")return M5.blue;if(K==="agent"||K?.startsWith("@"))return M5.purple;if(K==="email"||K==="slack"||K==="message"||K==="notification")return M5.cyan;if(K==="generate"||K==="document"||K==="create")return M5.amber;if(K==="deploy"||K==="rocket"||K==="launch")return M5.rose;if(K==="build"||K==="compile"||K==="package")return M5.indigo;if(K==="test"||K==="check"||K==="verify")return M5.emerald;if(K==="data"||K==="database"||K==="storage")return M5.orange;return M5.blue}function hN({widget:b}){let{title:K,subtitle:v,icon:_,steps:$}=b.props;return b0.jsxs("div",{className:"rounded-xl bg-white dark:bg-neutral-900 border border-neutral-200 dark:border-neutral-700 overflow-hidden",children:[b0.jsxs("div",{className:"px-4 py-4 flex items-center gap-4",children:[b0.jsx(fN,{icon:_}),b0.jsxs("div",{className:"flex-1 min-w-0",children:[b0.jsx("h3",{className:"font-semibold text-base text-neutral-900 dark:text-white truncate",children:K}),v&&b0.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 truncate mt-0.5",children:v})]})]}),b0.jsx("div",{className:"px-4 pb-4",children:b0.jsx("div",{className:"flex flex-wrap items-center gap-2",children:$.map((R,P)=>{let A=P===$.length-1,h=R.status==="active",E=R.status==="completed",N=R.status==="error",w=R.status==="skipped",T=R.label,o=R.type;if(!o)if(T.startsWith("@"))o="agent";else if(/^\d+[ap]m$/i.test(T)||/^(mon|tue|wed|thu|fri|sat|sun)/i.test(T))o="time";else{let n=T.toLowerCase();o={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"}[n]}let s,Z0="";if(h)s="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(E)s="bg-emerald-100 dark:bg-emerald-900/40 !text-emerald-700 dark:!text-emerald-300 border-emerald-400 dark:border-emerald-400";else if(N)s="bg-red-100 dark:bg-red-900/40 !text-red-700 dark:!text-red-300 border-red-400 dark:border-red-400";else if(w)s="bg-neutral-100 dark:bg-neutral-800 !text-neutral-400 dark:!text-neutral-500 border-neutral-300 dark:border-neutral-600",Z0="line-through";else s=SN(R,o);return b0.jsxs("div",{className:"flex items-center gap-2",children:[b0.jsxs("span",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium border transition-colors ${s} ${Z0}`,children:[b0.jsx(TN,{type:o,status:R.status}),T]}),!A&&b0.jsx(CN,{})]},R.id)})})})]})}function i$({widget:b,onAction:K}){return S4.jsx("div",{className:"apteva-widget",children:(()=>{switch(b.type){case"card":return S4.jsx(NN,{widget:b,onAction:K});case"list":return S4.jsx(VN,{widget:b,onAction:K});case"button":return S4.jsx(kN,{widget:b,onAction:K});case"button_group":return S4.jsx(wN,{widget:b,onAction:K});case"table":return S4.jsx(DN,{widget:b,onAction:K});case"form":return S4.jsx(IN,{widget:b,onAction:K});case"image":return S4.jsx(EN,{widget:b});case"flow":return S4.jsx(hN,{widget:b});default:return S4.jsxs("div",{className:"p-4 border border-yellow-300 bg-yellow-50 rounded-lg",children:[S4.jsxs("p",{className:"text-sm text-yellow-800",children:["Unknown widget type: ",b.type]}),S4.jsx("pre",{className:"text-xs mt-2 overflow-auto",children:JSON.stringify(b,null,2)})]})}})()})}function c$({widgets:b,onAction:K,onWidgetMount:v,layout:_="stack",spacing:$="normal",columns:R=3,className:P}){E9.useEffect(()=>{b.forEach((E)=>{v?.(E.id)})},[b,v]);let A={stack:"flex flex-col",grid:`grid grid-cols-1 md:grid-cols-${R}`,masonry:"columns-1 md:columns-2 lg:columns-3"},h={tight:"gap-2",normal:"gap-4",loose:"gap-6"};return r$.jsx("div",{className:u1(A[_],h[$],P),children:b.map((E)=>r$.jsx(i$,{widget:E,onAction:K},E.id))})}function V9({type:b,className:K}){switch(b){case"card":return E0.jsx("div",{className:u1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",K),children:E0.jsxs("div",{className:"p-4 space-y-3",children:[E0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"}),E0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"}),E0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-5/6"})]})});case"list":return E0.jsx("div",{className:u1("apteva-widget-skeleton animate-pulse space-y-2",K),children:[1,2,3].map((v)=>E0.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border border-neutral-200 dark:border-neutral-800",children:[E0.jsx("div",{className:"w-10 h-10 bg-neutral-200 dark:bg-neutral-700 rounded-full flex-shrink-0"}),E0.jsxs("div",{className:"flex-1 space-y-2",children:[E0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2"}),E0.jsx("div",{className:"h-2 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"})]})]},v))});case"button_group":return E0.jsxs("div",{className:u1("apteva-widget-skeleton animate-pulse flex gap-2",K),children:[E0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),E0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),E0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"})]});case"form":return E0.jsxs("div",{className:u1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4 space-y-4",K),children:[E0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/3"}),E0.jsxs("div",{className:"space-y-3",children:[E0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"}),E0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"})]}),E0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})]});case"chart":return E0.jsxs("div",{className:u1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",K),children:[E0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/4 mb-4"}),E0.jsxs("div",{className:"flex items-end gap-2 h-32",children:[E0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/2"}),E0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-3/4"}),E0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/3"}),E0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-full"}),E0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-2/3"})]})]});case"image":return E0.jsx("div",{className:u1("apteva-widget-skeleton animate-pulse",K),children:E0.jsx("div",{className:"aspect-video bg-neutral-200 dark:bg-neutral-700 rounded-lg"})});case"gallery":return E0.jsx("div",{className:u1("apteva-widget-skeleton animate-pulse grid grid-cols-3 gap-2",K),children:[1,2,3].map((v)=>E0.jsx("div",{className:"aspect-square bg-neutral-200 dark:bg-neutral-700 rounded-lg"},v))});case"map":return E0.jsx("div",{className:u1("apteva-widget-skeleton animate-pulse",K),children:E0.jsx("div",{className:"h-48 bg-neutral-200 dark:bg-neutral-700 rounded-lg flex items-center justify-center",children:E0.jsxs("svg",{className:"w-8 h-8 text-neutral-400 dark:text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[E0.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"}),E0.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 E0.jsxs("div",{className:u1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",K),children:[E0.jsxs("div",{className:"flex bg-neutral-100 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:[E0.jsx("div",{className:"flex-1 px-4 py-3",children:E0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-16"})}),E0.jsx("div",{className:"flex-1 px-4 py-3",children:E0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-20"})}),E0.jsx("div",{className:"flex-1 px-4 py-3",children:E0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-14"})})]}),[1,2,3].map((v)=>E0.jsxs("div",{className:"flex border-b border-neutral-200 dark:border-neutral-800 last:border-b-0",children:[E0.jsx("div",{className:"flex-1 px-4 py-3",children:E0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})}),E0.jsx("div",{className:"flex-1 px-4 py-3",children:E0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-16"})}),E0.jsx("div",{className:"flex-1 px-4 py-3",children:E0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-20"})})]},v))]});default:return E0.jsxs("div",{className:u1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",K),children:[E0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2 mb-2"}),E0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"})]})}}function gN(b){return/\.(jpg|jpeg|png|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(b)}function j8(b,K=""){let v=[],_=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|(\*\*|__)(.+?)\5|`([^`]+)`/g,$=0,R,P=0;while((R=_.exec(b))!==null){if(R.index>$)v.push(b.slice($,R.index));if(R[1]!==void 0||R[2]!==void 0){let A=R[1]||"",h=R[2];v.push($6.jsx("img",{src:h,alt:A,className:"apteva-md-img"},`${K}img${P++}`))}else if(R[3]!==void 0||R[4]!==void 0){let A=R[3],h=R[4];if(gN(h))v.push($6.jsx("img",{src:h,alt:A,className:"apteva-md-img"},`${K}img${P++}`));else v.push($6.jsx("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:"apteva-md-link",children:A},`${K}a${P++}`))}else if(R[5]!==void 0)v.push($6.jsx("strong",{children:R[6]},`${K}b${P++}`));else if(R[7]!==void 0)v.push($6.jsx("code",{className:"apteva-md-inline-code",children:R[7]},`${K}code${P++}`));$=R.index+R[0].length}if($<b.length)v.push(b.slice($));return v.length>0?v:[b]}function jN(b){let K=b.split(`
|
|
187
|
+
`),v=[],_=0,$=0;while($<K.length){let R=K[$],P=R.match(/^##\s+(.*)$/);if(P){v.push($6.jsx("h2",{className:"apteva-md-h2",children:j8(P[1],`${_}`)},`h2${_++}`)),$++;continue}let A=R.match(/^###\s+(.*)$/);if(A){v.push($6.jsx("h3",{className:"apteva-md-h3",children:j8(A[1],`${_}`)},`h3${_++}`)),$++;continue}let h=R.match(/^(\s*)([-*+])\s+(.*)$/);if(h){let w=[],T=h[1].length;while($<K.length){let o=K[$].match(/^(\s*)([-*+])\s+(.*)$/);if(o&&o[1].length===T)w.push($6.jsx("li",{className:"apteva-md-li",children:j8(o[3],`${_}`)},`li${_++}`)),$++;else break}v.push($6.jsx("ul",{className:"apteva-md-ul",children:w},`ul${_++}`));continue}let E=R.match(/^(\s*)(\d+)\.\s+(.*)$/);if(E){let w=[],T=E[1].length;while($<K.length){let o=K[$].match(/^(\s*)(\d+)\.\s+(.*)$/);if(o&&o[1].length===T)w.push($6.jsx("li",{className:"apteva-md-li",children:j8(o[3],`${_}`)},`li${_++}`)),$++;else break}v.push($6.jsx("ol",{className:"apteva-md-ol",children:w},`ol${_++}`));continue}if(R.match(/^\|(.+)\|$/)&&$+1<K.length){if(K[$+1].match(/^\|([\s:-]+\|)+$/)){let o=R.split("|").filter((Z0)=>Z0.trim()!=="").map((Z0)=>Z0.trim());$+=2;let s=[];while($<K.length)if(K[$].match(/^\|(.+)\|$/)){let n=K[$].split("|").filter((y)=>y.trim()!=="").map((y)=>y.trim());s.push(n),$++}else break;v.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:o.map((Z0,n)=>$6.jsx("th",{className:"apteva-md-th",children:j8(Z0,`th${_}${n}`)},`th${n}`))})}),$6.jsx("tbody",{children:s.map((Z0,n)=>$6.jsx("tr",{children:Z0.map((y,q0)=>$6.jsx("td",{className:"apteva-md-td",children:j8(y,`td${_}${n}${q0}`)},`td${q0}`))},`tr${n}`))})]})},`table-wrapper${_++}`));continue}}if(R==="")v.push($6.jsx("br",{},`br${_++}`));else v.push($6.jsxs("span",{children:[j8(R,`${_}`),$<K.length-1?`
|
|
188
|
+
`:""]},`p${_++}`));$++}return v}function L7({content:b,className:K=""}){return $6.jsx("div",{className:`apteva-md ${K}`,children:jN(b)})}function uN({name:b,status:K,isReceiving:v=!1,inputLength:_=0,streamOutput:$}){if(K==="preparing")return F1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-preparing",children:[F1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[F1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),F1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),F1.jsxs("span",{className:"apteva-tool-label",children:[F1.jsx("strong",{children:b}),F1.jsx("span",{className:"apteva-tool-status-text",children:" preparing..."})]})]});if(K==="running")return F1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-running",children:[F1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[F1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),F1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),F1.jsxs("span",{className:"apteva-tool-label",children:[F1.jsx("strong",{children:b}),$?F1.jsx("span",{className:"apteva-tool-stream-separator",children:" · "}):null,$?F1.jsx("span",{className:"apteva-tool-stream-output",children:$}):F1.jsxs(F1.Fragment,{children:[F1.jsx("span",{className:"apteva-tool-status-text",children:" running"}),F1.jsxs("span",{className:"apteva-tool-dots",children:[F1.jsx("span",{children:"."}),F1.jsx("span",{children:"."}),F1.jsx("span",{children:"."})]})]})]})]});if(K==="completed")return F1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-completed",children:[F1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:F1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),F1.jsx("span",{className:"apteva-tool-label",children:b})]});return F1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-error",children:[F1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:F1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),F1.jsxs("span",{className:"apteva-tool-label",children:[b," failed"]})]})}function mN({message:b,onAction:K,enableWidgets:v,onWidgetRender:_}){let $=b.role==="user",R=b.metadata?.content_segments,P=b.metadata?.isStreaming===!0,A=b.content||R&&R.length>0,h=u8.useRef(new Set),E=u8.useMemo(()=>{if(!v||$||!b.content)return[];return PY(b.content).segments.filter((i)=>i.type==="widget"&&!!i.widget).map((i)=>i.widget)},[v,$,b.content]);u8.useEffect(()=>{if(_&&b.widgets){for(let l of b.widgets)if(!h.current.has(l.id))h.current.add(l.id),_(l)}},[b.widgets,_]),u8.useEffect(()=>{if(_&&E.length>0){for(let l of E)if(!h.current.has(l.id))h.current.add(l.id),_(l)}},[E,_]);let N=(l)=>{if(!v||$)return _0.jsx(L7,{content:l});let J0=PY(l).segments.filter((F0)=>F0.type==="text"&&F0.content).map((F0)=>F0.content).join("");if(!J0.trim())return null;return _0.jsx(L7,{content:J0})},w=()=>{if(!v||$||!b.content)return null;let l=PY(b.content),i=[],J0="";if(l.segments.forEach((F0,r0)=>{if(F0.type==="text"&&F0.content)J0+=F0.content;else if(F0.type==="widget"&&F0.widget){if(J0.trim())i.push(_0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:_0.jsx("div",{className:"apteva-message-content-assistant",children:_0.jsx(L7,{content:J0})})},`text-${r0}`)),J0="";i.push(_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(i$,{widget:F0.widget,onAction:K})},`widget-${r0}`))}else if(F0.type==="widget_pending"&&F0.pendingType){if(J0.trim())i.push(_0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:_0.jsx("div",{className:"apteva-message-content-assistant",children:_0.jsx(L7,{content:J0})})},`text-${r0}`)),J0="";i.push(_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(V9,{type:F0.pendingType})},`pending-${r0}`))}}),J0.trim())i.push(_0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:_0.jsx("div",{className:"apteva-message-content-assistant",children:_0.jsx(L7,{content:J0})})},"text-final"));return i.length>0?i:null},T=b.metadata?.attachments||[],o=T.length>0,s=()=>{if(!o)return null;return _0.jsx("div",{className:"apteva-message-attachments flex flex-wrap gap-2 mb-2 justify-end",children:T.map((l,i)=>{let J0=l.type.startsWith("image/"),F0=l.type==="application/pdf";if(J0&&l.preview)return _0.jsx("div",{className:"apteva-attachment-image relative rounded-lg overflow-hidden shadow-sm",children:_0.jsx("img",{src:l.preview,alt:l.name,className:"max-w-[150px] max-h-[150px] object-cover"})},i);return _0.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:[_0.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:F0?_0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:_0.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"})}):_0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:_0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),_0.jsxs("div",{className:"flex flex-col min-w-0",children:[_0.jsx("span",{className:"text-sm font-medium text-neutral-800 dark:text-neutral-200 truncate max-w-[180px]",children:l.name}),_0.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[F0?"PDF":"Document"," · ",MY(l.size)]})]})]},i)})})},Z0=()=>{if($)return _0.jsx("div",{className:"apteva-message-text",children:b.content});if(P&&!A)return _0.jsxs("div",{className:"apteva-typing-indicator",children:[_0.jsx("span",{}),_0.jsx("span",{}),_0.jsx("span",{})]});if(R&&R.length>0)return null;return N(b.content)},n=(l,i)=>{if(!v)return _0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:_0.jsx("div",{className:"apteva-message-content-assistant",children:_0.jsx(L7,{content:l})})},i);let J0=PY(l),F0=[],r0="";if(J0.segments.forEach((Q1,y0)=>{if(Q1.type==="text"&&Q1.content)r0+=Q1.content;else if(Q1.type==="widget"&&Q1.widget){if(r0.trim())F0.push(_0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:_0.jsx("div",{className:"apteva-message-content-assistant",children:_0.jsx(L7,{content:r0})})},`${i}-text-${y0}`)),r0="";F0.push(_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(i$,{widget:Q1.widget,onAction:K})},`${i}-widget-${y0}`))}else if(Q1.type==="widget_pending"&&Q1.pendingType){if(r0.trim())F0.push(_0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:_0.jsx("div",{className:"apteva-message-content-assistant",children:_0.jsx(L7,{content:r0})})},`${i}-text-${y0}`)),r0="";F0.push(_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(V9,{type:Q1.pendingType})},`${i}-pending-${y0}`))}}),r0.trim())F0.push(_0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:_0.jsx("div",{className:"apteva-message-content-assistant",children:_0.jsx(L7,{content:r0})})},`${i}-text-final`));return F0},y=()=>{if(!R||R.length===0)return null;let l=[];return R.forEach((i,J0)=>{if(i.type==="text"&&i.content){let F0=n(i.content,`seg-${J0}`);if(Array.isArray(F0))l.push(...F0);else l.push(F0)}else if(i.type==="tool")l.push(_0.jsx("div",{className:"apteva-tool-call-standalone",children:_0.jsx(uN,{name:i.name,status:i.status||(i.result!==void 0?"completed":"running"),isReceiving:i.isReceiving,inputLength:i.inputLength,streamOutput:i.streamOutput})},i.id))}),l};if(!$&&(R&&R.length>0))return _0.jsxs("div",{className:"apteva-message-segmented",children:[y(),b.widgets&&b.widgets.length>0&&_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(c$,{widgets:b.widgets,onAction:K,layout:"stack"})}),_0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:b.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});let q0=w();if(!$&&v&&q0)return _0.jsxs("div",{className:"apteva-message-segmented",children:[q0,b.widgets&&b.widgets.length>0&&_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(c$,{widgets:b.widgets,onAction:K,layout:"stack"})}),_0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:b.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});if($&&o)return _0.jsxs("div",{className:"apteva-message-segmented apteva-message-user-with-attachments flex flex-col items-end",children:[s(),b.content&&_0.jsx("div",{className:"apteva-message-bubble apteva-message-user",children:_0.jsx("div",{className:"apteva-message-content-user",children:_0.jsx("div",{className:"apteva-message-text",children:b.content})})}),_0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-user",suppressHydrationWarning:!0,children:b.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});return _0.jsxs("div",{className:u1("apteva-message-bubble",$?"apteva-message-user":"apteva-message-assistant"),children:[_0.jsx("div",{className:$?"apteva-message-content-user":"apteva-message-content-assistant",children:Z0()}),b.widgets&&b.widgets.length>0&&_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(c$,{widgets:b.widgets,onAction:K,layout:"stack"})}),_0.jsx("div",{className:u1("apteva-message-timestamp",$?"apteva-message-timestamp-user":"apteva-message-timestamp-assistant"),suppressHydrationWarning:!0,children:b.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})}var k9=()=>l0.jsx("svg",{className:"w-12 h-12 sm:w-16 sm:h-16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l0.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"})}),l$=()=>l0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})});function yN({title:b,subtitle:K,icon:v,prompts:_,variant:$="centered",chatVariant:R="default",onPromptClick:P}){let A=(_||[]).map((N)=>typeof N==="string"?{text:N}:N),h=A.length>0,E=b||K||v;if(!E&&!h)return l0.jsx("div",{className:"flex items-center justify-center h-full !text-neutral-500 dark:!text-neutral-400",children:l0.jsxs("div",{className:"text-center space-y-2",children:[l0.jsx("div",{className:"flex justify-center",children:l0.jsx(k9,{})}),l0.jsx("p",{className:"text-sm",children:"No messages yet. Start a conversation!"})]})});if($==="minimal")return l0.jsxs("div",{className:"flex flex-col h-full px-4 py-4",children:[E&&l0.jsxs("div",{className:"mb-4",children:[b&&l0.jsx("h2",{className:"text-lg font-semibold !text-neutral-900 dark:!text-white",children:b}),K&&l0.jsx("p",{className:"text-sm !text-neutral-500 dark:!text-neutral-400 mt-1",children:K})]}),h&&l0.jsx("div",{className:"flex-1 space-y-2",children:A.map((N,w)=>l0.jsx("button",{onClick:()=>P(N.text),className:u1("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:l0.jsxs("div",{className:"flex items-center gap-3",children:[l0.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:N.icon||l0.jsx(l$,{})}),l0.jsxs("div",{className:"flex-1 min-w-0",children:[l0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white truncate",children:N.text}),N.description&&l0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 truncate",children:N.description})]})]})},w))})]});return l0.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 py-6 sm:py-8",children:[l0.jsxs("div",{className:"text-center mb-6 sm:mb-8 max-w-md",children:[l0.jsx("div",{className:"mb-4 !text-neutral-400 dark:!text-neutral-500 flex justify-center",children:v||l0.jsx(k9,{})}),b&&l0.jsx("h1",{className:"text-xl sm:text-2xl font-semibold !text-neutral-900 dark:!text-white mb-2",children:b}),K&&l0.jsx("p",{className:"text-sm sm:text-base !text-neutral-500 dark:!text-neutral-400",children:K})]}),h&&l0.jsxs("div",{className:"w-full max-w-2xl",children:[l0.jsx("div",{className:"sm:hidden space-y-2",children:A.map((N,w)=>l0.jsx("button",{onClick:()=>P(N.text),className:u1("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:l0.jsxs("div",{className:"flex items-center gap-3",children:[l0.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:N.icon||l0.jsx(l$,{})}),l0.jsxs("div",{className:"flex-1 min-w-0",children:[l0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white",children:N.text}),N.description&&l0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 line-clamp-1",children:N.description})]}),l0.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:l0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})},w))}),l0.jsx("div",{className:"hidden sm:grid sm:grid-cols-2 gap-3",children:A.map((N,w)=>l0.jsx("button",{onClick:()=>P(N.text),className:u1("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:l0.jsxs("div",{className:"flex items-start gap-3",children:[l0.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:N.icon||l0.jsx(l$,{})}),l0.jsxs("div",{className:"flex-1 min-w-0",children:[l0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white leading-snug",children:N.text}),N.description&&l0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-1 line-clamp-2",children:N.description})]})]})},w))})]})]})}function xN({messages:b,onAction:K,welcomeTitle:v,welcomeSubtitle:_,welcomeIcon:$,suggestedPrompts:R,welcomeVariant:P,chatVariant:A,onPromptClick:h,enableWidgets:E,onWidgetRender:N}){let w=pz.useRef(null),T=pz.useRef(!0),o=pz.useRef(0),s=()=>{if(w.current){let{scrollTop:Z0,scrollHeight:n,clientHeight:y}=w.current;T.current=n-Z0-y<100}};return pz.useEffect(()=>{if(w.current&&T.current){let Z0=w.current.scrollHeight;if(Z0!==o.current)w.current.scrollTop=Z0,o.current=Z0}},[b]),lX.jsx("div",{ref:w,className:"apteva-message-list apteva-scrollbar-hidden",onScroll:s,children:b.length===0?lX.jsx(yN,{title:v,subtitle:_,icon:$,prompts:R,variant:P,chatVariant:A,onPromptClick:h||(()=>{})}):b.map((Z0)=>lX.jsx("div",{className:Z0.role==="user"?"apteva-message-row-user":"apteva-message-row-assistant",children:lX.jsx(mN,{message:Z0,onAction:K,enableWidgets:E,onWidgetRender:N})},Z0.id))})}function dN({onSendMessage:b,placeholder:K="Type a message...",disabled:v=!1,isLoading:_=!1,onStop:$,onFileUpload:R,onSwitchMode:P}){let[A,h]=c5.useState(""),[E,N]=c5.useState(!1),[w,T]=c5.useState([]),[o,s]=c5.useState(null),[Z0,n]=c5.useState(!1),y=c5.useRef(null),q0=c5.useRef(null),l=c5.useRef(null),i=(A0)=>{if(A0.key==="Enter"&&!A0.shiftKey)A0.preventDefault(),J0()},J0=()=>{let A0=A.trim(),S0=w.length>0;if((A0||S0)&&!v){let e=w.map((Y0)=>Y0.file);if(b(A.trim(),e.length>0?e:void 0),h(""),T([]),s(null),n(!1),y.current)y.current.style.height="auto"}},F0=(A0)=>{h(A0.target.value),A0.target.style.height="auto";let S0=A0.target.scrollHeight;A0.target.style.height=`${S0}px`;let e=A0.target.value.includes(`
|
|
189
|
+
`),N0=S0>36;if(!Z0&&(e||N0))n(!0);else if(Z0&&!e&&!N0&&A0.target.value.length<20)n(!1)},r0=(A0)=>{if(A0.target.files&&A0.target.files.length>0){let S0=Array.from(A0.target.files),e=[],Y0=[];if(S0.forEach((N0)=>{let L0=w9(N0);if(L0.valid){let e0={file:N0};if(N0.type.startsWith("image/"))e0.preview=URL.createObjectURL(N0);e.push(e0)}else Y0.push(L0.error||"Invalid file")}),e.length>0)T((N0)=>[...N0,...e]);if(Y0.length>0)s(Y0.join(", ")),setTimeout(()=>s(null),5000);R?.(A0.target.files),N(!1),A0.target.value=""}},Q1=(A0)=>{T((S0)=>{let e=S0[A0];if(e.preview)URL.revokeObjectURL(e.preview);return S0.filter((Y0,N0)=>N0!==A0)})},y0=(A0)=>{if(A0.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(A0==="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"})})};return m0.jsxs("div",{className:"px-4 py-3 relative",children:[o&&m0.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:m0.jsxs("div",{className:"flex items-center gap-2 !text-red-700 dark:!text-red-300 text-sm",children:[m0.jsx("svg",{className:"w-4 h-4 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:o})]})}),w.length>0&&m0.jsx("div",{className:"mb-2 flex flex-wrap gap-2",children:w.map((A0,S0)=>m0.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:[A0.preview?m0.jsx("img",{src:A0.preview,alt:A0.file.name,className:"w-8 h-8 object-cover rounded"}):m0.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:y0(A0.file.type)}),m0.jsxs("div",{className:"flex flex-col min-w-0",children:[m0.jsx("span",{className:"text-xs font-medium !text-neutral-700 dark:!text-neutral-300 truncate max-w-[120px]",children:A0.file.name}),m0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:MY(A0.file.size)})]}),m0.jsx("button",{onClick:()=>Q1(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:m0.jsx("svg",{className:"w-3 h-3",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"})})})]},S0))}),m0.jsxs("div",{className:"apteva-composer",style:{gridTemplateColumns:"auto 1fr auto",gridTemplateAreas:Z0?'"textarea textarea textarea" "plus . send"':'"plus textarea send"',alignItems:"end"},children:[m0.jsxs("div",{className:"relative flex-shrink-0 self-end",style:{gridArea:"plus"},children:[m0.jsx("button",{ref:l,onClick:()=>N(!E),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:m0.jsx("svg",{width:"20",height:"20",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"})})}),E&&m0.jsxs(m0.Fragment,{children:[m0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>N(!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:l.current?.getBoundingClientRect().left??0,bottom:window.innerHeight-(l.current?.getBoundingClientRect().top??0)+8},children:[m0.jsxs("button",{onClick:()=>{q0.current?.click(),N(!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"})]}),P&&m0.jsxs("button",{onClick:()=>{P(),N(!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:"M13 10V3L4 14h7v7l9-11h-7z"})}),m0.jsx("span",{className:"!text-sm font-medium",children:"Switch to command mode"})]})]})]})]}),m0.jsx("textarea",{ref:y,value:A,onChange:F0,onKeyDown:i,placeholder:K,disabled:v,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}),m0.jsx("div",{className:"self-end",style:{gridArea:"send"},children:_&&$?m0.jsx("button",{onClick:$,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"})})}):m0.jsx("button",{onClick:J0,disabled:!A.trim()&&w.length===0||v,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:m0.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m0.jsx("path",{d:"M8 3L8 13M8 3L4 7M8 3L12 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})]}),m0.jsx("input",{ref:q0,type:"file",multiple:!0,onChange:r0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}function cN({onExecute:b,state:K,response:v,error:_,plan:$,streamedContent:R,toolName:P,onApprove:A,onReject:h,onReset:E,onStop:N,onExpand:w,placeholder:T="Enter your command...",disabled:o=!1}){let[s,Z0]=_7.useState(""),[n,y]=_7.useState([]),[q0,l]=_7.useState(null),[i,J0]=_7.useState(!1),F0=_7.useRef(null),r0=_7.useRef(null),Q1=_7.useRef(null),y0=()=>{let g0=s.trim(),X1=n.length>0;if((g0||X1)&&!o&&K==="idle"){let M1=n.map((U6)=>U6.file);b(s.trim(),M1.length>0?M1:void 0),Z0(""),y([])}},A0=(g0)=>{if(g0.key==="Enter"&&!g0.shiftKey)g0.preventDefault(),y0()},S0=()=>{E?.(),F0.current?.focus()},e=(g0)=>{if(Z0(g0),F0.current)F0.current.style.height="auto",F0.current.style.height=`${Math.min(F0.current.scrollHeight,120)}px`},Y0=(g0)=>{if(g0.target.files&&g0.target.files.length>0){let X1=Array.from(g0.target.files),M1=[],U6=[];if(X1.forEach((s1)=>{let p1=w9(s1);if(p1.valid){let q6={file:s1};if(s1.type.startsWith("image/"))q6.preview=URL.createObjectURL(s1);M1.push(q6)}else U6.push(p1.error||"Invalid file")}),M1.length>0)y((s1)=>[...s1,...M1]);if(U6.length>0)l(U6.join(", ")),setTimeout(()=>l(null),5000);J0(!1),g0.target.value=""}},N0=(g0)=>{y((X1)=>{let M1=X1[g0];if(M1.preview)URL.revokeObjectURL(M1.preview);return X1.filter((U6,s1)=>s1!==g0)})},L0=(g0)=>{if(g0.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(g0==="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"})})},e0=()=>{if(K==="loading"){if(P)return{text:P,isToolCall:!0};if(R)return{text:R,isToolCall:!1};return{text:"Processing...",isToolCall:!1}}if(K==="success"&&v)return{text:v,isToolCall:!1};if(K==="error"&&_)return{text:_,isToolCall:!1};if(K==="plan-pending"&&$)return{text:$,isToolCall:!1};return{text:"",isToolCall:!1}},P6=K!=="idle",{text:t1,isToolCall:m1}=e0();return M0.jsxs("div",{className:"w-full relative",children:[q0&&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:q0})]})}),M0.jsxs("div",{className:u1("apteva-composer flex items-center gap-2 px-3 py-2 border-2 bg-white dark:bg-neutral-900 transition-all duration-200",K==="idle"&&"border-neutral-200 dark:border-neutral-700",K==="loading"&&"border-blue-400 dark:border-blue-500",K==="plan-pending"&&"border-amber-400 dark:border-amber-500",K==="success"&&"border-green-400 dark:border-green-500",K==="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:[K==="idle"&&M0.jsxs("div",{className:"relative",children:[M0.jsx("button",{ref:Q1,onClick:()=>J0(!i),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"})})}),i&&M0.jsxs(M0.Fragment,{children:[M0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>J0(!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:Q1.current?.getBoundingClientRect().left??0,top:(Q1.current?.getBoundingClientRect().bottom??0)+8},children:[M0.jsxs("button",{onClick:()=>{r0.current?.click(),J0(!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"})]}),w&&M0.jsxs("button",{onClick:()=>{w(),J0(!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"})]})]})]})]}),K==="loading"&&!P&&M0.jsx("div",{className:"w-4 h-4 border-2 border-blue-200 border-t-blue-500 rounded-full animate-spin"}),K==="loading"&&P&&M0.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]}),n.length>0&&K==="idle"&&M0.jsx("div",{className:"flex items-center gap-1 flex-shrink-0",children:n.map((g0,X1)=>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:g0.file.name,children:[g0.preview?M0.jsx("img",{src:g0.preview,alt:g0.file.name,className:"w-6 h-6 object-cover"}):M0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:L0(g0.file.type)}),M0.jsx("button",{onClick:()=>N0(X1),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"})})})]},X1))}),K==="idle"?M0.jsx("textarea",{ref:F0,value:s,onChange:(g0)=>e(g0.target.value),onKeyDown:A0,placeholder:n.length>0?"Add a message...":T,disabled:o,rows:1,className:u1("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:u1("flex-1 text-sm py-1 truncate flex items-center gap-2",K==="loading"&&!m1&&"!text-neutral-600 dark:!text-neutral-400",K==="loading"&&m1&&"!text-blue-600 dark:!text-blue-400",K==="success"&&"!text-neutral-900 dark:!text-neutral-100",K==="error"&&"!text-red-600 dark:!text-red-400",K==="plan-pending"&&"!text-amber-700 dark:!text-amber-300"),children:m1?M0.jsxs(M0.Fragment,{children:[M0.jsx("span",{className:"font-mono",children:t1}),M0.jsx("span",{className:"text-neutral-400 dark:text-neutral-500",children:"Running..."})]}):t1}),M0.jsx("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:K==="plan-pending"?M0.jsxs("div",{className:"flex items-center gap-1",children:[M0.jsx("button",{onClick:A,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:h,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:[K==="loading"&&N&&M0.jsx("button",{onClick:N,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"})})}),(K==="success"||K==="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"})})}),K==="idle"&&M0.jsx("button",{onClick:y0,disabled:!s.trim()&&n.length===0||o,className:u1("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",s.trim()||n.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:r0,type:"file",multiple:!0,onChange:Y0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}var lN="http://91.99.200.48:3000/agents",aN="agt_894abd5966bc9f1e9f8f17f2a6f6b5e0",pN=class{constructor(){GN(this,"config"),this.config={apiUrl:lN,apiKey:aN}}configure(b){if(b.apiUrl)this.config.apiUrl=b.apiUrl;if(b.apiKey)this.config.apiKey=b.apiKey}getConfig(){return{...this.config}}async chat(b){try{console.log("[AptevaClient] Chat request:",{agent_id:b.agent_id,message:typeof b.message==="string"?b.message.substring(0,100)+"...":"[multi-part message]",system:b.system,stream:b.stream});let K=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify(b)});if(!K.ok){let _=await K.json().catch(()=>({error:"Request failed"}));throw Error(_.error||`Request failed with status ${K.status}`)}let v=await K.json();return{message:v.response||v.message||"",thread_id:v.thread_id,widgets:v.widgets}}catch(K){throw console.error("Chat API error:",K),K}}async chatStream(b,K,v,_){try{console.log("[AptevaClient] Chat stream request:",{agent_id:b.agent_id,message:typeof b.message==="string"?b.message.substring(0,100)+"...":"[multi-part message]",system:b.system,stream:b.stream});let $=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({...b,stream:!0})});if(!$.ok){let E=await $.json().catch(()=>({error:"Request failed"}));throw Error(E.error||`Request failed with status ${$.status}`)}let R=$.body?.getReader();if(!R)throw Error("Response body is not readable");let P=new TextDecoder,A="",h="";while(!0){let{done:E,value:N}=await R.read();if(E)break;A+=P.decode(N,{stream:!0});let w=A.split(`
|
|
190
|
+
`);A=w.pop()||"";for(let T of w){if(!T.trim()||T.startsWith(":"))continue;if(T.startsWith("data: ")){let o=T.slice(6);if(o==="[DONE]"){v?.(h);return}try{let s=JSON.parse(o);if(s.thread_id)h=s.thread_id;K(s)}catch(s){console.warn("[AptevaClient] Failed to parse SSE data:",o)}}}}v?.(h)}catch($){let R=$ instanceof Error?$:Error("Unknown error");throw _?.(R),R}}async createThread(b,K){let v=await fetch(`${this.config.apiUrl}/agents/${b}/threads`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify({metadata:K})});if(!v.ok){let $=await v.json().catch(()=>({error:"Request failed"}));throw Error($.error||`Request failed with status ${v.status}`)}return(await v.json()).thread_id}async getThreadMessages(b){let K=await fetch(`${this.config.apiUrl}/threads/${b}/messages`,{method:"GET",headers:{"X-API-Key":this.config.apiKey}});if(!K.ok){let _=await K.json().catch(()=>({error:"Request failed"}));throw Error(_.error||`Request failed with status ${K.status}`)}return(await K.json()).messages}async cancelRequest(b,K){try{let v=await fetch(`${this.config.apiUrl}/agents/${b}/requests/${K}/cancel`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey}});if(!v.ok){let _=await v.json().catch(()=>({error:"Cancel request failed"}));throw Error(_.error||`Cancel request failed with status ${v.status}`)}}catch(v){throw console.error("[AptevaClient] Cancel request error:",v),v}}},az=new pN,C9=P1.forwardRef(function({agentId:K,threadId:v,initialMessages:_=[],context:$,apiUrl:R,apiKey:P,useMock:A=!1,initialMode:h="chat",showModeToggle:E=!1,onModeChange:N,commandVariant:w="default",planMode:T=!1,onPlanModeChange:o,enableStreaming:s=!0,showProgress:Z0=!0,loadingText:n="Processing...",welcomeTitle:y,welcomeSubtitle:q0,welcomeIcon:l,suggestedPrompts:i,welcomeVariant:J0,onThreadChange:F0,onMessageSent:r0,onAction:Q1,onFileUpload:y0,onComplete:A0,onError:S0,onToolCall:e,onToolResult:Y0,variant:N0="default",placeholder:L0,showHeader:e0=!0,headerTitle:P6="Chat",enableWidgets:t1=!1,availableWidgets:m1,compactWidgetContext:g0=!1,onWidgetRender:X1,className:M1},U6){let[s1,p1]=P1.useState(_),[q6,C1]=P1.useState(!1),[h1,e1]=P1.useState(v||null),[D6,o1]=P1.useState(h),[I6,E6]=P1.useState(null),[g1,a0]=P1.useState("idle"),[M6,F6]=P1.useState(null),[z6,H6]=P1.useState(null),[Z5,y1]=P1.useState(0),[o6,x1]=P1.useState(""),[i6,i1]=P1.useState(""),[Q6,y6]=P1.useState(null),[G4,v6]=P1.useState(null),[N6,H0]=P1.useState(""),[I0,f0]=P1.useState(""),[q1,N1]=P1.useState(T),[b6,S1]=P1.useState(!1),A6=P1.useRef(null),i0=P1.useRef(null);P1.useImperativeHandle(U6,()=>({sendMessage:async(Y1)=>{if(i0.current)await i0.current(Y1)},sendSystemMessage:async(Y1)=>{if(i0.current)await i0.current(Y1,void 0,!0)},getMessages:()=>s1,clearMessages:()=>p1([])}),[s1]);let p0=P1.useMemo(()=>{if(!t1)return $;let Y1=g0?MN(m1):PN(m1);return $?`${$}
|
|
191
|
+
${Y1}`:Y1},[$,t1,m1,g0]);P1.useEffect(()=>{if(R||P)az.configure({...R&&{apiUrl:R},...P&&{apiKey:P}})},[R,P]),P1.useEffect(()=>{if(v)F0?.(v)},[v,F0]),P1.useEffect(()=>{N1(T)},[T]),P1.useEffect(()=>{let Y1=(V1)=>{let j1=V1.target;if(b6&&!j1.closest(".settings-menu-container"))S1(!1)};return document.addEventListener("mousedown",Y1),()=>document.removeEventListener("mousedown",Y1)},[b6]);let L4=(Y1)=>{if(o1(Y1),N?.(Y1),Y1==="command")a0("idle"),F6(null),H6(null)},x6=D6==="chat"?"Type a message...":"Enter your command...",_4=async(Y1,V1,j1)=>{let v1=V1&&V1.length>0,W=v1?V1.map((u)=>({name:u.name,type:u.type,size:u.size,preview:u.type.startsWith("image/")?URL.createObjectURL(u):void 0})):[];if(!j1){let u={id:`msg-${Date.now()}`,role:"user",content:Y1,timestamp:new Date,metadata:v1?{attachments:W}:void 0};p1((a)=>[...a,u]),r0?.(u)}C1(!0);try{let u=await M9(Y1,V1);if(A){let a=await $N(1000);p1((L)=>[...L,a])}else{let a=[],L="",k=[],d=h1,t={},G0={},V0=`msg-${Date.now()}`,W0=()=>{let c=[...a];if(L){let Q0=c[c.length-1];if(Q0&&Q0.type==="text")Q0.content=L;else c.push({type:"text",content:L})}p1((Q0)=>{let w0=Q0[Q0.length-1];if(w0&&w0.role==="assistant")return[...Q0.slice(0,-1),{...w0,content:L,widgets:k.length>0?k:void 0,metadata:{...w0.metadata,content_segments:c,isStreaming:!0}}];else return[...Q0,{id:V0,role:"assistant",content:L,widgets:k.length>0?k:void 0,timestamp:new Date,metadata:{content_segments:c,isStreaming:!0}}]})};await az.chatStream({agent_id:K,message:u,stream:!0,...h1&&{thread_id:h1},...p0&&{system:p0}},(c)=>{switch(c.type){case"thread_id":if(c.thread_id){if(d=c.thread_id,!h1)e1(c.thread_id),F0?.(c.thread_id)}break;case"request_id":if(c.request_id)v6(c.request_id);break;case"content":case"token":if(c.content)L+=c.content,W0();break;case"tool_call":if(c.tool_id&&c.tool_name){let Q0=c.tool_display_name||c.tool_name;if(L)a.push({type:"text",content:L}),L="";a.push({type:"tool",id:c.tool_id,name:Q0,status:"preparing"}),t[c.tool_id]="",E6(Q0),e?.(c.tool_name,c.tool_id),W0()}break;case"tool_input_delta":if(c.tool_id&&c.content){let Q0=c.tool_id;if(t[Q0]===void 0)t[Q0]="";t[Q0]+=c.content;let w0=a.find((H1)=>H1.type==="tool"&&H1.id===Q0);if(w0){if(w0.isReceiving=!0,w0.inputLength=t[Q0].length,W0(),G0[Q0])clearTimeout(G0[Q0]);G0[Q0]=setTimeout(()=>{if(w0.status==="preparing")w0.isReceiving=!1,W0()},150)}}break;case"tool_use":if(c.tool_id){let Q0=a.find((w0)=>w0.type==="tool"&&w0.id===c.tool_id);if(Q0&&Q0.status==="preparing")Q0.status="running",Q0.isReceiving=!1,W0()}break;case"tool_stream":if(c.tool_id){let Q0=a.find((w0)=>w0.type==="tool"&&w0.id===c.tool_id);if(Q0){if(c.event==="chunk"&&c.content){if(Q0.pendingReset)Q0.streamOutput="",Q0.pendingReset=!1;Q0.streamOutput=(Q0.streamOutput||"")+c.content,W0()}else if(c.event==="log"||c.event==="progress")Q0.pendingReset=!0}}break;case"tool_result":if(c.tool_id){let Q0=a.find((w0)=>w0.type==="tool"&&w0.id===c.tool_id);if(Q0)Q0.result=c.content,Q0.status="completed",Q0.isReceiving=!1,Y0?.(Q0.name,c.content);E6(null),W0()}break;case"widget":if(c.widget)k.push(c.widget),W0();break;case"error":throw Error(c.message||"Stream error")}},(c)=>{if(L){let Q0=a[a.length-1];if(Q0&&Q0.type==="text")Q0.content=L;else a.push({type:"text",content:L})}if(p1((Q0)=>{let w0=Q0[Q0.length-1];if(w0&&w0.role==="assistant")return[...Q0.slice(0,-1),{...w0,content:L||"Response received",widgets:k.length>0?k:void 0,metadata:{thread_id:c,content_segments:a,isStreaming:!1}}];return Q0}),c&&c!==h1)e1(c),F0?.(c);C1(!1),v6(null),E6(null)},(c)=>{let Q0={id:`msg-${Date.now()}-error`,role:"assistant",content:`Error: ${c.message}`,timestamp:new Date,metadata:{error:!0}};p1((w0)=>{let H1=w0[w0.length-1];if(H1&&H1.id.includes("streaming"))return[...w0.slice(0,-1),Q0];return[...w0,Q0]}),C1(!1),v6(null),E6(null),S0?.(c)})}}catch(u){let a={id:`msg-${Date.now()}-error`,role:"assistant",content:u instanceof Error?`Error: ${u.message}`:"An error occurred",timestamp:new Date,metadata:{error:!0}};p1((L)=>[...L,a]),S0?.(u instanceof Error?u:Error("Unknown error"))}finally{C1(!1)}};i0.current=_4;let k5=async(Y1,V1)=>{let j1=Y1||o6;if(!j1.trim()&&(!V1||V1.length===0)){H6(Error("Please enter a command")),a0("error");return}if(q1&&g1!=="plan-pending"){if(a0("loading"),H6(null),x1(""),A)setTimeout(()=>{let v1=`1. Analyze the request: "${j1}"
|
|
192
|
+
2. Process the data
|
|
193
|
+
3. Generate response
|
|
194
|
+
4. Return results`;H0(v1),f0(j1),a0("plan-pending")},800);else try{let W=p0?`${p0}
|
|
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.",u=await az.chat({agent_id:K,message:j1,stream:!1,system:W});H0(u.message),f0(j1),a0("plan-pending")}catch(v1){let W=v1 instanceof Error?v1:Error("Failed to generate plan");H6(W),a0("error"),S0?.(W)}return}a0("loading"),H6(null),y1(0),i1(""),x1("");try{if(A)if(s){let v1="";KN(j1,(W)=>{if(W.type==="token"&&W.content){v1+=W.content,i1(v1);let u=Math.min(Math.round(v1.length/10),90);y1(u)}},(W)=>{let u={success:!0,data:{summary:v1,thread_id:W},message:v1||"Command executed successfully"};F6(u),a0("success"),y1(100),A0?.(u)},(W)=>{H6(W),a0("error"),S0?.(W)})}else{await new Promise((W)=>setTimeout(W,1500));let v1={success:!0,data:{summary:`Executed: ${j1}`},message:"Command executed successfully"};F6(v1),a0("success"),y1(100),A0?.(v1)}else{let W=p0?`${p0}
|
|
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.`,u=V1&&V1.length>0?await M9(j1,V1):j1;if(s){let a="",L="";await az.chatStream({agent_id:K,message:u,stream:!0,...h1&&{thread_id:h1},system:W},(k)=>{if((k.type==="token"||k.type==="content")&&k.content){a+=k.content,i1(a),y6(null);let d=Math.min(Math.round(a.length/10),90);y1(d)}else if(k.type==="tool_call"&&k.tool_name){let d=k.tool_display_name||k.tool_name;L=k.tool_name,y6(d),e?.(k.tool_name,k.tool_id||""),a="",i1("")}else if(k.type==="tool_result")Y0?.(L,k.content),y6(null);else if(k.type==="thread_id"&&k.thread_id){if(!h1)e1(k.thread_id),F0?.(k.thread_id)}else if(k.type==="request_id"&&k.request_id)v6(k.request_id)},(k)=>{let d={success:!0,data:{summary:a,thread_id:k},message:a||"Command executed successfully"};F6(d),a0("success"),y1(100),v6(null),A0?.(d)},(k)=>{H6(k),a0("error"),v6(null),S0?.(k)})}else{let a=await az.chat({agent_id:K,message:u,stream:!1,...h1&&{thread_id:h1},system:W}),L={success:!0,data:{summary:a.message,thread_id:a.thread_id},widgets:a.widgets,message:a.message};F6(L),a0("success"),y1(100),A0?.(L)}}}catch(v1){let W=v1 instanceof Error?v1:Error("Unknown error");H6(W),a0("error"),S0?.(W)}},J5=()=>{a0("idle"),F6(null),H6(null),y1(0),x1(""),H0(""),f0(""),i1(""),y6(null)},w5=()=>{let Y1=N6;H0(""),f0("");let V1=`Execute this plan now:
|
|
199
|
+
|
|
200
|
+
${Y1}`;k5(V1)},o4=()=>{x1(I0),H0(""),f0(""),a0("idle")},$4=async()=>{if(G4&&K)try{await az.cancelRequest(K,G4)}catch(Y1){console.error("Failed to cancel request:",Y1)}if(C1(!1),g1==="loading")a0("idle"),i1(""),y6(null),y1(0);v6(null)},Y5=w==="compact";return k4.jsxs("div",{className:u1("apteva-chat flex flex-col h-full",N0!=="default"&&`apteva-chat-${N0}`,M1),children:[e0&&D6==="chat"&&k4.jsx("div",{className:"apteva-chat-header px-4 py-3 flex items-center justify-between",children:k4.jsxs("div",{children:[k4.jsx("div",{className:"apteva-chat-title",children:P6}),k4.jsx("div",{className:u1("apteva-chat-status",q6?I6?"apteva-chat-status-tool":"apteva-chat-status-thinking":"apteva-chat-status-ready"),children:q6?I6?`Using ${I6}...`:"Thinking...":"Ready"})]})}),D6==="chat"&&k4.jsxs(k4.Fragment,{children:[k4.jsx(xN,{messages:s1,onAction:Q1,welcomeTitle:y,welcomeSubtitle:q0,welcomeIcon:l,suggestedPrompts:i,welcomeVariant:J0,chatVariant:N0,onPromptClick:(Y1)=>_4(Y1),enableWidgets:t1,onWidgetRender:X1}),k4.jsx(dN,{onSendMessage:_4,placeholder:L0||x6,disabled:q6,isLoading:q6,onStop:$4,onFileUpload:y0,onSwitchMode:E?()=>L4("command"):void 0})]}),D6==="command"&&k4.jsx("div",{className:"w-full",children:k4.jsx(cN,{onExecute:(Y1,V1)=>{x1(Y1),k5(Y1,V1)},state:g1,response:M6?.data?.summary||M6?.message,error:z6?.message,plan:N6,streamedContent:i6,toolName:Q6,onApprove:w5,onReject:o4,onReset:J5,onStop:$4,onExpand:E?()=>L4("chat"):void 0,placeholder:L0||"Enter your command..."})}),k4.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 b4=X0(w1(),1);function NY({agent:b,onClose:K,onStartAgent:v}){if(b.status==="running"&&b.port)return b4.jsxDEV("div",{className:"w-1/2 flex flex-col overflow-hidden",children:b4.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden relative",children:[b4.jsxDEV("button",{onClick:K,className:"absolute top-3 right-3 z-10 text-[#666] hover:text-[#e0e0e0] transition",children:b4.jsxDEV(h8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b4.jsxDEV(C9,{agentId:"default",apiUrl:`/api/agents/${b.id}`,placeholder:"Message this agent...",context:b.systemPrompt,variant:"terminal",headerTitle:b.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return b4.jsxDEV("div",{className:"w-1/2 flex flex-col overflow-hidden",children:[b4.jsxDEV("div",{className:"border-b border-[#1a1a1a] p-4 flex items-center justify-between",children:[b4.jsxDEV("div",{children:[b4.jsxDEV("h2",{className:"font-semibold",children:b.name},void 0,!1,void 0,this),b4.jsxDEV("p",{className:"text-sm text-[#666]",children:[b.provider," / ",b.model]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),b4.jsxDEV("button",{onClick:K,className:"text-[#666] hover:text-[#e0e0e0] transition",children:b4.jsxDEV(h8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b4.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:b4.jsxDEV("div",{className:"text-center",children:[b4.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),b4.jsxDEV("button",{onClick:v,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 V5=X0(w1(),1);function VY({agents:b,loading:K,selectedAgent:v,onSelectAgent:_,onCloseAgent:$,onToggleAgent:R,onDeleteAgent:P}){return V5.jsxDEV("div",{className:"flex-1 flex overflow-hidden",children:[V5.jsxDEV("div",{className:`${v?"w-1/2 border-r border-[#1a1a1a]":"flex-1"} overflow-auto p-6 transition-all`,children:K?V5.jsxDEV(xz,{message:"Loading agents..."},void 0,!1,void 0,this):b.length===0?V5.jsxDEV(nN,{},void 0,!1,void 0,this):V5.jsxDEV("div",{className:`grid gap-4 ${v?"grid-cols-1 xl:grid-cols-2":"md:grid-cols-2 xl:grid-cols-3"}`,children:b.map((A)=>V5.jsxDEV(FY,{agent:A,selected:v?.id===A.id,onSelect:()=>_(A),onToggle:(h)=>R(A,h),onDelete:(h)=>P(A.id,h)},A.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),v&&V5.jsxDEV(NY,{agent:v,onClose:$,onStartAgent:(A)=>R(v,A)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function nN(){return V5.jsxDEV("div",{className:"text-center py-20 text-[#666]",children:[V5.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),V5.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 A1=X0(w1(),1);function kY({agents:b,loading:K,runningCount:v,configuredProviders:_,onNavigate:$,onSelectAgent:R}){return A1.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[A1.jsxDEV("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[A1.jsxDEV(s$,{label:"Total Agents",value:b.length},void 0,!1,void 0,this),A1.jsxDEV(s$,{label:"Running",value:v,color:"text-[#3b82f6]"},void 0,!1,void 0,this),A1.jsxDEV(s$,{label:"Providers",value:_.length,color:"text-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("div",{className:"grid grid-cols-2 gap-6",children:[A1.jsxDEV(x9,{title:"Agents",actionLabel:"View All",onAction:()=>$("agents"),children:K?A1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"Loading..."},void 0,!1,void 0,this):b.length===0?A1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"No agents yet"},void 0,!1,void 0,this):A1.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:b.slice(0,5).map((P)=>A1.jsxDEV("div",{onClick:()=>R(P),className:"px-4 py-3 hover:bg-[#1a1a1a] cursor-pointer flex items-center justify-between",children:[A1.jsxDEV("div",{children:[A1.jsxDEV("p",{className:"font-medium",children:P.name},void 0,!1,void 0,this),A1.jsxDEV("p",{className:"text-sm text-[#666]",children:P.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("span",{className:`w-2 h-2 rounded-full ${P.status==="running"?"bg-[#3b82f6]":"bg-[#444]"}`},void 0,!1,void 0,this)]},P.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),A1.jsxDEV(x9,{title:"Providers",actionLabel:"Manage",onAction:()=>$("settings"),children:_.length===0?A1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:[A1.jsxDEV("p",{children:"No providers configured"},void 0,!1,void 0,this),A1.jsxDEV("button",{onClick:()=>$("settings"),className:"text-[#f97316] hover:underline mt-1",children:"Add API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):A1.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:_.map((P)=>A1.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[A1.jsxDEV("div",{children:[A1.jsxDEV("p",{className:"font-medium",children:P.name},void 0,!1,void 0,this),A1.jsxDEV("p",{className:"text-sm text-[#666]",children:[P.models.length," models"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("span",{className:"text-green-400 text-sm",children:P.keyHint},void 0,!1,void 0,this)]},P.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 s$({label:b,value:K,color:v}){return A1.jsxDEV("div",{className:"bg-[#111] rounded p-4 border border-[#1a1a1a]",children:[A1.jsxDEV("p",{className:"text-sm text-[#666] mb-1",children:b},void 0,!1,void 0,this),A1.jsxDEV("p",{className:`text-2xl font-semibold ${v||""}`,children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function x9({title:b,actionLabel:K,onAction:v,children:_}){return A1.jsxDEV("div",{className:"bg-[#111] rounded border border-[#1a1a1a] overflow-hidden",children:[A1.jsxDEV("div",{className:"px-4 py-3 border-b border-[#1a1a1a] flex items-center justify-between",children:[A1.jsxDEV("h3",{className:"font-semibold",children:b},void 0,!1,void 0,this),A1.jsxDEV("button",{onClick:v,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_]},void 0,!0,void 0,this)}var h4=X0(w1(),1);function tN(){let{isComplete:b,setIsComplete:K}=g$(),{agents:v,loading:_,runningCount:$,fetchAgents:R,createAgent:P,deleteAgent:A,toggleAgent:h}=S$(b===!0),{providers:E,configuredProviders:N,fetchProviders:w}=h$(b===!0),[T,o]=W7.useState(!1),[s,Z0]=W7.useState(null),[n,y]=W7.useState("dashboard"),[q0,l]=W7.useState(null),[i,J0]=W7.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant."});W7.useEffect(()=>{if(N.length>0&&!i.provider){let Y0=N[0],N0=Y0.models.find((L0)=>L0.recommended)?.value||Y0.models[0]?.value||"";J0((L0)=>({...L0,provider:Y0.id,model:N0}))}},[N,i.provider]),W7.useEffect(()=>{if(s){let Y0=v.find((N0)=>N0.id===s.id);if(Y0)Z0(Y0);else Z0(null)}},[v,s]);let F0=(Y0)=>{let N0=E.find((e0)=>e0.id===Y0),L0=N0?.models.find((e0)=>e0.recommended)?.value||N0?.models[0]?.value||"";J0((e0)=>({...e0,provider:Y0,model:L0}))},r0=async()=>{if(!i.name)return;await P(i);let Y0=N[0],N0=Y0?.models.find((L0)=>L0.recommended)?.value||Y0?.models[0]?.value||"";J0({name:"",model:N0,provider:Y0?.id||"",systemPrompt:"You are a helpful assistant."}),o(!1)},Q1=async(Y0,N0)=>{N0?.stopPropagation(),l(null);let L0=await h(Y0);if(L0.error)l(L0.error)},y0=async(Y0,N0)=>{if(N0?.stopPropagation(),s?.id===Y0)Z0(null);await A(Y0)},A0=(Y0)=>{Z0(Y0),l(null),y("agents")},S0=(Y0)=>{y(Y0),Z0(null)},e=()=>{K(!0),w()};if(b===null)return h4.jsxDEV(xz,{fullScreen:!0},void 0,!1,void 0,this);if(!b)return h4.jsxDEV(_Y,{onComplete:e},void 0,!1,void 0,this);return h4.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex flex-col",children:[h4.jsxDEV(vY,{onNewAgent:()=>o(!0),canCreateAgent:N.length>0},void 0,!1,void 0,this),q0&&h4.jsxDEV(LY,{message:q0,onDismiss:()=>l(null)},void 0,!1,void 0,this),h4.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[h4.jsxDEV(OY,{route:n,agentCount:v.length,onNavigate:S0},void 0,!1,void 0,this),h4.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:[n==="settings"&&h4.jsxDEV(WY,{},void 0,!1,void 0,this),n==="agents"&&h4.jsxDEV(VY,{agents:v,loading:_,selectedAgent:s,onSelectAgent:A0,onCloseAgent:()=>Z0(null),onToggleAgent:Q1,onDeleteAgent:y0},void 0,!1,void 0,this),n==="dashboard"&&h4.jsxDEV(kY,{agents:v,loading:_,runningCount:$,configuredProviders:N,onNavigate:S0,onSelectAgent:A0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),T&&h4.jsxDEV(RY,{form:i,providers:E,configuredProviders:N,onFormChange:J0,onProviderChange:F0,onCreate:r0,onClose:()=>o(!1),onGoToSettings:()=>{o(!1),y("settings")}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var sN=d9.createRoot(document.getElementById("root"));sN.render(h4.jsxDEV(tN,{},void 0,!1,void 0,this));
|
|
212
|
+
|
|
213
|
+
//# debugId=BB37B0336E35DCFC64756E2164756E21
|