apteva 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.wfhmfhx7.js +213 -0
- package/dist/index.html +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/db.ts +43 -3
- package/src/routes/api.ts +12 -4
- package/src/routes/static.ts +2 -2
- package/src/server.ts +10 -2
- package/src/web/App.tsx +3 -0
- package/src/web/components/agents/AgentCard.tsx +28 -1
- package/src/web/components/agents/CreateAgentModal.tsx +46 -1
- package/src/web/components/common/Icons.tsx +50 -0
- package/src/web/components/common/index.ts +13 -1
- package/src/web/components/onboarding/OnboardingWizard.tsx +2 -2
- package/src/web/components/settings/SettingsPage.tsx +2 -2
- package/src/web/hooks/useAgents.ts +2 -1
- package/src/web/index.html +1 -1
- package/src/web/types.ts +20 -0
- package/dist/App.vsvrc987.js +0 -213
package/dist/App.vsvrc987.js
DELETED
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
var $R=Object.create;var{getPrototypeOf:KR,defineProperty:HB,getOwnPropertyNames:UR}=Object;var qR=Object.prototype.hasOwnProperty;var z0=(Y,U,B)=>{B=Y!=null?$R(KR(Y)):{};let _=U||!Y||!Y.__esModule?HB(B,"default",{value:Y,enumerable:!0}):B;for(let G of UR(Y))if(!qR.call(_,G))HB(_,G,{get:()=>Y[G],enumerable:!0});return _};var Tv=(Y,U)=>()=>(U||Y((U={exports:{}}).exports,U),U.exports);var X6=Tv((BR,GZ)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Y="18.3.1",U=Symbol.for("react.element"),B=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),N=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),i=Symbol.for("react.offscreen"),s=Symbol.iterator,Q0="@@iterator";function n(K){if(K===null||typeof K!=="object")return null;var A=s&&K[s]||K[Q0];if(typeof A==="function")return A;return null}var j={current:null},K0={transition:null},a={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},p={current:null},X0={},N0=null;function n0(K){N0=K}X0.setExtraStackFrame=function(K){N0=K},X0.getCurrentStack=null,X0.getStackAddendum=function(){var K="";if(N0)K+=N0;var A=X0.getCurrentStack;if(A)K+=A()||"";return K};var z1=!1,y0=!1,A0=!1,h0=!1,e=!1,Z0={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:K0,ReactCurrentOwner:p};Z0.ReactDebugCurrentFrame=X0,Z0.ReactCurrentActQueue=a;function k0(K){{for(var A=arguments.length,C=Array(A>1?A-1:0),u=1;u<A;u++)C[u-1]=arguments[u];v1("warn",K,C)}}function L0(K){{for(var A=arguments.length,C=Array(A>1?A-1:0),u=1;u<A;u++)C[u-1]=arguments[u];v1("error",K,C)}}function v1(K,A,C){{var u=Z0.ReactDebugCurrentFrame,v0=u.getStackAddendum();if(v0!=="")A+="%s",C=C.concat([v0]);var m0=C.map(function(R0){return String(R0)});m0.unshift("Warning: "+A),Function.prototype.apply.call(console[K],console,m0)}}var F6={};function t1(K,A){{var C=K.constructor,u=C&&(C.displayName||C.name)||"ReactClass",v0=u+"."+A;if(F6[v0])return;L0("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",A,u),F6[v0]=!0}}var d1={isMounted:function(K){return!1},enqueueForceUpdate:function(K,A,C){t1(K,"forceUpdate")},enqueueReplaceState:function(K,A,C,u){t1(K,"replaceState")},enqueueSetState:function(K,A,C,u){t1(K,"setState")}},u0=Object.assign,Q1={};Object.freeze(Q1);function R1(K,A,C){this.props=K,this.context=A,this.refs=Q1,this.updater=C||d1}R1.prototype.isReactComponent={},R1.prototype.setState=function(K,A){if(typeof K!=="object"&&typeof K!=="function"&&K!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,K,A,"setState")},R1.prototype.forceUpdate=function(K){this.updater.enqueueForceUpdate(this,K,"forceUpdate")};{var $6={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(K,A){Object.defineProperty(R1.prototype,K,{get:function(){k0("%s(...) is deprecated in plain JavaScript React classes. %s",A[0],A[1]);return}})};for(var o1 in $6)if($6.hasOwnProperty(o1))s1(o1,$6[o1])}function K6(){}K6.prototype=R1.prototype;function C1(K,A,C){this.props=K,this.context=A,this.refs=Q1,this.updater=C||d1}var h1=C1.prototype=new K6;h1.constructor=C1,u0(h1,R1.prototype),h1.isPureReactComponent=!0;function e1(){var K={current:null};return Object.seal(K),K}var D6=Array.isArray;function i1(K){return D6(K)}function I6(K){{var A=typeof Symbol==="function"&&Symbol.toStringTag,C=A&&K[Symbol.toStringTag]||K.constructor.name||"Object";return C}}function f6(K){try{return g1(K),!1}catch(A){return!0}}function g1(K){return""+K}function o0(K){if(f6(K))return L0("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",I6(K)),g1(K)}function R6(K,A,C){var u=K.displayName;if(u)return u;var v0=A.displayName||A.name||"";return v0!==""?C+"("+v0+")":C}function N6(K){return K.displayName||"Context"}function v6(K){if(K==null)return null;if(typeof K.tag==="number")L0("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof K==="function")return K.displayName||K.name||null;if(typeof K==="string")return K;switch(K){case _:return"Fragment";case B:return"Portal";case P:return"Profiler";case G:return"StrictMode";case f:return"Suspense";case R:return"SuspenseList"}if(typeof K==="object")switch(K.$$typeof){case N:var A=K;return N6(A)+".Consumer";case F:var C=K;return N6(C._context)+".Provider";case T:return R6(K,K.render,"ForwardRef");case w:var u=K.displayName||null;if(u!==null)return u;return v6(K.type)||"Memo";case E:{var v0=K,m0=v0._payload,R0=v0._init;try{return v6(R0(m0))}catch(c0){return null}}}return null}var J6=Object.prototype.hasOwnProperty,X5={key:!0,ref:!0,__self:!0,__source:!0},j1,i6,y1;y1={};function p6(K){if(J6.call(K,"ref")){var A=Object.getOwnPropertyDescriptor(K,"ref").get;if(A&&A.isReactWarning)return!1}return K.ref!==void 0}function p1(K){if(J6.call(K,"key")){var A=Object.getOwnPropertyDescriptor(K,"key").get;if(A&&A.isReactWarning)return!1}return K.key!==void 0}function b6(K,A){var C=function(){if(!j1)j1=!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)",A)};C.isReactWarning=!0,Object.defineProperty(K,"key",{get:C,configurable:!0})}function j6(K,A){var C=function(){if(!i6)i6=!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)",A)};C.isReactWarning=!0,Object.defineProperty(K,"ref",{get:C,configurable:!0})}function H4(K){if(typeof K.ref==="string"&&p.current&&K.__self&&p.current.stateNode!==K.__self){var A=v6(p.current.type);if(!y1[A])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',A,K.ref),y1[A]=!0}}var B6=function(K,A,C,u,v0,m0,R0){var c0={$$typeof:U,type:K,key:A,ref:C,props:R0,_owner:m0};if(c0._store={},Object.defineProperty(c0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(c0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v0}),Object.freeze)Object.freeze(c0.props),Object.freeze(c0);return c0};function M6(K,A,C){var u,v0={},m0=null,R0=null,c0=null,H1=null;if(A!=null){if(p6(A))R0=A.ref,H4(A);if(p1(A))o0(A.key),m0=""+A.key;c0=A.__self===void 0?null:A.__self,H1=A.__source===void 0?null:A.__source;for(u in A)if(J6.call(A,u)&&!X5.hasOwnProperty(u))v0[u]=A[u]}var D1=arguments.length-2;if(D1===1)v0.children=C;else if(D1>1){var c1=Array(D1);for(var x1=0;x1<D1;x1++)c1[x1]=arguments[x1+2];if(Object.freeze)Object.freeze(c1);v0.children=c1}if(K&&K.defaultProps){var z6=K.defaultProps;for(u in z6)if(v0[u]===void 0)v0[u]=z6[u]}if(m0||R0){var O6=typeof K==="function"?K.displayName||K.name||"Unknown":K;if(m0)b6(v0,O6);if(R0)j6(v0,O6)}return B6(K,m0,R0,c0,H1,p.current,v0)}function J0(K,A){var C=B6(K.type,A,K.ref,K._self,K._source,K._owner,K.props);return C}function f0(K,A,C){if(K===null||K===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+K+".");var u,v0=u0({},K.props),m0=K.key,R0=K.ref,c0=K._self,H1=K._source,D1=K._owner;if(A!=null){if(p6(A))R0=A.ref,D1=p.current;if(p1(A))o0(A.key),m0=""+A.key;var c1;if(K.type&&K.type.defaultProps)c1=K.type.defaultProps;for(u in A)if(J6.call(A,u)&&!X5.hasOwnProperty(u))if(A[u]===void 0&&c1!==void 0)v0[u]=c1[u];else v0[u]=A[u]}var x1=arguments.length-2;if(x1===1)v0.children=C;else if(x1>1){var z6=Array(x1);for(var O6=0;O6<x1;O6++)z6[O6]=arguments[O6+2];v0.children=z6}return B6(K.type,m0,R0,c0,H1,D1,v0)}function C0(K){return typeof K==="object"&&K!==null&&K.$$typeof===U}var K1=".",M1=":";function Y6(K){var A=/[=:]/g,C={"=":"=0",":":"=2"},u=K.replace(A,function(v0){return C[v0]});return"$"+u}var S1=!1,A6=/\/+/g;function r0(K){return K.replace(A6,"$&/")}function i0(K,A){if(typeof K==="object"&&K!==null&&K.key!=null)return o0(K.key),Y6(""+K.key);return A.toString(36)}function _4(K,A,C,u,v0){var m0=typeof K;if(m0==="undefined"||m0==="boolean")K=null;var R0=!1;if(K===null)R0=!0;else switch(m0){case"string":case"number":R0=!0;break;case"object":switch(K.$$typeof){case U:case B:R0=!0}}if(R0){var c0=K,H1=v0(c0),D1=u===""?K1+i0(c0,0):u;if(i1(H1)){var c1="";if(D1!=null)c1=r0(D1)+"/";_4(H1,A,c1,"",function(EZ){return EZ})}else if(H1!=null){if(C0(H1)){if(H1.key&&(!c0||c0.key!==H1.key))o0(H1.key);H1=J0(H1,C+(H1.key&&(!c0||c0.key!==H1.key)?r0(""+H1.key)+"/":"")+D1)}A.push(H1)}return 1}var x1,z6,O6=0,_1=u===""?K1:u+M1;if(i1(K))for(var bv=0;bv<K.length;bv++)x1=K[bv],z6=_1+i0(x1,bv),O6+=_4(x1,A,C,z6,v0);else{var av=n(K);if(typeof av==="function"){var Y8=K;if(av===Y8.entries){if(!S1)k0("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");S1=!0}var fZ=av.call(Y8),o5,H8=0;while(!(o5=fZ.next()).done)x1=o5.value,z6=_1+i0(x1,H8++),O6+=_4(x1,A,C,z6,v0)}else if(m0==="object"){var G8=String(K);throw Error("Objects are not valid as a React child (found: "+(G8==="[object Object]"?"object with keys {"+Object.keys(K).join(", ")+"}":G8)+"). If you meant to render a collection of children, use an array instead.")}}return O6}function y6(K,A,C){if(K==null)return K;var u=[],v0=0;return _4(K,u,"","",function(m0){return A.call(C,m0,v0++)}),u}function W4(K){var A=0;return y6(K,function(){A++}),A}function w5(K,A,C){y6(K,function(){A.apply(this,arguments)},C)}function Z5(K){return y6(K,function(A){return A})||[]}function V5(K){if(!C0(K))throw Error("React.Children.only expected to receive a single React element child.");return K}function p4(K){var A={$$typeof:N,_currentValue:K,_currentValue2:K,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};A.Provider={$$typeof:F,_context:A};var C=!1,u=!1,v0=!1;{var m0={$$typeof:N,_context:A};Object.defineProperties(m0,{Provider:{get:function(){if(!u)u=!0,L0("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");return A.Provider},set:function(R0){A.Provider=R0}},_currentValue:{get:function(){return A._currentValue},set:function(R0){A._currentValue=R0}},_currentValue2:{get:function(){return A._currentValue2},set:function(R0){A._currentValue2=R0}},_threadCount:{get:function(){return A._threadCount},set:function(R0){A._threadCount=R0}},Consumer:{get:function(){if(!C)C=!0,L0("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");return A.Consumer}},displayName:{get:function(){return A.displayName},set:function(R0){if(!v0)k0("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",R0),v0=!0}}}),A.Consumer=m0}return A._currentRenderer=null,A._currentRenderer2=null,A}var G4=-1,J5=0,J1=1,k1=2;function u1(K){if(K._status===G4){var A=K._result,C=A();if(C.then(function(m0){if(K._status===J5||K._status===G4){var R0=K;R0._status=J1,R0._result=m0}},function(m0){if(K._status===J5||K._status===G4){var R0=K;R0._status=k1,R0._result=m0}}),K._status===G4){var u=K;u._status=J5,u._result=C}}if(K._status===J1){var v0=K._result;if(v0===void 0)L0(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
-
|
|
3
|
-
Your code should look like:
|
|
4
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
-
|
|
6
|
-
Did you accidentally put curly braces around the import?`,v0);if(!("default"in v0))L0(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
|
-
|
|
8
|
-
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,v0);return v0.default}else throw K._result}function B1(K){var A={_status:G4,_result:K},C={$$typeof:E,_payload:A,_init:u1};{var u,v0;Object.defineProperties(C,{defaultProps:{configurable:!0,get:function(){return u},set:function(m0){L0("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),u=m0,Object.defineProperty(C,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return v0},set:function(m0){L0("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),v0=m0,Object.defineProperty(C,"propTypes",{enumerable:!0})}}})}return C}function W(K){{if(K!=null&&K.$$typeof===w)L0("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");else if(typeof K!=="function")L0("forwardRef requires a render function but was given %s.",K===null?"null":typeof K);else if(K.length!==0&&K.length!==2)L0("forwardRef render functions accept exactly two parameters: props and ref. %s",K.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined.");if(K!=null){if(K.defaultProps!=null||K.propTypes!=null)L0("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")}}var A={$$typeof:T,render:K};{var C;Object.defineProperty(A,"displayName",{enumerable:!1,configurable:!0,get:function(){return C},set:function(u){if(C=u,!K.name&&!K.displayName)K.displayName=u}})}return A}var m=Symbol.for("react.module.reference");function l(K){if(typeof K==="string"||typeof K==="function")return!0;if(K===_||K===P||e||K===G||K===f||K===R||h0||K===i||z1||y0||A0)return!0;if(typeof K==="object"&&K!==null){if(K.$$typeof===E||K.$$typeof===w||K.$$typeof===F||K.$$typeof===N||K.$$typeof===T||K.$$typeof===m||K.getModuleId!==void 0)return!0}return!1}function L(K,A){if(!l(K))L0("memo: The first argument must be a component. Instead received: %s",K===null?"null":typeof K);var C={$$typeof:w,type:K,compare:A===void 0?null:A};{var u;Object.defineProperty(C,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(v0){if(u=v0,!K.name&&!K.displayName)K.displayName=v0}})}return C}function V(){var K=j.current;if(K===null)L0(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
-
2. You might be breaking the Rules of Hooks
|
|
12
|
-
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return K}function c(K){var A=V();if(K._context!==void 0){var C=K._context;if(C.Consumer===K)L0("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");else if(C.Provider===K)L0("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return A.useContext(K)}function t(K){var A=V();return A.useState(K)}function H0(K,A,C){var u=V();return u.useReducer(K,A,C)}function w0(K){var A=V();return A.useRef(K)}function W0(K,A){var C=V();return C.useEffect(K,A)}function x(K,A){var C=V();return C.useInsertionEffect(K,A)}function b0(K,A){var C=V();return C.useLayoutEffect(K,A)}function D0(K,A){var C=V();return C.useCallback(K,A)}function Y1(K,A){var C=V();return C.useMemo(K,A)}function w1(K,A,C){var u=V();return u.useImperativeHandle(K,A,C)}function N4(K,A){{var C=V();return C.useDebugValue(K,A)}}function u4(){var K=V();return K.useTransition()}function r1(K){var A=V();return A.useDeferredValue(K)}function e0(){var K=V();return K.useId()}function a5(K,A,C){var u=V();return u.useSyncExternalStore(K,A,C)}var D5=0,rb,nb,tb,sb,eb,v8,b8;function oz(){}oz.__reactDisabledLog=!0;function VZ(){{if(D5===0){rb=console.log,nb=console.info,tb=console.warn,sb=console.error,eb=console.group,v8=console.groupCollapsed,b8=console.groupEnd;var K={configurable:!0,enumerable:!0,value:oz,writable:!0};Object.defineProperties(console,{info:K,log:K,warn:K,error:K,group:K,groupCollapsed:K,groupEnd:K})}D5++}}function z8(){{if(D5--,D5===0){var K={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:u0({},K,{value:rb}),info:u0({},K,{value:nb}),warn:u0({},K,{value:tb}),error:u0({},K,{value:sb}),group:u0({},K,{value:eb}),groupCollapsed:u0({},K,{value:v8}),groupEnd:u0({},K,{value:b8})})}if(D5<0)L0("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var s7=Z0.ReactCurrentDispatcher,r4;function N7(K,A,C){{if(r4===void 0)try{throw Error()}catch(v0){var u=v0.stack.trim().match(/\n( *(at )?)/);r4=u&&u[1]||""}return`
|
|
14
|
-
`+r4+K}}var A7=!1,dv;{var Q8=typeof WeakMap==="function"?WeakMap:Map;dv=new Q8}function iz(K,A){if(!K||A7)return"";{var C=dv.get(K);if(C!==void 0)return C}var u;A7=!0;var v0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m0;m0=s7.current,s7.current=null,VZ();try{if(A){var R0=function(){throw Error()};if(Object.defineProperty(R0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(R0,[])}catch(_1){u=_1}Reflect.construct(K,[],R0)}else{try{R0.call()}catch(_1){u=_1}K.call(R0.prototype)}}else{try{throw Error()}catch(_1){u=_1}K()}}catch(_1){if(_1&&u&&typeof _1.stack==="string"){var c0=_1.stack.split(`
|
|
15
|
-
`),H1=u.stack.split(`
|
|
16
|
-
`),D1=c0.length-1,c1=H1.length-1;while(D1>=1&&c1>=0&&c0[D1]!==H1[c1])c1--;for(;D1>=1&&c1>=0;D1--,c1--)if(c0[D1]!==H1[c1]){if(D1!==1||c1!==1)do if(D1--,c1--,c1<0||c0[D1]!==H1[c1]){var x1=`
|
|
17
|
-
`+c0[D1].replace(" at new "," at ");if(K.displayName&&x1.includes("<anonymous>"))x1=x1.replace("<anonymous>",K.displayName);if(typeof K==="function")dv.set(K,x1);return x1}while(D1>=1&&c1>=0);break}}}finally{A7=!1,s7.current=m0,z8(),Error.prepareStackTrace=v0}var z6=K?K.displayName||K.name:"",O6=z6?N7(z6):"";if(typeof K==="function")dv.set(K,O6);return O6}function X8(K,A,C){return iz(K,!1)}function DZ(K){var A=K.prototype;return!!(A&&A.isReactComponent)}function P7(K,A,C){if(K==null)return"";if(typeof K==="function")return iz(K,DZ(K));if(typeof K==="string")return N7(K);switch(K){case f:return N7("Suspense");case R:return N7("SuspenseList")}if(typeof K==="object")switch(K.$$typeof){case T:return X8(K.render);case w:return P7(K.type,A,C);case E:{var u=K,v0=u._payload,m0=u._init;try{return P7(m0(v0),A,C)}catch(R0){}}}return""}var pz={},Z8=Z0.ReactDebugCurrentFrame;function jv(K){if(K){var A=K._owner,C=P7(K.type,K._source,A?A.type:null);Z8.setExtraStackFrame(C)}else Z8.setExtraStackFrame(null)}function rz(K,A,C,u,v0){{var m0=Function.call.bind(J6);for(var R0 in K)if(m0(K,R0)){var c0=void 0;try{if(typeof K[R0]!=="function"){var H1=Error((u||"React class")+": "+C+" type `"+R0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof K[R0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H1.name="Invariant Violation",H1}c0=K[R0](A,R0,u,C,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D1){c0=D1}if(c0&&!(c0 instanceof Error))jv(v0),L0("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",C,R0,typeof c0),jv(null);if(c0 instanceof Error&&!(c0.message in pz))pz[c0.message]=!0,jv(v0),L0("Failed %s type: %s",C,c0.message),jv(null)}}}function q1(K){if(K){var A=K._owner,C=P7(K.type,K._source,A?A.type:null);n0(C)}else n0(null)}var nz=!1;function J8(){if(p.current){var K=v6(p.current.type);if(K)return`
|
|
18
|
-
|
|
19
|
-
Check the render method of \``+K+"`."}return""}function t0(K){if(K!==void 0){var A=K.fileName.replace(/^.*[\\\/]/,""),C=K.lineNumber;return`
|
|
20
|
-
|
|
21
|
-
Check your code at `+A+":"+C+"."}return""}function tz(K){if(K!==null&&K!==void 0)return t0(K.__source);return""}var $4={};function e7(K){var A=J8();if(!A){var C=typeof K==="string"?K:K.displayName||K.name;if(C)A=`
|
|
22
|
-
|
|
23
|
-
Check the top-level render call using <`+C+">."}return A}function F7(K,A){if(!K._store||K._store.validated||K.key!=null)return;K._store.validated=!0;var C=e7(A);if($4[C])return;$4[C]=!0;var u="";if(K&&K._owner&&K._owner!==p.current)u=" It was passed a child from "+v6(K._owner.type)+".";q1(K),L0('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',C,u),q1(null)}function sz(K,A){if(typeof K!=="object")return;if(i1(K))for(var C=0;C<K.length;C++){var u=K[C];if(C0(u))F7(u,A)}else if(C0(K)){if(K._store)K._store.validated=!0}else if(K){var v0=n(K);if(typeof v0==="function"){if(v0!==K.entries){var m0=v0.call(K),R0;while(!(R0=m0.next()).done)if(C0(R0.value))F7(R0.value,A)}}}}function c6(K){{var A=K.type;if(A===null||A===void 0||typeof A==="string")return;var C;if(typeof A==="function")C=A.propTypes;else if(typeof A==="object"&&(A.$$typeof===T||A.$$typeof===w))C=A.propTypes;else return;if(C){var u=v6(A);rz(C,K.props,"prop",u,K)}else if(A.PropTypes!==void 0&&!nz){nz=!0;var v0=v6(A);L0("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v0||"Unknown")}if(typeof A.getDefaultProps==="function"&&!A.getDefaultProps.isReactClassApproved)L0("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function U6(K){{var A=Object.keys(K.props);for(var C=0;C<A.length;C++){var u=A[C];if(u!=="children"&&u!=="key"){q1(K),L0("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),q1(null);break}}if(K.ref!==null)q1(K),L0("Invalid attribute `ref` supplied to `React.Fragment`."),q1(null)}}function ez(K,A,C){var u=l(K);if(!u){var v0="";if(K===void 0||typeof K==="object"&&K!==null&&Object.keys(K).length===0)v0+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var m0=tz(A);if(m0)v0+=m0;else v0+=J8();var R0;if(K===null)R0="null";else if(i1(K))R0="array";else if(K!==void 0&&K.$$typeof===U)R0="<"+(v6(K.type)||"Unknown")+" />",v0=" Did you accidentally export a JSX literal instead of a component?";else R0=typeof K;L0("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R0,v0)}var c0=M6.apply(this,arguments);if(c0==null)return c0;if(u)for(var H1=2;H1<arguments.length;H1++)sz(arguments[H1],K);if(K===_)U6(c0);else c6(c0);return c0}var m4=!1;function D4(K){var A=ez.bind(null,K);A.type=K;{if(!m4)m4=!0,k0("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");Object.defineProperty(A,"type",{enumerable:!1,get:function(){return k0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:K}),K}})}return A}function I5(K,A,C){var u=f0.apply(this,arguments);for(var v0=2;v0<arguments.length;v0++)sz(arguments[v0],u.type);return c6(u),u}function IZ(K,A){var C=K0.transition;K0.transition={};var u=K0.transition;K0.transition._updatedFibers=new Set;try{K()}finally{if(K0.transition=C,C===null&&u._updatedFibers){var v0=u._updatedFibers.size;if(v0>10)k0("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");u._updatedFibers.clear()}}}var yv=!1,vv=null;function vQ(K){if(vv===null)try{var A=("require"+Math.random()).slice(0,7),C=GZ&&GZ[A];vv=C.call(GZ,"timers").setImmediate}catch(u){vv=function(v0){if(yv===!1){if(yv=!0,typeof MessageChannel>"u")L0("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.")}var m0=new MessageChannel;m0.port1.onmessage=v0,m0.port2.postMessage(void 0)}}return vv(K)}var R7=0,bQ=!1;function zQ(K){{var A=R7;if(R7++,a.current===null)a.current=[];var C=a.isBatchingLegacy,u;try{if(a.isBatchingLegacy=!0,u=K(),!C&&a.didScheduleLegacyUpdate){var v0=a.current;if(v0!==null)a.didScheduleLegacyUpdate=!1,xv(v0)}}catch(z6){throw l5(A),z6}finally{a.isBatchingLegacy=C}if(u!==null&&typeof u==="object"&&typeof u.then==="function"){var m0=u,R0=!1,c0={then:function(z6,O6){R0=!0,m0.then(function(_1){if(l5(A),R7===0)cv(_1,z6,O6);else z6(_1)},function(_1){l5(A),O6(_1)})}};if(!bQ&&typeof Promise<"u")Promise.resolve().then(function(){}).then(function(){if(!R0)bQ=!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 c0}else{var H1=u;if(l5(A),R7===0){var D1=a.current;if(D1!==null)xv(D1),a.current=null;var c1={then:function(z6,O6){if(a.current===null)a.current=[],cv(H1,z6,O6);else z6(H1)}};return c1}else{var x1={then:function(z6,O6){z6(H1)}};return x1}}}}function l5(K){{if(K!==R7-1)L0("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");R7=K}}function cv(K,A,C){{var u=a.current;if(u!==null)try{xv(u),vQ(function(){if(u.length===0)a.current=null,A(K);else cv(K,A,C)})}catch(v0){C(v0)}else A(K)}}var M7=!1;function xv(K){if(!M7){M7=!0;var A=0;try{for(;A<K.length;A++){var C=K[A];do C=C(!0);while(C!==null)}K.length=0}catch(u){throw K=K.slice(A+1),u}finally{M7=!1}}}var QQ=ez,XQ=I5,ZQ=D4,JQ={map:y6,forEach:w5,count:W4,toArray:Z5,only:V5};if(BR.Children=JQ,BR.Component=R1,BR.Fragment=_,BR.Profiler=P,BR.PureComponent=C1,BR.StrictMode=G,BR.Suspense=f,BR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z0,BR.act=zQ,BR.cloneElement=XQ,BR.createContext=p4,BR.createElement=QQ,BR.createFactory=ZQ,BR.createRef=e1,BR.forwardRef=W,BR.isValidElement=C0,BR.lazy=B1,BR.memo=L,BR.startTransition=IZ,BR.unstable_act=zQ,BR.useCallback=D0,BR.useContext=c,BR.useDebugValue=N4,BR.useDeferredValue=r1,BR.useEffect=W0,BR.useId=e0,BR.useImperativeHandle=w1,BR.useInsertionEffect=x,BR.useLayoutEffect=b0,BR.useMemo=Y1,BR.useReducer=H0,BR.useRef=w0,BR.useState=t,BR.useSyncExternalStore=a5,BR.useTransition=u4,BR.version=Y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var GB=Tv((OR)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Y=!1,U=!1,B=5;function _(J0,f0){var C0=J0.length;J0.push(f0),F(J0,f0,C0)}function G(J0){return J0.length===0?null:J0[0]}function P(J0){if(J0.length===0)return null;var f0=J0[0],C0=J0.pop();if(C0!==f0)J0[0]=C0,N(J0,C0,0);return f0}function F(J0,f0,C0){var K1=C0;while(K1>0){var M1=K1-1>>>1,Y6=J0[M1];if(T(Y6,f0)>0)J0[M1]=f0,J0[K1]=Y6,K1=M1;else return}}function N(J0,f0,C0){var K1=C0,M1=J0.length,Y6=M1>>>1;while(K1<Y6){var S1=(K1+1)*2-1,A6=J0[S1],r0=S1+1,i0=J0[r0];if(T(A6,f0)<0)if(r0<M1&&T(i0,A6)<0)J0[K1]=i0,J0[r0]=f0,K1=r0;else J0[K1]=A6,J0[S1]=f0,K1=S1;else if(r0<M1&&T(i0,f0)<0)J0[K1]=i0,J0[r0]=f0,K1=r0;else return}}function T(J0,f0){var C0=J0.sortIndex-f0.sortIndex;return C0!==0?C0:J0.id-f0.id}var f=1,R=2,w=3,E=4,i=5;function s(J0,f0){}var Q0=typeof performance==="object"&&typeof performance.now==="function";if(Q0){var n=performance;OR.unstable_now=function(){return n.now()}}else{var j=Date,K0=j.now();OR.unstable_now=function(){return j.now()-K0}}var a=1073741823,p=-1,X0=250,N0=5000,n0=1e4,z1=a,y0=[],A0=[],h0=1,e=null,Z0=w,k0=!1,L0=!1,v1=!1,F6=typeof setTimeout==="function"?setTimeout:null,t1=typeof clearTimeout==="function"?clearTimeout:null,d1=typeof setImmediate<"u"?setImmediate:null,u0=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function Q1(J0){var f0=G(A0);while(f0!==null){if(f0.callback===null)P(A0);else if(f0.startTime<=J0)P(A0),f0.sortIndex=f0.expirationTime,_(y0,f0);else return;f0=G(A0)}}function R1(J0){if(v1=!1,Q1(J0),!L0)if(G(y0)!==null)L0=!0,b6($6);else{var f0=G(A0);if(f0!==null)j6(R1,f0.startTime-J0)}}function $6(J0,f0){if(L0=!1,v1)v1=!1,H4();k0=!0;var C0=Z0;try{if(U)try{return s1(J0,f0)}catch(M1){if(e!==null){var K1=OR.unstable_now();s(e,K1),e.isQueued=!1}throw M1}else return s1(J0,f0)}finally{e=null,Z0=C0,k0=!1}}function s1(J0,f0){var C0=f0;Q1(C0),e=G(y0);while(e!==null&&!Y){if(e.expirationTime>C0&&(!J0||J6()))break;var K1=e.callback;if(typeof K1==="function"){e.callback=null,Z0=e.priorityLevel;var M1=e.expirationTime<=C0,Y6=K1(M1);if(C0=OR.unstable_now(),typeof Y6==="function")e.callback=Y6;else if(e===G(y0))P(y0);Q1(C0)}else P(y0);e=G(y0)}if(e!==null)return!0;else{var S1=G(A0);if(S1!==null)j6(R1,S1.startTime-C0);return!1}}function o1(J0,f0){switch(J0){case f:case R:case w:case E:case i:break;default:J0=w}var C0=Z0;Z0=J0;try{return f0()}finally{Z0=C0}}function K6(J0){var f0;switch(Z0){case f:case R:case w:f0=w;break;default:f0=Z0;break}var C0=Z0;Z0=f0;try{return J0()}finally{Z0=C0}}function C1(J0){var f0=Z0;return function(){var C0=Z0;Z0=f0;try{return J0.apply(this,arguments)}finally{Z0=C0}}}function h1(J0,f0,C0){var K1=OR.unstable_now(),M1;if(typeof C0==="object"&&C0!==null){var Y6=C0.delay;if(typeof Y6==="number"&&Y6>0)M1=K1+Y6;else M1=K1}else M1=K1;var S1;switch(J0){case f:S1=p;break;case R:S1=X0;break;case i:S1=z1;break;case E:S1=n0;break;case w:default:S1=N0;break}var A6=M1+S1,r0={id:h0++,callback:f0,priorityLevel:J0,startTime:M1,expirationTime:A6,sortIndex:-1};if(M1>K1){if(r0.sortIndex=M1,_(A0,r0),G(y0)===null&&r0===G(A0)){if(v1)H4();else v1=!0;j6(R1,M1-K1)}}else if(r0.sortIndex=A6,_(y0,r0),!L0&&!k0)L0=!0,b6($6);return r0}function e1(){}function D6(){if(!L0&&!k0)L0=!0,b6($6)}function i1(){return G(y0)}function I6(J0){J0.callback=null}function f6(){return Z0}var g1=!1,o0=null,R6=-1,N6=B,v6=-1;function J6(){var J0=OR.unstable_now()-v6;if(J0<N6)return!1;return!0}function X5(){}function j1(J0){if(J0<0||J0>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(J0>0)N6=Math.floor(1000/J0);else N6=B}var i6=function(){if(o0!==null){var J0=OR.unstable_now();v6=J0;var f0=!0,C0=!0;try{C0=o0(f0,J0)}finally{if(C0)y1();else g1=!1,o0=null}}else g1=!1},y1;if(typeof d1==="function")y1=function(){d1(i6)};else if(typeof MessageChannel<"u"){var p6=new MessageChannel,p1=p6.port2;p6.port1.onmessage=i6,y1=function(){p1.postMessage(null)}}else y1=function(){F6(i6,0)};function b6(J0){if(o0=J0,!g1)g1=!0,y1()}function j6(J0,f0){R6=F6(function(){J0(OR.unstable_now())},f0)}function H4(){t1(R6),R6=-1}var B6=X5,M6=null;if(OR.unstable_IdlePriority=i,OR.unstable_ImmediatePriority=f,OR.unstable_LowPriority=E,OR.unstable_NormalPriority=w,OR.unstable_Profiling=M6,OR.unstable_UserBlockingPriority=R,OR.unstable_cancelCallback=I6,OR.unstable_continueExecution=D6,OR.unstable_forceFrameRate=j1,OR.unstable_getCurrentPriorityLevel=f6,OR.unstable_getFirstCallbackNode=i1,OR.unstable_next=K6,OR.unstable_pauseExecution=e1,OR.unstable_requestPaint=B6,OR.unstable_runWithPriority=o1,OR.unstable_scheduleCallback=h1,OR.unstable_shouldYield=J6,OR.unstable_wrapCallback=C1,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $B=Tv((LR)=>{var dz=z0(X6()),T1=z0(GB());(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Y=dz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=!1;function B(v){U=v}function _(v){if(!U){for(var b=arguments.length,z=Array(b>1?b-1:0),Q=1;Q<b;Q++)z[Q-1]=arguments[Q];P("warn",v,z)}}function G(v){if(!U){for(var b=arguments.length,z=Array(b>1?b-1:0),Q=1;Q<b;Q++)z[Q-1]=arguments[Q];P("error",v,z)}}function P(v,b,z){{var Q=Y.ReactDebugCurrentFrame,X=Q.getStackAddendum();if(X!=="")b+="%s",z=z.concat([X]);var Z=z.map(function(J){return String(J)});Z.unshift("Warning: "+b),Function.prototype.apply.call(console[v],console,Z)}}var F=0,N=1,T=2,f=3,R=4,w=5,E=6,i=7,s=8,Q0=9,n=10,j=11,K0=12,a=13,p=14,X0=15,N0=16,n0=17,z1=18,y0=19,A0=21,h0=22,e=23,Z0=24,k0=25,L0=!0,v1=!1,F6=!1,t1=!1,d1=!1,u0=!0,Q1=!1,R1=!0,$6=!0,s1=!0,o1=!0,K6=new Set,C1={},h1={};function e1(v,b){D6(v,b),D6(v+"Capture",b)}function D6(v,b){if(C1[v])G("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",v);C1[v]=b;{var z=v.toLowerCase();if(h1[z]=v,v==="onDoubleClick")h1.ondblclick=v}for(var Q=0;Q<b.length;Q++)K6.add(b[Q])}var i1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I6=Object.prototype.hasOwnProperty;function f6(v){{var b=typeof Symbol==="function"&&Symbol.toStringTag,z=b&&v[Symbol.toStringTag]||v.constructor.name||"Object";return z}}function g1(v){try{return o0(v),!1}catch(b){return!0}}function o0(v){return""+v}function R6(v,b){if(g1(v))return G("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",b,f6(v)),o0(v)}function N6(v){if(g1(v))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",f6(v)),o0(v)}function v6(v,b){if(g1(v))return G("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",b,f6(v)),o0(v)}function J6(v,b){if(g1(v))return G("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",b,f6(v)),o0(v)}function X5(v){if(g1(v))return G("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",f6(v)),o0(v)}function j1(v){if(g1(v))return G("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",f6(v)),o0(v)}var i6=0,y1=1,p6=2,p1=3,b6=4,j6=5,H4=6,B6=":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",M6=B6+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",J0=new RegExp("^["+B6+"]["+M6+"]*$"),f0={},C0={};function K1(v){if(I6.call(C0,v))return!0;if(I6.call(f0,v))return!1;if(J0.test(v))return C0[v]=!0,!0;return f0[v]=!0,G("Invalid attribute name: `%s`",v),!1}function M1(v,b,z){if(b!==null)return b.type===i6;if(z)return!1;if(v.length>2&&(v[0]==="o"||v[0]==="O")&&(v[1]==="n"||v[1]==="N"))return!0;return!1}function Y6(v,b,z,Q){if(z!==null&&z.type===i6)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(Q)return!1;if(z!==null)return!z.acceptsBooleans;else{var X=v.toLowerCase().slice(0,5);return X!=="data-"&&X!=="aria-"}}default:return!1}}function S1(v,b,z,Q){if(b===null||typeof b>"u")return!0;if(Y6(v,b,z,Q))return!0;if(Q)return!1;if(z!==null)switch(z.type){case p1:return!b;case b6:return b===!1;case j6:return isNaN(b);case H4:return isNaN(b)||b<1}return!1}function A6(v){return i0.hasOwnProperty(v)?i0[v]:null}function r0(v,b,z,Q,X,Z,J){this.acceptsBooleans=b===p6||b===p1||b===b6,this.attributeName=Q,this.attributeNamespace=X,this.mustUseProperty=z,this.propertyName=v,this.type=b,this.sanitizeURL=Z,this.removeEmptyString=J}var i0={},_4=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];_4.forEach(function(v){i0[v]=new r0(v,i6,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var b=v[0],z=v[1];i0[b]=new r0(b,y1,!1,z,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){i0[v]=new r0(v,p6,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){i0[v]=new r0(v,p6,!1,v,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(v){i0[v]=new r0(v,p1,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){i0[v]=new r0(v,p1,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){i0[v]=new r0(v,b6,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){i0[v]=new r0(v,H4,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){i0[v]=new r0(v,j6,!1,v.toLowerCase(),null,!1,!1)});var y6=/[\-\:]([a-z])/g,W4=function(v){return v[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(v){var b=v.replace(y6,W4);i0[b]=new r0(b,y1,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(v){var b=v.replace(y6,W4);i0[b]=new r0(b,y1,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var b=v.replace(y6,W4);i0[b]=new r0(b,y1,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){i0[v]=new r0(v,y1,!1,v.toLowerCase(),null,!1,!1)});var w5="xlinkHref";i0[w5]=new r0("xlinkHref",y1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){i0[v]=new r0(v,y1,!1,v.toLowerCase(),null,!0,!0)});var Z5=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,V5=!1;function p4(v){if(!V5&&Z5.test(v))V5=!0,G("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(v))}function G4(v,b,z,Q){if(Q.mustUseProperty){var X=Q.propertyName;return v[X]}else{if(R6(z,b),Q.sanitizeURL)p4(""+z);var Z=Q.attributeName,J=null;if(Q.type===b6){if(v.hasAttribute(Z)){var H=v.getAttribute(Z);if(H==="")return!0;if(S1(b,z,Q,!1))return H;if(H===""+z)return z;return H}}else if(v.hasAttribute(Z)){if(S1(b,z,Q,!1))return v.getAttribute(Z);if(Q.type===p1)return z;J=v.getAttribute(Z)}if(S1(b,z,Q,!1))return J===null?z:J;else if(J===""+z)return z;else return J}}function J5(v,b,z,Q){{if(!K1(b))return;if(!v.hasAttribute(b))return z===void 0?void 0:null;var X=v.getAttribute(b);if(R6(z,b),X===""+z)return z;return X}}function J1(v,b,z,Q){var X=A6(b);if(M1(b,X,Q))return;if(S1(b,z,X,Q))z=null;if(Q||X===null){if(K1(b)){var Z=b;if(z===null)v.removeAttribute(Z);else R6(z,b),v.setAttribute(Z,""+z)}return}var J=X.mustUseProperty;if(J){var H=X.propertyName;if(z===null){var $=X.type;v[H]=$===p1?!1:""}else v[H]=z;return}var{attributeName:q,attributeNamespace:O}=X;if(z===null)v.removeAttribute(q);else{var k=X.type,M;if(k===p1||k===b6&&z===!0)M="";else if(R6(z,q),M=""+z,X.sanitizeURL)p4(M.toString());if(O)v.setAttributeNS(O,q,M);else v.setAttribute(q,M)}}var k1=Symbol.for("react.element"),u1=Symbol.for("react.portal"),B1=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),L=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),t=Symbol.for("react.suspense_list"),H0=Symbol.for("react.memo"),w0=Symbol.for("react.lazy"),W0=Symbol.for("react.scope"),x=Symbol.for("react.debug_trace_mode"),b0=Symbol.for("react.offscreen"),D0=Symbol.for("react.legacy_hidden"),Y1=Symbol.for("react.cache"),w1=Symbol.for("react.tracing_marker"),N4=Symbol.iterator,u4="@@iterator";function r1(v){if(v===null||typeof v!=="object")return null;var b=N4&&v[N4]||v[u4];if(typeof b==="function")return b;return null}var e0=Object.assign,a5=0,D5,rb,nb,tb,sb,eb,v8;function b8(){}b8.__reactDisabledLog=!0;function oz(){{if(a5===0){D5=console.log,rb=console.info,nb=console.warn,tb=console.error,sb=console.group,eb=console.groupCollapsed,v8=console.groupEnd;var v={configurable:!0,enumerable:!0,value:b8,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}a5++}}function VZ(){{if(a5--,a5===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e0({},v,{value:D5}),info:e0({},v,{value:rb}),warn:e0({},v,{value:nb}),error:e0({},v,{value:tb}),group:e0({},v,{value:sb}),groupCollapsed:e0({},v,{value:eb}),groupEnd:e0({},v,{value:v8})})}if(a5<0)G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z8=Y.ReactCurrentDispatcher,s7;function r4(v,b,z){{if(s7===void 0)try{throw Error()}catch(X){var Q=X.stack.trim().match(/\n( *(at )?)/);s7=Q&&Q[1]||""}return`
|
|
24
|
-
`+s7+v}}var N7=!1,A7;{var dv=typeof WeakMap==="function"?WeakMap:Map;A7=new dv}function Q8(v,b){if(!v||N7)return"";{var z=A7.get(v);if(z!==void 0)return z}var Q;N7=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=z8.current,z8.current=null,oz();try{if(b){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(h){Q=h}Reflect.construct(v,[],J)}else{try{J.call()}catch(h){Q=h}v.call(J.prototype)}}else{try{throw Error()}catch(h){Q=h}v()}}catch(h){if(h&&Q&&typeof h.stack==="string"){var H=h.stack.split(`
|
|
25
|
-
`),$=Q.stack.split(`
|
|
26
|
-
`),q=H.length-1,O=$.length-1;while(q>=1&&O>=0&&H[q]!==$[O])O--;for(;q>=1&&O>=0;q--,O--)if(H[q]!==$[O]){if(q!==1||O!==1)do if(q--,O--,O<0||H[q]!==$[O]){var k=`
|
|
27
|
-
`+H[q].replace(" at new "," at ");if(v.displayName&&k.includes("<anonymous>"))k=k.replace("<anonymous>",v.displayName);if(typeof v==="function")A7.set(v,k);return k}while(q>=1&&O>=0);break}}}finally{N7=!1,z8.current=Z,VZ(),Error.prepareStackTrace=X}var M=v?v.displayName||v.name:"",S=M?r4(M):"";if(typeof v==="function")A7.set(v,S);return S}function iz(v,b,z){return Q8(v,!0)}function X8(v,b,z){return Q8(v,!1)}function DZ(v){var b=v.prototype;return!!(b&&b.isReactComponent)}function P7(v,b,z){if(v==null)return"";if(typeof v==="function")return Q8(v,DZ(v));if(typeof v==="string")return r4(v);switch(v){case c:return r4("Suspense");case t:return r4("SuspenseList")}if(typeof v==="object")switch(v.$$typeof){case V:return X8(v.render);case H0:return P7(v.type,b,z);case w0:{var Q=v,X=Q._payload,Z=Q._init;try{return P7(Z(X),b,z)}catch(J){}}}return""}function pz(v){var b=v._debugOwner?v._debugOwner.type:null,z=v._debugSource;switch(v.tag){case w:return r4(v.type);case N0:return r4("Lazy");case a:return r4("Suspense");case y0:return r4("SuspenseList");case F:case T:case X0:return X8(v.type);case j:return X8(v.type.render);case N:return iz(v.type);default:return""}}function Z8(v){try{var b="",z=v;do b+=pz(z),z=z.return;while(z);return b}catch(Q){return`
|
|
28
|
-
Error generating stack: `+Q.message+`
|
|
29
|
-
`+Q.stack}}function jv(v,b,z){var Q=v.displayName;if(Q)return Q;var X=b.displayName||b.name||"";return X!==""?z+"("+X+")":z}function rz(v){return v.displayName||"Context"}function q1(v){if(v==null)return null;if(typeof v.tag==="number")G("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof v==="function")return v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case B1:return"Fragment";case u1:return"Portal";case m:return"Profiler";case W:return"StrictMode";case c:return"Suspense";case t:return"SuspenseList"}if(typeof v==="object")switch(v.$$typeof){case L:var b=v;return rz(b)+".Consumer";case l:var z=v;return rz(z._context)+".Provider";case V:return jv(v,v.render,"ForwardRef");case H0:var Q=v.displayName||null;if(Q!==null)return Q;return q1(v.type)||"Memo";case w0:{var X=v,Z=X._payload,J=X._init;try{return q1(J(Z))}catch(H){return null}}}return null}function nz(v,b,z){var Q=b.displayName||b.name||"";return v.displayName||(Q!==""?z+"("+Q+")":z)}function J8(v){return v.displayName||"Context"}function t0(v){var{tag:b,type:z}=v;switch(b){case Z0:return"Cache";case Q0:var Q=z;return J8(Q)+".Consumer";case n:var X=z;return J8(X._context)+".Provider";case z1:return"DehydratedFragment";case j:return nz(z,z.render,"ForwardRef");case i:return"Fragment";case w:return z;case R:return"Portal";case f:return"Root";case E:return"Text";case N0:return q1(z);case s:if(z===W)return"StrictMode";return"Mode";case h0:return"Offscreen";case K0:return"Profiler";case A0:return"Scope";case a:return"Suspense";case y0:return"SuspenseList";case k0:return"TracingMarker";case N:case F:case n0:case T:case p:case X0:if(typeof z==="function")return z.displayName||z.name||null;if(typeof z==="string")return z;break}return null}var tz=Y.ReactDebugCurrentFrame,$4=null,e7=!1;function F7(){{if($4===null)return null;var v=$4._debugOwner;if(v!==null&&typeof v<"u")return t0(v)}return null}function sz(){{if($4===null)return"";return Z8($4)}}function c6(){tz.getCurrentStack=null,$4=null,e7=!1}function U6(v){tz.getCurrentStack=v===null?null:sz,$4=v,e7=!1}function ez(){return $4}function m4(v){e7=v}function D4(v){return""+v}function I5(v){switch(typeof v){case"boolean":case"number":case"string":case"undefined":return v;case"object":return j1(v),v;default:return""}}var IZ={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function yv(v,b){{if(!(IZ[b.type]||b.onChange||b.onInput||b.readOnly||b.disabled||b.value==null))G("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.");if(!(b.onChange||b.readOnly||b.disabled||b.checked==null))G("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}}function vv(v){var{type:b,nodeName:z}=v;return z&&z.toLowerCase()==="input"&&(b==="checkbox"||b==="radio")}function vQ(v){return v._valueTracker}function R7(v){v._valueTracker=null}function bQ(v){var b="";if(!v)return b;if(vv(v))b=v.checked?"true":"false";else b=v.value;return b}function zQ(v){var b=vv(v)?"checked":"value",z=Object.getOwnPropertyDescriptor(v.constructor.prototype,b);j1(v[b]);var Q=""+v[b];if(v.hasOwnProperty(b)||typeof z>"u"||typeof z.get!=="function"||typeof z.set!=="function")return;var{get:X,set:Z}=z;Object.defineProperty(v,b,{configurable:!0,get:function(){return X.call(this)},set:function(H){j1(H),Q=""+H,Z.call(this,H)}}),Object.defineProperty(v,b,{enumerable:z.enumerable});var J={getValue:function(){return Q},setValue:function(H){j1(H),Q=""+H},stopTracking:function(){R7(v),delete v[b]}};return J}function l5(v){if(vQ(v))return;v._valueTracker=zQ(v)}function cv(v){if(!v)return!1;var b=vQ(v);if(!b)return!0;var z=b.getValue(),Q=bQ(v);if(Q!==z)return b.setValue(Q),!0;return!1}function M7(v){if(v=v||(typeof document<"u"?document:void 0),typeof v>"u")return null;try{return v.activeElement||v.body}catch(b){return v.body}}var xv=!1,QQ=!1,XQ=!1,ZQ=!1;function JQ(v){var b=v.type==="checkbox"||v.type==="radio";return b?v.checked!=null:v.value!=null}function K(v,b){var z=v,Q=b.checked,X=e0({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Q!=null?Q:z._wrapperState.initialChecked});return X}function A(v,b){{if(yv("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!QQ)G("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",F7()||"A component",b.type),QQ=!0;if(b.value!==void 0&&b.defaultValue!==void 0&&!xv)G("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",F7()||"A component",b.type),xv=!0}var z=v,Q=b.defaultValue==null?"":b.defaultValue;z._wrapperState={initialChecked:b.checked!=null?b.checked:b.defaultChecked,initialValue:I5(b.value!=null?b.value:Q),controlled:JQ(b)}}function C(v,b){var z=v,Q=b.checked;if(Q!=null)J1(z,"checked",Q,!1)}function u(v,b){var z=v;{var Q=JQ(b);if(!z._wrapperState.controlled&&Q&&!ZQ)G("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),ZQ=!0;if(z._wrapperState.controlled&&!Q&&!XQ)G("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),XQ=!0}C(v,b);var X=I5(b.value),Z=b.type;if(X!=null){if(Z==="number"){if(X===0&&z.value===""||z.value!=X)z.value=D4(X)}else if(z.value!==D4(X))z.value=D4(X)}else if(Z==="submit"||Z==="reset"){z.removeAttribute("value");return}if(b.hasOwnProperty("value"))c0(z,b.type,X);else if(b.hasOwnProperty("defaultValue"))c0(z,b.type,I5(b.defaultValue));if(b.checked==null&&b.defaultChecked!=null)z.defaultChecked=!!b.defaultChecked}function v0(v,b,z){var Q=v;if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var X=b.type,Z=X==="submit"||X==="reset";if(Z&&(b.value===void 0||b.value===null))return;var J=D4(Q._wrapperState.initialValue);if(!z){if(J!==Q.value)Q.value=J}Q.defaultValue=J}var H=Q.name;if(H!=="")Q.name="";if(Q.defaultChecked=!Q.defaultChecked,Q.defaultChecked=!!Q._wrapperState.initialChecked,H!=="")Q.name=H}function m0(v,b){var z=v;u(z,b),R0(z,b)}function R0(v,b){var z=b.name;if(b.type==="radio"&&z!=null){var Q=v;while(Q.parentNode)Q=Q.parentNode;R6(z,"name");var X=Q.querySelectorAll("input[name="+JSON.stringify(""+z)+'][type="radio"]');for(var Z=0;Z<X.length;Z++){var J=X[Z];if(J===v||J.form!==v.form)continue;var H=iQ(J);if(!H)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");cv(J),u(J,H)}}}function c0(v,b,z){if(b!=="number"||M7(v.ownerDocument)!==v){if(z==null)v.defaultValue=D4(v._wrapperState.initialValue);else if(v.defaultValue!==D4(z))v.defaultValue=D4(z)}}var H1=!1,D1=!1,c1=!1;function x1(v,b){{if(b.value==null){if(typeof b.children==="object"&&b.children!==null)dz.Children.forEach(b.children,function(z){if(z==null)return;if(typeof z==="string"||typeof z==="number")return;if(!D1)D1=!0,G("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")});else if(b.dangerouslySetInnerHTML!=null){if(!c1)c1=!0,G("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")}}if(b.selected!=null&&!H1)G("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),H1=!0}}function z6(v,b){if(b.value!=null)v.setAttribute("value",D4(I5(b.value)))}var O6=Array.isArray;function _1(v){return O6(v)}var bv=!1;function av(){var v=F7();if(v)return`
|
|
30
|
-
|
|
31
|
-
Check the render method of \``+v+"`.";return""}var Y8=["value","defaultValue"];function fZ(v){{yv("select",v);for(var b=0;b<Y8.length;b++){var z=Y8[b];if(v[z]==null)continue;var Q=_1(v[z]);if(v.multiple&&!Q)G("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",z,av());else if(!v.multiple&&Q)G("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",z,av())}}}function o5(v,b,z,Q){var X=v.options;if(b){var Z=z,J={};for(var H=0;H<Z.length;H++)J["$"+Z[H]]=!0;for(var $=0;$<X.length;$++){var q=J.hasOwnProperty("$"+X[$].value);if(X[$].selected!==q)X[$].selected=q;if(q&&Q)X[$].defaultSelected=!0}}else{var O=D4(I5(z)),k=null;for(var M=0;M<X.length;M++){if(X[M].value===O){if(X[M].selected=!0,Q)X[M].defaultSelected=!0;return}if(k===null&&!X[M].disabled)k=X[M]}if(k!==null)k.selected=!0}}function H8(v,b){return e0({},b,{value:void 0})}function G8(v,b){var z=v;if(fZ(b),z._wrapperState={wasMultiple:!!b.multiple},b.value!==void 0&&b.defaultValue!==void 0&&!bv)G("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),bv=!0}function EZ(v,b){var z=v;z.multiple=!!b.multiple;var Q=b.value;if(Q!=null)o5(z,!!b.multiple,Q,!1);else if(b.defaultValue!=null)o5(z,!!b.multiple,b.defaultValue,!0)}function aB(v,b){var z=v,Q=z._wrapperState.wasMultiple;z._wrapperState.wasMultiple=!!b.multiple;var X=b.value;if(X!=null)o5(z,!!b.multiple,X,!1);else if(Q!==!!b.multiple)if(b.defaultValue!=null)o5(z,!!b.multiple,b.defaultValue,!0);else o5(z,!!b.multiple,b.multiple?[]:"",!1)}function lB(v,b){var z=v,Q=b.value;if(Q!=null)o5(z,!!b.multiple,Q,!1)}var eG=!1;function TZ(v,b){var z=v;if(b.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var Q=e0({},b,{value:void 0,defaultValue:void 0,children:D4(z._wrapperState.initialValue)});return Q}function v$(v,b){var z=v;if(yv("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!eG)G("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",F7()||"A component"),eG=!0;var Q=b.value;if(Q==null){var{children:X,defaultValue:Z}=b;if(X!=null){G("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(Z!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(_1(X)){if(X.length>1)throw Error("<textarea> can only have at most one child.");X=X[0]}Z=X}}if(Z==null)Z="";Q=Z}z._wrapperState={initialValue:I5(Q)}}function b$(v,b){var z=v,Q=I5(b.value),X=I5(b.defaultValue);if(Q!=null){var Z=D4(Q);if(Z!==z.value)z.value=Z;if(b.defaultValue==null&&z.defaultValue!==Z)z.defaultValue=Z}if(X!=null)z.defaultValue=D4(X)}function z$(v,b){var z=v,Q=z.textContent;if(Q===z._wrapperState.initialValue){if(Q!==""&&Q!==null)z.value=Q}}function oB(v,b){b$(v,b)}var i5="http://www.w3.org/1999/xhtml",iB="http://www.w3.org/1998/Math/MathML",CZ="http://www.w3.org/2000/svg";function SZ(v){switch(v){case"svg":return CZ;case"math":return iB;default:return i5}}function hZ(v,b){if(v==null||v===i5)return SZ(b);if(v===CZ&&b==="foreignObject")return i5;return v}var pB=function(v){if(typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction)return function(b,z,Q,X){MSApp.execUnsafeLocalFunction(function(){return v(b,z,Q,X)})};else return v},YQ,Q$=pB(function(v,b){if(v.namespaceURI===CZ){if(!("innerHTML"in v)){YQ=YQ||document.createElement("div"),YQ.innerHTML="<svg>"+b.valueOf().toString()+"</svg>";var z=YQ.firstChild;while(v.firstChild)v.removeChild(v.firstChild);while(z.firstChild)v.appendChild(z.firstChild);return}}v.innerHTML=b}),I4=1,p5=3,k6=8,r5=9,gZ=11,HQ=function(v,b){if(b){var z=v.firstChild;if(z&&z===v.lastChild&&z.nodeType===p5){z.nodeValue=b;return}}v.textContent=b},rB={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},$8={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function nB(v,b){return v+b.charAt(0).toUpperCase()+b.substring(1)}var tB=["Webkit","ms","Moz","O"];Object.keys($8).forEach(function(v){tB.forEach(function(b){$8[nB(b,v)]=$8[v]})});function uZ(v,b,z){var Q=b==null||typeof b==="boolean"||b==="";if(Q)return"";if(!z&&typeof b==="number"&&b!==0&&!($8.hasOwnProperty(v)&&$8[v]))return b+"px";return J6(b,v),(""+b).trim()}var sB=/([A-Z])/g,eB=/^ms-/;function v9(v){return v.replace(sB,"-$1").toLowerCase().replace(eB,"-ms-")}var X$=function(){};{var b9=/^(?:webkit|moz|o)[A-Z]/,z9=/^-ms-/,Q9=/-(.)/g,Z$=/;\s*$/,lv={},mZ={},J$=!1,Y$=!1,X9=function(v){return v.replace(Q9,function(b,z){return z.toUpperCase()})},Z9=function(v){if(lv.hasOwnProperty(v)&&lv[v])return;lv[v]=!0,G("Unsupported style property %s. Did you mean %s?",v,X9(v.replace(z9,"ms-")))},J9=function(v){if(lv.hasOwnProperty(v)&&lv[v])return;lv[v]=!0,G("Unsupported vendor-prefixed style property %s. Did you mean %s?",v,v.charAt(0).toUpperCase()+v.slice(1))},Y9=function(v,b){if(mZ.hasOwnProperty(b)&&mZ[b])return;mZ[b]=!0,G(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,v,b.replace(Z$,""))},H9=function(v,b){if(J$)return;J$=!0,G("`NaN` is an invalid value for the `%s` css style property.",v)},G9=function(v,b){if(Y$)return;Y$=!0,G("`Infinity` is an invalid value for the `%s` css style property.",v)};X$=function(v,b){if(v.indexOf("-")>-1)Z9(v);else if(b9.test(v))J9(v);else if(Z$.test(b))Y9(v,b);if(typeof b==="number"){if(isNaN(b))H9(v,b);else if(!isFinite(b))G9(v,b)}}}var $9=X$;function K9(v){{var b="",z="";for(var Q in v){if(!v.hasOwnProperty(Q))continue;var X=v[Q];if(X!=null){var Z=Q.indexOf("--")===0;b+=z+(Z?Q:v9(Q))+":",b+=uZ(Q,X,Z),z=";"}}return b||null}}function H$(v,b){var z=v.style;for(var Q in b){if(!b.hasOwnProperty(Q))continue;var X=Q.indexOf("--")===0;if(!X)$9(Q,b[Q]);var Z=uZ(Q,b[Q],X);if(Q==="float")Q="cssFloat";if(X)z.setProperty(Q,Z);else z[Q]=Z}}function U9(v){return v==null||typeof v==="boolean"||v===""}function G$(v){var b={};for(var z in v){var Q=rB[z]||[z];for(var X=0;X<Q.length;X++)b[Q[X]]=z}return b}function q9(v,b){{if(!b)return;var z=G$(v),Q=G$(b),X={};for(var Z in z){var J=z[Z],H=Q[Z];if(H&&J!==H){var $=J+","+H;if(X[$])continue;X[$]=!0,G("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",U9(v[J])?"Removing":"Updating",J,H)}}}}var B9={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},O9=e0({menuitem:!0},B9),L9="__html";function dZ(v,b){if(!b)return;if(O9[v]){if(b.children!=null||b.dangerouslySetInnerHTML!=null)throw Error(v+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.")}if(b.dangerouslySetInnerHTML!=null){if(b.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b.dangerouslySetInnerHTML!=="object"||!(L9 in b.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!b.suppressContentEditableWarning&&b.contentEditable&&b.children!=null)G("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.");if(b.style!=null&&typeof b.style!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}function zv(v,b){if(v.indexOf("-")===-1)return typeof b.is==="string";switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var GQ={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"},$$={"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},ov={},_9=new RegExp("^(aria)-["+M6+"]*$"),W9=new RegExp("^(aria)[A-Z]["+M6+"]*$");function N9(v,b){{if(I6.call(ov,b)&&ov[b])return!0;if(W9.test(b)){var z="aria-"+b.slice(4).toLowerCase(),Q=$$.hasOwnProperty(z)?z:null;if(Q==null)return G("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),ov[b]=!0,!0;if(b!==Q)return G("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,Q),ov[b]=!0,!0}if(_9.test(b)){var X=b.toLowerCase(),Z=$$.hasOwnProperty(X)?X:null;if(Z==null)return ov[b]=!0,!1;if(b!==Z)return G("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,Z),ov[b]=!0,!0}}return!0}function A9(v,b){{var z=[];for(var Q in b){var X=N9(v,Q);if(!X)z.push(Q)}var Z=z.map(function(J){return"`"+J+"`"}).join(", ");if(z.length===1)G("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",Z,v);else if(z.length>1)G("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",Z,v)}}function P9(v,b){if(zv(v,b))return;A9(v,b)}var K$=!1;function F9(v,b){{if(v!=="input"&&v!=="textarea"&&v!=="select")return;if(b!=null&&b.value===null&&!K$)if(K$=!0,v==="select"&&b.multiple)G("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",v);else G("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",v)}}var U$=function(){};{var A4={},q$=/^on./,R9=/^on[^A-Z]/,M9=new RegExp("^(aria)-["+M6+"]*$"),k9=new RegExp("^(aria)[A-Z]["+M6+"]*$");U$=function(v,b,z,Q){if(I6.call(A4,b)&&A4[b])return!0;var X=b.toLowerCase();if(X==="onfocusin"||X==="onfocusout")return G("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),A4[b]=!0,!0;if(Q!=null){var{registrationNameDependencies:Z,possibleRegistrationNames:J}=Q;if(Z.hasOwnProperty(b))return!0;var H=J.hasOwnProperty(X)?J[X]:null;if(H!=null)return G("Invalid event handler property `%s`. Did you mean `%s`?",b,H),A4[b]=!0,!0;if(q$.test(b))return G("Unknown event handler property `%s`. It will be ignored.",b),A4[b]=!0,!0}else if(q$.test(b)){if(R9.test(b))G("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b);return A4[b]=!0,!0}if(M9.test(b)||k9.test(b))return!0;if(X==="innerhtml")return G("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),A4[b]=!0,!0;if(X==="aria")return G("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),A4[b]=!0,!0;if(X==="is"&&z!==null&&z!==void 0&&typeof z!=="string")return G("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof z),A4[b]=!0,!0;if(typeof z==="number"&&isNaN(z))return G("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),A4[b]=!0,!0;var $=A6(b),q=$!==null&&$.type===i6;if(GQ.hasOwnProperty(X)){var O=GQ[X];if(O!==b)return G("Invalid DOM property `%s`. Did you mean `%s`?",b,O),A4[b]=!0,!0}else if(!q&&b!==X)return G("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",b,X),A4[b]=!0,!0;if(typeof z==="boolean"&&Y6(b,z,$,!1)){if(z)G('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',z,b,b,z,b);else G('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',z,b,b,z,b,b,b);return A4[b]=!0,!0}if(q)return!0;if(Y6(b,z,$,!1))return A4[b]=!0,!1;if((z==="false"||z==="true")&&$!==null&&$.type===p1)return G("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",z,b,z==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',b,z),A4[b]=!0,!0;return!0}}var w9=function(v,b,z){{var Q=[];for(var X in b){var Z=U$(v,X,b[X],z);if(!Z)Q.push(X)}var J=Q.map(function(H){return"`"+H+"`"}).join(", ");if(Q.length===1)G("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",J,v);else if(Q.length>1)G("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",J,v)}};function V9(v,b,z){if(zv(v,b))return;w9(v,b,z)}var B$=1,jZ=2,K8=4,D9=B$|jZ|K8,U8=null;function I9(v){if(U8!==null)G("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.");U8=v}function f9(){if(U8===null)G("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.");U8=null}function E9(v){return v===U8}function yZ(v){var b=v.target||v.srcElement||window;if(b.correspondingUseElement)b=b.correspondingUseElement;return b.nodeType===p5?b.parentNode:b}var cZ=null,iv=null,pv=null;function O$(v){var b=T7(v);if(!b)return;if(typeof cZ!=="function")throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var z=b.stateNode;if(z){var Q=iQ(z);cZ(b.stateNode,b.type,Q)}}function T9(v){cZ=v}function L$(v){if(iv)if(pv)pv.push(v);else pv=[v];else iv=v}function C9(){return iv!==null||pv!==null}function _$(){if(!iv)return;var v=iv,b=pv;if(iv=null,pv=null,O$(v),b)for(var z=0;z<b.length;z++)O$(b[z])}var W$=function(v,b){return v(b)},N$=function(){},xZ=!1;function S9(){var v=C9();if(v)N$(),_$()}function A$(v,b,z){if(xZ)return v(b,z);xZ=!0;try{return W$(v,b,z)}finally{xZ=!1,S9()}}function h9(v,b,z){W$=v,N$=z}function g9(v){return v==="button"||v==="input"||v==="select"||v==="textarea"}function u9(v,b,z){switch(v){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(z.disabled&&g9(b));default:return!1}}function q8(v,b){var z=v.stateNode;if(z===null)return null;var Q=iQ(z);if(Q===null)return null;var X=Q[b];if(u9(b,v.type,Q))return null;if(X&&typeof X!=="function")throw Error("Expected `"+b+"` listener to be a function, instead got a value of `"+typeof X+"` type.");return X}var aZ=!1;if(i1)try{var B8={};Object.defineProperty(B8,"passive",{get:function(){aZ=!0}}),window.addEventListener("test",B8,B8),window.removeEventListener("test",B8,B8)}catch(v){aZ=!1}function P$(v,b,z,Q,X,Z,J,H,$){var q=Array.prototype.slice.call(arguments,3);try{b.apply(z,q)}catch(O){this.onError(O)}}var F$=P$;if(typeof window<"u"&&typeof window.dispatchEvent==="function"&&typeof document<"u"&&typeof document.createEvent==="function"){var lZ=document.createElement("react");F$=function(b,z,Q,X,Z,J,H,$,q){if(typeof document>"u"||document===null)throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var O=document.createEvent("Event"),k=!1,M=!0,S=window.event,h=Object.getOwnPropertyDescriptor(window,"event");function g(){if(lZ.removeEventListener(d,T0,!1),typeof window.event<"u"&&window.hasOwnProperty("event"))window.event=S}var $0=Array.prototype.slice.call(arguments,3);function T0(){k=!0,g(),z.apply(Q,$0),M=!1}var V0,X1=!1,Z1=!1;function D(I){if(V0=I.error,X1=!0,V0===null&&I.colno===0&&I.lineno===0)Z1=!0;if(I.defaultPrevented){if(V0!=null&&typeof V0==="object")try{V0._suppressLogging=!0}catch(r){}}}var d="react-"+(b?b:"invokeguardedcallback");if(window.addEventListener("error",D),lZ.addEventListener(d,T0,!1),O.initEvent(d,!1,!1),lZ.dispatchEvent(O),h)Object.defineProperty(window,"event",h);if(k&&M){if(!X1)V0=Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`);else if(Z1)V0=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(V0)}if(window.removeEventListener("error",D),!k)return g(),P$.apply(this,arguments)}}var m9=F$,rv=!1,$Q=null,KQ=!1,oZ=null,d9={onError:function(v){rv=!0,$Q=v}};function iZ(v,b,z,Q,X,Z,J,H,$){rv=!1,$Q=null,m9.apply(d9,arguments)}function j9(v,b,z,Q,X,Z,J,H,$){if(iZ.apply(this,arguments),rv){var q=pZ();if(!KQ)KQ=!0,oZ=q}}function y9(){if(KQ){var v=oZ;throw KQ=!1,oZ=null,v}}function c9(){return rv}function pZ(){if(rv){var v=$Q;return rv=!1,$Q=null,v}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function nv(v){return v._reactInternals}function x9(v){return v._reactInternals!==void 0}function a9(v,b){v._reactInternals=b}var g0=0,tv=1,w6=2,U1=4,Qv=16,O8=32,rZ=64,W1=128,n5=256,k7=512,Xv=1024,Y5=2048,t5=4096,Zv=8192,UQ=16384,l9=Y5|U1|rZ|k7|Xv|UQ,o9=32767,L8=32768,P4=65536,nZ=131072,R$=1048576,tZ=2097152,Jv=4194304,sZ=8388608,s5=16777216,qQ=33554432,eZ=U1|Xv|0,vJ=w6|U1|Qv|O8|k7|t5|Zv,_8=U1|rZ|k7|Zv,sv=Y5|Qv,e5=Jv|sZ|tZ,i9=Y.ReactCurrentOwner;function Yv(v){var b=v,z=v;if(!v.alternate){var Q=b;do{if(b=Q,(b.flags&(w6|t5))!==g0)z=b.return;Q=b.return}while(Q)}else while(b.return)b=b.return;if(b.tag===f)return z;return null}function M$(v){if(v.tag===a){var b=v.memoizedState;if(b===null){var z=v.alternate;if(z!==null)b=z.memoizedState}if(b!==null)return b.dehydrated}return null}function k$(v){return v.tag===f?v.stateNode.containerInfo:null}function p9(v){return Yv(v)===v}function r9(v){{var b=i9.current;if(b!==null&&b.tag===N){var z=b,Q=z.stateNode;if(!Q._warnedAboutRefsInRender)G("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",t0(z)||"A component");Q._warnedAboutRefsInRender=!0}}var X=nv(v);if(!X)return!1;return Yv(X)===X}function w$(v){if(Yv(v)!==v)throw Error("Unable to find node on an unmounted component.")}function V$(v){var b=v.alternate;if(!b){var z=Yv(v);if(z===null)throw Error("Unable to find node on an unmounted component.");if(z!==v)return null;return v}var Q=v,X=b;while(!0){var Z=Q.return;if(Z===null)break;var J=Z.alternate;if(J===null){var H=Z.return;if(H!==null){Q=X=H;continue}break}if(Z.child===J.child){var $=Z.child;while($){if($===Q)return w$(Z),v;if($===X)return w$(Z),b;$=$.sibling}throw Error("Unable to find node on an unmounted component.")}if(Q.return!==X.return)Q=Z,X=J;else{var q=!1,O=Z.child;while(O){if(O===Q){q=!0,Q=Z,X=J;break}if(O===X){q=!0,X=Z,Q=J;break}O=O.sibling}if(!q){O=J.child;while(O){if(O===Q){q=!0,Q=J,X=Z;break}if(O===X){q=!0,X=J,Q=Z;break}O=O.sibling}if(!q)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(Q.alternate!==X)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(Q.tag!==f)throw Error("Unable to find node on an unmounted component.");if(Q.stateNode.current===Q)return v;return b}function D$(v){var b=V$(v);return b!==null?I$(b):null}function I$(v){if(v.tag===w||v.tag===E)return v;var b=v.child;while(b!==null){var z=I$(b);if(z!==null)return z;b=b.sibling}return null}function n9(v){var b=V$(v);return b!==null?f$(b):null}function f$(v){if(v.tag===w||v.tag===E)return v;var b=v.child;while(b!==null){if(b.tag!==R){var z=f$(b);if(z!==null)return z}b=b.sibling}return null}var E$=T1.unstable_scheduleCallback,t9=T1.unstable_cancelCallback,s9=T1.unstable_shouldYield,e9=T1.unstable_requestPaint,x6=T1.unstable_now,vO=T1.unstable_getCurrentPriorityLevel,BQ=T1.unstable_ImmediatePriority,bJ=T1.unstable_UserBlockingPriority,Hv=T1.unstable_NormalPriority,bO=T1.unstable_LowPriority,zJ=T1.unstable_IdlePriority,zO=T1.unstable_yieldValue,QO=T1.unstable_setDisableYieldValue,Gv=null,r6=null,q0=null,f5=!1,H5=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function XO(v){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled)return!0;if(!b.supportsFiber)return G("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{if($6)v=e0({},v,{getLaneLabelMap:$O,injectProfilingHooks:GO});Gv=b.inject(v),r6=b}catch(z){G("React instrumentation encountered an error: %s.",z)}if(b.checkDCE)return!0;else return!1}function ZO(v,b){if(r6&&typeof r6.onScheduleFiberRoot==="function")try{r6.onScheduleFiberRoot(Gv,v,b)}catch(z){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",z)}}function JO(v,b){if(r6&&typeof r6.onCommitFiberRoot==="function")try{var z=(v.current.flags&W1)===W1;if(s1){var Q;switch(b){case y4:Q=BQ;break;case b7:Q=bJ;break;case z7:Q=Hv;break;case FQ:Q=zJ;break;default:Q=Hv;break}r6.onCommitFiberRoot(Gv,v,Q,z)}else r6.onCommitFiberRoot(Gv,v,void 0,z)}catch(X){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",X)}}function YO(v){if(r6&&typeof r6.onPostCommitFiberRoot==="function")try{r6.onPostCommitFiberRoot(Gv,v)}catch(b){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",b)}}function HO(v){if(r6&&typeof r6.onCommitFiberUnmount==="function")try{r6.onCommitFiberUnmount(Gv,v)}catch(b){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",b)}}function a6(v){{if(typeof zO==="function")QO(v),B(v);if(r6&&typeof r6.setStrictMode==="function")try{r6.setStrictMode(Gv,v)}catch(b){if(!f5)f5=!0,G("React instrumentation encountered an error: %s",b)}}}function GO(v){q0=v}function $O(){{var v=new Map,b=1;for(var z=0;z<XJ;z++){var Q=fO(b);v.set(b,Q),b*=2}return v}}function KO(v){if(q0!==null&&typeof q0.markCommitStarted==="function")q0.markCommitStarted(v)}function T$(){if(q0!==null&&typeof q0.markCommitStopped==="function")q0.markCommitStopped()}function W8(v){if(q0!==null&&typeof q0.markComponentRenderStarted==="function")q0.markComponentRenderStarted(v)}function ev(){if(q0!==null&&typeof q0.markComponentRenderStopped==="function")q0.markComponentRenderStopped()}function UO(v){if(q0!==null&&typeof q0.markComponentPassiveEffectMountStarted==="function")q0.markComponentPassiveEffectMountStarted(v)}function qO(){if(q0!==null&&typeof q0.markComponentPassiveEffectMountStopped==="function")q0.markComponentPassiveEffectMountStopped()}function BO(v){if(q0!==null&&typeof q0.markComponentPassiveEffectUnmountStarted==="function")q0.markComponentPassiveEffectUnmountStarted(v)}function OO(){if(q0!==null&&typeof q0.markComponentPassiveEffectUnmountStopped==="function")q0.markComponentPassiveEffectUnmountStopped()}function LO(v){if(q0!==null&&typeof q0.markComponentLayoutEffectMountStarted==="function")q0.markComponentLayoutEffectMountStarted(v)}function _O(){if(q0!==null&&typeof q0.markComponentLayoutEffectMountStopped==="function")q0.markComponentLayoutEffectMountStopped()}function C$(v){if(q0!==null&&typeof q0.markComponentLayoutEffectUnmountStarted==="function")q0.markComponentLayoutEffectUnmountStarted(v)}function S$(){if(q0!==null&&typeof q0.markComponentLayoutEffectUnmountStopped==="function")q0.markComponentLayoutEffectUnmountStopped()}function WO(v,b,z){if(q0!==null&&typeof q0.markComponentErrored==="function")q0.markComponentErrored(v,b,z)}function NO(v,b,z){if(q0!==null&&typeof q0.markComponentSuspended==="function")q0.markComponentSuspended(v,b,z)}function AO(v){if(q0!==null&&typeof q0.markLayoutEffectsStarted==="function")q0.markLayoutEffectsStarted(v)}function PO(){if(q0!==null&&typeof q0.markLayoutEffectsStopped==="function")q0.markLayoutEffectsStopped()}function FO(v){if(q0!==null&&typeof q0.markPassiveEffectsStarted==="function")q0.markPassiveEffectsStarted(v)}function RO(){if(q0!==null&&typeof q0.markPassiveEffectsStopped==="function")q0.markPassiveEffectsStopped()}function h$(v){if(q0!==null&&typeof q0.markRenderStarted==="function")q0.markRenderStarted(v)}function MO(){if(q0!==null&&typeof q0.markRenderYielded==="function")q0.markRenderYielded()}function g$(){if(q0!==null&&typeof q0.markRenderStopped==="function")q0.markRenderStopped()}function kO(v){if(q0!==null&&typeof q0.markRenderScheduled==="function")q0.markRenderScheduled(v)}function wO(v,b){if(q0!==null&&typeof q0.markForceUpdateScheduled==="function")q0.markForceUpdateScheduled(v,b)}function QJ(v,b){if(q0!==null&&typeof q0.markStateUpdateScheduled==="function")q0.markStateUpdateScheduled(v,b)}var S0=0,G1=1,I1=2,L6=8,E5=16,u$=Math.clz32?Math.clz32:IO,VO=Math.log,DO=Math.LN2;function IO(v){var b=v>>>0;if(b===0)return 32;return 31-(VO(b)/DO|0)|0}var XJ=31,o=0,l6=0,x0=1,vb=2,v7=4,$v=8,T5=16,N8=32,bb=4194240,A8=64,ZJ=128,JJ=256,YJ=512,HJ=1024,GJ=2048,$J=4096,KJ=8192,UJ=16384,qJ=32768,BJ=65536,OJ=131072,LJ=262144,_J=524288,WJ=1048576,NJ=2097152,OQ=130023424,zb=4194304,AJ=8388608,PJ=16777216,FJ=33554432,RJ=67108864,m$=zb,P8=134217728,d$=268435455,F8=268435456,Kv=536870912,d4=1073741824;function fO(v){{if(v&x0)return"Sync";if(v&vb)return"InputContinuousHydration";if(v&v7)return"InputContinuous";if(v&$v)return"DefaultHydration";if(v&T5)return"Default";if(v&N8)return"TransitionHydration";if(v&bb)return"Transition";if(v&OQ)return"Retry";if(v&P8)return"SelectiveHydration";if(v&F8)return"IdleHydration";if(v&Kv)return"Idle";if(v&d4)return"Offscreen"}}var n1=-1,LQ=A8,_Q=zb;function R8(v){switch(Uv(v)){case x0:return x0;case vb:return vb;case v7:return v7;case $v:return $v;case T5:return T5;case N8:return N8;case A8:case ZJ:case JJ:case YJ:case HJ:case GJ:case $J:case KJ:case UJ:case qJ:case BJ:case OJ:case LJ:case _J:case WJ:case NJ:return v&bb;case zb:case AJ:case PJ:case FJ:case RJ:return v&OQ;case P8:return P8;case F8:return F8;case Kv:return Kv;case d4:return d4;default:return G("Should have found matching lanes. This is a bug in React."),v}}function WQ(v,b){var z=v.pendingLanes;if(z===o)return o;var Q=o,X=v.suspendedLanes,Z=v.pingedLanes,J=z&d$;if(J!==o){var H=J&~X;if(H!==o)Q=R8(H);else{var $=J&Z;if($!==o)Q=R8($)}}else{var q=z&~X;if(q!==o)Q=R8(q);else if(Z!==o)Q=R8(Z)}if(Q===o)return o;if(b!==o&&b!==Q&&(b&X)===o){var O=Uv(Q),k=Uv(b);if(O>=k||O===T5&&(k&bb)!==o)return b}if((Q&v7)!==o)Q|=z&T5;var M=v.entangledLanes;if(M!==o){var S=v.entanglements,h=Q&M;while(h>0){var g=qv(h),$0=1<<g;Q|=S[g],h&=~$0}}return Q}function EO(v,b){var z=v.eventTimes,Q=n1;while(b>0){var X=qv(b),Z=1<<X,J=z[X];if(J>Q)Q=J;b&=~Z}return Q}function TO(v,b){switch(v){case x0:case vb:case v7:return b+250;case $v:case T5:case N8:case A8:case ZJ:case JJ:case YJ:case HJ:case GJ:case $J:case KJ:case UJ:case qJ:case BJ:case OJ:case LJ:case _J:case WJ:case NJ:return b+5000;case zb:case AJ:case PJ:case FJ:case RJ:return n1;case P8:case F8:case Kv:case d4:return n1;default:return G("Should have found matching lanes. This is a bug in React."),n1}}function CO(v,b){var{pendingLanes:z,suspendedLanes:Q,pingedLanes:X,expirationTimes:Z}=v,J=z;while(J>0){var H=qv(J),$=1<<H,q=Z[H];if(q===n1){if(($&Q)===o||($&X)!==o)Z[H]=TO($,b)}else if(q<=b)v.expiredLanes|=$;J&=~$}}function SO(v){return R8(v.pendingLanes)}function MJ(v){var b=v.pendingLanes&~d4;if(b!==o)return b;if(b&d4)return d4;return o}function hO(v){return(v&x0)!==o}function kJ(v){return(v&d$)!==o}function j$(v){return(v&OQ)===v}function gO(v){var b=x0|v7|T5;return(v&b)===o}function uO(v){return(v&bb)===v}function NQ(v,b){var z=vb|v7|$v|T5;return(b&z)!==o}function mO(v,b){return(b&v.expiredLanes)!==o}function y$(v){return(v&bb)!==o}function c$(){var v=LQ;if(LQ<<=1,(LQ&bb)===o)LQ=A8;return v}function dO(){var v=_Q;if(_Q<<=1,(_Q&OQ)===o)_Q=zb;return v}function Uv(v){return v&-v}function M8(v){return Uv(v)}function qv(v){return 31-u$(v)}function wJ(v){return qv(v)}function j4(v,b){return(v&b)!==o}function Qb(v,b){return(v&b)===b}function s0(v,b){return v|b}function AQ(v,b){return v&~b}function x$(v,b){return v&b}function PQ(v){return v}function jO(v,b){return v!==l6&&v<b?v:b}function VJ(v){var b=[];for(var z=0;z<XJ;z++)b.push(v);return b}function k8(v,b,z){if(v.pendingLanes|=b,b!==Kv)v.suspendedLanes=o,v.pingedLanes=o;var Q=v.eventTimes,X=wJ(b);Q[X]=z}function yO(v,b){v.suspendedLanes|=b,v.pingedLanes&=~b;var z=v.expirationTimes,Q=b;while(Q>0){var X=qv(Q),Z=1<<X;z[X]=n1,Q&=~Z}}function a$(v,b,z){v.pingedLanes|=v.suspendedLanes&b}function cO(v,b){var z=v.pendingLanes&~b;v.pendingLanes=b,v.suspendedLanes=o,v.pingedLanes=o,v.expiredLanes&=b,v.mutableReadLanes&=b,v.entangledLanes&=b;var{entanglements:Q,eventTimes:X,expirationTimes:Z}=v,J=z;while(J>0){var H=qv(J),$=1<<H;Q[H]=o,X[H]=n1,Z[H]=n1,J&=~$}}function DJ(v,b){var z=v.entangledLanes|=b,Q=v.entanglements,X=z;while(X){var Z=qv(X),J=1<<Z;if(J&b|Q[Z]&b)Q[Z]|=b;X&=~J}}function xO(v,b){var z=Uv(b),Q;switch(z){case v7:Q=vb;break;case T5:Q=$v;break;case A8:case ZJ:case JJ:case YJ:case HJ:case GJ:case $J:case KJ:case UJ:case qJ:case BJ:case OJ:case LJ:case _J:case WJ:case NJ:case zb:case AJ:case PJ:case FJ:case RJ:Q=N8;break;case Kv:Q=F8;break;default:Q=l6;break}if((Q&(v.suspendedLanes|b))!==l6)return l6;return Q}function l$(v,b,z){if(!H5)return;var Q=v.pendingUpdatersLaneMap;while(z>0){var X=wJ(z),Z=1<<X,J=Q[X];J.add(b),z&=~Z}}function o$(v,b){if(!H5)return;var{pendingUpdatersLaneMap:z,memoizedUpdaters:Q}=v;while(b>0){var X=wJ(b),Z=1<<X,J=z[X];if(J.size>0)J.forEach(function(H){var $=H.alternate;if($===null||!Q.has($))Q.add(H)}),J.clear();b&=~Z}}function i$(v,b){return null}var y4=x0,b7=v7,z7=T5,FQ=Kv,w8=l6;function G5(){return w8}function o6(v){w8=v}function aO(v,b){var z=w8;try{return w8=v,b()}finally{w8=z}}function lO(v,b){return v!==0&&v<b?v:b}function oO(v,b){return v===0||v>b?v:b}function IJ(v,b){return v!==0&&v<b}function p$(v){var b=Uv(v);if(!IJ(y4,b))return y4;if(!IJ(b7,b))return b7;if(kJ(b))return z7;return FQ}function RQ(v){var b=v.current.memoizedState;return b.isDehydrated}var r$;function iO(v){r$=v}function pO(v){r$(v)}var fJ;function rO(v){fJ=v}var n$;function nO(v){n$=v}var t$;function tO(v){t$=v}var s$;function sO(v){s$=v}var EJ=!1,MQ=[],w7=null,V7=null,D7=null,V8=new Map,D8=new Map,I7=[],eO=["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 vL(v){return eO.indexOf(v)>-1}function bL(v,b,z,Q,X){return{blockedOn:v,domEventName:b,eventSystemFlags:z,nativeEvent:X,targetContainers:[Q]}}function e$(v,b){switch(v){case"focusin":case"focusout":w7=null;break;case"dragenter":case"dragleave":V7=null;break;case"mouseover":case"mouseout":D7=null;break;case"pointerover":case"pointerout":{var z=b.pointerId;V8.delete(z);break}case"gotpointercapture":case"lostpointercapture":{var Q=b.pointerId;D8.delete(Q);break}}}function I8(v,b,z,Q,X,Z){if(v===null||v.nativeEvent!==Z){var J=bL(b,z,Q,X,Z);if(b!==null){var H=T7(b);if(H!==null)fJ(H)}return J}v.eventSystemFlags|=Q;var $=v.targetContainers;if(X!==null&&$.indexOf(X)===-1)$.push(X);return v}function zL(v,b,z,Q,X){switch(b){case"focusin":{var Z=X;return w7=I8(w7,v,b,z,Q,Z),!0}case"dragenter":{var J=X;return V7=I8(V7,v,b,z,Q,J),!0}case"mouseover":{var H=X;return D7=I8(D7,v,b,z,Q,H),!0}case"pointerover":{var $=X,q=$.pointerId;return V8.set(q,I8(V8.get(q)||null,v,b,z,Q,$)),!0}case"gotpointercapture":{var O=X,k=O.pointerId;return D8.set(k,I8(D8.get(k)||null,v,b,z,Q,O)),!0}}return!1}function v3(v){var b=Lv(v.target);if(b!==null){var z=Yv(b);if(z!==null){var Q=z.tag;if(Q===a){var X=M$(z);if(X!==null){v.blockedOn=X,s$(v.priority,function(){n$(z)});return}}else if(Q===f){var Z=z.stateNode;if(RQ(Z)){v.blockedOn=k$(z);return}}}}v.blockedOn=null}function QL(v){var b=t$(),z={blockedOn:null,target:v,priority:b},Q=0;for(;Q<I7.length;Q++)if(!IJ(b,I7[Q].priority))break;if(I7.splice(Q,0,z),Q===0)v3(z)}function kQ(v){if(v.blockedOn!==null)return!1;var b=v.targetContainers;while(b.length>0){var z=b[0],Q=SJ(v.domEventName,v.eventSystemFlags,z,v.nativeEvent);if(Q===null){var X=v.nativeEvent,Z=new X.constructor(X.type,X);I9(Z),X.target.dispatchEvent(Z),f9()}else{var J=T7(Q);if(J!==null)fJ(J);return v.blockedOn=Q,!1}b.shift()}return!0}function b3(v,b,z){if(kQ(v))z.delete(b)}function XL(){if(EJ=!1,w7!==null&&kQ(w7))w7=null;if(V7!==null&&kQ(V7))V7=null;if(D7!==null&&kQ(D7))D7=null;V8.forEach(b3),D8.forEach(b3)}function f8(v,b){if(v.blockedOn===b){if(v.blockedOn=null,!EJ)EJ=!0,T1.unstable_scheduleCallback(T1.unstable_NormalPriority,XL)}}function E8(v){if(MQ.length>0){f8(MQ[0],v);for(var b=1;b<MQ.length;b++){var z=MQ[b];if(z.blockedOn===v)z.blockedOn=null}}if(w7!==null)f8(w7,v);if(V7!==null)f8(V7,v);if(D7!==null)f8(D7,v);var Q=function(H){return f8(H,v)};V8.forEach(Q),D8.forEach(Q);for(var X=0;X<I7.length;X++){var Z=I7[X];if(Z.blockedOn===v)Z.blockedOn=null}while(I7.length>0){var J=I7[0];if(J.blockedOn!==null)break;else if(v3(J),J.blockedOn===null)I7.shift()}}var Xb=Y.ReactCurrentBatchConfig,TJ=!0;function z3(v){TJ=!!v}function ZL(){return TJ}function JL(v,b,z){var Q=Q3(b),X;switch(Q){case y4:X=YL;break;case b7:X=HL;break;case z7:default:X=CJ;break}return X.bind(null,b,z,v)}function YL(v,b,z,Q){var X=G5(),Z=Xb.transition;Xb.transition=null;try{o6(y4),CJ(v,b,z,Q)}finally{o6(X),Xb.transition=Z}}function HL(v,b,z,Q){var X=G5(),Z=Xb.transition;Xb.transition=null;try{o6(b7),CJ(v,b,z,Q)}finally{o6(X),Xb.transition=Z}}function CJ(v,b,z,Q){if(!TJ)return;GL(v,b,z,Q)}function GL(v,b,z,Q){var X=SJ(v,b,z,Q);if(X===null){pJ(v,b,Q,wQ,z),e$(v,Q);return}if(zL(X,v,b,z,Q)){Q.stopPropagation();return}if(e$(v,Q),b&K8&&vL(v)){while(X!==null){var Z=T7(X);if(Z!==null)pO(Z);var J=SJ(v,b,z,Q);if(J===null)pJ(v,b,Q,wQ,z);if(J===X)break;X=J}if(X!==null)Q.stopPropagation();return}pJ(v,b,Q,null,z)}var wQ=null;function SJ(v,b,z,Q){wQ=null;var X=yZ(Q),Z=Lv(X);if(Z!==null){var J=Yv(Z);if(J===null)Z=null;else{var H=J.tag;if(H===a){var $=M$(J);if($!==null)return $;Z=null}else if(H===f){var q=J.stateNode;if(RQ(q))return k$(J);Z=null}else if(J!==Z)Z=null}}return wQ=Z,null}function Q3(v){switch(v){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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 b7;case"message":{var b=vO();switch(b){case BQ:return y4;case bJ:return b7;case Hv:case bO:return z7;case zJ:return FQ;default:return z7}}default:return z7}}function $L(v,b,z){return v.addEventListener(b,z,!1),z}function KL(v,b,z){return v.addEventListener(b,z,!0),z}function UL(v,b,z,Q){return v.addEventListener(b,z,{capture:!0,passive:Q}),z}function qL(v,b,z,Q){return v.addEventListener(b,z,{passive:Q}),z}var T8=null,hJ=null,C8=null;function BL(v){return T8=v,hJ=Z3(),!0}function OL(){T8=null,hJ=null,C8=null}function X3(){if(C8)return C8;var v,b=hJ,z=b.length,Q,X=Z3(),Z=X.length;for(v=0;v<z;v++)if(b[v]!==X[v])break;var J=z-v;for(Q=1;Q<=J;Q++)if(b[z-Q]!==X[Z-Q])break;var H=Q>1?1-Q:void 0;return C8=X.slice(v,H),C8}function Z3(){if("value"in T8)return T8.value;return T8.textContent}function VQ(v){var b,z=v.keyCode;if("charCode"in v){if(b=v.charCode,b===0&&z===13)b=13}else b=z;if(b===10)b=13;if(b>=32||b===13)return b;return 0}function DQ(){return!0}function J3(){return!1}function c4(v){function b(z,Q,X,Z,J){this._reactName=z,this._targetInst=X,this.type=Q,this.nativeEvent=Z,this.target=J,this.currentTarget=null;for(var H in v){if(!v.hasOwnProperty(H))continue;var $=v[H];if($)this[H]=$(Z);else this[H]=Z[H]}var q=Z.defaultPrevented!=null?Z.defaultPrevented:Z.returnValue===!1;if(q)this.isDefaultPrevented=DQ;else this.isDefaultPrevented=J3;return this.isPropagationStopped=J3,this}return e0(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var z=this.nativeEvent;if(!z)return;if(z.preventDefault)z.preventDefault();else if(typeof z.returnValue!=="unknown")z.returnValue=!1;this.isDefaultPrevented=DQ},stopPropagation:function(){var z=this.nativeEvent;if(!z)return;if(z.stopPropagation)z.stopPropagation();else if(typeof z.cancelBubble!=="unknown")z.cancelBubble=!0;this.isPropagationStopped=DQ},persist:function(){},isPersistent:DQ}),b}var Zb={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(v){return v.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gJ=c4(Zb),S8=e0({},Zb,{view:0,detail:0}),LL=c4(S8),uJ,mJ,h8;function _L(v){if(v!==h8){if(h8&&v.type==="mousemove")uJ=v.screenX-h8.screenX,mJ=v.screenY-h8.screenY;else uJ=0,mJ=0;h8=v}}var IQ=e0({},S8,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jJ,button:0,buttons:0,relatedTarget:function(v){if(v.relatedTarget===void 0)return v.fromElement===v.srcElement?v.toElement:v.fromElement;return v.relatedTarget},movementX:function(v){if("movementX"in v)return v.movementX;return _L(v),uJ},movementY:function(v){if("movementY"in v)return v.movementY;return mJ}}),Y3=c4(IQ),WL=e0({},IQ,{dataTransfer:0}),NL=c4(WL),AL=e0({},S8,{relatedTarget:0}),dJ=c4(AL),PL=e0({},Zb,{animationName:0,elapsedTime:0,pseudoElement:0}),FL=c4(PL),RL=e0({},Zb,{clipboardData:function(v){return"clipboardData"in v?v.clipboardData:window.clipboardData}}),ML=c4(RL),kL=e0({},Zb,{data:0}),H3=c4(kL),wL=H3,VL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DL={"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 IL(v){if(v.key){var b=VL[v.key]||v.key;if(b!=="Unidentified")return b}if(v.type==="keypress"){var z=VQ(v);return z===13?"Enter":String.fromCharCode(z)}if(v.type==="keydown"||v.type==="keyup")return DL[v.keyCode]||"Unidentified";return""}var fL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function EL(v){var b=this,z=b.nativeEvent;if(z.getModifierState)return z.getModifierState(v);var Q=fL[v];return Q?!!z[Q]:!1}function jJ(v){return EL}var TL=e0({},S8,{key:IL,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jJ,charCode:function(v){if(v.type==="keypress")return VQ(v);return 0},keyCode:function(v){if(v.type==="keydown"||v.type==="keyup")return v.keyCode;return 0},which:function(v){if(v.type==="keypress")return VQ(v);if(v.type==="keydown"||v.type==="keyup")return v.keyCode;return 0}}),CL=c4(TL),SL=e0({},IQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),G3=c4(SL),hL=e0({},S8,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jJ}),gL=c4(hL),uL=e0({},Zb,{propertyName:0,elapsedTime:0,pseudoElement:0}),mL=c4(uL),dL=e0({},IQ,{deltaX:function(v){return"deltaX"in v?v.deltaX:("wheelDeltaX"in v)?-v.wheelDeltaX:0},deltaY:function(v){return"deltaY"in v?v.deltaY:("wheelDeltaY"in v)?-v.wheelDeltaY:("wheelDelta"in v)?-v.wheelDelta:0},deltaZ:0,deltaMode:0}),jL=c4(dL),yL=[9,13,27,32],$3=229,yJ=i1&&"CompositionEvent"in window,g8=null;if(i1&&"documentMode"in document)g8=document.documentMode;var cL=i1&&"TextEvent"in window&&!g8,K3=i1&&(!yJ||g8&&g8>8&&g8<=11),U3=32,q3=String.fromCharCode(U3);function xL(){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 B3=!1;function aL(v){return(v.ctrlKey||v.altKey||v.metaKey)&&!(v.ctrlKey&&v.altKey)}function lL(v){switch(v){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function oL(v,b){return v==="keydown"&&b.keyCode===$3}function O3(v,b){switch(v){case"keyup":return yL.indexOf(b.keyCode)!==-1;case"keydown":return b.keyCode!==$3;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L3(v){var b=v.detail;if(typeof b==="object"&&"data"in b)return b.data;return null}function _3(v){return v.locale==="ko"}var Jb=!1;function iL(v,b,z,Q,X){var Z,J;if(yJ)Z=lL(b);else if(!Jb){if(oL(b,Q))Z="onCompositionStart"}else if(O3(b,Q))Z="onCompositionEnd";if(!Z)return null;if(K3&&!_3(Q)){if(!Jb&&Z==="onCompositionStart")Jb=BL(X);else if(Z==="onCompositionEnd"){if(Jb)J=X3()}}var H=SQ(z,Z);if(H.length>0){var $=new H3(Z,b,null,Q,X);if(v.push({event:$,listeners:H}),J)$.data=J;else{var q=L3(Q);if(q!==null)$.data=q}}}function pL(v,b){switch(v){case"compositionend":return L3(b);case"keypress":var z=b.which;if(z!==U3)return null;return B3=!0,q3;case"textInput":var Q=b.data;if(Q===q3&&B3)return null;return Q;default:return null}}function rL(v,b){if(Jb){if(v==="compositionend"||!yJ&&O3(v,b)){var z=X3();return OL(),Jb=!1,z}return null}switch(v){case"paste":return null;case"keypress":if(!aL(b)){if(b.char&&b.char.length>1)return b.char;else if(b.which)return String.fromCharCode(b.which)}return null;case"compositionend":return K3&&!_3(b)?null:b.data;default:return null}}function nL(v,b,z,Q,X){var Z;if(cL)Z=pL(b,Q);else Z=rL(b,Q);if(!Z)return null;var J=SQ(z,"onBeforeInput");if(J.length>0){var H=new wL("onBeforeInput","beforeinput",null,Q,X);v.push({event:H,listeners:J}),H.data=Z}}function tL(v,b,z,Q,X,Z,J){iL(v,b,z,Q,X),nL(v,b,z,Q,X)}var sL={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 W3(v){var b=v&&v.nodeName&&v.nodeName.toLowerCase();if(b==="input")return!!sL[v.type];if(b==="textarea")return!0;return!1}function eL(v){if(!i1)return!1;var b="on"+v,z=b in document;if(!z){var Q=document.createElement("div");Q.setAttribute(b,"return;"),z=typeof Q[b]==="function"}return z}function v_(){e1("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function N3(v,b,z,Q){L$(Q);var X=SQ(b,"onChange");if(X.length>0){var Z=new gJ("onChange","change",null,z,Q);v.push({event:Z,listeners:X})}}var u8=null,m8=null;function b_(v){var b=v.nodeName&&v.nodeName.toLowerCase();return b==="select"||b==="input"&&v.type==="file"}function z_(v){var b=[];N3(b,m8,v,yZ(v)),A$(Q_,b)}function Q_(v){u3(v,0)}function fQ(v){var b=Ub(v);if(cv(b))return v}function X_(v,b){if(v==="change")return b}var A3=!1;if(i1)A3=eL("input")&&(!document.documentMode||document.documentMode>9);function Z_(v,b){u8=v,m8=b,u8.attachEvent("onpropertychange",F3)}function P3(){if(!u8)return;u8.detachEvent("onpropertychange",F3),u8=null,m8=null}function F3(v){if(v.propertyName!=="value")return;if(fQ(m8))z_(v)}function J_(v,b,z){if(v==="focusin")P3(),Z_(b,z);else if(v==="focusout")P3()}function Y_(v,b){if(v==="selectionchange"||v==="keyup"||v==="keydown")return fQ(m8)}function H_(v){var b=v.nodeName;return b&&b.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")}function G_(v,b){if(v==="click")return fQ(b)}function $_(v,b){if(v==="input"||v==="change")return fQ(b)}function K_(v){var b=v._wrapperState;if(!b||!b.controlled||v.type!=="number")return;c0(v,"number",v.value)}function U_(v,b,z,Q,X,Z,J){var H=z?Ub(z):window,$,q;if(b_(H))$=X_;else if(W3(H))if(A3)$=$_;else $=Y_,q=J_;else if(H_(H))$=G_;if($){var O=$(b,z);if(O){N3(v,O,Q,X);return}}if(q)q(b,H,z);if(b==="focusout")K_(H)}function q_(){D6("onMouseEnter",["mouseout","mouseover"]),D6("onMouseLeave",["mouseout","mouseover"]),D6("onPointerEnter",["pointerout","pointerover"]),D6("onPointerLeave",["pointerout","pointerover"])}function B_(v,b,z,Q,X,Z,J){var H=b==="mouseover"||b==="pointerover",$=b==="mouseout"||b==="pointerout";if(H&&!E9(Q)){var q=Q.relatedTarget||Q.fromElement;if(q){if(Lv(q)||e8(q))return}}if(!$&&!H)return;var O;if(X.window===X)O=X;else{var k=X.ownerDocument;if(k)O=k.defaultView||k.parentWindow;else O=window}var M,S;if($){var h=Q.relatedTarget||Q.toElement;if(M=z,S=h?Lv(h):null,S!==null){var g=Yv(S);if(S!==g||S.tag!==w&&S.tag!==E)S=null}}else M=null,S=z;if(M===S)return;var $0=Y3,T0="onMouseLeave",V0="onMouseEnter",X1="mouse";if(b==="pointerout"||b==="pointerover")$0=G3,T0="onPointerLeave",V0="onPointerEnter",X1="pointer";var Z1=M==null?O:Ub(M),D=S==null?O:Ub(S),d=new $0(T0,X1+"leave",M,Q,X);d.target=Z1,d.relatedTarget=D;var I=null,r=Lv(X);if(r===z){var O0=new $0(V0,X1+"enter",S,Q,X);O0.target=D,O0.relatedTarget=Z1,I=O0}m_(v,d,I,M,S)}function O_(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var x4=typeof Object.is==="function"?Object.is:O_;function d8(v,b){if(x4(v,b))return!0;if(typeof v!=="object"||v===null||typeof b!=="object"||b===null)return!1;var z=Object.keys(v),Q=Object.keys(b);if(z.length!==Q.length)return!1;for(var X=0;X<z.length;X++){var Z=z[X];if(!I6.call(b,Z)||!x4(v[Z],b[Z]))return!1}return!0}function R3(v){while(v&&v.firstChild)v=v.firstChild;return v}function L_(v){while(v){if(v.nextSibling)return v.nextSibling;v=v.parentNode}}function M3(v,b){var z=R3(v),Q=0,X=0;while(z){if(z.nodeType===p5){if(X=Q+z.textContent.length,Q<=b&&X>=b)return{node:z,offset:b-Q};Q=X}z=R3(L_(z))}}function __(v){var b=v.ownerDocument,z=b&&b.defaultView||window,Q=z.getSelection&&z.getSelection();if(!Q||Q.rangeCount===0)return null;var{anchorNode:X,anchorOffset:Z,focusNode:J,focusOffset:H}=Q;try{X.nodeType,J.nodeType}catch($){return null}return W_(v,X,Z,J,H)}function W_(v,b,z,Q,X){var Z=0,J=-1,H=-1,$=0,q=0,O=v,k=null;v:while(!0){var M=null;while(!0){if(O===b&&(z===0||O.nodeType===p5))J=Z+z;if(O===Q&&(X===0||O.nodeType===p5))H=Z+X;if(O.nodeType===p5)Z+=O.nodeValue.length;if((M=O.firstChild)===null)break;k=O,O=M}while(!0){if(O===v)break v;if(k===b&&++$===z)J=Z;if(k===Q&&++q===X)H=Z;if((M=O.nextSibling)!==null)break;O=k,k=O.parentNode}O=M}if(J===-1||H===-1)return null;return{start:J,end:H}}function N_(v,b){var z=v.ownerDocument||document,Q=z&&z.defaultView||window;if(!Q.getSelection)return;var X=Q.getSelection(),Z=v.textContent.length,J=Math.min(b.start,Z),H=b.end===void 0?J:Math.min(b.end,Z);if(!X.extend&&J>H){var $=H;H=J,J=$}var q=M3(v,J),O=M3(v,H);if(q&&O){if(X.rangeCount===1&&X.anchorNode===q.node&&X.anchorOffset===q.offset&&X.focusNode===O.node&&X.focusOffset===O.offset)return;var k=z.createRange();if(k.setStart(q.node,q.offset),X.removeAllRanges(),J>H)X.addRange(k),X.extend(O.node,O.offset);else k.setEnd(O.node,O.offset),X.addRange(k)}}function k3(v){return v&&v.nodeType===p5}function w3(v,b){if(!v||!b)return!1;else if(v===b)return!0;else if(k3(v))return!1;else if(k3(b))return w3(v,b.parentNode);else if("contains"in v)return v.contains(b);else if(v.compareDocumentPosition)return!!(v.compareDocumentPosition(b)&16);else return!1}function A_(v){return v&&v.ownerDocument&&w3(v.ownerDocument.documentElement,v)}function P_(v){try{return typeof v.contentWindow.location.href==="string"}catch(b){return!1}}function V3(){var v=window,b=M7();while(b instanceof v.HTMLIFrameElement){if(P_(b))v=b.contentWindow;else return b;b=M7(v.document)}return b}function cJ(v){var b=v&&v.nodeName&&v.nodeName.toLowerCase();return b&&(b==="input"&&(v.type==="text"||v.type==="search"||v.type==="tel"||v.type==="url"||v.type==="password")||b==="textarea"||v.contentEditable==="true")}function F_(){var v=V3();return{focusedElem:v,selectionRange:cJ(v)?M_(v):null}}function R_(v){var b=V3(),z=v.focusedElem,Q=v.selectionRange;if(b!==z&&A_(z)){if(Q!==null&&cJ(z))k_(z,Q);var X=[],Z=z;while(Z=Z.parentNode)if(Z.nodeType===I4)X.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});if(typeof z.focus==="function")z.focus();for(var J=0;J<X.length;J++){var H=X[J];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}}function M_(v){var b;if("selectionStart"in v)b={start:v.selectionStart,end:v.selectionEnd};else b=__(v);return b||{start:0,end:0}}function k_(v,b){var{start:z,end:Q}=b;if(Q===void 0)Q=z;if("selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(Q,v.value.length);else N_(v,b)}var w_=i1&&"documentMode"in document&&document.documentMode<=11;function V_(){e1("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Yb=null,xJ=null,j8=null,aJ=!1;function D_(v){if("selectionStart"in v&&cJ(v))return{start:v.selectionStart,end:v.selectionEnd};else{var b=v.ownerDocument&&v.ownerDocument.defaultView||window,z=b.getSelection();return{anchorNode:z.anchorNode,anchorOffset:z.anchorOffset,focusNode:z.focusNode,focusOffset:z.focusOffset}}}function I_(v){return v.window===v?v.document:v.nodeType===r5?v:v.ownerDocument}function D3(v,b,z){var Q=I_(z);if(aJ||Yb==null||Yb!==M7(Q))return;var X=D_(Yb);if(!j8||!d8(j8,X)){j8=X;var Z=SQ(xJ,"onSelect");if(Z.length>0){var J=new gJ("onSelect","select",null,b,z);v.push({event:J,listeners:Z}),J.target=Yb}}}function f_(v,b,z,Q,X,Z,J){var H=z?Ub(z):window;switch(b){case"focusin":if(W3(H)||H.contentEditable==="true")Yb=H,xJ=z,j8=null;break;case"focusout":Yb=null,xJ=null,j8=null;break;case"mousedown":aJ=!0;break;case"contextmenu":case"mouseup":case"dragend":aJ=!1,D3(v,Q,X);break;case"selectionchange":if(w_)break;case"keydown":case"keyup":D3(v,Q,X)}}function EQ(v,b){var z={};return z[v.toLowerCase()]=b.toLowerCase(),z["Webkit"+v]="webkit"+b,z["Moz"+v]="moz"+b,z}var Hb={animationend:EQ("Animation","AnimationEnd"),animationiteration:EQ("Animation","AnimationIteration"),animationstart:EQ("Animation","AnimationStart"),transitionend:EQ("Transition","TransitionEnd")},lJ={},I3={};if(i1){if(I3=document.createElement("div").style,!("AnimationEvent"in window))delete Hb.animationend.animation,delete Hb.animationiteration.animation,delete Hb.animationstart.animation;if(!("TransitionEvent"in window))delete Hb.transitionend.transition}function TQ(v){if(lJ[v])return lJ[v];else if(!Hb[v])return v;var b=Hb[v];for(var z in b)if(b.hasOwnProperty(z)&&z in I3)return lJ[v]=b[z];return v}var f3=TQ("animationend"),E3=TQ("animationiteration"),T3=TQ("animationstart"),C3=TQ("transitionend"),S3=new Map,h3=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function f7(v,b){S3.set(v,b),e1(b,[v])}function E_(){for(var v=0;v<h3.length;v++){var b=h3[v],z=b.toLowerCase(),Q=b[0].toUpperCase()+b.slice(1);f7(z,"on"+Q)}f7(f3,"onAnimationEnd"),f7(E3,"onAnimationIteration"),f7(T3,"onAnimationStart"),f7("dblclick","onDoubleClick"),f7("focusin","onFocus"),f7("focusout","onBlur"),f7(C3,"onTransitionEnd")}function T_(v,b,z,Q,X,Z,J){var H=S3.get(b);if(H===void 0)return;var $=gJ,q=b;switch(b){case"keypress":if(VQ(Q)===0)return;case"keydown":case"keyup":$=CL;break;case"focusin":q="focus",$=dJ;break;case"focusout":q="blur",$=dJ;break;case"beforeblur":case"afterblur":$=dJ;break;case"click":if(Q.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Y3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=NL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=gL;break;case f3:case E3:case T3:$=FL;break;case C3:$=mL;break;case"scroll":$=LL;break;case"wheel":$=jL;break;case"copy":case"cut":case"paste":$=ML;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=G3;break}var O=(Z&K8)!==0;{var k=!O&&b==="scroll",M=g_(z,H,Q.type,O,k);if(M.length>0){var S=new $(H,q,null,Q,X);v.push({event:S,listeners:M})}}}E_(),q_(),v_(),V_(),xL();function C_(v,b,z,Q,X,Z,J){T_(v,b,z,Q,X,Z);var H=(Z&D9)===0;if(H)B_(v,b,z,Q,X),U_(v,b,z,Q,X),f_(v,b,z,Q,X),tL(v,b,z,Q,X)}var y8=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],oJ=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(y8));function g3(v,b,z){var Q=v.type||"unknown-event";v.currentTarget=z,j9(Q,b,void 0,v),v.currentTarget=null}function S_(v,b,z){var Q;if(z)for(var X=b.length-1;X>=0;X--){var Z=b[X],J=Z.instance,H=Z.currentTarget,$=Z.listener;if(J!==Q&&v.isPropagationStopped())return;g3(v,$,H),Q=J}else for(var q=0;q<b.length;q++){var O=b[q],k=O.instance,M=O.currentTarget,S=O.listener;if(k!==Q&&v.isPropagationStopped())return;g3(v,S,M),Q=k}}function u3(v,b){var z=(b&K8)!==0;for(var Q=0;Q<v.length;Q++){var X=v[Q],Z=X.event,J=X.listeners;S_(Z,J,z)}y9()}function h_(v,b,z,Q,X){var Z=yZ(z),J=[];C_(J,v,Q,z,Z,b),u3(J,b)}function Q6(v,b){if(!oJ.has(v))G('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',v);var z=!1,Q=KN(b),X=d_(v,z);if(!Q.has(X))m3(b,v,jZ,z),Q.add(X)}function iJ(v,b,z){if(oJ.has(v)&&!b)G('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',v);var Q=0;if(b)Q|=K8;m3(z,v,Q,b)}var CQ="_reactListening"+Math.random().toString(36).slice(2);function c8(v){if(!v[CQ]){v[CQ]=!0,K6.forEach(function(z){if(z!=="selectionchange"){if(!oJ.has(z))iJ(z,!1,v);iJ(z,!0,v)}});var b=v.nodeType===r5?v:v.ownerDocument;if(b!==null){if(!b[CQ])b[CQ]=!0,iJ("selectionchange",!1,b)}}}function m3(v,b,z,Q,X){var Z=JL(v,b,z),J=void 0;if(aZ){if(b==="touchstart"||b==="touchmove"||b==="wheel")J=!0}v=v;var H;if(Q)if(J!==void 0)H=UL(v,b,Z,J);else H=KL(v,b,Z);else if(J!==void 0)H=qL(v,b,Z,J);else H=$L(v,b,Z)}function d3(v,b){return v===b||v.nodeType===k6&&v.parentNode===b}function pJ(v,b,z,Q,X){var Z=Q;if((b&B$)===0&&(b&jZ)===0){var J=X;if(Q!==null){var H=Q;v:while(!0){if(H===null)return;var $=H.tag;if($===f||$===R){var q=H.stateNode.containerInfo;if(d3(q,J))break;if($===R){var O=H.return;while(O!==null){var k=O.tag;if(k===f||k===R){var M=O.stateNode.containerInfo;if(d3(M,J))return}O=O.return}}while(q!==null){var S=Lv(q);if(S===null)return;var h=S.tag;if(h===w||h===E){H=Z=S;continue v}q=q.parentNode}}H=H.return}}}A$(function(){return h_(v,b,z,Z)})}function x8(v,b,z){return{instance:v,listener:b,currentTarget:z}}function g_(v,b,z,Q,X,Z){var J=b!==null?b+"Capture":null,H=Q?J:b,$=[],q=v,O=null;while(q!==null){var k=q,M=k.stateNode,S=k.tag;if(S===w&&M!==null){if(O=M,H!==null){var h=q8(q,H);if(h!=null)$.push(x8(q,h,O))}}if(X)break;q=q.return}return $}function SQ(v,b){var z=b+"Capture",Q=[],X=v;while(X!==null){var Z=X,J=Z.stateNode,H=Z.tag;if(H===w&&J!==null){var $=J,q=q8(X,z);if(q!=null)Q.unshift(x8(X,q,$));var O=q8(X,b);if(O!=null)Q.push(x8(X,O,$))}X=X.return}return Q}function Gb(v){if(v===null)return null;do v=v.return;while(v&&v.tag!==w);if(v)return v;return null}function u_(v,b){var z=v,Q=b,X=0;for(var Z=z;Z;Z=Gb(Z))X++;var J=0;for(var H=Q;H;H=Gb(H))J++;while(X-J>0)z=Gb(z),X--;while(J-X>0)Q=Gb(Q),J--;var $=X;while($--){if(z===Q||Q!==null&&z===Q.alternate)return z;z=Gb(z),Q=Gb(Q)}return null}function j3(v,b,z,Q,X){var Z=b._reactName,J=[],H=z;while(H!==null){if(H===Q)break;var $=H,q=$.alternate,O=$.stateNode,k=$.tag;if(q!==null&&q===Q)break;if(k===w&&O!==null){var M=O;if(X){var S=q8(H,Z);if(S!=null)J.unshift(x8(H,S,M))}else if(!X){var h=q8(H,Z);if(h!=null)J.push(x8(H,h,M))}}H=H.return}if(J.length!==0)v.push({event:b,listeners:J})}function m_(v,b,z,Q,X){var Z=Q&&X?u_(Q,X):null;if(Q!==null)j3(v,b,Q,Z,!1);if(X!==null&&z!==null)j3(v,z,X,Z,!0)}function d_(v,b){return v+"__"+(b?"capture":"bubble")}var f4=!1,a8="dangerouslySetInnerHTML",hQ="suppressContentEditableWarning",E7="suppressHydrationWarning",y3="autoFocus",Bv="children",Ov="style",gQ="__html",rJ,uQ,l8,c3,mQ,x3,a3;rJ={dialog:!0,webview:!0},uQ=function(v,b){P9(v,b),F9(v,b),V9(v,b,{registrationNameDependencies:C1,possibleRegistrationNames:h1})},x3=i1&&!document.documentMode,l8=function(v,b,z){if(f4)return;var Q=dQ(z),X=dQ(b);if(X===Q)return;f4=!0,G("Prop `%s` did not match. Server: %s Client: %s",v,JSON.stringify(X),JSON.stringify(Q))},c3=function(v){if(f4)return;f4=!0;var b=[];v.forEach(function(z){b.push(z)}),G("Extra attributes from the server: %s",b)},mQ=function(v,b){if(b===!1)G("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",v,v,v);else G("Expected `%s` listener to be a function, instead got a value of `%s` type.",v,typeof b)},a3=function(v,b){var z=v.namespaceURI===i5?v.ownerDocument.createElement(v.tagName):v.ownerDocument.createElementNS(v.namespaceURI,v.tagName);return z.innerHTML=b,z.innerHTML};var j_=/\r\n?/g,y_=/\u0000|\uFFFD/g;function dQ(v){X5(v);var b=typeof v==="string"?v:""+v;return b.replace(j_,`
|
|
32
|
-
`).replace(y_,"")}function jQ(v,b,z,Q){var X=dQ(b),Z=dQ(v);if(Z===X)return;if(Q){if(!f4)f4=!0,G('Text content did not match. Server: "%s" Client: "%s"',Z,X)}if(z&&L0)throw Error("Text content does not match server-rendered HTML.")}function l3(v){return v.nodeType===r5?v:v.ownerDocument}function c_(){}function yQ(v){v.onclick=c_}function x_(v,b,z,Q,X){for(var Z in Q){if(!Q.hasOwnProperty(Z))continue;var J=Q[Z];if(Z===Ov){if(J)Object.freeze(J);H$(b,J)}else if(Z===a8){var H=J?J[gQ]:void 0;if(H!=null)Q$(b,H)}else if(Z===Bv){if(typeof J==="string"){var $=v!=="textarea"||J!=="";if($)HQ(b,J)}else if(typeof J==="number")HQ(b,""+J)}else if(Z===hQ||Z===E7);else if(Z===y3);else if(C1.hasOwnProperty(Z)){if(J!=null){if(typeof J!=="function")mQ(Z,J);if(Z==="onScroll")Q6("scroll",b)}}else if(J!=null)J1(b,Z,J,X)}}function a_(v,b,z,Q){for(var X=0;X<b.length;X+=2){var Z=b[X],J=b[X+1];if(Z===Ov)H$(v,J);else if(Z===a8)Q$(v,J);else if(Z===Bv)HQ(v,J);else J1(v,Z,J,Q)}}function l_(v,b,z,Q){var X,Z=l3(z),J,H=Q;if(H===i5)H=SZ(v);if(H===i5){if(X=zv(v,b),!X&&v!==v.toLowerCase())G("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",v);if(v==="script"){var $=Z.createElement("div");$.innerHTML="<script></script>";var q=$.firstChild;J=$.removeChild(q)}else if(typeof b.is==="string")J=Z.createElement(v,{is:b.is});else if(J=Z.createElement(v),v==="select"){var O=J;if(b.multiple)O.multiple=!0;else if(b.size)O.size=b.size}}else J=Z.createElementNS(H,v);if(H===i5){if(!X&&Object.prototype.toString.call(J)==="[object HTMLUnknownElement]"&&!I6.call(rJ,v))rJ[v]=!0,G("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",v)}return J}function o_(v,b){return l3(b).createTextNode(v)}function i_(v,b,z,Q){var X=zv(b,z);uQ(b,z);var Z;switch(b){case"dialog":Q6("cancel",v),Q6("close",v),Z=z;break;case"iframe":case"object":case"embed":Q6("load",v),Z=z;break;case"video":case"audio":for(var J=0;J<y8.length;J++)Q6(y8[J],v);Z=z;break;case"source":Q6("error",v),Z=z;break;case"img":case"image":case"link":Q6("error",v),Q6("load",v),Z=z;break;case"details":Q6("toggle",v),Z=z;break;case"input":A(v,z),Z=K(v,z),Q6("invalid",v);break;case"option":x1(v,z),Z=z;break;case"select":G8(v,z),Z=H8(v,z),Q6("invalid",v);break;case"textarea":v$(v,z),Z=TZ(v,z),Q6("invalid",v);break;default:Z=z}switch(dZ(b,Z),x_(b,v,Q,Z,X),b){case"input":l5(v),v0(v,z,!1);break;case"textarea":l5(v),z$(v);break;case"option":z6(v,z);break;case"select":EZ(v,z);break;default:if(typeof Z.onClick==="function")yQ(v);break}}function p_(v,b,z,Q,X){uQ(b,Q);var Z=null,J,H;switch(b){case"input":J=K(v,z),H=K(v,Q),Z=[];break;case"select":J=H8(v,z),H=H8(v,Q),Z=[];break;case"textarea":J=TZ(v,z),H=TZ(v,Q),Z=[];break;default:if(J=z,H=Q,typeof J.onClick!=="function"&&typeof H.onClick==="function")yQ(v);break}dZ(b,H);var $,q,O=null;for($ in J){if(H.hasOwnProperty($)||!J.hasOwnProperty($)||J[$]==null)continue;if($===Ov){var k=J[$];for(q in k)if(k.hasOwnProperty(q)){if(!O)O={};O[q]=""}}else if($===a8||$===Bv);else if($===hQ||$===E7);else if($===y3);else if(C1.hasOwnProperty($)){if(!Z)Z=[]}else(Z=Z||[]).push($,null)}for($ in H){var M=H[$],S=J!=null?J[$]:void 0;if(!H.hasOwnProperty($)||M===S||M==null&&S==null)continue;if($===Ov){if(M)Object.freeze(M);if(S){for(q in S)if(S.hasOwnProperty(q)&&(!M||!M.hasOwnProperty(q))){if(!O)O={};O[q]=""}for(q in M)if(M.hasOwnProperty(q)&&S[q]!==M[q]){if(!O)O={};O[q]=M[q]}}else{if(!O){if(!Z)Z=[];Z.push($,O)}O=M}}else if($===a8){var h=M?M[gQ]:void 0,g=S?S[gQ]:void 0;if(h!=null){if(g!==h)(Z=Z||[]).push($,h)}}else if($===Bv){if(typeof M==="string"||typeof M==="number")(Z=Z||[]).push($,""+M)}else if($===hQ||$===E7);else if(C1.hasOwnProperty($)){if(M!=null){if(typeof M!=="function")mQ($,M);if($==="onScroll")Q6("scroll",v)}if(!Z&&S!==M)Z=[]}else(Z=Z||[]).push($,M)}if(O)q9(O,H[Ov]),(Z=Z||[]).push(Ov,O);return Z}function r_(v,b,z,Q,X){if(z==="input"&&X.type==="radio"&&X.name!=null)C(v,X);var Z=zv(z,Q),J=zv(z,X);switch(a_(v,b,Z,J),z){case"input":u(v,X);break;case"textarea":b$(v,X);break;case"select":aB(v,X);break}}function n_(v){{var b=v.toLowerCase();if(!GQ.hasOwnProperty(b))return null;return GQ[b]||null}}function t_(v,b,z,Q,X,Z,J){var H,$;switch(H=zv(b,z),uQ(b,z),b){case"dialog":Q6("cancel",v),Q6("close",v);break;case"iframe":case"object":case"embed":Q6("load",v);break;case"video":case"audio":for(var q=0;q<y8.length;q++)Q6(y8[q],v);break;case"source":Q6("error",v);break;case"img":case"image":case"link":Q6("error",v),Q6("load",v);break;case"details":Q6("toggle",v);break;case"input":A(v,z),Q6("invalid",v);break;case"option":x1(v,z);break;case"select":G8(v,z),Q6("invalid",v);break;case"textarea":v$(v,z),Q6("invalid",v);break}dZ(b,z);{$=new Set;var O=v.attributes;for(var k=0;k<O.length;k++){var M=O[k].name.toLowerCase();switch(M){case"value":break;case"checked":break;case"selected":break;default:$.add(O[k].name)}}}var S=null;for(var h in z){if(!z.hasOwnProperty(h))continue;var g=z[h];if(h===Bv){if(typeof g==="string"){if(v.textContent!==g){if(z[E7]!==!0)jQ(v.textContent,g,Z,J);S=[Bv,g]}}else if(typeof g==="number"){if(v.textContent!==""+g){if(z[E7]!==!0)jQ(v.textContent,g,Z,J);S=[Bv,""+g]}}}else if(C1.hasOwnProperty(h)){if(g!=null){if(typeof g!=="function")mQ(h,g);if(h==="onScroll")Q6("scroll",v)}}else if(J&&!0&&typeof H==="boolean"){var $0=void 0,T0=H&&Q1?null:A6(h);if(z[E7]===!0);else if(h===hQ||h===E7||h==="value"||h==="checked"||h==="selected");else if(h===a8){var V0=v.innerHTML,X1=g?g[gQ]:void 0;if(X1!=null){var Z1=a3(v,X1);if(Z1!==V0)l8(h,V0,Z1)}}else if(h===Ov){if($.delete(h),x3){var D=K9(g);if($0=v.getAttribute("style"),D!==$0)l8(h,$0,D)}}else if(H&&!Q1){if($.delete(h.toLowerCase()),$0=J5(v,h,g),g!==$0)l8(h,$0,g)}else if(!M1(h,T0,H)&&!S1(h,g,T0,H)){var d=!1;if(T0!==null)$.delete(T0.attributeName),$0=G4(v,h,g,T0);else{var I=Q;if(I===i5)I=SZ(b);if(I===i5)$.delete(h.toLowerCase());else{var r=n_(h);if(r!==null&&r!==h)d=!0,$.delete(r);$.delete(h)}$0=J5(v,h,g)}var O0=Q1;if(!O0&&g!==$0&&!d)l8(h,$0,g)}}}if(J){if($.size>0&&z[E7]!==!0)c3($)}switch(b){case"input":l5(v),v0(v,z,!0);break;case"textarea":l5(v),z$(v);break;case"select":case"option":break;default:if(typeof z.onClick==="function")yQ(v);break}return S}function s_(v,b,z){var Q=v.nodeValue!==b;return Q}function nJ(v,b){{if(f4)return;f4=!0,G("Did not expect server HTML to contain a <%s> in <%s>.",b.nodeName.toLowerCase(),v.nodeName.toLowerCase())}}function tJ(v,b){{if(f4)return;f4=!0,G('Did not expect server HTML to contain the text node "%s" in <%s>.',b.nodeValue,v.nodeName.toLowerCase())}}function sJ(v,b,z){{if(f4)return;f4=!0,G("Expected server HTML to contain a matching <%s> in <%s>.",b,v.nodeName.toLowerCase())}}function eJ(v,b){{if(b==="")return;if(f4)return;f4=!0,G('Expected server HTML to contain a matching text node for "%s" in <%s>.',b,v.nodeName.toLowerCase())}}function e_(v,b,z){switch(b){case"input":m0(v,z);return;case"textarea":oB(v,z);return;case"select":lB(v,z);return}}var o8=function(){},i8=function(){};{var vW=["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"],o3=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],bW=o3.concat(["button"]),zW=["dd","dt","li","option","optgroup","p","rp","rt"],i3={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};i8=function(v,b){var z=e0({},v||i3),Q={tag:b};if(o3.indexOf(b)!==-1)z.aTagInScope=null,z.buttonTagInScope=null,z.nobrTagInScope=null;if(bW.indexOf(b)!==-1)z.pTagInButtonScope=null;if(vW.indexOf(b)!==-1&&b!=="address"&&b!=="div"&&b!=="p")z.listItemTagAutoclosing=null,z.dlItemTagAutoclosing=null;if(z.current=Q,b==="form")z.formTag=Q;if(b==="a")z.aTagInScope=Q;if(b==="button")z.buttonTagInScope=Q;if(b==="nobr")z.nobrTagInScope=Q;if(b==="p")z.pTagInButtonScope=Q;if(b==="li")z.listItemTagAutoclosing=Q;if(b==="dd"||b==="dt")z.dlItemTagAutoclosing=Q;return z};var QW=function(v,b){switch(b){case"select":return v==="option"||v==="optgroup"||v==="#text";case"optgroup":return v==="option"||v==="#text";case"option":return v==="#text";case"tr":return v==="th"||v==="td"||v==="style"||v==="script"||v==="template";case"tbody":case"thead":case"tfoot":return v==="tr"||v==="style"||v==="script"||v==="template";case"colgroup":return v==="col"||v==="template";case"table":return v==="caption"||v==="colgroup"||v==="tbody"||v==="tfoot"||v==="thead"||v==="style"||v==="script"||v==="template";case"head":return v==="base"||v==="basefont"||v==="bgsound"||v==="link"||v==="meta"||v==="title"||v==="noscript"||v==="noframes"||v==="style"||v==="script"||v==="template";case"html":return v==="head"||v==="body"||v==="frameset";case"frameset":return v==="frame";case"#document":return v==="html"}switch(v){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return b!=="h1"&&b!=="h2"&&b!=="h3"&&b!=="h4"&&b!=="h5"&&b!=="h6";case"rp":case"rt":return zW.indexOf(b)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return b==null}return!0},XW=function(v,b){switch(v){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return b.pTagInButtonScope;case"form":return b.formTag||b.pTagInButtonScope;case"li":return b.listItemTagAutoclosing;case"dd":case"dt":return b.dlItemTagAutoclosing;case"button":return b.buttonTagInScope;case"a":return b.aTagInScope;case"nobr":return b.nobrTagInScope}return null},p3={};o8=function(v,b,z){z=z||i3;var Q=z.current,X=Q&&Q.tag;if(b!=null){if(v!=null)G("validateDOMNesting: when childText is passed, childTag should be null");v="#text"}var Z=QW(v,X)?null:Q,J=Z?null:XW(v,z),H=Z||J;if(!H)return;var $=H.tag,q=!!Z+"|"+v+"|"+$;if(p3[q])return;p3[q]=!0;var O=v,k="";if(v==="#text")if(/\S/.test(b))O="Text nodes";else O="Whitespace text nodes",k=" Make sure you don't have any extra whitespace between tags on each line of your source code.";else O="<"+v+">";if(Z){var M="";if($==="table"&&v==="tr")M+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.";G("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",O,$,k,M)}else G("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",O,$)}}var cQ="suppressHydrationWarning",xQ="$",aQ="/$",p8="$?",r8="$!",ZW="style",vY=null,bY=null;function JW(v){var b,z,Q=v.nodeType;switch(Q){case r5:case gZ:{b=Q===r5?"#document":"#fragment";var X=v.documentElement;z=X?X.namespaceURI:hZ(null,"");break}default:{var Z=Q===k6?v.parentNode:v,J=Z.namespaceURI||null;b=Z.tagName,z=hZ(J,b);break}}{var H=b.toLowerCase(),$=i8(null,H);return{namespace:z,ancestorInfo:$}}}function YW(v,b,z){{var Q=v,X=hZ(Q.namespace,b),Z=i8(Q.ancestorInfo,b);return{namespace:X,ancestorInfo:Z}}}function zY(v){return v}function HW(v){vY=ZL(),bY=F_();var b=null;return z3(!1),b}function GW(v){R_(bY),z3(vY),vY=null,bY=null}function $W(v,b,z,Q,X){var Z;{var J=Q;if(o8(v,null,J.ancestorInfo),typeof b.children==="string"||typeof b.children==="number"){var H=""+b.children,$=i8(J.ancestorInfo,v);o8(null,H,$)}Z=J.namespace}var q=l_(v,b,z,Z);return s8(X,q),$Y(q,b),q}function KW(v,b){v.appendChild(b)}function UW(v,b,z,Q,X){switch(i_(v,b,z,Q),b){case"button":case"input":case"select":case"textarea":return!!z.autoFocus;case"img":return!0;default:return!1}}function qW(v,b,z,Q,X,Z){{var J=Z;if(typeof Q.children!==typeof z.children&&(typeof Q.children==="string"||typeof Q.children==="number")){var H=""+Q.children,$=i8(J.ancestorInfo,b);o8(null,H,$)}}return p_(v,b,z,Q)}function QY(v,b){return v==="textarea"||v==="noscript"||typeof b.children==="string"||typeof b.children==="number"||typeof b.dangerouslySetInnerHTML==="object"&&b.dangerouslySetInnerHTML!==null&&b.dangerouslySetInnerHTML.__html!=null}function BW(v,b,z,Q){{var X=z;o8(null,v,X.ancestorInfo)}var Z=o_(v,b);return s8(Q,Z),Z}function OW(){var v=window.event;if(v===void 0)return z7;return Q3(v.type)}var XY=typeof setTimeout==="function"?setTimeout:void 0,LW=typeof clearTimeout==="function"?clearTimeout:void 0,ZY=-1,r3=typeof Promise==="function"?Promise:void 0,_W=typeof queueMicrotask==="function"?queueMicrotask:typeof r3<"u"?function(v){return r3.resolve(null).then(v).catch(WW)}:XY;function WW(v){setTimeout(function(){throw v})}function NW(v,b,z,Q){switch(b){case"button":case"input":case"select":case"textarea":if(z.autoFocus)v.focus();return;case"img":{if(z.src)v.src=z.src;return}}}function AW(v,b,z,Q,X,Z){r_(v,b,z,Q,X),$Y(v,X)}function n3(v){HQ(v,"")}function PW(v,b,z){v.nodeValue=z}function FW(v,b){v.appendChild(b)}function RW(v,b){var z;if(v.nodeType===k6)z=v.parentNode,z.insertBefore(b,v);else z=v,z.appendChild(b);var Q=v._reactRootContainer;if((Q===null||Q===void 0)&&z.onclick===null)yQ(z)}function MW(v,b,z){v.insertBefore(b,z)}function kW(v,b,z){if(v.nodeType===k6)v.parentNode.insertBefore(b,z);else v.insertBefore(b,z)}function wW(v,b){v.removeChild(b)}function VW(v,b){if(v.nodeType===k6)v.parentNode.removeChild(b);else v.removeChild(b)}function JY(v,b){var z=b,Q=0;do{var X=z.nextSibling;if(v.removeChild(z),X&&X.nodeType===k6){var Z=X.data;if(Z===aQ)if(Q===0){v.removeChild(X),E8(b);return}else Q--;else if(Z===xQ||Z===p8||Z===r8)Q++}z=X}while(z);E8(b)}function DW(v,b){if(v.nodeType===k6)JY(v.parentNode,b);else if(v.nodeType===I4)JY(v,b);E8(v)}function IW(v){v=v;var b=v.style;if(typeof b.setProperty==="function")b.setProperty("display","none","important");else b.display="none"}function fW(v){v.nodeValue=""}function EW(v,b){v=v;var z=b[ZW],Q=z!==void 0&&z!==null&&z.hasOwnProperty("display")?z.display:null;v.style.display=uZ("display",Q)}function TW(v,b){v.nodeValue=b}function CW(v){if(v.nodeType===I4)v.textContent="";else if(v.nodeType===r5){if(v.documentElement)v.removeChild(v.documentElement)}}function SW(v,b,z){if(v.nodeType!==I4||b.toLowerCase()!==v.nodeName.toLowerCase())return null;return v}function hW(v,b){if(b===""||v.nodeType!==p5)return null;return v}function gW(v){if(v.nodeType!==k6)return null;return v}function t3(v){return v.data===p8}function YY(v){return v.data===r8}function uW(v){var b=v.nextSibling&&v.nextSibling.dataset,z,Q,X;if(b)z=b.dgst,Q=b.msg,X=b.stck;return{message:Q,digest:z,stack:X}}function mW(v,b){v._reactRetry=b}function lQ(v){for(;v!=null;v=v.nextSibling){var b=v.nodeType;if(b===I4||b===p5)break;if(b===k6){var z=v.data;if(z===xQ||z===r8||z===p8)break;if(z===aQ)return null}}return v}function n8(v){return lQ(v.nextSibling)}function dW(v){return lQ(v.firstChild)}function jW(v){return lQ(v.firstChild)}function yW(v){return lQ(v.nextSibling)}function cW(v,b,z,Q,X,Z,J){s8(Z,v),$Y(v,z);var H;{var $=X;H=$.namespace}var q=(Z.mode&G1)!==S0;return t_(v,b,z,H,Q,q,J)}function xW(v,b,z,Q){s8(z,v);var X=(z.mode&G1)!==S0;return s_(v,b)}function aW(v,b){s8(b,v)}function lW(v){var b=v.nextSibling,z=0;while(b){if(b.nodeType===k6){var Q=b.data;if(Q===aQ)if(z===0)return n8(b);else z--;else if(Q===xQ||Q===r8||Q===p8)z++}b=b.nextSibling}return null}function s3(v){var b=v.previousSibling,z=0;while(b){if(b.nodeType===k6){var Q=b.data;if(Q===xQ||Q===r8||Q===p8)if(z===0)return b;else z--;else if(Q===aQ)z++}b=b.previousSibling}return null}function oW(v){E8(v)}function iW(v){E8(v)}function pW(v){return v!=="head"&&v!=="body"}function rW(v,b,z,Q){var X=!0;jQ(b.nodeValue,z,Q,X)}function nW(v,b,z,Q,X,Z){if(b[cQ]!==!0){var J=!0;jQ(Q.nodeValue,X,Z,J)}}function tW(v,b){if(b.nodeType===I4)nJ(v,b);else if(b.nodeType===k6);else tJ(v,b)}function sW(v,b){{var z=v.parentNode;if(z!==null)if(b.nodeType===I4)nJ(z,b);else if(b.nodeType===k6);else tJ(z,b)}}function eW(v,b,z,Q,X){if(X||b[cQ]!==!0)if(Q.nodeType===I4)nJ(z,Q);else if(Q.nodeType===k6);else tJ(z,Q)}function vN(v,b,z){sJ(v,b)}function bN(v,b){eJ(v,b)}function zN(v,b,z){{var Q=v.parentNode;if(Q!==null)sJ(Q,b)}}function QN(v,b){{var z=v.parentNode;if(z!==null)eJ(z,b)}}function XN(v,b,z,Q,X,Z){if(Z||b[cQ]!==!0)sJ(z,Q)}function ZN(v,b,z,Q,X){if(X||b[cQ]!==!0)eJ(z,Q)}function JN(v){G("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",v.nodeName.toLowerCase())}function YN(v){c8(v)}var $b=Math.random().toString(36).slice(2),Kb="__reactFiber$"+$b,HY="__reactProps$"+$b,t8="__reactContainer$"+$b,GY="__reactEvents$"+$b,HN="__reactListeners$"+$b,GN="__reactHandles$"+$b;function $N(v){delete v[Kb],delete v[HY],delete v[GY],delete v[HN],delete v[GN]}function s8(v,b){b[Kb]=v}function oQ(v,b){b[t8]=v}function e3(v){v[t8]=null}function e8(v){return!!v[t8]}function Lv(v){var b=v[Kb];if(b)return b;var z=v.parentNode;while(z){if(b=z[t8]||z[Kb],b){var Q=b.alternate;if(b.child!==null||Q!==null&&Q.child!==null){var X=s3(v);while(X!==null){var Z=X[Kb];if(Z)return Z;X=s3(X)}}return b}v=z,z=v.parentNode}return null}function T7(v){var b=v[Kb]||v[t8];if(b)if(b.tag===w||b.tag===E||b.tag===a||b.tag===f)return b;else return null;return null}function Ub(v){if(v.tag===w||v.tag===E)return v.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function iQ(v){return v[HY]||null}function $Y(v,b){v[HY]=b}function KN(v){var b=v[GY];if(b===void 0)b=v[GY]=new Set;return b}var vK={},bK=Y.ReactDebugCurrentFrame;function pQ(v){if(v){var b=v._owner,z=P7(v.type,v._source,b?b.type:null);bK.setExtraStackFrame(z)}else bK.setExtraStackFrame(null)}function $5(v,b,z,Q,X){{var Z=Function.call.bind(I6);for(var J in v)if(Z(v,J)){var H=void 0;try{if(typeof v[J]!=="function"){var $=Error((Q||"React class")+": "+z+" type `"+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[J]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}H=v[J](b,J,Q,z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(q){H=q}if(H&&!(H instanceof Error))pQ(X),G("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Q||"React class",z,J,typeof H),pQ(null);if(H instanceof Error&&!(H.message in vK))vK[H.message]=!0,pQ(X),G("Failed %s type: %s",z,H.message),pQ(null)}}}var KY=[],rQ;rQ=[];var Q7=-1;function C7(v){return{current:v}}function K4(v,b){if(Q7<0){G("Unexpected pop.");return}if(b!==rQ[Q7])G("Unexpected Fiber popped.");v.current=KY[Q7],KY[Q7]=null,rQ[Q7]=null,Q7--}function U4(v,b,z){Q7++,KY[Q7]=v.current,rQ[Q7]=z,v.current=b}var zK={},a4={};Object.freeze(a4);var X7=C7(a4),C5=C7(!1),UY=a4;function qb(v,b,z){{if(z&&S5(b))return UY;return X7.current}}function QK(v,b,z){{var Q=v.stateNode;Q.__reactInternalMemoizedUnmaskedChildContext=b,Q.__reactInternalMemoizedMaskedChildContext=z}}function Bb(v,b){{var z=v.type,Q=z.contextTypes;if(!Q)return a4;var X=v.stateNode;if(X&&X.__reactInternalMemoizedUnmaskedChildContext===b)return X.__reactInternalMemoizedMaskedChildContext;var Z={};for(var J in Q)Z[J]=b[J];{var H=t0(v)||"Unknown";$5(Q,Z,"context",H)}if(X)QK(v,b,Z);return Z}}function nQ(){return C5.current}function S5(v){{var b=v.childContextTypes;return b!==null&&b!==void 0}}function tQ(v){K4(C5,v),K4(X7,v)}function qY(v){K4(C5,v),K4(X7,v)}function XK(v,b,z){{if(X7.current!==a4)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");U4(X7,b,v),U4(C5,z,v)}}function ZK(v,b,z){{var Q=v.stateNode,X=b.childContextTypes;if(typeof Q.getChildContext!=="function"){{var Z=t0(v)||"Unknown";if(!zK[Z])zK[Z]=!0,G("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",Z,Z)}return z}var J=Q.getChildContext();for(var H in J)if(!(H in X))throw Error((t0(v)||"Unknown")+'.getChildContext(): key "'+H+'" is not defined in childContextTypes.');{var $=t0(v)||"Unknown";$5(X,J,"child context",$)}return e0({},z,J)}}function sQ(v){{var b=v.stateNode,z=b&&b.__reactInternalMemoizedMergedChildContext||a4;return UY=X7.current,U4(X7,z,v),U4(C5,C5.current,v),!0}}function JK(v,b,z){{var Q=v.stateNode;if(!Q)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(z){var X=ZK(v,b,UY);Q.__reactInternalMemoizedMergedChildContext=X,K4(C5,v),K4(X7,v),U4(X7,X,v),U4(C5,z,v)}else K4(C5,v),U4(C5,z,v)}}function UN(v){{if(!p9(v)||v.tag!==N)throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var b=v;do{switch(b.tag){case f:return b.stateNode.context;case N:{var z=b.type;if(S5(z))return b.stateNode.__reactInternalMemoizedMergedChildContext;break}}b=b.return}while(b!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var S7=0,eQ=1,Z7=null,BY=!1,OY=!1;function YK(v){if(Z7===null)Z7=[v];else Z7.push(v)}function qN(v){BY=!0,YK(v)}function HK(){if(BY)h7()}function h7(){if(!OY&&Z7!==null){OY=!0;var v=0,b=G5();try{var z=!0,Q=Z7;o6(y4);for(;v<Q.length;v++){var X=Q[v];do X=X(z);while(X!==null)}Z7=null,BY=!1}catch(Z){if(Z7!==null)Z7=Z7.slice(v+1);throw E$(BQ,h7),Z}finally{o6(b),OY=!1}}return null}var Ob=[],Lb=0,vX=null,bX=0,n4=[],t4=0,_v=null,J7=1,Y7="";function BN(v){return Nv(),(v.flags&R$)!==g0}function ON(v){return Nv(),bX}function LN(){var v=Y7,b=J7,z=b&~_N(b);return z.toString(32)+v}function Wv(v,b){Nv(),Ob[Lb++]=bX,Ob[Lb++]=vX,vX=v,bX=b}function GK(v,b,z){Nv(),n4[t4++]=J7,n4[t4++]=Y7,n4[t4++]=_v,_v=v;var Q=J7,X=Y7,Z=zX(Q)-1,J=Q&~(1<<Z),H=z+1,$=zX(b)+Z;if($>30){var q=Z-Z%5,O=(1<<q)-1,k=(J&O).toString(32),M=J>>q,S=Z-q,h=zX(b)+S,g=H<<S,$0=g|M,T0=k+X;J7=1<<h|$0,Y7=T0}else{var V0=H<<Z,X1=V0|J,Z1=X;J7=1<<$|X1,Y7=Z1}}function LY(v){Nv();var b=v.return;if(b!==null){var z=1,Q=0;Wv(v,z),GK(v,z,Q)}}function zX(v){return 32-u$(v)}function _N(v){return 1<<zX(v)-1}function _Y(v){while(v===vX)vX=Ob[--Lb],Ob[Lb]=null,bX=Ob[--Lb],Ob[Lb]=null;while(v===_v)_v=n4[--t4],n4[t4]=null,Y7=n4[--t4],n4[t4]=null,J7=n4[--t4],n4[t4]=null}function WN(){if(Nv(),_v!==null)return{id:J7,overflow:Y7};else return null}function NN(v,b){Nv(),n4[t4++]=J7,n4[t4++]=Y7,n4[t4++]=_v,J7=b.id,Y7=b.overflow,_v=v}function Nv(){if(!t6())G("Expected to be hydrating. This is a bug in React. Please file an issue.")}var n6=null,s4=null,K5=!1,Av=!1,g7=null;function AN(){if(K5)G("We should not be hydrating here. This is a bug in React. Please file a bug.")}function $K(){Av=!0}function PN(){return Av}function FN(v){var b=v.stateNode.containerInfo;return s4=jW(b),n6=v,K5=!0,g7=null,Av=!1,!0}function RN(v,b,z){if(s4=yW(b),n6=v,K5=!0,g7=null,Av=!1,z!==null)NN(v,z);return!0}function KK(v,b){switch(v.tag){case f:{tW(v.stateNode.containerInfo,b);break}case w:{var z=(v.mode&G1)!==S0;eW(v.type,v.memoizedProps,v.stateNode,b,z);break}case a:{var Q=v.memoizedState;if(Q.dehydrated!==null)sW(Q.dehydrated,b);break}}}function UK(v,b){KK(v,b);var z=EF();z.stateNode=b,z.return=v;var Q=v.deletions;if(Q===null)v.deletions=[z],v.flags|=Qv;else Q.push(z)}function WY(v,b){{if(Av)return;switch(v.tag){case f:{var z=v.stateNode.containerInfo;switch(b.tag){case w:var{type:Q,pendingProps:X}=b;vN(z,Q);break;case E:var Z=b.pendingProps;bN(z,Z);break}break}case w:{var{type:J,memoizedProps:H,stateNode:$}=v;switch(b.tag){case w:{var{type:q,pendingProps:O}=b,k=(v.mode&G1)!==S0;XN(J,H,$,q,O,k);break}case E:{var M=b.pendingProps,S=(v.mode&G1)!==S0;ZN(J,H,$,M,S);break}}break}case a:{var h=v.memoizedState,g=h.dehydrated;if(g!==null)switch(b.tag){case w:var{type:$0,pendingProps:T0}=b;zN(g,$0);break;case E:var V0=b.pendingProps;QN(g,V0);break}break}default:return}}}function qK(v,b){b.flags=b.flags&~t5|w6,WY(v,b)}function BK(v,b){switch(v.tag){case w:{var{type:z,pendingProps:Q}=v,X=SW(b,z);if(X!==null)return v.stateNode=X,n6=v,s4=dW(X),!0;return!1}case E:{var Z=v.pendingProps,J=hW(b,Z);if(J!==null)return v.stateNode=J,n6=v,s4=null,!0;return!1}case a:{var H=gW(b);if(H!==null){var $={dehydrated:H,treeContext:WN(),retryLane:d4};v.memoizedState=$;var q=TF(H);return q.return=v,v.child=q,n6=v,s4=null,!0}return!1}default:return!1}}function NY(v){return(v.mode&G1)!==S0&&(v.flags&W1)===g0}function AY(v){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function PY(v){if(!K5)return;var b=s4;if(!b){if(NY(v))WY(n6,v),AY();qK(n6,v),K5=!1,n6=v;return}var z=b;if(!BK(v,b)){if(NY(v))WY(n6,v),AY();b=n8(z);var Q=n6;if(!b||!BK(v,b)){qK(n6,v),K5=!1,n6=v;return}UK(Q,z)}}function MN(v,b,z){var Q=v.stateNode,X=!Av,Z=cW(Q,v.type,v.memoizedProps,b,z,v,X);if(v.updateQueue=Z,Z!==null)return!0;return!1}function kN(v){var{stateNode:b,memoizedProps:z}=v,Q=xW(b,z,v);if(Q){var X=n6;if(X!==null)switch(X.tag){case f:{var Z=X.stateNode.containerInfo,J=(X.mode&G1)!==S0;rW(Z,b,z,J);break}case w:{var{type:H,memoizedProps:$,stateNode:q}=X,O=(X.mode&G1)!==S0;nW(H,$,q,b,z,O);break}}}return Q}function wN(v){var b=v.memoizedState,z=b!==null?b.dehydrated:null;if(!z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");aW(z,v)}function VN(v){var b=v.memoizedState,z=b!==null?b.dehydrated:null;if(!z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return lW(z)}function OK(v){var b=v.return;while(b!==null&&b.tag!==w&&b.tag!==f&&b.tag!==a)b=b.return;n6=b}function QX(v){if(v!==n6)return!1;if(!K5)return OK(v),K5=!0,!1;if(v.tag!==f&&(v.tag!==w||pW(v.type)&&!QY(v.type,v.memoizedProps))){var b=s4;if(b)if(NY(v))LK(v),AY();else while(b)UK(v,b),b=n8(b)}if(OK(v),v.tag===a)s4=VN(v);else s4=n6?n8(v.stateNode):null;return!0}function DN(){return K5&&s4!==null}function LK(v){var b=s4;while(b)KK(v,b),b=n8(b)}function _b(){n6=null,s4=null,K5=!1,Av=!1}function _K(){if(g7!==null)Kq(g7),g7=null}function t6(){return K5}function FY(v){if(g7===null)g7=[v];else g7.push(v)}var IN=Y.ReactCurrentBatchConfig,fN=null;function EN(){return IN.transition}var U5={recordUnsafeLifecycleWarnings:function(v,b){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(v,b){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var TN=function(v){var b=null,z=v;while(z!==null){if(z.mode&L6)b=z;z=z.return}return b},Pv=function(v){var b=[];return v.forEach(function(z){b.push(z)}),b.sort().join(", ")},vz=[],bz=[],zz=[],Qz=[],Xz=[],Zz=[],Fv=new Set;U5.recordUnsafeLifecycleWarnings=function(v,b){if(Fv.has(v.type))return;if(typeof b.componentWillMount==="function"&&b.componentWillMount.__suppressDeprecationWarning!==!0)vz.push(v);if(v.mode&L6&&typeof b.UNSAFE_componentWillMount==="function")bz.push(v);if(typeof b.componentWillReceiveProps==="function"&&b.componentWillReceiveProps.__suppressDeprecationWarning!==!0)zz.push(v);if(v.mode&L6&&typeof b.UNSAFE_componentWillReceiveProps==="function")Qz.push(v);if(typeof b.componentWillUpdate==="function"&&b.componentWillUpdate.__suppressDeprecationWarning!==!0)Xz.push(v);if(v.mode&L6&&typeof b.UNSAFE_componentWillUpdate==="function")Zz.push(v)},U5.flushPendingUnsafeLifecycleWarnings=function(){var v=new Set;if(vz.length>0)vz.forEach(function(M){v.add(t0(M)||"Component"),Fv.add(M.type)}),vz=[];var b=new Set;if(bz.length>0)bz.forEach(function(M){b.add(t0(M)||"Component"),Fv.add(M.type)}),bz=[];var z=new Set;if(zz.length>0)zz.forEach(function(M){z.add(t0(M)||"Component"),Fv.add(M.type)}),zz=[];var Q=new Set;if(Qz.length>0)Qz.forEach(function(M){Q.add(t0(M)||"Component"),Fv.add(M.type)}),Qz=[];var X=new Set;if(Xz.length>0)Xz.forEach(function(M){X.add(t0(M)||"Component"),Fv.add(M.type)}),Xz=[];var Z=new Set;if(Zz.length>0)Zz.forEach(function(M){Z.add(t0(M)||"Component"),Fv.add(M.type)}),Zz=[];if(b.size>0){var J=Pv(b);G(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
33
|
-
|
|
34
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
35
|
-
|
|
36
|
-
Please update the following components: %s`,J)}if(Q.size>0){var H=Pv(Q);G(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
37
|
-
|
|
38
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
39
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
40
|
-
|
|
41
|
-
Please update the following components: %s`,H)}if(Z.size>0){var $=Pv(Z);G(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
42
|
-
|
|
43
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
44
|
-
|
|
45
|
-
Please update the following components: %s`,$)}if(v.size>0){var q=Pv(v);_(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
46
|
-
|
|
47
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
48
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
49
|
-
|
|
50
|
-
Please update the following components: %s`,q)}if(z.size>0){var O=Pv(z);_(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
51
|
-
|
|
52
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
53
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
54
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
55
|
-
|
|
56
|
-
Please update the following components: %s`,O)}if(X.size>0){var k=Pv(X);_(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
57
|
-
|
|
58
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
59
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
60
|
-
|
|
61
|
-
Please update the following components: %s`,k)}};var XX=new Map,WK=new Set;U5.recordLegacyContextWarning=function(v,b){var z=TN(v);if(z===null){G("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(WK.has(v.type))return;var Q=XX.get(z);if(v.type.contextTypes!=null||v.type.childContextTypes!=null||b!==null&&typeof b.getChildContext==="function"){if(Q===void 0)Q=[],XX.set(z,Q);Q.push(v)}},U5.flushLegacyContextWarning=function(){XX.forEach(function(v,b){if(v.length===0)return;var z=v[0],Q=new Set;v.forEach(function(Z){Q.add(t0(Z)||"Component"),WK.add(Z.type)});var X=Pv(Q);try{U6(z),G(`Legacy context API has been detected within a strict-mode tree.
|
|
62
|
-
|
|
63
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
64
|
-
|
|
65
|
-
Please update the following components: %s
|
|
66
|
-
|
|
67
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,X)}finally{c6()}})},U5.discardPendingWarnings=function(){vz=[],bz=[],zz=[],Qz=[],Xz=[],Zz=[],XX=new Map}}var RY,MY,kY,wY,VY,NK=function(v,b){};RY=!1,MY=!1,kY={},wY={},VY={},NK=function(v,b){if(v===null||typeof v!=="object")return;if(!v._store||v._store.validated||v.key!=null)return;if(typeof v._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");v._store.validated=!0;var z=t0(b)||"Component";if(wY[z])return;wY[z]=!0,G('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.')};function CN(v){return v.prototype&&v.prototype.isReactComponent}function Jz(v,b,z){var Q=z.ref;if(Q!==null&&typeof Q!=="function"&&typeof Q!=="object"){if((v.mode&L6||R1)&&!(z._owner&&z._self&&z._owner.stateNode!==z._self)&&!(z._owner&&z._owner.tag!==N)&&!(typeof z.type==="function"&&!CN(z.type))&&z._owner){var X=t0(v)||"Component";if(!kY[X])G('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',X,Q),kY[X]=!0}if(z._owner){var Z=z._owner,J;if(Z){var H=Z;if(H.tag!==N)throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");J=H.stateNode}if(!J)throw Error("Missing owner for string ref "+Q+". This error is likely caused by a bug in React. Please file an issue.");var $=J;v6(Q,"ref");var q=""+Q;if(b!==null&&b.ref!==null&&typeof b.ref==="function"&&b.ref._stringRef===q)return b.ref;var O=function(k){var M=$.refs;if(k===null)delete M[q];else M[q]=k};return O._stringRef=q,O}else{if(typeof Q!=="string")throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!z._owner)throw Error("Element ref was specified as a string ("+Q+`) but no owner was set. This could happen for one of the following reasons:
|
|
68
|
-
1. You may be adding a ref to a function component
|
|
69
|
-
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
70
|
-
3. You have multiple copies of React loaded
|
|
71
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return Q}function ZX(v,b){var z=Object.prototype.toString.call(b);throw Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}function JX(v){{var b=t0(v)||"Component";if(VY[b])return;VY[b]=!0,G("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function AK(v){var{_payload:b,_init:z}=v;return z(b)}function PK(v){function b(D,d){if(!v)return;var I=D.deletions;if(I===null)D.deletions=[d],D.flags|=Qv;else I.push(d)}function z(D,d){if(!v)return null;var I=d;while(I!==null)b(D,I),I=I.sibling;return null}function Q(D,d){var I=new Map,r=d;while(r!==null){if(r.key!==null)I.set(r.key,r);else I.set(r.index,r);r=r.sibling}return I}function X(D,d){var I=Ev(D,d);return I.index=0,I.sibling=null,I}function Z(D,d,I){if(D.index=I,!v)return D.flags|=R$,d;var r=D.alternate;if(r!==null){var O0=r.index;if(O0<d)return D.flags|=w6,d;else return O0}else return D.flags|=w6,d}function J(D){if(v&&D.alternate===null)D.flags|=w6;return D}function H(D,d,I,r){if(d===null||d.tag!==E){var O0=MG(I,D.mode,r);return O0.return=D,O0}else{var U0=X(d,I);return U0.return=D,U0}}function $(D,d,I,r){var O0=I.type;if(O0===B1)return O(D,d,I.props.children,r,I.key);if(d!==null){if(d.elementType===O0||Vq(d,I)||typeof O0==="object"&&O0!==null&&O0.$$typeof===w0&&AK(O0)===d.type){var U0=X(d,I.props);return U0.ref=Jz(D,d,I),U0.return=D,U0._debugSource=I._source,U0._debugOwner=I._owner,U0}}var d0=RG(I,D.mode,r);return d0.ref=Jz(D,d,I),d0.return=D,d0}function q(D,d,I,r){if(d===null||d.tag!==R||d.stateNode.containerInfo!==I.containerInfo||d.stateNode.implementation!==I.implementation){var O0=kG(I,D.mode,r);return O0.return=D,O0}else{var U0=X(d,I.children||[]);return U0.return=D,U0}}function O(D,d,I,r,O0){if(d===null||d.tag!==i){var U0=i7(I,D.mode,r,O0);return U0.return=D,U0}else{var d0=X(d,I);return d0.return=D,d0}}function k(D,d,I){if(typeof d==="string"&&d!==""||typeof d==="number"){var r=MG(""+d,D.mode,I);return r.return=D,r}if(typeof d==="object"&&d!==null){switch(d.$$typeof){case k1:{var O0=RG(d,D.mode,I);return O0.ref=Jz(D,null,d),O0.return=D,O0}case u1:{var U0=kG(d,D.mode,I);return U0.return=D,U0}case w0:{var{_payload:d0,_init:p0}=d;return k(D,p0(d0),I)}}if(_1(d)||r1(d)){var E1=i7(d,D.mode,I,null);return E1.return=D,E1}ZX(D,d)}if(typeof d==="function")JX(D);return null}function M(D,d,I,r){var O0=d!==null?d.key:null;if(typeof I==="string"&&I!==""||typeof I==="number"){if(O0!==null)return null;return H(D,d,""+I,r)}if(typeof I==="object"&&I!==null){switch(I.$$typeof){case k1:if(I.key===O0)return $(D,d,I,r);else return null;case u1:if(I.key===O0)return q(D,d,I,r);else return null;case w0:{var{_payload:U0,_init:d0}=I;return M(D,d,d0(U0),r)}}if(_1(I)||r1(I)){if(O0!==null)return null;return O(D,d,I,r,null)}ZX(D,I)}if(typeof I==="function")JX(D);return null}function S(D,d,I,r,O0){if(typeof r==="string"&&r!==""||typeof r==="number"){var U0=D.get(I)||null;return H(d,U0,""+r,O0)}if(typeof r==="object"&&r!==null){switch(r.$$typeof){case k1:{var d0=D.get(r.key===null?I:r.key)||null;return $(d,d0,r,O0)}case u1:{var p0=D.get(r.key===null?I:r.key)||null;return q(d,p0,r,O0)}case w0:var{_payload:E1,_init:O1}=r;return S(D,d,I,O1(E1),O0)}if(_1(r)||r1(r)){var P6=D.get(I)||null;return O(d,P6,r,O0,null)}ZX(d,r)}if(typeof r==="function")JX(d);return null}function h(D,d,I){{if(typeof D!=="object"||D===null)return d;switch(D.$$typeof){case k1:case u1:NK(D,I);var r=D.key;if(typeof r!=="string")break;if(d===null){d=new Set,d.add(r);break}if(!d.has(r)){d.add(r);break}G("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be "+"duplicated and/or omitted — the behavior is unsupported and "+"could change in a future version.",r);break;case w0:var{_payload:O0,_init:U0}=D;h(U0(O0),d,I);break}}return d}function g(D,d,I,r){{var O0=null;for(var U0=0;U0<I.length;U0++){var d0=I[U0];O0=h(d0,O0,D)}}var p0=null,E1=null,O1=d,P6=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 B4=M(D,O1,I[L1],r);if(B4===null){if(O1===null)O1=_6;break}if(v){if(O1&&B4.alternate===null)b(D,O1)}if(P6=Z(B4,P6,L1),E1===null)p0=B4;else E1.sibling=B4;E1=B4,O1=_6}if(L1===I.length){if(z(D,O1),t6()){var X4=L1;Wv(D,X4)}return p0}if(O1===null){for(;L1<I.length;L1++){var o4=k(D,I[L1],r);if(o4===null)continue;if(P6=Z(o4,P6,L1),E1===null)p0=o4;else E1.sibling=o4;E1=o4}if(t6()){var k4=L1;Wv(D,k4)}return p0}var w4=Q(D,O1);for(;L1<I.length;L1++){var O4=S(w4,D,L1,I[L1],r);if(O4!==null){if(v){if(O4.alternate!==null)w4.delete(O4.key===null?L1:O4.key)}if(P6=Z(O4,P6,L1),E1===null)p0=O4;else E1.sibling=O4;E1=O4}}if(v)w4.forEach(function(gb){return b(D,gb)});if(t6()){var B7=L1;Wv(D,B7)}return p0}function $0(D,d,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(!MY)G("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers.");MY=!0}if(I.entries===O0){if(!RY)G("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");RY=!0}var U0=O0.call(I);if(U0){var d0=null,p0=U0.next();for(;!p0.done;p0=U0.next()){var E1=p0.value;d0=h(E1,d0,D)}}}var O1=O0.call(I);if(O1==null)throw Error("An iterable object provided no iterator.");var P6=null,L1=null,_6=d,B4=0,X4=0,o4=null,k4=O1.next();for(;_6!==null&&!k4.done;X4++,k4=O1.next()){if(_6.index>X4)o4=_6,_6=null;else o4=_6.sibling;var w4=M(D,_6,k4.value,r);if(w4===null){if(_6===null)_6=o4;break}if(v){if(_6&&w4.alternate===null)b(D,_6)}if(B4=Z(w4,B4,X4),L1===null)P6=w4;else L1.sibling=w4;L1=w4,_6=o4}if(k4.done){if(z(D,_6),t6()){var O4=X4;Wv(D,O4)}return P6}if(_6===null){for(;!k4.done;X4++,k4=O1.next()){var B7=k(D,k4.value,r);if(B7===null)continue;if(B4=Z(B7,B4,X4),L1===null)P6=B7;else L1.sibling=B7;L1=B7}if(t6()){var gb=X4;Wv(D,gb)}return P6}var mz=Q(D,_6);for(;!k4.done;X4++,k4=O1.next()){var c5=S(mz,D,X4,k4.value,r);if(c5!==null){if(v){if(c5.alternate!==null)mz.delete(c5.key===null?X4:c5.key)}if(B4=Z(c5,B4,X4),L1===null)P6=c5;else L1.sibling=c5;L1=c5}}if(v)mz.forEach(function(GR){return b(D,GR)});if(t6()){var HR=X4;Wv(D,HR)}return P6}function T0(D,d,I,r){if(d!==null&&d.tag===E){z(D,d.sibling);var O0=X(d,I);return O0.return=D,O0}z(D,d);var U0=MG(I,D.mode,r);return U0.return=D,U0}function V0(D,d,I,r){var O0=I.key,U0=d;while(U0!==null){if(U0.key===O0){var d0=I.type;if(d0===B1){if(U0.tag===i){z(D,U0.sibling);var p0=X(U0,I.props.children);return p0.return=D,p0._debugSource=I._source,p0._debugOwner=I._owner,p0}}else if(U0.elementType===d0||Vq(U0,I)||typeof d0==="object"&&d0!==null&&d0.$$typeof===w0&&AK(d0)===U0.type){z(D,U0.sibling);var E1=X(U0,I.props);return E1.ref=Jz(D,U0,I),E1.return=D,E1._debugSource=I._source,E1._debugOwner=I._owner,E1}z(D,U0);break}else b(D,U0);U0=U0.sibling}if(I.type===B1){var O1=i7(I.props.children,D.mode,r,I.key);return O1.return=D,O1}else{var P6=RG(I,D.mode,r);return P6.ref=Jz(D,d,I),P6.return=D,P6}}function X1(D,d,I,r){var O0=I.key,U0=d;while(U0!==null){if(U0.key===O0)if(U0.tag===R&&U0.stateNode.containerInfo===I.containerInfo&&U0.stateNode.implementation===I.implementation){z(D,U0.sibling);var d0=X(U0,I.children||[]);return d0.return=D,d0}else{z(D,U0);break}else b(D,U0);U0=U0.sibling}var p0=kG(I,D.mode,r);return p0.return=D,p0}function Z1(D,d,I,r){var O0=typeof I==="object"&&I!==null&&I.type===B1&&I.key===null;if(O0)I=I.props.children;if(typeof I==="object"&&I!==null){switch(I.$$typeof){case k1:return J(V0(D,d,I,r));case u1:return J(X1(D,d,I,r));case w0:var{_payload:U0,_init:d0}=I;return Z1(D,d,d0(U0),r)}if(_1(I))return g(D,d,I,r);if(r1(I))return $0(D,d,I,r);ZX(D,I)}if(typeof I==="string"&&I!==""||typeof I==="number")return J(T0(D,d,""+I,r));if(typeof I==="function")JX(D);return z(D,d)}return Z1}var Wb=PK(!0),FK=PK(!1);function SN(v,b){if(v!==null&&b.child!==v.child)throw Error("Resuming work not yet implemented.");if(b.child===null)return;var z=b.child,Q=Ev(z,z.pendingProps);b.child=Q,Q.return=b;while(z.sibling!==null)z=z.sibling,Q=Q.sibling=Ev(z,z.pendingProps),Q.return=b;Q.sibling=null}function hN(v,b){var z=v.child;while(z!==null)wF(z,b),z=z.sibling}var DY=C7(null),IY;IY={};var YX=null,Nb=null,fY=null,HX=!1;function GX(){YX=null,Nb=null,fY=null,HX=!1}function RK(){HX=!0}function MK(){HX=!1}function kK(v,b,z){{U4(DY,b._currentValue,v),b._currentValue=z;{if(b._currentRenderer!==void 0&&b._currentRenderer!==null&&b._currentRenderer!==IY)G("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");b._currentRenderer=IY}}}function EY(v,b){var z=DY.current;K4(DY,b),v._currentValue=z}function TY(v,b,z){var Q=v;while(Q!==null){var X=Q.alternate;if(!Qb(Q.childLanes,b)){if(Q.childLanes=s0(Q.childLanes,b),X!==null)X.childLanes=s0(X.childLanes,b)}else if(X!==null&&!Qb(X.childLanes,b))X.childLanes=s0(X.childLanes,b);if(Q===z)break;Q=Q.return}if(Q!==z)G("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function gN(v,b,z){uN(v,b,z)}function uN(v,b,z){var Q=v.child;if(Q!==null)Q.return=v;while(Q!==null){var X=void 0,Z=Q.dependencies;if(Z!==null){X=Q.child;var J=Z.firstContext;while(J!==null){if(J.context===b){if(Q.tag===N){var H=M8(z),$=H7(n1,H);$.tag=KX;var q=Q.updateQueue;if(q===null);else{var O=q.shared,k=O.pending;if(k===null)$.next=$;else $.next=k.next,k.next=$;O.pending=$}}Q.lanes=s0(Q.lanes,z);var M=Q.alternate;if(M!==null)M.lanes=s0(M.lanes,z);TY(Q.return,z,v),Z.lanes=s0(Z.lanes,z);break}J=J.next}}else if(Q.tag===n)X=Q.type===v.type?null:Q.child;else if(Q.tag===z1){var S=Q.return;if(S===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");S.lanes=s0(S.lanes,z);var h=S.alternate;if(h!==null)h.lanes=s0(h.lanes,z);TY(S,z,v),X=Q.sibling}else X=Q.child;if(X!==null)X.return=Q;else{X=Q;while(X!==null){if(X===v){X=null;break}var g=X.sibling;if(g!==null){g.return=X.return,X=g;break}X=X.return}}Q=X}}function Ab(v,b){YX=v,Nb=null,fY=null;var z=v.dependencies;if(z!==null){var Q=z.firstContext;if(Q!==null){if(j4(z.lanes,b))Pz();z.firstContext=null}}}function V6(v){if(HX)G("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var b=v._currentValue;if(fY===v);else{var z={context:v,memoizedValue:b,next:null};if(Nb===null){if(YX===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().");Nb=z,YX.dependencies={lanes:o,firstContext:z}}else Nb=Nb.next=z}return b}var Rv=null;function CY(v){if(Rv===null)Rv=[v];else Rv.push(v)}function mN(){if(Rv!==null){for(var v=0;v<Rv.length;v++){var b=Rv[v],z=b.interleaved;if(z!==null){b.interleaved=null;var Q=z.next,X=b.pending;if(X!==null){var Z=X.next;X.next=Q,z.next=Z}b.pending=z}}Rv=null}}function wK(v,b,z,Q){var X=b.interleaved;if(X===null)z.next=z,CY(b);else z.next=X.next,X.next=z;return b.interleaved=z,$X(v,Q)}function dN(v,b,z,Q){var X=b.interleaved;if(X===null)z.next=z,CY(b);else z.next=X.next,X.next=z;b.interleaved=z}function jN(v,b,z,Q){var X=b.interleaved;if(X===null)z.next=z,CY(b);else z.next=X.next,X.next=z;return b.interleaved=z,$X(v,Q)}function E4(v,b){return $X(v,b)}var yN=$X;function $X(v,b){v.lanes=s0(v.lanes,b);var z=v.alternate;if(z!==null)z.lanes=s0(z.lanes,b);if(z===null&&(v.flags&(w6|t5))!==g0)Rq(v);var Q=v,X=v.return;while(X!==null){if(X.childLanes=s0(X.childLanes,b),z=X.alternate,z!==null)z.childLanes=s0(z.childLanes,b);else if((X.flags&(w6|t5))!==g0)Rq(v);Q=X,X=X.return}if(Q.tag===f){var Z=Q.stateNode;return Z}else return null}var VK=0,DK=1,KX=2,SY=3,UX=!1,hY,qX;hY=!1,qX=null;function gY(v){var b={baseState:v.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:o},effects:null};v.updateQueue=b}function IK(v,b){var z=b.updateQueue,Q=v.updateQueue;if(z===Q){var X={baseState:Q.baseState,firstBaseUpdate:Q.firstBaseUpdate,lastBaseUpdate:Q.lastBaseUpdate,shared:Q.shared,effects:Q.effects};b.updateQueue=X}}function H7(v,b){var z={eventTime:v,lane:b,tag:VK,payload:null,callback:null,next:null};return z}function u7(v,b,z){var Q=v.updateQueue;if(Q===null)return null;var X=Q.shared;if(qX===X&&!hY)G("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),hY=!0;if(xP()){var Z=X.pending;if(Z===null)b.next=b;else b.next=Z.next,Z.next=b;return X.pending=b,yN(v,z)}else return jN(v,X,b,z)}function BX(v,b,z){var Q=b.updateQueue;if(Q===null)return;var X=Q.shared;if(y$(z)){var Z=X.lanes;Z=x$(Z,v.pendingLanes);var J=s0(Z,z);X.lanes=J,DJ(v,J)}}function uY(v,b){var{updateQueue:z,alternate:Q}=v;if(Q!==null){var X=Q.updateQueue;if(z===X){var Z=null,J=null,H=z.firstBaseUpdate;if(H!==null){var $=H;do{var q={eventTime:$.eventTime,lane:$.lane,tag:$.tag,payload:$.payload,callback:$.callback,next:null};if(J===null)Z=J=q;else J.next=q,J=q;$=$.next}while($!==null);if(J===null)Z=J=b;else J.next=b,J=b}else Z=J=b;z={baseState:X.baseState,firstBaseUpdate:Z,lastBaseUpdate:J,shared:X.shared,effects:X.effects},v.updateQueue=z;return}}var O=z.lastBaseUpdate;if(O===null)z.firstBaseUpdate=b;else O.next=b;z.lastBaseUpdate=b}function cN(v,b,z,Q,X,Z){switch(z.tag){case DK:{var J=z.payload;if(typeof J==="function"){RK();var H=J.call(Z,Q,X);{if(v.mode&L6){a6(!0);try{J.call(Z,Q,X)}finally{a6(!1)}}MK()}return H}return J}case SY:v.flags=v.flags&~P4|W1;case VK:{var $=z.payload,q;if(typeof $==="function"){RK(),q=$.call(Z,Q,X);{if(v.mode&L6){a6(!0);try{$.call(Z,Q,X)}finally{a6(!1)}}MK()}}else q=$;if(q===null||q===void 0)return Q;return e0({},Q,q)}case KX:return UX=!0,Q}return Q}function OX(v,b,z,Q){var X=v.updateQueue;UX=!1,qX=X.shared;var{firstBaseUpdate:Z,lastBaseUpdate:J}=X,H=X.shared.pending;if(H!==null){X.shared.pending=null;var $=H,q=$.next;if($.next=null,J===null)Z=q;else J.next=q;J=$;var O=v.alternate;if(O!==null){var k=O.updateQueue,M=k.lastBaseUpdate;if(M!==J){if(M===null)k.firstBaseUpdate=q;else M.next=q;k.lastBaseUpdate=$}}}if(Z!==null){var S=X.baseState,h=o,g=null,$0=null,T0=null,V0=Z;do{var{lane:X1,eventTime:Z1}=V0;if(!Qb(Q,X1)){var D={eventTime:Z1,lane:X1,tag:V0.tag,payload:V0.payload,callback:V0.callback,next:null};if(T0===null)$0=T0=D,g=S;else T0=T0.next=D;h=s0(h,X1)}else{if(T0!==null){var d={eventTime:Z1,lane:l6,tag:V0.tag,payload:V0.payload,callback:V0.callback,next:null};T0=T0.next=d}S=cN(v,X,V0,S,b,z);var I=V0.callback;if(I!==null&&V0.lane!==l6){v.flags|=rZ;var r=X.effects;if(r===null)X.effects=[V0];else r.push(V0)}}if(V0=V0.next,V0===null)if(H=X.shared.pending,H===null)break;else{var O0=H,U0=O0.next;O0.next=null,V0=U0,X.lastBaseUpdate=O0,X.shared.pending=null}}while(!0);if(T0===null)g=S;X.baseState=g,X.firstBaseUpdate=$0,X.lastBaseUpdate=T0;var d0=X.shared.interleaved;if(d0!==null){var p0=d0;do h=s0(h,p0.lane),p0=p0.next;while(p0!==d0)}else if(Z===null)X.shared.lanes=o;Cz(h),v.lanes=h,v.memoizedState=S}qX=null}function xN(v,b){if(typeof v!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+v));v.call(b)}function fK(){UX=!1}function LX(){return UX}function EK(v,b,z){var Q=b.effects;if(b.effects=null,Q!==null)for(var X=0;X<Q.length;X++){var Z=Q[X],J=Z.callback;if(J!==null)Z.callback=null,xN(J,z)}}var Yz={},m7=C7(Yz),Hz=C7(Yz),_X=C7(Yz);function WX(v){if(v===Yz)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return v}function TK(){var v=WX(_X.current);return v}function mY(v,b){U4(_X,b,v),U4(Hz,v,v),U4(m7,Yz,v);var z=JW(b);K4(m7,v),U4(m7,z,v)}function Pb(v){K4(m7,v),K4(Hz,v),K4(_X,v)}function dY(){var v=WX(m7.current);return v}function CK(v){var b=WX(_X.current),z=WX(m7.current),Q=YW(z,v.type);if(z===Q)return;U4(Hz,v,v),U4(m7,Q,v)}function jY(v){if(Hz.current!==v)return;K4(m7,v),K4(Hz,v)}var aN=0,SK=1,hK=1,Gz=2,q5=C7(aN);function yY(v,b){return(v&b)!==0}function Fb(v){return v&SK}function cY(v,b){return v&SK|b}function lN(v,b){return v|b}function d7(v,b){U4(q5,b,v)}function Rb(v){K4(q5,v)}function oN(v,b){var z=v.memoizedState;if(z!==null){if(z.dehydrated!==null)return!0;return!1}var Q=v.memoizedProps;return!0}function NX(v){var b=v;while(b!==null){if(b.tag===a){var z=b.memoizedState;if(z!==null){var Q=z.dehydrated;if(Q===null||t3(Q)||YY(Q))return b}}else if(b.tag===y0&&b.memoizedProps.revealOrder!==void 0){var X=(b.flags&W1)!==g0;if(X)return b}else if(b.child!==null){b.child.return=b,b=b.child;continue}if(b===v)return null;while(b.sibling===null){if(b.return===null||b.return===v)return null;b=b.return}b.sibling.return=b.return,b=b.sibling}return null}var T4=0,E6=1,h5=2,T6=4,s6=8,xY=[];function aY(){for(var v=0;v<xY.length;v++){var b=xY[v];b._workInProgressVersionPrimary=null}xY.length=0}function iN(v,b){var z=b._getVersion,Q=z(b._source);if(v.mutableSourceEagerHydrationData==null)v.mutableSourceEagerHydrationData=[b,Q];else v.mutableSourceEagerHydrationData.push(b,Q)}var{ReactCurrentDispatcher:B0,ReactCurrentBatchConfig:$z}=Y,lY,Mb;lY=new Set;var Mv=o,f1=null,C6=null,S6=null,AX=!1,Kz=!1,Uz=0,pN=0,rN=25,y=null,e4=null,j7=-1,oY=!1;function P1(){{var v=y;if(e4===null)e4=[v];else e4.push(v)}}function G0(){{var v=y;if(e4!==null){if(j7++,e4[j7]!==v)nN(v)}}}function kb(v){if(v!==void 0&&v!==null&&!_1(v))G("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",y,typeof v)}function nN(v){{var b=t0(f1);if(!lY.has(b)){if(lY.add(b),e4!==null){var z="",Q=30;for(var X=0;X<=j7;X++){var Z=e4[X],J=X===j7?v:Z,H=X+1+". "+Z;while(H.length<Q)H+=" ";H+=J+`
|
|
72
|
-
`,z+=H}G(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
73
|
-
|
|
74
|
-
Previous render Next render
|
|
75
|
-
------------------------------------------------------
|
|
76
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
77
|
-
`,b,z)}}}}function q4(){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 iY(v,b){if(oY)return!1;if(b===null)return G("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",y),!1;if(v.length!==b.length)G(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
82
|
-
|
|
83
|
-
Previous: %s
|
|
84
|
-
Incoming: %s`,y,"["+b.join(", ")+"]","["+v.join(", ")+"]");for(var z=0;z<b.length&&z<v.length;z++){if(x4(v[z],b[z]))continue;return!1}return!0}function wb(v,b,z,Q,X,Z){if(Mv=Z,f1=b,e4=v!==null?v._debugHookTypes:null,j7=-1,oY=v!==null&&v.type!==b.type,b.memoizedState=null,b.updateQueue=null,b.lanes=o,v!==null&&v.memoizedState!==null)B0.current=QU;else if(e4!==null)B0.current=zU;else B0.current=bU;var J=z(Q,X);if(Kz){var H=0;do{if(Kz=!1,Uz=0,H>=rN)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");H+=1,oY=!1,C6=null,S6=null,b.updateQueue=null,j7=-1,B0.current=XU,J=z(Q,X)}while(Kz)}B0.current=hX,b._debugHookTypes=e4;var $=C6!==null&&C6.next!==null;if(Mv=o,f1=null,C6=null,S6=null,y=null,e4=null,j7=-1,v!==null&&(v.flags&e5)!==(b.flags&e5)&&(v.mode&G1)!==S0)G("Internal React error: Expected static flag was missing. Please notify the React team.");if(AX=!1,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return J}function Vb(){var v=Uz!==0;return Uz=0,v}function gK(v,b,z){if(b.updateQueue=v.updateQueue,(b.mode&E5)!==S0)b.flags&=~(qQ|s5|Y5|U1);else b.flags&=~(Y5|U1);v.lanes=AQ(v.lanes,z)}function uK(){if(B0.current=hX,AX){var v=f1.memoizedState;while(v!==null){var b=v.queue;if(b!==null)b.pending=null;v=v.next}AX=!1}Mv=o,f1=null,C6=null,S6=null,e4=null,j7=-1,y=null,nK=!1,Kz=!1,Uz=0}function g5(){var v={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};if(S6===null)f1.memoizedState=S6=v;else S6=S6.next=v;return S6}function v5(){var v;if(C6===null){var b=f1.alternate;if(b!==null)v=b.memoizedState;else v=null}else v=C6.next;var z;if(S6===null)z=f1.memoizedState;else z=S6.next;if(z!==null)S6=z,z=S6.next,C6=v;else{if(v===null)throw Error("Rendered more hooks than during the previous render.");C6=v;var Q={memoizedState:C6.memoizedState,baseState:C6.baseState,baseQueue:C6.baseQueue,queue:C6.queue,next:null};if(S6===null)f1.memoizedState=S6=Q;else S6=S6.next=Q}return S6}function mK(){return{lastEffect:null,stores:null}}function pY(v,b){return typeof b==="function"?b(v):b}function rY(v,b,z){var Q=g5(),X;if(z!==void 0)X=z(b);else X=b;Q.memoizedState=Q.baseState=X;var Z={pending:null,interleaved:null,lanes:o,dispatch:null,lastRenderedReducer:v,lastRenderedState:X};Q.queue=Z;var J=Z.dispatch=eN.bind(null,f1,Z);return[Q.memoizedState,J]}function nY(v,b,z){var Q=v5(),X=Q.queue;if(X===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");X.lastRenderedReducer=v;var Z=C6,J=Z.baseQueue,H=X.pending;if(H!==null){if(J!==null){var $=J.next,q=H.next;J.next=q,H.next=$}if(Z.baseQueue!==J)G("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.");Z.baseQueue=J=H,X.pending=null}if(J!==null){var O=J.next,k=Z.baseState,M=null,S=null,h=null,g=O;do{var $0=g.lane;if(!Qb(Mv,$0)){var T0={lane:$0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};if(h===null)S=h=T0,M=k;else h=h.next=T0;f1.lanes=s0(f1.lanes,$0),Cz($0)}else{if(h!==null){var V0={lane:l6,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};h=h.next=V0}if(g.hasEagerState)k=g.eagerState;else{var X1=g.action;k=v(k,X1)}}g=g.next}while(g!==null&&g!==O);if(h===null)M=k;else h.next=S;if(!x4(k,Q.memoizedState))Pz();Q.memoizedState=k,Q.baseState=M,Q.baseQueue=h,X.lastRenderedState=k}var Z1=X.interleaved;if(Z1!==null){var D=Z1;do{var d=D.lane;f1.lanes=s0(f1.lanes,d),Cz(d),D=D.next}while(D!==Z1)}else if(J===null)X.lanes=o;var I=X.dispatch;return[Q.memoizedState,I]}function tY(v,b,z){var Q=v5(),X=Q.queue;if(X===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");X.lastRenderedReducer=v;var{dispatch:Z,pending:J}=X,H=Q.memoizedState;if(J!==null){X.pending=null;var $=J.next,q=$;do{var O=q.action;H=v(H,O),q=q.next}while(q!==$);if(!x4(H,Q.memoizedState))Pz();if(Q.memoizedState=H,Q.baseQueue===null)Q.baseState=H;X.lastRenderedState=H}return[H,Z]}function sY(v,b,z){return}function PX(v,b,z){return}function eY(v,b,z){var Q=f1,X=g5(),Z,J=t6();if(J){if(z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");if(Z=z(),!Mb){if(Z!==z())G("The result of getServerSnapshot should be cached to avoid an infinite loop"),Mb=!0}}else{if(Z=b(),!Mb){var H=b();if(!x4(Z,H))G("The result of getSnapshot should be cached to avoid an infinite loop"),Mb=!0}var $=vZ();if($===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!NQ($,Mv))dK(Q,b,Z)}X.memoizedState=Z;var q={value:Z,getSnapshot:b};return X.queue=q,wX(yK.bind(null,Q,q,v),[v]),Q.flags|=Y5,qz(E6|s6,jK.bind(null,Q,q,Z,b),void 0,null),Z}function FX(v,b,z){var Q=f1,X=v5(),Z=b();if(!Mb){var J=b();if(!x4(Z,J))G("The result of getSnapshot should be cached to avoid an infinite loop"),Mb=!0}var H=X.memoizedState,$=!x4(H,Z);if($)X.memoizedState=Z,Pz();var q=X.queue;if(Oz(yK.bind(null,Q,q,v),[v]),q.getSnapshot!==b||$||S6!==null&&S6.memoizedState.tag&E6){Q.flags|=Y5,qz(E6|s6,jK.bind(null,Q,q,Z,b),void 0,null);var O=vZ();if(O===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!NQ(O,Mv))dK(Q,b,Z)}return Z}function dK(v,b,z){v.flags|=UQ;var Q={getSnapshot:b,value:z},X=f1.updateQueue;if(X===null)X=mK(),f1.updateQueue=X,X.stores=[Q];else{var Z=X.stores;if(Z===null)X.stores=[Q];else Z.push(Q)}}function jK(v,b,z,Q){if(b.value=z,b.getSnapshot=Q,cK(b))xK(v)}function yK(v,b,z){var Q=function(){if(cK(b))xK(v)};return z(Q)}function cK(v){var{getSnapshot:b,value:z}=v;try{var Q=b();return!x4(z,Q)}catch(X){return!0}}function xK(v){var b=E4(v,x0);if(b!==null)m6(b,v,x0,n1)}function RX(v){var b=g5();if(typeof v==="function")v=v();b.memoizedState=b.baseState=v;var z={pending:null,interleaved:null,lanes:o,dispatch:null,lastRenderedReducer:pY,lastRenderedState:v};b.queue=z;var Q=z.dispatch=vA.bind(null,f1,z);return[b.memoizedState,Q]}function vH(v){return nY(pY)}function bH(v){return tY(pY)}function qz(v,b,z,Q){var X={tag:v,create:b,destroy:z,deps:Q,next:null},Z=f1.updateQueue;if(Z===null)Z=mK(),f1.updateQueue=Z,Z.lastEffect=X.next=X;else{var J=Z.lastEffect;if(J===null)Z.lastEffect=X.next=X;else{var H=J.next;J.next=X,X.next=H,Z.lastEffect=X}}return X}function zH(v){var b=g5();{var z={current:v};return b.memoizedState=z,z}}function MX(v){var b=v5();return b.memoizedState}function Bz(v,b,z,Q){var X=g5(),Z=Q===void 0?null:Q;f1.flags|=v,X.memoizedState=qz(E6|b,z,void 0,Z)}function kX(v,b,z,Q){var X=v5(),Z=Q===void 0?null:Q,J=void 0;if(C6!==null){var H=C6.memoizedState;if(J=H.destroy,Z!==null){var $=H.deps;if(iY(Z,$)){X.memoizedState=qz(b,z,J,Z);return}}}f1.flags|=v,X.memoizedState=qz(E6|b,z,J,Z)}function wX(v,b){if((f1.mode&E5)!==S0)return Bz(qQ|Y5|sZ,s6,v,b);else return Bz(Y5|sZ,s6,v,b)}function Oz(v,b){return kX(Y5,s6,v,b)}function QH(v,b){return Bz(U1,h5,v,b)}function VX(v,b){return kX(U1,h5,v,b)}function XH(v,b){var z=U1;if(z|=Jv,(f1.mode&E5)!==S0)z|=s5;return Bz(z,T6,v,b)}function DX(v,b){return kX(U1,T6,v,b)}function aK(v,b){if(typeof b==="function"){var z=b,Q=v();return z(Q),function(){z(null)}}else if(b!==null&&b!==void 0){var X=b;if(!X.hasOwnProperty("current"))G("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(X).join(", ")+"}");var Z=v();return X.current=Z,function(){X.current=null}}}function ZH(v,b,z){if(typeof b!=="function")G("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",b!==null?typeof b:"null");var Q=z!==null&&z!==void 0?z.concat([v]):null,X=U1;if(X|=Jv,(f1.mode&E5)!==S0)X|=s5;return Bz(X,T6,aK.bind(null,b,v),Q)}function IX(v,b,z){if(typeof b!=="function")G("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",b!==null?typeof b:"null");var Q=z!==null&&z!==void 0?z.concat([v]):null;return kX(U1,T6,aK.bind(null,b,v),Q)}function fX(v,b){}var EX=fX;function JH(v,b){var z=g5(),Q=b===void 0?null:b;return z.memoizedState=[v,Q],v}function TX(v,b){var z=v5(),Q=b===void 0?null:b,X=z.memoizedState;if(X!==null){if(Q!==null){var Z=X[1];if(iY(Q,Z))return X[0]}}return z.memoizedState=[v,Q],v}function YH(v,b){var z=g5(),Q=b===void 0?null:b,X=v();return z.memoizedState=[X,Q],X}function CX(v,b){var z=v5(),Q=b===void 0?null:b,X=z.memoizedState;if(X!==null){if(Q!==null){var Z=X[1];if(iY(Q,Z))return X[0]}}var J=v();return z.memoizedState=[J,Q],J}function HH(v){var b=g5();return b.memoizedState=v,v}function lK(v){var b=v5(),z=C6,Q=z.memoizedState;return iK(b,Q,v)}function oK(v){var b=v5();if(C6===null)return b.memoizedState=v,v;else{var z=C6.memoizedState;return iK(b,z,v)}}function iK(v,b,z){var Q=!gO(Mv);if(Q){if(!x4(z,b)){var X=c$();f1.lanes=s0(f1.lanes,X),Cz(X),v.baseState=!0}return b}else{if(v.baseState)v.baseState=!1,Pz();return v.memoizedState=z,z}}function tN(v,b,z){var Q=G5();o6(lO(Q,b7)),v(!0);var X=$z.transition;$z.transition={};var Z=$z.transition;$z.transition._updatedFibers=new Set;try{v(!1),b()}finally{if(o6(Q),$z.transition=X,X===null&&Z._updatedFibers){var J=Z._updatedFibers.size;if(J>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.");Z._updatedFibers.clear()}}}function GH(){var v=RX(!1),b=v[0],z=v[1],Q=tN.bind(null,z),X=g5();return X.memoizedState=Q,[b,Q]}function pK(){var v=vH(),b=v[0],z=v5(),Q=z.memoizedState;return[b,Q]}function rK(){var v=bH(),b=v[0],z=v5(),Q=z.memoizedState;return[b,Q]}var nK=!1;function sN(){return nK}function $H(){var v=g5(),b=vZ(),z=b.identifierPrefix,Q;if(t6()){var X=LN();Q=":"+z+"R"+X;var Z=Uz++;if(Z>0)Q+="H"+Z.toString(32);Q+=":"}else{var J=pN++;Q=":"+z+"r"+J.toString(32)+":"}return v.memoizedState=Q,Q}function SX(){var v=v5(),b=v.memoizedState;return b}function eN(v,b,z){if(typeof arguments[3]==="function")G("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var Q=l7(v),X={lane:Q,action:z,hasEagerState:!1,eagerState:null,next:null};if(tK(v))sK(b,X);else{var Z=wK(v,b,X,Q);if(Z!==null){var J=M4();m6(Z,v,Q,J),eK(Z,b,Q)}}vU(v,Q)}function vA(v,b,z){if(typeof arguments[3]==="function")G("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var Q=l7(v),X={lane:Q,action:z,hasEagerState:!1,eagerState:null,next:null};if(tK(v))sK(b,X);else{var Z=v.alternate;if(v.lanes===o&&(Z===null||Z.lanes===o)){var J=b.lastRenderedReducer;if(J!==null){var H;H=B0.current,B0.current=B5;try{var $=b.lastRenderedState,q=J($,z);if(X.hasEagerState=!0,X.eagerState=q,x4(q,$)){dN(v,b,X,Q);return}}catch(M){}finally{B0.current=H}}}var O=wK(v,b,X,Q);if(O!==null){var k=M4();m6(O,v,Q,k),eK(O,b,Q)}}vU(v,Q)}function tK(v){var b=v.alternate;return v===f1||b!==null&&b===f1}function sK(v,b){Kz=AX=!0;var z=v.pending;if(z===null)b.next=b;else b.next=z.next,z.next=b;v.pending=b}function eK(v,b,z){if(y$(z)){var Q=b.lanes;Q=x$(Q,v.pendingLanes);var X=s0(Q,z);b.lanes=X,DJ(v,X)}}function vU(v,b,z){QJ(v,b)}var hX={readContext:V6,useCallback:q4,useContext:q4,useEffect:q4,useImperativeHandle:q4,useInsertionEffect:q4,useLayoutEffect:q4,useMemo:q4,useReducer:q4,useRef:q4,useState:q4,useDebugValue:q4,useDeferredValue:q4,useTransition:q4,useMutableSource:q4,useSyncExternalStore:q4,useId:q4,unstable_isNewReconciler:v1},bU=null,zU=null,QU=null,XU=null,u5=null,B5=null,gX=null;{var KH=function(){G("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},a0=function(){G("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};bU={readContext:function(v){return V6(v)},useCallback:function(v,b){return y="useCallback",P1(),kb(b),JH(v,b)},useContext:function(v){return y="useContext",P1(),V6(v)},useEffect:function(v,b){return y="useEffect",P1(),kb(b),wX(v,b)},useImperativeHandle:function(v,b,z){return y="useImperativeHandle",P1(),kb(z),ZH(v,b,z)},useInsertionEffect:function(v,b){return y="useInsertionEffect",P1(),kb(b),QH(v,b)},useLayoutEffect:function(v,b){return y="useLayoutEffect",P1(),kb(b),XH(v,b)},useMemo:function(v,b){y="useMemo",P1(),kb(b);var z=B0.current;B0.current=u5;try{return YH(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){y="useReducer",P1();var Q=B0.current;B0.current=u5;try{return rY(v,b,z)}finally{B0.current=Q}},useRef:function(v){return y="useRef",P1(),zH(v)},useState:function(v){y="useState",P1();var b=B0.current;B0.current=u5;try{return RX(v)}finally{B0.current=b}},useDebugValue:function(v,b){return y="useDebugValue",P1(),fX()},useDeferredValue:function(v){return y="useDeferredValue",P1(),HH(v)},useTransition:function(){return y="useTransition",P1(),GH()},useMutableSource:function(v,b,z){return y="useMutableSource",P1(),sY()},useSyncExternalStore:function(v,b,z){return y="useSyncExternalStore",P1(),eY(v,b,z)},useId:function(){return y="useId",P1(),$H()},unstable_isNewReconciler:v1},zU={readContext:function(v){return V6(v)},useCallback:function(v,b){return y="useCallback",G0(),JH(v,b)},useContext:function(v){return y="useContext",G0(),V6(v)},useEffect:function(v,b){return y="useEffect",G0(),wX(v,b)},useImperativeHandle:function(v,b,z){return y="useImperativeHandle",G0(),ZH(v,b,z)},useInsertionEffect:function(v,b){return y="useInsertionEffect",G0(),QH(v,b)},useLayoutEffect:function(v,b){return y="useLayoutEffect",G0(),XH(v,b)},useMemo:function(v,b){y="useMemo",G0();var z=B0.current;B0.current=u5;try{return YH(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){y="useReducer",G0();var Q=B0.current;B0.current=u5;try{return rY(v,b,z)}finally{B0.current=Q}},useRef:function(v){return y="useRef",G0(),zH(v)},useState:function(v){y="useState",G0();var b=B0.current;B0.current=u5;try{return RX(v)}finally{B0.current=b}},useDebugValue:function(v,b){return y="useDebugValue",G0(),fX()},useDeferredValue:function(v){return y="useDeferredValue",G0(),HH(v)},useTransition:function(){return y="useTransition",G0(),GH()},useMutableSource:function(v,b,z){return y="useMutableSource",G0(),sY()},useSyncExternalStore:function(v,b,z){return y="useSyncExternalStore",G0(),eY(v,b,z)},useId:function(){return y="useId",G0(),$H()},unstable_isNewReconciler:v1},QU={readContext:function(v){return V6(v)},useCallback:function(v,b){return y="useCallback",G0(),TX(v,b)},useContext:function(v){return y="useContext",G0(),V6(v)},useEffect:function(v,b){return y="useEffect",G0(),Oz(v,b)},useImperativeHandle:function(v,b,z){return y="useImperativeHandle",G0(),IX(v,b,z)},useInsertionEffect:function(v,b){return y="useInsertionEffect",G0(),VX(v,b)},useLayoutEffect:function(v,b){return y="useLayoutEffect",G0(),DX(v,b)},useMemo:function(v,b){y="useMemo",G0();var z=B0.current;B0.current=B5;try{return CX(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){y="useReducer",G0();var Q=B0.current;B0.current=B5;try{return nY(v,b,z)}finally{B0.current=Q}},useRef:function(v){return y="useRef",G0(),MX()},useState:function(v){y="useState",G0();var b=B0.current;B0.current=B5;try{return vH(v)}finally{B0.current=b}},useDebugValue:function(v,b){return y="useDebugValue",G0(),EX()},useDeferredValue:function(v){return y="useDeferredValue",G0(),lK(v)},useTransition:function(){return y="useTransition",G0(),pK()},useMutableSource:function(v,b,z){return y="useMutableSource",G0(),PX()},useSyncExternalStore:function(v,b,z){return y="useSyncExternalStore",G0(),FX(v,b)},useId:function(){return y="useId",G0(),SX()},unstable_isNewReconciler:v1},XU={readContext:function(v){return V6(v)},useCallback:function(v,b){return y="useCallback",G0(),TX(v,b)},useContext:function(v){return y="useContext",G0(),V6(v)},useEffect:function(v,b){return y="useEffect",G0(),Oz(v,b)},useImperativeHandle:function(v,b,z){return y="useImperativeHandle",G0(),IX(v,b,z)},useInsertionEffect:function(v,b){return y="useInsertionEffect",G0(),VX(v,b)},useLayoutEffect:function(v,b){return y="useLayoutEffect",G0(),DX(v,b)},useMemo:function(v,b){y="useMemo",G0();var z=B0.current;B0.current=gX;try{return CX(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){y="useReducer",G0();var Q=B0.current;B0.current=gX;try{return tY(v,b,z)}finally{B0.current=Q}},useRef:function(v){return y="useRef",G0(),MX()},useState:function(v){y="useState",G0();var b=B0.current;B0.current=gX;try{return bH(v)}finally{B0.current=b}},useDebugValue:function(v,b){return y="useDebugValue",G0(),EX()},useDeferredValue:function(v){return y="useDeferredValue",G0(),oK(v)},useTransition:function(){return y="useTransition",G0(),rK()},useMutableSource:function(v,b,z){return y="useMutableSource",G0(),PX()},useSyncExternalStore:function(v,b,z){return y="useSyncExternalStore",G0(),FX(v,b)},useId:function(){return y="useId",G0(),SX()},unstable_isNewReconciler:v1},u5={readContext:function(v){return KH(),V6(v)},useCallback:function(v,b){return y="useCallback",a0(),P1(),JH(v,b)},useContext:function(v){return y="useContext",a0(),P1(),V6(v)},useEffect:function(v,b){return y="useEffect",a0(),P1(),wX(v,b)},useImperativeHandle:function(v,b,z){return y="useImperativeHandle",a0(),P1(),ZH(v,b,z)},useInsertionEffect:function(v,b){return y="useInsertionEffect",a0(),P1(),QH(v,b)},useLayoutEffect:function(v,b){return y="useLayoutEffect",a0(),P1(),XH(v,b)},useMemo:function(v,b){y="useMemo",a0(),P1();var z=B0.current;B0.current=u5;try{return YH(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){y="useReducer",a0(),P1();var Q=B0.current;B0.current=u5;try{return rY(v,b,z)}finally{B0.current=Q}},useRef:function(v){return y="useRef",a0(),P1(),zH(v)},useState:function(v){y="useState",a0(),P1();var b=B0.current;B0.current=u5;try{return RX(v)}finally{B0.current=b}},useDebugValue:function(v,b){return y="useDebugValue",a0(),P1(),fX()},useDeferredValue:function(v){return y="useDeferredValue",a0(),P1(),HH(v)},useTransition:function(){return y="useTransition",a0(),P1(),GH()},useMutableSource:function(v,b,z){return y="useMutableSource",a0(),P1(),sY()},useSyncExternalStore:function(v,b,z){return y="useSyncExternalStore",a0(),P1(),eY(v,b,z)},useId:function(){return y="useId",a0(),P1(),$H()},unstable_isNewReconciler:v1},B5={readContext:function(v){return KH(),V6(v)},useCallback:function(v,b){return y="useCallback",a0(),G0(),TX(v,b)},useContext:function(v){return y="useContext",a0(),G0(),V6(v)},useEffect:function(v,b){return y="useEffect",a0(),G0(),Oz(v,b)},useImperativeHandle:function(v,b,z){return y="useImperativeHandle",a0(),G0(),IX(v,b,z)},useInsertionEffect:function(v,b){return y="useInsertionEffect",a0(),G0(),VX(v,b)},useLayoutEffect:function(v,b){return y="useLayoutEffect",a0(),G0(),DX(v,b)},useMemo:function(v,b){y="useMemo",a0(),G0();var z=B0.current;B0.current=B5;try{return CX(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){y="useReducer",a0(),G0();var Q=B0.current;B0.current=B5;try{return nY(v,b,z)}finally{B0.current=Q}},useRef:function(v){return y="useRef",a0(),G0(),MX()},useState:function(v){y="useState",a0(),G0();var b=B0.current;B0.current=B5;try{return vH(v)}finally{B0.current=b}},useDebugValue:function(v,b){return y="useDebugValue",a0(),G0(),EX()},useDeferredValue:function(v){return y="useDeferredValue",a0(),G0(),lK(v)},useTransition:function(){return y="useTransition",a0(),G0(),pK()},useMutableSource:function(v,b,z){return y="useMutableSource",a0(),G0(),PX()},useSyncExternalStore:function(v,b,z){return y="useSyncExternalStore",a0(),G0(),FX(v,b)},useId:function(){return y="useId",a0(),G0(),SX()},unstable_isNewReconciler:v1},gX={readContext:function(v){return KH(),V6(v)},useCallback:function(v,b){return y="useCallback",a0(),G0(),TX(v,b)},useContext:function(v){return y="useContext",a0(),G0(),V6(v)},useEffect:function(v,b){return y="useEffect",a0(),G0(),Oz(v,b)},useImperativeHandle:function(v,b,z){return y="useImperativeHandle",a0(),G0(),IX(v,b,z)},useInsertionEffect:function(v,b){return y="useInsertionEffect",a0(),G0(),VX(v,b)},useLayoutEffect:function(v,b){return y="useLayoutEffect",a0(),G0(),DX(v,b)},useMemo:function(v,b){y="useMemo",a0(),G0();var z=B0.current;B0.current=B5;try{return CX(v,b)}finally{B0.current=z}},useReducer:function(v,b,z){y="useReducer",a0(),G0();var Q=B0.current;B0.current=B5;try{return tY(v,b,z)}finally{B0.current=Q}},useRef:function(v){return y="useRef",a0(),G0(),MX()},useState:function(v){y="useState",a0(),G0();var b=B0.current;B0.current=B5;try{return bH(v)}finally{B0.current=b}},useDebugValue:function(v,b){return y="useDebugValue",a0(),G0(),EX()},useDeferredValue:function(v){return y="useDeferredValue",a0(),G0(),oK(v)},useTransition:function(){return y="useTransition",a0(),G0(),rK()},useMutableSource:function(v,b,z){return y="useMutableSource",a0(),G0(),PX()},useSyncExternalStore:function(v,b,z){return y="useSyncExternalStore",a0(),G0(),FX(v,b)},useId:function(){return y="useId",a0(),G0(),SX()},unstable_isNewReconciler:v1}}var y7=T1.unstable_now,ZU=0,uX=-1,Lz=-1,mX=-1,UH=!1,dX=!1;function JU(){return UH}function bA(){dX=!0}function zA(){UH=!1,dX=!1}function QA(){UH=dX,dX=!1}function YU(){return ZU}function HU(){ZU=y7()}function qH(v){if(Lz=y7(),v.actualStartTime<0)v.actualStartTime=y7()}function GU(v){Lz=-1}function jX(v,b){if(Lz>=0){var z=y7()-Lz;if(v.actualDuration+=z,b)v.selfBaseDuration=z;Lz=-1}}function m5(v){if(uX>=0){var b=y7()-uX;uX=-1;var z=v.return;while(z!==null){switch(z.tag){case f:var Q=z.stateNode;Q.effectDuration+=b;return;case K0:var X=z.stateNode;X.effectDuration+=b;return}z=z.return}}}function BH(v){if(mX>=0){var b=y7()-mX;mX=-1;var z=v.return;while(z!==null){switch(z.tag){case f:var Q=z.stateNode;if(Q!==null)Q.passiveEffectDuration+=b;return;case K0:var X=z.stateNode;if(X!==null)X.passiveEffectDuration+=b;return}z=z.return}}}function d5(){uX=y7()}function OH(){mX=y7()}function LH(v){var b=v.child;while(b)v.actualDuration+=b.actualDuration,b=b.sibling}function O5(v,b){if(v&&v.defaultProps){var z=e0({},b),Q=v.defaultProps;for(var X in Q)if(z[X]===void 0)z[X]=Q[X];return z}return b}var _H={},WH,NH,AH,PH,FH,$U,yX,RH,MH,kH,_z;{WH=new Set,NH=new Set,AH=new Set,PH=new Set,RH=new Set,FH=new Set,MH=new Set,kH=new Set,_z=new Set;var KU=new Set;yX=function(v,b){if(v===null||typeof v==="function")return;var z=b+"_"+v;if(!KU.has(z))KU.add(z),G("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,v)},$U=function(v,b){if(b===void 0){var z=q1(v)||"Component";if(!FH.has(z))FH.add(z),G("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",z)}},Object.defineProperty(_H,"_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(_H)}function wH(v,b,z,Q){var X=v.memoizedState,Z=z(Q,X);{if(v.mode&L6){a6(!0);try{Z=z(Q,X)}finally{a6(!1)}}$U(b,Z)}var J=Z===null||Z===void 0?X:e0({},X,Z);if(v.memoizedState=J,v.lanes===o){var H=v.updateQueue;H.baseState=J}}var VH={isMounted:r9,enqueueSetState:function(v,b,z){var Q=nv(v),X=M4(),Z=l7(Q),J=H7(X,Z);if(J.payload=b,z!==void 0&&z!==null)yX(z,"setState"),J.callback=z;var H=u7(Q,J,Z);if(H!==null)m6(H,Q,Z,X),BX(H,Q,Z);QJ(Q,Z)},enqueueReplaceState:function(v,b,z){var Q=nv(v),X=M4(),Z=l7(Q),J=H7(X,Z);if(J.tag=DK,J.payload=b,z!==void 0&&z!==null)yX(z,"replaceState"),J.callback=z;var H=u7(Q,J,Z);if(H!==null)m6(H,Q,Z,X),BX(H,Q,Z);QJ(Q,Z)},enqueueForceUpdate:function(v,b){var z=nv(v),Q=M4(),X=l7(z),Z=H7(Q,X);if(Z.tag=KX,b!==void 0&&b!==null)yX(b,"forceUpdate"),Z.callback=b;var J=u7(z,Z,X);if(J!==null)m6(J,z,X,Q),BX(J,z,X);wO(z,X)}};function UU(v,b,z,Q,X,Z,J){var H=v.stateNode;if(typeof H.shouldComponentUpdate==="function"){var $=H.shouldComponentUpdate(Q,Z,J);{if(v.mode&L6){a6(!0);try{$=H.shouldComponentUpdate(Q,Z,J)}finally{a6(!1)}}if($===void 0)G("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",q1(b)||"Component")}return $}if(b.prototype&&b.prototype.isPureReactComponent)return!d8(z,Q)||!d8(X,Z);return!0}function XA(v,b,z){var Q=v.stateNode;{var X=q1(b)||"Component",Z=Q.render;if(!Z)if(b.prototype&&typeof b.prototype.render==="function")G("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",X);else G("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",X);if(Q.getInitialState&&!Q.getInitialState.isReactClassApproved&&!Q.state)G("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",X);if(Q.getDefaultProps&&!Q.getDefaultProps.isReactClassApproved)G("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",X);if(Q.propTypes)G("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",X);if(Q.contextType)G("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",X);{if(b.childContextTypes&&!_z.has(b)&&(v.mode&L6)===S0)_z.add(b),G(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
85
|
-
|
|
86
|
-
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,X);if(b.contextTypes&&!_z.has(b)&&(v.mode&L6)===S0)_z.add(b),G(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
87
|
-
|
|
88
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,X);if(Q.contextTypes)G("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",X);if(b.contextType&&b.contextTypes&&!MH.has(b))MH.add(b),G("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",X)}if(typeof Q.componentShouldUpdate==="function")G("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",X);if(b.prototype&&b.prototype.isPureReactComponent&&typeof Q.shouldComponentUpdate<"u")G("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",q1(b)||"A pure component");if(typeof Q.componentDidUnmount==="function")G("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",X);if(typeof Q.componentDidReceiveProps==="function")G("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",X);if(typeof Q.componentWillRecieveProps==="function")G("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",X);if(typeof Q.UNSAFE_componentWillRecieveProps==="function")G("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",X);var J=Q.props!==z;if(Q.props!==void 0&&J)G("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",X,X);if(Q.defaultProps)G("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",X,X);if(typeof Q.getSnapshotBeforeUpdate==="function"&&typeof Q.componentDidUpdate!=="function"&&!AH.has(b))AH.add(b),G("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",q1(b));if(typeof Q.getDerivedStateFromProps==="function")G("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",X);if(typeof Q.getDerivedStateFromError==="function")G("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",X);if(typeof b.getSnapshotBeforeUpdate==="function")G("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",X);var H=Q.state;if(H&&(typeof H!=="object"||_1(H)))G("%s.state: must be set to an object or null",X);if(typeof Q.getChildContext==="function"&&typeof b.childContextTypes!=="object")G("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",X)}}function qU(v,b){b.updater=VH,v.stateNode=b,a9(b,v),b._reactInternalInstance=_H}function BU(v,b,z){var Q=!1,X=a4,Z=a4,J=b.contextType;if("contextType"in b){var H=J===null||J!==void 0&&J.$$typeof===L&&J._context===void 0;if(!H&&!kH.has(b)){kH.add(b);var $="";if(J===void 0)$=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.";else if(typeof J!=="object")$=" However, it is set to a "+typeof J+".";else if(J.$$typeof===l)$=" Did you accidentally pass the Context.Provider instead?";else if(J._context!==void 0)$=" Did you accidentally pass the Context.Consumer instead?";else $=" However, it is set to an object with keys {"+Object.keys(J).join(", ")+"}.";G("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",q1(b)||"Component",$)}}if(typeof J==="object"&&J!==null)Z=V6(J);else{X=qb(v,b,!0);var q=b.contextTypes;Q=q!==null&&q!==void 0,Z=Q?Bb(v,X):a4}var O=new b(z,Z);if(v.mode&L6){a6(!0);try{O=new b(z,Z)}finally{a6(!1)}}var k=v.memoizedState=O.state!==null&&O.state!==void 0?O.state:null;qU(v,O);{if(typeof b.getDerivedStateFromProps==="function"&&k===null){var M=q1(b)||"Component";if(!NH.has(M))NH.add(M),G("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",M,O.state===null?"null":"undefined",M)}if(typeof b.getDerivedStateFromProps==="function"||typeof O.getSnapshotBeforeUpdate==="function"){var S=null,h=null,g=null;if(typeof O.componentWillMount==="function"&&O.componentWillMount.__suppressDeprecationWarning!==!0)S="componentWillMount";else if(typeof O.UNSAFE_componentWillMount==="function")S="UNSAFE_componentWillMount";if(typeof O.componentWillReceiveProps==="function"&&O.componentWillReceiveProps.__suppressDeprecationWarning!==!0)h="componentWillReceiveProps";else if(typeof O.UNSAFE_componentWillReceiveProps==="function")h="UNSAFE_componentWillReceiveProps";if(typeof O.componentWillUpdate==="function"&&O.componentWillUpdate.__suppressDeprecationWarning!==!0)g="componentWillUpdate";else if(typeof O.UNSAFE_componentWillUpdate==="function")g="UNSAFE_componentWillUpdate";if(S!==null||h!==null||g!==null){var $0=q1(b)||"Component",T0=typeof b.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";if(!PH.has($0))PH.add($0),G(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
89
|
-
|
|
90
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
91
|
-
|
|
92
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
93
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,$0,T0,S!==null?`
|
|
94
|
-
`+S:"",h!==null?`
|
|
95
|
-
`+h:"",g!==null?`
|
|
96
|
-
`+g:"")}}}if(Q)QK(v,X,Z);return O}function ZA(v,b){var z=b.state;if(typeof b.componentWillMount==="function")b.componentWillMount();if(typeof b.UNSAFE_componentWillMount==="function")b.UNSAFE_componentWillMount();if(z!==b.state)G("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t0(v)||"Component"),VH.enqueueReplaceState(b,b.state,null)}function OU(v,b,z,Q){var X=b.state;if(typeof b.componentWillReceiveProps==="function")b.componentWillReceiveProps(z,Q);if(typeof b.UNSAFE_componentWillReceiveProps==="function")b.UNSAFE_componentWillReceiveProps(z,Q);if(b.state!==X){{var Z=t0(v)||"Component";if(!WH.has(Z))WH.add(Z),G("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z)}VH.enqueueReplaceState(b,b.state,null)}}function DH(v,b,z,Q){XA(v,b,z);var X=v.stateNode;X.props=z,X.state=v.memoizedState,X.refs={},gY(v);var Z=b.contextType;if(typeof Z==="object"&&Z!==null)X.context=V6(Z);else{var J=qb(v,b,!0);X.context=Bb(v,J)}{if(X.state===z){var H=q1(b)||"Component";if(!RH.has(H))RH.add(H),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.",H)}if(v.mode&L6)U5.recordLegacyContextWarning(v,X);U5.recordUnsafeLifecycleWarnings(v,X)}X.state=v.memoizedState;var $=b.getDerivedStateFromProps;if(typeof $==="function")wH(v,b,$,z),X.state=v.memoizedState;if(typeof b.getDerivedStateFromProps!=="function"&&typeof X.getSnapshotBeforeUpdate!=="function"&&(typeof X.UNSAFE_componentWillMount==="function"||typeof X.componentWillMount==="function"))ZA(v,X),OX(v,z,X,Q),X.state=v.memoizedState;if(typeof X.componentDidMount==="function"){var q=U1;if(q|=Jv,(v.mode&E5)!==S0)q|=s5;v.flags|=q}}function JA(v,b,z,Q){var{stateNode:X,memoizedProps:Z}=v;X.props=Z;var J=X.context,H=b.contextType,$=a4;if(typeof H==="object"&&H!==null)$=V6(H);else{var q=qb(v,b,!0);$=Bb(v,q)}var O=b.getDerivedStateFromProps,k=typeof O==="function"||typeof X.getSnapshotBeforeUpdate==="function";if(!k&&(typeof X.UNSAFE_componentWillReceiveProps==="function"||typeof X.componentWillReceiveProps==="function")){if(Z!==z||J!==$)OU(v,X,z,$)}fK();var M=v.memoizedState,S=X.state=M;if(OX(v,z,X,Q),S=v.memoizedState,Z===z&&M===S&&!nQ()&&!LX()){if(typeof X.componentDidMount==="function"){var h=U1;if(h|=Jv,(v.mode&E5)!==S0)h|=s5;v.flags|=h}return!1}if(typeof O==="function")wH(v,b,O,z),S=v.memoizedState;var g=LX()||UU(v,b,Z,z,M,S,$);if(g){if(!k&&(typeof X.UNSAFE_componentWillMount==="function"||typeof X.componentWillMount==="function")){if(typeof X.componentWillMount==="function")X.componentWillMount();if(typeof X.UNSAFE_componentWillMount==="function")X.UNSAFE_componentWillMount()}if(typeof X.componentDidMount==="function"){var $0=U1;if($0|=Jv,(v.mode&E5)!==S0)$0|=s5;v.flags|=$0}}else{if(typeof X.componentDidMount==="function"){var T0=U1;if(T0|=Jv,(v.mode&E5)!==S0)T0|=s5;v.flags|=T0}v.memoizedProps=z,v.memoizedState=S}return X.props=z,X.state=S,X.context=$,g}function YA(v,b,z,Q,X){var Z=b.stateNode;IK(v,b);var J=b.memoizedProps,H=b.type===b.elementType?J:O5(b.type,J);Z.props=H;var $=b.pendingProps,q=Z.context,O=z.contextType,k=a4;if(typeof O==="object"&&O!==null)k=V6(O);else{var M=qb(b,z,!0);k=Bb(b,M)}var S=z.getDerivedStateFromProps,h=typeof S==="function"||typeof Z.getSnapshotBeforeUpdate==="function";if(!h&&(typeof Z.UNSAFE_componentWillReceiveProps==="function"||typeof Z.componentWillReceiveProps==="function")){if(J!==$||q!==k)OU(b,Z,Q,k)}fK();var g=b.memoizedState,$0=Z.state=g;if(OX(b,Q,Z,X),$0=b.memoizedState,J===$&&g===$0&&!nQ()&&!LX()&&!F6){if(typeof Z.componentDidUpdate==="function"){if(J!==v.memoizedProps||g!==v.memoizedState)b.flags|=U1}if(typeof Z.getSnapshotBeforeUpdate==="function"){if(J!==v.memoizedProps||g!==v.memoizedState)b.flags|=Xv}return!1}if(typeof S==="function")wH(b,z,S,Q),$0=b.memoizedState;var T0=LX()||UU(b,z,H,Q,g,$0,k)||F6;if(T0){if(!h&&(typeof Z.UNSAFE_componentWillUpdate==="function"||typeof Z.componentWillUpdate==="function")){if(typeof Z.componentWillUpdate==="function")Z.componentWillUpdate(Q,$0,k);if(typeof Z.UNSAFE_componentWillUpdate==="function")Z.UNSAFE_componentWillUpdate(Q,$0,k)}if(typeof Z.componentDidUpdate==="function")b.flags|=U1;if(typeof Z.getSnapshotBeforeUpdate==="function")b.flags|=Xv}else{if(typeof Z.componentDidUpdate==="function"){if(J!==v.memoizedProps||g!==v.memoizedState)b.flags|=U1}if(typeof Z.getSnapshotBeforeUpdate==="function"){if(J!==v.memoizedProps||g!==v.memoizedState)b.flags|=Xv}b.memoizedProps=Q,b.memoizedState=$0}return Z.props=Q,Z.state=$0,Z.context=k,T0}function kv(v,b){return{value:v,source:b,stack:Z8(b),digest:null}}function IH(v,b,z){return{value:v,source:null,stack:z!=null?z:null,digest:b!=null?b:null}}function HA(v,b){return!0}function fH(v,b){try{var z=HA(v,b);if(z===!1)return;var{value:Q,source:X,stack:Z}=b,J=Z!==null?Z:"";if(Q!=null&&Q._suppressLogging){if(v.tag===N)return;console.error(Q)}var H=X?t0(X):null,$=H?"The above error occurred in the <"+H+"> component:":"The above error occurred in one of your React components:",q;if(v.tag===f)q=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
97
|
-
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var O=t0(v)||"Anonymous";q="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+O+".")}var k=$+`
|
|
98
|
-
`+J+`
|
|
99
|
-
|
|
100
|
-
`+(""+q);console.error(k)}catch(M){setTimeout(function(){throw M})}}var GA=typeof WeakMap==="function"?WeakMap:Map;function LU(v,b,z){var Q=H7(n1,z);Q.tag=SY,Q.payload={element:null};var X=b.value;return Q.callback=function(){JF(X),fH(v,b)},Q}function EH(v,b,z){var Q=H7(n1,z);Q.tag=SY;var X=v.type.getDerivedStateFromError;if(typeof X==="function"){var Z=b.value;Q.payload=function(){return X(Z)},Q.callback=function(){Dq(v),fH(v,b)}}var J=v.stateNode;if(J!==null&&typeof J.componentDidCatch==="function")Q.callback=function(){if(Dq(v),fH(v,b),typeof X!=="function")XF(this);var{value:$,stack:q}=b;if(this.componentDidCatch($,{componentStack:q!==null?q:""}),typeof X!=="function"){if(!j4(v.lanes,x0))G("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",t0(v)||"Unknown")}};return Q}function _U(v,b,z){var Q=v.pingCache,X;if(Q===null)Q=v.pingCache=new GA,X=new Set,Q.set(b,X);else if(X=Q.get(b),X===void 0)X=new Set,Q.set(b,X);if(!X.has(z)){X.add(z);var Z=YF.bind(null,v,b,z);if(H5)Sz(v,z);b.then(Z,Z)}}function $A(v,b,z,Q){var X=v.updateQueue;if(X===null){var Z=new Set;Z.add(z),v.updateQueue=Z}else X.add(z)}function KA(v,b){var z=v.tag;if((v.mode&G1)===S0&&(z===F||z===j||z===X0)){var Q=v.alternate;if(Q)v.updateQueue=Q.updateQueue,v.memoizedState=Q.memoizedState,v.lanes=Q.lanes;else v.updateQueue=null,v.memoizedState=null}}function WU(v){var b=v;do{if(b.tag===a&&oN(b))return b;b=b.return}while(b!==null);return null}function NU(v,b,z,Q,X){if((v.mode&G1)===S0){if(v===b)v.flags|=P4;else{if(v.flags|=W1,z.flags|=nZ,z.flags&=~(l9|L8),z.tag===N){var Z=z.alternate;if(Z===null)z.tag=n0;else{var J=H7(n1,x0);J.tag=KX,u7(z,J,x0)}}z.lanes=s0(z.lanes,x0)}return v}return v.flags|=P4,v.lanes=X,v}function UA(v,b,z,Q,X){if(z.flags|=L8,H5)Sz(v,X);if(Q!==null&&typeof Q==="object"&&typeof Q.then==="function"){var Z=Q;if(KA(z),t6()&&z.mode&G1)$K();var J=WU(b);if(J!==null){if(J.flags&=~n5,NU(J,b,z,v,X),J.mode&G1)_U(v,Z,X);$A(J,v,Z);return}else{if(!hO(X)){_U(v,Z,X),KG();return}var H=Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");Q=H}}else if(t6()&&z.mode&G1){$K();var $=WU(b);if($!==null){if(($.flags&P4)===g0)$.flags|=n5;NU($,b,z,v,X),FY(kv(Q,z));return}}Q=kv(Q,z),nP(Q);var q=b;do{switch(q.tag){case f:{var O=Q;q.flags|=P4;var k=M8(X);q.lanes=s0(q.lanes,k);var M=LU(q,O,k);uY(q,M);return}case N:var S=Q,h=q.type,g=q.stateNode;if((q.flags&W1)===g0&&(typeof h.getDerivedStateFromError==="function"||g!==null&&typeof g.componentDidCatch==="function"&&!Nq(g))){q.flags|=P4;var $0=M8(X);q.lanes=s0(q.lanes,$0);var T0=EH(q,S,$0);uY(q,T0);return}break}q=q.return}while(q!==null)}function qA(){return null}var Wz=Y.ReactCurrentOwner,L5=!1,TH,Nz,CH,SH,hH,wv,gH,cX,Az;TH={},Nz={},CH={},SH={},hH={},wv=!1,gH={},cX={},Az={};function F4(v,b,z,Q){if(v===null)b.child=FK(b,null,z,Q);else b.child=Wb(b,v.child,z,Q)}function BA(v,b,z,Q){b.child=Wb(b,v.child,null,Q),b.child=Wb(b,null,z,Q)}function AU(v,b,z,Q,X){if(b.type!==b.elementType){var Z=z.propTypes;if(Z)$5(Z,Q,"prop",q1(z))}var J=z.render,H=b.ref,$,q;Ab(b,X),W8(b);{if(Wz.current=b,m4(!0),$=wb(v,b,J,Q,H,X),q=Vb(),b.mode&L6){a6(!0);try{$=wb(v,b,J,Q,H,X),q=Vb()}finally{a6(!1)}}m4(!1)}if(ev(),v!==null&&!L5)return gK(v,b,X),G7(v,b,X);if(t6()&&q)LY(b);return b.flags|=tv,F4(v,b,$,X),b.child}function PU(v,b,z,Q,X){if(v===null){var Z=z.type;if(MF(Z)&&z.compare===null&&z.defaultProps===void 0){var J=Z;return J=hb(Z),b.tag=X0,b.type=J,dH(b,Z),FU(v,b,J,Q,X)}{var H=Z.propTypes;if(H)$5(H,Q,"prop",q1(Z));if(z.defaultProps!==void 0){var $=q1(Z)||"Unknown";if(!Az[$])G("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",$),Az[$]=!0}}var q=FG(z.type,null,Q,b,b.mode,X);return q.ref=b.ref,q.return=b,b.child=q,q}{var O=z.type,k=O.propTypes;if(k)$5(k,Q,"prop",q1(O))}var M=v.child,S=lH(v,X);if(!S){var h=M.memoizedProps,g=z.compare;if(g=g!==null?g:d8,g(h,Q)&&v.ref===b.ref)return G7(v,b,X)}b.flags|=tv;var $0=Ev(M,Q);return $0.ref=b.ref,$0.return=b,b.child=$0,$0}function FU(v,b,z,Q,X){if(b.type!==b.elementType){var Z=b.elementType;if(Z.$$typeof===w0){var J=Z,H=J._payload,$=J._init;try{Z=$(H)}catch(k){Z=null}var q=Z&&Z.propTypes;if(q)$5(q,Q,"prop",q1(Z))}}if(v!==null){var O=v.memoizedProps;if(d8(O,Q)&&v.ref===b.ref&&b.type===v.type){if(L5=!1,b.pendingProps=Q=O,!lH(v,X))return b.lanes=v.lanes,G7(v,b,X);else if((v.flags&nZ)!==g0)L5=!0}}return uH(v,b,z,Q,X)}function RU(v,b,z){var Q=b.pendingProps,X=Q.children,Z=v!==null?v.memoizedState:null;if(Q.mode==="hidden"||t1)if((b.mode&G1)===S0){var J={baseLanes:o,cachePool:null,transitions:null};b.memoizedState=J,bZ(b,z)}else if(!j4(z,d4)){var H=null,$;if(Z!==null){var q=Z.baseLanes;$=s0(q,z)}else $=z;b.lanes=b.childLanes=PQ(d4);var O={baseLanes:$,cachePool:H,transitions:null};return b.memoizedState=O,b.updateQueue=null,bZ(b,$),null}else{var k={baseLanes:o,cachePool:null,transitions:null};b.memoizedState=k;var M=Z!==null?Z.baseLanes:z;bZ(b,M)}else{var S;if(Z!==null)S=s0(Z.baseLanes,z),b.memoizedState=null;else S=z;bZ(b,S)}return F4(v,b,X,z),b.child}function OA(v,b,z){var Q=b.pendingProps;return F4(v,b,Q,z),b.child}function LA(v,b,z){var Q=b.pendingProps.children;return F4(v,b,Q,z),b.child}function _A(v,b,z){{b.flags|=U1;{var Q=b.stateNode;Q.effectDuration=0,Q.passiveEffectDuration=0}}var X=b.pendingProps,Z=X.children;return F4(v,b,Z,z),b.child}function MU(v,b){var z=b.ref;if(v===null&&z!==null||v!==null&&v.ref!==z)b.flags|=k7,b.flags|=tZ}function uH(v,b,z,Q,X){if(b.type!==b.elementType){var Z=z.propTypes;if(Z)$5(Z,Q,"prop",q1(z))}var J;{var H=qb(b,z,!0);J=Bb(b,H)}var $,q;Ab(b,X),W8(b);{if(Wz.current=b,m4(!0),$=wb(v,b,z,Q,J,X),q=Vb(),b.mode&L6){a6(!0);try{$=wb(v,b,z,Q,J,X),q=Vb()}finally{a6(!1)}}m4(!1)}if(ev(),v!==null&&!L5)return gK(v,b,X),G7(v,b,X);if(t6()&&q)LY(b);return b.flags|=tv,F4(v,b,$,X),b.child}function kU(v,b,z,Q,X){{switch(dF(b)){case!1:{var{stateNode:Z,type:J}=b,H=new J(b.memoizedProps,Z.context),$=H.state;Z.updater.enqueueSetState(Z,$,null);break}case!0:{b.flags|=W1,b.flags|=P4;var q=Error("Simulated error coming from DevTools"),O=M8(X);b.lanes=s0(b.lanes,O);var k=EH(b,kv(q,b),O);uY(b,k);break}}if(b.type!==b.elementType){var M=z.propTypes;if(M)$5(M,Q,"prop",q1(z))}}var S;if(S5(z))S=!0,sQ(b);else S=!1;Ab(b,X);var h=b.stateNode,g;if(h===null)aX(v,b),BU(b,z,Q),DH(b,z,Q,X),g=!0;else if(v===null)g=JA(b,z,Q,X);else g=YA(v,b,z,Q,X);var $0=mH(v,b,z,g,S,X);{var T0=b.stateNode;if(g&&T0.props!==Q){if(!wv)G("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",t0(b)||"a component");wv=!0}}return $0}function mH(v,b,z,Q,X,Z){MU(v,b);var J=(b.flags&W1)!==g0;if(!Q&&!J){if(X)JK(b,z,!1);return G7(v,b,Z)}var H=b.stateNode;Wz.current=b;var $;if(J&&typeof z.getDerivedStateFromError!=="function")$=null,GU();else{W8(b);{if(m4(!0),$=H.render(),b.mode&L6){a6(!0);try{H.render()}finally{a6(!1)}}m4(!1)}ev()}if(b.flags|=tv,v!==null&&J)BA(v,b,$,Z);else F4(v,b,$,Z);if(b.memoizedState=H.state,X)JK(b,z,!0);return b.child}function wU(v){var b=v.stateNode;if(b.pendingContext)XK(v,b.pendingContext,b.pendingContext!==b.context);else if(b.context)XK(v,b.context,!1);mY(v,b.containerInfo)}function WA(v,b,z){if(wU(b),v===null)throw Error("Should have a current fiber. This is a bug in React.");var{pendingProps:Q,memoizedState:X}=b,Z=X.element;IK(v,b),OX(b,Q,null,z);var{memoizedState:J,stateNode:H}=b,$=J.element;if(X.isDehydrated){var q={element:$,isDehydrated:!1,cache:J.cache,pendingSuspenseBoundaries:J.pendingSuspenseBoundaries,transitions:J.transitions},O=b.updateQueue;if(O.baseState=q,b.memoizedState=q,b.flags&n5){var k=kv(Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),b);return VU(v,b,$,z,k)}else if($!==Z){var M=kv(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),b);return VU(v,b,$,z,M)}else{FN(b);var S=FK(b,null,$,z);b.child=S;var h=S;while(h)h.flags=h.flags&~w6|t5,h=h.sibling}}else{if(_b(),$===Z)return G7(v,b,z);F4(v,b,$,z)}return b.child}function VU(v,b,z,Q,X){return _b(),FY(X),b.flags|=n5,F4(v,b,z,Q),b.child}function NA(v,b,z){if(CK(b),v===null)PY(b);var{type:Q,pendingProps:X}=b,Z=v!==null?v.memoizedProps:null,J=X.children,H=QY(Q,X);if(H)J=null;else if(Z!==null&&QY(Q,Z))b.flags|=O8;return MU(v,b),F4(v,b,J,z),b.child}function AA(v,b){if(v===null)PY(b);return null}function PA(v,b,z,Q){aX(v,b);var X=b.pendingProps,Z=z,J=Z._payload,H=Z._init,$=H(J);b.type=$;var q=b.tag=kF($),O=O5($,X),k;switch(q){case F:return dH(b,$),b.type=$=hb($),k=uH(null,b,$,O,Q),k;case N:return b.type=$=LG($),k=kU(null,b,$,O,Q),k;case j:return b.type=$=_G($),k=AU(null,b,$,O,Q),k;case p:{if(b.type!==b.elementType){var M=$.propTypes;if(M)$5(M,O,"prop",q1($))}return k=PU(null,b,$,O5($.type,O),Q),k}}var S="";if($!==null&&typeof $==="object"&&$.$$typeof===w0)S=" Did you wrap a component in React.lazy() more than once?";throw Error("Element type is invalid. Received a promise that resolves to: "+$+". "+("Lazy element type must resolve to a class or function."+S))}function FA(v,b,z,Q,X){aX(v,b),b.tag=N;var Z;if(S5(z))Z=!0,sQ(b);else Z=!1;return Ab(b,X),BU(b,z,Q),DH(b,z,Q,X),mH(null,b,z,!0,Z,X)}function RA(v,b,z,Q){aX(v,b);var X=b.pendingProps,Z;{var J=qb(b,z,!1);Z=Bb(b,J)}Ab(b,Q);var H,$;W8(b);{if(z.prototype&&typeof z.prototype.render==="function"){var q=q1(z)||"Unknown";if(!TH[q])G("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",q,q),TH[q]=!0}if(b.mode&L6)U5.recordLegacyContextWarning(b,null);m4(!0),Wz.current=b,H=wb(null,b,z,X,Z,Q),$=Vb(),m4(!1)}if(ev(),b.flags|=tv,typeof H==="object"&&H!==null&&typeof H.render==="function"&&H.$$typeof===void 0){var O=q1(z)||"Unknown";if(!Nz[O])G("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",O,O,O),Nz[O]=!0}if(typeof H==="object"&&H!==null&&typeof H.render==="function"&&H.$$typeof===void 0){{var k=q1(z)||"Unknown";if(!Nz[k])G("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",k,k,k),Nz[k]=!0}b.tag=N,b.memoizedState=null,b.updateQueue=null;var M=!1;if(S5(z))M=!0,sQ(b);else M=!1;return b.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,gY(b),qU(b,H),DH(b,z,X,Q),mH(null,b,z,!0,M,Q)}else{if(b.tag=F,b.mode&L6){a6(!0);try{H=wb(null,b,z,X,Z,Q),$=Vb()}finally{a6(!1)}}if(t6()&&$)LY(b);return F4(null,b,H,Q),dH(b,z),b.child}}function dH(v,b){{if(b){if(b.childContextTypes)G("%s(...): childContextTypes cannot be defined on a function component.",b.displayName||b.name||"Component")}if(v.ref!==null){var z="",Q=F7();if(Q)z+=`
|
|
101
|
-
|
|
102
|
-
Check the render method of \``+Q+"`.";var X=Q||"",Z=v._debugSource;if(Z)X=Z.fileName+":"+Z.lineNumber;if(!hH[X])hH[X]=!0,G("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",z)}if(b.defaultProps!==void 0){var J=q1(b)||"Unknown";if(!Az[J])G("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",J),Az[J]=!0}if(typeof b.getDerivedStateFromProps==="function"){var H=q1(b)||"Unknown";if(!SH[H])G("%s: Function components do not support getDerivedStateFromProps.",H),SH[H]=!0}if(typeof b.contextType==="object"&&b.contextType!==null){var $=q1(b)||"Unknown";if(!CH[$])G("%s: Function components do not support contextType.",$),CH[$]=!0}}}var jH={dehydrated:null,treeContext:null,retryLane:l6};function yH(v){return{baseLanes:v,cachePool:qA(),transitions:null}}function MA(v,b){var z=null;return{baseLanes:s0(v.baseLanes,b),cachePool:z,transitions:v.transitions}}function kA(v,b,z,Q){if(b!==null){var X=b.memoizedState;if(X===null)return!1}return yY(v,Gz)}function wA(v,b){return AQ(v.childLanes,b)}function DU(v,b,z){var Q=b.pendingProps;if(jF(b))b.flags|=W1;var X=q5.current,Z=!1,J=(b.flags&W1)!==g0;if(J||kA(X,v))Z=!0,b.flags&=~W1;else if(v===null||v.memoizedState!==null)X=lN(X,hK);if(X=Fb(X),d7(b,X),v===null){PY(b);var H=b.memoizedState;if(H!==null){var $=H.dehydrated;if($!==null)return EA(b,$)}var{children:q,fallback:O}=Q;if(Z){var k=VA(b,q,O,z),M=b.child;return M.memoizedState=yH(z),b.memoizedState=jH,k}else return cH(b,q)}else{var S=v.memoizedState;if(S!==null){var h=S.dehydrated;if(h!==null)return TA(v,b,J,Q,h,S,z)}if(Z){var{fallback:g,children:$0}=Q,T0=IA(v,b,$0,g,z),V0=b.child,X1=v.child.memoizedState;return V0.memoizedState=X1===null?yH(z):MA(X1,z),V0.childLanes=wA(v,z),b.memoizedState=jH,T0}else{var Z1=Q.children,D=DA(v,b,Z1,z);return b.memoizedState=null,D}}}function cH(v,b,z){var Q=v.mode,X={mode:"visible",children:b},Z=xH(X,Q);return Z.return=v,v.child=Z,Z}function VA(v,b,z,Q){var{mode:X,child:Z}=v,J={mode:"hidden",children:b},H,$;if((X&G1)===S0&&Z!==null){if(H=Z,H.childLanes=o,H.pendingProps=J,v.mode&I1)H.actualDuration=0,H.actualStartTime=-1,H.selfBaseDuration=0,H.treeBaseDuration=0;$=i7(z,X,Q,null)}else H=xH(J,X),$=i7(z,X,Q,null);return H.return=v,$.return=v,H.sibling=$,v.child=H,$}function xH(v,b,z){return fq(v,b,o,null)}function IU(v,b){return Ev(v,b)}function DA(v,b,z,Q){var X=v.child,Z=X.sibling,J=IU(X,{mode:"visible",children:z});if((b.mode&G1)===S0)J.lanes=Q;if(J.return=b,J.sibling=null,Z!==null){var H=b.deletions;if(H===null)b.deletions=[Z],b.flags|=Qv;else H.push(Z)}return b.child=J,J}function IA(v,b,z,Q,X){var Z=b.mode,J=v.child,H=J.sibling,$={mode:"hidden",children:z},q;if((Z&G1)===S0&&b.child!==J){var O=b.child;if(q=O,q.childLanes=o,q.pendingProps=$,b.mode&I1)q.actualDuration=0,q.actualStartTime=-1,q.selfBaseDuration=J.selfBaseDuration,q.treeBaseDuration=J.treeBaseDuration;b.deletions=null}else q=IU(J,$),q.subtreeFlags=J.subtreeFlags&e5;var k;if(H!==null)k=Ev(H,Q);else k=i7(Q,Z,X,null),k.flags|=w6;return k.return=b,q.return=b,q.sibling=k,b.child=q,k}function xX(v,b,z,Q){if(Q!==null)FY(Q);Wb(b,v.child,null,z);var X=b.pendingProps,Z=X.children,J=cH(b,Z);return J.flags|=w6,b.memoizedState=null,J}function fA(v,b,z,Q,X){var Z=b.mode,J={mode:"visible",children:z},H=xH(J,Z),$=i7(Q,Z,X,null);if($.flags|=w6,H.return=b,$.return=b,H.sibling=$,b.child=H,(b.mode&G1)!==S0)Wb(b,v.child,null,X);return $}function EA(v,b,z){if((v.mode&G1)===S0)G("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),v.lanes=PQ(x0);else if(YY(b))v.lanes=PQ($v);else v.lanes=PQ(d4);return null}function TA(v,b,z,Q,X,Z,J){if(!z){if(AN(),(b.mode&G1)===S0)return xX(v,b,J,null);if(YY(X)){var H,$,q;{var O=uW(X);H=O.digest,$=O.message,q=O.stack}var k;if($)k=Error($);else k=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var M=IH(k,H,q);return xX(v,b,J,M)}var S=j4(J,v.childLanes);if(L5||S){var h=vZ();if(h!==null){var g=xO(h,J);if(g!==l6&&g!==Z.retryLane){Z.retryLane=g;var $0=n1;E4(v,g),m6(h,v,g,$0)}}KG();var T0=IH(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 xX(v,b,J,T0)}else if(t3(X)){b.flags|=W1,b.child=v.child;var V0=HF.bind(null,v);return mW(X,V0),null}else{RN(b,X,Z.treeContext);var X1=Q.children,Z1=cH(b,X1);return Z1.flags|=t5,Z1}}else if(b.flags&n5){b.flags&=~n5;var D=IH(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return xX(v,b,J,D)}else if(b.memoizedState!==null)return b.child=v.child,b.flags|=W1,null;else{var{children:d,fallback:I}=Q,r=fA(v,b,d,I,J),O0=b.child;return O0.memoizedState=yH(J),b.memoizedState=jH,r}}function fU(v,b,z){v.lanes=s0(v.lanes,b);var Q=v.alternate;if(Q!==null)Q.lanes=s0(Q.lanes,b);TY(v.return,b,z)}function CA(v,b,z){var Q=b;while(Q!==null){if(Q.tag===a){var X=Q.memoizedState;if(X!==null)fU(Q,z,v)}else if(Q.tag===y0)fU(Q,z,v);else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===v)return;while(Q.sibling===null){if(Q.return===null||Q.return===v)return;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}}function SA(v){var b=v,z=null;while(b!==null){var Q=b.alternate;if(Q!==null&&NX(Q)===null)z=b;b=b.sibling}return z}function hA(v){if(v!==void 0&&v!=="forwards"&&v!=="backwards"&&v!=="together"&&!gH[v])if(gH[v]=!0,typeof v==="string")switch(v.toLowerCase()){case"together":case"forwards":case"backwards":{G('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',v,v.toLowerCase());break}case"forward":case"backward":{G('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',v,v.toLowerCase());break}default:G('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v);break}else G('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v)}function gA(v,b){if(v!==void 0&&!cX[v]){if(v!=="collapsed"&&v!=="hidden")cX[v]=!0,G('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',v);else if(b!=="forwards"&&b!=="backwards")cX[v]=!0,G('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',v)}}function EU(v,b){{var z=_1(v),Q=!z&&typeof r1(v)==="function";if(z||Q){var X=z?"array":"iterable";return G("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",X,b,X),!1}}return!0}function uA(v,b){if((b==="forwards"||b==="backwards")&&v!==void 0&&v!==null&&v!==!1)if(_1(v)){for(var z=0;z<v.length;z++)if(!EU(v[z],z))return}else{var Q=r1(v);if(typeof Q==="function"){var X=Q.call(v);if(X){var Z=X.next(),J=0;for(;!Z.done;Z=X.next()){if(!EU(Z.value,J))return;J++}}}else G('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',b)}}function aH(v,b,z,Q,X){var Z=v.memoizedState;if(Z===null)v.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:Q,tail:z,tailMode:X};else Z.isBackwards=b,Z.rendering=null,Z.renderingStartTime=0,Z.last=Q,Z.tail=z,Z.tailMode=X}function TU(v,b,z){var Q=b.pendingProps,X=Q.revealOrder,Z=Q.tail,J=Q.children;hA(X),gA(Z,X),uA(J,X),F4(v,b,J,z);var H=q5.current,$=yY(H,Gz);if($)H=cY(H,Gz),b.flags|=W1;else{var q=v!==null&&(v.flags&W1)!==g0;if(q)CA(b,b.child,z);H=Fb(H)}if(d7(b,H),(b.mode&G1)===S0)b.memoizedState=null;else switch(X){case"forwards":{var O=SA(b.child),k;if(O===null)k=b.child,b.child=null;else k=O.sibling,O.sibling=null;aH(b,!1,k,O,Z);break}case"backwards":{var M=null,S=b.child;b.child=null;while(S!==null){var h=S.alternate;if(h!==null&&NX(h)===null){b.child=S;break}var g=S.sibling;S.sibling=M,M=S,S=g}aH(b,!0,M,null,Z);break}case"together":{aH(b,!1,null,null,void 0);break}default:b.memoizedState=null}return b.child}function mA(v,b,z){mY(b,b.stateNode.containerInfo);var Q=b.pendingProps;if(v===null)b.child=Wb(b,null,Q,z);else F4(v,b,Q,z);return b.child}var CU=!1;function dA(v,b,z){var Q=b.type,X=Q._context,Z=b.pendingProps,J=b.memoizedProps,H=Z.value;{if(!("value"in Z)){if(!CU)CU=!0,G("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")}var $=b.type.propTypes;if($)$5($,Z,"prop","Context.Provider")}if(kK(b,X,H),J!==null){var q=J.value;if(x4(q,H)){if(J.children===Z.children&&!nQ())return G7(v,b,z)}else gN(b,X,z)}var O=Z.children;return F4(v,b,O,z),b.child}var SU=!1;function jA(v,b,z){var Q=b.type;if(Q._context===void 0){if(Q!==Q.Consumer){if(!SU)SU=!0,G("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")}}else Q=Q._context;var X=b.pendingProps,Z=X.children;if(typeof Z!=="function")G("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");Ab(b,z);var J=V6(Q);W8(b);var H;return Wz.current=b,m4(!0),H=Z(J),m4(!1),ev(),b.flags|=tv,F4(v,b,H,z),b.child}function Pz(){L5=!0}function aX(v,b){if((b.mode&G1)===S0){if(v!==null)v.alternate=null,b.alternate=null,b.flags|=w6}}function G7(v,b,z){if(v!==null)b.dependencies=v.dependencies;if(GU(),Cz(b.lanes),!j4(z,b.childLanes))return null;return SN(v,b),b.child}function yA(v,b,z){{var Q=b.return;if(Q===null)throw Error("Cannot swap the root fiber.");if(v.alternate=null,b.alternate=null,z.index=b.index,z.sibling=b.sibling,z.return=b.return,z.ref=b.ref,b===Q.child)Q.child=z;else{var X=Q.child;if(X===null)throw Error("Expected parent to have a child.");while(X.sibling!==b)if(X=X.sibling,X===null)throw Error("Expected to find the previous sibling.");X.sibling=z}var Z=Q.deletions;if(Z===null)Q.deletions=[v],Q.flags|=Qv;else Z.push(v);return z.flags|=w6,z}}function lH(v,b){var z=v.lanes;if(j4(z,b))return!0;return!1}function cA(v,b,z){switch(b.tag){case f:wU(b);var Q=b.stateNode;_b();break;case w:CK(b);break;case N:{var X=b.type;if(S5(X))sQ(b);break}case R:mY(b,b.stateNode.containerInfo);break;case n:{var Z=b.memoizedProps.value,J=b.type._context;kK(b,J,Z);break}case K0:{var H=j4(z,b.childLanes);if(H)b.flags|=U1;{var $=b.stateNode;$.effectDuration=0,$.passiveEffectDuration=0}}break;case a:{var q=b.memoizedState;if(q!==null){if(q.dehydrated!==null)return d7(b,Fb(q5.current)),b.flags|=W1,null;var O=b.child,k=O.childLanes;if(j4(z,k))return DU(v,b,z);else{d7(b,Fb(q5.current));var M=G7(v,b,z);if(M!==null)return M.sibling;else return null}}else d7(b,Fb(q5.current));break}case y0:{var S=(v.flags&W1)!==g0,h=j4(z,b.childLanes);if(S){if(h)return TU(v,b,z);b.flags|=W1}var g=b.memoizedState;if(g!==null)g.rendering=null,g.tail=null,g.lastEffect=null;if(d7(b,q5.current),h)break;else return null}case h0:case e:return b.lanes=o,RU(v,b,z)}return G7(v,b,z)}function hU(v,b,z){if(b._debugNeedsRemount&&v!==null)return yA(v,b,FG(b.type,b.key,b.pendingProps,b._debugOwner||null,b.mode,b.lanes));if(v!==null){var Q=v.memoizedProps,X=b.pendingProps;if(Q!==X||nQ()||b.type!==v.type)L5=!0;else{var Z=lH(v,z);if(!Z&&(b.flags&W1)===g0)return L5=!1,cA(v,b,z);if((v.flags&nZ)!==g0)L5=!0;else L5=!1}}else if(L5=!1,t6()&&BN(b)){var J=b.index,H=ON();GK(b,H,J)}switch(b.lanes=o,b.tag){case T:return RA(v,b,b.type,z);case N0:{var $=b.elementType;return PA(v,b,$,z)}case F:{var{type:q,pendingProps:O}=b,k=b.elementType===q?O:O5(q,O);return uH(v,b,q,k,z)}case N:{var{type:M,pendingProps:S}=b,h=b.elementType===M?S:O5(M,S);return kU(v,b,M,h,z)}case f:return WA(v,b,z);case w:return NA(v,b,z);case E:return AA(v,b);case a:return DU(v,b,z);case R:return mA(v,b,z);case j:{var{type:g,pendingProps:$0}=b,T0=b.elementType===g?$0:O5(g,$0);return AU(v,b,g,T0,z)}case i:return OA(v,b,z);case s:return LA(v,b,z);case K0:return _A(v,b,z);case n:return dA(v,b,z);case Q0:return jA(v,b,z);case p:{var{type:V0,pendingProps:X1}=b,Z1=O5(V0,X1);if(b.type!==b.elementType){var D=V0.propTypes;if(D)$5(D,Z1,"prop",q1(V0))}return Z1=O5(V0.type,Z1),PU(v,b,V0,Z1,z)}case X0:return FU(v,b,b.type,b.pendingProps,z);case n0:{var{type:d,pendingProps:I}=b,r=b.elementType===d?I:O5(d,I);return FA(v,b,d,r,z)}case y0:return TU(v,b,z);case A0:break;case h0:return RU(v,b,z)}throw Error("Unknown unit of work tag ("+b.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Db(v){v.flags|=U1}function gU(v){v.flags|=k7,v.flags|=tZ}var uU,oH,mU,dU;uU=function(v,b,z,Q){var X=b.child;while(X!==null){if(X.tag===w||X.tag===E)KW(v,X.stateNode);else if(X.tag===R);else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===b)return;while(X.sibling===null){if(X.return===null||X.return===b)return;X=X.return}X.sibling.return=X.return,X=X.sibling}},oH=function(v,b){},mU=function(v,b,z,Q,X){var Z=v.memoizedProps;if(Z===Q)return;var J=b.stateNode,H=dY(),$=qW(J,z,Z,Q,X,H);if(b.updateQueue=$,$)Db(b)},dU=function(v,b,z,Q){if(z!==Q)Db(b)};function Fz(v,b){if(t6())return;switch(v.tailMode){case"hidden":{var z=v.tail,Q=null;while(z!==null){if(z.alternate!==null)Q=z;z=z.sibling}if(Q===null)v.tail=null;else Q.sibling=null;break}case"collapsed":{var X=v.tail,Z=null;while(X!==null){if(X.alternate!==null)Z=X;X=X.sibling}if(Z===null)if(!b&&v.tail!==null)v.tail.sibling=null;else v.tail=null;else Z.sibling=null;break}}}function e6(v){var b=v.alternate!==null&&v.alternate.child===v.child,z=o,Q=g0;if(!b){if((v.mode&I1)!==S0){var{actualDuration:X,selfBaseDuration:Z,child:J}=v;while(J!==null)z=s0(z,s0(J.lanes,J.childLanes)),Q|=J.subtreeFlags,Q|=J.flags,X+=J.actualDuration,Z+=J.treeBaseDuration,J=J.sibling;v.actualDuration=X,v.treeBaseDuration=Z}else{var H=v.child;while(H!==null)z=s0(z,s0(H.lanes,H.childLanes)),Q|=H.subtreeFlags,Q|=H.flags,H.return=v,H=H.sibling}v.subtreeFlags|=Q}else{if((v.mode&I1)!==S0){var{selfBaseDuration:$,child:q}=v;while(q!==null)z=s0(z,s0(q.lanes,q.childLanes)),Q|=q.subtreeFlags&e5,Q|=q.flags&e5,$+=q.treeBaseDuration,q=q.sibling;v.treeBaseDuration=$}else{var O=v.child;while(O!==null)z=s0(z,s0(O.lanes,O.childLanes)),Q|=O.subtreeFlags&e5,Q|=O.flags&e5,O.return=v,O=O.sibling}v.subtreeFlags|=Q}return v.childLanes=z,b}function xA(v,b,z){if(DN()&&(b.mode&G1)!==S0&&(b.flags&W1)===g0)return LK(b),_b(),b.flags|=n5|L8|P4,!1;var Q=QX(b);if(z!==null&&z.dehydrated!==null)if(v===null){if(!Q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(wN(b),e6(b),(b.mode&I1)!==S0){var X=z!==null;if(X){var Z=b.child;if(Z!==null)b.treeBaseDuration-=Z.treeBaseDuration}}return!1}else{if(_b(),(b.flags&W1)===g0)b.memoizedState=null;if(b.flags|=U1,e6(b),(b.mode&I1)!==S0){var J=z!==null;if(J){var H=b.child;if(H!==null)b.treeBaseDuration-=H.treeBaseDuration}}return!1}else return _K(),!0}function jU(v,b,z){var Q=b.pendingProps;switch(_Y(b),b.tag){case T:case N0:case X0:case F:case j:case i:case s:case K0:case Q0:case p:return e6(b),null;case N:{var X=b.type;if(S5(X))tQ(b);return e6(b),null}case f:{var Z=b.stateNode;if(Pb(b),qY(b),aY(),Z.pendingContext)Z.context=Z.pendingContext,Z.pendingContext=null;if(v===null||v.child===null){var J=QX(b);if(J)Db(b);else if(v!==null){var H=v.memoizedState;if(!H.isDehydrated||(b.flags&n5)!==g0)b.flags|=Xv,_K()}}return oH(v,b),e6(b),null}case w:{jY(b);var $=TK(),q=b.type;if(v!==null&&b.stateNode!=null){if(mU(v,b,q,Q,$),v.ref!==b.ref)gU(b)}else{if(!Q){if(b.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return e6(b),null}var O=dY(),k=QX(b);if(k){if(MN(b,$,O))Db(b)}else{var M=$W(q,Q,$,O,b);if(uU(M,b,!1,!1),b.stateNode=M,UW(M,q,Q,$))Db(b)}if(b.ref!==null)gU(b)}return e6(b),null}case E:{var S=Q;if(v&&b.stateNode!=null){var h=v.memoizedProps;dU(v,b,h,S)}else{if(typeof S!=="string"){if(b.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.")}var g=TK(),$0=dY(),T0=QX(b);if(T0){if(kN(b))Db(b)}else b.stateNode=BW(S,g,$0,b)}return e6(b),null}case a:{Rb(b);var V0=b.memoizedState;if(v===null||v.memoizedState!==null&&v.memoizedState.dehydrated!==null){var X1=xA(v,b,V0);if(!X1)if(b.flags&P4)return b;else return null}if((b.flags&W1)!==g0){if(b.lanes=z,(b.mode&I1)!==S0)LH(b);return b}var Z1=V0!==null,D=v!==null&&v.memoizedState!==null;if(Z1!==D){if(Z1){var d=b.child;if(d.flags|=Zv,(b.mode&G1)!==S0){var I=v===null&&(b.memoizedProps.unstable_avoidThisFallback!==!0||!d1);if(I||yY(q5.current,hK))rP();else KG()}}}var r=b.updateQueue;if(r!==null)b.flags|=U1;if(e6(b),(b.mode&I1)!==S0){if(Z1){var O0=b.child;if(O0!==null)b.treeBaseDuration-=O0.treeBaseDuration}}return null}case R:if(Pb(b),oH(v,b),v===null)YN(b.stateNode.containerInfo);return e6(b),null;case n:var U0=b.type._context;return EY(U0,b),e6(b),null;case n0:{var d0=b.type;if(S5(d0))tQ(b);return e6(b),null}case y0:{Rb(b);var p0=b.memoizedState;if(p0===null)return e6(b),null;var E1=(b.flags&W1)!==g0,O1=p0.rendering;if(O1===null)if(!E1){var P6=tP()&&(v===null||(v.flags&W1)===g0);if(!P6){var L1=b.child;while(L1!==null){var _6=NX(L1);if(_6!==null){E1=!0,b.flags|=W1,Fz(p0,!1);var B4=_6.updateQueue;if(B4!==null)b.updateQueue=B4,b.flags|=U1;return b.subtreeFlags=g0,hN(b,z),d7(b,cY(q5.current,Gz)),b.child}L1=L1.sibling}}if(p0.tail!==null&&x6()>Hq())b.flags|=W1,E1=!0,Fz(p0,!1),b.lanes=m$}else Fz(p0,!1);else{if(!E1){var X4=NX(O1);if(X4!==null){b.flags|=W1,E1=!0;var o4=X4.updateQueue;if(o4!==null)b.updateQueue=o4,b.flags|=U1;if(Fz(p0,!0),p0.tail===null&&p0.tailMode==="hidden"&&!O1.alternate&&!t6())return e6(b),null}else if(x6()*2-p0.renderingStartTime>Hq()&&z!==d4)b.flags|=W1,E1=!0,Fz(p0,!1),b.lanes=m$}if(p0.isBackwards)O1.sibling=b.child,b.child=O1;else{var k4=p0.last;if(k4!==null)k4.sibling=O1;else b.child=O1;p0.last=O1}}if(p0.tail!==null){var w4=p0.tail;p0.rendering=w4,p0.tail=w4.sibling,p0.renderingStartTime=x6(),w4.sibling=null;var O4=q5.current;if(E1)O4=cY(O4,Gz);else O4=Fb(O4);return d7(b,O4),w4}return e6(b),null}case A0:break;case h0:case e:{$G(b);var B7=b.memoizedState,gb=B7!==null;if(v!==null){var mz=v.memoizedState,c5=mz!==null;if(c5!==gb&&!t1)b.flags|=Zv}if(!gb||(b.mode&G1)===S0)e6(b);else if(j4(y5,d4)){if(e6(b),b.subtreeFlags&(w6|U1))b.flags|=Zv}return null}case Z0:return null;case k0:return null}throw Error("Unknown unit of work tag ("+b.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function aA(v,b,z){switch(_Y(b),b.tag){case N:{var Q=b.type;if(S5(Q))tQ(b);var X=b.flags;if(X&P4){if(b.flags=X&~P4|W1,(b.mode&I1)!==S0)LH(b);return b}return null}case f:{var Z=b.stateNode;Pb(b),qY(b),aY();var J=b.flags;if((J&P4)!==g0&&(J&W1)===g0)return b.flags=J&~P4|W1,b;return null}case w:return jY(b),null;case a:{Rb(b);var H=b.memoizedState;if(H!==null&&H.dehydrated!==null){if(b.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");_b()}var $=b.flags;if($&P4){if(b.flags=$&~P4|W1,(b.mode&I1)!==S0)LH(b);return b}return null}case y0:return Rb(b),null;case R:return Pb(b),null;case n:var q=b.type._context;return EY(q,b),null;case h0:case e:return $G(b),null;case Z0:return null;default:return null}}function yU(v,b,z){switch(_Y(b),b.tag){case N:{var Q=b.type.childContextTypes;if(Q!==null&&Q!==void 0)tQ(b);break}case f:{var X=b.stateNode;Pb(b),qY(b),aY();break}case w:{jY(b);break}case R:Pb(b);break;case a:Rb(b);break;case y0:Rb(b);break;case n:var Z=b.type._context;EY(Z,b);break;case h0:case e:$G(b);break}}var cU=null;cU=new Set;var lX=!1,v4=!1,lA=typeof WeakSet==="function"?WeakSet:Set,P0=null,Ib=null,fb=null;function oA(v){iZ(null,function(){throw v}),pZ()}var iA=function(v,b){if(b.props=v.memoizedProps,b.state=v.memoizedState,v.mode&I1)try{d5(),b.componentWillUnmount()}finally{m5(v)}else b.componentWillUnmount()};function xU(v,b){try{c7(T6,v)}catch(z){a1(v,b,z)}}function iH(v,b,z){try{iA(v,z)}catch(Q){a1(v,b,Q)}}function pA(v,b,z){try{z.componentDidMount()}catch(Q){a1(v,b,Q)}}function aU(v,b){try{iU(v)}catch(z){a1(v,b,z)}}function Eb(v,b){var z=v.ref;if(z!==null)if(typeof z==="function"){var Q;try{if(s1&&o1&&v.mode&I1)try{d5(),Q=z(null)}finally{m5(v)}else Q=z(null)}catch(X){a1(v,b,X)}if(typeof Q==="function")G("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",t0(v))}else z.current=null}function oX(v,b,z){try{z()}catch(Q){a1(v,b,Q)}}var lU=null,oU=!1;function rA(v,b){lU=HW(v.containerInfo),P0=b,nA();var z=oU;return oU=!1,lU=null,z}function nA(){while(P0!==null){var v=P0,b=v.child;if((v.subtreeFlags&eZ)!==g0&&b!==null)b.return=v,P0=b;else tA()}}function tA(){while(P0!==null){var v=P0;U6(v);try{sA(v)}catch(z){a1(v,v.return,z)}c6();var b=v.sibling;if(b!==null){b.return=v.return,P0=b;return}P0=v.return}}function sA(v){var{alternate:b,flags:z}=v;if((z&Xv)!==g0){switch(U6(v),v.tag){case F:case j:case X0:break;case N:{if(b!==null){var{memoizedProps:Q,memoizedState:X}=b,Z=v.stateNode;if(v.type===v.elementType&&!wv){if(Z.props!==v.memoizedProps)G("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",t0(v)||"instance");if(Z.state!==v.memoizedState)G("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",t0(v)||"instance")}var J=Z.getSnapshotBeforeUpdate(v.elementType===v.type?Q:O5(v.type,Q),X);{var H=cU;if(J===void 0&&!H.has(v.type))H.add(v.type),G("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",t0(v))}Z.__reactInternalSnapshotBeforeUpdate=J}break}case f:{{var $=v.stateNode;CW($.containerInfo)}break}case w:case E:case R:case n0:break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}c6()}}function _5(v,b,z){var Q=b.updateQueue,X=Q!==null?Q.lastEffect:null;if(X!==null){var Z=X.next,J=Z;do{if((J.tag&v)===v){var H=J.destroy;if(J.destroy=void 0,H!==void 0){if((v&s6)!==T4)BO(b);else if((v&T6)!==T4)C$(b);if((v&h5)!==T4)hz(!0);if(oX(b,z,H),(v&h5)!==T4)hz(!1);if((v&s6)!==T4)OO();else if((v&T6)!==T4)S$()}}J=J.next}while(J!==Z)}}function c7(v,b){var z=b.updateQueue,Q=z!==null?z.lastEffect:null;if(Q!==null){var X=Q.next,Z=X;do{if((Z.tag&v)===v){if((v&s6)!==T4)UO(b);else if((v&T6)!==T4)LO(b);var J=Z.create;if((v&h5)!==T4)hz(!0);if(Z.destroy=J(),(v&h5)!==T4)hz(!1);if((v&s6)!==T4)qO();else if((v&T6)!==T4)_O();{var H=Z.destroy;if(H!==void 0&&typeof H!=="function"){var $=void 0;if((Z.tag&T6)!==g0)$="useLayoutEffect";else if((Z.tag&h5)!==g0)$="useInsertionEffect";else $="useEffect";var q=void 0;if(H===null)q=" You returned null. If your effect does not require clean up, return undefined (or nothing).";else if(typeof H.then==="function")q=`
|
|
103
|
-
|
|
104
|
-
It looks like you wrote `+$+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
105
|
-
|
|
106
|
-
`+$+`(() => {
|
|
107
|
-
async function fetchData() {
|
|
108
|
-
// You can await here
|
|
109
|
-
const response = await MyAPI.getData(someId);
|
|
110
|
-
// ...
|
|
111
|
-
}
|
|
112
|
-
fetchData();
|
|
113
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
114
|
-
|
|
115
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`;else q=" You returned: "+H;G("%s must not return anything besides a function, which is used for clean-up.%s",$,q)}}}Z=Z.next}while(Z!==X)}}function eA(v,b){if((b.flags&U1)!==g0)switch(b.tag){case K0:{var z=b.stateNode.passiveEffectDuration,Q=b.memoizedProps,X=Q.id,Z=Q.onPostCommit,J=YU(),H=b.alternate===null?"mount":"update";if(JU())H="nested-update";if(typeof Z==="function")Z(X,H,z,J);var $=b.return;v:while($!==null){switch($.tag){case f:var q=$.stateNode;q.passiveEffectDuration+=z;break v;case K0:var O=$.stateNode;O.passiveEffectDuration+=z;break v}$=$.return}break}}}function vP(v,b,z,Q){if((z.flags&_8)!==g0)switch(z.tag){case F:case j:case X0:{if(!v4)if(z.mode&I1)try{d5(),c7(T6|E6,z)}finally{m5(z)}else c7(T6|E6,z);break}case N:{var X=z.stateNode;if(z.flags&U1){if(!v4)if(b===null){if(z.type===z.elementType&&!wv){if(X.props!==z.memoizedProps)G("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",t0(z)||"instance");if(X.state!==z.memoizedState)G("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",t0(z)||"instance")}if(z.mode&I1)try{d5(),X.componentDidMount()}finally{m5(z)}else X.componentDidMount()}else{var Z=z.elementType===z.type?b.memoizedProps:O5(z.type,b.memoizedProps),J=b.memoizedState;if(z.type===z.elementType&&!wv){if(X.props!==z.memoizedProps)G("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",t0(z)||"instance");if(X.state!==z.memoizedState)G("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",t0(z)||"instance")}if(z.mode&I1)try{d5(),X.componentDidUpdate(Z,J,X.__reactInternalSnapshotBeforeUpdate)}finally{m5(z)}else X.componentDidUpdate(Z,J,X.__reactInternalSnapshotBeforeUpdate)}}var H=z.updateQueue;if(H!==null){if(z.type===z.elementType&&!wv){if(X.props!==z.memoizedProps)G("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",t0(z)||"instance");if(X.state!==z.memoizedState)G("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",t0(z)||"instance")}EK(z,H,X)}break}case f:{var $=z.updateQueue;if($!==null){var q=null;if(z.child!==null)switch(z.child.tag){case w:q=zY(z.child.stateNode);break;case N:q=z.child.stateNode;break}EK(z,$,q)}break}case w:{var O=z.stateNode;if(b===null&&z.flags&U1){var{type:k,memoizedProps:M}=z;NW(O,k,M)}break}case E:break;case R:break;case K0:{{var S=z.memoizedProps,h=S.onCommit,g=S.onRender,$0=z.stateNode.effectDuration,T0=YU(),V0=b===null?"mount":"update";if(JU())V0="nested-update";if(typeof g==="function")g(z.memoizedProps.id,V0,z.actualDuration,z.treeBaseDuration,z.actualStartTime,T0);{if(typeof h==="function")h(z.memoizedProps.id,V0,$0,T0);zF(z);var X1=z.return;v:while(X1!==null){switch(X1.tag){case f:var Z1=X1.stateNode;Z1.effectDuration+=$0;break v;case K0:var D=X1.stateNode;D.effectDuration+=$0;break v}X1=X1.return}}}break}case a:{HP(v,z);break}case y0:case n0:case A0:case h0:case e:case k0:break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(!v4){if(z.flags&k7)iU(z)}}function bP(v){switch(v.tag){case F:case j:case X0:{if(v.mode&I1)try{d5(),xU(v,v.return)}finally{m5(v)}else xU(v,v.return);break}case N:{var b=v.stateNode;if(typeof b.componentDidMount==="function")pA(v,v.return,b);aU(v,v.return);break}case w:{aU(v,v.return);break}}}function zP(v,b){var z=null;{var Q=v;while(!0){if(Q.tag===w){if(z===null){z=Q;try{var X=Q.stateNode;if(b)IW(X);else EW(Q.stateNode,Q.memoizedProps)}catch(J){a1(v,v.return,J)}}}else if(Q.tag===E){if(z===null)try{var Z=Q.stateNode;if(b)fW(Z);else TW(Z,Q.memoizedProps)}catch(J){a1(v,v.return,J)}}else if((Q.tag===h0||Q.tag===e)&&Q.memoizedState!==null&&Q!==v);else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===v)return;while(Q.sibling===null){if(Q.return===null||Q.return===v)return;if(z===Q)z=null;Q=Q.return}if(z===Q)z=null;Q.sibling.return=Q.return,Q=Q.sibling}}}function iU(v){var b=v.ref;if(b!==null){var z=v.stateNode,Q;switch(v.tag){case w:Q=zY(z);break;default:Q=z}if(typeof b==="function"){var X;if(v.mode&I1)try{d5(),X=b(Q)}finally{m5(v)}else X=b(Q);if(typeof X==="function")G("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",t0(v))}else{if(!b.hasOwnProperty("current"))G("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",t0(v));b.current=Q}}}function QP(v){var b=v.alternate;if(b!==null)b.return=null;v.return=null}function pU(v){var b=v.alternate;if(b!==null)v.alternate=null,pU(b);{if(v.child=null,v.deletions=null,v.sibling=null,v.tag===w){var z=v.stateNode;if(z!==null)$N(z)}v.stateNode=null,v._debugOwner=null,v.return=null,v.dependencies=null,v.memoizedProps=null,v.memoizedState=null,v.pendingProps=null,v.stateNode=null,v.updateQueue=null}}function XP(v){var b=v.return;while(b!==null){if(rU(b))return b;b=b.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function rU(v){return v.tag===w||v.tag===f||v.tag===R}function nU(v){var b=v;v:while(!0){while(b.sibling===null){if(b.return===null||rU(b.return))return null;b=b.return}b.sibling.return=b.return,b=b.sibling;while(b.tag!==w&&b.tag!==E&&b.tag!==z1){if(b.flags&w6)continue v;if(b.child===null||b.tag===R)continue v;else b.child.return=b,b=b.child}if(!(b.flags&w6))return b.stateNode}}function ZP(v){var b=XP(v);switch(b.tag){case w:{var z=b.stateNode;if(b.flags&O8)n3(z),b.flags&=~O8;var Q=nU(v);rH(v,Q,z);break}case f:case R:{var X=b.stateNode.containerInfo,Z=nU(v);pH(v,Z,X);break}default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function pH(v,b,z){var Q=v.tag,X=Q===w||Q===E;if(X){var Z=v.stateNode;if(b)kW(z,Z,b);else RW(z,Z)}else if(Q===R);else{var J=v.child;if(J!==null){pH(J,b,z);var H=J.sibling;while(H!==null)pH(H,b,z),H=H.sibling}}}function rH(v,b,z){var Q=v.tag,X=Q===w||Q===E;if(X){var Z=v.stateNode;if(b)MW(z,Z,b);else FW(z,Z)}else if(Q===R);else{var J=v.child;if(J!==null){rH(J,b,z);var H=J.sibling;while(H!==null)rH(H,b,z),H=H.sibling}}}var b4=null,W5=!1;function JP(v,b,z){{var Q=b;v:while(Q!==null){switch(Q.tag){case w:{b4=Q.stateNode,W5=!1;break v}case f:{b4=Q.stateNode.containerInfo,W5=!0;break v}case R:{b4=Q.stateNode.containerInfo,W5=!0;break v}}Q=Q.return}if(b4===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");tU(v,b,z),b4=null,W5=!1}QP(z)}function x7(v,b,z){var Q=z.child;while(Q!==null)tU(v,b,Q),Q=Q.sibling}function tU(v,b,z){switch(HO(z),z.tag){case w:if(!v4)Eb(z,b);case E:{{var Q=b4,X=W5;if(b4=null,x7(v,b,z),b4=Q,W5=X,b4!==null)if(W5)VW(b4,z.stateNode);else wW(b4,z.stateNode)}return}case z1:{if(b4!==null)if(W5)DW(b4,z.stateNode);else JY(b4,z.stateNode);return}case R:{{var Z=b4,J=W5;b4=z.stateNode.containerInfo,W5=!0,x7(v,b,z),b4=Z,W5=J}return}case F:case j:case p:case X0:{if(!v4){var H=z.updateQueue;if(H!==null){var $=H.lastEffect;if($!==null){var q=$.next,O=q;do{var k=O,M=k.destroy,S=k.tag;if(M!==void 0){if((S&h5)!==T4)oX(z,b,M);else if((S&T6)!==T4){if(C$(z),z.mode&I1)d5(),oX(z,b,M),m5(z);else oX(z,b,M);S$()}}O=O.next}while(O!==q)}}}x7(v,b,z);return}case N:{if(!v4){Eb(z,b);var h=z.stateNode;if(typeof h.componentWillUnmount==="function")iH(z,b,h)}x7(v,b,z);return}case A0:{x7(v,b,z);return}case h0:{if(z.mode&G1){var g=v4;v4=g||z.memoizedState!==null,x7(v,b,z),v4=g}else x7(v,b,z);break}default:{x7(v,b,z);return}}}function YP(v){var b=v.memoizedState}function HP(v,b){var z=b.memoizedState;if(z===null){var Q=b.alternate;if(Q!==null){var X=Q.memoizedState;if(X!==null){var Z=X.dehydrated;if(Z!==null)iW(Z)}}}}function sU(v){var b=v.updateQueue;if(b!==null){v.updateQueue=null;var z=v.stateNode;if(z===null)z=v.stateNode=new lA;b.forEach(function(Q){var X=GF.bind(null,v,Q);if(!z.has(Q)){if(z.add(Q),H5)if(Ib!==null&&fb!==null)Sz(fb,Ib);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");Q.then(X,X)}})}}function GP(v,b,z){Ib=z,fb=v,U6(b),eU(b,v),U6(b),Ib=null,fb=null}function N5(v,b,z){var Q=b.deletions;if(Q!==null)for(var X=0;X<Q.length;X++){var Z=Q[X];try{JP(v,b,Z)}catch($){a1(Z,b,$)}}var J=ez();if(b.subtreeFlags&vJ){var H=b.child;while(H!==null)U6(H),eU(H,v),H=H.sibling}U6(J)}function eU(v,b,z){var{alternate:Q,flags:X}=v;switch(v.tag){case F:case j:case p:case X0:{if(N5(b,v),j5(v),X&U1){try{_5(h5|E6,v,v.return),c7(h5|E6,v)}catch(d0){a1(v,v.return,d0)}if(v.mode&I1){try{d5(),_5(T6|E6,v,v.return)}catch(d0){a1(v,v.return,d0)}m5(v)}else try{_5(T6|E6,v,v.return)}catch(d0){a1(v,v.return,d0)}}return}case N:{if(N5(b,v),j5(v),X&k7){if(Q!==null)Eb(Q,Q.return)}return}case w:{if(N5(b,v),j5(v),X&k7){if(Q!==null)Eb(Q,Q.return)}{if(v.flags&O8){var Z=v.stateNode;try{n3(Z)}catch(d0){a1(v,v.return,d0)}}if(X&U1){var J=v.stateNode;if(J!=null){var H=v.memoizedProps,$=Q!==null?Q.memoizedProps:H,q=v.type,O=v.updateQueue;if(v.updateQueue=null,O!==null)try{AW(J,O,q,$,H,v)}catch(d0){a1(v,v.return,d0)}}}}return}case E:{if(N5(b,v),j5(v),X&U1){if(v.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var{stateNode:k,memoizedProps:M}=v,S=Q!==null?Q.memoizedProps:M;try{PW(k,S,M)}catch(d0){a1(v,v.return,d0)}}return}case f:{if(N5(b,v),j5(v),X&U1){if(Q!==null){var h=Q.memoizedState;if(h.isDehydrated)try{oW(b.containerInfo)}catch(d0){a1(v,v.return,d0)}}}return}case R:{N5(b,v),j5(v);return}case a:{N5(b,v),j5(v);var g=v.child;if(g.flags&Zv){var{stateNode:$0,memoizedState:T0}=g,V0=T0!==null;if($0.isHidden=V0,V0){var X1=g.alternate!==null&&g.alternate.memoizedState!==null;if(!X1)pP()}}if(X&U1){try{YP(v)}catch(d0){a1(v,v.return,d0)}sU(v)}return}case h0:{var Z1=Q!==null&&Q.memoizedState!==null;if(v.mode&G1){var D=v4;v4=D||Z1,N5(b,v),v4=D}else N5(b,v);if(j5(v),X&Zv){var{stateNode:d,memoizedState:I}=v,r=I!==null,O0=v;if(d.isHidden=r,r){if(!Z1){if((O0.mode&G1)!==S0){P0=O0;var U0=O0.child;while(U0!==null)P0=U0,KP(U0),U0=U0.sibling}}}zP(O0,r)}return}case y0:{if(N5(b,v),j5(v),X&U1)sU(v);return}case A0:return;default:{N5(b,v),j5(v);return}}}function j5(v){var b=v.flags;if(b&w6){try{ZP(v)}catch(z){a1(v,v.return,z)}v.flags&=~w6}if(b&t5)v.flags&=~t5}function $P(v,b,z){Ib=z,fb=b,P0=v,vq(v,b,z),Ib=null,fb=null}function vq(v,b,z){var Q=(v.mode&G1)!==S0;while(P0!==null){var X=P0,Z=X.child;if(X.tag===h0&&Q){var J=X.memoizedState!==null,H=J||lX;if(H){nH(v,b,z);continue}else{var $=X.alternate,q=$!==null&&$.memoizedState!==null,O=q||v4,k=lX,M=v4;if(lX=H,v4=O,v4&&!M)P0=X,UP(X);var S=Z;while(S!==null)P0=S,vq(S,b,z),S=S.sibling;P0=X,lX=k,v4=M,nH(v,b,z);continue}}if((X.subtreeFlags&_8)!==g0&&Z!==null)Z.return=X,P0=Z;else nH(v,b,z)}}function nH(v,b,z){while(P0!==null){var Q=P0;if((Q.flags&_8)!==g0){var X=Q.alternate;U6(Q);try{vP(b,X,Q,z)}catch(J){a1(Q,Q.return,J)}c6()}if(Q===v){P0=null;return}var Z=Q.sibling;if(Z!==null){Z.return=Q.return,P0=Z;return}P0=Q.return}}function KP(v){while(P0!==null){var b=P0,z=b.child;switch(b.tag){case F:case j:case p:case X0:{if(b.mode&I1)try{d5(),_5(T6,b,b.return)}finally{m5(b)}else _5(T6,b,b.return);break}case N:{Eb(b,b.return);var Q=b.stateNode;if(typeof Q.componentWillUnmount==="function")iH(b,b.return,Q);break}case w:{Eb(b,b.return);break}case h0:{var X=b.memoizedState!==null;if(X){bq(v);continue}break}}if(z!==null)z.return=b,P0=z;else bq(v)}}function bq(v){while(P0!==null){var b=P0;if(b===v){P0=null;return}var z=b.sibling;if(z!==null){z.return=b.return,P0=z;return}P0=b.return}}function UP(v){while(P0!==null){var b=P0,z=b.child;if(b.tag===h0){var Q=b.memoizedState!==null;if(Q){zq(v);continue}}if(z!==null)z.return=b,P0=z;else zq(v)}}function zq(v){while(P0!==null){var b=P0;U6(b);try{bP(b)}catch(Q){a1(b,b.return,Q)}if(c6(),b===v){P0=null;return}var z=b.sibling;if(z!==null){z.return=b.return,P0=z;return}P0=b.return}}function qP(v,b,z,Q){P0=b,BP(b,v,z,Q)}function BP(v,b,z,Q){while(P0!==null){var X=P0,Z=X.child;if((X.subtreeFlags&sv)!==g0&&Z!==null)Z.return=X,P0=Z;else OP(v,b,z,Q)}}function OP(v,b,z,Q){while(P0!==null){var X=P0;if((X.flags&Y5)!==g0){U6(X);try{LP(b,X,z,Q)}catch(J){a1(X,X.return,J)}c6()}if(X===v){P0=null;return}var Z=X.sibling;if(Z!==null){Z.return=X.return,P0=Z;return}P0=X.return}}function LP(v,b,z,Q){switch(b.tag){case F:case j:case X0:{if(b.mode&I1){OH();try{c7(s6|E6,b)}finally{BH(b)}}else c7(s6|E6,b);break}}}function _P(v){P0=v,WP()}function WP(){while(P0!==null){var v=P0,b=v.child;if((P0.flags&Qv)!==g0){var z=v.deletions;if(z!==null){for(var Q=0;Q<z.length;Q++){var X=z[Q];P0=X,PP(X,v)}{var Z=v.alternate;if(Z!==null){var J=Z.child;if(J!==null){Z.child=null;do{var H=J.sibling;J.sibling=null,J=H}while(J!==null)}}}P0=v}}if((v.subtreeFlags&sv)!==g0&&b!==null)b.return=v,P0=b;else NP()}}function NP(){while(P0!==null){var v=P0;if((v.flags&Y5)!==g0)U6(v),AP(v),c6();var b=v.sibling;if(b!==null){b.return=v.return,P0=b;return}P0=v.return}}function AP(v){switch(v.tag){case F:case j:case X0:{if(v.mode&I1)OH(),_5(s6|E6,v,v.return),BH(v);else _5(s6|E6,v,v.return);break}}}function PP(v,b){while(P0!==null){var z=P0;U6(z),RP(z,b),c6();var Q=z.child;if(Q!==null)Q.return=z,P0=Q;else FP(v)}}function FP(v){while(P0!==null){var b=P0,z=b.sibling,Q=b.return;if(pU(b),b===v){P0=null;return}if(z!==null){z.return=Q,P0=z;return}P0=Q}}function RP(v,b){switch(v.tag){case F:case j:case X0:{if(v.mode&I1)OH(),_5(s6,v,b),BH(v);else _5(s6,v,b);break}}}function MP(v){switch(v.tag){case F:case j:case X0:{try{c7(T6|E6,v)}catch(z){a1(v,v.return,z)}break}case N:{var b=v.stateNode;try{b.componentDidMount()}catch(z){a1(v,v.return,z)}break}}}function kP(v){switch(v.tag){case F:case j:case X0:{try{c7(s6|E6,v)}catch(b){a1(v,v.return,b)}break}}}function wP(v){switch(v.tag){case F:case j:case X0:{try{_5(T6|E6,v,v.return)}catch(z){a1(v,v.return,z)}break}case N:{var b=v.stateNode;if(typeof b.componentWillUnmount==="function")iH(v,v.return,b);break}}}function VP(v){switch(v.tag){case F:case j:case X0:try{_5(s6|E6,v,v.return)}catch(b){a1(v,v.return,b)}}}var DP=0,IP=1,fP=2,EP=3,TP=4;if(typeof Symbol==="function"&&Symbol.for){var Rz=Symbol.for;DP=Rz("selector.component"),IP=Rz("selector.has_pseudo_class"),fP=Rz("selector.role"),EP=Rz("selector.test_id"),TP=Rz("selector.text")}var CP=[];function SP(){CP.forEach(function(v){return v()})}var hP=Y.ReactCurrentActQueue;function gP(v){{var b=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,z=typeof jest<"u";return z&&b!==!1}}function Qq(){{var v=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;if(!v&&hP.current!==null)G("The current testing environment is not configured to support act(...)");return v}}var uP=Math.ceil,tH=Y.ReactCurrentDispatcher,sH=Y.ReactCurrentOwner,z4=Y.ReactCurrentBatchConfig,A5=Y.ReactCurrentActQueue,h6=0,Xq=1,Q4=2,b5=4,$7=0,Mz=1,Vv=2,iX=3,kz=4,Zq=5,eH=6,$1=h6,R4=null,q6=null,g6=o,y5=o,vG=C7(o),u6=$7,wz=null,bG=o,pX=o,Vz=o,rX=o,Dz=null,C4=null,zG=0,Jq=500,Yq=1/0,mP=500,K7=null;function Iz(){Yq=x6()+mP}function Hq(){return Yq}var nX=!1,QG=null,Tb=null,Dv=!1,a7=null,fz=o,XG=[],ZG=null,dP=50,Ez=0,JG=null,YG=!1,tX=!1,jP=50,Cb=0,sX=null,Tz=n1,eX=o,Gq=!1;function vZ(){return R4}function M4(){if(($1&(Q4|b5))!==h6)return x6();if(Tz!==n1)return Tz;return Tz=x6(),Tz}function l7(v){var b=v.mode;if((b&G1)===S0)return x0;else if(($1&Q4)!==h6&&g6!==o)return M8(g6);var z=EN()!==fN;if(z){if(z4.transition!==null){var Q=z4.transition;if(!Q._updatedFibers)Q._updatedFibers=new Set;Q._updatedFibers.add(v)}if(eX===l6)eX=c$();return eX}var X=G5();if(X!==l6)return X;var Z=OW();return Z}function yP(v){var b=v.mode;if((b&G1)===S0)return x0;return dO()}function m6(v,b,z,Q){if(KF(),Gq)G("useInsertionEffect must not schedule updates.");if(YG)tX=!0;if(k8(v,z,Q),($1&Q4)!==o&&v===R4)BF(b);else{if(H5)l$(v,b,z);if(OF(b),v===R4){if(($1&Q4)===h6)Vz=s0(Vz,z);if(u6===kz)o7(v,g6)}if(S4(v,Q),z===x0&&$1===h6&&(b.mode&G1)===S0&&!A5.isBatchingLegacy)Iz(),HK()}}function cP(v,b,z){var Q=v.current;Q.lanes=b,k8(v,b,z),S4(v,z)}function xP(v){return($1&Q4)!==h6}function S4(v,b){var z=v.callbackNode;CO(v,b);var Q=WQ(v,v===R4?g6:o);if(Q===o){if(z!==null)kq(z);v.callbackNode=null,v.callbackPriority=l6;return}var X=Uv(Q),Z=v.callbackPriority;if(Z===X&&!(A5.current!==null&&z!==BG)){if(z==null&&Z!==x0)G("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}if(z!=null)kq(z);var J;if(X===x0){if(v.tag===S7){if(A5.isBatchingLegacy!==null)A5.didScheduleLegacyUpdate=!0;qN(Uq.bind(null,v))}else YK(Uq.bind(null,v));if(A5.current!==null)A5.current.push(h7);else _W(function(){if(($1&(Q4|b5))===h6)h7()});J=null}else{var H;switch(p$(Q)){case y4:H=BQ;break;case b7:H=bJ;break;case z7:H=Hv;break;case FQ:H=zJ;break;default:H=Hv;break}J=OG(H,$q.bind(null,v))}v.callbackPriority=X,v.callbackNode=J}function $q(v,b){if(zA(),Tz=n1,eX=o,($1&(Q4|b5))!==h6)throw Error("Should not already be working.");var z=v.callbackNode,Q=q7();if(Q){if(v.callbackNode!==z)return null}var X=WQ(v,v===R4?g6:o);if(X===o)return null;var Z=!NQ(v,X)&&!mO(v,X)&&!b,J=Z?eP(v,X):zZ(v,X);if(J!==$7){if(J===Vv){var H=MJ(v);if(H!==o)X=H,J=HG(v,H)}if(J===Mz){var $=wz;throw Iv(v,o),o7(v,X),S4(v,x6()),$}if(J===eH)o7(v,X);else{var q=!NQ(v,X),O=v.current.alternate;if(q&&!lP(O)){if(J=zZ(v,X),J===Vv){var k=MJ(v);if(k!==o)X=k,J=HG(v,k)}if(J===Mz){var M=wz;throw Iv(v,o),o7(v,X),S4(v,x6()),M}}v.finishedWork=O,v.finishedLanes=X,aP(v,J,X)}}if(S4(v,x6()),v.callbackNode===z)return $q.bind(null,v);return null}function HG(v,b){var z=Dz;if(RQ(v)){var Q=Iv(v,b);Q.flags|=n5,JN(v.containerInfo)}var X=zZ(v,b);if(X!==Vv){var Z=C4;if(C4=z,Z!==null)Kq(Z)}return X}function Kq(v){if(C4===null)C4=v;else C4.push.apply(C4,v)}function aP(v,b,z){switch(b){case $7:case Mz:throw Error("Root did not complete. This is a bug in React.");case Vv:{fv(v,C4,K7);break}case iX:{if(o7(v,z),j$(z)&&!wq()){var Q=zG+Jq-x6();if(Q>10){var X=WQ(v,o);if(X!==o)break;var Z=v.suspendedLanes;if(!Qb(Z,z)){var J=M4();a$(v,Z);break}v.timeoutHandle=XY(fv.bind(null,v,C4,K7),Q);break}}fv(v,C4,K7);break}case kz:{if(o7(v,z),uO(z))break;if(!wq()){var H=EO(v,z),$=H,q=x6()-$,O=$F(q)-q;if(O>10){v.timeoutHandle=XY(fv.bind(null,v,C4,K7),O);break}}fv(v,C4,K7);break}case Zq:{fv(v,C4,K7);break}default:throw Error("Unknown root exit status.")}}function lP(v){var b=v;while(!0){if(b.flags&UQ){var z=b.updateQueue;if(z!==null){var Q=z.stores;if(Q!==null)for(var X=0;X<Q.length;X++){var Z=Q[X],J=Z.getSnapshot,H=Z.value;try{if(!x4(J(),H))return!1}catch(q){return!1}}}}var $=b.child;if(b.subtreeFlags&UQ&&$!==null){$.return=b,b=$;continue}if(b===v)return!0;while(b.sibling===null){if(b.return===null||b.return===v)return!0;b=b.return}b.sibling.return=b.return,b=b.sibling}return!0}function o7(v,b){b=AQ(b,rX),b=AQ(b,Vz),yO(v,b)}function Uq(v){if(QA(),($1&(Q4|b5))!==h6)throw Error("Should not already be working.");q7();var b=WQ(v,o);if(!j4(b,x0))return S4(v,x6()),null;var z=zZ(v,b);if(v.tag!==S7&&z===Vv){var Q=MJ(v);if(Q!==o)b=Q,z=HG(v,Q)}if(z===Mz){var X=wz;throw Iv(v,o),o7(v,b),S4(v,x6()),X}if(z===eH)throw Error("Root did not complete. This is a bug in React.");var Z=v.current.alternate;return v.finishedWork=Z,v.finishedLanes=b,fv(v,C4,K7),S4(v,x6()),null}function oP(v,b){if(b!==o){if(DJ(v,s0(b,x0)),S4(v,x6()),($1&(Q4|b5))===h6)Iz(),h7()}}function GG(v,b){var z=$1;$1|=Xq;try{return v(b)}finally{if($1=z,$1===h6&&!A5.isBatchingLegacy)Iz(),HK()}}function iP(v,b,z,Q,X){var Z=G5(),J=z4.transition;try{return z4.transition=null,o6(y4),v(b,z,Q,X)}finally{if(o6(Z),z4.transition=J,$1===h6)Iz()}}function U7(v){if(a7!==null&&a7.tag===S7&&($1&(Q4|b5))===h6)q7();var b=$1;$1|=Xq;var z=z4.transition,Q=G5();try{if(z4.transition=null,o6(y4),v)return v();else return}finally{if(o6(Q),z4.transition=z,$1=b,($1&(Q4|b5))===h6)h7()}}function qq(){return($1&(Q4|b5))!==h6}function bZ(v,b){U4(vG,y5,v),y5=s0(y5,b),bG=s0(bG,b)}function $G(v){y5=vG.current,K4(vG,v)}function Iv(v,b){v.finishedWork=null,v.finishedLanes=o;var z=v.timeoutHandle;if(z!==ZY)v.timeoutHandle=ZY,LW(z);if(q6!==null){var Q=q6.return;while(Q!==null){var X=Q.alternate;yU(X,Q),Q=Q.return}}R4=v;var Z=Ev(v.current,null);return q6=Z,g6=y5=bG=b,u6=$7,wz=null,pX=o,Vz=o,rX=o,Dz=null,C4=null,mN(),U5.discardPendingWarnings(),Z}function Bq(v,b){do{var z=q6;try{if(GX(),uK(),c6(),sH.current=null,z===null||z.return===null){u6=Mz,wz=b,q6=null;return}if(s1&&z.mode&I1)jX(z,!0);if($6)if(ev(),b!==null&&typeof b==="object"&&typeof b.then==="function"){var Q=b;NO(z,Q,g6)}else WO(z,b,g6);UA(v,z.return,z,b,g6),Wq(z)}catch(X){if(b=X,q6===z&&z!==null)z=z.return,q6=z;else z=q6;continue}return}while(!0)}function Oq(){var v=tH.current;if(tH.current=hX,v===null)return hX;else return v}function Lq(v){tH.current=v}function pP(){zG=x6()}function Cz(v){pX=s0(v,pX)}function rP(){if(u6===$7)u6=iX}function KG(){if(u6===$7||u6===iX||u6===Vv)u6=kz;if(R4!==null&&(kJ(pX)||kJ(Vz)))o7(R4,g6)}function nP(v){if(u6!==kz)u6=Vv;if(Dz===null)Dz=[v];else Dz.push(v)}function tP(){return u6===$7}function zZ(v,b){var z=$1;$1|=Q4;var Q=Oq();if(R4!==v||g6!==b){if(H5){var X=v.memoizedUpdaters;if(X.size>0)Sz(v,g6),X.clear();o$(v,b)}K7=i$(),Iv(v,b)}h$(b);do try{sP();break}catch(Z){Bq(v,Z)}while(!0);if(GX(),$1=z,Lq(Q),q6!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return g$(),R4=null,g6=o,u6}function sP(){while(q6!==null)_q(q6)}function eP(v,b){var z=$1;$1|=Q4;var Q=Oq();if(R4!==v||g6!==b){if(H5){var X=v.memoizedUpdaters;if(X.size>0)Sz(v,g6),X.clear();o$(v,b)}K7=i$(),Iz(),Iv(v,b)}h$(b);do try{vF();break}catch(Z){Bq(v,Z)}while(!0);if(GX(),Lq(Q),$1=z,q6!==null)return MO(),$7;else return g$(),R4=null,g6=o,u6}function vF(){while(q6!==null&&!s9())_q(q6)}function _q(v){var b=v.alternate;U6(v);var z;if((v.mode&I1)!==S0)qH(v),z=UG(b,v,y5),jX(v,!0);else z=UG(b,v,y5);if(c6(),v.memoizedProps=v.pendingProps,z===null)Wq(v);else q6=z;sH.current=null}function Wq(v){var b=v;do{var{alternate:z,return:Q}=b;if((b.flags&L8)===g0){U6(b);var X=void 0;if((b.mode&I1)===S0)X=jU(z,b,y5);else qH(b),X=jU(z,b,y5),jX(b,!1);if(c6(),X!==null){q6=X;return}}else{var Z=aA(z,b);if(Z!==null){Z.flags&=o9,q6=Z;return}if((b.mode&I1)!==S0){jX(b,!1);var{actualDuration:J,child:H}=b;while(H!==null)J+=H.actualDuration,H=H.sibling;b.actualDuration=J}if(Q!==null)Q.flags|=L8,Q.subtreeFlags=g0,Q.deletions=null;else{u6=eH,q6=null;return}}var $=b.sibling;if($!==null){q6=$;return}b=Q,q6=b}while(b!==null);if(u6===$7)u6=Zq}function fv(v,b,z){var Q=G5(),X=z4.transition;try{z4.transition=null,o6(y4),bF(v,b,z,Q)}finally{z4.transition=X,o6(Q)}return null}function bF(v,b,z,Q){do q7();while(a7!==null);if(UF(),($1&(Q4|b5))!==h6)throw Error("Should not already be working.");var{finishedWork:X,finishedLanes:Z}=v;if(KO(Z),X===null)return T$(),null;else if(Z===o)G("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(v.finishedWork=null,v.finishedLanes=o,X===v.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");v.callbackNode=null,v.callbackPriority=l6;var J=s0(X.lanes,X.childLanes);if(cO(v,J),v===R4)R4=null,q6=null,g6=o;if((X.subtreeFlags&sv)!==g0||(X.flags&sv)!==g0){if(!Dv)Dv=!0,ZG=z,OG(Hv,function(){return q7(),null})}var H=(X.subtreeFlags&(eZ|vJ|_8|sv))!==g0,$=(X.flags&(eZ|vJ|_8|sv))!==g0;if(H||$){var q=z4.transition;z4.transition=null;var O=G5();o6(y4);var k=$1;$1|=b5,sH.current=null;var M=rA(v,X);HU(),GP(v,X,Z),GW(v.containerInfo),v.current=X,AO(Z),$P(X,v,Z),PO(),e9(),$1=k,o6(O),z4.transition=q}else v.current=X,HU();var S=Dv;if(Dv)Dv=!1,a7=v,fz=Z;else Cb=0,sX=null;if(J=v.pendingLanes,J===o)Tb=null;if(!S)Fq(v.current,!1);if(JO(X.stateNode,Q),H5)v.memoizedUpdaters.clear();if(SP(),S4(v,x6()),b!==null){var h=v.onRecoverableError;for(var g=0;g<b.length;g++){var $0=b[g],T0=$0.stack,V0=$0.digest;h($0.value,{componentStack:T0,digest:V0})}}if(nX){nX=!1;var X1=QG;throw QG=null,X1}if(j4(fz,x0)&&v.tag!==S7)q7();if(J=v.pendingLanes,j4(J,x0))if(bA(),v===JG)Ez++;else Ez=0,JG=v;else Ez=0;return h7(),T$(),null}function q7(){if(a7!==null){var v=p$(fz),b=oO(z7,v),z=z4.transition,Q=G5();try{return z4.transition=null,o6(b),QF()}finally{o6(Q),z4.transition=z}}return!1}function zF(v){if(XG.push(v),!Dv)Dv=!0,OG(Hv,function(){return q7(),null})}function QF(){if(a7===null)return!1;var v=ZG;ZG=null;var b=a7,z=fz;if(a7=null,fz=o,($1&(Q4|b5))!==h6)throw Error("Cannot flush passive effects while already rendering.");YG=!0,tX=!1,FO(z);var Q=$1;$1|=b5,_P(b.current),qP(b,b.current,z,v);{var X=XG;XG=[];for(var Z=0;Z<X.length;Z++){var J=X[Z];eA(b,J)}}RO(),Fq(b.current,!0),$1=Q,h7();{if(tX)if(b===sX)Cb++;else Cb=0,sX=b;else Cb=0;YG=!1,tX=!1}YO(b);{var H=b.current.stateNode;H.effectDuration=0,H.passiveEffectDuration=0}return!0}function Nq(v){return Tb!==null&&Tb.has(v)}function XF(v){if(Tb===null)Tb=new Set([v]);else Tb.add(v)}function ZF(v){if(!nX)nX=!0,QG=v}var JF=ZF;function Aq(v,b,z){var Q=kv(z,b),X=LU(v,Q,x0),Z=u7(v,X,x0),J=M4();if(Z!==null)k8(Z,x0,J),S4(Z,J)}function a1(v,b,z){if(oA(z),hz(!1),v.tag===f){Aq(v,v,z);return}var Q=null;Q=b;while(Q!==null){if(Q.tag===f){Aq(Q,v,z);return}else if(Q.tag===N){var{type:X,stateNode:Z}=Q;if(typeof X.getDerivedStateFromError==="function"||typeof Z.componentDidCatch==="function"&&!Nq(Z)){var J=kv(z,v),H=EH(Q,J,x0),$=u7(Q,H,x0),q=M4();if($!==null)k8($,x0,q),S4($,q);return}}Q=Q.return}G(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
116
|
-
|
|
117
|
-
Error message:
|
|
118
|
-
|
|
119
|
-
%s`,z)}function YF(v,b,z){var Q=v.pingCache;if(Q!==null)Q.delete(b);var X=M4();if(a$(v,z),LF(v),R4===v&&Qb(g6,z))if(u6===kz||u6===iX&&j$(g6)&&x6()-zG<Jq)Iv(v,o);else rX=s0(rX,z);S4(v,X)}function Pq(v,b){if(b===l6)b=yP(v);var z=M4(),Q=E4(v,b);if(Q!==null)k8(Q,b,z),S4(Q,z)}function HF(v){var b=v.memoizedState,z=l6;if(b!==null)z=b.retryLane;Pq(v,z)}function GF(v,b){var z=l6,Q;switch(v.tag){case a:Q=v.stateNode;var X=v.memoizedState;if(X!==null)z=X.retryLane;break;case y0:Q=v.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}if(Q!==null)Q.delete(b);Pq(v,z)}function $F(v){return v<120?120:v<480?480:v<1080?1080:v<1920?1920:v<3000?3000:v<4320?4320:uP(v/1960)*1960}function KF(){if(Ez>dP)throw Ez=0,JG=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");if(Cb>jP)Cb=0,sX=null,G("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")}function UF(){U5.flushLegacyContextWarning(),U5.flushPendingUnsafeLifecycleWarnings()}function Fq(v,b){{if(U6(v),QZ(v,s5,wP),b)QZ(v,qQ,VP);if(QZ(v,s5,MP),b)QZ(v,qQ,kP);c6()}}function QZ(v,b,z){{var Q=v,X=null;while(Q!==null){var Z=Q.subtreeFlags&b;if(Q!==X&&Q.child!==null&&Z!==g0)Q=Q.child;else{if((Q.flags&b)!==g0)z(Q);if(Q.sibling!==null)Q=Q.sibling;else Q=X=Q.return}}}}var XZ=null;function Rq(v){{if(($1&Q4)!==h6)return;if(!(v.mode&G1))return;var b=v.tag;if(b!==T&&b!==f&&b!==N&&b!==F&&b!==j&&b!==p&&b!==X0)return;var z=t0(v)||"ReactComponent";if(XZ!==null){if(XZ.has(z))return;XZ.add(z)}else XZ=new Set([z]);var Q=$4;try{U6(v),G("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{if(Q)U6(v);else c6()}}}var UG;{var qF=null;UG=function(v,b,z){var Q=Eq(qF,b);try{return hU(v,b,z)}catch(Z){if(PN()||Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw Z;if(GX(),uK(),yU(v,b),Eq(b,Q),b.mode&I1)qH(b);if(iZ(null,hU,null,v,b,z),c9()){var X=pZ();if(typeof X==="object"&&X!==null&&X._suppressLogging&&typeof Z==="object"&&Z!==null&&!Z._suppressLogging)Z._suppressLogging=!0}throw Z}}}var Mq=!1,qG;qG=new Set;function BF(v){if(e7&&!sN())switch(v.tag){case F:case j:case X0:{var b=q6&&t0(q6)||"Unknown",z=b;if(!qG.has(z)){qG.add(z);var Q=t0(v)||"Unknown";G("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",Q,b,b)}break}case N:{if(!Mq)G("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Mq=!0;break}}}function Sz(v,b){if(H5){var z=v.memoizedUpdaters;z.forEach(function(Q){l$(v,Q,b)})}}var BG={};function OG(v,b){{var z=A5.current;if(z!==null)return z.push(b),BG;else return E$(v,b)}}function kq(v){if(v===BG)return;return t9(v)}function wq(){return A5.current!==null}function OF(v){{if(v.mode&G1){if(!Qq())return}else{if(!gP())return;if($1!==h6)return;if(v.tag!==F&&v.tag!==j&&v.tag!==X0)return}if(A5.current===null){var b=$4;try{U6(v),G(`An update to %s inside a test was not wrapped in act(...).
|
|
120
|
-
|
|
121
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
122
|
-
|
|
123
|
-
act(() => {
|
|
124
|
-
/* fire events that update state */
|
|
125
|
-
});
|
|
126
|
-
/* assert on the output */
|
|
127
|
-
|
|
128
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,t0(v))}finally{if(b)U6(v);else c6()}}}}function LF(v){if(v.tag!==S7&&Qq()&&A5.current===null)G(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
129
|
-
|
|
130
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
131
|
-
|
|
132
|
-
act(() => {
|
|
133
|
-
/* finish loading suspended data */
|
|
134
|
-
});
|
|
135
|
-
/* assert on the output */
|
|
136
|
-
|
|
137
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function hz(v){Gq=v}var z5=null,Sb=null,_F=function(v){z5=v};function hb(v){{if(z5===null)return v;var b=z5(v);if(b===void 0)return v;return b.current}}function LG(v){return hb(v)}function _G(v){{if(z5===null)return v;var b=z5(v);if(b===void 0){if(v!==null&&v!==void 0&&typeof v.render==="function"){var z=hb(v.render);if(v.render!==z){var Q={$$typeof:V,render:z};if(v.displayName!==void 0)Q.displayName=v.displayName;return Q}}return v}return b.current}}function Vq(v,b){{if(z5===null)return!1;var z=v.elementType,Q=b.type,X=!1,Z=typeof Q==="object"&&Q!==null?Q.$$typeof:null;switch(v.tag){case N:{if(typeof Q==="function")X=!0;break}case F:{if(typeof Q==="function")X=!0;else if(Z===w0)X=!0;break}case j:{if(Z===V)X=!0;else if(Z===w0)X=!0;break}case p:case X0:{if(Z===H0)X=!0;else if(Z===w0)X=!0;break}default:return!1}if(X){var J=z5(z);if(J!==void 0&&J===z5(Q))return!0}return!1}}function Dq(v){{if(z5===null)return;if(typeof WeakSet!=="function")return;if(Sb===null)Sb=new WeakSet;Sb.add(v)}}var WF=function(v,b){{if(z5===null)return;var{staleFamilies:z,updatedFamilies:Q}=b;q7(),U7(function(){WG(v.current,Q,z)})}},NF=function(v,b){{if(v.context!==a4)return;q7(),U7(function(){gz(b,v,null,null)})}};function WG(v,b,z){{var{alternate:Q,child:X,sibling:Z,tag:J,type:H}=v,$=null;switch(J){case F:case X0:case N:$=H;break;case j:$=H.render;break}if(z5===null)throw Error("Expected resolveFamily to be set during hot reload.");var q=!1,O=!1;if($!==null){var k=z5($);if(k!==void 0){if(z.has(k))O=!0;else if(b.has(k))if(J===N)O=!0;else q=!0}}if(Sb!==null){if(Sb.has(v)||Q!==null&&Sb.has(Q))O=!0}if(O)v._debugNeedsRemount=!0;if(O||q){var M=E4(v,x0);if(M!==null)m6(M,v,x0,n1)}if(X!==null&&!O)WG(X,b,z);if(Z!==null)WG(Z,b,z)}}var AF=function(v,b){{var z=new Set,Q=new Set(b.map(function(X){return X.current}));return NG(v.current,Q,z),z}};function NG(v,b,z){{var{child:Q,sibling:X,tag:Z,type:J}=v,H=null;switch(Z){case F:case X0:case N:H=J;break;case j:H=J.render;break}var $=!1;if(H!==null){if(b.has(H))$=!0}if($)PF(v,z);else if(Q!==null)NG(Q,b,z);if(X!==null)NG(X,b,z)}}function PF(v,b){{var z=FF(v,b);if(z)return;var Q=v;while(!0){switch(Q.tag){case w:b.add(Q.stateNode);return;case R:b.add(Q.stateNode.containerInfo);return;case f:b.add(Q.stateNode.containerInfo);return}if(Q.return===null)throw Error("Expected to reach root first.");Q=Q.return}}}function FF(v,b){{var z=v,Q=!1;while(!0){if(z.tag===w)Q=!0,b.add(z.stateNode);else if(z.child!==null){z.child.return=z,z=z.child;continue}if(z===v)return Q;while(z.sibling===null){if(z.return===null||z.return===v)return Q;z=z.return}z.sibling.return=z.return,z=z.sibling}}return!1}var AG;{AG=!1;try{var Iq=Object.preventExtensions({})}catch(v){AG=!0}}function RF(v,b,z,Q){if(this.tag=v,this.key=z,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=b,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=Q,this.flags=g0,this.subtreeFlags=g0,this.deletions=null,this.lanes=o,this.childLanes=o,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,!AG&&typeof Object.preventExtensions==="function")Object.preventExtensions(this)}var l4=function(v,b,z,Q){return new RF(v,b,z,Q)};function PG(v){var b=v.prototype;return!!(b&&b.isReactComponent)}function MF(v){return typeof v==="function"&&!PG(v)&&v.defaultProps===void 0}function kF(v){if(typeof v==="function")return PG(v)?N:F;else if(v!==void 0&&v!==null){var b=v.$$typeof;if(b===V)return j;if(b===H0)return p}return T}function Ev(v,b){var z=v.alternate;if(z===null)z=l4(v.tag,b,v.key,v.mode),z.elementType=v.elementType,z.type=v.type,z.stateNode=v.stateNode,z._debugSource=v._debugSource,z._debugOwner=v._debugOwner,z._debugHookTypes=v._debugHookTypes,z.alternate=v,v.alternate=z;else z.pendingProps=b,z.type=v.type,z.flags=g0,z.subtreeFlags=g0,z.deletions=null,z.actualDuration=0,z.actualStartTime=-1;z.flags=v.flags&e5,z.childLanes=v.childLanes,z.lanes=v.lanes,z.child=v.child,z.memoizedProps=v.memoizedProps,z.memoizedState=v.memoizedState,z.updateQueue=v.updateQueue;var Q=v.dependencies;switch(z.dependencies=Q===null?null:{lanes:Q.lanes,firstContext:Q.firstContext},z.sibling=v.sibling,z.index=v.index,z.ref=v.ref,z.selfBaseDuration=v.selfBaseDuration,z.treeBaseDuration=v.treeBaseDuration,z._debugNeedsRemount=v._debugNeedsRemount,z.tag){case T:case F:case X0:z.type=hb(v.type);break;case N:z.type=LG(v.type);break;case j:z.type=_G(v.type);break}return z}function wF(v,b){v.flags&=e5|w6;var z=v.alternate;if(z===null)v.childLanes=o,v.lanes=b,v.child=null,v.subtreeFlags=g0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null,v.selfBaseDuration=0,v.treeBaseDuration=0;else{v.childLanes=z.childLanes,v.lanes=z.lanes,v.child=z.child,v.subtreeFlags=g0,v.deletions=null,v.memoizedProps=z.memoizedProps,v.memoizedState=z.memoizedState,v.updateQueue=z.updateQueue,v.type=z.type;var Q=z.dependencies;v.dependencies=Q===null?null:{lanes:Q.lanes,firstContext:Q.firstContext},v.selfBaseDuration=z.selfBaseDuration,v.treeBaseDuration=z.treeBaseDuration}return v}function VF(v,b,z){var Q;if(v===eQ){if(Q=G1,b===!0)Q|=L6,Q|=E5}else Q=S0;if(H5)Q|=I1;return l4(f,null,null,Q)}function FG(v,b,z,Q,X,Z){var J=T,H=v;if(typeof v==="function")if(PG(v))J=N,H=LG(H);else H=hb(H);else if(typeof v==="string")J=w;else v:switch(v){case B1:return i7(z.children,X,Z,b);case W:if(J=s,X|=L6,(X&G1)!==S0)X|=E5;break;case m:return DF(z,X,Z,b);case c:return IF(z,X,Z,b);case t:return fF(z,X,Z,b);case b0:return fq(z,X,Z,b);case D0:case W0:case Y1:case w1:case x:default:{if(typeof v==="object"&&v!==null)switch(v.$$typeof){case l:J=n;break v;case L:J=Q0;break v;case V:J=j,H=_G(H);break v;case H0:J=p;break v;case w0:J=N0,H=null;break v}var $="";{if(v===void 0||typeof v==="object"&&v!==null&&Object.keys(v).length===0)$+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var q=Q?t0(Q):null;if(q)$+=`
|
|
138
|
-
|
|
139
|
-
Check the render method of \``+q+"`."}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(v==null?v:typeof v)+"."+$))}}var O=l4(J,z,b,X);return O.elementType=v,O.type=H,O.lanes=Z,O._debugOwner=Q,O}function RG(v,b,z){var Q=null;Q=v._owner;var{type:X,key:Z,props:J}=v,H=FG(X,Z,J,Q,b,z);return H._debugSource=v._source,H._debugOwner=v._owner,H}function i7(v,b,z,Q){var X=l4(i,v,Q,b);return X.lanes=z,X}function DF(v,b,z,Q){if(typeof v.id!=="string")G('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof v.id);var X=l4(K0,v,Q,b|I1);return X.elementType=m,X.lanes=z,X.stateNode={effectDuration:0,passiveEffectDuration:0},X}function IF(v,b,z,Q){var X=l4(a,v,Q,b);return X.elementType=c,X.lanes=z,X}function fF(v,b,z,Q){var X=l4(y0,v,Q,b);return X.elementType=t,X.lanes=z,X}function fq(v,b,z,Q){var X=l4(h0,v,Q,b);X.elementType=b0,X.lanes=z;var Z={isHidden:!1};return X.stateNode=Z,X}function MG(v,b,z){var Q=l4(E,v,null,b);return Q.lanes=z,Q}function EF(){var v=l4(w,null,null,S0);return v.elementType="DELETED",v}function TF(v){var b=l4(z1,null,null,S0);return b.stateNode=v,b}function kG(v,b,z){var Q=v.children!==null?v.children:[],X=l4(R,Q,v.key,b);return X.lanes=z,X.stateNode={containerInfo:v.containerInfo,pendingChildren:null,implementation:v.implementation},X}function Eq(v,b){if(v===null)v=l4(T,null,null,S0);return v.tag=b.tag,v.key=b.key,v.elementType=b.elementType,v.type=b.type,v.stateNode=b.stateNode,v.return=b.return,v.child=b.child,v.sibling=b.sibling,v.index=b.index,v.ref=b.ref,v.pendingProps=b.pendingProps,v.memoizedProps=b.memoizedProps,v.updateQueue=b.updateQueue,v.memoizedState=b.memoizedState,v.dependencies=b.dependencies,v.mode=b.mode,v.flags=b.flags,v.subtreeFlags=b.subtreeFlags,v.deletions=b.deletions,v.lanes=b.lanes,v.childLanes=b.childLanes,v.alternate=b.alternate,v.actualDuration=b.actualDuration,v.actualStartTime=b.actualStartTime,v.selfBaseDuration=b.selfBaseDuration,v.treeBaseDuration=b.treeBaseDuration,v._debugSource=b._debugSource,v._debugOwner=b._debugOwner,v._debugNeedsRemount=b._debugNeedsRemount,v._debugHookTypes=b._debugHookTypes,v}function CF(v,b,z,Q,X){this.tag=b,this.containerInfo=v,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=ZY,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=l6,this.eventTimes=VJ(o),this.expirationTimes=VJ(n1),this.pendingLanes=o,this.suspendedLanes=o,this.pingedLanes=o,this.expiredLanes=o,this.mutableReadLanes=o,this.finishedLanes=o,this.entangledLanes=o,this.entanglements=VJ(o),this.identifierPrefix=Q,this.onRecoverableError=X,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;var Z=this.pendingUpdatersLaneMap=[];for(var J=0;J<XJ;J++)Z.push(new Set)}switch(b){case eQ:this._debugRootType=z?"hydrateRoot()":"createRoot()";break;case S7:this._debugRootType=z?"hydrate()":"render()";break}}function Tq(v,b,z,Q,X,Z,J,H,$,q){var O=new CF(v,b,z,H,$),k=VF(b,Z);O.current=k,k.stateNode=O;{var M={element:Q,isDehydrated:z,cache:null,transitions:null,pendingSuspenseBoundaries:null};k.memoizedState=M}return gY(k),O}var wG="18.3.1";function SF(v,b,z){var Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return N6(Q),{$$typeof:u1,key:Q==null?null:""+Q,children:v,containerInfo:b,implementation:z}}var VG,DG;VG=!1,DG={};function Cq(v){if(!v)return a4;var b=nv(v),z=UN(b);if(b.tag===N){var Q=b.type;if(S5(Q))return ZK(b,Q,z)}return z}function hF(v,b){{var z=nv(v);if(z===void 0)if(typeof v.render==="function")throw Error("Unable to find node on an unmounted component.");else{var Q=Object.keys(v).join(",");throw Error("Argument appears to not be a ReactComponent. Keys: "+Q)}var X=D$(z);if(X===null)return null;if(X.mode&L6){var Z=t0(z)||"Component";if(!DG[Z]){DG[Z]=!0;var J=$4;try{if(U6(X),z.mode&L6)G("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",b,b,Z);else G("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",b,b,Z)}finally{if(J)U6(J);else c6()}}}return X.stateNode}}function Sq(v,b,z,Q,X,Z,J,H){var $=!1,q=null;return Tq(v,b,$,q,z,Q,X,Z,J)}function hq(v,b,z,Q,X,Z,J,H,$,q){var O=!0,k=Tq(z,Q,O,v,X,Z,J,H,$);k.context=Cq(null);var M=k.current,S=M4(),h=l7(M),g=H7(S,h);return g.callback=b!==void 0&&b!==null?b:null,u7(M,g,h),cP(k,h,S),k}function gz(v,b,z,Q){ZO(b,v);var X=b.current,Z=M4(),J=l7(X);kO(J);var H=Cq(z);if(b.context===null)b.context=H;else b.pendingContext=H;if(e7&&$4!==null&&!VG)VG=!0,G(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
140
|
-
|
|
141
|
-
Check the render method of %s.`,t0($4)||"Unknown");var $=H7(Z,J);if($.payload={element:v},Q=Q===void 0?null:Q,Q!==null){if(typeof Q!=="function")G("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Q);$.callback=Q}var q=u7(X,$,J);if(q!==null)m6(q,X,J,Z),BX(q,X,J);return J}function ZZ(v){var b=v.current;if(!b.child)return null;switch(b.child.tag){case w:return zY(b.child.stateNode);default:return b.child.stateNode}}function gF(v){switch(v.tag){case f:{var b=v.stateNode;if(RQ(b)){var z=SO(b);oP(b,z)}break}case a:{U7(function(){var X=E4(v,x0);if(X!==null){var Z=M4();m6(X,v,x0,Z)}});var Q=x0;IG(v,Q);break}}}function gq(v,b){var z=v.memoizedState;if(z!==null&&z.dehydrated!==null)z.retryLane=jO(z.retryLane,b)}function IG(v,b){gq(v,b);var z=v.alternate;if(z)gq(z,b)}function uF(v){if(v.tag!==a)return;var b=P8,z=E4(v,b);if(z!==null){var Q=M4();m6(z,v,b,Q)}IG(v,b)}function mF(v){if(v.tag!==a)return;var b=l7(v),z=E4(v,b);if(z!==null){var Q=M4();m6(z,v,b,Q)}IG(v,b)}function uq(v){var b=n9(v);if(b===null)return null;return b.stateNode}var mq=function(v){return null};function dF(v){return mq(v)}var dq=function(v){return!1};function jF(v){return dq(v)}var jq=null,yq=null,cq=null,xq=null,aq=null,lq=null,oq=null,iq=null,pq=null;{var rq=function(v,b,z){var Q=b[z],X=_1(v)?v.slice():e0({},v);if(z+1===b.length){if(_1(X))X.splice(Q,1);else delete X[Q];return X}return X[Q]=rq(v[Q],b,z+1),X},nq=function(v,b){return rq(v,b,0)},tq=function(v,b,z,Q){var X=b[Q],Z=_1(v)?v.slice():e0({},v);if(Q+1===b.length){var J=z[Q];if(Z[J]=Z[X],_1(Z))Z.splice(X,1);else delete Z[X]}else Z[X]=tq(v[X],b,z,Q+1);return Z},sq=function(v,b,z){if(b.length!==z.length){_("copyWithRename() expects paths of the same length");return}else for(var Q=0;Q<z.length-1;Q++)if(b[Q]!==z[Q]){_("copyWithRename() expects paths to be the same except for the deepest key");return}return tq(v,b,z,0)},eq=function(v,b,z,Q){if(z>=b.length)return Q;var X=b[z],Z=_1(v)?v.slice():e0({},v);return Z[X]=eq(v[X],b,z+1,Q),Z},vB=function(v,b,z){return eq(v,b,0,z)},fG=function(v,b){var z=v.memoizedState;while(z!==null&&b>0)z=z.next,b--;return z};jq=function(v,b,z,Q){var X=fG(v,b);if(X!==null){var Z=vB(X.memoizedState,z,Q);X.memoizedState=Z,X.baseState=Z,v.memoizedProps=e0({},v.memoizedProps);var J=E4(v,x0);if(J!==null)m6(J,v,x0,n1)}},yq=function(v,b,z){var Q=fG(v,b);if(Q!==null){var X=nq(Q.memoizedState,z);Q.memoizedState=X,Q.baseState=X,v.memoizedProps=e0({},v.memoizedProps);var Z=E4(v,x0);if(Z!==null)m6(Z,v,x0,n1)}},cq=function(v,b,z,Q){var X=fG(v,b);if(X!==null){var Z=sq(X.memoizedState,z,Q);X.memoizedState=Z,X.baseState=Z,v.memoizedProps=e0({},v.memoizedProps);var J=E4(v,x0);if(J!==null)m6(J,v,x0,n1)}},xq=function(v,b,z){if(v.pendingProps=vB(v.memoizedProps,b,z),v.alternate)v.alternate.pendingProps=v.pendingProps;var Q=E4(v,x0);if(Q!==null)m6(Q,v,x0,n1)},aq=function(v,b){if(v.pendingProps=nq(v.memoizedProps,b),v.alternate)v.alternate.pendingProps=v.pendingProps;var z=E4(v,x0);if(z!==null)m6(z,v,x0,n1)},lq=function(v,b,z){if(v.pendingProps=sq(v.memoizedProps,b,z),v.alternate)v.alternate.pendingProps=v.pendingProps;var Q=E4(v,x0);if(Q!==null)m6(Q,v,x0,n1)},oq=function(v){var b=E4(v,x0);if(b!==null)m6(b,v,x0,n1)},iq=function(v){mq=v},pq=function(v){dq=v}}function yF(v){var b=D$(v);if(b===null)return null;return b.stateNode}function cF(v){return null}function xF(){return $4}function aF(v){var b=v.findFiberByHostInstance,z=Y.ReactCurrentDispatcher;return XO({bundleType:v.bundleType,version:v.version,rendererPackageName:v.rendererPackageName,rendererConfig:v.rendererConfig,overrideHookState:jq,overrideHookStateDeletePath:yq,overrideHookStateRenamePath:cq,overrideProps:xq,overridePropsDeletePath:aq,overridePropsRenamePath:lq,setErrorHandler:iq,setSuspenseHandler:pq,scheduleUpdate:oq,currentDispatcherRef:z,findHostInstanceByFiber:yF,findFiberByHostInstance:b||cF,findHostInstancesForRefresh:AF,scheduleRefresh:WF,scheduleRoot:NF,setRefreshHandler:_F,getCurrentFiber:xF,reconcilerVersion:wG})}var bB=typeof reportError==="function"?reportError:function(v){console.error(v)};function EG(v){this._internalRoot=v}JZ.prototype.render=EG.prototype.render=function(v){var b=this._internalRoot;if(b===null)throw Error("Cannot update an unmounted root.");{if(typeof arguments[1]==="function")G("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");else if(YZ(arguments[1]))G("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.");else if(typeof arguments[1]<"u")G("You passed a second argument to root.render(...) but it only accepts one argument.");var z=b.containerInfo;if(z.nodeType!==k6){var Q=uq(b.current);if(Q){if(Q.parentNode!==z)G("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}}gz(v,b,null,null)},JZ.prototype.unmount=EG.prototype.unmount=function(){if(typeof arguments[0]==="function")G("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var v=this._internalRoot;if(v!==null){this._internalRoot=null;var b=v.containerInfo;if(qq())G("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.");U7(function(){gz(null,v,null,null)}),e3(b)}};function lF(v,b){if(!YZ(v))throw Error("createRoot(...): Target container is not a DOM element.");zB(v);var z=!1,Q=!1,X="",Z=bB,J=null;if(b!==null&&b!==void 0){if(b.hydrate)_("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.");else if(typeof b==="object"&&b!==null&&b.$$typeof===k1)G(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
142
|
-
|
|
143
|
-
let root = createRoot(domContainer);
|
|
144
|
-
root.render(<App />);`);if(b.unstable_strictMode===!0)z=!0;if(b.identifierPrefix!==void 0)X=b.identifierPrefix;if(b.onRecoverableError!==void 0)Z=b.onRecoverableError;if(b.transitionCallbacks!==void 0)J=b.transitionCallbacks}var H=Sq(v,eQ,null,z,Q,X,Z);oQ(H.current,v);var $=v.nodeType===k6?v.parentNode:v;return c8($),new EG(H)}function JZ(v){this._internalRoot=v}function oF(v){if(v)QL(v)}JZ.prototype.unstable_scheduleHydration=oF;function iF(v,b,z){if(!YZ(v))throw Error("hydrateRoot(...): Target container is not a DOM element.");if(zB(v),b===void 0)G("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Q=z!=null?z:null,X=z!=null&&z.hydratedSources||null,Z=!1,J=!1,H="",$=bB;if(z!==null&&z!==void 0){if(z.unstable_strictMode===!0)Z=!0;if(z.identifierPrefix!==void 0)H=z.identifierPrefix;if(z.onRecoverableError!==void 0)$=z.onRecoverableError}var q=hq(b,null,v,eQ,Q,Z,J,H,$);if(oQ(q.current,v),c8(v),X)for(var O=0;O<X.length;O++){var k=X[O];iN(q,k)}return new JZ(q)}function YZ(v){return!!(v&&(v.nodeType===I4||v.nodeType===r5||v.nodeType===gZ||!u0))}function uz(v){return!!(v&&(v.nodeType===I4||v.nodeType===r5||v.nodeType===gZ||v.nodeType===k6&&v.nodeValue===" react-mount-point-unstable "))}function zB(v){{if(v.nodeType===I4&&v.tagName&&v.tagName.toUpperCase()==="BODY")G("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app.");if(e8(v))if(v._reactRootContainer)G("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.");else G("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.")}}var pF=Y.ReactCurrentOwner,QB;QB=function(v){if(v._reactRootContainer&&v.nodeType!==k6){var b=uq(v._reactRootContainer.current);if(b){if(b.parentNode!==v)G("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}}var z=!!v._reactRootContainer,Q=TG(v),X=!!(Q&&T7(Q));if(X&&!z)G("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render.");if(v.nodeType===I4&&v.tagName&&v.tagName.toUpperCase()==="BODY")G("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function TG(v){if(!v)return null;if(v.nodeType===r5)return v.documentElement;else return v.firstChild}function XB(){}function rF(v,b,z,Q,X){if(X){if(typeof Q==="function"){var Z=Q;Q=function(){var M=ZZ(J);Z.call(M)}}var J=hq(b,Q,v,S7,null,!1,!1,"",XB);v._reactRootContainer=J,oQ(J.current,v);var H=v.nodeType===k6?v.parentNode:v;return c8(H),U7(),J}else{var $;while($=v.lastChild)v.removeChild($);if(typeof Q==="function"){var q=Q;Q=function(){var M=ZZ(O);q.call(M)}}var O=Sq(v,S7,null,!1,!1,"",XB);v._reactRootContainer=O,oQ(O.current,v);var k=v.nodeType===k6?v.parentNode:v;return c8(k),U7(function(){gz(b,O,z,Q)}),O}}function nF(v,b){if(v!==null&&typeof v!=="function")G("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,v)}function HZ(v,b,z,Q,X){QB(z),nF(X===void 0?null:X,"render");var Z=z._reactRootContainer,J;if(!Z)J=rF(z,b,v,X,Q);else{if(J=Z,typeof X==="function"){var H=X;X=function(){var $=ZZ(J);H.call($)}}gz(b,J,v,X)}return ZZ(J)}var ZB=!1;function tF(v){{if(!ZB)ZB=!0,G("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node");var b=pF.current;if(b!==null&&b.stateNode!==null){var z=b.stateNode._warnedAboutRefsInRender;if(!z)G("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",q1(b.type)||"A component");b.stateNode._warnedAboutRefsInRender=!0}}if(v==null)return null;if(v.nodeType===I4)return v;return hF(v,"findDOMNode")}function sF(v,b,z){if(G("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!uz(b))throw Error("Target container is not a DOM element.");{var Q=e8(b)&&b._reactRootContainer===void 0;if(Q)G("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return HZ(null,v,b,!0,z)}function eF(v,b,z){if(G("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!uz(b))throw Error("Target container is not a DOM element.");{var Q=e8(b)&&b._reactRootContainer===void 0;if(Q)G("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return HZ(null,v,b,!1,z)}function vR(v,b,z,Q){if(G("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!uz(z))throw Error("Target container is not a DOM element.");if(v==null||!x9(v))throw Error("parentComponent must be a valid React Component");return HZ(v,b,z,!1,Q)}var JB=!1;function bR(v){if(!JB)JB=!0,G("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot");if(!uz(v))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var b=e8(v)&&v._reactRootContainer===void 0;if(b)G("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(v._reactRootContainer){{var z=TG(v),Q=z&&!T7(z);if(Q)G("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return U7(function(){HZ(null,null,v,!1,function(){v._reactRootContainer=null,e3(v)})}),!0}else{{var X=TG(v),Z=!!(X&&T7(X)),J=v.nodeType===I4&&uz(v.parentNode)&&!!v.parentNode._reactRootContainer;if(Z)G("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",J?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}if(iO(gF),rO(uF),nO(mF),tO(G5),sO(aO),typeof Map!=="function"||Map.prototype==null||typeof Map.prototype.forEach!=="function"||typeof Set!=="function"||Set.prototype==null||typeof Set.prototype.clear!=="function"||typeof Set.prototype.forEach!=="function")G("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills");T9(e_),h9(GG,iP,U7);function zR(v,b){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!YZ(b))throw Error("Target container is not a DOM element.");return SF(v,b,null,z)}function QR(v,b,z,Q){return vR(v,b,z,Q)}var CG={usingClientEntryPoint:!1,Events:[T7,Ub,iQ,L$,_$,GG]};function XR(v,b){if(!CG.usingClientEntryPoint)G('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return lF(v,b)}function ZR(v,b,z){if(!CG.usingClientEntryPoint)G('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return iF(v,b,z)}function JR(v){if(qq())G("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.");return U7(v)}var YR=aF({findFiberByHostInstance:Lv,bundleType:1,version:wG,rendererPackageName:"react-dom"});if(!YR&&i1&&window.top===window.self){if(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1){var YB=window.location.protocol;if(/^(https?|file):$/.test(YB))console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(YB==="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(LR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=CG,LR.createPortal=zR,LR.createRoot=XR,LR.findDOMNode=tF,LR.flushSync=JR,LR.hydrate=sF,LR.hydrateRoot=ZR,LR.render=eF,LR.unmountComponentAtNode=bR,LR.unstable_batchedUpdates=GG,LR.unstable_renderSubtreeIntoContainer=QR,LR.version=wG,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var UB=Tv((_k,KB)=>{var _R=z0($B());KB.exports=_R});var qB=Tv((WR)=>{var mb=z0(UB());ub=mb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,WR.createRoot=function(Y,U){ub.usingClientEntryPoint=!0;try{return mb.createRoot(Y,U)}finally{ub.usingClientEntryPoint=!1}},WR.hydrateRoot=function(Y,U,B){ub.usingClientEntryPoint=!0;try{return mb.hydrateRoot(Y,U,B)}finally{ub.usingClientEntryPoint=!1}};var ub});var V1=Tv((NR)=>{var uG=z0(X6());(function(){var Y=Symbol.for("react.element"),U=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),F=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),i=Symbol.iterator,s="@@iterator";function Q0(W){if(W===null||typeof W!=="object")return null;var m=i&&W[i]||W[s];if(typeof m==="function")return m;return null}var n=uG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(W){{for(var m=arguments.length,l=Array(m>1?m-1:0),L=1;L<m;L++)l[L-1]=arguments[L];K0("error",W,l)}}function K0(W,m,l){{var L=n.ReactDebugCurrentFrame,V=L.getStackAddendum();if(V!=="")m+="%s",l=l.concat([V]);var c=l.map(function(t){return String(t)});c.unshift("Warning: "+m),Function.prototype.apply.call(console[W],console,c)}}var a=!1,p=!1,X0=!1,N0=!1,n0=!1,z1;z1=Symbol.for("react.module.reference");function y0(W){if(typeof W==="string"||typeof W==="function")return!0;if(W===B||W===G||n0||W===_||W===T||W===f||N0||W===E||a||p||X0)return!0;if(typeof W==="object"&&W!==null){if(W.$$typeof===w||W.$$typeof===R||W.$$typeof===P||W.$$typeof===F||W.$$typeof===N||W.$$typeof===z1||W.getModuleId!==void 0)return!0}return!1}function A0(W,m,l){var L=W.displayName;if(L)return L;var V=m.displayName||m.name||"";return V!==""?l+"("+V+")":l}function h0(W){return W.displayName||"Context"}function e(W){if(W==null)return null;if(typeof W.tag==="number")j("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 B:return"Fragment";case U:return"Portal";case G:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case f:return"SuspenseList"}if(typeof W==="object")switch(W.$$typeof){case F:var m=W;return h0(m)+".Consumer";case P:var l=W;return h0(l._context)+".Provider";case N:return A0(W,W.render,"ForwardRef");case R:var L=W.displayName||null;if(L!==null)return L;return e(W.type)||"Memo";case w:{var V=W,c=V._payload,t=V._init;try{return e(t(c))}catch(H0){return null}}}return null}var Z0=Object.assign,k0=0,L0,v1,F6,t1,d1,u0,Q1;function R1(){}R1.__reactDisabledLog=!0;function $6(){{if(k0===0){L0=console.log,v1=console.info,F6=console.warn,t1=console.error,d1=console.group,u0=console.groupCollapsed,Q1=console.groupEnd;var W={configurable:!0,enumerable:!0,value:R1,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}k0++}}function s1(){{if(k0--,k0===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z0({},W,{value:L0}),info:Z0({},W,{value:v1}),warn:Z0({},W,{value:F6}),error:Z0({},W,{value:t1}),group:Z0({},W,{value:d1}),groupCollapsed:Z0({},W,{value:u0}),groupEnd:Z0({},W,{value:Q1})})}if(k0<0)j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var o1=n.ReactCurrentDispatcher,K6;function C1(W,m,l){{if(K6===void 0)try{throw Error()}catch(V){var L=V.stack.trim().match(/\n( *(at )?)/);K6=L&&L[1]||""}return`
|
|
146
|
-
`+K6+W}}var h1=!1,e1;{var D6=typeof WeakMap==="function"?WeakMap:Map;e1=new D6}function i1(W,m){if(!W||h1)return"";{var l=e1.get(W);if(l!==void 0)return l}var L;h1=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=o1.current,o1.current=null,$6();try{if(m){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(w1){L=w1}Reflect.construct(W,[],t)}else{try{t.call()}catch(w1){L=w1}W.call(t.prototype)}}else{try{throw Error()}catch(w1){L=w1}W()}}catch(w1){if(w1&&L&&typeof w1.stack==="string"){var H0=w1.stack.split(`
|
|
147
|
-
`),w0=L.stack.split(`
|
|
148
|
-
`),W0=H0.length-1,x=w0.length-1;while(W0>=1&&x>=0&&H0[W0]!==w0[x])x--;for(;W0>=1&&x>=0;W0--,x--)if(H0[W0]!==w0[x]){if(W0!==1||x!==1)do if(W0--,x--,x<0||H0[W0]!==w0[x]){var b0=`
|
|
149
|
-
`+H0[W0].replace(" at new "," at ");if(W.displayName&&b0.includes("<anonymous>"))b0=b0.replace("<anonymous>",W.displayName);if(typeof W==="function")e1.set(W,b0);return b0}while(W0>=1&&x>=0);break}}}finally{h1=!1,o1.current=c,s1(),Error.prepareStackTrace=V}var D0=W?W.displayName||W.name:"",Y1=D0?C1(D0):"";if(typeof W==="function")e1.set(W,Y1);return Y1}function I6(W,m,l){return i1(W,!1)}function f6(W){var m=W.prototype;return!!(m&&m.isReactComponent)}function g1(W,m,l){if(W==null)return"";if(typeof W==="function")return i1(W,f6(W));if(typeof W==="string")return C1(W);switch(W){case T:return C1("Suspense");case f:return C1("SuspenseList")}if(typeof W==="object")switch(W.$$typeof){case N:return I6(W.render);case R:return g1(W.type,m,l);case w:{var L=W,V=L._payload,c=L._init;try{return g1(c(V),m,l)}catch(t){}}}return""}var o0=Object.prototype.hasOwnProperty,R6={},N6=n.ReactDebugCurrentFrame;function v6(W){if(W){var m=W._owner,l=g1(W.type,W._source,m?m.type:null);N6.setExtraStackFrame(l)}else N6.setExtraStackFrame(null)}function J6(W,m,l,L,V){{var c=Function.call.bind(o0);for(var t in W)if(c(W,t)){var H0=void 0;try{if(typeof W[t]!=="function"){var w0=Error((L||"React class")+": "+l+" 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 w0.name="Invariant Violation",w0}H0=W[t](m,t,L,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W0){H0=W0}if(H0&&!(H0 instanceof Error))v6(V),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).",L||"React class",l,t,typeof H0),v6(null);if(H0 instanceof Error&&!(H0.message in R6))R6[H0.message]=!0,v6(V),j("Failed %s type: %s",l,H0.message),v6(null)}}}var X5=Array.isArray;function j1(W){return X5(W)}function i6(W){{var m=typeof Symbol==="function"&&Symbol.toStringTag,l=m&&W[Symbol.toStringTag]||W.constructor.name||"Object";return l}}function y1(W){try{return p6(W),!1}catch(m){return!0}}function p6(W){return""+W}function p1(W){if(y1(W))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",i6(W)),p6(W)}var b6=n.ReactCurrentOwner,j6={key:!0,ref:!0,__self:!0,__source:!0},H4,B6,M6;M6={};function J0(W){if(o0.call(W,"ref")){var m=Object.getOwnPropertyDescriptor(W,"ref").get;if(m&&m.isReactWarning)return!1}return W.ref!==void 0}function f0(W){if(o0.call(W,"key")){var m=Object.getOwnPropertyDescriptor(W,"key").get;if(m&&m.isReactWarning)return!1}return W.key!==void 0}function C0(W,m){if(typeof W.ref==="string"&&b6.current&&m&&b6.current.stateNode!==m){var l=e(b6.current.type);if(!M6[l])j('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(b6.current.type),W.ref),M6[l]=!0}}function K1(W,m){{var l=function(){if(!H4)H4=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m)};l.isReactWarning=!0,Object.defineProperty(W,"key",{get:l,configurable:!0})}}function M1(W,m){{var l=function(){if(!B6)B6=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m)};l.isReactWarning=!0,Object.defineProperty(W,"ref",{get:l,configurable:!0})}}var Y6=function(W,m,l,L,V,c,t){var H0={$$typeof:Y,type:W,key:m,ref:l,props:t,_owner:c};if(H0._store={},Object.defineProperty(H0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(H0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(H0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze)Object.freeze(H0.props),Object.freeze(H0);return H0};function S1(W,m,l,L,V){{var c,t={},H0=null,w0=null;if(l!==void 0)p1(l),H0=""+l;if(f0(m))p1(m.key),H0=""+m.key;if(J0(m))w0=m.ref,C0(m,V);for(c in m)if(o0.call(m,c)&&!j6.hasOwnProperty(c))t[c]=m[c];if(W&&W.defaultProps){var W0=W.defaultProps;for(c in W0)if(t[c]===void 0)t[c]=W0[c]}if(H0||w0){var x=typeof W==="function"?W.displayName||W.name||"Unknown":W;if(H0)K1(t,x);if(w0)M1(t,x)}return Y6(W,H0,w0,V,L,b6.current,t)}}var{ReactCurrentOwner:A6,ReactDebugCurrentFrame:r0}=n;function i0(W){if(W){var m=W._owner,l=g1(W.type,W._source,m?m.type:null);r0.setExtraStackFrame(l)}else r0.setExtraStackFrame(null)}var _4=!1;function y6(W){return typeof W==="object"&&W!==null&&W.$$typeof===Y}function W4(){{if(A6.current){var W=e(A6.current.type);if(W)return`
|
|
150
|
-
|
|
151
|
-
Check the render method of \``+W+"`."}return""}}function w5(W){{if(W!==void 0){var m=W.fileName.replace(/^.*[\\\/]/,""),l=W.lineNumber;return`
|
|
152
|
-
|
|
153
|
-
Check your code at `+m+":"+l+"."}return""}}var Z5={};function V5(W){{var m=W4();if(!m){var l=typeof W==="string"?W:W.displayName||W.name;if(l)m=`
|
|
154
|
-
|
|
155
|
-
Check the top-level render call using <`+l+">."}return m}}function p4(W,m){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var l=V5(m);if(Z5[l])return;Z5[l]=!0;var L="";if(W&&W._owner&&W._owner!==A6.current)L=" It was passed a child from "+e(W._owner.type)+".";i0(W),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,L),i0(null)}}function G4(W,m){{if(typeof W!=="object")return;if(j1(W))for(var l=0;l<W.length;l++){var L=W[l];if(y6(L))p4(L,m)}else if(y6(W)){if(W._store)W._store.validated=!0}else if(W){var V=Q0(W);if(typeof V==="function"){if(V!==W.entries){var c=V.call(W),t;while(!(t=c.next()).done)if(y6(t.value))p4(t.value,m)}}}}}function J5(W){{var m=W.type;if(m===null||m===void 0||typeof m==="string")return;var l;if(typeof m==="function")l=m.propTypes;else if(typeof m==="object"&&(m.$$typeof===N||m.$$typeof===R))l=m.propTypes;else return;if(l){var L=e(m);J6(l,W.props,"prop",L,W)}else if(m.PropTypes!==void 0&&!_4){_4=!0;var V=e(m);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}if(typeof m.getDefaultProps==="function"&&!m.getDefaultProps.isReactClassApproved)j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function J1(W){{var m=Object.keys(W.props);for(var l=0;l<m.length;l++){var L=m[l];if(L!=="children"&&L!=="key"){i0(W),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),i0(null);break}}if(W.ref!==null)i0(W),j("Invalid attribute `ref` supplied to `React.Fragment`."),i0(null)}}var k1={};function u1(W,m,l,L,V,c){{var t=y0(W);if(!t){var H0="";if(W===void 0||typeof W==="object"&&W!==null&&Object.keys(W).length===0)H0+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var w0=w5(V);if(w0)H0+=w0;else H0+=W4();var W0;if(W===null)W0="null";else if(j1(W))W0="array";else if(W!==void 0&&W.$$typeof===Y)W0="<"+(e(W.type)||"Unknown")+" />",H0=" Did you accidentally export a JSX literal instead of a component?";else W0=typeof W;j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",W0,H0)}var x=S1(W,m,l,V,c);if(x==null)return x;if(t){var b0=m.children;if(b0!==void 0)if(L)if(j1(b0)){for(var D0=0;D0<b0.length;D0++)G4(b0[D0],W);if(Object.freeze)Object.freeze(b0)}else j("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 G4(b0,W)}if(o0.call(m,"key")){var Y1=e(W),w1=Object.keys(m).filter(function(r1){return r1!=="key"}),N4=w1.length>0?"{key: someKey, "+w1.join(": ..., ")+": ...}":"{key: someKey}";if(!k1[Y1+N4]){var u4=w1.length>0?"{"+w1.join(": ..., ")+": ...}":"{}";j(`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} />`,N4,Y1,u4,Y1),k1[Y1+N4]=!0}}if(W===B)J1(x);else J5(x);return x}}var B1=u1;NR.Fragment=B,NR.jsxDEV=B1})()});var l1=Tv((JM)=>{var cG=z0(X6());(function(){var Y=Symbol.for("react.element"),U=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),F=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),i=Symbol.iterator,s="@@iterator";function Q0(L){if(L===null||typeof L!=="object")return null;var V=i&&L[i]||L[s];if(typeof V==="function")return V;return null}var n=cG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(L){{for(var V=arguments.length,c=Array(V>1?V-1:0),t=1;t<V;t++)c[t-1]=arguments[t];K0("error",L,c)}}function K0(L,V,c){{var t=n.ReactDebugCurrentFrame,H0=t.getStackAddendum();if(H0!=="")V+="%s",c=c.concat([H0]);var w0=c.map(function(W0){return String(W0)});w0.unshift("Warning: "+V),Function.prototype.apply.call(console[L],console,w0)}}var a=!1,p=!1,X0=!1,N0=!1,n0=!1,z1;z1=Symbol.for("react.module.reference");function y0(L){if(typeof L==="string"||typeof L==="function")return!0;if(L===B||L===G||n0||L===_||L===T||L===f||N0||L===E||a||p||X0)return!0;if(typeof L==="object"&&L!==null){if(L.$$typeof===w||L.$$typeof===R||L.$$typeof===P||L.$$typeof===F||L.$$typeof===N||L.$$typeof===z1||L.getModuleId!==void 0)return!0}return!1}function A0(L,V,c){var t=L.displayName;if(t)return t;var H0=V.displayName||V.name||"";return H0!==""?c+"("+H0+")":c}function h0(L){return L.displayName||"Context"}function e(L){if(L==null)return null;if(typeof L.tag==="number")j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof L==="function")return L.displayName||L.name||null;if(typeof L==="string")return L;switch(L){case B:return"Fragment";case U:return"Portal";case G:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case f:return"SuspenseList"}if(typeof L==="object")switch(L.$$typeof){case F:var V=L;return h0(V)+".Consumer";case P:var c=L;return h0(c._context)+".Provider";case N:return A0(L,L.render,"ForwardRef");case R:var t=L.displayName||null;if(t!==null)return t;return e(L.type)||"Memo";case w:{var H0=L,w0=H0._payload,W0=H0._init;try{return e(W0(w0))}catch(x){return null}}}return null}var Z0=Object.assign,k0=0,L0,v1,F6,t1,d1,u0,Q1;function R1(){}R1.__reactDisabledLog=!0;function $6(){{if(k0===0){L0=console.log,v1=console.info,F6=console.warn,t1=console.error,d1=console.group,u0=console.groupCollapsed,Q1=console.groupEnd;var L={configurable:!0,enumerable:!0,value:R1,writable:!0};Object.defineProperties(console,{info:L,log:L,warn:L,error:L,group:L,groupCollapsed:L,groupEnd:L})}k0++}}function s1(){{if(k0--,k0===0){var L={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z0({},L,{value:L0}),info:Z0({},L,{value:v1}),warn:Z0({},L,{value:F6}),error:Z0({},L,{value:t1}),group:Z0({},L,{value:d1}),groupCollapsed:Z0({},L,{value:u0}),groupEnd:Z0({},L,{value:Q1})})}if(k0<0)j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var o1=n.ReactCurrentDispatcher,K6;function C1(L,V,c){{if(K6===void 0)try{throw Error()}catch(H0){var t=H0.stack.trim().match(/\n( *(at )?)/);K6=t&&t[1]||""}return`
|
|
161
|
-
`+K6+L}}var h1=!1,e1;{var D6=typeof WeakMap==="function"?WeakMap:Map;e1=new D6}function i1(L,V){if(!L||h1)return"";{var c=e1.get(L);if(c!==void 0)return c}var t;h1=!0;var H0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w0;w0=o1.current,o1.current=null,$6();try{if(V){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 x=r1.stack.split(`
|
|
162
|
-
`),b0=t.stack.split(`
|
|
163
|
-
`),D0=x.length-1,Y1=b0.length-1;while(D0>=1&&Y1>=0&&x[D0]!==b0[Y1])Y1--;for(;D0>=1&&Y1>=0;D0--,Y1--)if(x[D0]!==b0[Y1]){if(D0!==1||Y1!==1)do if(D0--,Y1--,Y1<0||x[D0]!==b0[Y1]){var w1=`
|
|
164
|
-
`+x[D0].replace(" at new "," at ");if(L.displayName&&w1.includes("<anonymous>"))w1=w1.replace("<anonymous>",L.displayName);if(typeof L==="function")e1.set(L,w1);return w1}while(D0>=1&&Y1>=0);break}}}finally{h1=!1,o1.current=w0,s1(),Error.prepareStackTrace=H0}var N4=L?L.displayName||L.name:"",u4=N4?C1(N4):"";if(typeof L==="function")e1.set(L,u4);return u4}function I6(L,V,c){return i1(L,!1)}function f6(L){var V=L.prototype;return!!(V&&V.isReactComponent)}function g1(L,V,c){if(L==null)return"";if(typeof L==="function")return i1(L,f6(L));if(typeof L==="string")return C1(L);switch(L){case T:return C1("Suspense");case f:return C1("SuspenseList")}if(typeof L==="object")switch(L.$$typeof){case N:return I6(L.render);case R:return g1(L.type,V,c);case w:{var t=L,H0=t._payload,w0=t._init;try{return g1(w0(H0),V,c)}catch(W0){}}}return""}var o0=Object.prototype.hasOwnProperty,R6={},N6=n.ReactDebugCurrentFrame;function v6(L){if(L){var V=L._owner,c=g1(L.type,L._source,V?V.type:null);N6.setExtraStackFrame(c)}else N6.setExtraStackFrame(null)}function J6(L,V,c,t,H0){{var w0=Function.call.bind(o0);for(var W0 in L)if(w0(L,W0)){var x=void 0;try{if(typeof L[W0]!=="function"){var b0=Error((t||"React class")+": "+c+" 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 b0.name="Invariant Violation",b0}x=L[W0](V,W0,t,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D0){x=D0}if(x&&!(x instanceof Error))v6(H0),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).",t||"React class",c,W0,typeof x),v6(null);if(x instanceof Error&&!(x.message in R6))R6[x.message]=!0,v6(H0),j("Failed %s type: %s",c,x.message),v6(null)}}}var X5=Array.isArray;function j1(L){return X5(L)}function i6(L){{var V=typeof Symbol==="function"&&Symbol.toStringTag,c=V&&L[Symbol.toStringTag]||L.constructor.name||"Object";return c}}function y1(L){try{return p6(L),!1}catch(V){return!0}}function p6(L){return""+L}function p1(L){if(y1(L))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",i6(L)),p6(L)}var b6=n.ReactCurrentOwner,j6={key:!0,ref:!0,__self:!0,__source:!0},H4,B6,M6;M6={};function J0(L){if(o0.call(L,"ref")){var V=Object.getOwnPropertyDescriptor(L,"ref").get;if(V&&V.isReactWarning)return!1}return L.ref!==void 0}function f0(L){if(o0.call(L,"key")){var V=Object.getOwnPropertyDescriptor(L,"key").get;if(V&&V.isReactWarning)return!1}return L.key!==void 0}function C0(L,V){if(typeof L.ref==="string"&&b6.current&&V&&b6.current.stateNode!==V){var c=e(b6.current.type);if(!M6[c])j('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(b6.current.type),L.ref),M6[c]=!0}}function K1(L,V){{var c=function(){if(!H4)H4=!0,j("%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)",V)};c.isReactWarning=!0,Object.defineProperty(L,"key",{get:c,configurable:!0})}}function M1(L,V){{var c=function(){if(!B6)B6=!0,j("%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)",V)};c.isReactWarning=!0,Object.defineProperty(L,"ref",{get:c,configurable:!0})}}var Y6=function(L,V,c,t,H0,w0,W0){var x={$$typeof:Y,type:L,key:V,ref:c,props:W0,_owner:w0};if(x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x,"_self",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.defineProperty(x,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H0}),Object.freeze)Object.freeze(x.props),Object.freeze(x);return x};function S1(L,V,c,t,H0){{var w0,W0={},x=null,b0=null;if(c!==void 0)p1(c),x=""+c;if(f0(V))p1(V.key),x=""+V.key;if(J0(V))b0=V.ref,C0(V,H0);for(w0 in V)if(o0.call(V,w0)&&!j6.hasOwnProperty(w0))W0[w0]=V[w0];if(L&&L.defaultProps){var D0=L.defaultProps;for(w0 in D0)if(W0[w0]===void 0)W0[w0]=D0[w0]}if(x||b0){var Y1=typeof L==="function"?L.displayName||L.name||"Unknown":L;if(x)K1(W0,Y1);if(b0)M1(W0,Y1)}return Y6(L,x,b0,H0,t,b6.current,W0)}}var{ReactCurrentOwner:A6,ReactDebugCurrentFrame:r0}=n;function i0(L){if(L){var V=L._owner,c=g1(L.type,L._source,V?V.type:null);r0.setExtraStackFrame(c)}else r0.setExtraStackFrame(null)}var _4=!1;function y6(L){return typeof L==="object"&&L!==null&&L.$$typeof===Y}function W4(){{if(A6.current){var L=e(A6.current.type);if(L)return`
|
|
165
|
-
|
|
166
|
-
Check the render method of \``+L+"`."}return""}}function w5(L){{if(L!==void 0){var V=L.fileName.replace(/^.*[\\\/]/,""),c=L.lineNumber;return`
|
|
167
|
-
|
|
168
|
-
Check your code at `+V+":"+c+"."}return""}}var Z5={};function V5(L){{var V=W4();if(!V){var c=typeof L==="string"?L:L.displayName||L.name;if(c)V=`
|
|
169
|
-
|
|
170
|
-
Check the top-level render call using <`+c+">."}return V}}function p4(L,V){{if(!L._store||L._store.validated||L.key!=null)return;L._store.validated=!0;var c=V5(V);if(Z5[c])return;Z5[c]=!0;var t="";if(L&&L._owner&&L._owner!==A6.current)t=" It was passed a child from "+e(L._owner.type)+".";i0(L),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,t),i0(null)}}function G4(L,V){{if(typeof L!=="object")return;if(j1(L))for(var c=0;c<L.length;c++){var t=L[c];if(y6(t))p4(t,V)}else if(y6(L)){if(L._store)L._store.validated=!0}else if(L){var H0=Q0(L);if(typeof H0==="function"){if(H0!==L.entries){var w0=H0.call(L),W0;while(!(W0=w0.next()).done)if(y6(W0.value))p4(W0.value,V)}}}}}function J5(L){{var V=L.type;if(V===null||V===void 0||typeof V==="string")return;var c;if(typeof V==="function")c=V.propTypes;else if(typeof V==="object"&&(V.$$typeof===N||V.$$typeof===R))c=V.propTypes;else return;if(c){var t=e(V);J6(c,L.props,"prop",t,L)}else if(V.PropTypes!==void 0&&!_4){_4=!0;var H0=e(V);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H0||"Unknown")}if(typeof V.getDefaultProps==="function"&&!V.getDefaultProps.isReactClassApproved)j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function J1(L){{var V=Object.keys(L.props);for(var c=0;c<V.length;c++){var t=V[c];if(t!=="children"&&t!=="key"){i0(L),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",t),i0(null);break}}if(L.ref!==null)i0(L),j("Invalid attribute `ref` supplied to `React.Fragment`."),i0(null)}}var k1={};function u1(L,V,c,t,H0,w0){{var W0=y0(L);if(!W0){var x="";if(L===void 0||typeof L==="object"&&L!==null&&Object.keys(L).length===0)x+=" 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 b0=w5(H0);if(b0)x+=b0;else x+=W4();var D0;if(L===null)D0="null";else if(j1(L))D0="array";else if(L!==void 0&&L.$$typeof===Y)D0="<"+(e(L.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?";else D0=typeof L;j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",D0,x)}var Y1=S1(L,V,c,H0,w0);if(Y1==null)return Y1;if(W0){var w1=V.children;if(w1!==void 0)if(t)if(j1(w1)){for(var N4=0;N4<w1.length;N4++)G4(w1[N4],L);if(Object.freeze)Object.freeze(w1)}else j("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 G4(w1,L)}if(o0.call(V,"key")){var u4=e(L),r1=Object.keys(V).filter(function(D5){return D5!=="key"}),e0=r1.length>0?"{key: someKey, "+r1.join(": ..., ")+": ...}":"{key: someKey}";if(!k1[u4+e0]){var a5=r1.length>0?"{"+r1.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
|
|
171
|
-
let props = %s;
|
|
172
|
-
<%s {...props} />
|
|
173
|
-
React keys must be passed directly to JSX without using spread:
|
|
174
|
-
let props = %s;
|
|
175
|
-
<%s key={someKey} {...props} />`,e0,u4,a5,u4),k1[u4+e0]=!0}}if(L===B)J1(Y1);else J5(Y1);return Y1}}function B1(L,V,c){return u1(L,V,c,!0)}function W(L,V,c){return u1(L,V,c,!1)}var m=W,l=B1;JM.Fragment=B,JM.jsx=m,JM.jsxs=l})()});var W7=z0(X6(),1),xB=z0(qB(),1);var Sv=z0(X6(),1);function SG(Y){let[U,B]=Sv.useState([]),[_,G]=Sv.useState(!0),P=Sv.useCallback(async()=>{let w=await(await fetch("/api/agents")).json();B(w.agents||[]),G(!1)},[]);Sv.useEffect(()=>{if(Y)P()},[Y,P]);let F=async(R)=>{await fetch("/api/agents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(R)}),await P()},N=async(R)=>{await fetch(`/api/agents/${R}`,{method:"DELETE"}),await P()},T=async(R)=>{let w=R.status==="running"?"stop":"start",E=await fetch(`/api/agents/${R.id}/${w}`,{method:"POST"}),i=await E.json();if(await P(),!E.ok&&i.error)return{error:i.error};return{}},f=U.filter((R)=>R.status==="running").length;return{agents:U,loading:_,runningCount:f,fetchAgents:P,createAgent:F,deleteAgent:N,toggleAgent:T}}var db=z0(X6(),1);function hG(Y){let[U,B]=db.useState([]),_=db.useCallback(async()=>{let T=await(await fetch("/api/providers")).json();B(T.providers||[])},[]);db.useEffect(()=>{if(Y)_()},[Y,_]);let G=U.filter((N)=>N.hasKey);return{providers:U,configuredProviders:G,fetchProviders:_,saveKey:async(N,T)=>{let R=await(await fetch(`/api/keys/${N}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:T})})).json();if(!R.valid)return{success:!1,error:R.error||"API key is invalid"};let w=await fetch(`/api/keys/${N}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:T})});if(!w.ok)return{success:!1,error:(await w.json()).error||"Failed to save key"};return await _(),{success:!0}},deleteKey:async(N)=>{await fetch(`/api/keys/${N}`,{method:"DELETE"}),await _()}}}var jb=z0(X6(),1);function gG(){let[Y,U]=jb.useState(null);jb.useEffect(()=>{fetch("/api/onboarding/status").then((_)=>_.json()).then((_)=>{U(_.completed||_.has_any_keys)}).catch(()=>U(!0))},[]);let B=jb.useCallback(async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),U(!0)},[]);return{isComplete:Y,setIsComplete:U,complete:B}}var p7=z0(V1(),1);function yb({message:Y="Loading...",fullScreen:U=!1}){let B=p7.jsxDEV("div",{className:"flex items-center gap-3 text-[#666]",children:[p7.jsxDEV("svg",{className:"animate-spin h-5 w-5",viewBox:"0 0 24 24",children:[p7.jsxDEV("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"},void 0,!1,void 0,this),p7.jsxDEV("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p7.jsxDEV("span",{children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(U)return p7.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center",children:B},void 0,!1,void 0,this);return p7.jsxDEV("div",{className:"flex items-center justify-center py-20",children:B},void 0,!1,void 0,this)}var mG=z0(V1(),1);function $Z({children:Y,onClose:U}){return mG.jsxDEV("div",{className:"fixed inset-0 bg-black/70 flex items-center justify-center z-50",children:mG.jsxDEV("div",{className:"bg-[#111] rounded p-6 w-full max-w-md border border-[#1a1a1a]",children:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var cb=z0(X6(),1),Z4=z0(V1(),1);function jz({value:Y,options:U,onChange:B,placeholder:_="Select..."}){let[G,P]=cb.useState(!1),F=cb.useRef(null),N=U.find((T)=>T.value===Y);return cb.useEffect(()=>{function T(f){if(F.current&&!F.current.contains(f.target))P(!1)}return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[]),Z4.jsxDEV("div",{ref:F,className:"relative",children:[Z4.jsxDEV("button",{type:"button",onClick:()=>P(!G),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 text-left flex items-center justify-between focus:outline-none focus:border-[#f97316] text-[#e0e0e0] hover:border-[#333] transition",children:[Z4.jsxDEV("span",{className:N?"text-[#e0e0e0]":"text-[#666]",children:N?Z4.jsxDEV(Z4.Fragment,{children:[N.label,N.recommended&&Z4.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),Z4.jsxDEV(AR,{isOpen:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G&&Z4.jsxDEV("div",{className:"absolute z-50 w-full mt-1 bg-[#111] border border-[#222] rounded shadow-lg max-h-60 overflow-auto",children:U.map((T)=>Z4.jsxDEV("button",{type:"button",onClick:()=>{B(T.value),P(!1)},className:`w-full px-3 py-2 text-left flex items-center justify-between hover:bg-[#1a1a1a] transition ${T.value===Y?"bg-[#1a1a1a] text-[#f97316]":"text-[#e0e0e0]"}`,children:[Z4.jsxDEV("span",{children:[T.label,T.recommended&&Z4.jsxDEV("span",{className:"text-[#f97316] text-xs ml-2",children:"(Recommended)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T.value===Y&&Z4.jsxDEV("svg",{className:"w-4 h-4 text-[#f97316]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Z4.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)]},T.value,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function AR({isOpen:Y}){return Z4.jsxDEV("svg",{className:`w-4 h-4 text-[#666] transition-transform ${Y?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Z4.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 Q5=z0(V1(),1);function r7({className:Y="w-4 h-4"}){return Q5.jsxDEV("svg",{className:Y,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Q5.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 hv({className:Y="w-5 h-5"}){return Q5.jsxDEV("svg",{className:Y,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Q5.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 KZ({className:Y="w-5 h-5"}){return Q5.jsxDEV("svg",{className:Y,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Q5.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 UZ({className:Y="w-5 h-5"}){return Q5.jsxDEV("svg",{className:Y,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Q5.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 qZ({className:Y="w-5 h-5"}){return Q5.jsxDEV("svg",{className:Y,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[Q5.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),Q5.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 gv=z0(V1(),1);function BZ({onNewAgent:Y,canCreateAgent:U}){return gv.jsxDEV("header",{className:"border-b border-[#1a1a1a] px-6 py-4 flex-shrink-0",children:gv.jsxDEV("div",{className:"flex items-center justify-between",children:[gv.jsxDEV("div",{className:"flex items-center gap-2",children:[gv.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),gv.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),gv.jsxDEV("button",{onClick:Y,disabled:!U,className:"bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var P5=z0(V1(),1);function OZ({route:Y,agentCount:U,onNavigate:B}){return P5.jsxDEV("aside",{className:"w-56 border-r border-[#1a1a1a] flex-shrink-0 p-4",children:P5.jsxDEV("nav",{className:"space-y-1",children:[P5.jsxDEV(dG,{icon:P5.jsxDEV(KZ,{},void 0,!1,void 0,this),label:"Dashboard",active:Y==="dashboard",onClick:()=>B("dashboard")},void 0,!1,void 0,this),P5.jsxDEV(dG,{icon:P5.jsxDEV(UZ,{},void 0,!1,void 0,this),label:"Agents",active:Y==="agents",onClick:()=>B("agents"),badge:U>0?String(U):void 0},void 0,!1,void 0,this),P5.jsxDEV(dG,{icon:P5.jsxDEV(qZ,{},void 0,!1,void 0,this),label:"Settings",active:Y==="settings",onClick:()=>B("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function dG({icon:Y,label:U,active:B,onClick:_,badge:G}){return P5.jsxDEV("button",{onClick:_,className:`w-full flex items-center gap-3 px-3 py-2 rounded font-medium transition ${B?"bg-[#111] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:[Y,U,G&&P5.jsxDEV("span",{className:"ml-auto bg-[#333] text-[#888] text-xs px-2 py-0.5 rounded-full",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var yz=z0(V1(),1);function LZ({message:Y,onDismiss:U}){return yz.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:[yz.jsxDEV("span",{children:Y},void 0,!1,void 0,this),yz.jsxDEV("button",{onClick:U,className:"hover:text-red-300",children:yz.jsxDEV(hv,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var F5=z0(X6(),1);var I0=z0(V1(),1);function _Z({onComplete:Y}){let[U,B]=F5.useState(1),[_,G]=F5.useState([]),[P,F]=F5.useState(null),[N,T]=F5.useState(""),[f,R]=F5.useState(!1),[w,E]=F5.useState(!1),[i,s]=F5.useState(null),[Q0,n]=F5.useState(null);F5.useEffect(()=>{fetch("/api/providers").then((p)=>p.json()).then((p)=>G(p.providers||[]))},[]);let j=_.filter((p)=>p.hasKey),K0=async()=>{if(!P||!N)return;R(!0),s(null),n(null);try{E(!0);let X0=await(await fetch(`/api/keys/${P}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:N})})).json();if(E(!1),!X0.valid){s(X0.error||"API key is invalid"),R(!1);return}let N0=await fetch(`/api/keys/${P}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:N})}),n0=await N0.json();if(!N0.ok)s(n0.error||"Failed to save key");else{n("API key saved successfully!"),T("");let y0=await(await fetch("/api/providers")).json();G(y0.providers||[]),F(null)}}catch(p){s("Failed to save key")}R(!1)},a=async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),Y()};return I0.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:I0.jsxDEV("div",{className:"w-full max-w-2xl",children:[I0.jsxDEV("div",{className:"text-center mb-8",children:[I0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[I0.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),I0.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[I0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${U>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),I0.jsxDEV("div",{className:`w-16 h-0.5 ${U>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),I0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${U>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[U===1&&I0.jsxDEV(PR,{providers:_,configuredProviders:j,selectedProvider:P,apiKey:N,saving:f,testing:w,error:i,success:Q0,onSelectProvider:F,onApiKeyChange:T,onSaveKey:K0,onContinue:()=>B(2)},void 0,!1,void 0,this),U===2&&I0.jsxDEV(RR,{configuredProviders:j,onAddMore:()=>B(1),onComplete:a},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 PR({providers:Y,configuredProviders:U,selectedProvider:B,apiKey:_,saving:G,testing:P,error:F,success:N,onSelectProvider:T,onApiKeyChange:f,onSaveKey:R,onContinue:w}){let E=Y.find((i)=>i.id===B);if(B&&E)return I0.jsxDEV(I0.Fragment,{children:[I0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",E.name," Key"]},void 0,!0,void 0,this),I0.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),I0.jsxDEV("div",{className:"mb-6",children:[I0.jsxDEV("div",{className:"p-4 rounded border border-[#f97316] bg-[#f97316]/5 mb-4",children:I0.jsxDEV("div",{className:"flex items-center justify-between",children:[I0.jsxDEV("div",{children:[I0.jsxDEV("p",{className:"font-medium",children:E.name},void 0,!1,void 0,this),I0.jsxDEV("p",{className:"text-sm text-[#666]",children:[E.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("a",{href:E.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),I0.jsxDEV("div",{className:"space-y-3",children:[I0.jsxDEV("input",{type:"password",value:_,onChange:(i)=>f(i.target.value),placeholder:"Enter your API key...",autoFocus:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316] text-lg"},void 0,!1,void 0,this),F&&I0.jsxDEV("p",{className:"text-red-400 text-sm",children:F},void 0,!1,void 0,this),N&&I0.jsxDEV("p",{className:"text-green-400 text-sm",children:N},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"flex gap-3",children:[I0.jsxDEV("button",{onClick:()=>{T(null),f("")},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),I0.jsxDEV("button",{onClick:R,disabled:!_||G,className:"flex-1 bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:P?"Testing...":G?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return I0.jsxDEV(I0.Fragment,{children:[I0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to Apteva"},void 0,!1,void 0,this),I0.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),I0.jsxDEV("div",{className:"space-y-3 mb-6",children:Y.map((i)=>I0.jsxDEV(FR,{provider:i,selected:!1,onSelect:()=>!i.hasKey&&T(i.id)},i.id,!1,void 0,this))},void 0,!1,void 0,this),I0.jsxDEV("button",{onClick:w,disabled:U.length===0,className:"w-full bg-[#222] hover:bg-[#333] disabled:opacity-50 disabled:cursor-not-allowed px-4 py-3 rounded font-medium transition",children:U.length===0?"Add at least one API key to continue":`Continue with ${U.length} provider${U.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FR({provider:Y,selected:U,onSelect:B}){return I0.jsxDEV("div",{onClick:B,className:`p-4 rounded border transition cursor-pointer ${Y.hasKey?"border-green-500/30 bg-green-500/5":U?"border-[#f97316] bg-[#f97316]/5":"border-[#222] hover:border-[#333]"}`,children:I0.jsxDEV("div",{className:"flex items-center justify-between",children:[I0.jsxDEV("div",{children:[I0.jsxDEV("p",{className:"font-medium",children:Y.name},void 0,!1,void 0,this),I0.jsxDEV("p",{className:"text-sm text-[#666]",children:[Y.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.hasKey?I0.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[I0.jsxDEV(r7,{},void 0,!1,void 0,this),"Configured (",Y.keyHint,")"]},void 0,!0,void 0,this):I0.jsxDEV("a",{href:Y.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 RR({configuredProviders:Y,onAddMore:U,onComplete:B}){return I0.jsxDEV(I0.Fragment,{children:[I0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),I0.jsxDEV("p",{className:"text-[#666] mb-6",children:["You've configured ",Y.length," provider",Y.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"space-y-2 mb-6",children:Y.map((_)=>I0.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[#0a0a0a] rounded",children:[I0.jsxDEV(r7,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),I0.jsxDEV("span",{children:_.name},void 0,!1,void 0,this),I0.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),I0.jsxDEV("div",{className:"flex gap-3",children:[I0.jsxDEV("button",{onClick:U,className:"flex-1 border border-[#333] hover:border-[#f97316] px-4 py-3 rounded font-medium transition",children:"Add More"},void 0,!1,void 0,this),I0.jsxDEV("button",{onClick:B,className:"flex-1 bg-[#f97316] hover:bg-[#fb923c] text-black px-4 py-3 rounded font-medium transition",children:"Start Using Apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var L4=z0(X6(),1);var F0=z0(V1(),1);function WZ(){let[Y,U]=L4.useState("providers");return F0.jsxDEV("div",{className:"flex-1 flex overflow-hidden",children:[F0.jsxDEV("div",{className:"w-48 border-r border-[#1a1a1a] p-4",children:[F0.jsxDEV("h2",{className:"text-sm font-medium text-[#666] uppercase tracking-wider mb-3",children:"Settings"},void 0,!1,void 0,this),F0.jsxDEV("nav",{className:"space-y-1",children:[F0.jsxDEV(BB,{label:"Providers",active:Y==="providers",onClick:()=>U("providers")},void 0,!1,void 0,this),F0.jsxDEV(BB,{label:"Updates",active:Y==="updates",onClick:()=>U("updates")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[Y==="providers"&&F0.jsxDEV(MR,{},void 0,!1,void 0,this),Y==="updates"&&F0.jsxDEV(kR,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function BB({label:Y,active:U,onClick:B}){return F0.jsxDEV("button",{onClick:B,className:`w-full text-left px-3 py-2 rounded text-sm transition ${U?"bg-[#1a1a1a] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:Y},void 0,!1,void 0,this)}function MR(){let[Y,U]=L4.useState([]),[B,_]=L4.useState(null),[G,P]=L4.useState(""),[F,N]=L4.useState(!1),[T,f]=L4.useState(!1),[R,w]=L4.useState(null),[E,i]=L4.useState(null),s=async()=>{let a=await(await fetch("/api/providers")).json();U(a.providers||[])};L4.useEffect(()=>{s()},[]);let Q0=async()=>{if(!B||!G)return;N(!0),w(null),i(null);try{f(!0);let a=await(await fetch(`/api/keys/${B}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:G})})).json();if(f(!1),!a.valid){w(a.error||"API key is invalid"),N(!1);return}let p=await fetch(`/api/keys/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:G})});if(!p.ok){let X0=await p.json();w(X0.error||"Failed to save key")}else i("API key saved!"),P(""),_(null),s()}catch(K0){w("Failed to save key")}N(!1)},n=async(K0)=>{if(!confirm("Are you sure you want to remove this API key?"))return;await fetch(`/api/keys/${K0}`,{method:"DELETE"}),s()},j=Y.filter((K0)=>K0.hasKey).length;return F0.jsxDEV("div",{className:"max-w-4xl",children:[F0.jsxDEV("div",{className:"mb-6",children:[F0.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"AI Providers"},void 0,!1,void 0,this),F0.jsxDEV("p",{className:"text-[#666]",children:["Manage your API keys for AI providers. ",j," of ",Y.length," configured."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2",children:Y.map((K0)=>F0.jsxDEV(wR,{provider:K0,isEditing:B===K0.id,apiKey:G,saving:F,testing:T,error:B===K0.id?R:null,success:B===K0.id?E:null,onStartEdit:()=>{_(K0.id),w(null),i(null)},onCancelEdit:()=>{_(null),P(""),w(null)},onApiKeyChange:P,onSave:Q0,onDelete:()=>n(K0.id)},K0.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kR(){let[Y,U]=L4.useState(null),[B,_]=L4.useState(!1),[G,P]=L4.useState(null),[F,N]=L4.useState(!1),T=async()=>{_(!0),P(null);try{let R=await fetch("/api/version");if(!R.ok)throw Error("Failed to check for updates");let w=await R.json();U(w)}catch(R){P("Failed to check for updates")}_(!1)};L4.useEffect(()=>{T()},[]);let f=()=>{if(Y?.updateCommand)navigator.clipboard.writeText(Y.updateCommand),N(!0),setTimeout(()=>N(!1),2000)};return F0.jsxDEV("div",{className:"max-w-2xl",children:[F0.jsxDEV("div",{className:"mb-6",children:[F0.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"Updates"},void 0,!1,void 0,this),F0.jsxDEV("p",{className:"text-[#666]",children:"Check for new versions of Apteva."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-6",children:B&&!Y?F0.jsxDEV("div",{className:"text-[#666]",children:"Checking for updates..."},void 0,!1,void 0,this):G?F0.jsxDEV("div",{className:"text-red-400",children:G},void 0,!1,void 0,this):Y?F0.jsxDEV("div",{className:"space-y-4",children:[F0.jsxDEV("div",{className:"flex items-center justify-between",children:[F0.jsxDEV("div",{children:[F0.jsxDEV("div",{className:"text-sm text-[#666]",children:"Current version"},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"text-xl font-mono",children:["v",Y.current]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"text-right",children:[F0.jsxDEV("div",{className:"text-sm text-[#666]",children:"Latest version"},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"text-xl font-mono",children:["v",Y.latest]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.updateAvailable?F0.jsxDEV("div",{className:"bg-[#f97316]/10 border border-[#f97316]/30 rounded-lg p-4",children:[F0.jsxDEV("div",{className:"flex items-center gap-2 text-[#f97316] font-medium mb-2",children:[F0.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:F0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Update available!"]},void 0,!0,void 0,this),F0.jsxDEV("p",{className:"text-sm text-[#888] mb-3",children:"A new version of Apteva is available. Run this command to update:"},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"flex items-center gap-2",children:[F0.jsxDEV("code",{className:"flex-1 bg-[#0a0a0a] px-3 py-2 rounded font-mono text-sm",children:Y.updateCommand},void 0,!1,void 0,this),F0.jsxDEV("button",{onClick:f,className:"px-3 py-2 bg-[#1a1a1a] hover:bg-[#222] rounded text-sm",children:F?"Copied!":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F0.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4 flex items-center gap-2 text-green-400",children:[F0.jsxDEV(r7,{className:"w-5 h-5"},void 0,!1,void 0,this),"You're running the latest version!"]},void 0,!0,void 0,this),F0.jsxDEV("button",{onClick:T,disabled:B,className:"text-sm text-[#666] hover:text-[#888] disabled:opacity-50",children:B?"Checking...":"Check again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wR({provider:Y,isEditing:U,apiKey:B,saving:_,testing:G,error:P,success:F,onStartEdit:N,onCancelEdit:T,onApiKeyChange:f,onSave:R,onDelete:w}){return F0.jsxDEV("div",{className:`bg-[#111] border rounded-lg p-4 ${Y.hasKey?"border-green-500/20":"border-[#1a1a1a]"}`,children:[F0.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[F0.jsxDEV("div",{children:[F0.jsxDEV("h3",{className:"font-medium",children:Y.name},void 0,!1,void 0,this),F0.jsxDEV("p",{className:"text-sm text-[#666]",children:[Y.models.length," models"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.hasKey?F0.jsxDEV("span",{className:"text-green-400 text-xs flex items-center gap-1 bg-green-500/10 px-2 py-1 rounded",children:[F0.jsxDEV(r7,{className:"w-3 h-3"},void 0,!1,void 0,this),Y.keyHint]},void 0,!0,void 0,this):F0.jsxDEV("span",{className:"text-[#666] text-xs bg-[#1a1a1a] px-2 py-1 rounded",children:"Not configured"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.hasKey?F0.jsxDEV("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-[#1a1a1a]",children:[F0.jsxDEV("a",{href:Y.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"View docs"},void 0,!1,void 0,this),F0.jsxDEV("button",{onClick: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):F0.jsxDEV("div",{className:"mt-3 pt-3 border-t border-[#1a1a1a]",children:U?F0.jsxDEV("div",{className:"space-y-3",children:[F0.jsxDEV("input",{type:"password",value:B,onChange:(E)=>f(E.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),P&&F0.jsxDEV("p",{className:"text-red-400 text-sm",children:P},void 0,!1,void 0,this),F&&F0.jsxDEV("p",{className:"text-green-400 text-sm",children:F},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"flex gap-2",children:[F0.jsxDEV("button",{onClick:T,className:"flex-1 px-3 py-1.5 border border-[#333] rounded text-sm hover:border-[#666]",children:"Cancel"},void 0,!1,void 0,this),F0.jsxDEV("button",{onClick:R,disabled:!B||_,className:"flex-1 px-3 py-1.5 bg-[#f97316] text-black rounded text-sm font-medium disabled:opacity-50",children:G?"Validating...":_?"Saving...":"Save"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F0.jsxDEV("div",{className:"flex items-center justify-between",children:[F0.jsxDEV("a",{href:Y.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"Get API key"},void 0,!1,void 0,this),F0.jsxDEV("button",{onClick:N,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 i4=z0(V1(),1);function NZ({agent:Y,selected:U,onSelect:B,onToggle:_,onDelete:G}){return i4.jsxDEV("div",{onClick:B,className:`bg-[#111] rounded p-5 border transition cursor-pointer ${U?"border-[#f97316]":"border-[#1a1a1a] hover:border-[#333]"}`,children:[i4.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[i4.jsxDEV("div",{children:[i4.jsxDEV("h3",{className:"font-semibold text-lg",children:Y.name},void 0,!1,void 0,this),i4.jsxDEV("p",{className:"text-sm text-[#666]",children:[Y.provider," / ",Y.model,Y.port&&i4.jsxDEV("span",{className:"text-[#444]",children:[" · :",Y.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i4.jsxDEV(VR,{status:Y.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i4.jsxDEV("p",{className:"text-sm text-[#666] line-clamp-2 mb-4",children:Y.systemPrompt},void 0,!1,void 0,this),i4.jsxDEV("div",{className:"flex gap-2",children:[i4.jsxDEV("button",{onClick:_,className:`flex-1 px-3 py-1.5 rounded text-sm font-medium transition ${Y.status==="running"?"bg-[#f97316]/20 text-[#f97316] hover:bg-[#f97316]/30":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:Y.status==="running"?"Stop":"Start"},void 0,!1,void 0,this),i4.jsxDEV("button",{onClick:G,className:"px-3 py-1.5 rounded text-sm font-medium bg-red-500/20 text-red-400 hover:bg-red-500/30 transition",children:"Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function VR({status:Y}){return i4.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ${Y==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[#333] text-[#666]"}`,children:Y},void 0,!1,void 0,this)}var H6=z0(V1(),1);function PZ({form:Y,providers:U,configuredProviders:B,onFormChange:_,onProviderChange:G,onCreate:P,onClose:F,onGoToSettings:N}){let T=U.find((w)=>w.id===Y.provider),f=B.map((w)=>({value:w.id,label:w.name})),R=T?.models.map((w)=>({value:w.value,label:w.label,recommended:w.recommended}))||[];return H6.jsxDEV($Z,{children:[H6.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),B.length===0?H6.jsxDEV(DR,{onGoToSettings:N},void 0,!1,void 0,this):H6.jsxDEV(H6.Fragment,{children:[H6.jsxDEV("div",{className:"space-y-4",children:[H6.jsxDEV(AZ,{label:"Name",children:H6.jsxDEV("input",{type:"text",value:Y.name,onChange:(w)=>_({...Y,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),H6.jsxDEV(AZ,{label:"Provider",children:H6.jsxDEV(jz,{value:Y.provider,options:f,onChange:G,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),H6.jsxDEV(AZ,{label:"Model",children:H6.jsxDEV(jz,{value:Y.model,options:R,onChange:(w)=>_({...Y,model:w}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),H6.jsxDEV(AZ,{label:"System Prompt",children:H6.jsxDEV("textarea",{value:Y.systemPrompt,onChange:(w)=>_({...Y,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),H6.jsxDEV("div",{className:"flex gap-3 mt-6",children:[H6.jsxDEV("button",{onClick:F,className:"flex-1 border border-[#333] hover:border-[#f97316] hover:text-[#f97316] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),H6.jsxDEV("button",{onClick:P,disabled:!Y.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 AZ({label:Y,children:U}){return H6.jsxDEV("div",{children:[H6.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:Y},void 0,!1,void 0,this),U]},void 0,!0,void 0,this)}function DR({onGoToSettings:Y}){return H6.jsxDEV("div",{className:"text-center py-6",children:[H6.jsxDEV("p",{className:"text-[#666] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),H6.jsxDEV("button",{onClick:Y,className:"bg-[#f97316] hover:bg-[#fb923c] text-black px-4 py-2 rounded font-medium transition",children:"Go to Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var F1=z0(X6(),1),ob=z0(X6(),1),mv=z0(X6(),1);function OB(Y){var U,B,_="";if(typeof Y=="string"||typeof Y=="number")_+=Y;else if(typeof Y=="object")if(Array.isArray(Y)){var G=Y.length;for(U=0;U<G;U++)Y[U]&&(B=OB(Y[U]))&&(_&&(_+=" "),_+=B)}else for(B in Y)Y[B]&&(_&&(_+=" "),_+=B);return _}function LB(){for(var Y,U,B=0,_="",G=arguments.length;B<G;B++)(Y=arguments[B])&&(U=OB(Y))&&(_&&(_+=" "),_+=U);return _}var IR=(Y)=>{let U=ER(Y),{conflictingClassGroups:B,conflictingClassGroupModifiers:_}=Y;return{getClassGroupId:(F)=>{let N=F.split("-");if(N[0]===""&&N.length!==1)N.shift();return NB(N,U)||fR(F)},getConflictingClassGroupIds:(F,N)=>{let T=B[F]||[];if(N&&_[F])return[...T,..._[F]];return T}}},NB=(Y,U)=>{if(Y.length===0)return U.classGroupId;let B=Y[0],_=U.nextPart.get(B),G=_?NB(Y.slice(1),_):void 0;if(G)return G;if(U.validators.length===0)return;let P=Y.join("-");return U.validators.find(({validator:F})=>F(P))?.classGroupId},_B=/^\[(.+)\]$/,fR=(Y)=>{if(_B.test(Y)){let U=_B.exec(Y)[1],B=U?.substring(0,U.indexOf(":"));if(B)return"arbitrary.."+B}},ER=(Y)=>{let{theme:U,prefix:B}=Y,_={nextPart:new Map,validators:[]};return CR(Object.entries(Y.classGroups),B).forEach(([P,F])=>{yG(F,_,P,U)}),_},yG=(Y,U,B,_)=>{Y.forEach((G)=>{if(typeof G==="string"){let P=G===""?U:WB(U,G);P.classGroupId=B;return}if(typeof G==="function"){if(TR(G)){yG(G(_),U,B,_);return}U.validators.push({validator:G,classGroupId:B});return}Object.entries(G).forEach(([P,F])=>{yG(F,WB(U,P),B,_)})})},WB=(Y,U)=>{let B=Y;return U.split("-").forEach((_)=>{if(!B.nextPart.has(_))B.nextPart.set(_,{nextPart:new Map,validators:[]});B=B.nextPart.get(_)}),B},TR=(Y)=>Y.isThemeGetter,CR=(Y,U)=>{if(!U)return Y;return Y.map(([B,_])=>{let G=_.map((P)=>{if(typeof P==="string")return U+P;if(typeof P==="object")return Object.fromEntries(Object.entries(P).map(([F,N])=>[U+F,N]));return P});return[B,G]})},SR=(Y)=>{if(Y<1)return{get:()=>{return},set:()=>{}};let U=0,B=new Map,_=new Map,G=(P,F)=>{if(B.set(P,F),U++,U>Y)U=0,_=B,B=new Map};return{get(P){let F=B.get(P);if(F!==void 0)return F;if((F=_.get(P))!==void 0)return G(P,F),F},set(P,F){if(B.has(P))B.set(P,F);else G(P,F)}}};var hR=(Y)=>{let{separator:U,experimentalParseClassName:B}=Y,_=U.length===1,G=U[0],P=U.length,F=(N)=>{let T=[],f=0,R=0,w;for(let n=0;n<N.length;n++){let j=N[n];if(f===0){if(j===G&&(_||N.slice(n,n+P)===U)){T.push(N.slice(R,n)),R=n+P;continue}if(j==="/"){w=n;continue}}if(j==="[")f++;else if(j==="]")f--}let E=T.length===0?N:N.substring(R),i=E.startsWith("!"),s=i?E.substring(1):E,Q0=w&&w>R?w-R:void 0;return{modifiers:T,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:Q0}};if(B)return(N)=>B({className:N,parseClassName:F});return F},gR=(Y)=>{if(Y.length<=1)return Y;let U=[],B=[];return Y.forEach((_)=>{if(_[0]==="[")U.push(...B.sort(),_),B=[];else B.push(_)}),U.push(...B.sort()),U},uR=(Y)=>({cache:SR(Y.cacheSize),parseClassName:hR(Y),...IR(Y)}),mR=/\s+/,dR=(Y,U)=>{let{parseClassName:B,getClassGroupId:_,getConflictingClassGroupIds:G}=U,P=[],F=Y.trim().split(mR),N="";for(let T=F.length-1;T>=0;T-=1){let f=F[T],{modifiers:R,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:i}=B(f),s=Boolean(i),Q0=_(s?E.substring(0,i):E);if(!Q0){if(!s){N=f+(N.length>0?" "+N:N);continue}if(Q0=_(E),!Q0){N=f+(N.length>0?" "+N:N);continue}s=!1}let n=gR(R).join(":"),j=w?n+"!":n,K0=j+Q0;if(P.includes(K0))continue;P.push(K0);let a=G(Q0,s);for(let p=0;p<a.length;++p){let X0=a[p];P.push(j+X0)}N=f+(N.length>0?" "+N:N)}return N};function jR(){let Y=0,U,B,_="";while(Y<arguments.length)if(U=arguments[Y++]){if(B=AB(U))_&&(_+=" "),_+=B}return _}var AB=(Y)=>{if(typeof Y==="string")return Y;let U,B="";for(let _=0;_<Y.length;_++)if(Y[_]){if(U=AB(Y[_]))B&&(B+=" "),B+=U}return B};function yR(Y,...U){let B,_,G,P=F;function F(T){let f=U.reduce((R,w)=>w(R),Y());return B=uR(f),_=B.cache.get,G=B.cache.set,P=N,N(T)}function N(T){let f=_(T);if(f)return f;let R=dR(T,B);return G(T,R),R}return function(){return P(jR.apply(null,arguments))}}var Z6=(Y)=>{let U=(B)=>B[Y]||[];return U.isThemeGetter=!0,U},PB=/^\[(?:([a-z-]+):)?(.+)\]$/i,cR=/^\d+\/\d+$/,xR=new Set(["px","full","screen"]),aR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lR=/\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$/,oR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,iR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O7=(Y)=>xb(Y)||xR.has(Y)||cR.test(Y),n7=(Y)=>ab(Y,"length",zM),xb=(Y)=>Boolean(Y)&&!Number.isNaN(Number(Y)),jG=(Y)=>ab(Y,"number",xb),cz=(Y)=>Boolean(Y)&&Number.isInteger(Number(Y)),rR=(Y)=>Y.endsWith("%")&&xb(Y.slice(0,-1)),b1=(Y)=>PB.test(Y),t7=(Y)=>aR.test(Y),nR=new Set(["length","size","percentage"]),tR=(Y)=>ab(Y,nR,FB),sR=(Y)=>ab(Y,"position",FB),eR=new Set(["image","url"]),vM=(Y)=>ab(Y,eR,XM),bM=(Y)=>ab(Y,"",QM),xz=()=>!0,ab=(Y,U,B)=>{let _=PB.exec(Y);if(_){if(_[1])return typeof U==="string"?_[1]===U:U.has(_[1]);return B(_[2])}return!1},zM=(Y)=>lR.test(Y)&&!oR.test(Y),FB=()=>!1,QM=(Y)=>iR.test(Y),XM=(Y)=>pR.test(Y);var ZM=()=>{let Y=Z6("colors"),U=Z6("spacing"),B=Z6("blur"),_=Z6("brightness"),G=Z6("borderColor"),P=Z6("borderRadius"),F=Z6("borderSpacing"),N=Z6("borderWidth"),T=Z6("contrast"),f=Z6("grayscale"),R=Z6("hueRotate"),w=Z6("invert"),E=Z6("gap"),i=Z6("gradientColorStops"),s=Z6("gradientColorStopPositions"),Q0=Z6("inset"),n=Z6("margin"),j=Z6("opacity"),K0=Z6("padding"),a=Z6("saturate"),p=Z6("scale"),X0=Z6("sepia"),N0=Z6("skew"),n0=Z6("space"),z1=Z6("translate"),y0=()=>["auto","contain","none"],A0=()=>["auto","hidden","clip","visible","scroll"],h0=()=>["auto",b1,U],e=()=>[b1,U],Z0=()=>["",O7,n7],k0=()=>["auto",xb,b1],L0=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],v1=()=>["solid","dashed","dotted","double","none"],F6=()=>["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"],d1=()=>["","0",b1],u0=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q1=()=>[xb,b1];return{cacheSize:500,separator:":",theme:{colors:[xz],spacing:[O7,n7],blur:["none","",t7,b1],brightness:Q1(),borderColor:[Y],borderRadius:["none","","full",t7,b1],borderSpacing:e(),borderWidth:Z0(),contrast:Q1(),grayscale:d1(),hueRotate:Q1(),invert:d1(),gap:e(),gradientColorStops:[Y],gradientColorStopPositions:[rR,n7],inset:h0(),margin:h0(),opacity:Q1(),padding:e(),saturate:Q1(),scale:Q1(),sepia:d1(),skew:Q1(),space:e(),translate:e()},classGroups:{aspect:[{aspect:["auto","square","video",b1]}],container:["container"],columns:[{columns:[t7]}],"break-after":[{"break-after":u0()}],"break-before":[{"break-before":u0()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L0(),b1]}],overflow:[{overflow: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:[Q0]}],"inset-x":[{"inset-x":[Q0]}],"inset-y":[{"inset-y":[Q0]}],start:[{start:[Q0]}],end:[{end:[Q0]}],top:[{top:[Q0]}],right:[{right:[Q0]}],bottom:[{bottom:[Q0]}],left:[{left:[Q0]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",cz,b1]}],basis:[{basis:h0()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",b1]}],grow:[{grow:d1()}],shrink:[{shrink:d1()}],order:[{order:["first","last","none",cz,b1]}],"grid-cols":[{"grid-cols":[xz]}],"col-start-end":[{col:["auto",{span:["full",cz,b1]},b1]}],"col-start":[{"col-start":k0()}],"col-end":[{"col-end":k0()}],"grid-rows":[{"grid-rows":[xz]}],"row-start-end":[{row:["auto",{span:[cz,b1]},b1]}],"row-start":[{"row-start":k0()}],"row-end":[{"row-end":k0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",b1]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",b1]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"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:[K0]}],px:[{px:[K0]}],py:[{py:[K0]}],ps:[{ps:[K0]}],pe:[{pe:[K0]}],pt:[{pt:[K0]}],pr:[{pr:[K0]}],pb:[{pb:[K0]}],pl:[{pl:[K0]}],m:[{m:[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":[n0]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[n0]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",b1,U]}],"min-w":[{"min-w":[b1,U,"min","max","fit"]}],"max-w":[{"max-w":[b1,U,"none","full","min","max","fit","prose",{screen:[t7]},t7]}],h:[{h:[b1,U,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[b1,U,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[b1,U,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[b1,U,"auto","min","max","fit"]}],"font-size":[{text:["base",t7,n7]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jG]}],"font-family":[{font:[xz]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",b1]}],"line-clamp":[{"line-clamp":["none",xb,jG]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O7,b1]}],"list-image":[{"list-image":["none",b1]}],"list-style-type":[{list:["none","disc","decimal",b1]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[Y]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[Y]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...v1(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O7,n7]}],"underline-offset":[{"underline-offset":["auto",O7,b1]}],"text-decoration-color":[{decoration:[Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:e()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b1]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L0(),sR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vM]}],"bg-color":[{bg:[Y]}],"gradient-from-pos":[{from:[s]}],"gradient-via-pos":[{via:[s]}],"gradient-to-pos":[{to:[s]}],"gradient-from":[{from:[i]}],"gradient-via":[{via:[i]}],"gradient-to":[{to:[i]}],rounded:[{rounded:[P]}],"rounded-s":[{"rounded-s":[P]}],"rounded-e":[{"rounded-e":[P]}],"rounded-t":[{"rounded-t":[P]}],"rounded-r":[{"rounded-r":[P]}],"rounded-b":[{"rounded-b":[P]}],"rounded-l":[{"rounded-l":[P]}],"rounded-ss":[{"rounded-ss":[P]}],"rounded-se":[{"rounded-se":[P]}],"rounded-ee":[{"rounded-ee":[P]}],"rounded-es":[{"rounded-es":[P]}],"rounded-tl":[{"rounded-tl":[P]}],"rounded-tr":[{"rounded-tr":[P]}],"rounded-br":[{"rounded-br":[P]}],"rounded-bl":[{"rounded-bl":[P]}],"border-w":[{border:[N]}],"border-w-x":[{"border-x":[N]}],"border-w-y":[{"border-y":[N]}],"border-w-s":[{"border-s":[N]}],"border-w-e":[{"border-e":[N]}],"border-w-t":[{"border-t":[N]}],"border-w-r":[{"border-r":[N]}],"border-w-b":[{"border-b":[N]}],"border-w-l":[{"border-l":[N]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...v1(),"hidden"]}],"divide-x":[{"divide-x":[N]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[N]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:v1()}],"border-color":[{border:[G]}],"border-color-x":[{"border-x":[G]}],"border-color-y":[{"border-y":[G]}],"border-color-s":[{"border-s":[G]}],"border-color-e":[{"border-e":[G]}],"border-color-t":[{"border-t":[G]}],"border-color-r":[{"border-r":[G]}],"border-color-b":[{"border-b":[G]}],"border-color-l":[{"border-l":[G]}],"divide-color":[{divide:[G]}],"outline-style":[{outline:["",...v1()]}],"outline-offset":[{"outline-offset":[O7,b1]}],"outline-w":[{outline:[O7,n7]}],"outline-color":[{outline:[Y]}],"ring-w":[{ring:Z0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[Y]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[O7,n7]}],"ring-offset-color":[{"ring-offset":[Y]}],shadow:[{shadow:["","inner","none",t7,bM]}],"shadow-color":[{shadow:[xz]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...F6(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F6()}],filter:[{filter:["","none"]}],blur:[{blur:[B]}],brightness:[{brightness:[_]}],contrast:[{contrast:[T]}],"drop-shadow":[{"drop-shadow":["","none",t7,b1]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[R]}],invert:[{invert:[w]}],saturate:[{saturate:[a]}],sepia:[{sepia:[X0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[B]}],"backdrop-brightness":[{"backdrop-brightness":[_]}],"backdrop-contrast":[{"backdrop-contrast":[T]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[a]}],"backdrop-sepia":[{"backdrop-sepia":[X0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[F]}],"border-spacing-x":[{"border-spacing-x":[F]}],"border-spacing-y":[{"border-spacing-y":[F]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",b1]}],duration:[{duration:Q1()}],ease:[{ease:["linear","in","out","in-out",b1]}],delay:[{delay:Q1()}],animate:[{animate:["none","spin","ping","pulse","bounce",b1]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[p]}],"scale-x":[{"scale-x":[p]}],"scale-y":[{"scale-y":[p]}],rotate:[{rotate:[cz,b1]}],"translate-x":[{"translate-x":[z1]}],"translate-y":[{"translate-y":[z1]}],"skew-x":[{"skew-x":[N0]}],"skew-y":[{"skew-y":[N0]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",b1]}],accent:[{accent:["auto",Y]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b1]}],"caret-color":[{caret:[Y]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":e()}],"scroll-mx":[{"scroll-mx":e()}],"scroll-my":[{"scroll-my":e()}],"scroll-ms":[{"scroll-ms":e()}],"scroll-me":[{"scroll-me":e()}],"scroll-mt":[{"scroll-mt":e()}],"scroll-mr":[{"scroll-mr":e()}],"scroll-mb":[{"scroll-mb":e()}],"scroll-ml":[{"scroll-ml":e()}],"scroll-p":[{"scroll-p":e()}],"scroll-px":[{"scroll-px":e()}],"scroll-py":[{"scroll-py":e()}],"scroll-ps":[{"scroll-ps":e()}],"scroll-pe":[{"scroll-pe":e()}],"scroll-pt":[{"scroll-pt":e()}],"scroll-pr":[{"scroll-pr":e()}],"scroll-pb":[{"scroll-pb":e()}],"scroll-pl":[{"scroll-pl":e()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b1]}],fill:[{fill:[Y,"none"]}],"stroke-w":[{stroke:[O7,n7,jG]}],stroke:[{stroke:[Y,"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 RB=yR(ZM);var EB=z0(X6(),1),M5=z0(l1(),1),ib=z0(X6(),1),J4=z0(l1(),1),TB=z0(l1(),1),iG=z0(l1(),1),pb=z0(X6(),1),W6=z0(l1(),1),CB=z0(X6(),1),d6=z0(l1(),1),lz=z0(l1(),1),Y0=z0(l1(),1),h4=z0(l1(),1),rG=z0(l1(),1),E0=z0(l1(),1),G6=z0(l1(),1),N1=z0(l1(),1),_0=z0(l1(),1),l0=z0(l1(),1),az=z0(l1(),1),x5=z0(X6(),1),j0=z0(l1(),1),_7=z0(X6(),1),M0=z0(l1(),1),V4=z0(l1(),1),pM=z0(X6(),1),hB=z0(l1(),1),nG=z0(X6(),1),tG=z0(l1(),1),rM=z0(X6(),1),gB=z0(l1(),1),uB=z0(X6(),1),mB=z0(l1(),1),nM=z0(X6(),1),dB=z0(l1(),1),jB=z0(l1(),1),yB=z0(l1(),1),YM=Object.defineProperty,HM=(Y,U,B)=>(U in Y)?YM(Y,U,{enumerable:!0,configurable:!0,writable:!0,value:B}):Y[U]=B,GM=(Y,U,B)=>HM(Y,typeof U!=="symbol"?U+"":U,B);function m1(...Y){return RB(LB(Y))}var Fw=[{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)}],Rw=[{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 $M(Y=1000){return new Promise((U)=>{setTimeout(()=>{U({id:`msg-${Date.now()}`,role:"assistant",content:"This is a mock response. In production, this would come from your AI agent API.",timestamp:new Date})},Y)})}function KM(Y){let U=Y.toLowerCase();if(U.includes("analyze")||U.includes("analysis"))return`Analysis complete for "${Y}". Found 247 records with an average value of $1,234. The data shows a 23% increase compared to last quarter. Key insights: Revenue is up, customer satisfaction improved by 15%, and operational costs decreased by 8%.`;if(U.includes("sales")||U.includes("revenue"))return"Sales data processed: Q4 2024 revenue reached $2.4M, representing 18% growth year-over-year. Top performing products: Enterprise Plan (+45%), Pro Plan (+32%), Basic Plan (+12%). Regional breakdown: North America (52%), Europe (31%), APAC (17%).";if(U.includes("report")||U.includes("summary"))return"Report generated successfully. Executive Summary: Overall performance exceeded targets by 12%. Marketing ROI improved to 3.2x, customer acquisition cost reduced by 18%, and lifetime value increased by 24%. Detailed breakdown available in attached widgets.";if(U.includes("data")||U.includes("metrics"))return"Data metrics retrieved: 1,847 active users, 12,394 sessions this month, 94.2% uptime, average response time 127ms. Performance is within acceptable parameters. No critical issues detected.";if(U.includes("customer")||U.includes("user"))return"Customer analysis complete: 523 new customers this month, 89% retention rate, average satisfaction score 4.6/5. Top feedback themes: excellent support (87%), easy to use (72%), good value (68%). 3 support tickets pending review.";return"This is a mock response showing how your agent would process and respond to commands. The actual response would be generated by your AI agent based on real data and context."}function UM(Y){let U=KM(Y),B=Y.toLowerCase(),_=[],G;if(B.includes("sales")||B.includes("revenue")||B.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(B.includes("customer")||B.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(B.includes("task")||B.includes("todo")||B.includes("work")||B.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:{}}]}),G={type:"update_database",payload:{table:"tasks",operation:"mark_as_viewed",taskIds:["task-1","task-2","task-3"],timestamp:new Date().toISOString()}};if(B.includes("analyze")||B.includes("analysis"))G={type:"send_notification",payload:{recipient:"team@company.com",subject:"Analysis Complete",message:"Your requested analysis has been completed and is ready for review."}};return{message:U,widgets:_,action:G}}function qM(Y,U,B,_,G=30){let{message:P,widgets:F}=UM(Y),N=P.split(" "),T=0,f=setInterval(()=>{try{if(T<N.length)U({type:"token",content:N[T]+" "}),T++;else{clearInterval(f),F.forEach((w)=>{U({type:"widget",widget:w})});let R=`mock_thread_${Date.now()}`;U({type:"complete"}),B(R)}}catch(R){clearInterval(f),_(R instanceof Error?R:Error("Mock streaming error"))}},G)}function BM(Y){return new Promise((U,B)=>{let _=new FileReader;_.onload=()=>{let P=_.result.split(",")[1];U(P)},_.onerror=()=>B(Error("Failed to read file")),_.readAsDataURL(Y)})}function OM(Y){if(Y.startsWith("image/"))return"image";return"document"}function LM(Y){return["image/jpeg","image/png","image/gif","image/webp","application/pdf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(Y.type)}async function _M(Y){let U=await BM(Y);return{type:OM(Y.type),source:{type:"base64",media_type:Y.type,data:U}}}async function WM(Y){let U=Array.from(Y);return await Promise.all(U.map((_)=>_M(_)))}async function MB(Y,U){if(!U||U.length===0)return Y;let B=[];if(Y.trim())B.push({type:"text",text:Y.trim()});let _=await WM(U);return B.push(..._),B}function RZ(Y){if(Y<1024)return`${Y} B`;if(Y<1048576)return`${(Y/1024).toFixed(1)} KB`;return`${(Y/1048576).toFixed(1)} MB`}var kB=10485760;function DB(Y){if(!LM(Y))return{valid:!1,error:`Unsupported file type: ${Y.type}`};if(Y.size>kB)return{valid:!1,error:`File too large: ${RZ(Y.size)} (max ${RZ(kB)})`};return{valid:!0}}var NM=["list","table"];function AM(Y){let U=[],B=!1,_=Y.match(/"items"\s*:\s*\[/);if(!_)return{items:U,isStreaming:!1};let G=Y.indexOf("[",_.index);if(G===-1)return{items:U,isStreaming:!0};let P=0,F=!1,N=!1,T=-1;for(let w=G+1;w<Y.length;w++){let E=Y[w];if(N){N=!1;continue}if(E==="\\"&&F){N=!0;continue}if(E==='"'){F=!F;continue}if(F)continue;if(E==="{"){if(P===0)T=w;P++}else if(E==="}"){if(P--,P===0&&T!==-1){let i=Y.slice(T,w+1);try{let s=JSON.parse(i);if(!s.id)s.id=`item-${U.length}-${lG(i)}`;U.push(s)}catch(s){}T=-1}}else if(E==="]"&&P===0){B=!1;break}}if(P>0||T!==-1)B=!0;let f=Y.slice(G);if(oG(f,0)===-1)B=!0;return{items:U,isStreaming:B}}function lG(Y){let U=0;for(let B=0;B<Y.length;B++){let _=Y.charCodeAt(B);U=(U<<5)-U+_,U=U&U}return Math.abs(U).toString(36)}function oG(Y,U){let B=0,_=!1,G=!1;for(let P=U;P<Y.length;P++){let F=Y[P];if(G){G=!1;continue}if(F==="\\"&&_){G=!0;continue}if(F==='"'){_=!_;continue}if(_)continue;if(F==="["||F==="{")B++;else if(F==="]"||F==="}"){if(B--,B===0)return P}}return-1}function FZ(Y){let U=[],B=!1,_=!1,G=0,P=null,F=Y,N=Y.lastIndexOf("@ui:");if(N!==-1){let R=Y.slice(N),w=R.match(/^@ui:(\w+)/);if(w){let E=w[1],i=R.indexOf("[");if(i===-1)F=Y.slice(0,N),P=E,_=!0;else{let s=N+i;if(oG(Y,s)===-1)if(NM.includes(E)){let n=Y.slice(s+1),{items:j,isStreaming:K0}=AM(n);if(j.length>0){F=Y.slice(0,N);let a=`widget-${E}-streaming-${lG(n)}`,p=F.replace(/[\s:;\-–—\.]+$/g,"").trim();if(p)U.push({type:"text",content:p});U.push({type:"widget",widget:{type:E,id:a,props:E==="table"?{rows:j,columns:[]}:{items:j},isStreaming:K0}}),B=!0,_=!1,F=""}else F=Y.slice(0,N),P=E,_=!0}else F=Y.slice(0,N),P=E,_=!0}}}if(_)F=F.replace(/[\s:;\-–—\.]+$/g,"");let T=/@ui:(\w+)\[/g,f;while((f=T.exec(F))!==null){let R=f[1],w=f.index+f[0].length-1,E=oG(F,w);if(E===-1)continue;let i=F.slice(w+1,E);if(f.index>G){let s=F.slice(G,f.index).trim();if(s)U.push({type:"text",content:s})}try{let s=i.trim(),Q0=JSON.parse(s),n=`widget-${R}-${lG(s)}`,{metadata:j,actions:K0,...a}=Q0;U.push({type:"widget",widget:{type:R,id:n,props:a,...K0&&{actions:K0},...j&&{metadata:j}}}),B=!0}catch(s){}G=E+1,T.lastIndex=G}if(G<F.length){let R=F.slice(G).trim();if(R)U.push({type:"text",content:R})}if(U.length===0&&F.trim())U.push({type:"text",content:F.trim()});if(P)U.push({type:"widget_pending",pendingType:P});return{segments:U,hasWidgets:B,hasPendingWidget:_}}var IB={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"}]}]'}},PM=Object.keys(IB),FM=["flow"],fB=PM.filter((Y)=>!FM.includes(Y));function RM(Y){let U=Y||fB,B=`
|
|
176
|
-
## UI Widgets
|
|
177
|
-
SYNTAX: @ui:type[{json}] - MUST use SQUARE BRACKETS [] around the JSON object.
|
|
178
|
-
CORRECT: @ui:list[{"items": [...]}]
|
|
179
|
-
WRONG: @ui:list{"items": [...]} (missing square brackets)
|
|
180
|
-
|
|
181
|
-
`;for(let _ of U){let G=IB[_];if(!G)continue;B+=`${_}: ${G.schema} | ${G.example}
|
|
182
|
-
`}return B+=`
|
|
183
|
-
Per-item "metadata" is sent as payload on action click.
|
|
184
|
-
`,B}function MM(Y){return`
|
|
185
|
-
Widgets: @ui:type[{json}] - MUST use square brackets []. Example: @ui:list[{"items": [...]}]. Types: ${(Y||fB).join(", ")}. Per-item "metadata" is sent as action payload.
|
|
186
|
-
`}function kM({widget:Y,onAction:U}){let{title:B,description:_,image:G,footer:P}=Y.props;return M5.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[G&&M5.jsx("img",{src:G,alt:B,className:"w-full h-48 object-cover"}),M5.jsxs("div",{className:"p-4",children:[M5.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white",children:B}),_&&M5.jsx("p",{className:"!text-neutral-600 dark:!text-neutral-400 mt-2",children:_})]}),(P||Y.actions&&Y.actions.length>0)&&M5.jsxs("div",{className:"border-t border-neutral-200 dark:border-neutral-700 p-4 flex justify-between items-center",children:[P&&M5.jsx("span",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:P}),Y.actions&&Y.actions.length>0&&M5.jsx("div",{className:"flex gap-2",children:Y.actions.map((F,N)=>M5.jsx("button",{onClick:()=>U?.({type:F.type,payload:F.payload,widgetId:Y.id,timestamp:new Date}),className:"px-3 py-1.5 !text-sm rounded-lg font-medium transition-colors bg-blue-500 !text-white hover:bg-blue-600",children:F.label},N))})]})]})}function wM({widget:Y,onAction:U}){let{items:B}=Y.props,_=Y.isStreaming??!1,G=ib.useRef(new Set),[P,F]=ib.useState(new Set);return ib.useEffect(()=>{let N=new Set(B.map((f)=>f.id)),T=new Set;if(B.forEach((f)=>{if(!G.current.has(f.id))T.add(f.id)}),B.forEach((f)=>G.current.add(f.id)),T.size>0){F(T);let f=setTimeout(()=>{F(new Set)},500);return()=>clearTimeout(f)}},[B]),J4.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[B.map((N,T)=>{let f=P.has(N.id),R=T===B.length-1;return J4.jsxs("div",{className:`apteva-list-item flex items-center p-4 transition-colors ${!R||_?"border-b border-neutral-200 dark:border-neutral-700":""} ${!N.backgroundColor?"hover:bg-neutral-50 dark:hover:bg-neutral-800":""} ${f?"apteva-list-item-new":""}`,style:N.backgroundColor?{backgroundColor:N.backgroundColor}:void 0,children:[N.image&&J4.jsx("img",{src:N.image,alt:N.title,className:"w-16 h-16 rounded object-cover"}),J4.jsxs("div",{className:`flex-1 ${N.image?"ml-4":""}`,children:[J4.jsx("h4",{className:"font-semibold !text-neutral-900 dark:!text-white",children:N.title}),N.subtitle&&J4.jsx("p",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:N.subtitle}),N.description&&J4.jsx("p",{className:"!text-xs !text-neutral-500 dark:!text-neutral-500 mt-1",children:N.description})]}),Y.actions&&Y.actions.length>0&&J4.jsx("div",{className:"flex gap-2",children:Y.actions.map((w,E)=>J4.jsx("button",{onClick:()=>U?.({type:w.type,payload:N.metadata||N,widgetId:Y.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},E))})]},N.id)}),_&&J4.jsxs("div",{className:"apteva-list-streaming flex items-center gap-3 p-4 text-neutral-500 dark:text-neutral-400",children:[J4.jsxs("div",{className:"apteva-streaming-dots flex gap-1",children:[J4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),J4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),J4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),J4.jsx("span",{className:"text-sm",children:"Loading more..."})]})]})}function VM({widget:Y,onAction:U}){let{label:B,variant:_="primary",disabled:G=!1}=Y.props;return TB.jsx("button",{onClick:()=>Y.actions?.[0]&&U?.({type:Y.actions[0].type,payload:Y.actions[0].payload,widgetId:Y.id,timestamp:new Date}),disabled:G,className:m1("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":G}),children:B})}function DM({widget:Y,onAction:U}){let{layout:B="horizontal",buttons:_}=Y.props,G={primary:"bg-blue-500 !text-white hover:bg-blue-600",secondary:"bg-neutral-200 dark:bg-neutral-700 !text-neutral-800 dark:!text-neutral-200 hover:bg-neutral-300 dark:hover:bg-neutral-600",outline:"border border-neutral-300 dark:border-neutral-600 !text-neutral-700 dark:!text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800"},P=(F)=>{return Y.actions?.find((N)=>N.payload?.buttonId===F)||Y.actions?.[0]};return iG.jsx("div",{className:m1("flex gap-2",B==="vertical"?"flex-col":"flex-row flex-wrap"),children:_.map((F)=>{let N=P(F.id);return iG.jsx("button",{onClick:()=>{if(N)U?.({type:N.type,payload:{...N.payload,buttonId:F.id},widgetId:Y.id,timestamp:new Date})},className:m1("px-4 py-2 rounded-lg font-medium transition-colors text-sm",G[F.variant||"secondary"]),children:F.label},F.id)})})}function IM({widget:Y,onAction:U}){let{columns:B,rows:_,caption:G,compact:P=!1,striped:F=!1}=Y.props,N=Y.isStreaming??!1,T=pb.useRef(new Set),[f,R]=pb.useState(new Set);pb.useEffect(()=>{let E=new Set;if(_.forEach((i,s)=>{let Q0=i.id||`row-${s}`;if(!T.current.has(Q0))E.add(Q0)}),_.forEach((i,s)=>{let Q0=i.id||`row-${s}`;T.current.add(Q0)}),E.size>0){R(E);let i=setTimeout(()=>{R(new Set)},500);return()=>clearTimeout(i)}},[_]);let w=(E)=>{switch(E){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:[G&&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:G}),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:B.map((E)=>W6.jsx("th",{className:m1("font-semibold text-neutral-900 dark:text-white",P?"px-3 py-2 text-xs":"px-4 py-3 text-sm",w(E.align)),style:E.width?{width:E.width}:void 0,children:E.label},E.key))})}),W6.jsxs("tbody",{children:[_.map((E,i)=>{let s=E.id||`row-${i}`,Q0=f.has(s);return W6.jsx("tr",{className:m1("apteva-table-row border-b border-neutral-200 dark:border-neutral-700 last:border-b-0","transition-colors hover:bg-neutral-50 dark:hover:bg-neutral-800",F&&i%2===1&&"bg-neutral-50/50 dark:bg-neutral-800/50",Q0&&"apteva-table-row-new"),onClick:()=>{if(Y.actions&&Y.actions.length>0)U?.({type:Y.actions[0].type,payload:E,widgetId:Y.id,timestamp:new Date})},style:{cursor:Y.actions?.length?"pointer":"default"},children:B.map((n)=>W6.jsx("td",{className:m1("text-neutral-700 dark:text-neutral-300",P?"px-3 py-2 text-xs":"px-4 py-3 text-sm",w(n.align)),children:E[n.key]??"—"},n.key))},s)}),_.length===0&&!N&&W6.jsx("tr",{children:W6.jsx("td",{colSpan:B.length||1,className:"px-4 py-8 text-center text-sm text-neutral-500 dark:text-neutral-400",children:"No data available"})}),N&&W6.jsx("tr",{className:"apteva-table-streaming",children:W6.jsx("td",{colSpan:B.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 fM({widget:Y,onAction:U}){let{title:B,fields:_}=Y.props,[G,P]=CB.useState(()=>{let R={};return _.forEach((w)=>{R[w.name]=w.defaultValue??(w.type==="checkbox"?!1:"")}),R}),F=(R,w)=>{P((E)=>({...E,[R]:w}))},N=(R)=>{if(R.preventDefault(),Y.actions?.[0]&&U)U({type:Y.actions[0].type,payload:{...Y.actions[0].payload,formData:G},widgetId:Y.id,timestamp:new Date})},T=(R)=>{switch(R.type){case"text":case"password":case"number":case"date":return d6.jsx("input",{type:R.type,name:R.name,value:G[R.name]||"",onChange:(E)=>F(R.name,R.type==="number"?Number(E.target.value):E.target.value),placeholder:R.placeholder,required:R.required,className:"w-full px-3 py-2 rounded-lg border transition-colors border-neutral-200 dark:border-neutral-600 bg-neutral-50 dark:bg-neutral-800 !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"});case"textarea":return d6.jsx("textarea",{name:R.name,value:G[R.name]||"",onChange:(E)=>F(R.name,E.target.value),placeholder:R.placeholder,required:R.required,rows:3,className:"w-full px-3 py-2 rounded-lg border transition-colors border-neutral-200 dark:border-neutral-600 bg-neutral-50 dark:bg-neutral-800 !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"});case"select":return d6.jsxs("select",{name:R.name,value:G[R.name]||"",onChange:(E)=>F(R.name,E.target.value),required:R.required,className:"w-full px-3 py-2 rounded-lg border transition-colors border-neutral-200 dark:border-neutral-600 bg-neutral-50 dark:bg-neutral-800 !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[d6.jsx("option",{value:"",children:R.placeholder||"Select..."}),R.options?.map((E)=>d6.jsx("option",{value:E.value,children:E.label},E.value))]});case"checkbox":return d6.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[d6.jsx("input",{type:"checkbox",name:R.name,checked:G[R.name]||!1,onChange:(E)=>F(R.name,E.target.checked),className:"w-4 h-4 rounded border-neutral-300 dark:border-neutral-600 text-blue-500 focus:ring-blue-500"}),d6.jsx("span",{className:"!text-neutral-700 dark:!text-neutral-300",children:R.label})]});default:return null}},f=Y.actions?.find((R)=>R.type==="submit")||Y.actions?.[0];return d6.jsxs("form",{onSubmit:N,className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[d6.jsxs("div",{className:"p-4",children:[B&&d6.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white mb-4",children:B}),d6.jsx("div",{className:"space-y-3",children:_.map((R)=>d6.jsxs("div",{className:R.type==="checkbox"?"":"space-y-1",children:[R.type!=="checkbox"&&d6.jsxs("label",{className:"block !text-sm font-medium !text-neutral-600 dark:!text-neutral-400",children:[R.label,R.required&&d6.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),T(R)]},R.name))})]}),f&&d6.jsx("div",{className:"px-4 pb-4",children:d6.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:f.label||"Submit"})})]})}function EM({widget:Y}){let{src:U,alt:B,caption:_}=Y.props;return lz.jsxs("figure",{className:"overflow-hidden rounded-xl",children:[lz.jsx("img",{src:U,alt:B,className:"w-full h-auto object-contain bg-neutral-100 dark:bg-neutral-800",loading:"lazy"}),_&&lz.jsx("figcaption",{className:"mt-2 text-center text-sm text-neutral-600 dark:text-neutral-400",children:_})]})}function TM({type:Y,status:U}){if(U==="completed")return Y0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})});if(U==="error")return Y0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})});if(U==="active")return Y0.jsx("div",{className:"w-3.5 h-3.5 rounded-full bg-current animate-pulse"});let B="w-4 h-4";if(Y==="time"||Y==="schedule"||Y==="clock")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})});if(Y==="recurring"||Y==="repeat")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="agent"||Y?.startsWith("@"))return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="email"||Y==="mail")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="slack"||Y==="message"||Y==="chat")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="webhook"||Y==="api")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="build"||Y==="compile"||Y==="package")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="test"||Y==="check"||Y==="verify")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="deploy"||Y==="rocket"||Y==="launch")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})});if(Y==="push"||Y==="upload"||Y==="cloud")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="generate"||Y==="create"||Y==="document"||Y==="file")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="review"||Y==="inspect"||Y==="eye")return Y0.jsxs("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[Y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),Y0.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(Y==="analyze"||Y==="research"||Y==="chart")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="scrape"||Y==="crawl"||Y==="spider")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="data"||Y==="database"||Y==="storage")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="notification"||Y==="bell"||Y==="alert")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="transform"||Y==="process"||Y==="convert")return Y0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})});return Y0.jsx("div",{className:"w-2 h-2 rounded-full bg-current opacity-50"})}function CM({icon:Y}){if(Y==="research"||Y==="multi-agent"||Y==="agents")return Y0.jsx("div",{className:"w-10 h-10 rounded-lg bg-purple-100 dark:bg-purple-500/20 flex items-center justify-center",children:Y0.jsx("svg",{className:"w-6 h-6 text-purple-600 dark:text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(Y==="schedule"||Y==="report"||Y==="calendar")return Y0.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-100 dark:bg-amber-500/20 flex items-center justify-center",children:Y0.jsx("svg",{className:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="recurring"||Y==="repeat"||Y==="sync")return Y0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:Y0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="analyze"||Y==="analysis"||Y==="chart")return Y0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:Y0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="deploy"||Y==="rocket"||Y==="launch")return Y0.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-500/20 flex items-center justify-center",children:Y0.jsx("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(Y==="automation"||Y==="workflow"||Y==="process")return Y0.jsx("div",{className:"w-10 h-10 rounded-lg bg-indigo-100 dark:bg-indigo-500/20 flex items-center justify-center",children:Y0.jsx("svg",{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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(Y==="data"||Y==="pipeline"||Y==="etl")return Y0.jsx("div",{className:"w-10 h-10 rounded-lg bg-emerald-100 dark:bg-emerald-500/20 flex items-center justify-center",children:Y0.jsx("svg",{className:"w-6 h-6 text-emerald-600 dark:text-emerald-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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 Y0.jsx("div",{className:"w-10 h-10 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center",children:Y0.jsx("svg",{className:"w-6 h-6 text-neutral-600 dark:text-neutral-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Y0.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 SM(){return Y0.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:Y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}var R5={blue:"bg-blue-100 dark:bg-blue-900/40 !text-blue-700 dark:!text-blue-300 border-blue-300 dark:border-blue-500",purple:"bg-purple-100 dark:bg-purple-900/40 !text-purple-700 dark:!text-purple-300 border-purple-300 dark:border-purple-500",cyan:"bg-cyan-100 dark:bg-cyan-900/40 !text-cyan-700 dark:!text-cyan-300 border-cyan-300 dark:border-cyan-500",amber:"bg-amber-100 dark:bg-amber-900/40 !text-amber-700 dark:!text-amber-300 border-amber-300 dark:border-amber-500",emerald:"bg-emerald-100 dark:bg-emerald-900/40 !text-emerald-700 dark:!text-emerald-300 border-emerald-300 dark:border-emerald-500",rose:"bg-rose-100 dark:bg-rose-900/40 !text-rose-700 dark:!text-rose-300 border-rose-300 dark:border-rose-500",indigo:"bg-indigo-100 dark:bg-indigo-900/40 !text-indigo-700 dark:!text-indigo-300 border-indigo-300 dark:border-indigo-500",orange:"bg-orange-100 dark:bg-orange-900/40 !text-orange-700 dark:!text-orange-300 border-orange-300 dark:border-orange-500",neutral:"bg-neutral-100 dark:bg-neutral-800 !text-neutral-600 dark:!text-neutral-300 border-neutral-300 dark:border-neutral-600"};function hM(Y,U){if(Y.color&&R5[Y.color])return R5[Y.color];if(U==="time"||U==="schedule"||U==="clock")return R5.blue;if(U==="agent"||U?.startsWith("@"))return R5.purple;if(U==="email"||U==="slack"||U==="message"||U==="notification")return R5.cyan;if(U==="generate"||U==="document"||U==="create")return R5.amber;if(U==="deploy"||U==="rocket"||U==="launch")return R5.rose;if(U==="build"||U==="compile"||U==="package")return R5.indigo;if(U==="test"||U==="check"||U==="verify")return R5.emerald;if(U==="data"||U==="database"||U==="storage")return R5.orange;return R5.blue}function gM({widget:Y}){let{title:U,subtitle:B,icon:_,steps:G}=Y.props;return Y0.jsxs("div",{className:"rounded-xl bg-white dark:bg-neutral-900 border border-neutral-200 dark:border-neutral-700 overflow-hidden",children:[Y0.jsxs("div",{className:"px-4 py-4 flex items-center gap-4",children:[Y0.jsx(CM,{icon:_}),Y0.jsxs("div",{className:"flex-1 min-w-0",children:[Y0.jsx("h3",{className:"font-semibold text-base text-neutral-900 dark:text-white truncate",children:U}),B&&Y0.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 truncate mt-0.5",children:B})]})]}),Y0.jsx("div",{className:"px-4 pb-4",children:Y0.jsx("div",{className:"flex flex-wrap items-center gap-2",children:G.map((P,F)=>{let N=F===G.length-1,T=P.status==="active",f=P.status==="completed",R=P.status==="error",w=P.status==="skipped",E=P.label,i=P.type;if(!i)if(E.startsWith("@"))i="agent";else if(/^\d+[ap]m$/i.test(E)||/^(mon|tue|wed|thu|fri|sat|sun)/i.test(E))i="time";else{let n=E.toLowerCase();i={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,Q0="";if(T)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(f)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(R)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",Q0="line-through";else s=hM(P,i);return Y0.jsxs("div",{className:"flex items-center gap-2",children:[Y0.jsxs("span",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium border transition-colors ${s} ${Q0}`,children:[Y0.jsx(TM,{type:i,status:P.status}),E]}),!N&&Y0.jsx(SM,{})]},P.id)})})})]})}function pG({widget:Y,onAction:U}){return h4.jsx("div",{className:"apteva-widget",children:(()=>{switch(Y.type){case"card":return h4.jsx(kM,{widget:Y,onAction:U});case"list":return h4.jsx(wM,{widget:Y,onAction:U});case"button":return h4.jsx(VM,{widget:Y,onAction:U});case"button_group":return h4.jsx(DM,{widget:Y,onAction:U});case"table":return h4.jsx(IM,{widget:Y,onAction:U});case"form":return h4.jsx(fM,{widget:Y,onAction:U});case"image":return h4.jsx(EM,{widget:Y});case"flow":return h4.jsx(gM,{widget:Y});default:return h4.jsxs("div",{className:"p-4 border border-yellow-300 bg-yellow-50 rounded-lg",children:[h4.jsxs("p",{className:"text-sm text-yellow-800",children:["Unknown widget type: ",Y.type]}),h4.jsx("pre",{className:"text-xs mt-2 overflow-auto",children:JSON.stringify(Y,null,2)})]})}})()})}function xG({widgets:Y,onAction:U,onWidgetMount:B,layout:_="stack",spacing:G="normal",columns:P=3,className:F}){EB.useEffect(()=>{Y.forEach((f)=>{B?.(f.id)})},[Y,B]);let N={stack:"flex flex-col",grid:`grid grid-cols-1 md:grid-cols-${P}`,masonry:"columns-1 md:columns-2 lg:columns-3"},T={tight:"gap-2",normal:"gap-4",loose:"gap-6"};return rG.jsx("div",{className:m1(N[_],T[G],F),children:Y.map((f)=>rG.jsx(pG,{widget:f,onAction:U},f.id))})}function wB({type:Y,className:U}){switch(Y){case"card":return E0.jsx("div",{className:m1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",U),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:m1("apteva-widget-skeleton animate-pulse space-y-2",U),children:[1,2,3].map((B)=>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"})]})]},B))});case"button_group":return E0.jsxs("div",{className:m1("apteva-widget-skeleton animate-pulse flex gap-2",U),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:m1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4 space-y-4",U),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:m1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",U),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:m1("apteva-widget-skeleton animate-pulse",U),children:E0.jsx("div",{className:"aspect-video bg-neutral-200 dark:bg-neutral-700 rounded-lg"})});case"gallery":return E0.jsx("div",{className:m1("apteva-widget-skeleton animate-pulse grid grid-cols-3 gap-2",U),children:[1,2,3].map((B)=>E0.jsx("div",{className:"aspect-square bg-neutral-200 dark:bg-neutral-700 rounded-lg"},B))});case"map":return E0.jsx("div",{className:m1("apteva-widget-skeleton animate-pulse",U),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:m1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",U),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((B)=>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"})})]},B))]});default:return E0.jsxs("div",{className:m1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",U),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 uM(Y){return/\.(jpg|jpeg|png|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(Y)}function uv(Y,U=""){let B=[],_=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|(\*\*|__)(.+?)\5|`([^`]+)`/g,G=0,P,F=0;while((P=_.exec(Y))!==null){if(P.index>G)B.push(Y.slice(G,P.index));if(P[1]!==void 0||P[2]!==void 0){let N=P[1]||"",T=P[2];B.push(G6.jsx("img",{src:T,alt:N,className:"apteva-md-img"},`${U}img${F++}`))}else if(P[3]!==void 0||P[4]!==void 0){let N=P[3],T=P[4];if(uM(T))B.push(G6.jsx("img",{src:T,alt:N,className:"apteva-md-img"},`${U}img${F++}`));else B.push(G6.jsx("a",{href:T,target:"_blank",rel:"noopener noreferrer",className:"apteva-md-link",children:N},`${U}a${F++}`))}else if(P[5]!==void 0)B.push(G6.jsx("strong",{children:P[6]},`${U}b${F++}`));else if(P[7]!==void 0)B.push(G6.jsx("code",{className:"apteva-md-inline-code",children:P[7]},`${U}code${F++}`));G=P.index+P[0].length}if(G<Y.length)B.push(Y.slice(G));return B.length>0?B:[Y]}function mM(Y){let U=Y.split(`
|
|
187
|
-
`),B=[],_=0,G=0;while(G<U.length){let P=U[G],F=P.match(/^##\s+(.*)$/);if(F){B.push(G6.jsx("h2",{className:"apteva-md-h2",children:uv(F[1],`${_}`)},`h2${_++}`)),G++;continue}let N=P.match(/^###\s+(.*)$/);if(N){B.push(G6.jsx("h3",{className:"apteva-md-h3",children:uv(N[1],`${_}`)},`h3${_++}`)),G++;continue}let T=P.match(/^(\s*)([-*+])\s+(.*)$/);if(T){let w=[],E=T[1].length;while(G<U.length){let i=U[G].match(/^(\s*)([-*+])\s+(.*)$/);if(i&&i[1].length===E)w.push(G6.jsx("li",{className:"apteva-md-li",children:uv(i[3],`${_}`)},`li${_++}`)),G++;else break}B.push(G6.jsx("ul",{className:"apteva-md-ul",children:w},`ul${_++}`));continue}let f=P.match(/^(\s*)(\d+)\.\s+(.*)$/);if(f){let w=[],E=f[1].length;while(G<U.length){let i=U[G].match(/^(\s*)(\d+)\.\s+(.*)$/);if(i&&i[1].length===E)w.push(G6.jsx("li",{className:"apteva-md-li",children:uv(i[3],`${_}`)},`li${_++}`)),G++;else break}B.push(G6.jsx("ol",{className:"apteva-md-ol",children:w},`ol${_++}`));continue}if(P.match(/^\|(.+)\|$/)&&G+1<U.length){if(U[G+1].match(/^\|([\s:-]+\|)+$/)){let i=P.split("|").filter((Q0)=>Q0.trim()!=="").map((Q0)=>Q0.trim());G+=2;let s=[];while(G<U.length)if(U[G].match(/^\|(.+)\|$/)){let n=U[G].split("|").filter((j)=>j.trim()!=="").map((j)=>j.trim());s.push(n),G++}else break;B.push(G6.jsx("div",{className:"apteva-md-table-wrapper",children:G6.jsxs("table",{className:"apteva-md-table",children:[G6.jsx("thead",{children:G6.jsx("tr",{children:i.map((Q0,n)=>G6.jsx("th",{className:"apteva-md-th",children:uv(Q0,`th${_}${n}`)},`th${n}`))})}),G6.jsx("tbody",{children:s.map((Q0,n)=>G6.jsx("tr",{children:Q0.map((j,K0)=>G6.jsx("td",{className:"apteva-md-td",children:uv(j,`td${_}${n}${K0}`)},`td${K0}`))},`tr${n}`))})]})},`table-wrapper${_++}`));continue}}if(P==="")B.push(G6.jsx("br",{},`br${_++}`));else B.push(G6.jsxs("span",{children:[uv(P,`${_}`),G<U.length-1?`
|
|
188
|
-
`:""]},`p${_++}`));G++}return B}function L7({content:Y,className:U=""}){return G6.jsx("div",{className:`apteva-md ${U}`,children:mM(Y)})}function dM({name:Y,status:U,isReceiving:B=!1,inputLength:_=0,streamOutput:G}){if(U==="preparing")return N1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-preparing",children:[N1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[N1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),N1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),N1.jsxs("span",{className:"apteva-tool-label",children:[N1.jsx("strong",{children:Y}),N1.jsx("span",{className:"apteva-tool-status-text",children:" preparing..."})]})]});if(U==="running")return N1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-running",children:[N1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[N1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),N1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),N1.jsxs("span",{className:"apteva-tool-label",children:[N1.jsx("strong",{children:Y}),G?N1.jsx("span",{className:"apteva-tool-stream-separator",children:" · "}):null,G?N1.jsx("span",{className:"apteva-tool-stream-output",children:G}):N1.jsxs(N1.Fragment,{children:[N1.jsx("span",{className:"apteva-tool-status-text",children:" running"}),N1.jsxs("span",{className:"apteva-tool-dots",children:[N1.jsx("span",{children:"."}),N1.jsx("span",{children:"."}),N1.jsx("span",{children:"."})]})]})]})]});if(U==="completed")return N1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-completed",children:[N1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:N1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),N1.jsx("span",{className:"apteva-tool-label",children:Y})]});return N1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-error",children:[N1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:N1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),N1.jsxs("span",{className:"apteva-tool-label",children:[Y," failed"]})]})}function jM({message:Y,onAction:U,enableWidgets:B,onWidgetRender:_}){let G=Y.role==="user",P=Y.metadata?.content_segments,F=Y.metadata?.isStreaming===!0,N=Y.content||P&&P.length>0,T=mv.useRef(new Set),f=mv.useMemo(()=>{if(!B||G||!Y.content)return[];return FZ(Y.content).segments.filter((p)=>p.type==="widget"&&!!p.widget).map((p)=>p.widget)},[B,G,Y.content]);mv.useEffect(()=>{if(_&&Y.widgets){for(let a of Y.widgets)if(!T.current.has(a.id))T.current.add(a.id),_(a)}},[Y.widgets,_]),mv.useEffect(()=>{if(_&&f.length>0){for(let a of f)if(!T.current.has(a.id))T.current.add(a.id),_(a)}},[f,_]);let R=(a)=>{if(!B||G)return _0.jsx(L7,{content:a});let X0=FZ(a).segments.filter((N0)=>N0.type==="text"&&N0.content).map((N0)=>N0.content).join("");if(!X0.trim())return null;return _0.jsx(L7,{content:X0})},w=()=>{if(!B||G||!Y.content)return null;let a=FZ(Y.content),p=[],X0="";if(a.segments.forEach((N0,n0)=>{if(N0.type==="text"&&N0.content)X0+=N0.content;else if(N0.type==="widget"&&N0.widget){if(X0.trim())p.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:X0})})},`text-${n0}`)),X0="";p.push(_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(pG,{widget:N0.widget,onAction:U})},`widget-${n0}`))}else if(N0.type==="widget_pending"&&N0.pendingType){if(X0.trim())p.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:X0})})},`text-${n0}`)),X0="";p.push(_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(wB,{type:N0.pendingType})},`pending-${n0}`))}}),X0.trim())p.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:X0})})},"text-final"));return p.length>0?p:null},E=Y.metadata?.attachments||[],i=E.length>0,s=()=>{if(!i)return null;return _0.jsx("div",{className:"apteva-message-attachments flex flex-wrap gap-2 mb-2 justify-end",children:E.map((a,p)=>{let X0=a.type.startsWith("image/"),N0=a.type==="application/pdf";if(X0&&a.preview)return _0.jsx("div",{className:"apteva-attachment-image relative rounded-lg overflow-hidden shadow-sm",children:_0.jsx("img",{src:a.preview,alt:a.name,className:"max-w-[150px] max-h-[150px] object-cover"})},p);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:N0?_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:a.name}),_0.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[N0?"PDF":"Document"," · ",RZ(a.size)]})]})]},p)})})},Q0=()=>{if(G)return _0.jsx("div",{className:"apteva-message-text",children:Y.content});if(F&&!N)return _0.jsxs("div",{className:"apteva-typing-indicator",children:[_0.jsx("span",{}),_0.jsx("span",{}),_0.jsx("span",{})]});if(P&&P.length>0)return null;return R(Y.content)},n=(a,p)=>{if(!B)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:a})})},p);let X0=FZ(a),N0=[],n0="";if(X0.segments.forEach((z1,y0)=>{if(z1.type==="text"&&z1.content)n0+=z1.content;else if(z1.type==="widget"&&z1.widget){if(n0.trim())N0.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:n0})})},`${p}-text-${y0}`)),n0="";N0.push(_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(pG,{widget:z1.widget,onAction:U})},`${p}-widget-${y0}`))}else if(z1.type==="widget_pending"&&z1.pendingType){if(n0.trim())N0.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:n0})})},`${p}-text-${y0}`)),n0="";N0.push(_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(wB,{type:z1.pendingType})},`${p}-pending-${y0}`))}}),n0.trim())N0.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:n0})})},`${p}-text-final`));return N0},j=()=>{if(!P||P.length===0)return null;let a=[];return P.forEach((p,X0)=>{if(p.type==="text"&&p.content){let N0=n(p.content,`seg-${X0}`);if(Array.isArray(N0))a.push(...N0);else a.push(N0)}else if(p.type==="tool")a.push(_0.jsx("div",{className:"apteva-tool-call-standalone",children:_0.jsx(dM,{name:p.name,status:p.status||(p.result!==void 0?"completed":"running"),isReceiving:p.isReceiving,inputLength:p.inputLength,streamOutput:p.streamOutput})},p.id))}),a};if(!G&&(P&&P.length>0))return _0.jsxs("div",{className:"apteva-message-segmented",children:[j(),Y.widgets&&Y.widgets.length>0&&_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(xG,{widgets:Y.widgets,onAction:U,layout:"stack"})}),_0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:Y.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});let K0=w();if(!G&&B&&K0)return _0.jsxs("div",{className:"apteva-message-segmented",children:[K0,Y.widgets&&Y.widgets.length>0&&_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(xG,{widgets:Y.widgets,onAction:U,layout:"stack"})}),_0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:Y.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});if(G&&i)return _0.jsxs("div",{className:"apteva-message-segmented apteva-message-user-with-attachments flex flex-col items-end",children:[s(),Y.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:Y.content})})}),_0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-user",suppressHydrationWarning:!0,children:Y.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});return _0.jsxs("div",{className:m1("apteva-message-bubble",G?"apteva-message-user":"apteva-message-assistant"),children:[_0.jsx("div",{className:G?"apteva-message-content-user":"apteva-message-content-assistant",children:Q0()}),Y.widgets&&Y.widgets.length>0&&_0.jsx("div",{className:"apteva-widget-standalone",children:_0.jsx(xG,{widgets:Y.widgets,onAction:U,layout:"stack"})}),_0.jsx("div",{className:m1("apteva-message-timestamp",G?"apteva-message-timestamp-user":"apteva-message-timestamp-assistant"),suppressHydrationWarning:!0,children:Y.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})}var VB=()=>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"})}),aG=()=>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 yM({title:Y,subtitle:U,icon:B,prompts:_,variant:G="centered",chatVariant:P="default",onPromptClick:F}){let N=(_||[]).map((R)=>typeof R==="string"?{text:R}:R),T=N.length>0,f=Y||U||B;if(!f&&!T)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(VB,{})}),l0.jsx("p",{className:"text-sm",children:"No messages yet. Start a conversation!"})]})});if(G==="minimal")return l0.jsxs("div",{className:"flex flex-col h-full px-4 py-4",children:[f&&l0.jsxs("div",{className:"mb-4",children:[Y&&l0.jsx("h2",{className:"text-lg font-semibold !text-neutral-900 dark:!text-white",children:Y}),U&&l0.jsx("p",{className:"text-sm !text-neutral-500 dark:!text-neutral-400 mt-1",children:U})]}),T&&l0.jsx("div",{className:"flex-1 space-y-2",children:N.map((R,w)=>l0.jsx("button",{onClick:()=>F(R.text),className:m1("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:R.icon||l0.jsx(aG,{})}),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:R.text}),R.description&&l0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 truncate",children:R.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:B||l0.jsx(VB,{})}),Y&&l0.jsx("h1",{className:"text-xl sm:text-2xl font-semibold !text-neutral-900 dark:!text-white mb-2",children:Y}),U&&l0.jsx("p",{className:"text-sm sm:text-base !text-neutral-500 dark:!text-neutral-400",children:U})]}),T&&l0.jsxs("div",{className:"w-full max-w-2xl",children:[l0.jsx("div",{className:"sm:hidden space-y-2",children:N.map((R,w)=>l0.jsx("button",{onClick:()=>F(R.text),className:m1("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:R.icon||l0.jsx(aG,{})}),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:R.text}),R.description&&l0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 line-clamp-1",children:R.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:N.map((R,w)=>l0.jsx("button",{onClick:()=>F(R.text),className:m1("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:R.icon||l0.jsx(aG,{})}),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:R.text}),R.description&&l0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-1 line-clamp-2",children:R.description})]})]})},w))})]})]})}function cM({messages:Y,onAction:U,welcomeTitle:B,welcomeSubtitle:_,welcomeIcon:G,suggestedPrompts:P,welcomeVariant:F,chatVariant:N,onPromptClick:T,enableWidgets:f,onWidgetRender:R}){let w=ob.useRef(null),E=ob.useRef(!0),i=ob.useRef(0),s=()=>{if(w.current){let{scrollTop:Q0,scrollHeight:n,clientHeight:j}=w.current;E.current=n-Q0-j<100}};return ob.useEffect(()=>{if(w.current&&E.current){let Q0=w.current.scrollHeight;if(Q0!==i.current)w.current.scrollTop=Q0,i.current=Q0}},[Y]),az.jsx("div",{ref:w,className:"apteva-message-list apteva-scrollbar-hidden",onScroll:s,children:Y.length===0?az.jsx(yM,{title:B,subtitle:_,icon:G,prompts:P,variant:F,chatVariant:N,onPromptClick:T||(()=>{})}):Y.map((Q0)=>az.jsx("div",{className:Q0.role==="user"?"apteva-message-row-user":"apteva-message-row-assistant",children:az.jsx(jM,{message:Q0,onAction:U,enableWidgets:f,onWidgetRender:R})},Q0.id))})}function xM({onSendMessage:Y,placeholder:U="Type a message...",disabled:B=!1,isLoading:_=!1,onStop:G,onFileUpload:P,onSwitchMode:F}){let[N,T]=x5.useState(""),[f,R]=x5.useState(!1),[w,E]=x5.useState([]),[i,s]=x5.useState(null),[Q0,n]=x5.useState(!1),j=x5.useRef(null),K0=x5.useRef(null),a=x5.useRef(null),p=(A0)=>{if(A0.key==="Enter"&&!A0.shiftKey)A0.preventDefault(),X0()},X0=()=>{let A0=N.trim(),h0=w.length>0;if((A0||h0)&&!B){let e=w.map((Z0)=>Z0.file);if(Y(N.trim(),e.length>0?e:void 0),T(""),E([]),s(null),n(!1),j.current)j.current.style.height="auto"}},N0=(A0)=>{T(A0.target.value),A0.target.style.height="auto";let h0=A0.target.scrollHeight;A0.target.style.height=`${h0}px`;let e=A0.target.value.includes(`
|
|
189
|
-
`),k0=h0>36;if(!Q0&&(e||k0))n(!0);else if(Q0&&!e&&!k0&&A0.target.value.length<20)n(!1)},n0=(A0)=>{if(A0.target.files&&A0.target.files.length>0){let h0=Array.from(A0.target.files),e=[],Z0=[];if(h0.forEach((k0)=>{let L0=DB(k0);if(L0.valid){let v1={file:k0};if(k0.type.startsWith("image/"))v1.preview=URL.createObjectURL(k0);e.push(v1)}else Z0.push(L0.error||"Invalid file")}),e.length>0)E((k0)=>[...k0,...e]);if(Z0.length>0)s(Z0.join(", ")),setTimeout(()=>s(null),5000);P?.(A0.target.files),R(!1),A0.target.value=""}},z1=(A0)=>{E((h0)=>{let e=h0[A0];if(e.preview)URL.revokeObjectURL(e.preview);return h0.filter((Z0,k0)=>k0!==A0)})},y0=(A0)=>{if(A0.startsWith("image/"))return j0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.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 j0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.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 j0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.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 j0.jsxs("div",{className:"px-4 py-3 relative",children:[i&&j0.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:j0.jsxs("div",{className:"flex items-center gap-2 !text-red-700 dark:!text-red-300 text-sm",children:[j0.jsx("svg",{className:"w-4 h-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),j0.jsx("span",{children:i})]})}),w.length>0&&j0.jsx("div",{className:"mb-2 flex flex-wrap gap-2",children:w.map((A0,h0)=>j0.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?j0.jsx("img",{src:A0.preview,alt:A0.file.name,className:"w-8 h-8 object-cover rounded"}):j0.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)}),j0.jsxs("div",{className:"flex flex-col min-w-0",children:[j0.jsx("span",{className:"text-xs font-medium !text-neutral-700 dark:!text-neutral-300 truncate max-w-[120px]",children:A0.file.name}),j0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:RZ(A0.file.size)})]}),j0.jsx("button",{onClick:()=>z1(h0),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:j0.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},h0))}),j0.jsxs("div",{className:"apteva-composer",style:{gridTemplateColumns:"auto 1fr auto",gridTemplateAreas:Q0?'"textarea textarea textarea" "plus . send"':'"plus textarea send"',alignItems:"end"},children:[j0.jsxs("div",{className:"relative flex-shrink-0 self-end",style:{gridArea:"plus"},children:[j0.jsx("button",{ref:a,onClick:()=>R(!f),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:j0.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),f&&j0.jsxs(j0.Fragment,{children:[j0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>R(!1)}),j0.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:a.current?.getBoundingClientRect().left??0,bottom:window.innerHeight-(a.current?.getBoundingClientRect().top??0)+8},children:[j0.jsxs("button",{onClick:()=>{K0.current?.click(),R(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left",children:[j0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j0.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)"})}),j0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),F&&j0.jsxs("button",{onClick:()=>{F(),R(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left border-t border-neutral-700 dark:border-neutral-700",children:[j0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),j0.jsx("span",{className:"!text-sm font-medium",children:"Switch to command mode"})]})]})]})]}),j0.jsx("textarea",{ref:j,value:N,onChange:N0,onKeyDown:p,placeholder:U,disabled:B,className:"apteva-composer-textarea resize-none bg-transparent border-none focus:outline-none !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 py-1 disabled:opacity-50 disabled:cursor-not-allowed overflow-y-auto max-h-[200px]",style:{gridArea:"textarea"},rows:1}),j0.jsx("div",{className:"self-end",style:{gridArea:"send"},children:_&&G?j0.jsx("button",{onClick:G,className:"apteva-composer-stop-btn",title:"Stop generation",children:j0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}):j0.jsx("button",{onClick:X0,disabled:!N.trim()&&w.length===0||B,className:"apteva-composer-send-btn w-8 h-8 rounded-lg flex items-center justify-center font-bold transition-all flex-shrink-0 border border-neutral-300 dark:border-neutral-600 bg-white dark:bg-neutral-800 !text-neutral-700 dark:!text-neutral-300 hover:bg-neutral-50 dark:hover:bg-neutral-700 disabled:opacity-30 disabled:cursor-not-allowed !text-lg",title:"Send message",children:j0.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j0.jsx("path",{d:"M8 3L8 13M8 3L4 7M8 3L12 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})]}),j0.jsx("input",{ref:K0,type:"file",multiple:!0,onChange:n0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}function aM({onExecute:Y,state:U,response:B,error:_,plan:G,streamedContent:P,toolName:F,onApprove:N,onReject:T,onReset:f,onStop:R,onExpand:w,placeholder:E="Enter your command...",disabled:i=!1}){let[s,Q0]=_7.useState(""),[n,j]=_7.useState([]),[K0,a]=_7.useState(null),[p,X0]=_7.useState(!1),N0=_7.useRef(null),n0=_7.useRef(null),z1=_7.useRef(null),y0=()=>{let u0=s.trim(),Q1=n.length>0;if((u0||Q1)&&!i&&U==="idle"){let R1=n.map(($6)=>$6.file);Y(s.trim(),R1.length>0?R1:void 0),Q0(""),j([])}},A0=(u0)=>{if(u0.key==="Enter"&&!u0.shiftKey)u0.preventDefault(),y0()},h0=()=>{f?.(),N0.current?.focus()},e=(u0)=>{if(Q0(u0),N0.current)N0.current.style.height="auto",N0.current.style.height=`${Math.min(N0.current.scrollHeight,120)}px`},Z0=(u0)=>{if(u0.target.files&&u0.target.files.length>0){let Q1=Array.from(u0.target.files),R1=[],$6=[];if(Q1.forEach((s1)=>{let o1=DB(s1);if(o1.valid){let K6={file:s1};if(s1.type.startsWith("image/"))K6.preview=URL.createObjectURL(s1);R1.push(K6)}else $6.push(o1.error||"Invalid file")}),R1.length>0)j((s1)=>[...s1,...R1]);if($6.length>0)a($6.join(", ")),setTimeout(()=>a(null),5000);X0(!1),u0.target.value=""}},k0=(u0)=>{j((Q1)=>{let R1=Q1[u0];if(R1.preview)URL.revokeObjectURL(R1.preview);return Q1.filter(($6,s1)=>s1!==u0)})},L0=(u0)=>{if(u0.startsWith("image/"))return M0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})});if(u0==="application/pdf")return M0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})});return M0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})},v1=()=>{if(U==="loading"){if(F)return{text:F,isToolCall:!0};if(P)return{text:P,isToolCall:!1};return{text:"Processing...",isToolCall:!1}}if(U==="success"&&B)return{text:B,isToolCall:!1};if(U==="error"&&_)return{text:_,isToolCall:!1};if(U==="plan-pending"&&G)return{text:G,isToolCall:!1};return{text:"",isToolCall:!1}},F6=U!=="idle",{text:t1,isToolCall:d1}=v1();return M0.jsxs("div",{className:"w-full relative",children:[K0&&M0.jsx("div",{className:"absolute -top-12 left-0 right-0 mx-3 p-2 bg-red-50 dark:bg-red-900/30 border border-red-200 dark:border-red-800 rounded-lg z-30",children:M0.jsxs("div",{className:"flex items-center gap-2 !text-red-700 dark:!text-red-300 text-xs",children:[M0.jsx("svg",{className:"w-3 h-3 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),M0.jsx("span",{children:K0})]})}),M0.jsxs("div",{className:m1("apteva-composer flex items-center gap-2 px-3 py-2 border-2 bg-white dark:bg-neutral-900 transition-all duration-200",U==="idle"&&"border-neutral-200 dark:border-neutral-700",U==="loading"&&"border-blue-400 dark:border-blue-500",U==="plan-pending"&&"border-amber-400 dark:border-amber-500",U==="success"&&"border-green-400 dark:border-green-500",U==="error"&&"border-red-400 dark:border-red-500"),children:[M0.jsxs("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:[U==="idle"&&M0.jsxs("div",{className:"relative",children:[M0.jsx("button",{ref:z1,onClick:()=>X0(!p),className:"apteva-composer-menu-btn w-8 h-8 rounded-lg flex items-center justify-center transition-all !text-neutral-500 dark:!text-neutral-400 hover:!text-neutral-700 dark:hover:!text-neutral-200 hover:bg-neutral-100 dark:hover:bg-neutral-800",title:"More options",children:M0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),p&&M0.jsxs(M0.Fragment,{children:[M0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>X0(!1)}),M0.jsxs("div",{className:"apteva-composer-menu fixed bg-neutral-800 dark:bg-neutral-800 rounded-xl shadow-lg overflow-hidden z-[9999] min-w-[200px]",style:{left:z1.current?.getBoundingClientRect().left??0,top:(z1.current?.getBoundingClientRect().bottom??0)+8},children:[M0.jsxs("button",{onClick:()=>{n0.current?.click(),X0(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left",children:[M0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M0.jsx("path",{d:"M10.5 3.5L5.5 8.5C4.67157 9.32843 4.67157 10.6716 5.5 11.5C6.32843 12.3284 7.67157 12.3284 8.5 11.5L14.5 5.5C15.8807 4.11929 15.8807 1.88071 14.5 0.5C13.1193 -0.880711 10.8807 -0.880711 9.5 0.5L3.5 6.5C1.56846 8.43154 1.56846 11.5685 3.5 13.5C5.43154 15.4315 8.56846 15.4315 10.5 13.5L15.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(2, 3)"})}),M0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),w&&M0.jsxs("button",{onClick:()=>{w(),X0(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left border-t border-neutral-700 dark:border-neutral-700",children:[M0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),M0.jsx("span",{className:"!text-sm font-medium",children:"Expand to chat"})]})]})]})]}),U==="loading"&&!F&&M0.jsx("div",{className:"w-4 h-4 border-2 border-blue-200 border-t-blue-500 rounded-full animate-spin"}),U==="loading"&&F&&M0.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]}),n.length>0&&U==="idle"&&M0.jsx("div",{className:"flex items-center gap-1 flex-shrink-0",children:n.map((u0,Q1)=>M0.jsxs("div",{className:"relative group flex items-center justify-center w-6 h-6 bg-neutral-100 dark:bg-neutral-800 rounded overflow-hidden",title:u0.file.name,children:[u0.preview?M0.jsx("img",{src:u0.preview,alt:u0.file.name,className:"w-6 h-6 object-cover"}):M0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:L0(u0.file.type)}),M0.jsx("button",{onClick:()=>k0(Q1),className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 flex items-center justify-center transition-opacity",title:"Remove",children:M0.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},Q1))}),U==="idle"?M0.jsx("textarea",{ref:N0,value:s,onChange:(u0)=>e(u0.target.value),onKeyDown:A0,placeholder:n.length>0?"Add a message...":E,disabled:i,rows:1,className:m1("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:m1("flex-1 text-sm py-1 truncate flex items-center gap-2",U==="loading"&&!d1&&"!text-neutral-600 dark:!text-neutral-400",U==="loading"&&d1&&"!text-blue-600 dark:!text-blue-400",U==="success"&&"!text-neutral-900 dark:!text-neutral-100",U==="error"&&"!text-red-600 dark:!text-red-400",U==="plan-pending"&&"!text-amber-700 dark:!text-amber-300"),children:d1?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:U==="plan-pending"?M0.jsxs("div",{className:"flex items-center gap-1",children:[M0.jsx("button",{onClick:N,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:T,className:"px-2 py-1 bg-neutral-200 dark:bg-neutral-700 text-neutral-700 dark:text-neutral-300 rounded-lg hover:bg-neutral-300 dark:hover:bg-neutral-600 transition-colors text-xs font-medium",children:"Modify"})]}):M0.jsxs(M0.Fragment,{children:[U==="loading"&&R&&M0.jsx("button",{onClick:R,className:"apteva-composer-stop-btn",title:"Stop generation",children:M0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}),(U==="success"||U==="error")&&M0.jsx("button",{onClick:h0,className:"w-8 h-8 rounded-lg flex items-center justify-center !text-neutral-400 hover:!text-neutral-600 dark:hover:!text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800 transition-colors",title:"New command",children:M0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),U==="idle"&&M0.jsx("button",{onClick:y0,disabled:!s.trim()&&n.length===0||i,className:m1("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:n0,type:"file",multiple:!0,onChange:Z0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}var lM="http://91.99.200.48:3000/agents",oM="agt_894abd5966bc9f1e9f8f17f2a6f6b5e0",iM=class{constructor(){GM(this,"config"),this.config={apiUrl:lM,apiKey:oM}}configure(Y){if(Y.apiUrl)this.config.apiUrl=Y.apiUrl;if(Y.apiKey)this.config.apiKey=Y.apiKey}getConfig(){return{...this.config}}async chat(Y){try{console.log("[AptevaClient] Chat request:",{agent_id:Y.agent_id,message:typeof Y.message==="string"?Y.message.substring(0,100)+"...":"[multi-part message]",system:Y.system,stream:Y.stream});let U=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify(Y)});if(!U.ok){let _=await U.json().catch(()=>({error:"Request failed"}));throw Error(_.error||`Request failed with status ${U.status}`)}let B=await U.json();return{message:B.response||B.message||"",thread_id:B.thread_id,widgets:B.widgets}}catch(U){throw console.error("Chat API error:",U),U}}async chatStream(Y,U,B,_){try{console.log("[AptevaClient] Chat stream request:",{agent_id:Y.agent_id,message:typeof Y.message==="string"?Y.message.substring(0,100)+"...":"[multi-part message]",system:Y.system,stream:Y.stream});let G=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey,Accept:"text/event-stream"},body:JSON.stringify({...Y,stream:!0})});if(!G.ok){let f=await G.json().catch(()=>({error:"Request failed"}));throw Error(f.error||`Request failed with status ${G.status}`)}let P=G.body?.getReader();if(!P)throw Error("Response body is not readable");let F=new TextDecoder,N="",T="";while(!0){let{done:f,value:R}=await P.read();if(f)break;N+=F.decode(R,{stream:!0});let w=N.split(`
|
|
190
|
-
`);N=w.pop()||"";for(let E of w){if(!E.trim()||E.startsWith(":"))continue;if(E.startsWith("data: ")){let i=E.slice(6);if(i==="[DONE]"){B?.(T);return}try{let s=JSON.parse(i);if(s.thread_id)T=s.thread_id;U(s)}catch(s){console.warn("[AptevaClient] Failed to parse SSE data:",i)}}}}B?.(T)}catch(G){let P=G instanceof Error?G:Error("Unknown error");throw _?.(P),P}}async createThread(Y,U){let B=await fetch(`${this.config.apiUrl}/agents/${Y}/threads`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify({metadata:U})});if(!B.ok){let G=await B.json().catch(()=>({error:"Request failed"}));throw Error(G.error||`Request failed with status ${B.status}`)}return(await B.json()).thread_id}async getThreadMessages(Y){let U=await fetch(`${this.config.apiUrl}/threads/${Y}/messages`,{method:"GET",headers:{"X-API-Key":this.config.apiKey}});if(!U.ok){let _=await U.json().catch(()=>({error:"Request failed"}));throw Error(_.error||`Request failed with status ${U.status}`)}return(await U.json()).messages}async cancelRequest(Y,U){try{let B=await fetch(`${this.config.apiUrl}/agents/${Y}/requests/${U}/cancel`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey}});if(!B.ok){let _=await B.json().catch(()=>({error:"Cancel request failed"}));throw Error(_.error||`Cancel request failed with status ${B.status}`)}}catch(B){throw console.error("[AptevaClient] Cancel request error:",B),B}}},lb=new iM,SB=F1.forwardRef(function({agentId:U,threadId:B,initialMessages:_=[],context:G,apiUrl:P,apiKey:F,useMock:N=!1,initialMode:T="chat",showModeToggle:f=!1,onModeChange:R,commandVariant:w="default",planMode:E=!1,onPlanModeChange:i,enableStreaming:s=!0,showProgress:Q0=!0,loadingText:n="Processing...",welcomeTitle:j,welcomeSubtitle:K0,welcomeIcon:a,suggestedPrompts:p,welcomeVariant:X0,onThreadChange:N0,onMessageSent:n0,onAction:z1,onFileUpload:y0,onComplete:A0,onError:h0,onToolCall:e,onToolResult:Z0,variant:k0="default",placeholder:L0,showHeader:v1=!0,headerTitle:F6="Chat",enableWidgets:t1=!1,availableWidgets:d1,compactWidgetContext:u0=!1,onWidgetRender:Q1,className:R1},$6){let[s1,o1]=F1.useState(_),[K6,C1]=F1.useState(!1),[h1,e1]=F1.useState(B||null),[D6,i1]=F1.useState(T),[I6,f6]=F1.useState(null),[g1,o0]=F1.useState("idle"),[R6,N6]=F1.useState(null),[v6,J6]=F1.useState(null),[X5,j1]=F1.useState(0),[i6,y1]=F1.useState(""),[p6,p1]=F1.useState(""),[b6,j6]=F1.useState(null),[H4,B6]=F1.useState(null),[M6,J0]=F1.useState(""),[f0,C0]=F1.useState(""),[K1,M1]=F1.useState(E),[Y6,S1]=F1.useState(!1),A6=F1.useRef(null),r0=F1.useRef(null);F1.useImperativeHandle($6,()=>({sendMessage:async(J1)=>{if(r0.current)await r0.current(J1)},sendSystemMessage:async(J1)=>{if(r0.current)await r0.current(J1,void 0,!0)},getMessages:()=>s1,clearMessages:()=>o1([])}),[s1]);let i0=F1.useMemo(()=>{if(!t1)return G;let J1=u0?MM(d1):RM(d1);return G?`${G}
|
|
191
|
-
${J1}`:J1},[G,t1,d1,u0]);F1.useEffect(()=>{if(P||F)lb.configure({...P&&{apiUrl:P},...F&&{apiKey:F}})},[P,F]),F1.useEffect(()=>{if(B)N0?.(B)},[B,N0]),F1.useEffect(()=>{M1(E)},[E]),F1.useEffect(()=>{let J1=(k1)=>{let u1=k1.target;if(Y6&&!u1.closest(".settings-menu-container"))S1(!1)};return document.addEventListener("mousedown",J1),()=>document.removeEventListener("mousedown",J1)},[Y6]);let _4=(J1)=>{if(i1(J1),R?.(J1),J1==="command")o0("idle"),N6(null),J6(null)},y6=D6==="chat"?"Type a message...":"Enter your command...",W4=async(J1,k1,u1)=>{let B1=k1&&k1.length>0,W=B1?k1.map((m)=>({name:m.name,type:m.type,size:m.size,preview:m.type.startsWith("image/")?URL.createObjectURL(m):void 0})):[];if(!u1){let m={id:`msg-${Date.now()}`,role:"user",content:J1,timestamp:new Date,metadata:B1?{attachments:W}:void 0};o1((l)=>[...l,m]),n0?.(m)}C1(!0);try{let m=await MB(J1,k1);if(N){let l=await $M(1000);o1((L)=>[...L,l])}else{let l=[],L="",V=[],c=h1,t={},H0={},w0=`msg-${Date.now()}`,W0=()=>{let x=[...l];if(L){let b0=x[x.length-1];if(b0&&b0.type==="text")b0.content=L;else x.push({type:"text",content:L})}o1((b0)=>{let D0=b0[b0.length-1];if(D0&&D0.role==="assistant")return[...b0.slice(0,-1),{...D0,content:L,widgets:V.length>0?V:void 0,metadata:{...D0.metadata,content_segments:x,isStreaming:!0}}];else return[...b0,{id:w0,role:"assistant",content:L,widgets:V.length>0?V:void 0,timestamp:new Date,metadata:{content_segments:x,isStreaming:!0}}]})};await lb.chatStream({agent_id:U,message:m,stream:!0,...h1&&{thread_id:h1},...i0&&{system:i0}},(x)=>{switch(x.type){case"thread_id":if(x.thread_id){if(c=x.thread_id,!h1)e1(x.thread_id),N0?.(x.thread_id)}break;case"request_id":if(x.request_id)B6(x.request_id);break;case"content":case"token":if(x.content)L+=x.content,W0();break;case"tool_call":if(x.tool_id&&x.tool_name){let b0=x.tool_display_name||x.tool_name;if(L)l.push({type:"text",content:L}),L="";l.push({type:"tool",id:x.tool_id,name:b0,status:"preparing"}),t[x.tool_id]="",f6(b0),e?.(x.tool_name,x.tool_id),W0()}break;case"tool_input_delta":if(x.tool_id&&x.content){let b0=x.tool_id;if(t[b0]===void 0)t[b0]="";t[b0]+=x.content;let D0=l.find((Y1)=>Y1.type==="tool"&&Y1.id===b0);if(D0){if(D0.isReceiving=!0,D0.inputLength=t[b0].length,W0(),H0[b0])clearTimeout(H0[b0]);H0[b0]=setTimeout(()=>{if(D0.status==="preparing")D0.isReceiving=!1,W0()},150)}}break;case"tool_use":if(x.tool_id){let b0=l.find((D0)=>D0.type==="tool"&&D0.id===x.tool_id);if(b0&&b0.status==="preparing")b0.status="running",b0.isReceiving=!1,W0()}break;case"tool_stream":if(x.tool_id){let b0=l.find((D0)=>D0.type==="tool"&&D0.id===x.tool_id);if(b0){if(x.event==="chunk"&&x.content){if(b0.pendingReset)b0.streamOutput="",b0.pendingReset=!1;b0.streamOutput=(b0.streamOutput||"")+x.content,W0()}else if(x.event==="log"||x.event==="progress")b0.pendingReset=!0}}break;case"tool_result":if(x.tool_id){let b0=l.find((D0)=>D0.type==="tool"&&D0.id===x.tool_id);if(b0)b0.result=x.content,b0.status="completed",b0.isReceiving=!1,Z0?.(b0.name,x.content);f6(null),W0()}break;case"widget":if(x.widget)V.push(x.widget),W0();break;case"error":throw Error(x.message||"Stream error")}},(x)=>{if(L){let b0=l[l.length-1];if(b0&&b0.type==="text")b0.content=L;else l.push({type:"text",content:L})}if(o1((b0)=>{let D0=b0[b0.length-1];if(D0&&D0.role==="assistant")return[...b0.slice(0,-1),{...D0,content:L||"Response received",widgets:V.length>0?V:void 0,metadata:{thread_id:x,content_segments:l,isStreaming:!1}}];return b0}),x&&x!==h1)e1(x),N0?.(x);C1(!1),B6(null),f6(null)},(x)=>{let b0={id:`msg-${Date.now()}-error`,role:"assistant",content:`Error: ${x.message}`,timestamp:new Date,metadata:{error:!0}};o1((D0)=>{let Y1=D0[D0.length-1];if(Y1&&Y1.id.includes("streaming"))return[...D0.slice(0,-1),b0];return[...D0,b0]}),C1(!1),B6(null),f6(null),h0?.(x)})}}catch(m){let l={id:`msg-${Date.now()}-error`,role:"assistant",content:m instanceof Error?`Error: ${m.message}`:"An error occurred",timestamp:new Date,metadata:{error:!0}};o1((L)=>[...L,l]),h0?.(m instanceof Error?m:Error("Unknown error"))}finally{C1(!1)}};r0.current=W4;let w5=async(J1,k1)=>{let u1=J1||i6;if(!u1.trim()&&(!k1||k1.length===0)){J6(Error("Please enter a command")),o0("error");return}if(K1&&g1!=="plan-pending"){if(o0("loading"),J6(null),y1(""),N)setTimeout(()=>{let B1=`1. Analyze the request: "${u1}"
|
|
192
|
-
2. Process the data
|
|
193
|
-
3. Generate response
|
|
194
|
-
4. Return results`;J0(B1),C0(u1),o0("plan-pending")},800);else try{let W=i0?`${i0}
|
|
195
|
-
|
|
196
|
-
CRITICAL PLANNING MODE: You are ONLY creating a plan. Write a numbered list of steps describing what WOULD be done. DO NOT execute anything.`:"CRITICAL PLANNING MODE: You are ONLY creating a plan. Write a numbered list of steps describing what WOULD be done. DO NOT execute anything.",m=await lb.chat({agent_id:U,message:u1,stream:!1,system:W});J0(m.message),C0(u1),o0("plan-pending")}catch(B1){let W=B1 instanceof Error?B1:Error("Failed to generate plan");J6(W),o0("error"),h0?.(W)}return}o0("loading"),J6(null),j1(0),p1(""),y1("");try{if(N)if(s){let B1="";qM(u1,(W)=>{if(W.type==="token"&&W.content){B1+=W.content,p1(B1);let m=Math.min(Math.round(B1.length/10),90);j1(m)}},(W)=>{let m={success:!0,data:{summary:B1,thread_id:W},message:B1||"Command executed successfully"};N6(m),o0("success"),j1(100),A0?.(m)},(W)=>{J6(W),o0("error"),h0?.(W)})}else{await new Promise((W)=>setTimeout(W,1500));let B1={success:!0,data:{summary:`Executed: ${u1}`},message:"Command executed successfully"};N6(B1),o0("success"),j1(100),A0?.(B1)}else{let W=i0?`${i0}
|
|
197
|
-
|
|
198
|
-
CRITICAL COMMAND MODE: Maximum 10 words per response. Execute the command immediately. Make reasonable assumptions based on context. Use sensible defaults for missing details. DO NOT ask questions unless something is truly impossible without user input (e.g., missing required password). State what you're doing or the result. Examples: "Analyzing customer data from last quarter..." or "Created 5 new database entries successfully" or "Search complete: found 12 matching results". NO greetings, NO filler words, NO clarification requests. Action/result only.`:`CRITICAL COMMAND MODE: Maximum 10 words per response. Execute the command immediately. Make reasonable assumptions based on context. Use sensible defaults for missing details. DO NOT ask questions unless something is truly impossible without user input (e.g., missing required password). State what you're doing or the result. Examples: "Analyzing customer data from last quarter..." or "Created 5 new database entries successfully" or "Search complete: found 12 matching results". NO greetings, NO filler words, NO clarification requests. Action/result only.`,m=k1&&k1.length>0?await MB(u1,k1):u1;if(s){let l="",L="";await lb.chatStream({agent_id:U,message:m,stream:!0,...h1&&{thread_id:h1},system:W},(V)=>{if((V.type==="token"||V.type==="content")&&V.content){l+=V.content,p1(l),j6(null);let c=Math.min(Math.round(l.length/10),90);j1(c)}else if(V.type==="tool_call"&&V.tool_name){let c=V.tool_display_name||V.tool_name;L=V.tool_name,j6(c),e?.(V.tool_name,V.tool_id||""),l="",p1("")}else if(V.type==="tool_result")Z0?.(L,V.content),j6(null);else if(V.type==="thread_id"&&V.thread_id){if(!h1)e1(V.thread_id),N0?.(V.thread_id)}else if(V.type==="request_id"&&V.request_id)B6(V.request_id)},(V)=>{let c={success:!0,data:{summary:l,thread_id:V},message:l||"Command executed successfully"};N6(c),o0("success"),j1(100),B6(null),A0?.(c)},(V)=>{J6(V),o0("error"),B6(null),h0?.(V)})}else{let l=await lb.chat({agent_id:U,message:m,stream:!1,...h1&&{thread_id:h1},system:W}),L={success:!0,data:{summary:l.message,thread_id:l.thread_id},widgets:l.widgets,message:l.message};N6(L),o0("success"),j1(100),A0?.(L)}}}catch(B1){let W=B1 instanceof Error?B1:Error("Unknown error");J6(W),o0("error"),h0?.(W)}},Z5=()=>{o0("idle"),N6(null),J6(null),j1(0),y1(""),J0(""),C0(""),p1(""),j6(null)},V5=()=>{let J1=M6;J0(""),C0("");let k1=`Execute this plan now:
|
|
199
|
-
|
|
200
|
-
${J1}`;w5(k1)},p4=()=>{y1(f0),J0(""),C0(""),o0("idle")},G4=async()=>{if(H4&&U)try{await lb.cancelRequest(U,H4)}catch(J1){console.error("Failed to cancel request:",J1)}if(C1(!1),g1==="loading")o0("idle"),p1(""),j6(null),j1(0);B6(null)},J5=w==="compact";return V4.jsxs("div",{className:m1("apteva-chat flex flex-col h-full",k0!=="default"&&`apteva-chat-${k0}`,R1),children:[v1&&D6==="chat"&&V4.jsx("div",{className:"apteva-chat-header px-4 py-3 flex items-center justify-between",children:V4.jsxs("div",{children:[V4.jsx("div",{className:"apteva-chat-title",children:F6}),V4.jsx("div",{className:m1("apteva-chat-status",K6?I6?"apteva-chat-status-tool":"apteva-chat-status-thinking":"apteva-chat-status-ready"),children:K6?I6?`Using ${I6}...`:"Thinking...":"Ready"})]})}),D6==="chat"&&V4.jsxs(V4.Fragment,{children:[V4.jsx(cM,{messages:s1,onAction:z1,welcomeTitle:j,welcomeSubtitle:K0,welcomeIcon:a,suggestedPrompts:p,welcomeVariant:X0,chatVariant:k0,onPromptClick:(J1)=>W4(J1),enableWidgets:t1,onWidgetRender:Q1}),V4.jsx(xM,{onSendMessage:W4,placeholder:L0||y6,disabled:K6,isLoading:K6,onStop:G4,onFileUpload:y0,onSwitchMode:f?()=>_4("command"):void 0})]}),D6==="command"&&V4.jsx("div",{className:"w-full",children:V4.jsx(aM,{onExecute:(J1,k1)=>{y1(J1),w5(J1,k1)},state:g1,response:R6?.data?.summary||R6?.message,error:v6?.message,plan:M6,streamedContent:p6,toolName:b6,onApprove:V5,onReject:p4,onReset:Z5,onStop:G4,onExpand:f?()=>_4("chat"):void 0,placeholder:L0||"Enter your command..."})}),V4.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
201
|
-
@keyframes pulse-border {
|
|
202
|
-
0%, 100% { border-color: rgb(59, 130, 246); }
|
|
203
|
-
50% { border-color: rgb(147, 197, 253); }
|
|
204
|
-
}
|
|
205
|
-
.animate-pulse-border {
|
|
206
|
-
animation: pulse-border 2s ease-in-out infinite;
|
|
207
|
-
}
|
|
208
|
-
.apteva-composer {
|
|
209
|
-
border-radius: var(--apteva-border-radius, 1rem) !important;
|
|
210
|
-
}
|
|
211
|
-
`}})]})});var Y4=z0(V1(),1);function MZ({agent:Y,onClose:U,onStartAgent:B}){if(Y.status==="running"&&Y.port)return Y4.jsxDEV("div",{className:"w-1/2 flex flex-col overflow-hidden",children:Y4.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden relative",children:[Y4.jsxDEV("button",{onClick:U,className:"absolute top-3 right-3 z-10 text-[#666] hover:text-[#e0e0e0] transition",children:Y4.jsxDEV(hv,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y4.jsxDEV(SB,{agentId:"default",apiUrl:`/api/agents/${Y.id}`,placeholder:"Message this agent...",context:Y.systemPrompt,variant:"terminal",headerTitle:Y.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return Y4.jsxDEV("div",{className:"w-1/2 flex flex-col overflow-hidden",children:[Y4.jsxDEV("div",{className:"border-b border-[#1a1a1a] p-4 flex items-center justify-between",children:[Y4.jsxDEV("div",{children:[Y4.jsxDEV("h2",{className:"font-semibold",children:Y.name},void 0,!1,void 0,this),Y4.jsxDEV("p",{className:"text-sm text-[#666]",children:[Y.provider," / ",Y.model]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y4.jsxDEV("button",{onClick:U,className:"text-[#666] hover:text-[#e0e0e0] transition",children:Y4.jsxDEV(hv,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y4.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:Y4.jsxDEV("div",{className:"text-center",children:[Y4.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),Y4.jsxDEV("button",{onClick:B,className:"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30 px-4 py-2 rounded font-medium transition",children:"Start Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var k5=z0(V1(),1);function kZ({agents:Y,loading:U,selectedAgent:B,onSelectAgent:_,onCloseAgent:G,onToggleAgent:P,onDeleteAgent:F}){return k5.jsxDEV("div",{className:"flex-1 flex overflow-hidden",children:[k5.jsxDEV("div",{className:`${B?"w-1/2 border-r border-[#1a1a1a]":"flex-1"} overflow-auto p-6 transition-all`,children:U?k5.jsxDEV(yb,{message:"Loading agents..."},void 0,!1,void 0,this):Y.length===0?k5.jsxDEV(tM,{},void 0,!1,void 0,this):k5.jsxDEV("div",{className:`grid gap-4 ${B?"grid-cols-1 xl:grid-cols-2":"md:grid-cols-2 xl:grid-cols-3"}`,children:Y.map((N)=>k5.jsxDEV(NZ,{agent:N,selected:B?.id===N.id,onSelect:()=>_(N),onToggle:(T)=>P(N,T),onDelete:(T)=>F(N.id,T)},N.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),B&&k5.jsxDEV(MZ,{agent:B,onClose:G,onStartAgent:(N)=>P(B,N)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tM(){return k5.jsxDEV("div",{className:"text-center py-20 text-[#666]",children:[k5.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),k5.jsxDEV("p",{className:"text-sm mt-1",children:"Create your first agent to get started"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var A1=z0(V1(),1);function wZ({agents:Y,loading:U,runningCount:B,configuredProviders:_,onNavigate:G,onSelectAgent:P}){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(sG,{label:"Total Agents",value:Y.length},void 0,!1,void 0,this),A1.jsxDEV(sG,{label:"Running",value:B,color:"text-[#3b82f6]"},void 0,!1,void 0,this),A1.jsxDEV(sG,{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(cB,{title:"Agents",actionLabel:"View All",onAction:()=>G("agents"),children:U?A1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"Loading..."},void 0,!1,void 0,this):Y.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:Y.slice(0,5).map((F)=>A1.jsxDEV("div",{onClick:()=>P(F),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:F.name},void 0,!1,void 0,this),A1.jsxDEV("p",{className:"text-sm text-[#666]",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("span",{className:`w-2 h-2 rounded-full ${F.status==="running"?"bg-[#3b82f6]":"bg-[#444]"}`},void 0,!1,void 0,this)]},F.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),A1.jsxDEV(cB,{title:"Providers",actionLabel:"Manage",onAction:()=>G("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:()=>G("settings"),className:"text-[#f97316] hover:underline mt-1",children:"Add API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):A1.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:_.map((F)=>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:F.name},void 0,!1,void 0,this),A1.jsxDEV("p",{className:"text-sm text-[#666]",children:[F.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:F.keyHint},void 0,!1,void 0,this)]},F.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sG({label:Y,value:U,color:B}){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:Y},void 0,!1,void 0,this),A1.jsxDEV("p",{className:`text-2xl font-semibold ${B||""}`,children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function cB({title:Y,actionLabel:U,onAction:B,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:Y},void 0,!1,void 0,this),A1.jsxDEV("button",{onClick:B,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_]},void 0,!0,void 0,this)}var g4=z0(V1(),1);function sM(){let{isComplete:Y,setIsComplete:U}=gG(),{agents:B,loading:_,runningCount:G,fetchAgents:P,createAgent:F,deleteAgent:N,toggleAgent:T}=SG(Y===!0),{providers:f,configuredProviders:R,fetchProviders:w}=hG(Y===!0),[E,i]=W7.useState(!1),[s,Q0]=W7.useState(null),[n,j]=W7.useState("dashboard"),[K0,a]=W7.useState(null),[p,X0]=W7.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant."});W7.useEffect(()=>{if(R.length>0&&!p.provider){let Z0=R[0],k0=Z0.models.find((L0)=>L0.recommended)?.value||Z0.models[0]?.value||"";X0((L0)=>({...L0,provider:Z0.id,model:k0}))}},[R,p.provider]),W7.useEffect(()=>{if(s){let Z0=B.find((k0)=>k0.id===s.id);if(Z0)Q0(Z0);else Q0(null)}},[B,s]);let N0=(Z0)=>{let k0=f.find((v1)=>v1.id===Z0),L0=k0?.models.find((v1)=>v1.recommended)?.value||k0?.models[0]?.value||"";X0((v1)=>({...v1,provider:Z0,model:L0}))},n0=async()=>{if(!p.name)return;await F(p);let Z0=R[0],k0=Z0?.models.find((L0)=>L0.recommended)?.value||Z0?.models[0]?.value||"";X0({name:"",model:k0,provider:Z0?.id||"",systemPrompt:"You are a helpful assistant."}),i(!1)},z1=async(Z0,k0)=>{k0?.stopPropagation(),a(null);let L0=await T(Z0);if(L0.error)a(L0.error)},y0=async(Z0,k0)=>{if(k0?.stopPropagation(),s?.id===Z0)Q0(null);await N(Z0)},A0=(Z0)=>{Q0(Z0),a(null),j("agents")},h0=(Z0)=>{j(Z0),Q0(null)},e=()=>{U(!0),w()};if(Y===null)return g4.jsxDEV(yb,{fullScreen:!0},void 0,!1,void 0,this);if(!Y)return g4.jsxDEV(_Z,{onComplete:e},void 0,!1,void 0,this);return g4.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex flex-col",children:[g4.jsxDEV(BZ,{onNewAgent:()=>i(!0),canCreateAgent:R.length>0},void 0,!1,void 0,this),K0&&g4.jsxDEV(LZ,{message:K0,onDismiss:()=>a(null)},void 0,!1,void 0,this),g4.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[g4.jsxDEV(OZ,{route:n,agentCount:B.length,onNavigate:h0},void 0,!1,void 0,this),g4.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:[n==="settings"&&g4.jsxDEV(WZ,{},void 0,!1,void 0,this),n==="agents"&&g4.jsxDEV(kZ,{agents:B,loading:_,selectedAgent:s,onSelectAgent:A0,onCloseAgent:()=>Q0(null),onToggleAgent:z1,onDeleteAgent:y0},void 0,!1,void 0,this),n==="dashboard"&&g4.jsxDEV(wZ,{agents:B,loading:_,runningCount:G,configuredProviders:R,onNavigate:h0,onSelectAgent:A0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E&&g4.jsxDEV(PZ,{form:p,providers:f,configuredProviders:R,onFormChange:X0,onProviderChange:N0,onCreate:n0,onClose:()=>i(!1),onGoToSettings:()=>{i(!1),j("settings")}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var eM=xB.createRoot(document.getElementById("root"));eM.render(g4.jsxDEV(sM,{},void 0,!1,void 0,this));
|
|
212
|
-
|
|
213
|
-
//# debugId=88F4BE7CFEDDFE4464756E2164756E21
|